sass.dart.js 3.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902
  1. // make sure to keep this as 'var'
  2. // we don't want block scoping
  3. var dartNodePreambleSelf = typeof global !== "undefined" ? global : window;
  4. var self = Object.create(dartNodePreambleSelf);
  5. self.scheduleImmediate = self.setImmediate
  6. ? function (cb) {
  7. dartNodePreambleSelf.setImmediate(cb);
  8. }
  9. : function(cb) {
  10. setTimeout(cb, 0);
  11. };
  12. // CommonJS globals.
  13. self.exports = exports;
  14. // Node.js specific exports, check to see if they exist & or polyfilled
  15. if (typeof process !== "undefined") {
  16. self.process = process;
  17. }
  18. if (typeof __dirname !== "undefined") {
  19. self.__dirname = __dirname;
  20. }
  21. if (typeof __filename !== "undefined") {
  22. self.__filename = __filename;
  23. }
  24. // if we're running in a browser, Dart supports most of this out of box
  25. // make sure we only run these in Node.js environment
  26. var dartNodeIsActuallyNode = !dartNodePreambleSelf.window
  27. try {
  28. // Check if we're in a Web Worker instead.
  29. if ("undefined" !== typeof WorkerGlobalScope && dartNodePreambleSelf instanceof WorkerGlobalScope) {
  30. dartNodeIsActuallyNode = false;
  31. }
  32. // Check if we're in Electron, with Node.js integration, and override if true.
  33. if (dartNodePreambleSelf.process && dartNodePreambleSelf.process.versions && dartNodePreambleSelf.process.versions.hasOwnProperty('electron') && dartNodePreambleSelf.process.versions.hasOwnProperty('node')) {
  34. dartNodeIsActuallyNode = true;
  35. }
  36. } catch(e) {}
  37. if (dartNodeIsActuallyNode) {
  38. // This line is to:
  39. // 1) Prevent Webpack from bundling.
  40. // 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__
  41. // https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561
  42. var url = ("undefined" !== typeof __webpack_require__ ? __non_webpack_require__ : require)("url");
  43. self.location = {
  44. get href() {
  45. if (url.pathToFileURL) {
  46. return url.pathToFileURL(process.cwd()).href + "/";
  47. } else {
  48. // This isn't really a correct transformation, but it's the best we have
  49. // for versions of Node <10.12.0 which introduced `url.pathToFileURL()`.
  50. // For example, it will fail for paths that contain characters that need
  51. // to be escaped in URLs.
  52. return "file://" + (function() {
  53. var cwd = process.cwd();
  54. if (process.platform != "win32") return cwd;
  55. return "/" + cwd.replace(/\\/g, "/");
  56. })() + "/"
  57. }
  58. }
  59. };
  60. (function() {
  61. function computeCurrentScript() {
  62. try {
  63. throw new Error();
  64. } catch(e) {
  65. var stack = e.stack;
  66. var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg");
  67. var lastMatch = null;
  68. do {
  69. var match = re.exec(stack);
  70. if (match != null) lastMatch = match;
  71. } while (match != null);
  72. return lastMatch[1];
  73. }
  74. }
  75. var cachedCurrentScript = null;
  76. self.document = {
  77. get currentScript() {
  78. if (cachedCurrentScript == null) {
  79. cachedCurrentScript = {src: computeCurrentScript()};
  80. }
  81. return cachedCurrentScript;
  82. }
  83. };
  84. })();
  85. self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) {
  86. try {
  87. load(uri);
  88. successCallback();
  89. } catch (error) {
  90. errorCallback(error);
  91. }
  92. };
  93. }
  94. self.fs = require("fs");
  95. self.chokidar = require("chokidar");
  96. self.readline = require("readline");
  97. // Generated by dart2js (fast startup emitter, strong, trust primitives, omit checks, lax runtime type), the Dart to JavaScript compiler version: 2.9.3.
  98. // The code supports the following hooks:
  99. // dartPrint(message):
  100. // if this function is defined it is called instead of the Dart [print]
  101. // method.
  102. //
  103. // dartMainRunner(main, args):
  104. // if this function is defined, the Dart [main] method will not be invoked
  105. // directly. Instead, a closure that will invoke [main], and its arguments
  106. // [args] is passed to [dartMainRunner].
  107. //
  108. // dartDeferredLibraryLoader(uri, successCallback, errorCallback):
  109. // if this function is defined, it will be called when a deferred library
  110. // is loaded. It should load and eval the javascript of `uri`, and call
  111. // successCallback. If it fails to do so, it should call errorCallback with
  112. // an error.
  113. //
  114. // dartCallInstrumentation(id, qualifiedName):
  115. // if this function is defined, it will be called at each entry of a
  116. // method or constructor. Used only when compiling programs with
  117. // --experiment-call-instrumentation.
  118. (function dartProgram() {
  119. function copyProperties(from, to) {
  120. var keys = Object.keys(from);
  121. for (var i = 0; i < keys.length; i++) {
  122. var key = keys[i];
  123. to[key] = from[key];
  124. }
  125. }
  126. var supportsDirectProtoAccess = function() {
  127. var cls = function() {
  128. };
  129. cls.prototype = {p: {}};
  130. var object = new cls();
  131. if (!(object.__proto__ && object.__proto__.p === cls.prototype.p))
  132. return false;
  133. try {
  134. if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0)
  135. return true;
  136. if (typeof version == "function" && version.length == 0) {
  137. var v = version();
  138. if (/^\d+\.\d+\.\d+\.\d+$/.test(v))
  139. return true;
  140. }
  141. } catch (_) {
  142. }
  143. return false;
  144. }();
  145. function setFunctionNamesIfNecessary(holders) {
  146. function t() {
  147. }
  148. ;
  149. if (typeof t.name == "string")
  150. return;
  151. for (var i = 0; i < holders.length; i++) {
  152. var holder = holders[i];
  153. var keys = Object.keys(holder);
  154. for (var j = 0; j < keys.length; j++) {
  155. var key = keys[j];
  156. var f = holder[key];
  157. if (typeof f == 'function')
  158. f.name = key;
  159. }
  160. }
  161. }
  162. function inherit(cls, sup) {
  163. cls.prototype.constructor = cls;
  164. cls.prototype["$is" + cls.name] = cls;
  165. if (sup != null) {
  166. if (supportsDirectProtoAccess) {
  167. cls.prototype.__proto__ = sup.prototype;
  168. return;
  169. }
  170. var clsPrototype = Object.create(sup.prototype);
  171. copyProperties(cls.prototype, clsPrototype);
  172. cls.prototype = clsPrototype;
  173. }
  174. }
  175. function inheritMany(sup, classes) {
  176. for (var i = 0; i < classes.length; i++)
  177. inherit(classes[i], sup);
  178. }
  179. function mixin(cls, mixin) {
  180. copyProperties(mixin.prototype, cls.prototype);
  181. cls.prototype.constructor = cls;
  182. }
  183. function lazy(holder, name, getterName, initializer) {
  184. var uninitializedSentinel = holder;
  185. holder[name] = uninitializedSentinel;
  186. holder[getterName] = function() {
  187. holder[getterName] = function() {
  188. H.throwCyclicInit(name);
  189. };
  190. var result;
  191. var sentinelInProgress = initializer;
  192. try {
  193. if (holder[name] === uninitializedSentinel) {
  194. result = holder[name] = sentinelInProgress;
  195. result = holder[name] = initializer();
  196. } else
  197. result = holder[name];
  198. } finally {
  199. if (result === sentinelInProgress)
  200. holder[name] = null;
  201. holder[getterName] = function() {
  202. return this[name];
  203. };
  204. }
  205. return result;
  206. };
  207. }
  208. function makeConstList(list) {
  209. list.immutable$list = Array;
  210. list.fixed$length = Array;
  211. return list;
  212. }
  213. function convertToFastObject(properties) {
  214. function t() {
  215. }
  216. t.prototype = properties;
  217. new t();
  218. return properties;
  219. }
  220. function convertAllToFastObject(arrayOfObjects) {
  221. for (var i = 0; i < arrayOfObjects.length; ++i)
  222. convertToFastObject(arrayOfObjects[i]);
  223. }
  224. var functionCounter = 0;
  225. function tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted) {
  226. return isIntercepted ? new Function("funcs", "applyTrampolineIndex", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "(receiver) {" + "if (c === null) c = " + "H.closureFromTearOff" + "(" + "this, funcs, applyTrampolineIndex, reflectionInfo, false, true, name);" + "return new c(this, funcs[0], receiver, name);" + "}")(funcs, applyTrampolineIndex, reflectionInfo, name, H, null) : new Function("funcs", "applyTrampolineIndex", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "() {" + "if (c === null) c = " + "H.closureFromTearOff" + "(" + "this, funcs, applyTrampolineIndex, reflectionInfo, false, false, name);" + "return new c(this, funcs[0], null, name);" + "}")(funcs, applyTrampolineIndex, reflectionInfo, name, H, null);
  227. }
  228. function tearOff(funcs, applyTrampolineIndex, reflectionInfo, isStatic, name, isIntercepted) {
  229. var cache = null;
  230. return isStatic ? function() {
  231. if (cache === null)
  232. cache = H.closureFromTearOff(this, funcs, applyTrampolineIndex, reflectionInfo, true, false, name).prototype;
  233. return cache;
  234. } : tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted);
  235. }
  236. var typesOffset = 0;
  237. function installTearOff(container, getterName, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  238. var funs = [];
  239. for (var i = 0; i < funsOrNames.length; i++) {
  240. var fun = funsOrNames[i];
  241. if (typeof fun == 'string')
  242. fun = container[fun];
  243. fun.$callName = callNames[i];
  244. funs.push(fun);
  245. }
  246. var fun = funs[0];
  247. fun.$requiredArgCount = requiredParameterCount;
  248. fun.$defaultValues = optionalParameterDefaultValues;
  249. var reflectionInfo = funType;
  250. if (typeof reflectionInfo == "number")
  251. reflectionInfo += typesOffset;
  252. var name = funsOrNames[0];
  253. fun.$stubName = name;
  254. var getterFunction = tearOff(funs, applyIndex || 0, reflectionInfo, isStatic, name, isIntercepted);
  255. container[getterName] = getterFunction;
  256. if (isStatic)
  257. fun.$tearOff = getterFunction;
  258. }
  259. function installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  260. return installTearOff(container, getterName, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
  261. }
  262. function installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  263. return installTearOff(container, getterName, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
  264. }
  265. function setOrUpdateInterceptorsByTag(newTags) {
  266. var tags = init.interceptorsByTag;
  267. if (!tags) {
  268. init.interceptorsByTag = newTags;
  269. return;
  270. }
  271. copyProperties(newTags, tags);
  272. }
  273. function setOrUpdateLeafTags(newTags) {
  274. var tags = init.leafTags;
  275. if (!tags) {
  276. init.leafTags = newTags;
  277. return;
  278. }
  279. copyProperties(newTags, tags);
  280. }
  281. function updateTypes(newTypes) {
  282. var types = init.types;
  283. var length = types.length;
  284. types.push.apply(types, newTypes);
  285. return length;
  286. }
  287. function updateHolder(holder, newHolder) {
  288. copyProperties(newHolder, holder);
  289. return holder;
  290. }
  291. var hunkHelpers = function() {
  292. var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  293. return function(container, getterName, name, funType) {
  294. return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
  295. };
  296. },
  297. mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  298. return function(container, getterName, name, funType) {
  299. return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
  300. };
  301. };
  302. return {inherit: inherit, inheritMany: inheritMany, mixin: mixin, 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, updateHolder: updateHolder, convertToFastObject: convertToFastObject, setFunctionNamesIfNecessary: setFunctionNamesIfNecessary, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags};
  303. }();
  304. function initializeDeferredHunk(hunk) {
  305. typesOffset = init.types.length;
  306. hunk(hunkHelpers, init, holders, $);
  307. }
  308. function getGlobalFromName(name) {
  309. for (var i = 0; i < holders.length; i++) {
  310. if (holders[i] == C)
  311. continue;
  312. if (holders[i][name])
  313. return holders[i][name];
  314. }
  315. }
  316. var C = {},
  317. H = {JS_CONST: function JS_CONST() {
  318. },
  319. CastIterable_CastIterable: function(source, $S, $T) {
  320. if ($S._eval$1("EfficientLengthIterable<0>")._is(source))
  321. return new H._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>"));
  322. return new H.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>"));
  323. },
  324. LateInitializationErrorImpl$: function(_message) {
  325. return new H.LateInitializationErrorImpl(_message);
  326. },
  327. hexDigitValue: function(char) {
  328. var letter,
  329. digit = char ^ 48;
  330. if (digit <= 9)
  331. return digit;
  332. letter = char | 32;
  333. if (97 <= letter && letter <= 102)
  334. return letter - 87;
  335. return -1;
  336. },
  337. SubListIterable$: function(_iterable, _start, _endOrLength, $E) {
  338. P.RangeError_checkNotNegative(_start, "start");
  339. if (_endOrLength != null) {
  340. P.RangeError_checkNotNegative(_endOrLength, "end");
  341. if (_start > _endOrLength)
  342. H.throwExpression(P.RangeError$range(_start, 0, _endOrLength, "start", null));
  343. }
  344. return new H.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>"));
  345. },
  346. MappedIterable_MappedIterable: function(iterable, $function, $S, $T) {
  347. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  348. return new H.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  349. return new H.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  350. },
  351. TakeIterable_TakeIterable: function(iterable, takeCount, $E) {
  352. var _s9_ = "takeCount";
  353. P.ArgumentError_checkNotNull(takeCount, _s9_);
  354. P.RangeError_checkNotNegative(takeCount, _s9_);
  355. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  356. return new H.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>"));
  357. return new H.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>"));
  358. },
  359. SkipIterable_SkipIterable: function(iterable, count, $E) {
  360. var _s5_ = "count";
  361. if (type$.EfficientLengthIterable_dynamic._is(iterable)) {
  362. P.ArgumentError_checkNotNull(count, _s5_);
  363. P.RangeError_checkNotNegative(count, _s5_);
  364. return new H.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>"));
  365. }
  366. P.ArgumentError_checkNotNull(count, _s5_);
  367. P.RangeError_checkNotNegative(count, _s5_);
  368. return new H.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>"));
  369. },
  370. FollowedByIterable_FollowedByIterable$firstEfficient: function(first, second, $E) {
  371. if ($E._eval$1("EfficientLengthIterable<0>")._is(second))
  372. return new H.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>"));
  373. return new H.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>"));
  374. },
  375. IterableElementError_noElement: function() {
  376. return new P.StateError("No element");
  377. },
  378. IterableElementError_tooMany: function() {
  379. return new P.StateError("Too many elements");
  380. },
  381. IterableElementError_tooFew: function() {
  382. return new P.StateError("Too few elements");
  383. },
  384. Sort_sort: function(a, compare) {
  385. H.Sort__doSort(a, 0, J.get$length$asx(a) - 1, compare);
  386. },
  387. Sort__doSort: function(a, left, right, compare) {
  388. if (right - left <= 32)
  389. H.Sort__insertionSort(a, left, right, compare);
  390. else
  391. H.Sort__dualPivotQuicksort(a, left, right, compare);
  392. },
  393. Sort__insertionSort: function(a, left, right, compare) {
  394. var i, t1, el, j, j0;
  395. for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) {
  396. el = t1.$index(a, i);
  397. j = i;
  398. while (true) {
  399. if (!(j > left && compare.call$2(t1.$index(a, j - 1), el) > 0))
  400. break;
  401. j0 = j - 1;
  402. t1.$indexSet(a, j, t1.$index(a, j0));
  403. j = j0;
  404. }
  405. t1.$indexSet(a, j, el);
  406. }
  407. },
  408. Sort__dualPivotQuicksort: function(a, left, right, compare) {
  409. var t0, less, great, k, ak, comp, great0, less0, pivots_are_equal, t2,
  410. sixth = C.JSInt_methods._tdivFast$1(right - left + 1, 6),
  411. index1 = left + sixth,
  412. index5 = right - sixth,
  413. index3 = C.JSInt_methods._tdivFast$1(left + right, 2),
  414. index2 = index3 - sixth,
  415. index4 = index3 + sixth,
  416. t1 = J.getInterceptor$asx(a),
  417. el1 = t1.$index(a, index1),
  418. el2 = t1.$index(a, index2),
  419. el3 = t1.$index(a, index3),
  420. el4 = t1.$index(a, index4),
  421. el5 = t1.$index(a, index5);
  422. if (compare.call$2(el1, el2) > 0) {
  423. t0 = el2;
  424. el2 = el1;
  425. el1 = t0;
  426. }
  427. if (compare.call$2(el4, el5) > 0) {
  428. t0 = el5;
  429. el5 = el4;
  430. el4 = t0;
  431. }
  432. if (compare.call$2(el1, el3) > 0) {
  433. t0 = el3;
  434. el3 = el1;
  435. el1 = t0;
  436. }
  437. if (compare.call$2(el2, el3) > 0) {
  438. t0 = el3;
  439. el3 = el2;
  440. el2 = t0;
  441. }
  442. if (compare.call$2(el1, el4) > 0) {
  443. t0 = el4;
  444. el4 = el1;
  445. el1 = t0;
  446. }
  447. if (compare.call$2(el3, el4) > 0) {
  448. t0 = el4;
  449. el4 = el3;
  450. el3 = t0;
  451. }
  452. if (compare.call$2(el2, el5) > 0) {
  453. t0 = el5;
  454. el5 = el2;
  455. el2 = t0;
  456. }
  457. if (compare.call$2(el2, el3) > 0) {
  458. t0 = el3;
  459. el3 = el2;
  460. el2 = t0;
  461. }
  462. if (compare.call$2(el4, el5) > 0) {
  463. t0 = el5;
  464. el5 = el4;
  465. el4 = t0;
  466. }
  467. t1.$indexSet(a, index1, el1);
  468. t1.$indexSet(a, index3, el3);
  469. t1.$indexSet(a, index5, el5);
  470. t1.$indexSet(a, index2, t1.$index(a, left));
  471. t1.$indexSet(a, index4, t1.$index(a, right));
  472. less = left + 1;
  473. great = right - 1;
  474. if (J.$eq$(compare.call$2(el2, el4), 0)) {
  475. for (k = less; k <= great; ++k) {
  476. ak = t1.$index(a, k);
  477. comp = compare.call$2(ak, el2);
  478. if (comp === 0)
  479. continue;
  480. if (comp < 0) {
  481. if (k !== less) {
  482. t1.$indexSet(a, k, t1.$index(a, less));
  483. t1.$indexSet(a, less, ak);
  484. }
  485. ++less;
  486. } else
  487. for (; true;) {
  488. comp = compare.call$2(t1.$index(a, great), el2);
  489. if (comp > 0) {
  490. --great;
  491. continue;
  492. } else {
  493. great0 = great - 1;
  494. if (comp < 0) {
  495. t1.$indexSet(a, k, t1.$index(a, less));
  496. less0 = less + 1;
  497. t1.$indexSet(a, less, t1.$index(a, great));
  498. t1.$indexSet(a, great, ak);
  499. great = great0;
  500. less = less0;
  501. break;
  502. } else {
  503. t1.$indexSet(a, k, t1.$index(a, great));
  504. t1.$indexSet(a, great, ak);
  505. great = great0;
  506. break;
  507. }
  508. }
  509. }
  510. }
  511. pivots_are_equal = true;
  512. } else {
  513. for (k = less; k <= great; ++k) {
  514. ak = t1.$index(a, k);
  515. if (compare.call$2(ak, el2) < 0) {
  516. if (k !== less) {
  517. t1.$indexSet(a, k, t1.$index(a, less));
  518. t1.$indexSet(a, less, ak);
  519. }
  520. ++less;
  521. } else if (compare.call$2(ak, el4) > 0)
  522. for (; true;)
  523. if (compare.call$2(t1.$index(a, great), el4) > 0) {
  524. --great;
  525. if (great < k)
  526. break;
  527. continue;
  528. } else {
  529. great0 = great - 1;
  530. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  531. t1.$indexSet(a, k, t1.$index(a, less));
  532. less0 = less + 1;
  533. t1.$indexSet(a, less, t1.$index(a, great));
  534. t1.$indexSet(a, great, ak);
  535. less = less0;
  536. } else {
  537. t1.$indexSet(a, k, t1.$index(a, great));
  538. t1.$indexSet(a, great, ak);
  539. }
  540. great = great0;
  541. break;
  542. }
  543. }
  544. pivots_are_equal = false;
  545. }
  546. t2 = less - 1;
  547. t1.$indexSet(a, left, t1.$index(a, t2));
  548. t1.$indexSet(a, t2, el2);
  549. t2 = great + 1;
  550. t1.$indexSet(a, right, t1.$index(a, t2));
  551. t1.$indexSet(a, t2, el4);
  552. H.Sort__doSort(a, left, less - 2, compare);
  553. H.Sort__doSort(a, great + 2, right, compare);
  554. if (pivots_are_equal)
  555. return;
  556. if (less < index1 && great > index5) {
  557. for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);)
  558. ++less;
  559. for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);)
  560. --great;
  561. for (k = less; k <= great; ++k) {
  562. ak = t1.$index(a, k);
  563. if (compare.call$2(ak, el2) === 0) {
  564. if (k !== less) {
  565. t1.$indexSet(a, k, t1.$index(a, less));
  566. t1.$indexSet(a, less, ak);
  567. }
  568. ++less;
  569. } else if (compare.call$2(ak, el4) === 0)
  570. for (; true;)
  571. if (compare.call$2(t1.$index(a, great), el4) === 0) {
  572. --great;
  573. if (great < k)
  574. break;
  575. continue;
  576. } else {
  577. great0 = great - 1;
  578. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  579. t1.$indexSet(a, k, t1.$index(a, less));
  580. less0 = less + 1;
  581. t1.$indexSet(a, less, t1.$index(a, great));
  582. t1.$indexSet(a, great, ak);
  583. less = less0;
  584. } else {
  585. t1.$indexSet(a, k, t1.$index(a, great));
  586. t1.$indexSet(a, great, ak);
  587. }
  588. great = great0;
  589. break;
  590. }
  591. }
  592. H.Sort__doSort(a, less, great, compare);
  593. } else
  594. H.Sort__doSort(a, less, great, compare);
  595. },
  596. _CastIterableBase: function _CastIterableBase() {
  597. },
  598. CastIterator: function CastIterator(t0, t1) {
  599. this._source = t0;
  600. this.$ti = t1;
  601. },
  602. CastIterable: function CastIterable(t0, t1) {
  603. this._source = t0;
  604. this.$ti = t1;
  605. },
  606. _EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) {
  607. this._source = t0;
  608. this.$ti = t1;
  609. },
  610. _CastListBase: function _CastListBase() {
  611. },
  612. _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) {
  613. this.$this = t0;
  614. this.compare = t1;
  615. },
  616. CastList: function CastList(t0, t1) {
  617. this._source = t0;
  618. this.$ti = t1;
  619. },
  620. CastSet: function CastSet(t0, t1, t2) {
  621. this._source = t0;
  622. this._emptySet = t1;
  623. this.$ti = t2;
  624. },
  625. CastQueue: function CastQueue(t0, t1) {
  626. this._source = t0;
  627. this.$ti = t1;
  628. },
  629. LateInitializationErrorImpl: function LateInitializationErrorImpl(t0) {
  630. this.__internal$_message = t0;
  631. },
  632. CodeUnits: function CodeUnits(t0) {
  633. this._string = t0;
  634. },
  635. EfficientLengthIterable: function EfficientLengthIterable() {
  636. },
  637. ListIterable: function ListIterable() {
  638. },
  639. SubListIterable: function SubListIterable(t0, t1, t2, t3) {
  640. var _ = this;
  641. _.__internal$_iterable = t0;
  642. _._start = t1;
  643. _._endOrLength = t2;
  644. _.$ti = t3;
  645. },
  646. ListIterator: function ListIterator(t0, t1) {
  647. var _ = this;
  648. _.__internal$_iterable = t0;
  649. _.__internal$_length = t1;
  650. _.__internal$_index = 0;
  651. _.__internal$_current = null;
  652. },
  653. MappedIterable: function MappedIterable(t0, t1, t2) {
  654. this.__internal$_iterable = t0;
  655. this._f = t1;
  656. this.$ti = t2;
  657. },
  658. EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) {
  659. this.__internal$_iterable = t0;
  660. this._f = t1;
  661. this.$ti = t2;
  662. },
  663. MappedIterator: function MappedIterator(t0, t1) {
  664. this.__internal$_current = null;
  665. this._iterator = t0;
  666. this._f = t1;
  667. },
  668. MappedListIterable: function MappedListIterable(t0, t1, t2) {
  669. this._source = t0;
  670. this._f = t1;
  671. this.$ti = t2;
  672. },
  673. WhereIterable: function WhereIterable(t0, t1, t2) {
  674. this.__internal$_iterable = t0;
  675. this._f = t1;
  676. this.$ti = t2;
  677. },
  678. WhereIterator: function WhereIterator(t0, t1) {
  679. this._iterator = t0;
  680. this._f = t1;
  681. },
  682. ExpandIterable: function ExpandIterable(t0, t1, t2) {
  683. this.__internal$_iterable = t0;
  684. this._f = t1;
  685. this.$ti = t2;
  686. },
  687. ExpandIterator: function ExpandIterator(t0, t1, t2) {
  688. var _ = this;
  689. _._iterator = t0;
  690. _._f = t1;
  691. _._currentExpansion = t2;
  692. _.__internal$_current = null;
  693. },
  694. TakeIterable: function TakeIterable(t0, t1, t2) {
  695. this.__internal$_iterable = t0;
  696. this._takeCount = t1;
  697. this.$ti = t2;
  698. },
  699. EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) {
  700. this.__internal$_iterable = t0;
  701. this._takeCount = t1;
  702. this.$ti = t2;
  703. },
  704. TakeIterator: function TakeIterator(t0, t1) {
  705. this._iterator = t0;
  706. this._remaining = t1;
  707. },
  708. SkipIterable: function SkipIterable(t0, t1, t2) {
  709. this.__internal$_iterable = t0;
  710. this._skipCount = t1;
  711. this.$ti = t2;
  712. },
  713. EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) {
  714. this.__internal$_iterable = t0;
  715. this._skipCount = t1;
  716. this.$ti = t2;
  717. },
  718. SkipIterator: function SkipIterator(t0, t1) {
  719. this._iterator = t0;
  720. this._skipCount = t1;
  721. },
  722. SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) {
  723. this.__internal$_iterable = t0;
  724. this._f = t1;
  725. this.$ti = t2;
  726. },
  727. SkipWhileIterator: function SkipWhileIterator(t0, t1) {
  728. this._iterator = t0;
  729. this._f = t1;
  730. this._hasSkipped = false;
  731. },
  732. EmptyIterable: function EmptyIterable(t0) {
  733. this.$ti = t0;
  734. },
  735. EmptyIterator: function EmptyIterator() {
  736. },
  737. FollowedByIterable: function FollowedByIterable(t0, t1, t2) {
  738. this.__internal$_first = t0;
  739. this._second = t1;
  740. this.$ti = t2;
  741. },
  742. EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) {
  743. this.__internal$_first = t0;
  744. this._second = t1;
  745. this.$ti = t2;
  746. },
  747. FollowedByIterator: function FollowedByIterator(t0, t1) {
  748. this._currentIterator = t0;
  749. this._nextIterable = t1;
  750. },
  751. WhereTypeIterable: function WhereTypeIterable(t0, t1) {
  752. this._source = t0;
  753. this.$ti = t1;
  754. },
  755. WhereTypeIterator: function WhereTypeIterator(t0, t1) {
  756. this._source = t0;
  757. this.$ti = t1;
  758. },
  759. FixedLengthListMixin: function FixedLengthListMixin() {
  760. },
  761. UnmodifiableListMixin: function UnmodifiableListMixin() {
  762. },
  763. UnmodifiableListBase: function UnmodifiableListBase() {
  764. },
  765. ReversedListIterable: function ReversedListIterable(t0, t1) {
  766. this._source = t0;
  767. this.$ti = t1;
  768. },
  769. Symbol: function Symbol(t0) {
  770. this.__internal$_name = t0;
  771. },
  772. __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() {
  773. },
  774. ConstantMap_ConstantMap$from: function(other, $K, $V) {
  775. var allStrings, object, containsProto, protoValue, $length, k, v,
  776. keys = P.List_List$from(other.get$keys(), true, $K),
  777. t1 = keys.length,
  778. _i = 0;
  779. while (true) {
  780. if (!(_i < t1)) {
  781. allStrings = true;
  782. break;
  783. }
  784. if (typeof keys[_i] != "string") {
  785. allStrings = false;
  786. break;
  787. }
  788. ++_i;
  789. }
  790. if (allStrings) {
  791. object = {};
  792. for (containsProto = false, protoValue = null, $length = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
  793. k = keys[_i];
  794. v = other.$index(0, k);
  795. if (!J.$eq$(k, "__proto__")) {
  796. H._asStringS(k);
  797. if (!object.hasOwnProperty(k))
  798. ++$length;
  799. object[k] = v;
  800. } else {
  801. protoValue = v;
  802. containsProto = true;
  803. }
  804. }
  805. if (containsProto)
  806. return new H.ConstantProtoMap(protoValue, $length + 1, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantProtoMap<1,2>"));
  807. return new H.ConstantStringMap($length, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantStringMap<1,2>"));
  808. }
  809. return new H.ConstantMapView(P.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>"));
  810. },
  811. ConstantMap__throwUnmodifiable: function() {
  812. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable Map"));
  813. },
  814. instantiate1: function(f, T1) {
  815. var t1 = new H.Instantiation1(f, T1._eval$1("Instantiation1<0>"));
  816. t1.Instantiation$1(f);
  817. return t1;
  818. },
  819. unminifyOrTag: function(rawClassName) {
  820. var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
  821. if (preserved != null)
  822. return preserved;
  823. return rawClassName;
  824. },
  825. isJsIndexable: function(object, record) {
  826. var result;
  827. if (record != null) {
  828. result = record.x;
  829. if (result != null)
  830. return result;
  831. }
  832. return type$.JavaScriptIndexingBehavior_dynamic._is(object);
  833. },
  834. S: function(value) {
  835. var res;
  836. if (typeof value == "string")
  837. return value;
  838. if (typeof value == "number") {
  839. if (value !== 0)
  840. return "" + value;
  841. } else if (true === value)
  842. return "true";
  843. else if (false === value)
  844. return "false";
  845. else if (value == null)
  846. return "null";
  847. res = J.toString$0$(value);
  848. if (typeof res != "string")
  849. throw H.wrapException(H.argumentErrorValue(value));
  850. return res;
  851. },
  852. Primitives_objectHashCode: function(object) {
  853. var hash = object.$identityHash;
  854. if (hash == null) {
  855. hash = Math.random() * 0x3fffffff | 0;
  856. object.$identityHash = hash;
  857. }
  858. return hash;
  859. },
  860. Primitives_parseInt: function(source, radix) {
  861. var match, decimalMatch, maxCharCode, digitsPart, t1, i, _null = null;
  862. if (typeof source != "string")
  863. H.throwExpression(H.argumentErrorValue(source));
  864. match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
  865. if (match == null)
  866. return _null;
  867. decimalMatch = match[3];
  868. if (radix == null) {
  869. if (decimalMatch != null)
  870. return parseInt(source, 10);
  871. if (match[2] != null)
  872. return parseInt(source, 16);
  873. return _null;
  874. }
  875. if (radix < 2 || radix > 36)
  876. throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", _null));
  877. if (radix === 10 && decimalMatch != null)
  878. return parseInt(source, 10);
  879. if (radix < 10 || decimalMatch == null) {
  880. maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
  881. digitsPart = match[1];
  882. for (t1 = digitsPart.length, i = 0; i < t1; ++i)
  883. if ((C.JSString_methods._codeUnitAt$1(digitsPart, i) | 32) > maxCharCode)
  884. return _null;
  885. }
  886. return parseInt(source, radix);
  887. },
  888. Primitives_parseDouble: function(source) {
  889. var result, trimmed;
  890. if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source))
  891. return null;
  892. result = parseFloat(source);
  893. if (isNaN(result)) {
  894. trimmed = C.JSString_methods.trim$0(source);
  895. if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN")
  896. return result;
  897. return null;
  898. }
  899. return result;
  900. },
  901. Primitives_objectTypeName: function(object) {
  902. return H.Primitives__objectTypeNameNewRti(object);
  903. },
  904. Primitives__objectTypeNameNewRti: function(object) {
  905. var dispatchName, $constructor, constructorName;
  906. if (object instanceof P.Object)
  907. return H._rtiToString(H.instanceType(object), null);
  908. if (J.getInterceptor$(object) === C.Interceptor_methods || type$.UnknownJavaScriptObject._is(object)) {
  909. dispatchName = C.C_JS_CONST(object);
  910. if (H.Primitives__saneNativeClassName(dispatchName))
  911. return dispatchName;
  912. $constructor = object.constructor;
  913. if (typeof $constructor == "function") {
  914. constructorName = $constructor.name;
  915. if (typeof constructorName == "string" && H.Primitives__saneNativeClassName(constructorName))
  916. return constructorName;
  917. }
  918. }
  919. return H._rtiToString(H.instanceType(object), null);
  920. },
  921. Primitives__saneNativeClassName: function($name) {
  922. var t1 = $name !== "Object" && $name !== "";
  923. return t1;
  924. },
  925. Primitives_currentUri: function() {
  926. if (!!self.location)
  927. return self.location.href;
  928. return null;
  929. },
  930. Primitives__fromCharCodeApply: function(array) {
  931. var result, i, i0, chunkEnd,
  932. end = array.length;
  933. if (end <= 500)
  934. return String.fromCharCode.apply(null, array);
  935. for (result = "", i = 0; i < end; i = i0) {
  936. i0 = i + 500;
  937. chunkEnd = i0 < end ? i0 : end;
  938. result += String.fromCharCode.apply(null, array.slice(i, chunkEnd));
  939. }
  940. return result;
  941. },
  942. Primitives_stringFromCodePoints: function(codePoints) {
  943. var t1, _i, i,
  944. a = H.setRuntimeTypeInfo([], type$.JSArray_int);
  945. for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.length === t1 || (0, H.throwConcurrentModificationError)(codePoints), ++_i) {
  946. i = codePoints[_i];
  947. if (!H._isInt(i))
  948. throw H.wrapException(H.argumentErrorValue(i));
  949. if (i <= 65535)
  950. a.push(i);
  951. else if (i <= 1114111) {
  952. a.push(55296 + (C.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023));
  953. a.push(56320 + (i & 1023));
  954. } else
  955. throw H.wrapException(H.argumentErrorValue(i));
  956. }
  957. return H.Primitives__fromCharCodeApply(a);
  958. },
  959. Primitives_stringFromCharCodes: function(charCodes) {
  960. var t1, _i, i;
  961. for (t1 = charCodes.length, _i = 0; _i < t1; ++_i) {
  962. i = charCodes[_i];
  963. if (!H._isInt(i))
  964. throw H.wrapException(H.argumentErrorValue(i));
  965. if (i < 0)
  966. throw H.wrapException(H.argumentErrorValue(i));
  967. if (i > 65535)
  968. return H.Primitives_stringFromCodePoints(charCodes);
  969. }
  970. return H.Primitives__fromCharCodeApply(charCodes);
  971. },
  972. Primitives_stringFromNativeUint8List: function(charCodes, start, end) {
  973. var i, result, i0, chunkEnd;
  974. if (end <= 500 && start === 0 && end === charCodes.length)
  975. return String.fromCharCode.apply(null, charCodes);
  976. for (i = start, result = ""; i < end; i = i0) {
  977. i0 = i + 500;
  978. chunkEnd = i0 < end ? i0 : end;
  979. result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd));
  980. }
  981. return result;
  982. },
  983. Primitives_stringFromCharCode: function(charCode) {
  984. var bits;
  985. if (0 <= charCode) {
  986. if (charCode <= 65535)
  987. return String.fromCharCode(charCode);
  988. if (charCode <= 1114111) {
  989. bits = charCode - 65536;
  990. return String.fromCharCode((55296 | C.JSInt_methods._shrOtherPositive$1(bits, 10)) >>> 0, 56320 | bits & 1023);
  991. }
  992. }
  993. throw H.wrapException(P.RangeError$range(charCode, 0, 1114111, null, null));
  994. },
  995. Primitives_lazyAsJsDate: function(receiver) {
  996. if (receiver.date === void 0)
  997. receiver.date = new Date(receiver._value);
  998. return receiver.date;
  999. },
  1000. Primitives_getYear: function(receiver) {
  1001. var t1 = H.Primitives_lazyAsJsDate(receiver).getFullYear() + 0;
  1002. return t1;
  1003. },
  1004. Primitives_getMonth: function(receiver) {
  1005. var t1 = H.Primitives_lazyAsJsDate(receiver).getMonth() + 1;
  1006. return t1;
  1007. },
  1008. Primitives_getDay: function(receiver) {
  1009. var t1 = H.Primitives_lazyAsJsDate(receiver).getDate() + 0;
  1010. return t1;
  1011. },
  1012. Primitives_getHours: function(receiver) {
  1013. var t1 = H.Primitives_lazyAsJsDate(receiver).getHours() + 0;
  1014. return t1;
  1015. },
  1016. Primitives_getMinutes: function(receiver) {
  1017. var t1 = H.Primitives_lazyAsJsDate(receiver).getMinutes() + 0;
  1018. return t1;
  1019. },
  1020. Primitives_getSeconds: function(receiver) {
  1021. var t1 = H.Primitives_lazyAsJsDate(receiver).getSeconds() + 0;
  1022. return t1;
  1023. },
  1024. Primitives_getMilliseconds: function(receiver) {
  1025. var t1 = H.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0;
  1026. return t1;
  1027. },
  1028. Primitives_functionNoSuchMethod: function($function, positionalArguments, namedArguments) {
  1029. var $arguments, namedArgumentList, t1 = {};
  1030. t1.argumentCount = 0;
  1031. $arguments = [];
  1032. namedArgumentList = [];
  1033. t1.argumentCount = positionalArguments.length;
  1034. C.JSArray_methods.addAll$1($arguments, positionalArguments);
  1035. t1.names = "";
  1036. if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments))
  1037. namedArguments.forEach$1(0, new H.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments));
  1038. "" + t1.argumentCount;
  1039. return J.noSuchMethod$1$($function, new H.JSInvocationMirror(C.Symbol_call, 0, $arguments, namedArgumentList, 0));
  1040. },
  1041. Primitives_applyFunction: function($function, positionalArguments, namedArguments) {
  1042. var t1, $arguments, argumentCount, jsStub;
  1043. if (positionalArguments instanceof Array)
  1044. t1 = namedArguments == null || namedArguments.get$isEmpty(namedArguments);
  1045. else
  1046. t1 = false;
  1047. if (t1) {
  1048. $arguments = positionalArguments;
  1049. argumentCount = $arguments.length;
  1050. if (argumentCount === 0) {
  1051. if (!!$function.call$0)
  1052. return $function.call$0();
  1053. } else if (argumentCount === 1) {
  1054. if (!!$function.call$1)
  1055. return $function.call$1($arguments[0]);
  1056. } else if (argumentCount === 2) {
  1057. if (!!$function.call$2)
  1058. return $function.call$2($arguments[0], $arguments[1]);
  1059. } else if (argumentCount === 3) {
  1060. if (!!$function.call$3)
  1061. return $function.call$3($arguments[0], $arguments[1], $arguments[2]);
  1062. } else if (argumentCount === 4) {
  1063. if (!!$function.call$4)
  1064. return $function.call$4($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
  1065. } else if (argumentCount === 5)
  1066. if (!!$function.call$5)
  1067. return $function.call$5($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]);
  1068. jsStub = $function["call" + "$" + argumentCount];
  1069. if (jsStub != null)
  1070. return jsStub.apply($function, $arguments);
  1071. }
  1072. return H.Primitives__genericApplyFunction2($function, positionalArguments, namedArguments);
  1073. },
  1074. Primitives__genericApplyFunction2: function($function, positionalArguments, namedArguments) {
  1075. var $arguments, argumentCount, requiredParameterCount, defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, keys, _i, defaultValue, used, t2;
  1076. if (positionalArguments != null)
  1077. $arguments = positionalArguments instanceof Array ? positionalArguments : P.List_List$from(positionalArguments, true, type$.dynamic);
  1078. else
  1079. $arguments = [];
  1080. argumentCount = $arguments.length;
  1081. requiredParameterCount = $function.$requiredArgCount;
  1082. if (argumentCount < requiredParameterCount)
  1083. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1084. defaultValuesClosure = $function.$defaultValues;
  1085. t1 = defaultValuesClosure == null;
  1086. defaultValues = !t1 ? defaultValuesClosure() : null;
  1087. interceptor = J.getInterceptor$($function);
  1088. jsFunction = interceptor["call*"];
  1089. if (typeof jsFunction == "string")
  1090. jsFunction = interceptor[jsFunction];
  1091. if (t1) {
  1092. if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
  1093. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1094. if (argumentCount === requiredParameterCount)
  1095. return jsFunction.apply($function, $arguments);
  1096. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1097. }
  1098. if (defaultValues instanceof Array) {
  1099. if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
  1100. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1101. if (argumentCount > requiredParameterCount + defaultValues.length)
  1102. return H.Primitives_functionNoSuchMethod($function, $arguments, null);
  1103. C.JSArray_methods.addAll$1($arguments, defaultValues.slice(argumentCount - requiredParameterCount));
  1104. return jsFunction.apply($function, $arguments);
  1105. } else {
  1106. if (argumentCount > requiredParameterCount)
  1107. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1108. keys = Object.keys(defaultValues);
  1109. if (namedArguments == null)
  1110. for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
  1111. defaultValue = defaultValues[keys[_i]];
  1112. if (C.C__Required === defaultValue)
  1113. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1114. C.JSArray_methods.add$1($arguments, defaultValue);
  1115. }
  1116. else {
  1117. for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
  1118. t2 = keys[_i];
  1119. if (namedArguments.containsKey$1(t2)) {
  1120. ++used;
  1121. C.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2));
  1122. } else {
  1123. defaultValue = defaultValues[t2];
  1124. if (C.C__Required === defaultValue)
  1125. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1126. C.JSArray_methods.add$1($arguments, defaultValue);
  1127. }
  1128. }
  1129. if (used !== namedArguments.get$length(namedArguments))
  1130. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1131. }
  1132. return jsFunction.apply($function, $arguments);
  1133. }
  1134. },
  1135. diagnoseIndexError: function(indexable, index) {
  1136. var $length, _s5_ = "index";
  1137. if (!H._isInt(index))
  1138. return new P.ArgumentError(true, index, _s5_, null);
  1139. $length = J.get$length$asx(indexable);
  1140. if (index < 0 || index >= $length)
  1141. return P.IndexError$(index, indexable, _s5_, null, $length);
  1142. return P.RangeError$value(index, _s5_, null);
  1143. },
  1144. diagnoseRangeError: function(start, end, $length) {
  1145. if (start < 0 || start > $length)
  1146. return P.RangeError$range(start, 0, $length, "start", null);
  1147. if (end != null)
  1148. if (end < start || end > $length)
  1149. return P.RangeError$range(end, start, $length, "end", null);
  1150. return new P.ArgumentError(true, end, "end", null);
  1151. },
  1152. argumentErrorValue: function(object) {
  1153. return new P.ArgumentError(true, object, null, null);
  1154. },
  1155. checkNum: function(value) {
  1156. if (typeof value != "number")
  1157. throw H.wrapException(H.argumentErrorValue(value));
  1158. return value;
  1159. },
  1160. wrapException: function(ex) {
  1161. var wrapper, t1;
  1162. if (ex == null)
  1163. ex = new P.NullThrownError();
  1164. wrapper = new Error();
  1165. wrapper.dartException = ex;
  1166. t1 = H.toStringWrapper;
  1167. if ("defineProperty" in Object) {
  1168. Object.defineProperty(wrapper, "message", {get: t1});
  1169. wrapper.name = "";
  1170. } else
  1171. wrapper.toString = t1;
  1172. return wrapper;
  1173. },
  1174. toStringWrapper: function() {
  1175. return J.toString$0$(this.dartException);
  1176. },
  1177. throwExpression: function(ex) {
  1178. throw H.wrapException(ex);
  1179. },
  1180. throwConcurrentModificationError: function(collection) {
  1181. throw H.wrapException(P.ConcurrentModificationError$(collection));
  1182. },
  1183. TypeErrorDecoder_extractPattern: function(message) {
  1184. var match, $arguments, argumentsExpr, expr, method, receiver;
  1185. message = H.quoteStringForRegExp(message.replace(String({}), '$receiver$'));
  1186. match = message.match(/\\\$[a-zA-Z]+\\\$/g);
  1187. if (match == null)
  1188. match = H.setRuntimeTypeInfo([], type$.JSArray_String);
  1189. $arguments = match.indexOf("\\$arguments\\$");
  1190. argumentsExpr = match.indexOf("\\$argumentsExpr\\$");
  1191. expr = match.indexOf("\\$expr\\$");
  1192. method = match.indexOf("\\$method\\$");
  1193. receiver = match.indexOf("\\$receiver\\$");
  1194. return new H.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);
  1195. },
  1196. TypeErrorDecoder_provokeCallErrorOn: function(expression) {
  1197. return function($expr$) {
  1198. var $argumentsExpr$ = '$arguments$';
  1199. try {
  1200. $expr$.$method$($argumentsExpr$);
  1201. } catch (e) {
  1202. return e.message;
  1203. }
  1204. }(expression);
  1205. },
  1206. TypeErrorDecoder_provokePropertyErrorOn: function(expression) {
  1207. return function($expr$) {
  1208. try {
  1209. $expr$.$method$;
  1210. } catch (e) {
  1211. return e.message;
  1212. }
  1213. }(expression);
  1214. },
  1215. NullError$: function(_message, match) {
  1216. return new H.NullError(_message, match == null ? null : match.method);
  1217. },
  1218. JsNoSuchMethodError$: function(_message, match) {
  1219. var t1 = match == null,
  1220. t2 = t1 ? null : match.method;
  1221. return new H.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
  1222. },
  1223. unwrapException: function(ex) {
  1224. if (ex == null)
  1225. return new H.NullThrownFromJavaScriptException(ex);
  1226. if (ex instanceof H.ExceptionAndStackTrace)
  1227. return H.saveStackTrace(ex, ex.dartException);
  1228. if (typeof ex !== "object")
  1229. return ex;
  1230. if ("dartException" in ex)
  1231. return H.saveStackTrace(ex, ex.dartException);
  1232. return H._unwrapNonDartException(ex);
  1233. },
  1234. saveStackTrace: function(ex, error) {
  1235. if (type$.Error._is(error))
  1236. if (error.$thrownJsError == null)
  1237. error.$thrownJsError = ex;
  1238. return error;
  1239. },
  1240. _unwrapNonDartException: function(ex) {
  1241. var message, number, ieErrorCode, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match, t1, _null = null;
  1242. if (!("message" in ex))
  1243. return ex;
  1244. message = ex.message;
  1245. if ("number" in ex && typeof ex.number == "number") {
  1246. number = ex.number;
  1247. ieErrorCode = number & 65535;
  1248. if ((C.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10)
  1249. switch (ieErrorCode) {
  1250. case 438:
  1251. return H.saveStackTrace(ex, H.JsNoSuchMethodError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
  1252. case 445:
  1253. case 5007:
  1254. return H.saveStackTrace(ex, H.NullError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
  1255. }
  1256. }
  1257. if (ex instanceof TypeError) {
  1258. nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern();
  1259. notClosure = $.$get$TypeErrorDecoder_notClosurePattern();
  1260. nullCall = $.$get$TypeErrorDecoder_nullCallPattern();
  1261. nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern();
  1262. undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern();
  1263. undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern();
  1264. nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern();
  1265. $.$get$TypeErrorDecoder_nullLiteralPropertyPattern();
  1266. undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern();
  1267. undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern();
  1268. match = nsme.matchTypeError$1(message);
  1269. if (match != null)
  1270. return H.saveStackTrace(ex, H.JsNoSuchMethodError$(message, match));
  1271. else {
  1272. match = notClosure.matchTypeError$1(message);
  1273. if (match != null) {
  1274. match.method = "call";
  1275. return H.saveStackTrace(ex, H.JsNoSuchMethodError$(message, match));
  1276. } else {
  1277. match = nullCall.matchTypeError$1(message);
  1278. if (match == null) {
  1279. match = nullLiteralCall.matchTypeError$1(message);
  1280. if (match == null) {
  1281. match = undefCall.matchTypeError$1(message);
  1282. if (match == null) {
  1283. match = undefLiteralCall.matchTypeError$1(message);
  1284. if (match == null) {
  1285. match = nullProperty.matchTypeError$1(message);
  1286. if (match == null) {
  1287. match = nullLiteralCall.matchTypeError$1(message);
  1288. if (match == null) {
  1289. match = undefProperty.matchTypeError$1(message);
  1290. if (match == null) {
  1291. match = undefLiteralProperty.matchTypeError$1(message);
  1292. t1 = match != null;
  1293. } else
  1294. t1 = true;
  1295. } else
  1296. t1 = true;
  1297. } else
  1298. t1 = true;
  1299. } else
  1300. t1 = true;
  1301. } else
  1302. t1 = true;
  1303. } else
  1304. t1 = true;
  1305. } else
  1306. t1 = true;
  1307. if (t1)
  1308. return H.saveStackTrace(ex, H.NullError$(message, match));
  1309. }
  1310. }
  1311. return H.saveStackTrace(ex, new H.UnknownJsTypeError(typeof message == "string" ? message : ""));
  1312. }
  1313. if (ex instanceof RangeError) {
  1314. if (typeof message == "string" && message.indexOf("call stack") !== -1)
  1315. return new P.StackOverflowError();
  1316. message = function(ex) {
  1317. try {
  1318. return String(ex);
  1319. } catch (e) {
  1320. }
  1321. return null;
  1322. }(ex);
  1323. return H.saveStackTrace(ex, new P.ArgumentError(false, _null, _null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message));
  1324. }
  1325. if (typeof InternalError == "function" && ex instanceof InternalError)
  1326. if (typeof message == "string" && message === "too much recursion")
  1327. return new P.StackOverflowError();
  1328. return ex;
  1329. },
  1330. getTraceFromException: function(exception) {
  1331. var trace;
  1332. if (exception instanceof H.ExceptionAndStackTrace)
  1333. return exception.stackTrace;
  1334. if (exception == null)
  1335. return new H._StackTrace(exception);
  1336. trace = exception.$cachedTrace;
  1337. if (trace != null)
  1338. return trace;
  1339. return exception.$cachedTrace = new H._StackTrace(exception);
  1340. },
  1341. objectHashCode: function(object) {
  1342. if (object == null || typeof object != 'object')
  1343. return J.get$hashCode$(object);
  1344. else
  1345. return H.Primitives_objectHashCode(object);
  1346. },
  1347. fillLiteralMap: function(keyValuePairs, result) {
  1348. var index, index0, index1,
  1349. $length = keyValuePairs.length;
  1350. for (index = 0; index < $length; index = index1) {
  1351. index0 = index + 1;
  1352. index1 = index0 + 1;
  1353. result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]);
  1354. }
  1355. return result;
  1356. },
  1357. fillLiteralSet: function(values, result) {
  1358. var index,
  1359. $length = values.length;
  1360. for (index = 0; index < $length; ++index)
  1361. result.add$1(0, values[index]);
  1362. return result;
  1363. },
  1364. invokeClosure: function(closure, numberOfArguments, arg1, arg2, arg3, arg4) {
  1365. switch (numberOfArguments) {
  1366. case 0:
  1367. return closure.call$0();
  1368. case 1:
  1369. return closure.call$1(arg1);
  1370. case 2:
  1371. return closure.call$2(arg1, arg2);
  1372. case 3:
  1373. return closure.call$3(arg1, arg2, arg3);
  1374. case 4:
  1375. return closure.call$4(arg1, arg2, arg3, arg4);
  1376. }
  1377. throw H.wrapException(new P._Exception("Unsupported number of arguments for wrapped closure"));
  1378. },
  1379. convertDartClosureToJS: function(closure, arity) {
  1380. var $function;
  1381. if (closure == null)
  1382. return null;
  1383. $function = closure.$identity;
  1384. if (!!$function)
  1385. return $function;
  1386. $function = function(closure, arity, invoke) {
  1387. return function(a1, a2, a3, a4) {
  1388. return invoke(closure, arity, a1, a2, a3, a4);
  1389. };
  1390. }(closure, arity, H.invokeClosure);
  1391. closure.$identity = $function;
  1392. return $function;
  1393. },
  1394. Closure_fromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, propertyName) {
  1395. var $constructor, t1, trampoline, applyTrampoline, i, stub, stubCallName,
  1396. $function = functions[0],
  1397. callName = $function.$callName,
  1398. $prototype = isStatic ? Object.create(new H.StaticClosure().constructor.prototype) : Object.create(new H.BoundClosure(null, null, null, "").constructor.prototype);
  1399. $prototype.$initialize = $prototype.constructor;
  1400. if (isStatic)
  1401. $constructor = function static_tear_off() {
  1402. this.$initialize();
  1403. };
  1404. else {
  1405. t1 = $.Closure_functionCounter;
  1406. $.Closure_functionCounter = t1 + 1;
  1407. t1 = new Function("a,b,c,d" + t1, "this.$initialize(a,b,c,d" + t1 + ")");
  1408. $constructor = t1;
  1409. }
  1410. $prototype.constructor = $constructor;
  1411. $constructor.prototype = $prototype;
  1412. if (!isStatic) {
  1413. trampoline = H.Closure_forwardCallTo(receiver, $function, isIntercepted);
  1414. trampoline.$reflectionInfo = reflectionInfo;
  1415. } else {
  1416. $prototype.$static_name = propertyName;
  1417. trampoline = $function;
  1418. }
  1419. $prototype.$signature = H.Closure__computeSignatureFunctionNewRti(reflectionInfo, isStatic, isIntercepted);
  1420. $prototype[callName] = trampoline;
  1421. for (applyTrampoline = trampoline, i = 1; i < functions.length; ++i) {
  1422. stub = functions[i];
  1423. stubCallName = stub.$callName;
  1424. if (stubCallName != null) {
  1425. stub = isStatic ? stub : H.Closure_forwardCallTo(receiver, stub, isIntercepted);
  1426. $prototype[stubCallName] = stub;
  1427. }
  1428. if (i === applyTrampolineIndex) {
  1429. stub.$reflectionInfo = reflectionInfo;
  1430. applyTrampoline = stub;
  1431. }
  1432. }
  1433. $prototype["call*"] = applyTrampoline;
  1434. $prototype.$requiredArgCount = $function.$requiredArgCount;
  1435. $prototype.$defaultValues = $function.$defaultValues;
  1436. return $constructor;
  1437. },
  1438. Closure__computeSignatureFunctionNewRti: function(functionType, isStatic, isIntercepted) {
  1439. var typeEvalMethod;
  1440. if (typeof functionType == "number")
  1441. return function(getType, t) {
  1442. return function() {
  1443. return getType(t);
  1444. };
  1445. }(H.getTypeFromTypesTable, functionType);
  1446. if (typeof functionType == "string") {
  1447. if (isStatic)
  1448. throw H.wrapException("Cannot compute signature for static tearoff.");
  1449. typeEvalMethod = isIntercepted ? H.BoundClosure_evalRecipeIntercepted : H.BoundClosure_evalRecipe;
  1450. return function(recipe, evalOnReceiver) {
  1451. return function() {
  1452. return evalOnReceiver(this, recipe);
  1453. };
  1454. }(functionType, typeEvalMethod);
  1455. }
  1456. throw H.wrapException("Error in functionType of tearoff");
  1457. },
  1458. Closure_cspForwardCall: function(arity, isSuperCall, stubName, $function) {
  1459. var getSelf = H.BoundClosure_selfOf;
  1460. switch (isSuperCall ? -1 : arity) {
  1461. case 0:
  1462. return function(n, S) {
  1463. return function() {
  1464. return S(this)[n]();
  1465. };
  1466. }(stubName, getSelf);
  1467. case 1:
  1468. return function(n, S) {
  1469. return function(a) {
  1470. return S(this)[n](a);
  1471. };
  1472. }(stubName, getSelf);
  1473. case 2:
  1474. return function(n, S) {
  1475. return function(a, b) {
  1476. return S(this)[n](a, b);
  1477. };
  1478. }(stubName, getSelf);
  1479. case 3:
  1480. return function(n, S) {
  1481. return function(a, b, c) {
  1482. return S(this)[n](a, b, c);
  1483. };
  1484. }(stubName, getSelf);
  1485. case 4:
  1486. return function(n, S) {
  1487. return function(a, b, c, d) {
  1488. return S(this)[n](a, b, c, d);
  1489. };
  1490. }(stubName, getSelf);
  1491. case 5:
  1492. return function(n, S) {
  1493. return function(a, b, c, d, e) {
  1494. return S(this)[n](a, b, c, d, e);
  1495. };
  1496. }(stubName, getSelf);
  1497. default:
  1498. return function(f, s) {
  1499. return function() {
  1500. return f.apply(s(this), arguments);
  1501. };
  1502. }($function, getSelf);
  1503. }
  1504. },
  1505. Closure_forwardCallTo: function(receiver, $function, isIntercepted) {
  1506. var stubName, arity, lookedUpFunction, t1, t2, selfName, $arguments;
  1507. if (isIntercepted)
  1508. return H.Closure_forwardInterceptedCallTo(receiver, $function);
  1509. stubName = $function.$stubName;
  1510. arity = $function.length;
  1511. lookedUpFunction = receiver[stubName];
  1512. t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
  1513. t2 = !t1 || arity >= 27;
  1514. if (t2)
  1515. return H.Closure_cspForwardCall(arity, !t1, stubName, $function);
  1516. if (arity === 0) {
  1517. t1 = $.Closure_functionCounter;
  1518. $.Closure_functionCounter = t1 + 1;
  1519. selfName = "self" + H.S(t1);
  1520. return new Function("return function(){var " + selfName + " = this." + H.S(H.BoundClosure_selfFieldName()) + ";return " + selfName + "." + H.S(stubName) + "();}")();
  1521. }
  1522. $arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity).join(",");
  1523. t1 = $.Closure_functionCounter;
  1524. $.Closure_functionCounter = t1 + 1;
  1525. $arguments += H.S(t1);
  1526. return new Function("return function(" + $arguments + "){return this." + H.S(H.BoundClosure_selfFieldName()) + "." + H.S(stubName) + "(" + $arguments + ");}")();
  1527. },
  1528. Closure_cspForwardInterceptedCall: function(arity, isSuperCall, $name, $function) {
  1529. var getSelf = H.BoundClosure_selfOf,
  1530. getReceiver = H.BoundClosure_receiverOf;
  1531. switch (isSuperCall ? -1 : arity) {
  1532. case 0:
  1533. throw H.wrapException(new H.RuntimeError("Intercepted function with no arguments."));
  1534. case 1:
  1535. return function(n, s, r) {
  1536. return function() {
  1537. return s(this)[n](r(this));
  1538. };
  1539. }($name, getSelf, getReceiver);
  1540. case 2:
  1541. return function(n, s, r) {
  1542. return function(a) {
  1543. return s(this)[n](r(this), a);
  1544. };
  1545. }($name, getSelf, getReceiver);
  1546. case 3:
  1547. return function(n, s, r) {
  1548. return function(a, b) {
  1549. return s(this)[n](r(this), a, b);
  1550. };
  1551. }($name, getSelf, getReceiver);
  1552. case 4:
  1553. return function(n, s, r) {
  1554. return function(a, b, c) {
  1555. return s(this)[n](r(this), a, b, c);
  1556. };
  1557. }($name, getSelf, getReceiver);
  1558. case 5:
  1559. return function(n, s, r) {
  1560. return function(a, b, c, d) {
  1561. return s(this)[n](r(this), a, b, c, d);
  1562. };
  1563. }($name, getSelf, getReceiver);
  1564. case 6:
  1565. return function(n, s, r) {
  1566. return function(a, b, c, d, e) {
  1567. return s(this)[n](r(this), a, b, c, d, e);
  1568. };
  1569. }($name, getSelf, getReceiver);
  1570. default:
  1571. return function(f, s, r, a) {
  1572. return function() {
  1573. a = [r(this)];
  1574. Array.prototype.push.apply(a, arguments);
  1575. return f.apply(s(this), a);
  1576. };
  1577. }($function, getSelf, getReceiver);
  1578. }
  1579. },
  1580. Closure_forwardInterceptedCallTo: function(receiver, $function) {
  1581. var stubName, arity, lookedUpFunction, t1, t2, $arguments,
  1582. selfField = H.BoundClosure_selfFieldName(),
  1583. receiverField = $.BoundClosure_receiverFieldNameCache;
  1584. if (receiverField == null)
  1585. receiverField = $.BoundClosure_receiverFieldNameCache = H.BoundClosure_computeFieldNamed("receiver");
  1586. stubName = $function.$stubName;
  1587. arity = $function.length;
  1588. lookedUpFunction = receiver[stubName];
  1589. t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
  1590. t2 = !t1 || arity >= 28;
  1591. if (t2)
  1592. return H.Closure_cspForwardInterceptedCall(arity, !t1, stubName, $function);
  1593. if (arity === 1) {
  1594. t1 = "return function(){return this." + H.S(selfField) + "." + H.S(stubName) + "(this." + receiverField + ");";
  1595. t2 = $.Closure_functionCounter;
  1596. $.Closure_functionCounter = t2 + 1;
  1597. return new Function(t1 + H.S(t2) + "}")();
  1598. }
  1599. $arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity - 1).join(",");
  1600. t1 = "return function(" + $arguments + "){return this." + H.S(selfField) + "." + H.S(stubName) + "(this." + receiverField + ", " + $arguments + ");";
  1601. t2 = $.Closure_functionCounter;
  1602. $.Closure_functionCounter = t2 + 1;
  1603. return new Function(t1 + H.S(t2) + "}")();
  1604. },
  1605. closureFromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, $name) {
  1606. return H.Closure_fromTearOff(receiver, functions, applyTrampolineIndex, reflectionInfo, !!isStatic, !!isIntercepted, $name);
  1607. },
  1608. BoundClosure_evalRecipe: function(closure, recipe) {
  1609. return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._self), recipe);
  1610. },
  1611. BoundClosure_evalRecipeIntercepted: function(closure, recipe) {
  1612. return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._receiver), recipe);
  1613. },
  1614. BoundClosure_selfOf: function(closure) {
  1615. return closure._self;
  1616. },
  1617. BoundClosure_receiverOf: function(closure) {
  1618. return closure._receiver;
  1619. },
  1620. BoundClosure_selfFieldName: function() {
  1621. var t1 = $.BoundClosure_selfFieldNameCache;
  1622. return t1 == null ? $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self") : t1;
  1623. },
  1624. BoundClosure_computeFieldNamed: function(fieldName) {
  1625. var t1, i, $name,
  1626. template = new H.BoundClosure("self", "target", "receiver", "name"),
  1627. names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template));
  1628. for (t1 = names.length, i = 0; i < t1; ++i) {
  1629. $name = names[i];
  1630. if (template[$name] === fieldName)
  1631. return $name;
  1632. }
  1633. throw H.wrapException(P.ArgumentError$("Field name " + fieldName + " not found."));
  1634. },
  1635. throwCyclicInit: function(staticName) {
  1636. throw H.wrapException(new P.CyclicInitializationError(staticName));
  1637. },
  1638. getIsolateAffinityTag: function($name) {
  1639. return init.getIsolateTag($name);
  1640. },
  1641. defineProperty: function(obj, property, value) {
  1642. Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true});
  1643. },
  1644. lookupAndCacheInterceptor: function(obj) {
  1645. var interceptor, interceptorClass, altTag, mark, t1,
  1646. tag = $.getTagFunction.call$1(obj),
  1647. record = $.dispatchRecordsForInstanceTags[tag];
  1648. if (record != null) {
  1649. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1650. return record.i;
  1651. }
  1652. interceptor = $.interceptorsForUncacheableTags[tag];
  1653. if (interceptor != null)
  1654. return interceptor;
  1655. interceptorClass = init.interceptorsByTag[tag];
  1656. if (interceptorClass == null) {
  1657. altTag = $.alternateTagFunction.call$2(obj, tag);
  1658. if (altTag != null) {
  1659. record = $.dispatchRecordsForInstanceTags[altTag];
  1660. if (record != null) {
  1661. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1662. return record.i;
  1663. }
  1664. interceptor = $.interceptorsForUncacheableTags[altTag];
  1665. if (interceptor != null)
  1666. return interceptor;
  1667. interceptorClass = init.interceptorsByTag[altTag];
  1668. tag = altTag;
  1669. }
  1670. }
  1671. if (interceptorClass == null)
  1672. return null;
  1673. interceptor = interceptorClass.prototype;
  1674. mark = tag[0];
  1675. if (mark === "!") {
  1676. record = H.makeLeafDispatchRecord(interceptor);
  1677. $.dispatchRecordsForInstanceTags[tag] = record;
  1678. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1679. return record.i;
  1680. }
  1681. if (mark === "~") {
  1682. $.interceptorsForUncacheableTags[tag] = interceptor;
  1683. return interceptor;
  1684. }
  1685. if (mark === "-") {
  1686. t1 = H.makeLeafDispatchRecord(interceptor);
  1687. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  1688. return t1.i;
  1689. }
  1690. if (mark === "+")
  1691. return H.patchInteriorProto(obj, interceptor);
  1692. if (mark === "*")
  1693. throw H.wrapException(P.UnimplementedError$(tag));
  1694. if (init.leafTags[tag] === true) {
  1695. t1 = H.makeLeafDispatchRecord(interceptor);
  1696. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  1697. return t1.i;
  1698. } else
  1699. return H.patchInteriorProto(obj, interceptor);
  1700. },
  1701. patchInteriorProto: function(obj, interceptor) {
  1702. var proto = Object.getPrototypeOf(obj);
  1703. Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true});
  1704. return interceptor;
  1705. },
  1706. makeLeafDispatchRecord: function(interceptor) {
  1707. return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior);
  1708. },
  1709. makeDefaultDispatchRecord: function(tag, interceptorClass, proto) {
  1710. var interceptor = interceptorClass.prototype;
  1711. if (init.leafTags[tag] === true)
  1712. return H.makeLeafDispatchRecord(interceptor);
  1713. else
  1714. return J.makeDispatchRecord(interceptor, proto, null, null);
  1715. },
  1716. initNativeDispatch: function() {
  1717. if (true === $.initNativeDispatchFlag)
  1718. return;
  1719. $.initNativeDispatchFlag = true;
  1720. H.initNativeDispatchContinue();
  1721. },
  1722. initNativeDispatchContinue: function() {
  1723. var map, tags, fun, i, tag, proto, record, interceptorClass;
  1724. $.dispatchRecordsForInstanceTags = Object.create(null);
  1725. $.interceptorsForUncacheableTags = Object.create(null);
  1726. H.initHooks();
  1727. map = init.interceptorsByTag;
  1728. tags = Object.getOwnPropertyNames(map);
  1729. if (typeof window != "undefined") {
  1730. window;
  1731. fun = function() {
  1732. };
  1733. for (i = 0; i < tags.length; ++i) {
  1734. tag = tags[i];
  1735. proto = $.prototypeForTagFunction.call$1(tag);
  1736. if (proto != null) {
  1737. record = H.makeDefaultDispatchRecord(tag, map[tag], proto);
  1738. if (record != null) {
  1739. Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1740. fun.prototype = proto;
  1741. }
  1742. }
  1743. }
  1744. }
  1745. for (i = 0; i < tags.length; ++i) {
  1746. tag = tags[i];
  1747. if (/^[A-Za-z_]/.test(tag)) {
  1748. interceptorClass = map[tag];
  1749. map["!" + tag] = interceptorClass;
  1750. map["~" + tag] = interceptorClass;
  1751. map["-" + tag] = interceptorClass;
  1752. map["+" + tag] = interceptorClass;
  1753. map["*" + tag] = interceptorClass;
  1754. }
  1755. }
  1756. },
  1757. initHooks: function() {
  1758. var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag,
  1759. hooks = C.C_JS_CONST0();
  1760. hooks = H.applyHooksTransformer(C.C_JS_CONST1, H.applyHooksTransformer(C.C_JS_CONST2, H.applyHooksTransformer(C.C_JS_CONST3, H.applyHooksTransformer(C.C_JS_CONST3, H.applyHooksTransformer(C.C_JS_CONST4, H.applyHooksTransformer(C.C_JS_CONST5, H.applyHooksTransformer(C.C_JS_CONST6(C.C_JS_CONST), hooks)))))));
  1761. if (typeof dartNativeDispatchHooksTransformer != "undefined") {
  1762. transformers = dartNativeDispatchHooksTransformer;
  1763. if (typeof transformers == "function")
  1764. transformers = [transformers];
  1765. if (transformers.constructor == Array)
  1766. for (i = 0; i < transformers.length; ++i) {
  1767. transformer = transformers[i];
  1768. if (typeof transformer == "function")
  1769. hooks = transformer(hooks) || hooks;
  1770. }
  1771. }
  1772. getTag = hooks.getTag;
  1773. getUnknownTag = hooks.getUnknownTag;
  1774. prototypeForTag = hooks.prototypeForTag;
  1775. $.getTagFunction = new H.initHooks_closure(getTag);
  1776. $.alternateTagFunction = new H.initHooks_closure0(getUnknownTag);
  1777. $.prototypeForTagFunction = new H.initHooks_closure1(prototypeForTag);
  1778. },
  1779. applyHooksTransformer: function(transformer, hooks) {
  1780. return transformer(hooks) || hooks;
  1781. },
  1782. JSSyntaxRegExp_makeNative: function(source, multiLine, caseSensitive, unicode, dotAll, global) {
  1783. var m = multiLine ? "m" : "",
  1784. i = caseSensitive ? "" : "i",
  1785. u = unicode ? "u" : "",
  1786. s = dotAll ? "s" : "",
  1787. g = global ? "g" : "",
  1788. regexp = function(source, modifiers) {
  1789. try {
  1790. return new RegExp(source, modifiers);
  1791. } catch (e) {
  1792. return e;
  1793. }
  1794. }(source, m + i + u + s + g);
  1795. if (regexp instanceof RegExp)
  1796. return regexp;
  1797. throw H.wrapException(P.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null));
  1798. },
  1799. stringContainsUnchecked: function(receiver, other, startIndex) {
  1800. var t1, t2;
  1801. if (typeof other == "string")
  1802. return receiver.indexOf(other, startIndex) >= 0;
  1803. else if (other instanceof H.JSSyntaxRegExp) {
  1804. t1 = C.JSString_methods.substring$1(receiver, startIndex);
  1805. t2 = other._nativeRegExp;
  1806. return t2.test(t1);
  1807. } else {
  1808. t1 = J.allMatches$1$s(other, C.JSString_methods.substring$1(receiver, startIndex));
  1809. return !t1.get$isEmpty(t1);
  1810. }
  1811. },
  1812. escapeReplacement: function(replacement) {
  1813. if (replacement.indexOf("$", 0) >= 0)
  1814. return replacement.replace(/\$/g, "$$$$");
  1815. return replacement;
  1816. },
  1817. stringReplaceFirstRE: function(receiver, regexp, replacement, startIndex) {
  1818. var match = regexp._execGlobal$2(receiver, startIndex);
  1819. if (match == null)
  1820. return receiver;
  1821. return H.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(match), replacement);
  1822. },
  1823. quoteStringForRegExp: function(string) {
  1824. if (/[[\]{}()*+?.\\^$|]/.test(string))
  1825. return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&");
  1826. return string;
  1827. },
  1828. stringReplaceAllUnchecked: function(receiver, pattern, replacement) {
  1829. var nativeRegexp;
  1830. if (typeof pattern == "string")
  1831. return H.stringReplaceAllUncheckedString(receiver, pattern, replacement);
  1832. if (pattern instanceof H.JSSyntaxRegExp) {
  1833. nativeRegexp = pattern.get$_nativeGlobalVersion();
  1834. nativeRegexp.lastIndex = 0;
  1835. return receiver.replace(nativeRegexp, H.escapeReplacement(replacement));
  1836. }
  1837. if (pattern == null)
  1838. H.throwExpression(H.argumentErrorValue(pattern));
  1839. throw H.wrapException("String.replaceAll(Pattern) UNIMPLEMENTED");
  1840. },
  1841. stringReplaceAllUncheckedString: function(receiver, pattern, replacement) {
  1842. var $length, t1, i, index;
  1843. if (pattern === "") {
  1844. if (receiver === "")
  1845. return replacement;
  1846. $length = receiver.length;
  1847. for (t1 = replacement, i = 0; i < $length; ++i)
  1848. t1 = t1 + receiver[i] + replacement;
  1849. return t1.charCodeAt(0) == 0 ? t1 : t1;
  1850. }
  1851. index = receiver.indexOf(pattern, 0);
  1852. if (index < 0)
  1853. return receiver;
  1854. if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0)
  1855. return receiver.split(pattern).join(replacement);
  1856. return receiver.replace(new RegExp(H.quoteStringForRegExp(pattern), 'g'), H.escapeReplacement(replacement));
  1857. },
  1858. stringReplaceFirstUnchecked: function(receiver, pattern, replacement, startIndex) {
  1859. var index, t1, matches, match;
  1860. if (typeof pattern == "string") {
  1861. index = receiver.indexOf(pattern, startIndex);
  1862. if (index < 0)
  1863. return receiver;
  1864. return H.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
  1865. }
  1866. if (pattern instanceof H.JSSyntaxRegExp)
  1867. return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, H.escapeReplacement(replacement)) : H.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
  1868. if (pattern == null)
  1869. H.throwExpression(H.argumentErrorValue(pattern));
  1870. t1 = J.allMatches$2$s(pattern, receiver, startIndex);
  1871. matches = t1.get$iterator(t1);
  1872. if (!matches.moveNext$0())
  1873. return receiver;
  1874. match = matches.get$current(matches);
  1875. return C.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement);
  1876. },
  1877. stringReplaceRangeUnchecked: function(receiver, start, end, replacement) {
  1878. var prefix = receiver.substring(0, start),
  1879. suffix = receiver.substring(end);
  1880. return prefix + H.S(replacement) + suffix;
  1881. },
  1882. ConstantMapView: function ConstantMapView(t0, t1) {
  1883. this._collection$_map = t0;
  1884. this.$ti = t1;
  1885. },
  1886. ConstantMap: function ConstantMap() {
  1887. },
  1888. ConstantStringMap: function ConstantStringMap(t0, t1, t2, t3) {
  1889. var _ = this;
  1890. _.__js_helper$_length = t0;
  1891. _._jsObject = t1;
  1892. _.__js_helper$_keys = t2;
  1893. _.$ti = t3;
  1894. },
  1895. ConstantStringMap_values_closure: function ConstantStringMap_values_closure(t0) {
  1896. this.$this = t0;
  1897. },
  1898. ConstantProtoMap: function ConstantProtoMap(t0, t1, t2, t3, t4) {
  1899. var _ = this;
  1900. _._protoValue = t0;
  1901. _.__js_helper$_length = t1;
  1902. _._jsObject = t2;
  1903. _.__js_helper$_keys = t3;
  1904. _.$ti = t4;
  1905. },
  1906. _ConstantMapKeyIterable: function _ConstantMapKeyIterable(t0, t1) {
  1907. this._map = t0;
  1908. this.$ti = t1;
  1909. },
  1910. Instantiation: function Instantiation() {
  1911. },
  1912. Instantiation1: function Instantiation1(t0, t1) {
  1913. this._genericClosure = t0;
  1914. this.$ti = t1;
  1915. },
  1916. JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) {
  1917. var _ = this;
  1918. _.__js_helper$_memberName = t0;
  1919. _.__js_helper$_kind = t1;
  1920. _._arguments = t2;
  1921. _._namedArgumentNames = t3;
  1922. _._typeArgumentCount = t4;
  1923. },
  1924. Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) {
  1925. this._box_0 = t0;
  1926. this.namedArgumentList = t1;
  1927. this.$arguments = t2;
  1928. },
  1929. TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) {
  1930. var _ = this;
  1931. _._pattern = t0;
  1932. _._arguments = t1;
  1933. _._argumentsExpr = t2;
  1934. _._expr = t3;
  1935. _._method = t4;
  1936. _._receiver = t5;
  1937. },
  1938. NullError: function NullError(t0, t1) {
  1939. this.__js_helper$_message = t0;
  1940. this._method = t1;
  1941. },
  1942. JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) {
  1943. this.__js_helper$_message = t0;
  1944. this._method = t1;
  1945. this._receiver = t2;
  1946. },
  1947. UnknownJsTypeError: function UnknownJsTypeError(t0) {
  1948. this.__js_helper$_message = t0;
  1949. },
  1950. NullThrownFromJavaScriptException: function NullThrownFromJavaScriptException(t0) {
  1951. this._irritant = t0;
  1952. },
  1953. ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) {
  1954. this.dartException = t0;
  1955. this.stackTrace = t1;
  1956. },
  1957. _StackTrace: function _StackTrace(t0) {
  1958. this._exception = t0;
  1959. this._trace = null;
  1960. },
  1961. Closure: function Closure() {
  1962. },
  1963. TearOffClosure: function TearOffClosure() {
  1964. },
  1965. StaticClosure: function StaticClosure() {
  1966. },
  1967. BoundClosure: function BoundClosure(t0, t1, t2, t3) {
  1968. var _ = this;
  1969. _._self = t0;
  1970. _._target = t1;
  1971. _._receiver = t2;
  1972. _.__js_helper$_name = t3;
  1973. },
  1974. RuntimeError: function RuntimeError(t0) {
  1975. this.message = t0;
  1976. },
  1977. _Required: function _Required() {
  1978. },
  1979. JsLinkedHashMap: function JsLinkedHashMap(t0) {
  1980. var _ = this;
  1981. _.__js_helper$_length = 0;
  1982. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  1983. _._modifications = 0;
  1984. _.$ti = t0;
  1985. },
  1986. JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) {
  1987. this.$this = t0;
  1988. },
  1989. JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) {
  1990. this.$this = t0;
  1991. },
  1992. LinkedHashMapCell: function LinkedHashMapCell(t0, t1) {
  1993. var _ = this;
  1994. _.hashMapCellKey = t0;
  1995. _.hashMapCellValue = t1;
  1996. _._previous = _._next = null;
  1997. },
  1998. LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) {
  1999. this._map = t0;
  2000. this.$ti = t1;
  2001. },
  2002. LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) {
  2003. var _ = this;
  2004. _._map = t0;
  2005. _._modifications = t1;
  2006. _.__js_helper$_current = _._cell = null;
  2007. },
  2008. initHooks_closure: function initHooks_closure(t0) {
  2009. this.getTag = t0;
  2010. },
  2011. initHooks_closure0: function initHooks_closure0(t0) {
  2012. this.getUnknownTag = t0;
  2013. },
  2014. initHooks_closure1: function initHooks_closure1(t0) {
  2015. this.prototypeForTag = t0;
  2016. },
  2017. JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) {
  2018. var _ = this;
  2019. _.pattern = t0;
  2020. _._nativeRegExp = t1;
  2021. _._nativeAnchoredRegExp = _._nativeGlobalRegExp = null;
  2022. },
  2023. _MatchImplementation: function _MatchImplementation(t0) {
  2024. this._match = t0;
  2025. },
  2026. _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) {
  2027. this._re = t0;
  2028. this.__js_helper$_string = t1;
  2029. this.__js_helper$_start = t2;
  2030. },
  2031. _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) {
  2032. var _ = this;
  2033. _._regExp = t0;
  2034. _.__js_helper$_string = t1;
  2035. _._nextIndex = t2;
  2036. _.__js_helper$_current = null;
  2037. },
  2038. StringMatch: function StringMatch(t0, t1) {
  2039. this.start = t0;
  2040. this.pattern = t1;
  2041. },
  2042. _StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) {
  2043. this._input = t0;
  2044. this._pattern = t1;
  2045. this.__js_helper$_index = t2;
  2046. },
  2047. _StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) {
  2048. var _ = this;
  2049. _._input = t0;
  2050. _._pattern = t1;
  2051. _.__js_helper$_index = t2;
  2052. _.__js_helper$_current = null;
  2053. },
  2054. _ensureNativeList: function(list) {
  2055. return list;
  2056. },
  2057. NativeInt8List__create1: function(arg) {
  2058. return new Int8Array(arg);
  2059. },
  2060. NativeUint8List_NativeUint8List$view: function(buffer, offsetInBytes, $length) {
  2061. var t1;
  2062. if (!H._isInt(offsetInBytes))
  2063. H.throwExpression(P.ArgumentError$("Invalid view offsetInBytes " + H.S(offsetInBytes)));
  2064. t1 = new Uint8Array(buffer, offsetInBytes, $length);
  2065. return t1;
  2066. },
  2067. _checkValidIndex: function(index, list, $length) {
  2068. if (index >>> 0 !== index || index >= $length)
  2069. throw H.wrapException(H.diagnoseIndexError(list, index));
  2070. },
  2071. _checkValidRange: function(start, end, $length) {
  2072. var t1;
  2073. if (!(start >>> 0 !== start))
  2074. if (end == null)
  2075. t1 = start > $length;
  2076. else
  2077. t1 = end >>> 0 !== end || start > end || end > $length;
  2078. else
  2079. t1 = true;
  2080. if (t1)
  2081. throw H.wrapException(H.diagnoseRangeError(start, end, $length));
  2082. if (end == null)
  2083. return $length;
  2084. return end;
  2085. },
  2086. NativeTypedData: function NativeTypedData() {
  2087. },
  2088. NativeTypedArray: function NativeTypedArray() {
  2089. },
  2090. NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() {
  2091. },
  2092. NativeTypedArrayOfInt: function NativeTypedArrayOfInt() {
  2093. },
  2094. NativeFloat32List: function NativeFloat32List() {
  2095. },
  2096. NativeFloat64List: function NativeFloat64List() {
  2097. },
  2098. NativeInt16List: function NativeInt16List() {
  2099. },
  2100. NativeInt32List: function NativeInt32List() {
  2101. },
  2102. NativeInt8List: function NativeInt8List() {
  2103. },
  2104. NativeUint16List: function NativeUint16List() {
  2105. },
  2106. NativeUint32List: function NativeUint32List() {
  2107. },
  2108. NativeUint8ClampedList: function NativeUint8ClampedList() {
  2109. },
  2110. NativeUint8List: function NativeUint8List() {
  2111. },
  2112. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() {
  2113. },
  2114. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  2115. },
  2116. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() {
  2117. },
  2118. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  2119. },
  2120. Rti__getQuestionFromStar: function(universe, rti) {
  2121. var question = rti._precomputed1;
  2122. return question == null ? rti._precomputed1 = H._Universe__lookupQuestionRti(universe, rti._primary, true) : question;
  2123. },
  2124. Rti__getFutureFromFutureOr: function(universe, rti) {
  2125. var future = rti._precomputed1;
  2126. return future == null ? rti._precomputed1 = H._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future;
  2127. },
  2128. Rti__isUnionOfFunctionType: function(rti) {
  2129. var kind = rti._kind;
  2130. if (kind === 6 || kind === 7 || kind === 8)
  2131. return H.Rti__isUnionOfFunctionType(rti._primary);
  2132. return kind === 11 || kind === 12;
  2133. },
  2134. Rti__getCanonicalRecipe: function(rti) {
  2135. return rti._canonicalRecipe;
  2136. },
  2137. findType: function(recipe) {
  2138. return H._Universe_eval(init.typeUniverse, recipe, false);
  2139. },
  2140. instantiatedGenericFunctionType: function(genericFunctionRti, instantiationRti) {
  2141. var t1, cache, key, probe, rti;
  2142. if (genericFunctionRti == null)
  2143. return null;
  2144. t1 = instantiationRti._rest;
  2145. cache = genericFunctionRti._bindCache;
  2146. if (cache == null)
  2147. cache = genericFunctionRti._bindCache = new Map();
  2148. key = instantiationRti._canonicalRecipe;
  2149. probe = cache.get(key);
  2150. if (probe != null)
  2151. return probe;
  2152. rti = H._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0);
  2153. cache.set(key, rti);
  2154. return rti;
  2155. },
  2156. _substitute: function(universe, rti, typeArguments, depth) {
  2157. var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument,
  2158. kind = rti._kind;
  2159. switch (kind) {
  2160. case 5:
  2161. case 1:
  2162. case 2:
  2163. case 3:
  2164. case 4:
  2165. return rti;
  2166. case 6:
  2167. baseType = rti._primary;
  2168. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2169. if (substitutedBaseType === baseType)
  2170. return rti;
  2171. return H._Universe__lookupStarRti(universe, substitutedBaseType, true);
  2172. case 7:
  2173. baseType = rti._primary;
  2174. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2175. if (substitutedBaseType === baseType)
  2176. return rti;
  2177. return H._Universe__lookupQuestionRti(universe, substitutedBaseType, true);
  2178. case 8:
  2179. baseType = rti._primary;
  2180. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2181. if (substitutedBaseType === baseType)
  2182. return rti;
  2183. return H._Universe__lookupFutureOrRti(universe, substitutedBaseType, true);
  2184. case 9:
  2185. interfaceTypeArguments = rti._rest;
  2186. substitutedInterfaceTypeArguments = H._substituteArray(universe, interfaceTypeArguments, typeArguments, depth);
  2187. if (substitutedInterfaceTypeArguments === interfaceTypeArguments)
  2188. return rti;
  2189. return H._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments);
  2190. case 10:
  2191. base = rti._primary;
  2192. substitutedBase = H._substitute(universe, base, typeArguments, depth);
  2193. $arguments = rti._rest;
  2194. substitutedArguments = H._substituteArray(universe, $arguments, typeArguments, depth);
  2195. if (substitutedBase === base && substitutedArguments === $arguments)
  2196. return rti;
  2197. return H._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments);
  2198. case 11:
  2199. returnType = rti._primary;
  2200. substitutedReturnType = H._substitute(universe, returnType, typeArguments, depth);
  2201. functionParameters = rti._rest;
  2202. substitutedFunctionParameters = H._substituteFunctionParameters(universe, functionParameters, typeArguments, depth);
  2203. if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters)
  2204. return rti;
  2205. return H._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters);
  2206. case 12:
  2207. bounds = rti._rest;
  2208. depth += bounds.length;
  2209. substitutedBounds = H._substituteArray(universe, bounds, typeArguments, depth);
  2210. base = rti._primary;
  2211. substitutedBase = H._substitute(universe, base, typeArguments, depth);
  2212. if (substitutedBounds === bounds && substitutedBase === base)
  2213. return rti;
  2214. return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true);
  2215. case 13:
  2216. index = rti._primary;
  2217. if (index < depth)
  2218. return rti;
  2219. argument = typeArguments[index - depth];
  2220. if (argument == null)
  2221. return rti;
  2222. return argument;
  2223. default:
  2224. throw H.wrapException(P.AssertionError$("Attempted to substitute unexpected RTI kind " + kind));
  2225. }
  2226. },
  2227. _substituteArray: function(universe, rtiArray, typeArguments, depth) {
  2228. var changed, i, rti, substitutedRti,
  2229. $length = rtiArray.length,
  2230. result = [];
  2231. for (changed = false, i = 0; i < $length; ++i) {
  2232. rti = rtiArray[i];
  2233. substitutedRti = H._substitute(universe, rti, typeArguments, depth);
  2234. if (substitutedRti !== rti)
  2235. changed = true;
  2236. result.push(substitutedRti);
  2237. }
  2238. return changed ? result : rtiArray;
  2239. },
  2240. _substituteNamed: function(universe, namedArray, typeArguments, depth) {
  2241. var changed, i, t1, t2, rti, substitutedRti,
  2242. $length = namedArray.length,
  2243. result = [];
  2244. for (changed = false, i = 0; i < $length; i += 3) {
  2245. t1 = namedArray[i];
  2246. t2 = namedArray[i + 1];
  2247. rti = namedArray[i + 2];
  2248. substitutedRti = H._substitute(universe, rti, typeArguments, depth);
  2249. if (substitutedRti !== rti)
  2250. changed = true;
  2251. result.push(t1);
  2252. result.push(t2);
  2253. result.push(substitutedRti);
  2254. }
  2255. return changed ? result : namedArray;
  2256. },
  2257. _substituteFunctionParameters: function(universe, functionParameters, typeArguments, depth) {
  2258. var result,
  2259. requiredPositional = functionParameters._requiredPositional,
  2260. substitutedRequiredPositional = H._substituteArray(universe, requiredPositional, typeArguments, depth),
  2261. optionalPositional = functionParameters._optionalPositional,
  2262. substitutedOptionalPositional = H._substituteArray(universe, optionalPositional, typeArguments, depth),
  2263. named = functionParameters._named,
  2264. substitutedNamed = H._substituteNamed(universe, named, typeArguments, depth);
  2265. if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedNamed === named)
  2266. return functionParameters;
  2267. result = new H._FunctionParameters();
  2268. result._requiredPositional = substitutedRequiredPositional;
  2269. result._optionalPositional = substitutedOptionalPositional;
  2270. result._named = substitutedNamed;
  2271. return result;
  2272. },
  2273. setRuntimeTypeInfo: function(target, rti) {
  2274. target[init.arrayRti] = rti;
  2275. return target;
  2276. },
  2277. closureFunctionType: function(closure) {
  2278. var signature = closure.$signature;
  2279. if (signature != null) {
  2280. if (typeof signature == "number")
  2281. return H.getTypeFromTypesTable(signature);
  2282. return closure.$signature();
  2283. }
  2284. return null;
  2285. },
  2286. instanceOrFunctionType: function(object, testRti) {
  2287. var rti;
  2288. if (H.Rti__isUnionOfFunctionType(testRti))
  2289. if (object instanceof H.Closure) {
  2290. rti = H.closureFunctionType(object);
  2291. if (rti != null)
  2292. return rti;
  2293. }
  2294. return H.instanceType(object);
  2295. },
  2296. instanceType: function(object) {
  2297. var rti;
  2298. if (object instanceof P.Object) {
  2299. rti = object.$ti;
  2300. return rti != null ? rti : H._instanceTypeFromConstructor(object);
  2301. }
  2302. if (Array.isArray(object))
  2303. return H._arrayInstanceType(object);
  2304. return H._instanceTypeFromConstructor(J.getInterceptor$(object));
  2305. },
  2306. _arrayInstanceType: function(object) {
  2307. var rti = object[init.arrayRti],
  2308. defaultRti = type$.JSArray_dynamic;
  2309. if (rti == null)
  2310. return defaultRti;
  2311. if (rti.constructor !== defaultRti.constructor)
  2312. return defaultRti;
  2313. return rti;
  2314. },
  2315. _instanceType: function(object) {
  2316. var rti = object.$ti;
  2317. return rti != null ? rti : H._instanceTypeFromConstructor(object);
  2318. },
  2319. _instanceTypeFromConstructor: function(instance) {
  2320. var $constructor = instance.constructor,
  2321. probe = $constructor.$ccache;
  2322. if (probe != null)
  2323. return probe;
  2324. return H._instanceTypeFromConstructorMiss(instance, $constructor);
  2325. },
  2326. _instanceTypeFromConstructorMiss: function(instance, $constructor) {
  2327. var effectiveConstructor = instance instanceof H.Closure ? instance.__proto__.__proto__.constructor : $constructor,
  2328. rti = H._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name);
  2329. $constructor.$ccache = rti;
  2330. return rti;
  2331. },
  2332. getTypeFromTypesTable: function(index) {
  2333. var rti,
  2334. table = init.types,
  2335. type = table[index];
  2336. if (typeof type == "string") {
  2337. rti = H._Universe_eval(init.typeUniverse, type, false);
  2338. table[index] = rti;
  2339. return rti;
  2340. }
  2341. return type;
  2342. },
  2343. getRuntimeType: function(object) {
  2344. var rti = object instanceof H.Closure ? H.closureFunctionType(object) : null;
  2345. return H.createRuntimeType(rti == null ? H.instanceType(object) : rti);
  2346. },
  2347. createRuntimeType: function(rti) {
  2348. var recipe, starErasedRecipe, starErasedRti,
  2349. type = rti._cachedRuntimeType;
  2350. if (type != null)
  2351. return type;
  2352. recipe = rti._canonicalRecipe;
  2353. starErasedRecipe = recipe.replace(/\*/g, "");
  2354. if (starErasedRecipe === recipe)
  2355. return rti._cachedRuntimeType = new H._Type(rti);
  2356. starErasedRti = H._Universe_eval(init.typeUniverse, starErasedRecipe, true);
  2357. type = starErasedRti._cachedRuntimeType;
  2358. return rti._cachedRuntimeType = type == null ? starErasedRti._cachedRuntimeType = new H._Type(starErasedRti) : type;
  2359. },
  2360. _installSpecializedIsTest: function(object) {
  2361. var unstarred, isFn, testRti = this,
  2362. t1 = type$.Object;
  2363. if (testRti === t1)
  2364. return H._finishIsFn(testRti, object, H._isObject);
  2365. if (!H.isStrongTopType(testRti))
  2366. if (!(testRti === type$.legacy_Object))
  2367. t1 = testRti === t1;
  2368. else
  2369. t1 = true;
  2370. else
  2371. t1 = true;
  2372. if (t1)
  2373. return H._finishIsFn(testRti, object, H._isTop);
  2374. t1 = testRti._kind;
  2375. unstarred = t1 === 6 ? testRti._primary : testRti;
  2376. if (unstarred === type$.int)
  2377. isFn = H._isInt;
  2378. else if (unstarred === type$.double || unstarred === type$.num)
  2379. isFn = H._isNum;
  2380. else if (unstarred === type$.String)
  2381. isFn = H._isString;
  2382. else
  2383. isFn = unstarred === type$.bool ? H._isBool : null;
  2384. if (isFn != null)
  2385. return H._finishIsFn(testRti, object, isFn);
  2386. if (unstarred._kind === 9) {
  2387. t1 = unstarred._primary;
  2388. if (unstarred._rest.every(H.isTopType)) {
  2389. testRti._specializedTestResource = "$is" + t1;
  2390. return H._finishIsFn(testRti, object, H._isTestViaProperty);
  2391. }
  2392. } else if (t1 === 7)
  2393. return H._finishIsFn(testRti, object, H._generalNullableIsTestImplementation);
  2394. return H._finishIsFn(testRti, object, H._generalIsTestImplementation);
  2395. },
  2396. _finishIsFn: function(testRti, object, isFn) {
  2397. testRti._is = isFn;
  2398. return testRti._is(object);
  2399. },
  2400. _installSpecializedAsCheck: function(object) {
  2401. var t1, asFn, testRti = this;
  2402. if (!H.isStrongTopType(testRti))
  2403. if (!(testRti === type$.legacy_Object))
  2404. t1 = testRti === type$.Object;
  2405. else
  2406. t1 = true;
  2407. else
  2408. t1 = true;
  2409. if (t1)
  2410. asFn = H._asTop;
  2411. else if (testRti === type$.Object)
  2412. asFn = H._asObject;
  2413. else
  2414. asFn = H._generalNullableAsCheckImplementation;
  2415. testRti._as = asFn;
  2416. return testRti._as(object);
  2417. },
  2418. _nullIs: function(testRti) {
  2419. var t2,
  2420. t1 = testRti._kind;
  2421. if (!H.isStrongTopType(testRti))
  2422. if (!(testRti === type$.legacy_Object))
  2423. t2 = testRti === type$.Object;
  2424. else
  2425. t2 = true;
  2426. else
  2427. t2 = true;
  2428. return t2 || testRti === type$.legacy_Never || t1 === 7 || testRti === type$.Null || testRti === type$.JSNull;
  2429. },
  2430. _generalIsTestImplementation: function(object) {
  2431. var testRti = this;
  2432. if (object == null)
  2433. return H._nullIs(testRti);
  2434. return H._isSubtype(init.typeUniverse, H.instanceOrFunctionType(object, testRti), null, testRti, null);
  2435. },
  2436. _generalNullableIsTestImplementation: function(object) {
  2437. if (object == null)
  2438. return true;
  2439. return this._primary._is(object);
  2440. },
  2441. _isTestViaProperty: function(object) {
  2442. var t1 = this,
  2443. tag = t1._specializedTestResource;
  2444. if (object instanceof P.Object)
  2445. return !!object[tag];
  2446. return !!J.getInterceptor$(object)[tag];
  2447. },
  2448. _generalAsCheckImplementation: function(object) {
  2449. var testRti = this;
  2450. if (object == null)
  2451. return object;
  2452. else if (testRti._is(object))
  2453. return object;
  2454. H._failedAsCheck(object, testRti);
  2455. },
  2456. _generalNullableAsCheckImplementation: function(object) {
  2457. var testRti = this;
  2458. if (object == null)
  2459. return object;
  2460. else if (testRti._is(object))
  2461. return object;
  2462. H._failedAsCheck(object, testRti);
  2463. },
  2464. _failedAsCheck: function(object, testRti) {
  2465. throw H.wrapException(H._TypeError$fromMessage(H._Error_compose(object, H.instanceOrFunctionType(object, testRti), H._rtiToString(testRti, null))));
  2466. },
  2467. _Error_compose: function(object, objectRti, checkedTypeDescription) {
  2468. var objectDescription = P.Error_safeToString(object),
  2469. objectTypeDescription = H._rtiToString(objectRti == null ? H.instanceType(object) : objectRti, null);
  2470. return objectDescription + ": type '" + H.S(objectTypeDescription) + "' is not a subtype of type '" + H.S(checkedTypeDescription) + "'";
  2471. },
  2472. _TypeError$fromMessage: function(message) {
  2473. return new H._TypeError("TypeError: " + message);
  2474. },
  2475. _TypeError__TypeError$forType: function(object, type) {
  2476. return new H._TypeError("TypeError: " + H._Error_compose(object, null, type));
  2477. },
  2478. _isObject: function(object) {
  2479. return object != null;
  2480. },
  2481. _asObject: function(object) {
  2482. return object;
  2483. },
  2484. _isTop: function(object) {
  2485. return true;
  2486. },
  2487. _asTop: function(object) {
  2488. return object;
  2489. },
  2490. _isBool: function(object) {
  2491. return true === object || false === object;
  2492. },
  2493. _asBool: function(object) {
  2494. if (true === object)
  2495. return true;
  2496. if (false === object)
  2497. return false;
  2498. throw H.wrapException(H._TypeError__TypeError$forType(object, "bool"));
  2499. },
  2500. _asBoolS: function(object) {
  2501. if (true === object)
  2502. return true;
  2503. if (false === object)
  2504. return false;
  2505. if (object == null)
  2506. return object;
  2507. throw H.wrapException(H._TypeError__TypeError$forType(object, "bool"));
  2508. },
  2509. _asBoolQ: function(object) {
  2510. if (true === object)
  2511. return true;
  2512. if (false === object)
  2513. return false;
  2514. if (object == null)
  2515. return object;
  2516. throw H.wrapException(H._TypeError__TypeError$forType(object, "bool?"));
  2517. },
  2518. _asDouble: function(object) {
  2519. if (typeof object == "number")
  2520. return object;
  2521. throw H.wrapException(H._TypeError__TypeError$forType(object, "double"));
  2522. },
  2523. _asDoubleS: function(object) {
  2524. if (typeof object == "number")
  2525. return object;
  2526. if (object == null)
  2527. return object;
  2528. throw H.wrapException(H._TypeError__TypeError$forType(object, "double"));
  2529. },
  2530. _asDoubleQ: function(object) {
  2531. if (typeof object == "number")
  2532. return object;
  2533. if (object == null)
  2534. return object;
  2535. throw H.wrapException(H._TypeError__TypeError$forType(object, "double?"));
  2536. },
  2537. _isInt: function(object) {
  2538. return typeof object == "number" && Math.floor(object) === object;
  2539. },
  2540. _asInt: function(object) {
  2541. if (typeof object == "number" && Math.floor(object) === object)
  2542. return object;
  2543. throw H.wrapException(H._TypeError__TypeError$forType(object, "int"));
  2544. },
  2545. _asIntS: function(object) {
  2546. if (typeof object == "number" && Math.floor(object) === object)
  2547. return object;
  2548. if (object == null)
  2549. return object;
  2550. throw H.wrapException(H._TypeError__TypeError$forType(object, "int"));
  2551. },
  2552. _asIntQ: function(object) {
  2553. if (typeof object == "number" && Math.floor(object) === object)
  2554. return object;
  2555. if (object == null)
  2556. return object;
  2557. throw H.wrapException(H._TypeError__TypeError$forType(object, "int?"));
  2558. },
  2559. _isNum: function(object) {
  2560. return typeof object == "number";
  2561. },
  2562. _asNum: function(object) {
  2563. if (typeof object == "number")
  2564. return object;
  2565. throw H.wrapException(H._TypeError__TypeError$forType(object, "num"));
  2566. },
  2567. _asNumS: function(object) {
  2568. if (typeof object == "number")
  2569. return object;
  2570. if (object == null)
  2571. return object;
  2572. throw H.wrapException(H._TypeError__TypeError$forType(object, "num"));
  2573. },
  2574. _asNumQ: function(object) {
  2575. if (typeof object == "number")
  2576. return object;
  2577. if (object == null)
  2578. return object;
  2579. throw H.wrapException(H._TypeError__TypeError$forType(object, "num?"));
  2580. },
  2581. _isString: function(object) {
  2582. return typeof object == "string";
  2583. },
  2584. _asString: function(object) {
  2585. if (typeof object == "string")
  2586. return object;
  2587. throw H.wrapException(H._TypeError__TypeError$forType(object, "String"));
  2588. },
  2589. _asStringS: function(object) {
  2590. if (typeof object == "string")
  2591. return object;
  2592. if (object == null)
  2593. return object;
  2594. throw H.wrapException(H._TypeError__TypeError$forType(object, "String"));
  2595. },
  2596. _asStringQ: function(object) {
  2597. if (typeof object == "string")
  2598. return object;
  2599. if (object == null)
  2600. return object;
  2601. throw H.wrapException(H._TypeError__TypeError$forType(object, "String?"));
  2602. },
  2603. _rtiArrayToString: function(array, genericContext) {
  2604. var s, sep, i;
  2605. for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ")
  2606. s += C.JSString_methods.$add(sep, H._rtiToString(array[i], genericContext));
  2607. return s;
  2608. },
  2609. _functionRtiToString: function(functionType, genericContext, bounds) {
  2610. var boundsLength, outerContextLength, offset, i, t1, t2, t3, typeParametersText, typeSep, boundRti, kind, t4, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", ";
  2611. if (bounds != null) {
  2612. boundsLength = bounds.length;
  2613. if (genericContext == null) {
  2614. genericContext = H.setRuntimeTypeInfo([], type$.JSArray_String);
  2615. outerContextLength = null;
  2616. } else
  2617. outerContextLength = genericContext.length;
  2618. offset = genericContext.length;
  2619. for (i = boundsLength; i > 0; --i)
  2620. genericContext.push("T" + (offset + i));
  2621. for (t1 = type$.nullable_Object, t2 = type$.legacy_Object, t3 = type$.Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) {
  2622. typeParametersText = C.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]);
  2623. boundRti = bounds[i];
  2624. kind = boundRti._kind;
  2625. if (!(kind === 2 || kind === 3 || kind === 4 || kind === 5 || boundRti === t1))
  2626. if (!(boundRti === t2))
  2627. t4 = boundRti === t3;
  2628. else
  2629. t4 = true;
  2630. else
  2631. t4 = true;
  2632. if (!t4)
  2633. typeParametersText += C.JSString_methods.$add(" extends ", H._rtiToString(boundRti, genericContext));
  2634. }
  2635. typeParametersText += ">";
  2636. } else {
  2637. typeParametersText = "";
  2638. outerContextLength = null;
  2639. }
  2640. t1 = functionType._primary;
  2641. parameters = functionType._rest;
  2642. requiredPositional = parameters._requiredPositional;
  2643. requiredPositionalLength = requiredPositional.length;
  2644. optionalPositional = parameters._optionalPositional;
  2645. optionalPositionalLength = optionalPositional.length;
  2646. named = parameters._named;
  2647. namedLength = named.length;
  2648. returnTypeText = H._rtiToString(t1, genericContext);
  2649. for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_)
  2650. argumentsText += C.JSString_methods.$add(sep, H._rtiToString(requiredPositional[i], genericContext));
  2651. if (optionalPositionalLength > 0) {
  2652. argumentsText += sep + "[";
  2653. for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_)
  2654. argumentsText += C.JSString_methods.$add(sep, H._rtiToString(optionalPositional[i], genericContext));
  2655. argumentsText += "]";
  2656. }
  2657. if (namedLength > 0) {
  2658. argumentsText += sep + "{";
  2659. for (sep = "", i = 0; i < namedLength; i += 3, sep = _s2_) {
  2660. argumentsText += sep;
  2661. if (named[i + 1])
  2662. argumentsText += "required ";
  2663. argumentsText += J.$add$ansx(H._rtiToString(named[i + 2], genericContext), " ") + named[i];
  2664. }
  2665. argumentsText += "}";
  2666. }
  2667. if (outerContextLength != null) {
  2668. genericContext.toString;
  2669. genericContext.length = outerContextLength;
  2670. }
  2671. return typeParametersText + "(" + argumentsText + ") => " + H.S(returnTypeText);
  2672. },
  2673. _rtiToString: function(rti, genericContext) {
  2674. var s, questionArgument, argumentKind, $name, $arguments, t1,
  2675. kind = rti._kind;
  2676. if (kind === 5)
  2677. return "erased";
  2678. if (kind === 2)
  2679. return "dynamic";
  2680. if (kind === 3)
  2681. return "void";
  2682. if (kind === 1)
  2683. return "Never";
  2684. if (kind === 4)
  2685. return "any";
  2686. if (kind === 6) {
  2687. s = H._rtiToString(rti._primary, genericContext);
  2688. return s;
  2689. }
  2690. if (kind === 7) {
  2691. questionArgument = rti._primary;
  2692. s = H._rtiToString(questionArgument, genericContext);
  2693. argumentKind = questionArgument._kind;
  2694. return J.$add$ansx(argumentKind === 11 || argumentKind === 12 ? C.JSString_methods.$add("(", s) + ")" : s, "?");
  2695. }
  2696. if (kind === 8)
  2697. return "FutureOr<" + H.S(H._rtiToString(rti._primary, genericContext)) + ">";
  2698. if (kind === 9) {
  2699. $name = H._unminifyOrTag(rti._primary);
  2700. $arguments = rti._rest;
  2701. return $arguments.length !== 0 ? $name + ("<" + H._rtiArrayToString($arguments, genericContext) + ">") : $name;
  2702. }
  2703. if (kind === 11)
  2704. return H._functionRtiToString(rti, genericContext, null);
  2705. if (kind === 12)
  2706. return H._functionRtiToString(rti._primary, genericContext, rti._rest);
  2707. if (kind === 13) {
  2708. genericContext.toString;
  2709. t1 = rti._primary;
  2710. return genericContext[genericContext.length - 1 - t1];
  2711. }
  2712. return "?";
  2713. },
  2714. _unminifyOrTag: function(rawClassName) {
  2715. var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
  2716. if (preserved != null)
  2717. return preserved;
  2718. return rawClassName;
  2719. },
  2720. _Universe_findRule: function(universe, targetType) {
  2721. var rule = universe.tR[targetType];
  2722. for (; typeof rule == "string";)
  2723. rule = universe.tR[rule];
  2724. return rule;
  2725. },
  2726. _Universe_findErasedType: function(universe, cls) {
  2727. var $length, erased, $arguments, i, $interface,
  2728. metadata = universe.eT,
  2729. probe = metadata[cls];
  2730. if (probe == null)
  2731. return H._Universe_eval(universe, cls, false);
  2732. else if (typeof probe == "number") {
  2733. $length = probe;
  2734. erased = H._Universe__lookupTerminalRti(universe, 5, "#");
  2735. $arguments = [];
  2736. for (i = 0; i < $length; ++i)
  2737. $arguments.push(erased);
  2738. $interface = H._Universe__lookupInterfaceRti(universe, cls, $arguments);
  2739. metadata[cls] = $interface;
  2740. return $interface;
  2741. } else
  2742. return probe;
  2743. },
  2744. _Universe_addRules: function(universe, rules) {
  2745. return H._Utils_objectAssign(universe.tR, rules);
  2746. },
  2747. _Universe_addErasedTypes: function(universe, types) {
  2748. return H._Utils_objectAssign(universe.eT, types);
  2749. },
  2750. _Universe_eval: function(universe, recipe, normalize) {
  2751. var rti,
  2752. cache = universe.eC,
  2753. probe = cache.get(recipe);
  2754. if (probe != null)
  2755. return probe;
  2756. rti = H._Parser_parse(H._Parser_create(universe, null, recipe, normalize));
  2757. cache.set(recipe, rti);
  2758. return rti;
  2759. },
  2760. _Universe_evalInEnvironment: function(universe, environment, recipe) {
  2761. var probe, rti,
  2762. cache = environment._evalCache;
  2763. if (cache == null)
  2764. cache = environment._evalCache = new Map();
  2765. probe = cache.get(recipe);
  2766. if (probe != null)
  2767. return probe;
  2768. rti = H._Parser_parse(H._Parser_create(universe, environment, recipe, true));
  2769. cache.set(recipe, rti);
  2770. return rti;
  2771. },
  2772. _Universe_bind: function(universe, environment, argumentsRti) {
  2773. var argumentsRecipe, probe, rti,
  2774. cache = environment._bindCache;
  2775. if (cache == null)
  2776. cache = environment._bindCache = new Map();
  2777. argumentsRecipe = argumentsRti._canonicalRecipe;
  2778. probe = cache.get(argumentsRecipe);
  2779. if (probe != null)
  2780. return probe;
  2781. rti = H._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]);
  2782. cache.set(argumentsRecipe, rti);
  2783. return rti;
  2784. },
  2785. _Universe__installTypeTests: function(universe, rti) {
  2786. rti._as = H._installSpecializedAsCheck;
  2787. rti._is = H._installSpecializedIsTest;
  2788. return rti;
  2789. },
  2790. _Universe__lookupTerminalRti: function(universe, kind, key) {
  2791. var rti, t1,
  2792. probe = universe.eC.get(key);
  2793. if (probe != null)
  2794. return probe;
  2795. rti = new H.Rti(null, null);
  2796. rti._kind = kind;
  2797. rti._canonicalRecipe = key;
  2798. t1 = H._Universe__installTypeTests(universe, rti);
  2799. universe.eC.set(key, t1);
  2800. return t1;
  2801. },
  2802. _Universe__lookupStarRti: function(universe, baseType, normalize) {
  2803. var t1,
  2804. key = baseType._canonicalRecipe + "*",
  2805. probe = universe.eC.get(key);
  2806. if (probe != null)
  2807. return probe;
  2808. t1 = H._Universe__createStarRti(universe, baseType, key, normalize);
  2809. universe.eC.set(key, t1);
  2810. return t1;
  2811. },
  2812. _Universe__createStarRti: function(universe, baseType, key, normalize) {
  2813. var baseKind, t1, rti;
  2814. if (normalize) {
  2815. baseKind = baseType._kind;
  2816. if (!H.isStrongTopType(baseType))
  2817. t1 = baseType === type$.Null || baseType === type$.JSNull || baseKind === 7 || baseKind === 6;
  2818. else
  2819. t1 = true;
  2820. if (t1)
  2821. return baseType;
  2822. }
  2823. rti = new H.Rti(null, null);
  2824. rti._kind = 6;
  2825. rti._primary = baseType;
  2826. rti._canonicalRecipe = key;
  2827. return H._Universe__installTypeTests(universe, rti);
  2828. },
  2829. _Universe__lookupQuestionRti: function(universe, baseType, normalize) {
  2830. var t1,
  2831. key = baseType._canonicalRecipe + "?",
  2832. probe = universe.eC.get(key);
  2833. if (probe != null)
  2834. return probe;
  2835. t1 = H._Universe__createQuestionRti(universe, baseType, key, normalize);
  2836. universe.eC.set(key, t1);
  2837. return t1;
  2838. },
  2839. _Universe__createQuestionRti: function(universe, baseType, key, normalize) {
  2840. var baseKind, t1, starArgument, rti;
  2841. if (normalize) {
  2842. baseKind = baseType._kind;
  2843. if (!H.isStrongTopType(baseType))
  2844. if (!(baseType === type$.Null || baseType === type$.JSNull))
  2845. if (baseKind !== 7)
  2846. t1 = baseKind === 8 && H.isNullable(baseType._primary);
  2847. else
  2848. t1 = true;
  2849. else
  2850. t1 = true;
  2851. else
  2852. t1 = true;
  2853. if (t1)
  2854. return baseType;
  2855. else if (baseKind === 1 || baseType === type$.legacy_Never)
  2856. return type$.Null;
  2857. else if (baseKind === 6) {
  2858. starArgument = baseType._primary;
  2859. if (starArgument._kind === 8 && H.isNullable(starArgument._primary))
  2860. return starArgument;
  2861. else
  2862. return H.Rti__getQuestionFromStar(universe, baseType);
  2863. }
  2864. }
  2865. rti = new H.Rti(null, null);
  2866. rti._kind = 7;
  2867. rti._primary = baseType;
  2868. rti._canonicalRecipe = key;
  2869. return H._Universe__installTypeTests(universe, rti);
  2870. },
  2871. _Universe__lookupFutureOrRti: function(universe, baseType, normalize) {
  2872. var t1,
  2873. key = baseType._canonicalRecipe + "/",
  2874. probe = universe.eC.get(key);
  2875. if (probe != null)
  2876. return probe;
  2877. t1 = H._Universe__createFutureOrRti(universe, baseType, key, normalize);
  2878. universe.eC.set(key, t1);
  2879. return t1;
  2880. },
  2881. _Universe__createFutureOrRti: function(universe, baseType, key, normalize) {
  2882. var t1, t2, rti;
  2883. if (normalize) {
  2884. t1 = baseType._kind;
  2885. if (!H.isStrongTopType(baseType))
  2886. if (!(baseType === type$.legacy_Object))
  2887. t2 = baseType === type$.Object;
  2888. else
  2889. t2 = true;
  2890. else
  2891. t2 = true;
  2892. if (t2 || baseType === type$.Object)
  2893. return baseType;
  2894. else if (t1 === 1)
  2895. return H._Universe__lookupInterfaceRti(universe, "Future", [baseType]);
  2896. else if (baseType === type$.Null || baseType === type$.JSNull)
  2897. return type$.nullable_Future_Null;
  2898. }
  2899. rti = new H.Rti(null, null);
  2900. rti._kind = 8;
  2901. rti._primary = baseType;
  2902. rti._canonicalRecipe = key;
  2903. return H._Universe__installTypeTests(universe, rti);
  2904. },
  2905. _Universe__lookupGenericFunctionParameterRti: function(universe, index) {
  2906. var rti, t1,
  2907. key = "" + index + "^",
  2908. probe = universe.eC.get(key);
  2909. if (probe != null)
  2910. return probe;
  2911. rti = new H.Rti(null, null);
  2912. rti._kind = 13;
  2913. rti._primary = index;
  2914. rti._canonicalRecipe = key;
  2915. t1 = H._Universe__installTypeTests(universe, rti);
  2916. universe.eC.set(key, t1);
  2917. return t1;
  2918. },
  2919. _Universe__canonicalRecipeJoin: function($arguments) {
  2920. var s, sep, i,
  2921. $length = $arguments.length;
  2922. for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",")
  2923. s += sep + $arguments[i]._canonicalRecipe;
  2924. return s;
  2925. },
  2926. _Universe__canonicalRecipeJoinNamed: function($arguments) {
  2927. var s, sep, i, t1, nameSep, s0,
  2928. $length = $arguments.length;
  2929. for (s = "", sep = "", i = 0; i < $length; i += 3, sep = ",") {
  2930. t1 = $arguments[i];
  2931. nameSep = $arguments[i + 1] ? "!" : ":";
  2932. s0 = $arguments[i + 2]._canonicalRecipe;
  2933. s += sep + t1 + nameSep + s0;
  2934. }
  2935. return s;
  2936. },
  2937. _Universe__lookupInterfaceRti: function(universe, $name, $arguments) {
  2938. var probe, rti, t1,
  2939. s = $name;
  2940. if ($arguments.length !== 0)
  2941. s += "<" + H._Universe__canonicalRecipeJoin($arguments) + ">";
  2942. probe = universe.eC.get(s);
  2943. if (probe != null)
  2944. return probe;
  2945. rti = new H.Rti(null, null);
  2946. rti._kind = 9;
  2947. rti._primary = $name;
  2948. rti._rest = $arguments;
  2949. if ($arguments.length > 0)
  2950. rti._precomputed1 = $arguments[0];
  2951. rti._canonicalRecipe = s;
  2952. t1 = H._Universe__installTypeTests(universe, rti);
  2953. universe.eC.set(s, t1);
  2954. return t1;
  2955. },
  2956. _Universe__lookupBindingRti: function(universe, base, $arguments) {
  2957. var newBase, newArguments, key, probe, rti, t1;
  2958. if (base._kind === 10) {
  2959. newBase = base._primary;
  2960. newArguments = base._rest.concat($arguments);
  2961. } else {
  2962. newArguments = $arguments;
  2963. newBase = base;
  2964. }
  2965. key = newBase._canonicalRecipe + (";<" + H._Universe__canonicalRecipeJoin(newArguments) + ">");
  2966. probe = universe.eC.get(key);
  2967. if (probe != null)
  2968. return probe;
  2969. rti = new H.Rti(null, null);
  2970. rti._kind = 10;
  2971. rti._primary = newBase;
  2972. rti._rest = newArguments;
  2973. rti._canonicalRecipe = key;
  2974. t1 = H._Universe__installTypeTests(universe, rti);
  2975. universe.eC.set(key, t1);
  2976. return t1;
  2977. },
  2978. _Universe__lookupFunctionRti: function(universe, returnType, parameters) {
  2979. var sep, t1, key, probe, rti,
  2980. s = returnType._canonicalRecipe,
  2981. requiredPositional = parameters._requiredPositional,
  2982. requiredPositionalLength = requiredPositional.length,
  2983. optionalPositional = parameters._optionalPositional,
  2984. optionalPositionalLength = optionalPositional.length,
  2985. named = parameters._named,
  2986. namedLength = named.length,
  2987. recipe = "(" + H._Universe__canonicalRecipeJoin(requiredPositional);
  2988. if (optionalPositionalLength > 0) {
  2989. sep = requiredPositionalLength > 0 ? "," : "";
  2990. t1 = H._Universe__canonicalRecipeJoin(optionalPositional);
  2991. recipe += sep + "[" + t1 + "]";
  2992. }
  2993. if (namedLength > 0) {
  2994. sep = requiredPositionalLength > 0 ? "," : "";
  2995. t1 = H._Universe__canonicalRecipeJoinNamed(named);
  2996. recipe += sep + "{" + t1 + "}";
  2997. }
  2998. key = s + (recipe + ")");
  2999. probe = universe.eC.get(key);
  3000. if (probe != null)
  3001. return probe;
  3002. rti = new H.Rti(null, null);
  3003. rti._kind = 11;
  3004. rti._primary = returnType;
  3005. rti._rest = parameters;
  3006. rti._canonicalRecipe = key;
  3007. t1 = H._Universe__installTypeTests(universe, rti);
  3008. universe.eC.set(key, t1);
  3009. return t1;
  3010. },
  3011. _Universe__lookupGenericFunctionRti: function(universe, baseFunctionType, bounds, normalize) {
  3012. var t1,
  3013. key = baseFunctionType._canonicalRecipe + ("<" + H._Universe__canonicalRecipeJoin(bounds) + ">"),
  3014. probe = universe.eC.get(key);
  3015. if (probe != null)
  3016. return probe;
  3017. t1 = H._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize);
  3018. universe.eC.set(key, t1);
  3019. return t1;
  3020. },
  3021. _Universe__createGenericFunctionRti: function(universe, baseFunctionType, bounds, key, normalize) {
  3022. var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti;
  3023. if (normalize) {
  3024. $length = bounds.length;
  3025. typeArguments = new Array($length);
  3026. for (count = 0, i = 0; i < $length; ++i) {
  3027. bound = bounds[i];
  3028. if (bound._kind === 1) {
  3029. typeArguments[i] = bound;
  3030. ++count;
  3031. }
  3032. }
  3033. if (count > 0) {
  3034. substitutedBase = H._substitute(universe, baseFunctionType, typeArguments, 0);
  3035. substitutedBounds = H._substituteArray(universe, bounds, typeArguments, 0);
  3036. return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds);
  3037. }
  3038. }
  3039. rti = new H.Rti(null, null);
  3040. rti._kind = 12;
  3041. rti._primary = baseFunctionType;
  3042. rti._rest = bounds;
  3043. rti._canonicalRecipe = key;
  3044. return H._Universe__installTypeTests(universe, rti);
  3045. },
  3046. _Parser_create: function(universe, environment, recipe, normalize) {
  3047. return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize};
  3048. },
  3049. _Parser_parse: function(parser) {
  3050. var t1, i, ch, universe, array, head, base, u, parameters, optionalPositional, named, item,
  3051. source = parser.r,
  3052. stack = parser.s;
  3053. for (t1 = source.length, i = 0; i < t1;) {
  3054. ch = source.charCodeAt(i);
  3055. if (ch >= 48 && ch <= 57)
  3056. i = H._Parser_handleDigit(i + 1, ch, source, stack);
  3057. else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36)
  3058. i = H._Parser_handleIdentifier(parser, i, source, stack, false);
  3059. else if (ch === 46)
  3060. i = H._Parser_handleIdentifier(parser, i, source, stack, true);
  3061. else {
  3062. ++i;
  3063. switch (ch) {
  3064. case 44:
  3065. break;
  3066. case 58:
  3067. stack.push(false);
  3068. break;
  3069. case 33:
  3070. stack.push(true);
  3071. break;
  3072. case 59:
  3073. stack.push(H._Parser_toType(parser.u, parser.e, stack.pop()));
  3074. break;
  3075. case 94:
  3076. stack.push(H._Universe__lookupGenericFunctionParameterRti(parser.u, stack.pop()));
  3077. break;
  3078. case 35:
  3079. stack.push(H._Universe__lookupTerminalRti(parser.u, 5, "#"));
  3080. break;
  3081. case 64:
  3082. stack.push(H._Universe__lookupTerminalRti(parser.u, 2, "@"));
  3083. break;
  3084. case 126:
  3085. stack.push(H._Universe__lookupTerminalRti(parser.u, 3, "~"));
  3086. break;
  3087. case 60:
  3088. stack.push(parser.p);
  3089. parser.p = stack.length;
  3090. break;
  3091. case 62:
  3092. universe = parser.u;
  3093. array = stack.splice(parser.p);
  3094. H._Parser_toTypes(parser.u, parser.e, array);
  3095. parser.p = stack.pop();
  3096. head = stack.pop();
  3097. if (typeof head == "string")
  3098. stack.push(H._Universe__lookupInterfaceRti(universe, head, array));
  3099. else {
  3100. base = H._Parser_toType(universe, parser.e, head);
  3101. switch (base._kind) {
  3102. case 11:
  3103. stack.push(H._Universe__lookupGenericFunctionRti(universe, base, array, parser.n));
  3104. break;
  3105. default:
  3106. stack.push(H._Universe__lookupBindingRti(universe, base, array));
  3107. break;
  3108. }
  3109. }
  3110. break;
  3111. case 38:
  3112. H._Parser_handleExtendedOperations(parser, stack);
  3113. break;
  3114. case 42:
  3115. u = parser.u;
  3116. stack.push(H._Universe__lookupStarRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  3117. break;
  3118. case 63:
  3119. u = parser.u;
  3120. stack.push(H._Universe__lookupQuestionRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  3121. break;
  3122. case 47:
  3123. u = parser.u;
  3124. stack.push(H._Universe__lookupFutureOrRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  3125. break;
  3126. case 40:
  3127. stack.push(parser.p);
  3128. parser.p = stack.length;
  3129. break;
  3130. case 41:
  3131. universe = parser.u;
  3132. parameters = new H._FunctionParameters();
  3133. optionalPositional = universe.sEA;
  3134. named = universe.sEA;
  3135. head = stack.pop();
  3136. if (typeof head == "number")
  3137. switch (head) {
  3138. case -1:
  3139. optionalPositional = stack.pop();
  3140. break;
  3141. case -2:
  3142. named = stack.pop();
  3143. break;
  3144. default:
  3145. stack.push(head);
  3146. break;
  3147. }
  3148. else
  3149. stack.push(head);
  3150. array = stack.splice(parser.p);
  3151. H._Parser_toTypes(parser.u, parser.e, array);
  3152. parser.p = stack.pop();
  3153. parameters._requiredPositional = array;
  3154. parameters._optionalPositional = optionalPositional;
  3155. parameters._named = named;
  3156. stack.push(H._Universe__lookupFunctionRti(universe, H._Parser_toType(universe, parser.e, stack.pop()), parameters));
  3157. break;
  3158. case 91:
  3159. stack.push(parser.p);
  3160. parser.p = stack.length;
  3161. break;
  3162. case 93:
  3163. array = stack.splice(parser.p);
  3164. H._Parser_toTypes(parser.u, parser.e, array);
  3165. parser.p = stack.pop();
  3166. stack.push(array);
  3167. stack.push(-1);
  3168. break;
  3169. case 123:
  3170. stack.push(parser.p);
  3171. parser.p = stack.length;
  3172. break;
  3173. case 125:
  3174. array = stack.splice(parser.p);
  3175. H._Parser_toTypesNamed(parser.u, parser.e, array);
  3176. parser.p = stack.pop();
  3177. stack.push(array);
  3178. stack.push(-2);
  3179. break;
  3180. default:
  3181. throw "Bad character " + ch;
  3182. }
  3183. }
  3184. }
  3185. item = stack.pop();
  3186. return H._Parser_toType(parser.u, parser.e, item);
  3187. },
  3188. _Parser_handleDigit: function(i, digit, source, stack) {
  3189. var t1, ch,
  3190. value = digit - 48;
  3191. for (t1 = source.length; i < t1; ++i) {
  3192. ch = source.charCodeAt(i);
  3193. if (!(ch >= 48 && ch <= 57))
  3194. break;
  3195. value = value * 10 + (ch - 48);
  3196. }
  3197. stack.push(value);
  3198. return i;
  3199. },
  3200. _Parser_handleIdentifier: function(parser, start, source, stack, hasPeriod) {
  3201. var t1, ch, t2, string, environment, recipe,
  3202. i = start + 1;
  3203. for (t1 = source.length; i < t1; ++i) {
  3204. ch = source.charCodeAt(i);
  3205. if (ch === 46) {
  3206. if (hasPeriod)
  3207. break;
  3208. hasPeriod = true;
  3209. } else {
  3210. if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36))
  3211. t2 = ch >= 48 && ch <= 57;
  3212. else
  3213. t2 = true;
  3214. if (!t2)
  3215. break;
  3216. }
  3217. }
  3218. string = source.substring(start, i);
  3219. if (hasPeriod) {
  3220. t1 = parser.u;
  3221. environment = parser.e;
  3222. if (environment._kind === 10)
  3223. environment = environment._primary;
  3224. recipe = H._Universe_findRule(t1, environment._primary)[string];
  3225. if (recipe == null)
  3226. H.throwExpression('No "' + string + '" in "' + H.Rti__getCanonicalRecipe(environment) + '"');
  3227. stack.push(H._Universe_evalInEnvironment(t1, environment, recipe));
  3228. } else
  3229. stack.push(string);
  3230. return i;
  3231. },
  3232. _Parser_handleExtendedOperations: function(parser, stack) {
  3233. var $top = stack.pop();
  3234. if (0 === $top) {
  3235. stack.push(H._Universe__lookupTerminalRti(parser.u, 1, "0&"));
  3236. return;
  3237. }
  3238. if (1 === $top) {
  3239. stack.push(H._Universe__lookupTerminalRti(parser.u, 4, "1&"));
  3240. return;
  3241. }
  3242. throw H.wrapException(P.AssertionError$("Unexpected extended operation " + H.S($top)));
  3243. },
  3244. _Parser_toType: function(universe, environment, item) {
  3245. if (typeof item == "string")
  3246. return H._Universe__lookupInterfaceRti(universe, item, universe.sEA);
  3247. else if (typeof item == "number")
  3248. return H._Parser_indexToType(universe, environment, item);
  3249. else
  3250. return item;
  3251. },
  3252. _Parser_toTypes: function(universe, environment, items) {
  3253. var i,
  3254. $length = items.length;
  3255. for (i = 0; i < $length; ++i)
  3256. items[i] = H._Parser_toType(universe, environment, items[i]);
  3257. },
  3258. _Parser_toTypesNamed: function(universe, environment, items) {
  3259. var i,
  3260. $length = items.length;
  3261. for (i = 2; i < $length; i += 3)
  3262. items[i] = H._Parser_toType(universe, environment, items[i]);
  3263. },
  3264. _Parser_indexToType: function(universe, environment, index) {
  3265. var typeArguments, len,
  3266. kind = environment._kind;
  3267. if (kind === 10) {
  3268. if (index === 0)
  3269. return environment._primary;
  3270. typeArguments = environment._rest;
  3271. len = typeArguments.length;
  3272. if (index <= len)
  3273. return typeArguments[index - 1];
  3274. index -= len;
  3275. environment = environment._primary;
  3276. kind = environment._kind;
  3277. } else if (index === 0)
  3278. return environment;
  3279. if (kind !== 9)
  3280. throw H.wrapException(P.AssertionError$("Indexed base must be an interface type"));
  3281. typeArguments = environment._rest;
  3282. if (index <= typeArguments.length)
  3283. return typeArguments[index - 1];
  3284. throw H.wrapException(P.AssertionError$("Bad index " + index + " for " + environment.toString$0(0)));
  3285. },
  3286. _isSubtype: function(universe, s, sEnv, t, tEnv) {
  3287. var t1, sKind, leftTypeVariable, tKind, sBounds, tBounds, sLength, i, sBound, tBound;
  3288. if (s === t)
  3289. return true;
  3290. if (!H.isStrongTopType(t))
  3291. if (!(t === type$.legacy_Object))
  3292. t1 = t === type$.Object;
  3293. else
  3294. t1 = true;
  3295. else
  3296. t1 = true;
  3297. if (t1)
  3298. return true;
  3299. sKind = s._kind;
  3300. if (sKind === 4)
  3301. return true;
  3302. if (H.isStrongTopType(s))
  3303. return false;
  3304. if (s._kind !== 1)
  3305. t1 = s === type$.Null || s === type$.JSNull;
  3306. else
  3307. t1 = true;
  3308. if (t1)
  3309. return true;
  3310. leftTypeVariable = sKind === 13;
  3311. if (leftTypeVariable)
  3312. if (H._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv))
  3313. return true;
  3314. tKind = t._kind;
  3315. if (sKind === 6)
  3316. return H._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3317. if (tKind === 6) {
  3318. t1 = t._primary;
  3319. return H._isSubtype(universe, s, sEnv, t1, tEnv);
  3320. }
  3321. if (sKind === 8) {
  3322. if (!H._isSubtype(universe, s._primary, sEnv, t, tEnv))
  3323. return false;
  3324. return H._isSubtype(universe, H.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv);
  3325. }
  3326. if (sKind === 7) {
  3327. t1 = H._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3328. return t1;
  3329. }
  3330. if (tKind === 8) {
  3331. if (H._isSubtype(universe, s, sEnv, t._primary, tEnv))
  3332. return true;
  3333. return H._isSubtype(universe, s, sEnv, H.Rti__getFutureFromFutureOr(universe, t), tEnv);
  3334. }
  3335. if (tKind === 7) {
  3336. t1 = H._isSubtype(universe, s, sEnv, t._primary, tEnv);
  3337. return t1;
  3338. }
  3339. if (leftTypeVariable)
  3340. return false;
  3341. t1 = sKind !== 11;
  3342. if ((!t1 || sKind === 12) && t === type$.Function)
  3343. return true;
  3344. if (tKind === 12) {
  3345. if (s === type$.JavaScriptFunction)
  3346. return true;
  3347. if (sKind !== 12)
  3348. return false;
  3349. sBounds = s._rest;
  3350. tBounds = t._rest;
  3351. sLength = sBounds.length;
  3352. if (sLength !== tBounds.length)
  3353. return false;
  3354. sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv);
  3355. tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv);
  3356. for (i = 0; i < sLength; ++i) {
  3357. sBound = sBounds[i];
  3358. tBound = tBounds[i];
  3359. if (!H._isSubtype(universe, sBound, sEnv, tBound, tEnv) || !H._isSubtype(universe, tBound, tEnv, sBound, sEnv))
  3360. return false;
  3361. }
  3362. return H._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv);
  3363. }
  3364. if (tKind === 11) {
  3365. if (s === type$.JavaScriptFunction)
  3366. return true;
  3367. if (t1)
  3368. return false;
  3369. return H._isFunctionSubtype(universe, s, sEnv, t, tEnv);
  3370. }
  3371. if (sKind === 9) {
  3372. if (tKind !== 9)
  3373. return false;
  3374. return H._isInterfaceSubtype(universe, s, sEnv, t, tEnv);
  3375. }
  3376. return false;
  3377. },
  3378. _isFunctionSubtype: function(universe, s, sEnv, t, tEnv) {
  3379. var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sNamed, tNamed, sNamedLength, tNamedLength, sIndex, tIndex, tName, sName, sIsRequired;
  3380. if (!H._isSubtype(universe, s._primary, sEnv, t._primary, tEnv))
  3381. return false;
  3382. sParameters = s._rest;
  3383. tParameters = t._rest;
  3384. sRequiredPositional = sParameters._requiredPositional;
  3385. tRequiredPositional = tParameters._requiredPositional;
  3386. sRequiredPositionalLength = sRequiredPositional.length;
  3387. tRequiredPositionalLength = tRequiredPositional.length;
  3388. if (sRequiredPositionalLength > tRequiredPositionalLength)
  3389. return false;
  3390. requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength;
  3391. sOptionalPositional = sParameters._optionalPositional;
  3392. tOptionalPositional = tParameters._optionalPositional;
  3393. sOptionalPositionalLength = sOptionalPositional.length;
  3394. tOptionalPositionalLength = tOptionalPositional.length;
  3395. if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength)
  3396. return false;
  3397. for (i = 0; i < sRequiredPositionalLength; ++i) {
  3398. t1 = sRequiredPositional[i];
  3399. if (!H._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv))
  3400. return false;
  3401. }
  3402. for (i = 0; i < requiredPositionalDelta; ++i) {
  3403. t1 = sOptionalPositional[i];
  3404. if (!H._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv))
  3405. return false;
  3406. }
  3407. for (i = 0; i < tOptionalPositionalLength; ++i) {
  3408. t1 = sOptionalPositional[requiredPositionalDelta + i];
  3409. if (!H._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv))
  3410. return false;
  3411. }
  3412. sNamed = sParameters._named;
  3413. tNamed = tParameters._named;
  3414. sNamedLength = sNamed.length;
  3415. tNamedLength = tNamed.length;
  3416. for (sIndex = 0, tIndex = 0; tIndex < tNamedLength; tIndex += 3) {
  3417. tName = tNamed[tIndex];
  3418. for (; true;) {
  3419. if (sIndex >= sNamedLength)
  3420. return false;
  3421. sName = sNamed[sIndex];
  3422. sIndex += 3;
  3423. if (tName < sName)
  3424. return false;
  3425. sIsRequired = sNamed[sIndex - 2];
  3426. if (sName < tName) {
  3427. if (sIsRequired)
  3428. return false;
  3429. continue;
  3430. }
  3431. t1 = tNamed[tIndex + 1];
  3432. if (sIsRequired && !t1)
  3433. return false;
  3434. t1 = sNamed[sIndex - 1];
  3435. if (!H._isSubtype(universe, tNamed[tIndex + 2], tEnv, t1, sEnv))
  3436. return false;
  3437. break;
  3438. }
  3439. }
  3440. for (; sIndex < sNamedLength;) {
  3441. if (sNamed[sIndex + 1])
  3442. return false;
  3443. sIndex += 3;
  3444. }
  3445. return true;
  3446. },
  3447. _isInterfaceSubtype: function(universe, s, sEnv, t, tEnv) {
  3448. var sArgs, tArgs, $length, i, t1, t2, rule, supertypeArgs,
  3449. sName = s._primary,
  3450. tName = t._primary;
  3451. if (sName === tName) {
  3452. sArgs = s._rest;
  3453. tArgs = t._rest;
  3454. $length = sArgs.length;
  3455. for (i = 0; i < $length; ++i) {
  3456. t1 = sArgs[i];
  3457. t2 = tArgs[i];
  3458. if (!H._isSubtype(universe, t1, sEnv, t2, tEnv))
  3459. return false;
  3460. }
  3461. return true;
  3462. }
  3463. if (t === type$.Object)
  3464. return true;
  3465. rule = H._Universe_findRule(universe, sName);
  3466. if (rule == null)
  3467. return false;
  3468. supertypeArgs = rule[tName];
  3469. if (supertypeArgs == null)
  3470. return false;
  3471. $length = supertypeArgs.length;
  3472. tArgs = t._rest;
  3473. for (i = 0; i < $length; ++i)
  3474. if (!H._isSubtype(universe, H._Universe_evalInEnvironment(universe, s, supertypeArgs[i]), sEnv, tArgs[i], tEnv))
  3475. return false;
  3476. return true;
  3477. },
  3478. isNullable: function(t) {
  3479. var t1,
  3480. kind = t._kind;
  3481. if (!(t === type$.Null || t === type$.JSNull))
  3482. if (!H.isStrongTopType(t))
  3483. if (kind !== 7)
  3484. if (!(kind === 6 && H.isNullable(t._primary)))
  3485. t1 = kind === 8 && H.isNullable(t._primary);
  3486. else
  3487. t1 = true;
  3488. else
  3489. t1 = true;
  3490. else
  3491. t1 = true;
  3492. else
  3493. t1 = true;
  3494. return t1;
  3495. },
  3496. isTopType: function(t) {
  3497. var t1;
  3498. if (!H.isStrongTopType(t))
  3499. if (!(t === type$.legacy_Object))
  3500. t1 = t === type$.Object;
  3501. else
  3502. t1 = true;
  3503. else
  3504. t1 = true;
  3505. return t1;
  3506. },
  3507. isStrongTopType: function(t) {
  3508. var kind = t._kind;
  3509. return kind === 2 || kind === 3 || kind === 4 || kind === 5 || t === type$.nullable_Object;
  3510. },
  3511. _Utils_objectAssign: function(o, other) {
  3512. var i, key,
  3513. keys = Object.keys(other),
  3514. $length = keys.length;
  3515. for (i = 0; i < $length; ++i) {
  3516. key = keys[i];
  3517. o[key] = other[key];
  3518. }
  3519. },
  3520. Rti: function Rti(t0, t1) {
  3521. var _ = this;
  3522. _._as = t0;
  3523. _._is = t1;
  3524. _._cachedRuntimeType = _._specializedTestResource = _._precomputed1 = null;
  3525. _._kind = 0;
  3526. _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null;
  3527. },
  3528. _FunctionParameters: function _FunctionParameters() {
  3529. this._named = this._optionalPositional = this._requiredPositional = null;
  3530. },
  3531. _Type: function _Type(t0) {
  3532. this._rti = t0;
  3533. },
  3534. _Error: function _Error() {
  3535. },
  3536. _TypeError: function _TypeError(t0) {
  3537. this._message = t0;
  3538. },
  3539. unmangleGlobalNameIfPreservedAnyways: function($name) {
  3540. return init.mangledGlobalNames[$name];
  3541. },
  3542. printString: function(string) {
  3543. if (typeof dartPrint == "function") {
  3544. dartPrint(string);
  3545. return;
  3546. }
  3547. if (typeof console == "object" && typeof console.log != "undefined") {
  3548. console.log(string);
  3549. return;
  3550. }
  3551. if (typeof window == "object")
  3552. return;
  3553. if (typeof print == "function") {
  3554. print(string);
  3555. return;
  3556. }
  3557. throw "Unable to print message: " + String(string);
  3558. }
  3559. },
  3560. J = {
  3561. makeDispatchRecord: function(interceptor, proto, extension, indexability) {
  3562. return {i: interceptor, p: proto, e: extension, x: indexability};
  3563. },
  3564. getNativeInterceptor: function(object) {
  3565. var proto, objectProto, $constructor, interceptor,
  3566. record = object[init.dispatchPropertyName];
  3567. if (record == null)
  3568. if ($.initNativeDispatchFlag == null) {
  3569. H.initNativeDispatch();
  3570. record = object[init.dispatchPropertyName];
  3571. }
  3572. if (record != null) {
  3573. proto = record.p;
  3574. if (false === proto)
  3575. return record.i;
  3576. if (true === proto)
  3577. return object;
  3578. objectProto = Object.getPrototypeOf(object);
  3579. if (proto === objectProto)
  3580. return record.i;
  3581. if (record.e === objectProto)
  3582. throw H.wrapException(P.UnimplementedError$("Return interceptor for " + H.S(proto(object, record))));
  3583. }
  3584. $constructor = object.constructor;
  3585. interceptor = $constructor == null ? null : $constructor[J.JS_INTEROP_INTERCEPTOR_TAG()];
  3586. if (interceptor != null)
  3587. return interceptor;
  3588. interceptor = H.lookupAndCacheInterceptor(object);
  3589. if (interceptor != null)
  3590. return interceptor;
  3591. if (typeof object == "function")
  3592. return C.JavaScriptFunction_methods;
  3593. proto = Object.getPrototypeOf(object);
  3594. if (proto == null)
  3595. return C.PlainJavaScriptObject_methods;
  3596. if (proto === Object.prototype)
  3597. return C.PlainJavaScriptObject_methods;
  3598. if (typeof $constructor == "function") {
  3599. Object.defineProperty($constructor, J.JS_INTEROP_INTERCEPTOR_TAG(), {value: C.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true});
  3600. return C.UnknownJavaScriptObject_methods;
  3601. }
  3602. return C.UnknownJavaScriptObject_methods;
  3603. },
  3604. JS_INTEROP_INTERCEPTOR_TAG: function() {
  3605. var t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
  3606. return t1 == null ? $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js") : t1;
  3607. },
  3608. JSArray_JSArray$fixed: function($length, $E) {
  3609. if (!H._isInt($length))
  3610. throw H.wrapException(P.ArgumentError$value($length, "length", "is not an integer"));
  3611. if ($length < 0 || $length > 4294967295)
  3612. throw H.wrapException(P.RangeError$range($length, 0, 4294967295, "length", null));
  3613. return J.JSArray_JSArray$markFixed(new Array($length), $E);
  3614. },
  3615. JSArray_JSArray$growable: function($length, $E) {
  3616. if (!H._isInt($length) || $length < 0)
  3617. throw H.wrapException(P.ArgumentError$("Length must be a non-negative integer: " + H.S($length)));
  3618. return H.setRuntimeTypeInfo(new Array($length), $E._eval$1("JSArray<0>"));
  3619. },
  3620. JSArray_JSArray$markFixed: function(allocation, $E) {
  3621. return J.JSArray_markFixedList(H.setRuntimeTypeInfo(allocation, $E._eval$1("JSArray<0>")));
  3622. },
  3623. JSArray_markFixedList: function(list) {
  3624. list.fixed$length = Array;
  3625. return list;
  3626. },
  3627. JSArray_markUnmodifiableList: function(list) {
  3628. list.fixed$length = Array;
  3629. list.immutable$list = Array;
  3630. return list;
  3631. },
  3632. JSArray__compareAny: function(a, b) {
  3633. return J.compareTo$1$ns(a, b);
  3634. },
  3635. JSString__isWhitespace: function(codeUnit) {
  3636. if (codeUnit < 256)
  3637. switch (codeUnit) {
  3638. case 9:
  3639. case 10:
  3640. case 11:
  3641. case 12:
  3642. case 13:
  3643. case 32:
  3644. case 133:
  3645. case 160:
  3646. return true;
  3647. default:
  3648. return false;
  3649. }
  3650. switch (codeUnit) {
  3651. case 5760:
  3652. case 8192:
  3653. case 8193:
  3654. case 8194:
  3655. case 8195:
  3656. case 8196:
  3657. case 8197:
  3658. case 8198:
  3659. case 8199:
  3660. case 8200:
  3661. case 8201:
  3662. case 8202:
  3663. case 8232:
  3664. case 8233:
  3665. case 8239:
  3666. case 8287:
  3667. case 12288:
  3668. case 65279:
  3669. return true;
  3670. default:
  3671. return false;
  3672. }
  3673. },
  3674. JSString__skipLeadingWhitespace: function(string, index) {
  3675. var t1, codeUnit;
  3676. for (t1 = string.length; index < t1;) {
  3677. codeUnit = C.JSString_methods._codeUnitAt$1(string, index);
  3678. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  3679. break;
  3680. ++index;
  3681. }
  3682. return index;
  3683. },
  3684. JSString__skipTrailingWhitespace: function(string, index) {
  3685. var index0, codeUnit;
  3686. for (; index > 0; index = index0) {
  3687. index0 = index - 1;
  3688. codeUnit = C.JSString_methods.codeUnitAt$1(string, index0);
  3689. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  3690. break;
  3691. }
  3692. return index;
  3693. },
  3694. getInterceptor$: function(receiver) {
  3695. if (typeof receiver == "number") {
  3696. if (Math.floor(receiver) == receiver)
  3697. return J.JSInt.prototype;
  3698. return J.JSDouble.prototype;
  3699. }
  3700. if (typeof receiver == "string")
  3701. return J.JSString.prototype;
  3702. if (receiver == null)
  3703. return J.JSNull.prototype;
  3704. if (typeof receiver == "boolean")
  3705. return J.JSBool.prototype;
  3706. if (receiver.constructor == Array)
  3707. return J.JSArray.prototype;
  3708. if (typeof receiver != "object") {
  3709. if (typeof receiver == "function")
  3710. return J.JavaScriptFunction.prototype;
  3711. return receiver;
  3712. }
  3713. if (receiver instanceof P.Object)
  3714. return receiver;
  3715. return J.getNativeInterceptor(receiver);
  3716. },
  3717. getInterceptor$ansx: function(receiver) {
  3718. if (typeof receiver == "number")
  3719. return J.JSNumber.prototype;
  3720. if (typeof receiver == "string")
  3721. return J.JSString.prototype;
  3722. if (receiver == null)
  3723. return receiver;
  3724. if (receiver.constructor == Array)
  3725. return J.JSArray.prototype;
  3726. if (typeof receiver != "object") {
  3727. if (typeof receiver == "function")
  3728. return J.JavaScriptFunction.prototype;
  3729. return receiver;
  3730. }
  3731. if (receiver instanceof P.Object)
  3732. return receiver;
  3733. return J.getNativeInterceptor(receiver);
  3734. },
  3735. getInterceptor$asx: function(receiver) {
  3736. if (typeof receiver == "string")
  3737. return J.JSString.prototype;
  3738. if (receiver == null)
  3739. return receiver;
  3740. if (receiver.constructor == Array)
  3741. return J.JSArray.prototype;
  3742. if (typeof receiver != "object") {
  3743. if (typeof receiver == "function")
  3744. return J.JavaScriptFunction.prototype;
  3745. return receiver;
  3746. }
  3747. if (receiver instanceof P.Object)
  3748. return receiver;
  3749. return J.getNativeInterceptor(receiver);
  3750. },
  3751. getInterceptor$ax: function(receiver) {
  3752. if (receiver == null)
  3753. return receiver;
  3754. if (receiver.constructor == Array)
  3755. return J.JSArray.prototype;
  3756. if (typeof receiver != "object") {
  3757. if (typeof receiver == "function")
  3758. return J.JavaScriptFunction.prototype;
  3759. return receiver;
  3760. }
  3761. if (receiver instanceof P.Object)
  3762. return receiver;
  3763. return J.getNativeInterceptor(receiver);
  3764. },
  3765. getInterceptor$n: function(receiver) {
  3766. if (typeof receiver == "number")
  3767. return J.JSNumber.prototype;
  3768. if (receiver == null)
  3769. return receiver;
  3770. if (!(receiver instanceof P.Object))
  3771. return J.UnknownJavaScriptObject.prototype;
  3772. return receiver;
  3773. },
  3774. getInterceptor$ns: function(receiver) {
  3775. if (typeof receiver == "number")
  3776. return J.JSNumber.prototype;
  3777. if (typeof receiver == "string")
  3778. return J.JSString.prototype;
  3779. if (receiver == null)
  3780. return receiver;
  3781. if (!(receiver instanceof P.Object))
  3782. return J.UnknownJavaScriptObject.prototype;
  3783. return receiver;
  3784. },
  3785. getInterceptor$s: function(receiver) {
  3786. if (typeof receiver == "string")
  3787. return J.JSString.prototype;
  3788. if (receiver == null)
  3789. return receiver;
  3790. if (!(receiver instanceof P.Object))
  3791. return J.UnknownJavaScriptObject.prototype;
  3792. return receiver;
  3793. },
  3794. getInterceptor$x: function(receiver) {
  3795. if (receiver == null)
  3796. return receiver;
  3797. if (typeof receiver != "object") {
  3798. if (typeof receiver == "function")
  3799. return J.JavaScriptFunction.prototype;
  3800. return receiver;
  3801. }
  3802. if (receiver instanceof P.Object)
  3803. return receiver;
  3804. return J.getNativeInterceptor(receiver);
  3805. },
  3806. set$FALSE$x: function(receiver, value) {
  3807. return J.getInterceptor$x(receiver).set$FALSE(receiver, value);
  3808. },
  3809. set$NULL$x: function(receiver, value) {
  3810. return J.getInterceptor$x(receiver).set$NULL(receiver, value);
  3811. },
  3812. set$TRUE$x: function(receiver, value) {
  3813. return J.getInterceptor$x(receiver).set$TRUE(receiver, value);
  3814. },
  3815. set$cli_pkg_main_0_$x: function(receiver, value) {
  3816. return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value);
  3817. },
  3818. set$context$x: function(receiver, value) {
  3819. return J.getInterceptor$x(receiver).set$context(receiver, value);
  3820. },
  3821. set$dartValue$x: function(receiver, value) {
  3822. return J.getInterceptor$x(receiver).set$dartValue(receiver, value);
  3823. },
  3824. set$info$x: function(receiver, value) {
  3825. return J.getInterceptor$x(receiver).set$info(receiver, value);
  3826. },
  3827. set$length$asx: function(receiver, value) {
  3828. return J.getInterceptor$asx(receiver).set$length(receiver, value);
  3829. },
  3830. set$render$x: function(receiver, value) {
  3831. return J.getInterceptor$x(receiver).set$render(receiver, value);
  3832. },
  3833. set$renderSync$x: function(receiver, value) {
  3834. return J.getInterceptor$x(receiver).set$renderSync(receiver, value);
  3835. },
  3836. set$types$x: function(receiver, value) {
  3837. return J.getInterceptor$x(receiver).set$types(receiver, value);
  3838. },
  3839. get$code$x: function(receiver) {
  3840. return J.getInterceptor$x(receiver).get$code(receiver);
  3841. },
  3842. get$current$x: function(receiver) {
  3843. return J.getInterceptor$x(receiver).get$current(receiver);
  3844. },
  3845. get$dartValue$x: function(receiver) {
  3846. return J.getInterceptor$x(receiver).get$dartValue(receiver);
  3847. },
  3848. get$end$x: function(receiver) {
  3849. return J.getInterceptor$x(receiver).get$end(receiver);
  3850. },
  3851. get$env$x: function(receiver) {
  3852. return J.getInterceptor$x(receiver).get$env(receiver);
  3853. },
  3854. get$fiber$x: function(receiver) {
  3855. return J.getInterceptor$x(receiver).get$fiber(receiver);
  3856. },
  3857. get$file$x: function(receiver) {
  3858. return J.getInterceptor$x(receiver).get$file(receiver);
  3859. },
  3860. get$first$ax: function(receiver) {
  3861. return J.getInterceptor$ax(receiver).get$first(receiver);
  3862. },
  3863. get$hashCode$: function(receiver) {
  3864. return J.getInterceptor$(receiver).get$hashCode(receiver);
  3865. },
  3866. get$isEmpty$asx: function(receiver) {
  3867. return J.getInterceptor$asx(receiver).get$isEmpty(receiver);
  3868. },
  3869. get$isNotEmpty$asx: function(receiver) {
  3870. return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver);
  3871. },
  3872. get$isTTY$x: function(receiver) {
  3873. return J.getInterceptor$x(receiver).get$isTTY(receiver);
  3874. },
  3875. get$iterator$ax: function(receiver) {
  3876. return J.getInterceptor$ax(receiver).get$iterator(receiver);
  3877. },
  3878. get$last$ax: function(receiver) {
  3879. return J.getInterceptor$ax(receiver).get$last(receiver);
  3880. },
  3881. get$length$asx: function(receiver) {
  3882. return J.getInterceptor$asx(receiver).get$length(receiver);
  3883. },
  3884. get$message$x: function(receiver) {
  3885. return J.getInterceptor$x(receiver).get$message(receiver);
  3886. },
  3887. get$mtime$x: function(receiver) {
  3888. return J.getInterceptor$x(receiver).get$mtime(receiver);
  3889. },
  3890. get$options$x: function(receiver) {
  3891. return J.getInterceptor$x(receiver).get$options(receiver);
  3892. },
  3893. get$path$x: function(receiver) {
  3894. return J.getInterceptor$x(receiver).get$path(receiver);
  3895. },
  3896. get$platform$x: function(receiver) {
  3897. return J.getInterceptor$x(receiver).get$platform(receiver);
  3898. },
  3899. get$reversed$ax: function(receiver) {
  3900. return J.getInterceptor$ax(receiver).get$reversed(receiver);
  3901. },
  3902. get$single$ax: function(receiver) {
  3903. return J.getInterceptor$ax(receiver).get$single(receiver);
  3904. },
  3905. $add$ansx: function(receiver, a0) {
  3906. if (typeof receiver == "number" && typeof a0 == "number")
  3907. return receiver + a0;
  3908. return J.getInterceptor$ansx(receiver).$add(receiver, a0);
  3909. },
  3910. $eq$: function(receiver, a0) {
  3911. if (receiver == null)
  3912. return a0 == null;
  3913. if (typeof receiver != "object")
  3914. return a0 != null && receiver === a0;
  3915. return J.getInterceptor$(receiver).$eq(receiver, a0);
  3916. },
  3917. $index$asx: function(receiver, a0) {
  3918. if (typeof a0 === "number")
  3919. if (receiver.constructor == Array || typeof receiver == "string" || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))
  3920. if (a0 >>> 0 === a0 && a0 < receiver.length)
  3921. return receiver[a0];
  3922. return J.getInterceptor$asx(receiver).$index(receiver, a0);
  3923. },
  3924. $indexSet$ax: function(receiver, a0, a1) {
  3925. if (typeof a0 === "number")
  3926. if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
  3927. return receiver[a0] = a1;
  3928. return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
  3929. },
  3930. _codeUnitAt$1$s: function(receiver, a0) {
  3931. return J.getInterceptor$s(receiver)._codeUnitAt$1(receiver, a0);
  3932. },
  3933. add$1$ax: function(receiver, a0) {
  3934. return J.getInterceptor$ax(receiver).add$1(receiver, a0);
  3935. },
  3936. addAll$1$ax: function(receiver, a0) {
  3937. return J.getInterceptor$ax(receiver).addAll$1(receiver, a0);
  3938. },
  3939. allMatches$1$s: function(receiver, a0) {
  3940. return J.getInterceptor$s(receiver).allMatches$1(receiver, a0);
  3941. },
  3942. allMatches$2$s: function(receiver, a0, a1) {
  3943. return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1);
  3944. },
  3945. any$1$ax: function(receiver, a0) {
  3946. return J.getInterceptor$ax(receiver).any$1(receiver, a0);
  3947. },
  3948. apply$2$x: function(receiver, a0, a1) {
  3949. return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1);
  3950. },
  3951. cast$1$0$ax: function(receiver, $T1) {
  3952. return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1);
  3953. },
  3954. ceil$0$n: function(receiver) {
  3955. return J.getInterceptor$n(receiver).ceil$0(receiver);
  3956. },
  3957. clamp$2$n: function(receiver, a0, a1) {
  3958. return J.getInterceptor$n(receiver).clamp$2(receiver, a0, a1);
  3959. },
  3960. close$0$x: function(receiver) {
  3961. return J.getInterceptor$x(receiver).close$0(receiver);
  3962. },
  3963. codeUnitAt$1$s: function(receiver, a0) {
  3964. return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0);
  3965. },
  3966. compareTo$1$ns: function(receiver, a0) {
  3967. return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0);
  3968. },
  3969. contains$1$asx: function(receiver, a0) {
  3970. return J.getInterceptor$asx(receiver).contains$1(receiver, a0);
  3971. },
  3972. createInterface$1$x: function(receiver, a0) {
  3973. return J.getInterceptor$x(receiver).createInterface$1(receiver, a0);
  3974. },
  3975. elementAt$1$ax: function(receiver, a0) {
  3976. return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
  3977. },
  3978. endsWith$1$s: function(receiver, a0) {
  3979. return J.getInterceptor$s(receiver).endsWith$1(receiver, a0);
  3980. },
  3981. every$1$ax: function(receiver, a0) {
  3982. return J.getInterceptor$ax(receiver).every$1(receiver, a0);
  3983. },
  3984. existsSync$1$x: function(receiver, a0) {
  3985. return J.getInterceptor$x(receiver).existsSync$1(receiver, a0);
  3986. },
  3987. expand$1$1$ax: function(receiver, a0, $T1) {
  3988. return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1);
  3989. },
  3990. fillRange$3$ax: function(receiver, a0, a1, a2) {
  3991. return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2);
  3992. },
  3993. floor$0$n: function(receiver) {
  3994. return J.getInterceptor$n(receiver).floor$0(receiver);
  3995. },
  3996. fold$2$ax: function(receiver, a0, a1) {
  3997. return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1);
  3998. },
  3999. getRange$2$ax: function(receiver, a0, a1) {
  4000. return J.getInterceptor$ax(receiver).getRange$2(receiver, a0, a1);
  4001. },
  4002. getTime$0$x: function(receiver) {
  4003. return J.getInterceptor$x(receiver).getTime$0(receiver);
  4004. },
  4005. indexOf$1$asx: function(receiver, a0) {
  4006. return J.getInterceptor$asx(receiver).indexOf$1(receiver, a0);
  4007. },
  4008. isDirectory$0$x: function(receiver) {
  4009. return J.getInterceptor$x(receiver).isDirectory$0(receiver);
  4010. },
  4011. isFile$0$x: function(receiver) {
  4012. return J.getInterceptor$x(receiver).isFile$0(receiver);
  4013. },
  4014. join$0$ax: function(receiver) {
  4015. return J.getInterceptor$ax(receiver).join$0(receiver);
  4016. },
  4017. join$1$ax: function(receiver, a0) {
  4018. return J.getInterceptor$ax(receiver).join$1(receiver, a0);
  4019. },
  4020. map$1$ax: function(receiver, a0) {
  4021. return J.getInterceptor$ax(receiver).map$1(receiver, a0);
  4022. },
  4023. map$1$1$ax: function(receiver, a0, $T1) {
  4024. return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1);
  4025. },
  4026. matchAsPrefix$2$s: function(receiver, a0, a1) {
  4027. return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1);
  4028. },
  4029. mkdirSync$1$x: function(receiver, a0) {
  4030. return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0);
  4031. },
  4032. noSuchMethod$1$: function(receiver, a0) {
  4033. return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0);
  4034. },
  4035. on$2$x: function(receiver, a0, a1) {
  4036. return J.getInterceptor$x(receiver).on$2(receiver, a0, a1);
  4037. },
  4038. padRight$1$s: function(receiver, a0) {
  4039. return J.getInterceptor$s(receiver).padRight$1(receiver, a0);
  4040. },
  4041. readFileSync$2$x: function(receiver, a0, a1) {
  4042. return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1);
  4043. },
  4044. readdirSync$1$x: function(receiver, a0) {
  4045. return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0);
  4046. },
  4047. remove$1$ax: function(receiver, a0) {
  4048. return J.getInterceptor$ax(receiver).remove$1(receiver, a0);
  4049. },
  4050. replaceRange$3$asx: function(receiver, a0, a1, a2) {
  4051. return J.getInterceptor$asx(receiver).replaceRange$3(receiver, a0, a1, a2);
  4052. },
  4053. round$0$n: function(receiver) {
  4054. return J.getInterceptor$n(receiver).round$0(receiver);
  4055. },
  4056. run$0$x: function(receiver) {
  4057. return J.getInterceptor$x(receiver).run$0(receiver);
  4058. },
  4059. run$1$x: function(receiver, a0) {
  4060. return J.getInterceptor$x(receiver).run$1(receiver, a0);
  4061. },
  4062. setPrompt$1$x: function(receiver, a0) {
  4063. return J.getInterceptor$x(receiver).setPrompt$1(receiver, a0);
  4064. },
  4065. setRange$4$ax: function(receiver, a0, a1, a2, a3) {
  4066. return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3);
  4067. },
  4068. skip$1$ax: function(receiver, a0) {
  4069. return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
  4070. },
  4071. sort$1$ax: function(receiver, a0) {
  4072. return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
  4073. },
  4074. startsWith$1$s: function(receiver, a0) {
  4075. return J.getInterceptor$s(receiver).startsWith$1(receiver, a0);
  4076. },
  4077. startsWith$2$s: function(receiver, a0, a1) {
  4078. return J.getInterceptor$s(receiver).startsWith$2(receiver, a0, a1);
  4079. },
  4080. statSync$1$x: function(receiver, a0) {
  4081. return J.getInterceptor$x(receiver).statSync$1(receiver, a0);
  4082. },
  4083. substring$1$s: function(receiver, a0) {
  4084. return J.getInterceptor$s(receiver).substring$1(receiver, a0);
  4085. },
  4086. substring$2$s: function(receiver, a0, a1) {
  4087. return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
  4088. },
  4089. take$1$ax: function(receiver, a0) {
  4090. return J.getInterceptor$ax(receiver).take$1(receiver, a0);
  4091. },
  4092. toList$0$ax: function(receiver) {
  4093. return J.getInterceptor$ax(receiver).toList$0(receiver);
  4094. },
  4095. toList$1$growable$ax: function(receiver, a0) {
  4096. return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0);
  4097. },
  4098. toRadixString$1$n: function(receiver, a0) {
  4099. return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
  4100. },
  4101. toSet$0$ax: function(receiver) {
  4102. return J.getInterceptor$ax(receiver).toSet$0(receiver);
  4103. },
  4104. toString$0$: function(receiver) {
  4105. return J.getInterceptor$(receiver).toString$0(receiver);
  4106. },
  4107. toString$1$color$: function(receiver, a0) {
  4108. return J.getInterceptor$(receiver).toString$1$color(receiver, a0);
  4109. },
  4110. trim$0$s: function(receiver) {
  4111. return J.getInterceptor$s(receiver).trim$0(receiver);
  4112. },
  4113. unlinkSync$1$x: function(receiver, a0) {
  4114. return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0);
  4115. },
  4116. watch$2$x: function(receiver, a0, a1) {
  4117. return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1);
  4118. },
  4119. where$1$ax: function(receiver, a0) {
  4120. return J.getInterceptor$ax(receiver).where$1(receiver, a0);
  4121. },
  4122. write$1$x: function(receiver, a0) {
  4123. return J.getInterceptor$x(receiver).write$1(receiver, a0);
  4124. },
  4125. writeFileSync$2$x: function(receiver, a0, a1) {
  4126. return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1);
  4127. },
  4128. yield$0$x: function(receiver) {
  4129. return J.getInterceptor$x(receiver).yield$0(receiver);
  4130. },
  4131. Interceptor: function Interceptor() {
  4132. },
  4133. JSBool: function JSBool() {
  4134. },
  4135. JSNull: function JSNull() {
  4136. },
  4137. JavaScriptObject: function JavaScriptObject() {
  4138. },
  4139. PlainJavaScriptObject: function PlainJavaScriptObject() {
  4140. },
  4141. UnknownJavaScriptObject: function UnknownJavaScriptObject() {
  4142. },
  4143. JavaScriptFunction: function JavaScriptFunction() {
  4144. },
  4145. JSArray: function JSArray(t0) {
  4146. this.$ti = t0;
  4147. },
  4148. JSUnmodifiableArray: function JSUnmodifiableArray(t0) {
  4149. this.$ti = t0;
  4150. },
  4151. ArrayIterator: function ArrayIterator(t0, t1) {
  4152. var _ = this;
  4153. _._iterable = t0;
  4154. _._length = t1;
  4155. _._index = 0;
  4156. _._current = null;
  4157. },
  4158. JSNumber: function JSNumber() {
  4159. },
  4160. JSInt: function JSInt() {
  4161. },
  4162. JSDouble: function JSDouble() {
  4163. },
  4164. JSString: function JSString() {
  4165. }
  4166. },
  4167. P = {
  4168. _AsyncRun__initializeScheduleImmediate: function() {
  4169. var div, span, t1 = {};
  4170. if (self.scheduleImmediate != null)
  4171. return P.async__AsyncRun__scheduleImmediateJsOverride$closure();
  4172. if (self.MutationObserver != null && self.document != null) {
  4173. div = self.document.createElement("div");
  4174. span = self.document.createElement("span");
  4175. t1.storedCallback = null;
  4176. new self.MutationObserver(H.convertDartClosureToJS(new P._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
  4177. return new P._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
  4178. } else if (self.setImmediate != null)
  4179. return P.async__AsyncRun__scheduleImmediateWithSetImmediate$closure();
  4180. return P.async__AsyncRun__scheduleImmediateWithTimer$closure();
  4181. },
  4182. _AsyncRun__scheduleImmediateJsOverride: function(callback) {
  4183. self.scheduleImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
  4184. },
  4185. _AsyncRun__scheduleImmediateWithSetImmediate: function(callback) {
  4186. self.setImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
  4187. },
  4188. _AsyncRun__scheduleImmediateWithTimer: function(callback) {
  4189. P.Timer__createTimer(C.Duration_0, callback);
  4190. },
  4191. Timer__createTimer: function(duration, callback) {
  4192. var milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
  4193. return P._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
  4194. },
  4195. _TimerImpl$: function(milliseconds, callback) {
  4196. var t1 = new P._TimerImpl(true);
  4197. t1._TimerImpl$2(milliseconds, callback);
  4198. return t1;
  4199. },
  4200. _TimerImpl$periodic: function(milliseconds, callback) {
  4201. var t1 = new P._TimerImpl(false);
  4202. t1._TimerImpl$periodic$2(milliseconds, callback);
  4203. return t1;
  4204. },
  4205. _makeAsyncAwaitCompleter: function($T) {
  4206. return new P._AsyncAwaitCompleter(new P._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>"));
  4207. },
  4208. _asyncStartSync: function(bodyFunction, completer) {
  4209. bodyFunction.call$2(0, null);
  4210. completer.isSync = true;
  4211. return completer._future;
  4212. },
  4213. _asyncAwait: function(object, bodyFunction) {
  4214. P._awaitOnObject(object, bodyFunction);
  4215. },
  4216. _asyncReturn: function(object, completer) {
  4217. completer.complete$1(object);
  4218. },
  4219. _asyncRethrow: function(object, completer) {
  4220. completer.completeError$2(H.unwrapException(object), H.getTraceFromException(object));
  4221. },
  4222. _awaitOnObject: function(object, bodyFunction) {
  4223. var t1, future,
  4224. thenCallback = new P._awaitOnObject_closure(bodyFunction),
  4225. errorCallback = new P._awaitOnObject_closure0(bodyFunction);
  4226. if (object instanceof P._Future)
  4227. object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic);
  4228. else {
  4229. t1 = type$.dynamic;
  4230. if (type$.Future_dynamic._is(object))
  4231. object.then$1$2$onError(thenCallback, errorCallback, t1);
  4232. else {
  4233. future = new P._Future($.Zone__current, type$._Future_dynamic);
  4234. future._state = 4;
  4235. future._resultOrListeners = object;
  4236. future._thenAwait$1$2(thenCallback, errorCallback, t1);
  4237. }
  4238. }
  4239. },
  4240. _wrapJsFunctionForAsync: function($function) {
  4241. var $protected = function(fn, ERROR) {
  4242. return function(errorCode, result) {
  4243. while (true)
  4244. try {
  4245. fn(errorCode, result);
  4246. break;
  4247. } catch (error) {
  4248. result = error;
  4249. errorCode = ERROR;
  4250. }
  4251. };
  4252. }($function, 1);
  4253. return $.Zone__current.registerBinaryCallback$1(new P._wrapJsFunctionForAsync_closure($protected));
  4254. },
  4255. _asyncStarHelper: function(object, bodyFunctionOrErrorCode, controller) {
  4256. var t1, t2, stream;
  4257. if (bodyFunctionOrErrorCode === 0) {
  4258. t1 = controller.cancelationFuture;
  4259. if (t1 != null)
  4260. t1._completeWithValue$1(null);
  4261. else
  4262. controller.get$controller().close$0(0);
  4263. return;
  4264. } else if (bodyFunctionOrErrorCode === 1) {
  4265. t1 = controller.cancelationFuture;
  4266. if (t1 != null)
  4267. t1._completeError$2(H.unwrapException(object), H.getTraceFromException(object));
  4268. else {
  4269. t1 = H.unwrapException(object);
  4270. t2 = H.getTraceFromException(object);
  4271. controller.get$controller().addError$2(t1, t2);
  4272. controller.get$controller().close$0(0);
  4273. }
  4274. return;
  4275. }
  4276. if (object instanceof P._IterationMarker) {
  4277. if (controller.cancelationFuture != null) {
  4278. bodyFunctionOrErrorCode.call$2(2, null);
  4279. return;
  4280. }
  4281. t1 = object.state;
  4282. if (t1 === 0) {
  4283. t1 = object.value;
  4284. controller.get$controller().add$1(0, t1);
  4285. P.scheduleMicrotask(new P._asyncStarHelper_closure(controller, bodyFunctionOrErrorCode));
  4286. return;
  4287. } else if (t1 === 1) {
  4288. stream = object.value;
  4289. controller.get$controller().addStream$2$cancelOnError(stream, false).then$1(new P._asyncStarHelper_closure0(controller, bodyFunctionOrErrorCode));
  4290. return;
  4291. }
  4292. }
  4293. P._awaitOnObject(object, bodyFunctionOrErrorCode);
  4294. },
  4295. _streamOfController: function(controller) {
  4296. var t1 = controller.get$controller();
  4297. return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>"));
  4298. },
  4299. _AsyncStarStreamController$: function(body, $T) {
  4300. var t1 = new P._AsyncStarStreamController($T._eval$1("_AsyncStarStreamController<0>"));
  4301. t1._AsyncStarStreamController$1(body, $T);
  4302. return t1;
  4303. },
  4304. _makeAsyncStarStreamController: function(body, $T) {
  4305. return P._AsyncStarStreamController$(body, $T);
  4306. },
  4307. _IterationMarker_yieldStar: function(values) {
  4308. return new P._IterationMarker(values, 1);
  4309. },
  4310. _IterationMarker_endOfIteration: function() {
  4311. return C._IterationMarker_null_2;
  4312. },
  4313. _IterationMarker_yieldSingle: function(value) {
  4314. return new P._IterationMarker(value, 0);
  4315. },
  4316. _IterationMarker_uncaughtError: function(error) {
  4317. return new P._IterationMarker(error, 3);
  4318. },
  4319. _makeSyncStarIterable: function(body, $T) {
  4320. return new P._SyncStarIterable(body, $T._eval$1("_SyncStarIterable<0>"));
  4321. },
  4322. Future_Future$value: function(value, $T) {
  4323. var t1 = new P._Future($.Zone__current, $T._eval$1("_Future<0>"));
  4324. t1._asyncComplete$1(value);
  4325. return t1;
  4326. },
  4327. Future_Future$error: function(error, stackTrace, $T) {
  4328. var t1, replacement;
  4329. P.ArgumentError_checkNotNull(error, "error");
  4330. t1 = $.Zone__current;
  4331. if (t1 !== C.C__RootZone) {
  4332. replacement = t1.errorCallback$2(error, stackTrace);
  4333. if (replacement != null) {
  4334. error = replacement.error;
  4335. stackTrace = replacement.stackTrace;
  4336. }
  4337. }
  4338. if (stackTrace == null)
  4339. stackTrace = P.AsyncError_defaultStackTrace(error);
  4340. t1 = new P._Future($.Zone__current, $T._eval$1("_Future<0>"));
  4341. t1._asyncCompleteError$2(error, stackTrace);
  4342. return t1;
  4343. },
  4344. Future_wait: function(futures, $T) {
  4345. var _error_get, _error_set, _stackTrace_get, _stackTrace_set, handleError, future, pos, e, st, t1, t2, exception, _box_0 = {}, cleanUp = null,
  4346. eagerError = false,
  4347. result = new P._Future($.Zone__current, $T._eval$1("_Future<List<0>>"));
  4348. _box_0.values = null;
  4349. _box_0.remaining = 0;
  4350. _box_0.error = null;
  4351. _error_get = new P.Future_wait__error_get(_box_0);
  4352. _error_set = new P.Future_wait__error_set(_box_0);
  4353. _box_0.stackTrace = null;
  4354. _stackTrace_get = new P.Future_wait__stackTrace_get(_box_0);
  4355. _stackTrace_set = new P.Future_wait__stackTrace_set(_box_0);
  4356. handleError = new P.Future_wait_handleError(_box_0, cleanUp, eagerError, result, _error_set, _stackTrace_set, _error_get, _stackTrace_get);
  4357. try {
  4358. for (t1 = J.get$iterator$ax(futures), t2 = type$.Null; t1.moveNext$0();) {
  4359. future = t1.get$current(t1);
  4360. pos = _box_0.remaining;
  4361. future.then$1$2$onError(new P.Future_wait_closure(_box_0, pos, result, cleanUp, eagerError, _error_get, _stackTrace_get, $T), handleError, t2);
  4362. ++_box_0.remaining;
  4363. }
  4364. t1 = _box_0.remaining;
  4365. if (t1 === 0) {
  4366. t1 = P.Future_Future$value(C.List_empty9, $T._eval$1("List<0>"));
  4367. return t1;
  4368. }
  4369. _box_0.values = P.List_List$filled(t1, null, false, $T._eval$1("0?"));
  4370. } catch (exception) {
  4371. e = H.unwrapException(exception);
  4372. st = H.getTraceFromException(exception);
  4373. if (_box_0.remaining === 0 || eagerError)
  4374. return P.Future_Future$error(e, st, $T._eval$1("List<0>"));
  4375. else {
  4376. _error_set.call$1(e);
  4377. _stackTrace_set.call$1(st);
  4378. }
  4379. }
  4380. return result;
  4381. },
  4382. _Future$zoneValue: function(value, _zone, $T) {
  4383. var t1 = new P._Future(_zone, $T._eval$1("_Future<0>"));
  4384. t1._state = 4;
  4385. t1._resultOrListeners = value;
  4386. return t1;
  4387. },
  4388. _Future__chainForeignFuture: function(source, target) {
  4389. var e, s, exception;
  4390. target._state = 1;
  4391. try {
  4392. source.then$1$2$onError(new P._Future__chainForeignFuture_closure(target), new P._Future__chainForeignFuture_closure0(target), type$.Null);
  4393. } catch (exception) {
  4394. e = H.unwrapException(exception);
  4395. s = H.getTraceFromException(exception);
  4396. P.scheduleMicrotask(new P._Future__chainForeignFuture_closure1(target, e, s));
  4397. }
  4398. },
  4399. _Future__chainCoreFuture: function(source, target) {
  4400. var t1, listeners;
  4401. for (; t1 = source._state, t1 === 2;)
  4402. source = source._resultOrListeners;
  4403. if (t1 >= 4) {
  4404. listeners = target._removeListeners$0();
  4405. target._state = source._state;
  4406. target._resultOrListeners = source._resultOrListeners;
  4407. P._Future__propagateToListeners(target, listeners);
  4408. } else {
  4409. listeners = target._resultOrListeners;
  4410. target._state = 2;
  4411. target._resultOrListeners = source;
  4412. source._prependListeners$1(listeners);
  4413. }
  4414. },
  4415. _Future__propagateToListeners: function(source, listeners) {
  4416. var t2, _box_0, hasError, nextListener, nextListener0, t3, sourceResult, t4, t5, zone, oldZone, result, current, _box_1 = {},
  4417. t1 = _box_1.source = source;
  4418. for (t2 = type$.Future_dynamic; true;) {
  4419. _box_0 = {};
  4420. hasError = t1._state === 8;
  4421. if (listeners == null) {
  4422. if (hasError) {
  4423. t2 = t1._resultOrListeners;
  4424. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  4425. }
  4426. return;
  4427. }
  4428. _box_0.listener = listeners;
  4429. nextListener = listeners._nextListener;
  4430. for (t1 = listeners; nextListener != null; t1 = nextListener, nextListener = nextListener0) {
  4431. t1._nextListener = null;
  4432. P._Future__propagateToListeners(_box_1.source, t1);
  4433. _box_0.listener = nextListener;
  4434. nextListener0 = nextListener._nextListener;
  4435. }
  4436. t3 = _box_1.source;
  4437. sourceResult = t3._resultOrListeners;
  4438. _box_0.listenerHasError = hasError;
  4439. _box_0.listenerValueOrError = sourceResult;
  4440. t4 = !hasError;
  4441. if (t4) {
  4442. t5 = t1.state;
  4443. t5 = (t5 & 1) !== 0 || (t5 & 15) === 8;
  4444. } else
  4445. t5 = true;
  4446. if (t5) {
  4447. zone = t1.result._zone;
  4448. if (hasError) {
  4449. t1 = t3._zone;
  4450. t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone());
  4451. } else
  4452. t1 = false;
  4453. if (t1) {
  4454. t1 = _box_1.source;
  4455. t2 = t1._resultOrListeners;
  4456. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  4457. return;
  4458. }
  4459. oldZone = $.Zone__current;
  4460. if (oldZone !== zone)
  4461. $.Zone__current = zone;
  4462. else
  4463. oldZone = null;
  4464. t1 = _box_0.listener.state;
  4465. if ((t1 & 15) === 8)
  4466. new P._Future__propagateToListeners_handleWhenCompleteCallback(_box_0, _box_1, hasError).call$0();
  4467. else if (t4) {
  4468. if ((t1 & 1) !== 0)
  4469. new P._Future__propagateToListeners_handleValueCallback(_box_0, sourceResult).call$0();
  4470. } else if ((t1 & 2) !== 0)
  4471. new P._Future__propagateToListeners_handleError(_box_1, _box_0).call$0();
  4472. if (oldZone != null)
  4473. $.Zone__current = oldZone;
  4474. t1 = _box_0.listenerValueOrError;
  4475. if (t2._is(t1)) {
  4476. result = _box_0.listener.result;
  4477. if (t1._state >= 4) {
  4478. current = result._resultOrListeners;
  4479. result._resultOrListeners = null;
  4480. listeners = result._reverseListeners$1(current);
  4481. result._state = t1._state;
  4482. result._resultOrListeners = t1._resultOrListeners;
  4483. _box_1.source = t1;
  4484. continue;
  4485. } else
  4486. P._Future__chainCoreFuture(t1, result);
  4487. return;
  4488. }
  4489. }
  4490. result = _box_0.listener.result;
  4491. current = result._resultOrListeners;
  4492. result._resultOrListeners = null;
  4493. listeners = result._reverseListeners$1(current);
  4494. t1 = _box_0.listenerHasError;
  4495. t3 = _box_0.listenerValueOrError;
  4496. if (!t1) {
  4497. result._state = 4;
  4498. result._resultOrListeners = t3;
  4499. } else {
  4500. result._state = 8;
  4501. result._resultOrListeners = t3;
  4502. }
  4503. _box_1.source = result;
  4504. t1 = result;
  4505. }
  4506. },
  4507. _registerErrorHandler: function(errorHandler, zone) {
  4508. if (type$.dynamic_Function_Object_StackTrace._is(errorHandler))
  4509. return zone.registerBinaryCallback$1(errorHandler);
  4510. if (type$.dynamic_Function_Object._is(errorHandler))
  4511. return zone.registerUnaryCallback$1(errorHandler);
  4512. throw H.wrapException(P.ArgumentError$value(errorHandler, "onError", "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a a valid result"));
  4513. },
  4514. _microtaskLoop: function() {
  4515. var entry, next;
  4516. for (entry = $._nextCallback; entry != null; entry = $._nextCallback) {
  4517. $._lastPriorityCallback = null;
  4518. next = entry.next;
  4519. $._nextCallback = next;
  4520. if (next == null)
  4521. $._lastCallback = null;
  4522. entry.callback.call$0();
  4523. }
  4524. },
  4525. _startMicrotaskLoop: function() {
  4526. $._isInCallbackLoop = true;
  4527. try {
  4528. P._microtaskLoop();
  4529. } finally {
  4530. $._lastPriorityCallback = null;
  4531. $._isInCallbackLoop = false;
  4532. if ($._nextCallback != null)
  4533. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
  4534. }
  4535. },
  4536. _scheduleAsyncCallback: function(callback) {
  4537. var newEntry = new P._AsyncCallbackEntry(callback),
  4538. lastCallback = $._lastCallback;
  4539. if (lastCallback == null) {
  4540. $._nextCallback = $._lastCallback = newEntry;
  4541. if (!$._isInCallbackLoop)
  4542. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
  4543. } else
  4544. $._lastCallback = lastCallback.next = newEntry;
  4545. },
  4546. _schedulePriorityAsyncCallback: function(callback) {
  4547. var entry, lastPriorityCallback, next,
  4548. t1 = $._nextCallback;
  4549. if (t1 == null) {
  4550. P._scheduleAsyncCallback(callback);
  4551. $._lastPriorityCallback = $._lastCallback;
  4552. return;
  4553. }
  4554. entry = new P._AsyncCallbackEntry(callback);
  4555. lastPriorityCallback = $._lastPriorityCallback;
  4556. if (lastPriorityCallback == null) {
  4557. entry.next = t1;
  4558. $._nextCallback = $._lastPriorityCallback = entry;
  4559. } else {
  4560. next = lastPriorityCallback.next;
  4561. entry.next = next;
  4562. $._lastPriorityCallback = lastPriorityCallback.next = entry;
  4563. if (next == null)
  4564. $._lastCallback = entry;
  4565. }
  4566. },
  4567. scheduleMicrotask: function(callback) {
  4568. var t1, _null = null,
  4569. currentZone = $.Zone__current;
  4570. if (C.C__RootZone === currentZone) {
  4571. P._rootScheduleMicrotask(_null, _null, C.C__RootZone, callback);
  4572. return;
  4573. }
  4574. if (C.C__RootZone === currentZone.get$_scheduleMicrotask().zone)
  4575. t1 = C.C__RootZone.get$errorZone() === currentZone.get$errorZone();
  4576. else
  4577. t1 = false;
  4578. if (t1) {
  4579. P._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1(callback));
  4580. return;
  4581. }
  4582. t1 = $.Zone__current;
  4583. t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback));
  4584. },
  4585. Stream_Stream$fromFuture: function(future, $T) {
  4586. var _null = null,
  4587. t1 = $T._eval$1("_SyncStreamController<0>"),
  4588. controller = new P._SyncStreamController(_null, _null, _null, _null, t1);
  4589. future.then$1$2$onError(new P.Stream_Stream$fromFuture_closure(controller, $T), new P.Stream_Stream$fromFuture_closure0(controller), type$.Null);
  4590. return new P._ControllerStream(controller, t1._eval$1("_ControllerStream<1>"));
  4591. },
  4592. StreamIterator_StreamIterator: function(stream) {
  4593. P.ArgumentError_checkNotNull(stream, "stream");
  4594. return new P._StreamIterator(stream);
  4595. },
  4596. StreamController_StreamController: function(onCancel, onListen, onPause, onResume, sync, $T) {
  4597. return sync ? new P._SyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_SyncStreamController<0>")) : new P._AsyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_AsyncStreamController<0>"));
  4598. },
  4599. _runGuarded: function(notificationHandler) {
  4600. var e, s, exception;
  4601. if (notificationHandler == null)
  4602. return;
  4603. try {
  4604. notificationHandler.call$0();
  4605. } catch (exception) {
  4606. e = H.unwrapException(exception);
  4607. s = H.getTraceFromException(exception);
  4608. $.Zone__current.handleUncaughtError$2(e, s);
  4609. }
  4610. },
  4611. _BufferingStreamSubscription__registerDataHandler: function(zone, handleData) {
  4612. return zone.registerUnaryCallback$1(handleData == null ? P.async___nullDataHandler$closure() : handleData);
  4613. },
  4614. _BufferingStreamSubscription__registerErrorHandler: function(zone, handleError) {
  4615. if (handleError == null)
  4616. handleError = P.async___nullErrorHandler$closure();
  4617. if (type$.void_Function_Object_StackTrace._is(handleError))
  4618. return zone.registerBinaryCallback$1(handleError);
  4619. if (type$.void_Function_Object._is(handleError))
  4620. return zone.registerUnaryCallback$1(handleError);
  4621. throw H.wrapException(P.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace."));
  4622. },
  4623. _BufferingStreamSubscription__registerDoneHandler: function(zone, handleDone) {
  4624. return zone.registerCallback$1(handleDone == null ? P.async___nullDoneHandler$closure() : handleDone);
  4625. },
  4626. _nullDataHandler: function(value) {
  4627. },
  4628. _nullErrorHandler: function(error, stackTrace) {
  4629. $.Zone__current.handleUncaughtError$2(error, stackTrace);
  4630. },
  4631. _nullDoneHandler: function() {
  4632. },
  4633. _addErrorWithReplacement: function(sink, error, stackTrace) {
  4634. var replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  4635. if (replacement != null) {
  4636. error = replacement.error;
  4637. stackTrace = replacement.stackTrace;
  4638. }
  4639. sink._addError$2(error, stackTrace);
  4640. },
  4641. Timer_Timer: function(duration, callback) {
  4642. var t1 = $.Zone__current;
  4643. if (t1 === C.C__RootZone)
  4644. return t1.createTimer$2(duration, callback);
  4645. return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback));
  4646. },
  4647. AsyncError$: function(error, stackTrace) {
  4648. var t1 = stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace;
  4649. P.ArgumentError_checkNotNull(error, "error");
  4650. return new P.AsyncError(error, t1);
  4651. },
  4652. AsyncError_defaultStackTrace: function(error) {
  4653. var stackTrace;
  4654. if (type$.Error._is(error)) {
  4655. stackTrace = error.get$stackTrace();
  4656. if (stackTrace != null)
  4657. return stackTrace;
  4658. }
  4659. return C._StringStackTrace_3uE;
  4660. },
  4661. _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) {
  4662. P._schedulePriorityAsyncCallback(new P._rootHandleUncaughtError_closure(error, stackTrace));
  4663. },
  4664. _rootRun: function($self, $parent, zone, f) {
  4665. var old,
  4666. t1 = $.Zone__current;
  4667. if (t1 === zone)
  4668. return f.call$0();
  4669. if (!(zone instanceof P._Zone))
  4670. throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
  4671. $.Zone__current = zone;
  4672. old = t1;
  4673. try {
  4674. t1 = f.call$0();
  4675. return t1;
  4676. } finally {
  4677. $.Zone__current = old;
  4678. }
  4679. },
  4680. _rootRunUnary: function($self, $parent, zone, f, arg) {
  4681. var old,
  4682. t1 = $.Zone__current;
  4683. if (t1 === zone)
  4684. return f.call$1(arg);
  4685. if (!(zone instanceof P._Zone))
  4686. throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
  4687. $.Zone__current = zone;
  4688. old = t1;
  4689. try {
  4690. t1 = f.call$1(arg);
  4691. return t1;
  4692. } finally {
  4693. $.Zone__current = old;
  4694. }
  4695. },
  4696. _rootRunBinary: function($self, $parent, zone, f, arg1, arg2) {
  4697. var old,
  4698. t1 = $.Zone__current;
  4699. if (t1 === zone)
  4700. return f.call$2(arg1, arg2);
  4701. if (!(zone instanceof P._Zone))
  4702. throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
  4703. $.Zone__current = zone;
  4704. old = t1;
  4705. try {
  4706. t1 = f.call$2(arg1, arg2);
  4707. return t1;
  4708. } finally {
  4709. $.Zone__current = old;
  4710. }
  4711. },
  4712. _rootRegisterCallback: function($self, $parent, zone, f) {
  4713. return f;
  4714. },
  4715. _rootRegisterUnaryCallback: function($self, $parent, zone, f) {
  4716. return f;
  4717. },
  4718. _rootRegisterBinaryCallback: function($self, $parent, zone, f) {
  4719. return f;
  4720. },
  4721. _rootErrorCallback: function($self, $parent, zone, error, stackTrace) {
  4722. return null;
  4723. },
  4724. _rootScheduleMicrotask: function($self, $parent, zone, f) {
  4725. var t1 = C.C__RootZone !== zone;
  4726. if (t1)
  4727. f = !(!t1 || C.C__RootZone.get$errorZone() === zone.get$errorZone()) ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void);
  4728. P._scheduleAsyncCallback(f);
  4729. },
  4730. _rootCreateTimer: function($self, $parent, zone, duration, callback) {
  4731. callback = zone.bindCallback$1$1(callback, type$.void);
  4732. return P.Timer__createTimer(duration, callback);
  4733. },
  4734. _rootCreatePeriodicTimer: function($self, $parent, zone, duration, callback) {
  4735. var milliseconds;
  4736. callback = zone.bindUnaryCallback$2$1(callback, type$.void, type$.Timer);
  4737. milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
  4738. return P._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback);
  4739. },
  4740. _rootPrint: function($self, $parent, zone, line) {
  4741. H.printString(H.S(line));
  4742. },
  4743. _printToZone: function(line) {
  4744. $.Zone__current.print$1(line);
  4745. },
  4746. _rootFork: function($self, $parent, zone, specification, zoneValues) {
  4747. var valueMap, t1, handleUncaughtError;
  4748. $.printToZone = P.async___printToZone$closure();
  4749. if (specification == null)
  4750. specification = C._ZoneSpecification_ALf;
  4751. if (zoneValues == null)
  4752. valueMap = zone.get$_async$_map();
  4753. else {
  4754. t1 = type$.nullable_Object;
  4755. valueMap = P.HashMap_HashMap$from(zoneValues, t1, t1);
  4756. }
  4757. t1 = new P._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);
  4758. handleUncaughtError = specification.handleUncaughtError;
  4759. if (handleUncaughtError != null)
  4760. t1._handleUncaughtError = new P._ZoneFunction(t1, handleUncaughtError);
  4761. return t1;
  4762. },
  4763. runZoned: function(body, zoneValues) {
  4764. P.ArgumentError_checkNotNull(body, "body");
  4765. return P._runZoned(body, zoneValues, null);
  4766. },
  4767. _runZoned: function(body, zoneValues, specification) {
  4768. return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1(0, body);
  4769. },
  4770. _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) {
  4771. this._box_0 = t0;
  4772. },
  4773. _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) {
  4774. this._box_0 = t0;
  4775. this.div = t1;
  4776. this.span = t2;
  4777. },
  4778. _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) {
  4779. this.callback = t0;
  4780. },
  4781. _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) {
  4782. this.callback = t0;
  4783. },
  4784. _TimerImpl: function _TimerImpl(t0) {
  4785. this._once = t0;
  4786. this._handle = null;
  4787. this._tick = 0;
  4788. },
  4789. _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) {
  4790. this.$this = t0;
  4791. this.callback = t1;
  4792. },
  4793. _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) {
  4794. var _ = this;
  4795. _.$this = t0;
  4796. _.milliseconds = t1;
  4797. _.start = t2;
  4798. _.callback = t3;
  4799. },
  4800. _AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) {
  4801. this._future = t0;
  4802. this.isSync = false;
  4803. this.$ti = t1;
  4804. },
  4805. _awaitOnObject_closure: function _awaitOnObject_closure(t0) {
  4806. this.bodyFunction = t0;
  4807. },
  4808. _awaitOnObject_closure0: function _awaitOnObject_closure0(t0) {
  4809. this.bodyFunction = t0;
  4810. },
  4811. _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) {
  4812. this.$protected = t0;
  4813. },
  4814. _asyncStarHelper_closure: function _asyncStarHelper_closure(t0, t1) {
  4815. this.controller = t0;
  4816. this.bodyFunction = t1;
  4817. },
  4818. _asyncStarHelper_closure0: function _asyncStarHelper_closure0(t0, t1) {
  4819. this.controller = t0;
  4820. this.bodyFunction = t1;
  4821. },
  4822. _AsyncStarStreamController: function _AsyncStarStreamController(t0) {
  4823. var _ = this;
  4824. _.___AsyncStarStreamController_controller = null;
  4825. _.isSuspended = false;
  4826. _.cancelationFuture = null;
  4827. _.$ti = t0;
  4828. },
  4829. _AsyncStarStreamController__resumeBody: function _AsyncStarStreamController__resumeBody(t0) {
  4830. this.body = t0;
  4831. },
  4832. _AsyncStarStreamController__resumeBody_closure: function _AsyncStarStreamController__resumeBody_closure(t0) {
  4833. this.body = t0;
  4834. },
  4835. _AsyncStarStreamController_closure0: function _AsyncStarStreamController_closure0(t0) {
  4836. this._resumeBody = t0;
  4837. },
  4838. _AsyncStarStreamController_closure1: function _AsyncStarStreamController_closure1(t0, t1) {
  4839. this.$this = t0;
  4840. this._resumeBody = t1;
  4841. },
  4842. _AsyncStarStreamController_closure: function _AsyncStarStreamController_closure(t0, t1) {
  4843. this.$this = t0;
  4844. this.body = t1;
  4845. },
  4846. _AsyncStarStreamController__closure: function _AsyncStarStreamController__closure(t0) {
  4847. this.body = t0;
  4848. },
  4849. _IterationMarker: function _IterationMarker(t0, t1) {
  4850. this.value = t0;
  4851. this.state = t1;
  4852. },
  4853. _SyncStarIterator: function _SyncStarIterator(t0) {
  4854. var _ = this;
  4855. _._body = t0;
  4856. _._suspendedBodies = _._nestedIterator = _._async$_current = null;
  4857. },
  4858. _SyncStarIterable: function _SyncStarIterable(t0, t1) {
  4859. this._outerHelper = t0;
  4860. this.$ti = t1;
  4861. },
  4862. _BroadcastStream: function _BroadcastStream(t0, t1) {
  4863. this._async$_controller = t0;
  4864. this.$ti = t1;
  4865. },
  4866. _BroadcastSubscription: function _BroadcastSubscription(t0, t1, t2, t3, t4, t5, t6) {
  4867. var _ = this;
  4868. _._eventState = 0;
  4869. _._async$_previous = _._async$_next = null;
  4870. _._async$_controller = t0;
  4871. _._onData = t1;
  4872. _._onError = t2;
  4873. _._onDone = t3;
  4874. _._zone = t4;
  4875. _._state = t5;
  4876. _._pending = _._cancelFuture = null;
  4877. _.$ti = t6;
  4878. },
  4879. _BroadcastStreamController: function _BroadcastStreamController() {
  4880. },
  4881. _SyncBroadcastStreamController: function _SyncBroadcastStreamController(t0, t1, t2) {
  4882. var _ = this;
  4883. _.onListen = t0;
  4884. _.onCancel = t1;
  4885. _._state = 0;
  4886. _._doneFuture = _._addStreamState = _._lastSubscription = _._firstSubscription = null;
  4887. _.$ti = t2;
  4888. },
  4889. _SyncBroadcastStreamController__sendData_closure: function _SyncBroadcastStreamController__sendData_closure(t0) {
  4890. this.data = t0;
  4891. },
  4892. _SyncBroadcastStreamController__sendError_closure: function _SyncBroadcastStreamController__sendError_closure(t0, t1) {
  4893. this.error = t0;
  4894. this.stackTrace = t1;
  4895. },
  4896. _SyncBroadcastStreamController__sendDone_closure: function _SyncBroadcastStreamController__sendDone_closure() {
  4897. },
  4898. Future: function Future() {
  4899. },
  4900. Future_wait__error_set: function Future_wait__error_set(t0) {
  4901. this._box_0 = t0;
  4902. },
  4903. Future_wait__stackTrace_set: function Future_wait__stackTrace_set(t0) {
  4904. this._box_0 = t0;
  4905. },
  4906. Future_wait__error_get: function Future_wait__error_get(t0) {
  4907. this._box_0 = t0;
  4908. },
  4909. Future_wait__stackTrace_get: function Future_wait__stackTrace_get(t0) {
  4910. this._box_0 = t0;
  4911. },
  4912. Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3, t4, t5, t6, t7) {
  4913. var _ = this;
  4914. _._box_0 = t0;
  4915. _.cleanUp = t1;
  4916. _.eagerError = t2;
  4917. _.result = t3;
  4918. _._error_set = t4;
  4919. _._stackTrace_set = t5;
  4920. _._error_get = t6;
  4921. _._stackTrace_get = t7;
  4922. },
  4923. Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5, t6, t7) {
  4924. var _ = this;
  4925. _._box_0 = t0;
  4926. _.pos = t1;
  4927. _.result = t2;
  4928. _.cleanUp = t3;
  4929. _.eagerError = t4;
  4930. _._error_get = t5;
  4931. _._stackTrace_get = t6;
  4932. _.T = t7;
  4933. },
  4934. _Completer: function _Completer() {
  4935. },
  4936. _AsyncCompleter: function _AsyncCompleter(t0, t1) {
  4937. this.future = t0;
  4938. this.$ti = t1;
  4939. },
  4940. _FutureListener: function _FutureListener(t0, t1, t2, t3) {
  4941. var _ = this;
  4942. _._nextListener = null;
  4943. _.result = t0;
  4944. _.state = t1;
  4945. _.callback = t2;
  4946. _.errorCallback = t3;
  4947. },
  4948. _Future: function _Future(t0, t1) {
  4949. var _ = this;
  4950. _._state = 0;
  4951. _._zone = t0;
  4952. _._resultOrListeners = null;
  4953. _.$ti = t1;
  4954. },
  4955. _Future__addListener_closure: function _Future__addListener_closure(t0, t1) {
  4956. this.$this = t0;
  4957. this.listener = t1;
  4958. },
  4959. _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) {
  4960. this._box_0 = t0;
  4961. this.$this = t1;
  4962. },
  4963. _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) {
  4964. this.target = t0;
  4965. },
  4966. _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) {
  4967. this.target = t0;
  4968. },
  4969. _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) {
  4970. this.target = t0;
  4971. this.e = t1;
  4972. this.s = t2;
  4973. },
  4974. _Future__asyncCompleteWithValue_closure: function _Future__asyncCompleteWithValue_closure(t0, t1) {
  4975. this.$this = t0;
  4976. this.value = t1;
  4977. },
  4978. _Future__chainFuture_closure: function _Future__chainFuture_closure(t0, t1) {
  4979. this.$this = t0;
  4980. this.value = t1;
  4981. },
  4982. _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) {
  4983. this.$this = t0;
  4984. this.error = t1;
  4985. this.stackTrace = t2;
  4986. },
  4987. _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2) {
  4988. this._box_0 = t0;
  4989. this._box_1 = t1;
  4990. this.hasError = t2;
  4991. },
  4992. _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) {
  4993. this.originalSource = t0;
  4994. },
  4995. _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1) {
  4996. this._box_0 = t0;
  4997. this.sourceResult = t1;
  4998. },
  4999. _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1) {
  5000. this._box_1 = t0;
  5001. this._box_0 = t1;
  5002. },
  5003. _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) {
  5004. this.callback = t0;
  5005. this.next = null;
  5006. },
  5007. Stream: function Stream() {
  5008. },
  5009. Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) {
  5010. this.controller = t0;
  5011. this.T = t1;
  5012. },
  5013. Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) {
  5014. this.controller = t0;
  5015. },
  5016. Stream_length_closure: function Stream_length_closure(t0, t1) {
  5017. this._box_0 = t0;
  5018. this.$this = t1;
  5019. },
  5020. Stream_length_closure0: function Stream_length_closure0(t0, t1) {
  5021. this._box_0 = t0;
  5022. this.future = t1;
  5023. },
  5024. StreamSubscription: function StreamSubscription() {
  5025. },
  5026. EventSink: function EventSink() {
  5027. },
  5028. StreamTransformerBase: function StreamTransformerBase() {
  5029. },
  5030. _StreamController: function _StreamController() {
  5031. },
  5032. _StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) {
  5033. this.$this = t0;
  5034. },
  5035. _StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) {
  5036. this.$this = t0;
  5037. },
  5038. _SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() {
  5039. },
  5040. _AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() {
  5041. },
  5042. _AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) {
  5043. var _ = this;
  5044. _._varData = null;
  5045. _._state = 0;
  5046. _._doneFuture = null;
  5047. _.onListen = t0;
  5048. _.onPause = t1;
  5049. _.onResume = t2;
  5050. _.onCancel = t3;
  5051. _.$ti = t4;
  5052. },
  5053. _SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) {
  5054. var _ = this;
  5055. _._varData = null;
  5056. _._state = 0;
  5057. _._doneFuture = null;
  5058. _.onListen = t0;
  5059. _.onPause = t1;
  5060. _.onResume = t2;
  5061. _.onCancel = t3;
  5062. _.$ti = t4;
  5063. },
  5064. _ControllerStream: function _ControllerStream(t0, t1) {
  5065. this._async$_controller = t0;
  5066. this.$ti = t1;
  5067. },
  5068. _ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3, t4, t5, t6) {
  5069. var _ = this;
  5070. _._async$_controller = t0;
  5071. _._onData = t1;
  5072. _._onError = t2;
  5073. _._onDone = t3;
  5074. _._zone = t4;
  5075. _._state = t5;
  5076. _._pending = _._cancelFuture = null;
  5077. _.$ti = t6;
  5078. },
  5079. _AddStreamState: function _AddStreamState() {
  5080. },
  5081. _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) {
  5082. this.$this = t0;
  5083. },
  5084. _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) {
  5085. this.varData = t0;
  5086. this.addStreamFuture = t1;
  5087. this.addSubscription = t2;
  5088. },
  5089. _BufferingStreamSubscription: function _BufferingStreamSubscription() {
  5090. },
  5091. _BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) {
  5092. this.$this = t0;
  5093. this.error = t1;
  5094. this.stackTrace = t2;
  5095. },
  5096. _BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) {
  5097. this.$this = t0;
  5098. },
  5099. _StreamImpl: function _StreamImpl() {
  5100. },
  5101. _DelayedEvent: function _DelayedEvent() {
  5102. },
  5103. _DelayedData: function _DelayedData(t0) {
  5104. this.value = t0;
  5105. this.next = null;
  5106. },
  5107. _DelayedError: function _DelayedError(t0, t1) {
  5108. this.error = t0;
  5109. this.stackTrace = t1;
  5110. this.next = null;
  5111. },
  5112. _DelayedDone: function _DelayedDone() {
  5113. },
  5114. _PendingEvents: function _PendingEvents() {
  5115. },
  5116. _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) {
  5117. this.$this = t0;
  5118. this.dispatch = t1;
  5119. },
  5120. _StreamImplEvents: function _StreamImplEvents() {
  5121. this.lastPendingEvent = this.firstPendingEvent = null;
  5122. this._state = 0;
  5123. },
  5124. _DoneStreamSubscription: function _DoneStreamSubscription(t0, t1, t2) {
  5125. var _ = this;
  5126. _._zone = t0;
  5127. _._state = 0;
  5128. _._onDone = t1;
  5129. _.$ti = t2;
  5130. },
  5131. _StreamIterator: function _StreamIterator(t0) {
  5132. this._subscription = null;
  5133. this._stateData = t0;
  5134. this._isPaused = false;
  5135. },
  5136. _ForwardingStream: function _ForwardingStream() {
  5137. },
  5138. _ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3, t4, t5, t6) {
  5139. var _ = this;
  5140. _._stream = t0;
  5141. _._subscription = null;
  5142. _._onData = t1;
  5143. _._onError = t2;
  5144. _._onDone = t3;
  5145. _._zone = t4;
  5146. _._state = t5;
  5147. _._pending = _._cancelFuture = null;
  5148. _.$ti = t6;
  5149. },
  5150. _ExpandStream: function _ExpandStream(t0, t1, t2) {
  5151. this._expand = t0;
  5152. this._async$_source = t1;
  5153. this.$ti = t2;
  5154. },
  5155. Timer: function Timer() {
  5156. },
  5157. AsyncError: function AsyncError(t0, t1) {
  5158. this.error = t0;
  5159. this.stackTrace = t1;
  5160. },
  5161. _ZoneFunction: function _ZoneFunction(t0, t1) {
  5162. this.zone = t0;
  5163. this.$function = t1;
  5164. },
  5165. _RunNullaryZoneFunction: function _RunNullaryZoneFunction(t0, t1) {
  5166. this.zone = t0;
  5167. this.$function = t1;
  5168. },
  5169. _RunUnaryZoneFunction: function _RunUnaryZoneFunction(t0, t1) {
  5170. this.zone = t0;
  5171. this.$function = t1;
  5172. },
  5173. _RunBinaryZoneFunction: function _RunBinaryZoneFunction(t0, t1) {
  5174. this.zone = t0;
  5175. this.$function = t1;
  5176. },
  5177. _RegisterNullaryZoneFunction: function _RegisterNullaryZoneFunction(t0, t1) {
  5178. this.zone = t0;
  5179. this.$function = t1;
  5180. },
  5181. _RegisterUnaryZoneFunction: function _RegisterUnaryZoneFunction(t0, t1) {
  5182. this.zone = t0;
  5183. this.$function = t1;
  5184. },
  5185. _RegisterBinaryZoneFunction: function _RegisterBinaryZoneFunction(t0, t1) {
  5186. this.zone = t0;
  5187. this.$function = t1;
  5188. },
  5189. ZoneSpecification: function ZoneSpecification() {
  5190. },
  5191. _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  5192. var _ = this;
  5193. _.handleUncaughtError = t0;
  5194. _.run = t1;
  5195. _.runUnary = t2;
  5196. _.runBinary = t3;
  5197. _.registerCallback = t4;
  5198. _.registerUnaryCallback = t5;
  5199. _.registerBinaryCallback = t6;
  5200. _.errorCallback = t7;
  5201. _.scheduleMicrotask = t8;
  5202. _.createTimer = t9;
  5203. _.createPeriodicTimer = t10;
  5204. _.print = t11;
  5205. _.fork = t12;
  5206. },
  5207. ZoneDelegate: function ZoneDelegate() {
  5208. },
  5209. Zone: function Zone() {
  5210. },
  5211. _ZoneDelegate: function _ZoneDelegate(t0) {
  5212. this._delegationTarget = t0;
  5213. },
  5214. _Zone: function _Zone() {
  5215. },
  5216. _CustomZone: function _CustomZone(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  5217. var _ = this;
  5218. _._run = t0;
  5219. _._runUnary = t1;
  5220. _._runBinary = t2;
  5221. _._registerCallback = t3;
  5222. _._registerUnaryCallback = t4;
  5223. _._registerBinaryCallback = t5;
  5224. _._errorCallback = t6;
  5225. _._scheduleMicrotask = t7;
  5226. _._createTimer = t8;
  5227. _._createPeriodicTimer = t9;
  5228. _._print = t10;
  5229. _._fork = t11;
  5230. _._handleUncaughtError = t12;
  5231. _._delegateCache = null;
  5232. _.parent = t13;
  5233. _._async$_map = t14;
  5234. },
  5235. _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) {
  5236. this.$this = t0;
  5237. this.registered = t1;
  5238. this.R = t2;
  5239. },
  5240. _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
  5241. var _ = this;
  5242. _.$this = t0;
  5243. _.registered = t1;
  5244. _.T = t2;
  5245. _.R = t3;
  5246. },
  5247. _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) {
  5248. this.$this = t0;
  5249. this.registered = t1;
  5250. },
  5251. _rootHandleUncaughtError_closure: function _rootHandleUncaughtError_closure(t0, t1) {
  5252. this.error = t0;
  5253. this.stackTrace = t1;
  5254. },
  5255. _RootZone: function _RootZone() {
  5256. },
  5257. _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) {
  5258. this.$this = t0;
  5259. this.f = t1;
  5260. this.R = t2;
  5261. },
  5262. _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) {
  5263. this.$this = t0;
  5264. this.f = t1;
  5265. },
  5266. HashMap_HashMap: function($K, $V) {
  5267. return new P._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>"));
  5268. },
  5269. _HashMap__getTableEntry: function(table, key) {
  5270. var entry = table[key];
  5271. return entry === table ? null : entry;
  5272. },
  5273. _HashMap__setTableEntry: function(table, key, value) {
  5274. if (value == null)
  5275. table[key] = table;
  5276. else
  5277. table[key] = value;
  5278. },
  5279. _HashMap__newHashTable: function() {
  5280. var table = Object.create(null);
  5281. P._HashMap__setTableEntry(table, "<non-identifier-key>", table);
  5282. delete table["<non-identifier-key>"];
  5283. return table;
  5284. },
  5285. LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) {
  5286. if (isValidKey == null)
  5287. if (hashCode == null) {
  5288. if (equals == null)
  5289. return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  5290. hashCode = P.collection___defaultHashCode$closure();
  5291. } else {
  5292. if (P.core__identityHashCode$closure() === hashCode && P.core__identical$closure() === equals)
  5293. return P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6($K, $V);
  5294. if (equals == null)
  5295. equals = P.collection___defaultEquals$closure();
  5296. }
  5297. else {
  5298. if (hashCode == null)
  5299. hashCode = P.collection___defaultHashCode$closure();
  5300. if (equals == null)
  5301. equals = P.collection___defaultEquals$closure();
  5302. }
  5303. return P._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V);
  5304. },
  5305. LinkedHashMap_LinkedHashMap$_literal: function(keyValuePairs, $K, $V) {
  5306. return H.fillLiteralMap(keyValuePairs, new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")));
  5307. },
  5308. LinkedHashMap_LinkedHashMap$_empty: function($K, $V) {
  5309. return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  5310. },
  5311. _LinkedIdentityHashMap__LinkedIdentityHashMap$es6: function($K, $V) {
  5312. return new P._LinkedIdentityHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedIdentityHashMap<1,2>"));
  5313. },
  5314. _LinkedCustomHashMap$: function(_equals, _hashCode, validKey, $K, $V) {
  5315. var t1 = validKey != null ? validKey : new P._LinkedCustomHashMap_closure($K);
  5316. return new P._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>"));
  5317. },
  5318. LinkedHashSet_LinkedHashSet: function($E) {
  5319. return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  5320. },
  5321. LinkedHashSet_LinkedHashSet$_empty: function($E) {
  5322. return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  5323. },
  5324. LinkedHashSet_LinkedHashSet$_literal: function(values, $E) {
  5325. return H.fillLiteralSet(values, new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")));
  5326. },
  5327. _LinkedHashSet__newHashTable: function() {
  5328. var table = Object.create(null);
  5329. table["<non-identifier-key>"] = table;
  5330. delete table["<non-identifier-key>"];
  5331. return table;
  5332. },
  5333. _LinkedHashSetIterator$: function(_set, _modifications) {
  5334. var t1 = new P._LinkedHashSetIterator(_set, _modifications);
  5335. t1._collection$_cell = _set._collection$_first;
  5336. return t1;
  5337. },
  5338. UnmodifiableListView$: function(source, $E) {
  5339. return new P.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>"));
  5340. },
  5341. _defaultEquals: function(a, b) {
  5342. return J.$eq$(a, b);
  5343. },
  5344. _defaultHashCode: function(a) {
  5345. return J.get$hashCode$(a);
  5346. },
  5347. HashMap_HashMap$from: function(other, $K, $V) {
  5348. var result = P.HashMap_HashMap($K, $V);
  5349. other.forEach$1(0, new P.HashMap_HashMap$from_closure(result, $K, $V));
  5350. return result;
  5351. },
  5352. IterableBase_iterableToShortString: function(iterable, leftDelimiter, rightDelimiter) {
  5353. var parts, t1;
  5354. if (P._isToStringVisiting(iterable)) {
  5355. if (leftDelimiter === "(" && rightDelimiter === ")")
  5356. return "(...)";
  5357. return leftDelimiter + "..." + rightDelimiter;
  5358. }
  5359. parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
  5360. $._toStringVisiting.push(iterable);
  5361. try {
  5362. P._iterablePartsToStrings(iterable, parts);
  5363. } finally {
  5364. $._toStringVisiting.pop();
  5365. }
  5366. t1 = P.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
  5367. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5368. },
  5369. IterableBase_iterableToFullString: function(iterable, leftDelimiter, rightDelimiter) {
  5370. var buffer, t1;
  5371. if (P._isToStringVisiting(iterable))
  5372. return leftDelimiter + "..." + rightDelimiter;
  5373. buffer = new P.StringBuffer(leftDelimiter);
  5374. $._toStringVisiting.push(iterable);
  5375. try {
  5376. t1 = buffer;
  5377. t1._contents = P.StringBuffer__writeAll(t1._contents, iterable, ", ");
  5378. } finally {
  5379. $._toStringVisiting.pop();
  5380. }
  5381. buffer._contents += rightDelimiter;
  5382. t1 = buffer._contents;
  5383. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5384. },
  5385. _isToStringVisiting: function(o) {
  5386. var t1, i;
  5387. for (t1 = $._toStringVisiting.length, i = 0; i < t1; ++i)
  5388. if (o === $._toStringVisiting[i])
  5389. return true;
  5390. return false;
  5391. },
  5392. _iterablePartsToStrings: function(iterable, parts) {
  5393. var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision,
  5394. it = iterable.get$iterator(iterable),
  5395. $length = 0, count = 0;
  5396. while (true) {
  5397. if (!($length < 80 || count < 3))
  5398. break;
  5399. if (!it.moveNext$0())
  5400. return;
  5401. next = H.S(it.get$current(it));
  5402. parts.push(next);
  5403. $length += next.length + 2;
  5404. ++count;
  5405. }
  5406. if (!it.moveNext$0()) {
  5407. if (count <= 5)
  5408. return;
  5409. ultimateString = parts.pop();
  5410. penultimateString = parts.pop();
  5411. } else {
  5412. penultimate = it.get$current(it);
  5413. ++count;
  5414. if (!it.moveNext$0()) {
  5415. if (count <= 4) {
  5416. parts.push(H.S(penultimate));
  5417. return;
  5418. }
  5419. ultimateString = H.S(penultimate);
  5420. penultimateString = parts.pop();
  5421. $length += ultimateString.length + 2;
  5422. } else {
  5423. ultimate = it.get$current(it);
  5424. ++count;
  5425. for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) {
  5426. ultimate0 = it.get$current(it);
  5427. ++count;
  5428. if (count > 100) {
  5429. while (true) {
  5430. if (!($length > 75 && count > 3))
  5431. break;
  5432. $length -= parts.pop().length + 2;
  5433. --count;
  5434. }
  5435. parts.push("...");
  5436. return;
  5437. }
  5438. }
  5439. penultimateString = H.S(penultimate);
  5440. ultimateString = H.S(ultimate);
  5441. $length += ultimateString.length + penultimateString.length + 4;
  5442. }
  5443. }
  5444. if (count > parts.length + 2) {
  5445. $length += 5;
  5446. elision = "...";
  5447. } else
  5448. elision = null;
  5449. while (true) {
  5450. if (!($length > 80 && parts.length > 3))
  5451. break;
  5452. $length -= parts.pop().length + 2;
  5453. if (elision == null) {
  5454. $length += 5;
  5455. elision = "...";
  5456. }
  5457. }
  5458. if (elision != null)
  5459. parts.push(elision);
  5460. parts.push(penultimateString);
  5461. parts.push(ultimateString);
  5462. },
  5463. LinkedHashMap_LinkedHashMap$from: function(other, $K, $V) {
  5464. var result = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  5465. other.forEach$1(0, new P.LinkedHashMap_LinkedHashMap$from_closure(result, $K, $V));
  5466. return result;
  5467. },
  5468. LinkedHashMap_LinkedHashMap$of: function(other, $K, $V) {
  5469. var t1 = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  5470. t1.addAll$1(0, other);
  5471. return t1;
  5472. },
  5473. LinkedHashSet_LinkedHashSet$from: function(elements, $E) {
  5474. var t1, _i,
  5475. result = P.LinkedHashSet_LinkedHashSet($E);
  5476. for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, H.throwConcurrentModificationError)(elements), ++_i)
  5477. result.add$1(0, $E._as(elements[_i]));
  5478. return result;
  5479. },
  5480. LinkedHashSet_LinkedHashSet$of: function(elements, $E) {
  5481. var t1 = P.LinkedHashSet_LinkedHashSet($E);
  5482. t1.addAll$1(0, elements);
  5483. return t1;
  5484. },
  5485. ListMixin__compareAny: function(a, b) {
  5486. var t1 = type$.Comparable_dynamic;
  5487. return J.compareTo$1$ns(t1._as(a), t1._as(b));
  5488. },
  5489. MapBase_mapToString: function(m) {
  5490. var result, t1 = {};
  5491. if (P._isToStringVisiting(m))
  5492. return "{...}";
  5493. result = new P.StringBuffer("");
  5494. try {
  5495. $._toStringVisiting.push(m);
  5496. result._contents += "{";
  5497. t1.first = true;
  5498. m.forEach$1(0, new P.MapBase_mapToString_closure(t1, result));
  5499. result._contents += "}";
  5500. } finally {
  5501. $._toStringVisiting.pop();
  5502. }
  5503. t1 = result._contents;
  5504. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5505. },
  5506. MapBase__fillMapWithIterables: function(map, keys, values) {
  5507. var keyIterator = keys.get$iterator(keys),
  5508. valueIterator = values.get$iterator(values),
  5509. hasNextKey = keyIterator.moveNext$0(),
  5510. hasNextValue = valueIterator.moveNext$0();
  5511. while (true) {
  5512. if (!(hasNextKey && hasNextValue))
  5513. break;
  5514. map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator));
  5515. hasNextKey = keyIterator.moveNext$0();
  5516. hasNextValue = valueIterator.moveNext$0();
  5517. }
  5518. if (hasNextKey || hasNextValue)
  5519. throw H.wrapException(P.ArgumentError$("Iterables do not have same length."));
  5520. },
  5521. ListQueue$: function($E) {
  5522. return new P.ListQueue(P.List_List$filled(P.ListQueue__calculateCapacity(null), null, false, $E._eval$1("0?")), $E._eval$1("ListQueue<0>"));
  5523. },
  5524. ListQueue__calculateCapacity: function(initialCapacity) {
  5525. return 8;
  5526. },
  5527. ListQueue_ListQueue$of: function(elements, $E) {
  5528. var t1 = P.ListQueue$($E);
  5529. t1.addAll$1(0, elements);
  5530. return t1;
  5531. },
  5532. ListQueue__nextPowerOf2: function(number) {
  5533. var nextNumber;
  5534. number = (number << 1 >>> 0) - 1;
  5535. for (; true; number = nextNumber) {
  5536. nextNumber = (number & number - 1) >>> 0;
  5537. if (nextNumber === 0)
  5538. return number;
  5539. }
  5540. },
  5541. _ListQueueIterator$: function(queue) {
  5542. return new P._ListQueueIterator(queue, queue._collection$_tail, queue._modificationCount, queue._collection$_head);
  5543. },
  5544. _HashMap: function _HashMap(t0) {
  5545. var _ = this;
  5546. _._collection$_length = 0;
  5547. _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5548. _.$ti = t0;
  5549. },
  5550. _HashMap_values_closure: function _HashMap_values_closure(t0) {
  5551. this.$this = t0;
  5552. },
  5553. _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) {
  5554. this.$this = t0;
  5555. },
  5556. _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) {
  5557. this._collection$_map = t0;
  5558. this.$ti = t1;
  5559. },
  5560. _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1) {
  5561. var _ = this;
  5562. _._collection$_map = t0;
  5563. _._keys = t1;
  5564. _._offset = 0;
  5565. _._collection$_current = null;
  5566. },
  5567. _LinkedIdentityHashMap: function _LinkedIdentityHashMap(t0) {
  5568. var _ = this;
  5569. _.__js_helper$_length = 0;
  5570. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  5571. _._modifications = 0;
  5572. _.$ti = t0;
  5573. },
  5574. _LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) {
  5575. var _ = this;
  5576. _._equals = t0;
  5577. _._hashCode = t1;
  5578. _._validKey = t2;
  5579. _.__js_helper$_length = 0;
  5580. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  5581. _._modifications = 0;
  5582. _.$ti = t3;
  5583. },
  5584. _LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) {
  5585. this.K = t0;
  5586. },
  5587. _LinkedHashSet: function _LinkedHashSet(t0) {
  5588. var _ = this;
  5589. _._collection$_length = 0;
  5590. _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5591. _._collection$_modifications = 0;
  5592. _.$ti = t0;
  5593. },
  5594. _LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) {
  5595. var _ = this;
  5596. _._collection$_length = 0;
  5597. _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5598. _._collection$_modifications = 0;
  5599. _.$ti = t0;
  5600. },
  5601. _LinkedHashSetCell: function _LinkedHashSetCell(t0) {
  5602. this._element = t0;
  5603. this._collection$_previous = this._collection$_next = null;
  5604. },
  5605. _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1) {
  5606. var _ = this;
  5607. _._set = t0;
  5608. _._collection$_modifications = t1;
  5609. _._collection$_current = _._collection$_cell = null;
  5610. },
  5611. UnmodifiableListView: function UnmodifiableListView(t0, t1) {
  5612. this._collection$_source = t0;
  5613. this.$ti = t1;
  5614. },
  5615. HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0, t1, t2) {
  5616. this.result = t0;
  5617. this.K = t1;
  5618. this.V = t2;
  5619. },
  5620. IterableBase: function IterableBase() {
  5621. },
  5622. LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0, t1, t2) {
  5623. this.result = t0;
  5624. this.K = t1;
  5625. this.V = t2;
  5626. },
  5627. ListBase: function ListBase() {
  5628. },
  5629. ListMixin: function ListMixin() {
  5630. },
  5631. MapBase: function MapBase() {
  5632. },
  5633. MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) {
  5634. this._box_0 = t0;
  5635. this.result = t1;
  5636. },
  5637. MapMixin: function MapMixin() {
  5638. },
  5639. MapMixin_entries_closure: function MapMixin_entries_closure(t0) {
  5640. this.$this = t0;
  5641. },
  5642. UnmodifiableMapBase: function UnmodifiableMapBase() {
  5643. },
  5644. _MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) {
  5645. this._collection$_map = t0;
  5646. this.$ti = t1;
  5647. },
  5648. _MapBaseValueIterator: function _MapBaseValueIterator(t0, t1) {
  5649. this._keys = t0;
  5650. this._collection$_map = t1;
  5651. this._collection$_current = null;
  5652. },
  5653. _UnmodifiableMapMixin: function _UnmodifiableMapMixin() {
  5654. },
  5655. MapView: function MapView() {
  5656. },
  5657. UnmodifiableMapView: function UnmodifiableMapView(t0, t1) {
  5658. this._collection$_map = t0;
  5659. this.$ti = t1;
  5660. },
  5661. Queue: function Queue() {
  5662. },
  5663. ListQueue: function ListQueue(t0, t1) {
  5664. var _ = this;
  5665. _._collection$_table = t0;
  5666. _._modificationCount = _._collection$_tail = _._collection$_head = 0;
  5667. _.$ti = t1;
  5668. },
  5669. _ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3) {
  5670. var _ = this;
  5671. _._queue = t0;
  5672. _._collection$_end = t1;
  5673. _._modificationCount = t2;
  5674. _._collection$_position = t3;
  5675. _._collection$_current = null;
  5676. },
  5677. _SetBase: function _SetBase() {
  5678. },
  5679. _UnmodifiableSet: function _UnmodifiableSet(t0, t1) {
  5680. this._collection$_map = t0;
  5681. this.$ti = t1;
  5682. },
  5683. _ListBase_Object_ListMixin: function _ListBase_Object_ListMixin() {
  5684. },
  5685. _UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() {
  5686. },
  5687. Utf8Decoder__convertIntercepted: function(allowMalformed, codeUnits, start, end) {
  5688. var casted, result;
  5689. if (codeUnits instanceof Uint8Array) {
  5690. casted = codeUnits;
  5691. end = casted.length;
  5692. if (end - start < 15)
  5693. return null;
  5694. result = P.Utf8Decoder__convertInterceptedUint8List(allowMalformed, casted, start, end);
  5695. if (result != null && allowMalformed)
  5696. if (result.indexOf("\ufffd") >= 0)
  5697. return null;
  5698. return result;
  5699. }
  5700. return null;
  5701. },
  5702. Utf8Decoder__convertInterceptedUint8List: function(allowMalformed, codeUnits, start, end) {
  5703. var decoder = allowMalformed ? $.$get$Utf8Decoder__decoderNonfatal() : $.$get$Utf8Decoder__decoder();
  5704. if (decoder == null)
  5705. return null;
  5706. if (0 === start && end === codeUnits.length)
  5707. return P.Utf8Decoder__useTextDecoder(decoder, codeUnits);
  5708. return P.Utf8Decoder__useTextDecoder(decoder, codeUnits.subarray(start, P.RangeError_checkValidRange(start, end, codeUnits.length)));
  5709. },
  5710. Utf8Decoder__useTextDecoder: function(decoder, codeUnits) {
  5711. var t1, exception;
  5712. try {
  5713. t1 = decoder.decode(codeUnits);
  5714. return t1;
  5715. } catch (exception) {
  5716. H.unwrapException(exception);
  5717. }
  5718. return null;
  5719. },
  5720. Base64Codec__checkPadding: function(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) {
  5721. if (C.JSInt_methods.$mod($length, 4) !== 0)
  5722. throw H.wrapException(P.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd));
  5723. if (firstPadding + paddingCount !== $length)
  5724. throw H.wrapException(P.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex));
  5725. if (paddingCount > 2)
  5726. throw H.wrapException(P.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex));
  5727. },
  5728. _Base64Encoder_encodeChunk: function(alphabet, bytes, start, end, isLast, output, outputIndex, state) {
  5729. var t1, i, byteOr, byte, outputIndex0, outputIndex1,
  5730. bits = state >>> 2,
  5731. expectedChars = 3 - (state & 3);
  5732. for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) {
  5733. byte = t1.$index(bytes, i);
  5734. byteOr = (byteOr | byte) >>> 0;
  5735. bits = (bits << 8 | byte) & 16777215;
  5736. --expectedChars;
  5737. if (expectedChars === 0) {
  5738. outputIndex0 = outputIndex + 1;
  5739. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 18 & 63);
  5740. outputIndex = outputIndex0 + 1;
  5741. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 12 & 63);
  5742. outputIndex0 = outputIndex + 1;
  5743. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 6 & 63);
  5744. outputIndex = outputIndex0 + 1;
  5745. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits & 63);
  5746. bits = 0;
  5747. expectedChars = 3;
  5748. }
  5749. }
  5750. if (byteOr >= 0 && byteOr <= 255) {
  5751. if (isLast && expectedChars < 3) {
  5752. outputIndex0 = outputIndex + 1;
  5753. outputIndex1 = outputIndex0 + 1;
  5754. if (3 - expectedChars === 1) {
  5755. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 2 & 63);
  5756. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 4 & 63);
  5757. output[outputIndex1] = 61;
  5758. output[outputIndex1 + 1] = 61;
  5759. } else {
  5760. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 10 & 63);
  5761. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 4 & 63);
  5762. output[outputIndex1] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 2 & 63);
  5763. output[outputIndex1 + 1] = 61;
  5764. }
  5765. return 0;
  5766. }
  5767. return (bits << 2 | 3 - expectedChars) >>> 0;
  5768. }
  5769. for (i = start; i < end;) {
  5770. byte = t1.$index(bytes, i);
  5771. if (byte < 0 || byte > 255)
  5772. break;
  5773. ++i;
  5774. }
  5775. throw H.wrapException(P.ArgumentError$value(bytes, "Not a byte value at index " + i + ": 0x" + J.toRadixString$1$n(t1.$index(bytes, i), 16), null));
  5776. },
  5777. JsonUnsupportedObjectError$: function(unsupportedObject, cause, partialResult) {
  5778. return new P.JsonUnsupportedObjectError(unsupportedObject, cause);
  5779. },
  5780. _defaultToEncodable: function(object) {
  5781. return object.toJson$0();
  5782. },
  5783. _JsonStringStringifier_stringify: function(object, toEncodable, indent) {
  5784. var t1,
  5785. output = new P.StringBuffer("");
  5786. P._JsonStringStringifier_printOn(object, output, toEncodable, indent);
  5787. t1 = output._contents;
  5788. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5789. },
  5790. _JsonStringStringifier_printOn: function(object, output, toEncodable, indent) {
  5791. var stringifier = new P._JsonStringStringifier(output, [], P.convert___defaultToEncodable$closure());
  5792. stringifier.writeObject$1(object);
  5793. },
  5794. _Utf8Decoder_errorDescription: function(state) {
  5795. switch (state) {
  5796. case 65:
  5797. return "Missing extension byte";
  5798. case 67:
  5799. return "Unexpected extension byte";
  5800. case 69:
  5801. return "Invalid UTF-8 byte";
  5802. case 71:
  5803. return "Overlong encoding";
  5804. case 73:
  5805. return "Out of unicode range";
  5806. case 75:
  5807. return "Encoded surrogate";
  5808. case 77:
  5809. return "Unfinished UTF-8 octet sequence";
  5810. default:
  5811. return "";
  5812. }
  5813. },
  5814. _Utf8Decoder__makeUint8List: function(codeUnits, start, end) {
  5815. var t1, i, b,
  5816. $length = end - start,
  5817. bytes = new Uint8Array($length);
  5818. for (t1 = J.getInterceptor$asx(codeUnits), i = 0; i < $length; ++i) {
  5819. b = t1.$index(codeUnits, start + i);
  5820. bytes[i] = (b & 4294967040) >>> 0 !== 0 ? 255 : b;
  5821. }
  5822. return bytes;
  5823. },
  5824. Utf8Decoder_closure: function Utf8Decoder_closure() {
  5825. },
  5826. Utf8Decoder_closure0: function Utf8Decoder_closure0() {
  5827. },
  5828. AsciiCodec: function AsciiCodec() {
  5829. },
  5830. _UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() {
  5831. },
  5832. AsciiEncoder: function AsciiEncoder(t0) {
  5833. this._subsetMask = t0;
  5834. },
  5835. Base64Codec: function Base64Codec() {
  5836. },
  5837. Base64Encoder: function Base64Encoder() {
  5838. },
  5839. _Base64Encoder: function _Base64Encoder(t0) {
  5840. this._convert$_state = 0;
  5841. this._alphabet = t0;
  5842. },
  5843. _BufferCachingBase64Encoder: function _BufferCachingBase64Encoder(t0) {
  5844. this.bufferCache = null;
  5845. this._convert$_state = 0;
  5846. this._alphabet = t0;
  5847. },
  5848. _Base64EncoderSink: function _Base64EncoderSink() {
  5849. },
  5850. _AsciiBase64EncoderSink: function _AsciiBase64EncoderSink(t0, t1) {
  5851. this._sink = t0;
  5852. this._encoder = t1;
  5853. },
  5854. _Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) {
  5855. this._sink = t0;
  5856. this._encoder = t1;
  5857. },
  5858. ByteConversionSink: function ByteConversionSink() {
  5859. },
  5860. ByteConversionSinkBase: function ByteConversionSinkBase() {
  5861. },
  5862. ChunkedConversionSink: function ChunkedConversionSink() {
  5863. },
  5864. Codec: function Codec() {
  5865. },
  5866. Converter: function Converter() {
  5867. },
  5868. Encoding: function Encoding() {
  5869. },
  5870. JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) {
  5871. this.unsupportedObject = t0;
  5872. this.cause = t1;
  5873. },
  5874. JsonCyclicError: function JsonCyclicError(t0, t1) {
  5875. this.unsupportedObject = t0;
  5876. this.cause = t1;
  5877. },
  5878. JsonCodec: function JsonCodec() {
  5879. },
  5880. JsonEncoder: function JsonEncoder(t0) {
  5881. this._toEncodable = t0;
  5882. },
  5883. _JsonStringifier: function _JsonStringifier() {
  5884. },
  5885. _JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) {
  5886. this._box_0 = t0;
  5887. this.keyValueList = t1;
  5888. },
  5889. _JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) {
  5890. this._sink = t0;
  5891. this._seen = t1;
  5892. this._toEncodable = t2;
  5893. },
  5894. StringConversionSinkBase: function StringConversionSinkBase() {
  5895. },
  5896. StringConversionSinkMixin: function StringConversionSinkMixin() {
  5897. },
  5898. _StringSinkConversionSink: function _StringSinkConversionSink(t0) {
  5899. this._stringSink = t0;
  5900. },
  5901. _StringCallbackSink: function _StringCallbackSink(t0, t1) {
  5902. this._convert$_callback = t0;
  5903. this._stringSink = t1;
  5904. },
  5905. _StringAdapterSink: function _StringAdapterSink(t0) {
  5906. this._sink = t0;
  5907. },
  5908. _Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1, t2) {
  5909. this._decoder = t0;
  5910. this._sink = t1;
  5911. this._stringSink = t2;
  5912. },
  5913. _Utf8ConversionSink: function _Utf8ConversionSink(t0, t1, t2) {
  5914. this._decoder = t0;
  5915. this._chunkedSink = t1;
  5916. this._convert$_buffer = t2;
  5917. },
  5918. Utf8Codec: function Utf8Codec() {
  5919. },
  5920. Utf8Encoder: function Utf8Encoder() {
  5921. },
  5922. _Utf8Encoder: function _Utf8Encoder(t0) {
  5923. this._bufferIndex = this._carry = 0;
  5924. this._convert$_buffer = t0;
  5925. },
  5926. Utf8Decoder: function Utf8Decoder(t0) {
  5927. this._allowMalformed = t0;
  5928. },
  5929. _Utf8Decoder: function _Utf8Decoder(t0) {
  5930. this.allowMalformed = t0;
  5931. this._convert$_state = 16;
  5932. this._charOrIndex = 0;
  5933. },
  5934. identityHashCode: function(object) {
  5935. return H.objectHashCode(object);
  5936. },
  5937. Function_apply: function($function, positionalArguments) {
  5938. return H.Primitives_applyFunction($function, positionalArguments, null);
  5939. },
  5940. int_parse: function(source, radix) {
  5941. var value = H.Primitives_parseInt(source, radix);
  5942. if (value != null)
  5943. return value;
  5944. throw H.wrapException(P.FormatException$(source, null, null));
  5945. },
  5946. double_parse: function(source) {
  5947. var value = H.Primitives_parseDouble(source);
  5948. if (value != null)
  5949. return value;
  5950. throw H.wrapException(P.FormatException$("Invalid double", source, null));
  5951. },
  5952. Error__objectToString: function(object) {
  5953. if (object instanceof H.Closure)
  5954. return object.toString$0(0);
  5955. return "Instance of '" + H.S(H.Primitives_objectTypeName(object)) + "'";
  5956. },
  5957. List_List$filled: function($length, fill, growable, $E) {
  5958. var i,
  5959. result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
  5960. if ($length !== 0 && fill != null)
  5961. for (i = 0; i < result.length; ++i)
  5962. result[i] = fill;
  5963. return result;
  5964. },
  5965. List_List$from: function(elements, growable, $E) {
  5966. var t1,
  5967. list = H.setRuntimeTypeInfo([], $E._eval$1("JSArray<0>"));
  5968. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  5969. list.push(t1.get$current(t1));
  5970. if (growable)
  5971. return list;
  5972. return J.JSArray_markFixedList(list);
  5973. },
  5974. List_List$generate: function($length, generator, growable, $E) {
  5975. var i,
  5976. result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
  5977. for (i = 0; i < $length; ++i)
  5978. result[i] = generator.call$1(i);
  5979. return result;
  5980. },
  5981. List_List$unmodifiable: function(elements, $E) {
  5982. return J.JSArray_markUnmodifiableList(P.List_List$from(elements, false, $E));
  5983. },
  5984. String_String$fromCharCodes: function(charCodes, start, end) {
  5985. var array, len;
  5986. if (Array.isArray(charCodes)) {
  5987. array = charCodes;
  5988. len = array.length;
  5989. end = P.RangeError_checkValidRange(start, end, len);
  5990. return H.Primitives_stringFromCharCodes(start > 0 || end < len ? array.slice(start, end) : array);
  5991. }
  5992. if (type$.NativeUint8List._is(charCodes))
  5993. return H.Primitives_stringFromNativeUint8List(charCodes, start, P.RangeError_checkValidRange(start, end, charCodes.length));
  5994. return P.String__stringFromIterable(charCodes, start, end);
  5995. },
  5996. String_String$fromCharCode: function(charCode) {
  5997. return H.Primitives_stringFromCharCode(charCode);
  5998. },
  5999. String__stringFromIterable: function(charCodes, start, end) {
  6000. var t1, it, i, list, _null = null;
  6001. if (start < 0)
  6002. throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(charCodes), _null, _null));
  6003. t1 = end == null;
  6004. if (!t1 && end < start)
  6005. throw H.wrapException(P.RangeError$range(end, start, J.get$length$asx(charCodes), _null, _null));
  6006. it = J.get$iterator$ax(charCodes);
  6007. for (i = 0; i < start; ++i)
  6008. if (!it.moveNext$0())
  6009. throw H.wrapException(P.RangeError$range(start, 0, i, _null, _null));
  6010. list = [];
  6011. if (t1)
  6012. for (; it.moveNext$0();)
  6013. list.push(it.get$current(it));
  6014. else
  6015. for (i = start; i < end; ++i) {
  6016. if (!it.moveNext$0())
  6017. throw H.wrapException(P.RangeError$range(end, start, i, _null, _null));
  6018. list.push(it.get$current(it));
  6019. }
  6020. return H.Primitives_stringFromCharCodes(list);
  6021. },
  6022. RegExp_RegExp: function(source, multiLine) {
  6023. return new H.JSSyntaxRegExp(source, H.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false));
  6024. },
  6025. identical: function(a, b) {
  6026. return a == null ? b == null : a === b;
  6027. },
  6028. StringBuffer__writeAll: function(string, objects, separator) {
  6029. var iterator = J.get$iterator$ax(objects);
  6030. if (!iterator.moveNext$0())
  6031. return string;
  6032. if (separator.length === 0) {
  6033. do
  6034. string += H.S(iterator.get$current(iterator));
  6035. while (iterator.moveNext$0());
  6036. } else {
  6037. string += H.S(iterator.get$current(iterator));
  6038. for (; iterator.moveNext$0();)
  6039. string = string + separator + H.S(iterator.get$current(iterator));
  6040. }
  6041. return string;
  6042. },
  6043. NoSuchMethodError$: function(receiver, memberName, positionalArguments, namedArguments) {
  6044. return new P.NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments);
  6045. },
  6046. Uri_base: function() {
  6047. var uri = H.Primitives_currentUri();
  6048. if (uri != null)
  6049. return P.Uri_parse(uri);
  6050. throw H.wrapException(P.UnsupportedError$("'Uri.base' is not supported"));
  6051. },
  6052. _Uri__uriEncode: function(canonicalTable, text, encoding, spaceToPlus) {
  6053. var t1, bytes, i, t2, byte,
  6054. _s16_ = "0123456789ABCDEF";
  6055. if (encoding === C.C_Utf8Codec) {
  6056. t1 = $.$get$_Uri__needsNoEncoding()._nativeRegExp;
  6057. if (typeof text != "string")
  6058. H.throwExpression(H.argumentErrorValue(text));
  6059. t1 = t1.test(text);
  6060. } else
  6061. t1 = false;
  6062. if (t1)
  6063. return text;
  6064. bytes = encoding.get$encoder().convert$1(text);
  6065. for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) {
  6066. byte = bytes[i];
  6067. if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0)
  6068. t2 += H.Primitives_stringFromCharCode(byte);
  6069. else
  6070. t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15];
  6071. }
  6072. return t2.charCodeAt(0) == 0 ? t2 : t2;
  6073. },
  6074. StackTrace_current: function() {
  6075. var stackTrace, exception;
  6076. if ($.$get$_hasErrorStackProperty())
  6077. return H.getTraceFromException(new Error());
  6078. try {
  6079. throw H.wrapException("");
  6080. } catch (exception) {
  6081. H.unwrapException(exception);
  6082. stackTrace = H.getTraceFromException(exception);
  6083. return stackTrace;
  6084. }
  6085. },
  6086. DateTime$_withValue: function(_value, isUtc) {
  6087. var t1;
  6088. if (Math.abs(_value) <= 864e13)
  6089. t1 = false;
  6090. else
  6091. t1 = true;
  6092. if (t1)
  6093. H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + _value));
  6094. P.ArgumentError_checkNotNull(false, "isUtc");
  6095. return new P.DateTime(_value, false);
  6096. },
  6097. DateTime__fourDigits: function(n) {
  6098. var absN = Math.abs(n),
  6099. sign = n < 0 ? "-" : "";
  6100. if (absN >= 1000)
  6101. return "" + n;
  6102. if (absN >= 100)
  6103. return sign + "0" + absN;
  6104. if (absN >= 10)
  6105. return sign + "00" + absN;
  6106. return sign + "000" + absN;
  6107. },
  6108. DateTime__threeDigits: function(n) {
  6109. if (n >= 100)
  6110. return "" + n;
  6111. if (n >= 10)
  6112. return "0" + n;
  6113. return "00" + n;
  6114. },
  6115. DateTime__twoDigits: function(n) {
  6116. if (n >= 10)
  6117. return "" + n;
  6118. return "0" + n;
  6119. },
  6120. Duration$: function(milliseconds) {
  6121. return new P.Duration(1000 * milliseconds);
  6122. },
  6123. Error_safeToString: function(object) {
  6124. if (typeof object == "number" || H._isBool(object) || null == object)
  6125. return J.toString$0$(object);
  6126. if (typeof object == "string")
  6127. return JSON.stringify(object);
  6128. return P.Error__objectToString(object);
  6129. },
  6130. AssertionError$: function(message) {
  6131. return new P.AssertionError(message);
  6132. },
  6133. ArgumentError$: function(message) {
  6134. return new P.ArgumentError(false, null, null, message);
  6135. },
  6136. ArgumentError$value: function(value, $name, message) {
  6137. return new P.ArgumentError(true, value, $name, message);
  6138. },
  6139. ArgumentError$notNull: function($name) {
  6140. return new P.ArgumentError(false, null, $name, "Must not be null");
  6141. },
  6142. ArgumentError_checkNotNull: function(argument, $name) {
  6143. if (argument == null)
  6144. throw H.wrapException(P.ArgumentError$notNull($name));
  6145. return argument;
  6146. },
  6147. RangeError$: function(message) {
  6148. var _null = null;
  6149. return new P.RangeError(_null, _null, false, _null, _null, message);
  6150. },
  6151. RangeError$value: function(value, $name, message) {
  6152. return new P.RangeError(null, null, true, value, $name, message == null ? "Value not in range" : message);
  6153. },
  6154. RangeError$range: function(invalidValue, minValue, maxValue, $name, message) {
  6155. return new P.RangeError(minValue, maxValue, true, invalidValue, $name, "Invalid value");
  6156. },
  6157. RangeError_checkValueInInterval: function(value, minValue, maxValue, $name) {
  6158. if (value < minValue || value > maxValue)
  6159. throw H.wrapException(P.RangeError$range(value, minValue, maxValue, $name, null));
  6160. return value;
  6161. },
  6162. RangeError_checkValidIndex: function(index, indexable, $name) {
  6163. var $length = indexable.get$length(indexable);
  6164. if (0 > index || index >= $length)
  6165. throw H.wrapException(P.IndexError$(index, indexable, $name == null ? "index" : $name, null, $length));
  6166. return index;
  6167. },
  6168. RangeError_checkValidRange: function(start, end, $length) {
  6169. if (0 > start || start > $length)
  6170. throw H.wrapException(P.RangeError$range(start, 0, $length, "start", null));
  6171. if (end != null) {
  6172. if (start > end || end > $length)
  6173. throw H.wrapException(P.RangeError$range(end, start, $length, "end", null));
  6174. return end;
  6175. }
  6176. return $length;
  6177. },
  6178. RangeError_checkNotNegative: function(value, $name) {
  6179. if (value < 0)
  6180. throw H.wrapException(P.RangeError$range(value, 0, null, $name, null));
  6181. return value;
  6182. },
  6183. IndexError$: function(invalidValue, indexable, $name, message, $length) {
  6184. var t1 = $length == null ? J.get$length$asx(indexable) : $length;
  6185. return new P.IndexError(t1, true, invalidValue, $name, "Index out of range");
  6186. },
  6187. UnsupportedError$: function(message) {
  6188. return new P.UnsupportedError(message);
  6189. },
  6190. UnimplementedError$: function(message) {
  6191. return new P.UnimplementedError(message);
  6192. },
  6193. StateError$: function(message) {
  6194. return new P.StateError(message);
  6195. },
  6196. ConcurrentModificationError$: function(modifiedObject) {
  6197. return new P.ConcurrentModificationError(modifiedObject);
  6198. },
  6199. FormatException$: function(message, source, offset) {
  6200. return new P.FormatException(message, source, offset);
  6201. },
  6202. Iterable_Iterable$generate: function(count, generator, $E) {
  6203. if (count <= 0)
  6204. return new H.EmptyIterable($E._eval$1("EmptyIterable<0>"));
  6205. return new P._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>"));
  6206. },
  6207. print: function(object) {
  6208. var line = J.toString$0$(object),
  6209. toZone = $.printToZone;
  6210. if (toZone == null)
  6211. H.printString(H.S(line));
  6212. else
  6213. toZone.call$1(line);
  6214. },
  6215. Set_castFrom: function(source, newSet, $S, $T) {
  6216. return new H.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>"));
  6217. },
  6218. _combineSurrogatePair: function(start, end) {
  6219. return 65536 + ((start & 1023) << 10) + (end & 1023);
  6220. },
  6221. Uri_Uri$dataFromString: function($content, encoding, mimeType) {
  6222. var encodingName, t1,
  6223. buffer = new P.StringBuffer(""),
  6224. indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
  6225. if (encoding == null)
  6226. encodingName = null;
  6227. else
  6228. encodingName = "utf-8";
  6229. if (encoding == null)
  6230. encoding = C.C_AsciiCodec;
  6231. P.UriData__writeUri(mimeType, encodingName, null, buffer, indices);
  6232. indices.push(buffer._contents.length);
  6233. buffer._contents += ",";
  6234. P.UriData__uriEncodeBytes(C.List_CVk, encoding.encode$1($content), buffer);
  6235. t1 = buffer._contents;
  6236. return new P.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri();
  6237. },
  6238. Uri_parse: function(uri) {
  6239. 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,
  6240. end = uri.length;
  6241. if (end >= 5) {
  6242. delta = ((J._codeUnitAt$1$s(uri, 4) ^ 58) * 3 | C.JSString_methods._codeUnitAt$1(uri, 0) ^ 100 | C.JSString_methods._codeUnitAt$1(uri, 1) ^ 97 | C.JSString_methods._codeUnitAt$1(uri, 2) ^ 116 | C.JSString_methods._codeUnitAt$1(uri, 3) ^ 97) >>> 0;
  6243. if (delta === 0)
  6244. return P.UriData__parse(end < end ? C.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
  6245. else if (delta === 32)
  6246. return P.UriData__parse(C.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri();
  6247. }
  6248. indices = P.List_List$filled(8, 0, false, type$.int);
  6249. indices[0] = 0;
  6250. indices[1] = -1;
  6251. indices[2] = -1;
  6252. indices[7] = -1;
  6253. indices[3] = 0;
  6254. indices[4] = 0;
  6255. indices[5] = end;
  6256. indices[6] = end;
  6257. if (P._scan(uri, 0, end, 0, indices) >= 14)
  6258. indices[7] = end;
  6259. schemeEnd = indices[1];
  6260. if (schemeEnd >= 0)
  6261. if (P._scan(uri, 0, schemeEnd, 20, indices) === 20)
  6262. indices[7] = schemeEnd;
  6263. hostStart = indices[2] + 1;
  6264. portStart = indices[3];
  6265. pathStart = indices[4];
  6266. queryStart = indices[5];
  6267. fragmentStart = indices[6];
  6268. if (fragmentStart < queryStart)
  6269. queryStart = fragmentStart;
  6270. if (pathStart < hostStart)
  6271. pathStart = queryStart;
  6272. else if (pathStart <= schemeEnd)
  6273. pathStart = schemeEnd + 1;
  6274. if (portStart < hostStart)
  6275. portStart = pathStart;
  6276. isSimple = indices[7] < 0;
  6277. if (isSimple)
  6278. if (hostStart > schemeEnd + 3) {
  6279. scheme = _null;
  6280. isSimple = false;
  6281. } else {
  6282. t1 = portStart > 0;
  6283. if (t1 && portStart + 1 === pathStart) {
  6284. scheme = _null;
  6285. isSimple = false;
  6286. } else {
  6287. if (!(queryStart < end && queryStart === pathStart + 2 && J.startsWith$2$s(uri, "..", pathStart)))
  6288. t2 = queryStart > pathStart + 2 && J.startsWith$2$s(uri, "/..", queryStart - 3);
  6289. else
  6290. t2 = true;
  6291. if (t2) {
  6292. scheme = _null;
  6293. isSimple = false;
  6294. } else {
  6295. if (schemeEnd === 4)
  6296. if (J.startsWith$2$s(uri, "file", 0)) {
  6297. if (hostStart <= 0) {
  6298. if (!C.JSString_methods.startsWith$2(uri, "/", pathStart)) {
  6299. schemeAuth = "file:///";
  6300. delta = 3;
  6301. } else {
  6302. schemeAuth = "file://";
  6303. delta = 2;
  6304. }
  6305. uri = schemeAuth + C.JSString_methods.substring$2(uri, pathStart, end);
  6306. schemeEnd -= 0;
  6307. t1 = delta - 0;
  6308. queryStart += t1;
  6309. fragmentStart += t1;
  6310. end = uri.length;
  6311. hostStart = 7;
  6312. portStart = 7;
  6313. pathStart = 7;
  6314. } else if (pathStart === queryStart) {
  6315. ++fragmentStart;
  6316. queryStart0 = queryStart + 1;
  6317. uri = C.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/");
  6318. ++end;
  6319. queryStart = queryStart0;
  6320. }
  6321. scheme = "file";
  6322. } else if (C.JSString_methods.startsWith$2(uri, "http", 0)) {
  6323. if (t1 && portStart + 3 === pathStart && C.JSString_methods.startsWith$2(uri, "80", portStart + 1)) {
  6324. fragmentStart -= 3;
  6325. pathStart0 = pathStart - 3;
  6326. queryStart -= 3;
  6327. uri = C.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
  6328. end -= 3;
  6329. pathStart = pathStart0;
  6330. }
  6331. scheme = "http";
  6332. } else
  6333. scheme = _null;
  6334. else if (schemeEnd === 5 && J.startsWith$2$s(uri, "https", 0)) {
  6335. if (t1 && portStart + 4 === pathStart && J.startsWith$2$s(uri, "443", portStart + 1)) {
  6336. fragmentStart -= 4;
  6337. pathStart0 = pathStart - 4;
  6338. queryStart -= 4;
  6339. uri = J.replaceRange$3$asx(uri, portStart, pathStart, "");
  6340. end -= 3;
  6341. pathStart = pathStart0;
  6342. }
  6343. scheme = "https";
  6344. } else
  6345. scheme = _null;
  6346. isSimple = true;
  6347. }
  6348. }
  6349. }
  6350. else
  6351. scheme = _null;
  6352. if (isSimple) {
  6353. t1 = uri.length;
  6354. if (end < t1) {
  6355. uri = J.substring$2$s(uri, 0, end);
  6356. schemeEnd -= 0;
  6357. hostStart -= 0;
  6358. portStart -= 0;
  6359. pathStart -= 0;
  6360. queryStart -= 0;
  6361. fragmentStart -= 0;
  6362. }
  6363. return new P._SimpleUri(uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
  6364. }
  6365. if (scheme == null)
  6366. if (schemeEnd > 0)
  6367. scheme = P._Uri__makeScheme(uri, 0, schemeEnd);
  6368. else {
  6369. if (schemeEnd === 0)
  6370. P._Uri__fail(uri, 0, "Invalid empty scheme");
  6371. scheme = "";
  6372. }
  6373. if (hostStart > 0) {
  6374. userInfoStart = schemeEnd + 3;
  6375. userInfo = userInfoStart < hostStart ? P._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : "";
  6376. host = P._Uri__makeHost(uri, hostStart, portStart, false);
  6377. t1 = portStart + 1;
  6378. if (t1 < pathStart) {
  6379. portNumber = H.Primitives_parseInt(J.substring$2$s(uri, t1, pathStart), _null);
  6380. port = P._Uri__makePort(portNumber == null ? H.throwExpression(P.FormatException$("Invalid port", uri, t1)) : portNumber, scheme);
  6381. } else
  6382. port = _null;
  6383. } else {
  6384. port = _null;
  6385. host = port;
  6386. userInfo = "";
  6387. }
  6388. path = P._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null);
  6389. query = queryStart < fragmentStart ? P._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null;
  6390. return new P._Uri(scheme, userInfo, host, port, path, query, fragmentStart < end ? P._Uri__makeFragment(uri, fragmentStart + 1, end) : _null);
  6391. },
  6392. Uri_decodeComponent: function(encodedComponent) {
  6393. return P._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, C.C_Utf8Codec, false);
  6394. },
  6395. Uri__parseIPv4Address: function(host, start, end) {
  6396. var i, partStart, partIndex, char, part, partIndex0,
  6397. _s43_ = "IPv4 address should contain exactly 4 parts",
  6398. _s37_ = "each part must be in the range 0..255",
  6399. error = new P.Uri__parseIPv4Address_error(host),
  6400. result = new Uint8Array(4);
  6401. for (i = start, partStart = i, partIndex = 0; i < end; ++i) {
  6402. char = C.JSString_methods.codeUnitAt$1(host, i);
  6403. if (char !== 46) {
  6404. if ((char ^ 48) > 9)
  6405. error.call$2("invalid character", i);
  6406. } else {
  6407. if (partIndex === 3)
  6408. error.call$2(_s43_, i);
  6409. part = P.int_parse(C.JSString_methods.substring$2(host, partStart, i), null);
  6410. if (part > 255)
  6411. error.call$2(_s37_, partStart);
  6412. partIndex0 = partIndex + 1;
  6413. result[partIndex] = part;
  6414. partStart = i + 1;
  6415. partIndex = partIndex0;
  6416. }
  6417. }
  6418. if (partIndex !== 3)
  6419. error.call$2(_s43_, end);
  6420. part = P.int_parse(C.JSString_methods.substring$2(host, partStart, end), null);
  6421. if (part > 255)
  6422. error.call$2(_s37_, partStart);
  6423. result[partIndex] = part;
  6424. return result;
  6425. },
  6426. Uri_parseIPv6Address: function(host, start, end) {
  6427. var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j,
  6428. error = new P.Uri_parseIPv6Address_error(host),
  6429. parseHex = new P.Uri_parseIPv6Address_parseHex(error, host);
  6430. if (host.length < 2)
  6431. error.call$1("address is too short");
  6432. parts = H.setRuntimeTypeInfo([], type$.JSArray_int);
  6433. for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) {
  6434. char = C.JSString_methods.codeUnitAt$1(host, i);
  6435. if (char === 58) {
  6436. if (i === start) {
  6437. ++i;
  6438. if (C.JSString_methods.codeUnitAt$1(host, i) !== 58)
  6439. error.call$2("invalid start colon.", i);
  6440. partStart = i;
  6441. }
  6442. if (i === partStart) {
  6443. if (wildcardSeen)
  6444. error.call$2("only one wildcard `::` is allowed", i);
  6445. parts.push(-1);
  6446. wildcardSeen = true;
  6447. } else
  6448. parts.push(parseHex.call$2(partStart, i));
  6449. partStart = i + 1;
  6450. } else if (char === 46)
  6451. seenDot = true;
  6452. }
  6453. if (parts.length === 0)
  6454. error.call$1("too few parts");
  6455. atEnd = partStart === end;
  6456. t1 = C.JSArray_methods.get$last(parts);
  6457. if (atEnd && t1 !== -1)
  6458. error.call$2("expected a part after last `:`", end);
  6459. if (!atEnd)
  6460. if (!seenDot)
  6461. parts.push(parseHex.call$2(partStart, end));
  6462. else {
  6463. last = P.Uri__parseIPv4Address(host, partStart, end);
  6464. parts.push((last[0] << 8 | last[1]) >>> 0);
  6465. parts.push((last[2] << 8 | last[3]) >>> 0);
  6466. }
  6467. if (wildcardSeen) {
  6468. if (parts.length > 7)
  6469. error.call$1("an address with a wildcard must have less than 7 parts");
  6470. } else if (parts.length !== 8)
  6471. error.call$1("an address without a wildcard must contain exactly 8 parts");
  6472. bytes = new Uint8Array(16);
  6473. for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) {
  6474. value = parts[i];
  6475. if (value === -1)
  6476. for (j = 0; j < wildCardLength; ++j) {
  6477. bytes[index] = 0;
  6478. bytes[index + 1] = 0;
  6479. index += 2;
  6480. }
  6481. else {
  6482. bytes[index] = C.JSInt_methods._shrOtherPositive$1(value, 8);
  6483. bytes[index + 1] = value & 255;
  6484. index += 2;
  6485. }
  6486. }
  6487. return bytes;
  6488. },
  6489. _Uri__Uri: function(host, path, pathSegments, scheme) {
  6490. var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null;
  6491. scheme = scheme == null ? "" : P._Uri__makeScheme(scheme, 0, scheme.length);
  6492. userInfo = P._Uri__makeUserInfo(_null, 0, 0);
  6493. host = P._Uri__makeHost(host, 0, host == null ? 0 : host.length, false);
  6494. query = P._Uri__makeQuery(_null, 0, 0, _null);
  6495. fragment = P._Uri__makeFragment(_null, 0, 0);
  6496. port = P._Uri__makePort(_null, scheme);
  6497. isFile = scheme === "file";
  6498. if (host == null)
  6499. t1 = userInfo.length !== 0 || port != null || isFile;
  6500. else
  6501. t1 = false;
  6502. if (t1)
  6503. host = "";
  6504. t1 = host == null;
  6505. hasAuthority = !t1;
  6506. path = P._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority);
  6507. t2 = scheme.length === 0;
  6508. if (t2 && t1 && !C.JSString_methods.startsWith$1(path, "/"))
  6509. path = P._Uri__normalizeRelativePath(path, !t2 || hasAuthority);
  6510. else
  6511. path = P._Uri__removeDotSegments(path);
  6512. return new P._Uri(scheme, userInfo, t1 && C.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment);
  6513. },
  6514. _Uri__defaultPort: function(scheme) {
  6515. if (scheme === "http")
  6516. return 80;
  6517. if (scheme === "https")
  6518. return 443;
  6519. return 0;
  6520. },
  6521. _Uri__fail: function(uri, index, message) {
  6522. throw H.wrapException(P.FormatException$(message, uri, index));
  6523. },
  6524. _Uri__Uri$file: function(path, windows) {
  6525. return windows ? P._Uri__makeWindowsFileUrl(path, false) : P._Uri__makeFileUri(path, false);
  6526. },
  6527. _Uri__checkNonWindowsPathReservedCharacters: function(segments, argumentError) {
  6528. var t1, _i, segment, t2, t3;
  6529. for (t1 = segments.length, _i = 0; _i < t1; ++_i) {
  6530. segment = segments[_i];
  6531. segment.toString;
  6532. t2 = J.getInterceptor$asx(segment);
  6533. t3 = t2.get$length(segment);
  6534. if (0 > t3)
  6535. H.throwExpression(P.RangeError$range(0, 0, t2.get$length(segment), null, null));
  6536. if (H.stringContainsUnchecked(segment, "/", 0)) {
  6537. t1 = P.UnsupportedError$("Illegal path character " + H.S(segment));
  6538. throw H.wrapException(t1);
  6539. }
  6540. }
  6541. },
  6542. _Uri__checkWindowsPathReservedCharacters: function(segments, argumentError, firstSegment) {
  6543. var t1, cur, t2;
  6544. for (t1 = H.SubListIterable$(segments, firstSegment, null, H._arrayInstanceType(segments)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  6545. cur = t1.__internal$_current;
  6546. t2 = P.RegExp_RegExp('["*/:<>?\\\\|]', false);
  6547. cur.toString;
  6548. if (H.stringContainsUnchecked(cur, t2, 0))
  6549. if (argumentError)
  6550. throw H.wrapException(P.ArgumentError$("Illegal character in path"));
  6551. else
  6552. throw H.wrapException(P.UnsupportedError$("Illegal character in path: " + cur));
  6553. }
  6554. },
  6555. _Uri__checkWindowsDriveLetter: function(charCode, argumentError) {
  6556. var t1,
  6557. _s21_ = "Illegal drive letter ";
  6558. if (!(65 <= charCode && charCode <= 90))
  6559. t1 = 97 <= charCode && charCode <= 122;
  6560. else
  6561. t1 = true;
  6562. if (t1)
  6563. return;
  6564. if (argumentError)
  6565. throw H.wrapException(P.ArgumentError$(_s21_ + P.String_String$fromCharCode(charCode)));
  6566. else
  6567. throw H.wrapException(P.UnsupportedError$(_s21_ + P.String_String$fromCharCode(charCode)));
  6568. },
  6569. _Uri__makeFileUri: function(path, slashTerminated) {
  6570. var _null = null,
  6571. segments = H.setRuntimeTypeInfo(path.split("/"), type$.JSArray_String);
  6572. if (C.JSString_methods.startsWith$1(path, "/"))
  6573. return P._Uri__Uri(_null, _null, segments, "file");
  6574. else
  6575. return P._Uri__Uri(_null, _null, segments, _null);
  6576. },
  6577. _Uri__makeWindowsFileUrl: function(path, slashTerminated) {
  6578. var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file";
  6579. if (C.JSString_methods.startsWith$1(path, "\\\\?\\"))
  6580. if (C.JSString_methods.startsWith$2(path, "UNC\\", 4))
  6581. path = C.JSString_methods.replaceRange$3(path, 0, 7, _s1_);
  6582. else {
  6583. path = C.JSString_methods.substring$1(path, 4);
  6584. if (path.length < 3 || C.JSString_methods._codeUnitAt$1(path, 1) !== 58 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
  6585. throw H.wrapException(P.ArgumentError$("Windows paths with \\\\?\\ prefix must be absolute"));
  6586. }
  6587. else
  6588. path = H.stringReplaceAllUnchecked(path, "/", _s1_);
  6589. t1 = path.length;
  6590. if (t1 > 1 && C.JSString_methods._codeUnitAt$1(path, 1) === 58) {
  6591. P._Uri__checkWindowsDriveLetter(C.JSString_methods._codeUnitAt$1(path, 0), true);
  6592. if (t1 === 2 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
  6593. throw H.wrapException(P.ArgumentError$("Windows paths with drive letter must be absolute"));
  6594. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6595. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1);
  6596. return P._Uri__Uri(_null, _null, pathSegments, _s4_);
  6597. }
  6598. if (C.JSString_methods.startsWith$1(path, _s1_))
  6599. if (C.JSString_methods.startsWith$2(path, _s1_, 1)) {
  6600. pathStart = C.JSString_methods.indexOf$2(path, _s1_, 2);
  6601. t1 = pathStart < 0;
  6602. hostPart = t1 ? C.JSString_methods.substring$1(path, 2) : C.JSString_methods.substring$2(path, 2, pathStart);
  6603. pathSegments = H.setRuntimeTypeInfo((t1 ? "" : C.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String);
  6604. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6605. return P._Uri__Uri(hostPart, _null, pathSegments, _s4_);
  6606. } else {
  6607. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6608. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6609. return P._Uri__Uri(_null, _null, pathSegments, _s4_);
  6610. }
  6611. else {
  6612. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6613. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6614. return P._Uri__Uri(_null, _null, pathSegments, _null);
  6615. }
  6616. },
  6617. _Uri__makePort: function(port, scheme) {
  6618. if (port != null && port === P._Uri__defaultPort(scheme))
  6619. return null;
  6620. return port;
  6621. },
  6622. _Uri__makeHost: function(host, start, end, strictIPv6) {
  6623. var t1, t2, index, zoneIDstart, zoneID, i;
  6624. if (host == null)
  6625. return null;
  6626. if (start === end)
  6627. return "";
  6628. if (C.JSString_methods.codeUnitAt$1(host, start) === 91) {
  6629. t1 = end - 1;
  6630. if (C.JSString_methods.codeUnitAt$1(host, t1) !== 93)
  6631. P._Uri__fail(host, start, "Missing end `]` to match `[` in host");
  6632. t2 = start + 1;
  6633. index = P._Uri__checkZoneID(host, t2, t1);
  6634. if (index < t1) {
  6635. zoneIDstart = index + 1;
  6636. zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25");
  6637. } else
  6638. zoneID = "";
  6639. P.Uri_parseIPv6Address(host, t2, index);
  6640. return C.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]";
  6641. }
  6642. for (i = start; i < end; ++i)
  6643. if (C.JSString_methods.codeUnitAt$1(host, i) === 58) {
  6644. index = C.JSString_methods.indexOf$2(host, "%", start);
  6645. index = index >= start && index < end ? index : end;
  6646. if (index < end) {
  6647. zoneIDstart = index + 1;
  6648. zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25");
  6649. } else
  6650. zoneID = "";
  6651. P.Uri_parseIPv6Address(host, start, index);
  6652. return "[" + C.JSString_methods.substring$2(host, start, index) + zoneID + "]";
  6653. }
  6654. return P._Uri__normalizeRegName(host, start, end);
  6655. },
  6656. _Uri__checkZoneID: function(host, start, end) {
  6657. var index = C.JSString_methods.indexOf$2(host, "%", start);
  6658. return index >= start && index < end ? index : end;
  6659. },
  6660. _Uri__normalizeZoneID: function(host, start, end, prefix) {
  6661. var index, sectionStart, isNormalized, char, replacement, t1, t2, tail, sourceLength, slice,
  6662. buffer = prefix !== "" ? new P.StringBuffer(prefix) : null;
  6663. for (index = start, sectionStart = index, isNormalized = true; index < end;) {
  6664. char = C.JSString_methods.codeUnitAt$1(host, index);
  6665. if (char === 37) {
  6666. replacement = P._Uri__normalizeEscape(host, index, true);
  6667. t1 = replacement == null;
  6668. if (t1 && isNormalized) {
  6669. index += 3;
  6670. continue;
  6671. }
  6672. if (buffer == null)
  6673. buffer = new P.StringBuffer("");
  6674. t2 = buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6675. if (t1)
  6676. replacement = C.JSString_methods.substring$2(host, index, index + 3);
  6677. else if (replacement === "%")
  6678. P._Uri__fail(host, index, "ZoneID should not contain % anymore");
  6679. buffer._contents = t2 + replacement;
  6680. index += 3;
  6681. sectionStart = index;
  6682. isNormalized = true;
  6683. } else if (char < 127 && (C.List_nxB[char >>> 4] & 1 << (char & 15)) !== 0) {
  6684. if (isNormalized && 65 <= char && 90 >= char) {
  6685. if (buffer == null)
  6686. buffer = new P.StringBuffer("");
  6687. if (sectionStart < index) {
  6688. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6689. sectionStart = index;
  6690. }
  6691. isNormalized = false;
  6692. }
  6693. ++index;
  6694. } else {
  6695. if ((char & 64512) === 55296 && index + 1 < end) {
  6696. tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
  6697. if ((tail & 64512) === 56320) {
  6698. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6699. sourceLength = 2;
  6700. } else
  6701. sourceLength = 1;
  6702. } else
  6703. sourceLength = 1;
  6704. slice = C.JSString_methods.substring$2(host, sectionStart, index);
  6705. if (buffer == null) {
  6706. buffer = new P.StringBuffer("");
  6707. t1 = buffer;
  6708. } else
  6709. t1 = buffer;
  6710. t1._contents += slice;
  6711. t1._contents += P._Uri__escapeChar(char);
  6712. index += sourceLength;
  6713. sectionStart = index;
  6714. }
  6715. }
  6716. if (buffer == null)
  6717. return C.JSString_methods.substring$2(host, start, end);
  6718. if (sectionStart < end)
  6719. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, end);
  6720. t1 = buffer._contents;
  6721. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6722. },
  6723. _Uri__normalizeRegName: function(host, start, end) {
  6724. var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail;
  6725. for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) {
  6726. char = C.JSString_methods.codeUnitAt$1(host, index);
  6727. if (char === 37) {
  6728. replacement = P._Uri__normalizeEscape(host, index, true);
  6729. t1 = replacement == null;
  6730. if (t1 && isNormalized) {
  6731. index += 3;
  6732. continue;
  6733. }
  6734. if (buffer == null)
  6735. buffer = new P.StringBuffer("");
  6736. slice = C.JSString_methods.substring$2(host, sectionStart, index);
  6737. t2 = buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6738. if (t1) {
  6739. replacement = C.JSString_methods.substring$2(host, index, index + 3);
  6740. sourceLength = 3;
  6741. } else if (replacement === "%") {
  6742. replacement = "%25";
  6743. sourceLength = 1;
  6744. } else
  6745. sourceLength = 3;
  6746. buffer._contents = t2 + replacement;
  6747. index += sourceLength;
  6748. sectionStart = index;
  6749. isNormalized = true;
  6750. } else if (char < 127 && (C.List_qNA[char >>> 4] & 1 << (char & 15)) !== 0) {
  6751. if (isNormalized && 65 <= char && 90 >= char) {
  6752. if (buffer == null)
  6753. buffer = new P.StringBuffer("");
  6754. if (sectionStart < index) {
  6755. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6756. sectionStart = index;
  6757. }
  6758. isNormalized = false;
  6759. }
  6760. ++index;
  6761. } else if (char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0)
  6762. P._Uri__fail(host, index, "Invalid character");
  6763. else {
  6764. if ((char & 64512) === 55296 && index + 1 < end) {
  6765. tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
  6766. if ((tail & 64512) === 56320) {
  6767. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6768. sourceLength = 2;
  6769. } else
  6770. sourceLength = 1;
  6771. } else
  6772. sourceLength = 1;
  6773. slice = C.JSString_methods.substring$2(host, sectionStart, index);
  6774. if (!isNormalized)
  6775. slice = slice.toLowerCase();
  6776. if (buffer == null) {
  6777. buffer = new P.StringBuffer("");
  6778. t1 = buffer;
  6779. } else
  6780. t1 = buffer;
  6781. t1._contents += slice;
  6782. t1._contents += P._Uri__escapeChar(char);
  6783. index += sourceLength;
  6784. sectionStart = index;
  6785. }
  6786. }
  6787. if (buffer == null)
  6788. return C.JSString_methods.substring$2(host, start, end);
  6789. if (sectionStart < end) {
  6790. slice = C.JSString_methods.substring$2(host, sectionStart, end);
  6791. buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6792. }
  6793. t1 = buffer._contents;
  6794. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6795. },
  6796. _Uri__makeScheme: function(scheme, start, end) {
  6797. var i, containsUpperCase, codeUnit;
  6798. if (start === end)
  6799. return "";
  6800. if (!P._Uri__isAlphabeticCharacter(J.getInterceptor$s(scheme)._codeUnitAt$1(scheme, start)))
  6801. P._Uri__fail(scheme, start, "Scheme not starting with alphabetic character");
  6802. for (i = start, containsUpperCase = false; i < end; ++i) {
  6803. codeUnit = C.JSString_methods._codeUnitAt$1(scheme, i);
  6804. if (!(codeUnit < 128 && (C.List_JYB[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0))
  6805. P._Uri__fail(scheme, i, "Illegal scheme character");
  6806. if (65 <= codeUnit && codeUnit <= 90)
  6807. containsUpperCase = true;
  6808. }
  6809. scheme = C.JSString_methods.substring$2(scheme, start, end);
  6810. return P._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme);
  6811. },
  6812. _Uri__canonicalizeScheme: function(scheme) {
  6813. if (scheme === "http")
  6814. return "http";
  6815. if (scheme === "file")
  6816. return "file";
  6817. if (scheme === "https")
  6818. return "https";
  6819. if (scheme === "package")
  6820. return "package";
  6821. return scheme;
  6822. },
  6823. _Uri__makeUserInfo: function(userInfo, start, end) {
  6824. if (userInfo == null)
  6825. return "";
  6826. return P._Uri__normalizeOrSubstring(userInfo, start, end, C.List_gRj, false);
  6827. },
  6828. _Uri__makePath: function(path, start, end, pathSegments, scheme, hasAuthority) {
  6829. var result,
  6830. isFile = scheme === "file",
  6831. ensureLeadingSlash = isFile || hasAuthority;
  6832. if (path == null) {
  6833. if (pathSegments == null)
  6834. return isFile ? "/" : "";
  6835. result = new H.MappedListIterable(pathSegments, new P._Uri__makePath_closure(), H._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/");
  6836. } else if (pathSegments != null)
  6837. throw H.wrapException(P.ArgumentError$("Both path and pathSegments specified"));
  6838. else
  6839. result = P._Uri__normalizeOrSubstring(path, start, end, C.List_qg4, true);
  6840. if (result.length === 0) {
  6841. if (isFile)
  6842. return "/";
  6843. } else if (ensureLeadingSlash && !C.JSString_methods.startsWith$1(result, "/"))
  6844. result = "/" + result;
  6845. return P._Uri__normalizePath(result, scheme, hasAuthority);
  6846. },
  6847. _Uri__normalizePath: function(path, scheme, hasAuthority) {
  6848. var t1 = scheme.length === 0;
  6849. if (t1 && !hasAuthority && !C.JSString_methods.startsWith$1(path, "/"))
  6850. return P._Uri__normalizeRelativePath(path, !t1 || hasAuthority);
  6851. return P._Uri__removeDotSegments(path);
  6852. },
  6853. _Uri__makeQuery: function(query, start, end, queryParameters) {
  6854. if (query != null)
  6855. return P._Uri__normalizeOrSubstring(query, start, end, C.List_CVk, true);
  6856. return null;
  6857. },
  6858. _Uri__makeFragment: function(fragment, start, end) {
  6859. if (fragment == null)
  6860. return null;
  6861. return P._Uri__normalizeOrSubstring(fragment, start, end, C.List_CVk, true);
  6862. },
  6863. _Uri__normalizeEscape: function(source, index, lowerCase) {
  6864. var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value,
  6865. t1 = index + 2;
  6866. if (t1 >= source.length)
  6867. return "%";
  6868. firstDigit = C.JSString_methods.codeUnitAt$1(source, index + 1);
  6869. secondDigit = C.JSString_methods.codeUnitAt$1(source, t1);
  6870. firstDigitValue = H.hexDigitValue(firstDigit);
  6871. secondDigitValue = H.hexDigitValue(secondDigit);
  6872. if (firstDigitValue < 0 || secondDigitValue < 0)
  6873. return "%";
  6874. value = firstDigitValue * 16 + secondDigitValue;
  6875. if (value < 127 && (C.List_nxB[C.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0)
  6876. return H.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value);
  6877. if (firstDigit >= 97 || secondDigit >= 97)
  6878. return C.JSString_methods.substring$2(source, index, index + 3).toUpperCase();
  6879. return null;
  6880. },
  6881. _Uri__escapeChar: function(char) {
  6882. var codeUnits, flag, encodedBytes, index, byte,
  6883. _s16_ = "0123456789ABCDEF";
  6884. if (char < 128) {
  6885. codeUnits = new Uint8Array(3);
  6886. codeUnits[0] = 37;
  6887. codeUnits[1] = C.JSString_methods._codeUnitAt$1(_s16_, char >>> 4);
  6888. codeUnits[2] = C.JSString_methods._codeUnitAt$1(_s16_, char & 15);
  6889. } else {
  6890. if (char > 2047)
  6891. if (char > 65535) {
  6892. flag = 240;
  6893. encodedBytes = 4;
  6894. } else {
  6895. flag = 224;
  6896. encodedBytes = 3;
  6897. }
  6898. else {
  6899. flag = 192;
  6900. encodedBytes = 2;
  6901. }
  6902. codeUnits = new Uint8Array(3 * encodedBytes);
  6903. for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) {
  6904. byte = C.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag;
  6905. codeUnits[index] = 37;
  6906. codeUnits[index + 1] = C.JSString_methods._codeUnitAt$1(_s16_, byte >>> 4);
  6907. codeUnits[index + 2] = C.JSString_methods._codeUnitAt$1(_s16_, byte & 15);
  6908. index += 3;
  6909. }
  6910. }
  6911. return P.String_String$fromCharCodes(codeUnits, 0, null);
  6912. },
  6913. _Uri__normalizeOrSubstring: function(component, start, end, charTable, escapeDelimiters) {
  6914. var t1 = P._Uri__normalize(component, start, end, charTable, escapeDelimiters);
  6915. return t1 == null ? C.JSString_methods.substring$2(component, start, end) : t1;
  6916. },
  6917. _Uri__normalize: function(component, start, end, charTable, escapeDelimiters) {
  6918. var t1, index, sectionStart, buffer, char, replacement, sourceLength, t2, tail, _null = null;
  6919. for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) {
  6920. char = C.JSString_methods.codeUnitAt$1(component, index);
  6921. if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0)
  6922. ++index;
  6923. else {
  6924. if (char === 37) {
  6925. replacement = P._Uri__normalizeEscape(component, index, false);
  6926. if (replacement == null) {
  6927. index += 3;
  6928. continue;
  6929. }
  6930. if ("%" === replacement) {
  6931. replacement = "%25";
  6932. sourceLength = 1;
  6933. } else
  6934. sourceLength = 3;
  6935. } else if (t1 && char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0) {
  6936. P._Uri__fail(component, index, "Invalid character");
  6937. sourceLength = _null;
  6938. replacement = sourceLength;
  6939. } else {
  6940. if ((char & 64512) === 55296) {
  6941. t2 = index + 1;
  6942. if (t2 < end) {
  6943. tail = C.JSString_methods.codeUnitAt$1(component, t2);
  6944. if ((tail & 64512) === 56320) {
  6945. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6946. sourceLength = 2;
  6947. } else
  6948. sourceLength = 1;
  6949. } else
  6950. sourceLength = 1;
  6951. } else
  6952. sourceLength = 1;
  6953. replacement = P._Uri__escapeChar(char);
  6954. }
  6955. if (buffer == null) {
  6956. buffer = new P.StringBuffer("");
  6957. t2 = buffer;
  6958. } else
  6959. t2 = buffer;
  6960. t2._contents += C.JSString_methods.substring$2(component, sectionStart, index);
  6961. t2._contents += H.S(replacement);
  6962. index += sourceLength;
  6963. sectionStart = index;
  6964. }
  6965. }
  6966. if (buffer == null)
  6967. return _null;
  6968. if (sectionStart < end)
  6969. buffer._contents += C.JSString_methods.substring$2(component, sectionStart, end);
  6970. t1 = buffer._contents;
  6971. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6972. },
  6973. _Uri__mayContainDotSegments: function(path) {
  6974. if (C.JSString_methods.startsWith$1(path, "."))
  6975. return true;
  6976. return C.JSString_methods.indexOf$1(path, "/.") !== -1;
  6977. },
  6978. _Uri__removeDotSegments: function(path) {
  6979. var output, t1, t2, appendSlash, _i, segment;
  6980. if (!P._Uri__mayContainDotSegments(path))
  6981. return path;
  6982. output = H.setRuntimeTypeInfo([], type$.JSArray_String);
  6983. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  6984. segment = t1[_i];
  6985. if (J.$eq$(segment, "..")) {
  6986. if (output.length !== 0) {
  6987. output.pop();
  6988. if (output.length === 0)
  6989. output.push("");
  6990. }
  6991. appendSlash = true;
  6992. } else if ("." === segment)
  6993. appendSlash = true;
  6994. else {
  6995. output.push(segment);
  6996. appendSlash = false;
  6997. }
  6998. }
  6999. if (appendSlash)
  7000. output.push("");
  7001. return C.JSArray_methods.join$1(output, "/");
  7002. },
  7003. _Uri__normalizeRelativePath: function(path, allowScheme) {
  7004. var output, t1, t2, appendSlash, _i, segment;
  7005. if (!P._Uri__mayContainDotSegments(path))
  7006. return !allowScheme ? P._Uri__escapeScheme(path) : path;
  7007. output = H.setRuntimeTypeInfo([], type$.JSArray_String);
  7008. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  7009. segment = t1[_i];
  7010. if (".." === segment)
  7011. if (output.length !== 0 && C.JSArray_methods.get$last(output) !== "..") {
  7012. output.pop();
  7013. appendSlash = true;
  7014. } else {
  7015. output.push("..");
  7016. appendSlash = false;
  7017. }
  7018. else if ("." === segment)
  7019. appendSlash = true;
  7020. else {
  7021. output.push(segment);
  7022. appendSlash = false;
  7023. }
  7024. }
  7025. t1 = output.length;
  7026. if (t1 !== 0)
  7027. t1 = t1 === 1 && output[0].length === 0;
  7028. else
  7029. t1 = true;
  7030. if (t1)
  7031. return "./";
  7032. if (appendSlash || C.JSArray_methods.get$last(output) === "..")
  7033. output.push("");
  7034. if (!allowScheme)
  7035. output[0] = P._Uri__escapeScheme(output[0]);
  7036. return C.JSArray_methods.join$1(output, "/");
  7037. },
  7038. _Uri__escapeScheme: function(path) {
  7039. var i, char,
  7040. t1 = path.length;
  7041. if (t1 >= 2 && P._Uri__isAlphabeticCharacter(J._codeUnitAt$1$s(path, 0)))
  7042. for (i = 1; i < t1; ++i) {
  7043. char = C.JSString_methods._codeUnitAt$1(path, i);
  7044. if (char === 58)
  7045. return C.JSString_methods.substring$2(path, 0, i) + "%3A" + C.JSString_methods.substring$1(path, i + 1);
  7046. if (char > 127 || (C.List_JYB[char >>> 4] & 1 << (char & 15)) === 0)
  7047. break;
  7048. }
  7049. return path;
  7050. },
  7051. _Uri__toWindowsFilePath: function(uri) {
  7052. var hasDriveLetter, t2, host,
  7053. segments = uri.get$pathSegments(),
  7054. t1 = segments.length;
  7055. if (t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58) {
  7056. P._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false);
  7057. P._Uri__checkWindowsPathReservedCharacters(segments, false, 1);
  7058. hasDriveLetter = true;
  7059. } else {
  7060. P._Uri__checkWindowsPathReservedCharacters(segments, false, 0);
  7061. hasDriveLetter = false;
  7062. }
  7063. t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "\\" : "";
  7064. if (uri.get$hasAuthority()) {
  7065. host = uri.get$host();
  7066. if (host.length !== 0)
  7067. t2 = t2 + "\\" + host + "\\";
  7068. }
  7069. t2 = P.StringBuffer__writeAll(t2, segments, "\\");
  7070. t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2;
  7071. return t1.charCodeAt(0) == 0 ? t1 : t1;
  7072. },
  7073. _Uri__hexCharPairToByte: function(s, pos) {
  7074. var byte, i, charCode;
  7075. for (byte = 0, i = 0; i < 2; ++i) {
  7076. charCode = C.JSString_methods._codeUnitAt$1(s, pos + i);
  7077. if (48 <= charCode && charCode <= 57)
  7078. byte = byte * 16 + charCode - 48;
  7079. else {
  7080. charCode |= 32;
  7081. if (97 <= charCode && charCode <= 102)
  7082. byte = byte * 16 + charCode - 87;
  7083. else
  7084. throw H.wrapException(P.ArgumentError$("Invalid URL encoding"));
  7085. }
  7086. }
  7087. return byte;
  7088. },
  7089. _Uri__uriDecode: function(text, start, end, encoding, plusToSpace) {
  7090. var simple, codeUnit, t2, bytes,
  7091. t1 = J.getInterceptor$s(text),
  7092. i = start;
  7093. while (true) {
  7094. if (!(i < end)) {
  7095. simple = true;
  7096. break;
  7097. }
  7098. codeUnit = t1._codeUnitAt$1(text, i);
  7099. if (codeUnit <= 127)
  7100. if (codeUnit !== 37)
  7101. t2 = false;
  7102. else
  7103. t2 = true;
  7104. else
  7105. t2 = true;
  7106. if (t2) {
  7107. simple = false;
  7108. break;
  7109. }
  7110. ++i;
  7111. }
  7112. if (simple) {
  7113. if (C.C_Utf8Codec !== encoding)
  7114. t2 = false;
  7115. else
  7116. t2 = true;
  7117. if (t2)
  7118. return t1.substring$2(text, start, end);
  7119. else
  7120. bytes = new H.CodeUnits(t1.substring$2(text, start, end));
  7121. } else {
  7122. bytes = H.setRuntimeTypeInfo([], type$.JSArray_int);
  7123. for (i = start; i < end; ++i) {
  7124. codeUnit = t1._codeUnitAt$1(text, i);
  7125. if (codeUnit > 127)
  7126. throw H.wrapException(P.ArgumentError$("Illegal percent encoding in URI"));
  7127. if (codeUnit === 37) {
  7128. if (i + 3 > text.length)
  7129. throw H.wrapException(P.ArgumentError$("Truncated URI"));
  7130. bytes.push(P._Uri__hexCharPairToByte(text, i + 1));
  7131. i += 2;
  7132. } else
  7133. bytes.push(codeUnit);
  7134. }
  7135. }
  7136. return C.Utf8Decoder_false.convert$1(bytes);
  7137. },
  7138. _Uri__isAlphabeticCharacter: function(codeUnit) {
  7139. var lowerCase = codeUnit | 32;
  7140. return 97 <= lowerCase && lowerCase <= 122;
  7141. },
  7142. UriData__writeUri: function(mimeType, charsetName, parameters, buffer, indices) {
  7143. var t1, slashIndex;
  7144. if (mimeType == null || mimeType === "text/plain")
  7145. mimeType = "";
  7146. if (mimeType.length === 0 || mimeType === "application/octet-stream")
  7147. t1 = buffer._contents += mimeType;
  7148. else {
  7149. slashIndex = P.UriData__validateMimeType(mimeType);
  7150. if (slashIndex < 0)
  7151. throw H.wrapException(P.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type"));
  7152. t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$2(mimeType, 0, slashIndex), C.C_Utf8Codec, false));
  7153. buffer._contents = t1 + "/";
  7154. t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$1(mimeType, slashIndex + 1), C.C_Utf8Codec, false));
  7155. }
  7156. if (charsetName != null) {
  7157. indices.push(t1.length);
  7158. indices.push(buffer._contents.length + 8);
  7159. buffer._contents += ";charset=";
  7160. buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, charsetName, C.C_Utf8Codec, false));
  7161. }
  7162. },
  7163. UriData__validateMimeType: function(mimeType) {
  7164. var t1, slashIndex, i;
  7165. for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) {
  7166. if (C.JSString_methods._codeUnitAt$1(mimeType, i) !== 47)
  7167. continue;
  7168. if (slashIndex < 0) {
  7169. slashIndex = i;
  7170. continue;
  7171. }
  7172. return -1;
  7173. }
  7174. return slashIndex;
  7175. },
  7176. UriData__parse: function(text, start, sourceUri) {
  7177. var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data,
  7178. _s17_ = "Invalid MIME type",
  7179. indices = H.setRuntimeTypeInfo([start - 1], type$.JSArray_int);
  7180. for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) {
  7181. char = C.JSString_methods._codeUnitAt$1(text, i);
  7182. if (char === 44 || char === 59)
  7183. break;
  7184. if (char === 47) {
  7185. if (slashIndex < 0) {
  7186. slashIndex = i;
  7187. continue;
  7188. }
  7189. throw H.wrapException(P.FormatException$(_s17_, text, i));
  7190. }
  7191. }
  7192. if (slashIndex < 0 && i > start)
  7193. throw H.wrapException(P.FormatException$(_s17_, text, i));
  7194. for (; char !== 44;) {
  7195. indices.push(i);
  7196. ++i;
  7197. for (equalsIndex = -1; i < t1; ++i) {
  7198. char = C.JSString_methods._codeUnitAt$1(text, i);
  7199. if (char === 61) {
  7200. if (equalsIndex < 0)
  7201. equalsIndex = i;
  7202. } else if (char === 59 || char === 44)
  7203. break;
  7204. }
  7205. if (equalsIndex >= 0)
  7206. indices.push(equalsIndex);
  7207. else {
  7208. lastSeparator = C.JSArray_methods.get$last(indices);
  7209. if (char !== 44 || i !== lastSeparator + 7 || !C.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1))
  7210. throw H.wrapException(P.FormatException$("Expecting '='", text, i));
  7211. break;
  7212. }
  7213. }
  7214. indices.push(i);
  7215. t2 = i + 1;
  7216. if ((indices.length & 1) === 1)
  7217. text = C.C_Base64Codec.normalize$3(text, t2, t1);
  7218. else {
  7219. data = P._Uri__normalize(text, t2, t1, C.List_CVk, true);
  7220. if (data != null)
  7221. text = C.JSString_methods.replaceRange$3(text, t2, t1, data);
  7222. }
  7223. return new P.UriData(text, indices, sourceUri);
  7224. },
  7225. UriData__uriEncodeBytes: function(canonicalTable, bytes, buffer) {
  7226. var t1, byteOr, i, byte,
  7227. _s16_ = "0123456789ABCDEF";
  7228. for (t1 = J.getInterceptor$asx(bytes), byteOr = 0, i = 0; i < t1.get$length(bytes); ++i) {
  7229. byte = t1.$index(bytes, i);
  7230. byteOr |= byte;
  7231. if (byte < 128 && (canonicalTable[C.JSInt_methods._shrOtherPositive$1(byte, 4)] & 1 << (byte & 15)) !== 0)
  7232. buffer._contents += H.Primitives_stringFromCharCode(byte);
  7233. else {
  7234. buffer._contents += H.Primitives_stringFromCharCode(37);
  7235. buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, C.JSInt_methods._shrOtherPositive$1(byte, 4)));
  7236. buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, byte & 15));
  7237. }
  7238. }
  7239. if ((byteOr & 4294967040) >>> 0 !== 0)
  7240. for (i = 0; i < t1.get$length(bytes); ++i) {
  7241. byte = t1.$index(bytes, i);
  7242. if (byte < 0 || byte > 255)
  7243. throw H.wrapException(P.ArgumentError$value(byte, "non-byte value", null));
  7244. }
  7245. },
  7246. _createTables: function() {
  7247. var _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",
  7248. _s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "?", _s1_3 = "#",
  7249. tables = P.List_List$generate(22, new P._createTables_closure(), true, type$.Uint8List),
  7250. t1 = new P._createTables_build(tables),
  7251. t2 = new P._createTables_setChars(),
  7252. t3 = new P._createTables_setRange(),
  7253. b = t1.call$2(0, 225);
  7254. t2.call$3(b, _s77_, 1);
  7255. t2.call$3(b, _s1_, 14);
  7256. t2.call$3(b, _s1_0, 34);
  7257. t2.call$3(b, _s1_1, 3);
  7258. t2.call$3(b, _s1_2, 172);
  7259. t2.call$3(b, _s1_3, 205);
  7260. b = t1.call$2(14, 225);
  7261. t2.call$3(b, _s77_, 1);
  7262. t2.call$3(b, _s1_, 15);
  7263. t2.call$3(b, _s1_0, 34);
  7264. t2.call$3(b, _s1_1, 234);
  7265. t2.call$3(b, _s1_2, 172);
  7266. t2.call$3(b, _s1_3, 205);
  7267. b = t1.call$2(15, 225);
  7268. t2.call$3(b, _s77_, 1);
  7269. t2.call$3(b, "%", 225);
  7270. t2.call$3(b, _s1_0, 34);
  7271. t2.call$3(b, _s1_1, 9);
  7272. t2.call$3(b, _s1_2, 172);
  7273. t2.call$3(b, _s1_3, 205);
  7274. b = t1.call$2(1, 225);
  7275. t2.call$3(b, _s77_, 1);
  7276. t2.call$3(b, _s1_0, 34);
  7277. t2.call$3(b, _s1_1, 10);
  7278. t2.call$3(b, _s1_2, 172);
  7279. t2.call$3(b, _s1_3, 205);
  7280. b = t1.call$2(2, 235);
  7281. t2.call$3(b, _s77_, 139);
  7282. t2.call$3(b, _s1_1, 131);
  7283. t2.call$3(b, _s1_, 146);
  7284. t2.call$3(b, _s1_2, 172);
  7285. t2.call$3(b, _s1_3, 205);
  7286. b = t1.call$2(3, 235);
  7287. t2.call$3(b, _s77_, 11);
  7288. t2.call$3(b, _s1_1, 68);
  7289. t2.call$3(b, _s1_, 18);
  7290. t2.call$3(b, _s1_2, 172);
  7291. t2.call$3(b, _s1_3, 205);
  7292. b = t1.call$2(4, 229);
  7293. t2.call$3(b, _s77_, 5);
  7294. t3.call$3(b, "AZ", 229);
  7295. t2.call$3(b, _s1_0, 102);
  7296. t2.call$3(b, "@", 68);
  7297. t2.call$3(b, "[", 232);
  7298. t2.call$3(b, _s1_1, 138);
  7299. t2.call$3(b, _s1_2, 172);
  7300. t2.call$3(b, _s1_3, 205);
  7301. b = t1.call$2(5, 229);
  7302. t2.call$3(b, _s77_, 5);
  7303. t3.call$3(b, "AZ", 229);
  7304. t2.call$3(b, _s1_0, 102);
  7305. t2.call$3(b, "@", 68);
  7306. t2.call$3(b, _s1_1, 138);
  7307. t2.call$3(b, _s1_2, 172);
  7308. t2.call$3(b, _s1_3, 205);
  7309. b = t1.call$2(6, 231);
  7310. t3.call$3(b, "19", 7);
  7311. t2.call$3(b, "@", 68);
  7312. t2.call$3(b, _s1_1, 138);
  7313. t2.call$3(b, _s1_2, 172);
  7314. t2.call$3(b, _s1_3, 205);
  7315. b = t1.call$2(7, 231);
  7316. t3.call$3(b, "09", 7);
  7317. t2.call$3(b, "@", 68);
  7318. t2.call$3(b, _s1_1, 138);
  7319. t2.call$3(b, _s1_2, 172);
  7320. t2.call$3(b, _s1_3, 205);
  7321. t2.call$3(t1.call$2(8, 8), "]", 5);
  7322. b = t1.call$2(9, 235);
  7323. t2.call$3(b, _s77_, 11);
  7324. t2.call$3(b, _s1_, 16);
  7325. t2.call$3(b, _s1_1, 234);
  7326. t2.call$3(b, _s1_2, 172);
  7327. t2.call$3(b, _s1_3, 205);
  7328. b = t1.call$2(16, 235);
  7329. t2.call$3(b, _s77_, 11);
  7330. t2.call$3(b, _s1_, 17);
  7331. t2.call$3(b, _s1_1, 234);
  7332. t2.call$3(b, _s1_2, 172);
  7333. t2.call$3(b, _s1_3, 205);
  7334. b = t1.call$2(17, 235);
  7335. t2.call$3(b, _s77_, 11);
  7336. t2.call$3(b, _s1_1, 9);
  7337. t2.call$3(b, _s1_2, 172);
  7338. t2.call$3(b, _s1_3, 205);
  7339. b = t1.call$2(10, 235);
  7340. t2.call$3(b, _s77_, 11);
  7341. t2.call$3(b, _s1_, 18);
  7342. t2.call$3(b, _s1_1, 234);
  7343. t2.call$3(b, _s1_2, 172);
  7344. t2.call$3(b, _s1_3, 205);
  7345. b = t1.call$2(18, 235);
  7346. t2.call$3(b, _s77_, 11);
  7347. t2.call$3(b, _s1_, 19);
  7348. t2.call$3(b, _s1_1, 234);
  7349. t2.call$3(b, _s1_2, 172);
  7350. t2.call$3(b, _s1_3, 205);
  7351. b = t1.call$2(19, 235);
  7352. t2.call$3(b, _s77_, 11);
  7353. t2.call$3(b, _s1_1, 234);
  7354. t2.call$3(b, _s1_2, 172);
  7355. t2.call$3(b, _s1_3, 205);
  7356. b = t1.call$2(11, 235);
  7357. t2.call$3(b, _s77_, 11);
  7358. t2.call$3(b, _s1_1, 10);
  7359. t2.call$3(b, _s1_2, 172);
  7360. t2.call$3(b, _s1_3, 205);
  7361. b = t1.call$2(12, 236);
  7362. t2.call$3(b, _s77_, 12);
  7363. t2.call$3(b, _s1_2, 12);
  7364. t2.call$3(b, _s1_3, 205);
  7365. b = t1.call$2(13, 237);
  7366. t2.call$3(b, _s77_, 13);
  7367. t2.call$3(b, _s1_2, 13);
  7368. t3.call$3(t1.call$2(20, 245), "az", 21);
  7369. b = t1.call$2(21, 245);
  7370. t3.call$3(b, "az", 21);
  7371. t3.call$3(b, "09", 21);
  7372. t2.call$3(b, "+-.", 21);
  7373. return tables;
  7374. },
  7375. _scan: function(uri, start, end, state, indices) {
  7376. var t1, i, table, char, transition,
  7377. tables = $.$get$_scannerTables();
  7378. for (t1 = J.getInterceptor$s(uri), i = start; i < end; ++i) {
  7379. table = tables[state];
  7380. char = t1._codeUnitAt$1(uri, i) ^ 96;
  7381. transition = table[char > 95 ? 31 : char];
  7382. state = transition & 31;
  7383. indices[transition >>> 5] = i;
  7384. }
  7385. return state;
  7386. },
  7387. NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) {
  7388. this._box_0 = t0;
  7389. this.sb = t1;
  7390. },
  7391. bool: function bool() {
  7392. },
  7393. DateTime: function DateTime(t0, t1) {
  7394. this._value = t0;
  7395. this.isUtc = t1;
  7396. },
  7397. double: function double() {
  7398. },
  7399. Duration: function Duration(t0) {
  7400. this._duration = t0;
  7401. },
  7402. Duration_toString_sixDigits: function Duration_toString_sixDigits() {
  7403. },
  7404. Duration_toString_twoDigits: function Duration_toString_twoDigits() {
  7405. },
  7406. Error: function Error() {
  7407. },
  7408. AssertionError: function AssertionError(t0) {
  7409. this.message = t0;
  7410. },
  7411. NullThrownError: function NullThrownError() {
  7412. },
  7413. ArgumentError: function ArgumentError(t0, t1, t2, t3) {
  7414. var _ = this;
  7415. _._hasValue = t0;
  7416. _.invalidValue = t1;
  7417. _.name = t2;
  7418. _.message = t3;
  7419. },
  7420. RangeError: function RangeError(t0, t1, t2, t3, t4, t5) {
  7421. var _ = this;
  7422. _.start = t0;
  7423. _.end = t1;
  7424. _._hasValue = t2;
  7425. _.invalidValue = t3;
  7426. _.name = t4;
  7427. _.message = t5;
  7428. },
  7429. IndexError: function IndexError(t0, t1, t2, t3, t4) {
  7430. var _ = this;
  7431. _.length = t0;
  7432. _._hasValue = t1;
  7433. _.invalidValue = t2;
  7434. _.name = t3;
  7435. _.message = t4;
  7436. },
  7437. NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) {
  7438. var _ = this;
  7439. _._core$_receiver = t0;
  7440. _._memberName = t1;
  7441. _._core$_arguments = t2;
  7442. _._namedArguments = t3;
  7443. },
  7444. UnsupportedError: function UnsupportedError(t0) {
  7445. this.message = t0;
  7446. },
  7447. UnimplementedError: function UnimplementedError(t0) {
  7448. this.message = t0;
  7449. },
  7450. StateError: function StateError(t0) {
  7451. this.message = t0;
  7452. },
  7453. ConcurrentModificationError: function ConcurrentModificationError(t0) {
  7454. this.modifiedObject = t0;
  7455. },
  7456. OutOfMemoryError: function OutOfMemoryError() {
  7457. },
  7458. StackOverflowError: function StackOverflowError() {
  7459. },
  7460. CyclicInitializationError: function CyclicInitializationError(t0) {
  7461. this.variableName = t0;
  7462. },
  7463. _Exception: function _Exception(t0) {
  7464. this.message = t0;
  7465. },
  7466. FormatException: function FormatException(t0, t1, t2) {
  7467. this.message = t0;
  7468. this.source = t1;
  7469. this.offset = t2;
  7470. },
  7471. Function: function Function() {
  7472. },
  7473. int: function int() {
  7474. },
  7475. Iterable: function Iterable() {
  7476. },
  7477. _GeneratorIterable: function _GeneratorIterable(t0, t1, t2) {
  7478. this.length = t0;
  7479. this._generator = t1;
  7480. this.$ti = t2;
  7481. },
  7482. Iterator: function Iterator() {
  7483. },
  7484. List: function List() {
  7485. },
  7486. Map: function Map() {
  7487. },
  7488. MapEntry: function MapEntry(t0, t1, t2) {
  7489. this.key = t0;
  7490. this.value = t1;
  7491. this.$ti = t2;
  7492. },
  7493. Null: function Null() {
  7494. },
  7495. num: function num() {
  7496. },
  7497. Object: function Object() {
  7498. },
  7499. Match: function Match() {
  7500. },
  7501. RegExpMatch: function RegExpMatch() {
  7502. },
  7503. Set: function Set() {
  7504. },
  7505. StackTrace: function StackTrace() {
  7506. },
  7507. _StringStackTrace: function _StringStackTrace(t0) {
  7508. this._stackTrace = t0;
  7509. },
  7510. String: function String() {
  7511. },
  7512. Runes: function Runes(t0) {
  7513. this.string = t0;
  7514. },
  7515. RuneIterator: function RuneIterator(t0) {
  7516. var _ = this;
  7517. _.string = t0;
  7518. _._nextPosition = _._position = 0;
  7519. _._currentCodePoint = -1;
  7520. },
  7521. StringBuffer: function StringBuffer(t0) {
  7522. this._contents = t0;
  7523. },
  7524. StringSink: function StringSink() {
  7525. },
  7526. Symbol0: function Symbol0() {
  7527. },
  7528. Uri: function Uri() {
  7529. },
  7530. Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) {
  7531. this.host = t0;
  7532. },
  7533. Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) {
  7534. this.host = t0;
  7535. },
  7536. Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) {
  7537. this.error = t0;
  7538. this.host = t1;
  7539. },
  7540. _Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) {
  7541. var _ = this;
  7542. _.scheme = t0;
  7543. _._userInfo = t1;
  7544. _._host = t2;
  7545. _._port = t3;
  7546. _.path = t4;
  7547. _._query = t5;
  7548. _._fragment = t6;
  7549. _.___Uri_hashCode = _.___Uri_pathSegments = _.___Uri__text = null;
  7550. },
  7551. _Uri__makePath_closure: function _Uri__makePath_closure() {
  7552. },
  7553. UriData: function UriData(t0, t1, t2) {
  7554. this._text = t0;
  7555. this._separatorIndices = t1;
  7556. this._uriCache = t2;
  7557. },
  7558. _createTables_closure: function _createTables_closure() {
  7559. },
  7560. _createTables_build: function _createTables_build(t0) {
  7561. this.tables = t0;
  7562. },
  7563. _createTables_setChars: function _createTables_setChars() {
  7564. },
  7565. _createTables_setRange: function _createTables_setRange() {
  7566. },
  7567. _SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) {
  7568. var _ = this;
  7569. _._uri = t0;
  7570. _._schemeEnd = t1;
  7571. _._hostStart = t2;
  7572. _._portStart = t3;
  7573. _._pathStart = t4;
  7574. _._queryStart = t5;
  7575. _._fragmentStart = t6;
  7576. _._schemeCache = t7;
  7577. _._hashCodeCache = null;
  7578. },
  7579. _DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) {
  7580. var _ = this;
  7581. _.scheme = t0;
  7582. _._userInfo = t1;
  7583. _._host = t2;
  7584. _._port = t3;
  7585. _.path = t4;
  7586. _._query = t5;
  7587. _._fragment = t6;
  7588. _.___Uri_hashCode = _.___Uri_pathSegments = _.___Uri__text = null;
  7589. },
  7590. max: function(a, b) {
  7591. return Math.max(H.checkNum(a), H.checkNum(b));
  7592. },
  7593. pow: function(x, exponent) {
  7594. H.checkNum(x);
  7595. H.checkNum(exponent);
  7596. return Math.pow(x, exponent);
  7597. },
  7598. Random_Random: function() {
  7599. return C.C__JSRandom;
  7600. },
  7601. _JSRandom: function _JSRandom() {
  7602. },
  7603. Uint8List: function Uint8List() {
  7604. },
  7605. _convertDartFunctionFast: function(f) {
  7606. var ret,
  7607. existing = f.$dart_jsFunction;
  7608. if (existing != null)
  7609. return existing;
  7610. ret = function(_call, f) {
  7611. return function() {
  7612. return _call(f, Array.prototype.slice.apply(arguments));
  7613. };
  7614. }(P._callDartFunctionFast, f);
  7615. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  7616. f.$dart_jsFunction = ret;
  7617. return ret;
  7618. },
  7619. _convertDartFunctionFastCaptureThis: function(f) {
  7620. var ret,
  7621. existing = f._$dart_jsFunctionCaptureThis;
  7622. if (existing != null)
  7623. return existing;
  7624. ret = function(_call, f) {
  7625. return function() {
  7626. return _call(f, this, Array.prototype.slice.apply(arguments));
  7627. };
  7628. }(P._callDartFunctionFastCaptureThis, f);
  7629. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  7630. f._$dart_jsFunctionCaptureThis = ret;
  7631. return ret;
  7632. },
  7633. _callDartFunctionFast: function(callback, $arguments) {
  7634. return P.Function_apply(callback, $arguments);
  7635. },
  7636. _callDartFunctionFastCaptureThis: function(callback, $self, $arguments) {
  7637. var t1 = [$self];
  7638. C.JSArray_methods.addAll$1(t1, $arguments);
  7639. return P.Function_apply(callback, t1);
  7640. },
  7641. allowInterop: function(f) {
  7642. if (typeof f == "function")
  7643. return f;
  7644. else
  7645. return P._convertDartFunctionFast(f);
  7646. },
  7647. allowInteropCaptureThis: function(f) {
  7648. if (typeof f == "function")
  7649. throw H.wrapException(P.ArgumentError$("Function is already a JS function so cannot capture this."));
  7650. else
  7651. return P._convertDartFunctionFastCaptureThis(f);
  7652. },
  7653. callConstructor: function(constr, $arguments) {
  7654. var args, factoryFunction;
  7655. if ($arguments instanceof Array)
  7656. switch ($arguments.length) {
  7657. case 0:
  7658. return new constr();
  7659. case 1:
  7660. return new constr($arguments[0]);
  7661. case 2:
  7662. return new constr($arguments[0], $arguments[1]);
  7663. case 3:
  7664. return new constr($arguments[0], $arguments[1], $arguments[2]);
  7665. case 4:
  7666. return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
  7667. }
  7668. args = [null];
  7669. C.JSArray_methods.addAll$1(args, $arguments);
  7670. factoryFunction = constr.bind.apply(constr, args);
  7671. String(factoryFunction);
  7672. return new factoryFunction();
  7673. }
  7674. },
  7675. N = {ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5) {
  7676. var _ = this;
  7677. _._arg_parser$_options = t0;
  7678. _.options = t1;
  7679. _.commands = t2;
  7680. _._optionsAndSeparators = t3;
  7681. _.allowTrailingOptions = t4;
  7682. _.usageLineLength = t5;
  7683. }, ArgParser_findByAbbreviation_closure: function ArgParser_findByAbbreviation_closure(t0) {
  7684. this.abbr = t0;
  7685. }, ArgParser_findByAbbreviation_closure0: function ArgParser_findByAbbreviation_closure0() {
  7686. }, SupportsCondition: function SupportsCondition() {
  7687. }, AttributeSelector: function AttributeSelector(t0, t1, t2, t3) {
  7688. var _ = this;
  7689. _.name = t0;
  7690. _.op = t1;
  7691. _.value = t2;
  7692. _.modifier = t3;
  7693. }, AttributeOperator: function AttributeOperator(t0) {
  7694. this._attribute$_text = t0;
  7695. }, IDSelector: function IDSelector(t0) {
  7696. this.name = t0;
  7697. }, IDSelector_unify_closure: function IDSelector_unify_closure(t0) {
  7698. this.$this = t0;
  7699. }, PlaceholderSelector: function PlaceholderSelector(t0) {
  7700. this.name = t0;
  7701. }, UniversalSelector: function UniversalSelector(t0) {
  7702. this.namespace = t0;
  7703. }, NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) {
  7704. this._no_source_map_buffer0$_buffer = t0;
  7705. },
  7706. serialize: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
  7707. var t1, css, t2, prefix, t3,
  7708. visitor = N._SerializeVisitor$0(2, inspect, lineFeed, true, sourceMap, style, true);
  7709. node.accept$1(visitor);
  7710. t1 = visitor._serialize$_buffer;
  7711. css = t1.toString$0(0);
  7712. if (charset) {
  7713. t2 = new H.CodeUnits(css);
  7714. t2 = t2.any$1(t2, new N.serialize_closure());
  7715. } else
  7716. t2 = false;
  7717. if (t2)
  7718. prefix = style === C.OutputStyle_compressed ? "\ufeff" : '@charset "UTF-8";\n';
  7719. else
  7720. prefix = "";
  7721. t2 = prefix + css;
  7722. t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  7723. if (sourceMap)
  7724. t1.get$sourceFiles();
  7725. return new N.SerializeResult(t2, t3);
  7726. },
  7727. serializeValue0: function(value, inspect, quote) {
  7728. var visitor = N._SerializeVisitor$0(null, inspect, null, quote, false, null, true);
  7729. value.accept$1(visitor);
  7730. return visitor._serialize$_buffer.toString$0(0);
  7731. },
  7732. _SerializeVisitor$0: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
  7733. var t1 = sourceMap ? new D.SourceMapBuffer0(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_legacy_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_SourceFile)) : new N.NoSourceMapBuffer0(new P.StringBuffer("")),
  7734. t2 = style == null ? C.OutputStyle_expanded0 : style,
  7735. t3 = indentWidth == null ? 2 : indentWidth;
  7736. P.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth");
  7737. return new N._SerializeVisitor0(t1, t2, inspect, quote, 32, t3, C.C_LineFeed);
  7738. },
  7739. serialize_closure: function serialize_closure() {
  7740. },
  7741. _SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6) {
  7742. var _ = this;
  7743. _._serialize$_buffer = t0;
  7744. _._indentation = 0;
  7745. _._style = t1;
  7746. _._serialize$_inspect = t2;
  7747. _._quote = t3;
  7748. _._indentCharacter = t4;
  7749. _._indentWidth = t5;
  7750. _._serialize$_lineFeed = t6;
  7751. },
  7752. _SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) {
  7753. this.$this = t0;
  7754. this.node = t1;
  7755. },
  7756. _SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) {
  7757. this.$this = t0;
  7758. this.node = t1;
  7759. },
  7760. _SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) {
  7761. this.$this = t0;
  7762. this.node = t1;
  7763. },
  7764. _SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) {
  7765. this.$this = t0;
  7766. this.node = t1;
  7767. },
  7768. _SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) {
  7769. this.$this = t0;
  7770. this.node = t1;
  7771. },
  7772. _SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  7773. this.$this = t0;
  7774. this.node = t1;
  7775. },
  7776. _SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) {
  7777. this.$this = t0;
  7778. this.node = t1;
  7779. },
  7780. _SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) {
  7781. this.$this = t0;
  7782. this.node = t1;
  7783. },
  7784. _SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) {
  7785. this.$this = t0;
  7786. this.node = t1;
  7787. },
  7788. _SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) {
  7789. this.$this = t0;
  7790. this.node = t1;
  7791. },
  7792. _SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() {
  7793. },
  7794. _SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) {
  7795. this.$this = t0;
  7796. this.value = t1;
  7797. },
  7798. _SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) {
  7799. this.$this = t0;
  7800. },
  7801. _SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0, t1) {
  7802. this.$this = t0;
  7803. this.map = t1;
  7804. },
  7805. _SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() {
  7806. },
  7807. _SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) {
  7808. this.$this = t0;
  7809. this.value = t1;
  7810. },
  7811. _SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1, t2) {
  7812. this._box_0 = t0;
  7813. this.$this = t1;
  7814. this.children = t2;
  7815. },
  7816. OutputStyle: function OutputStyle(t0) {
  7817. this._serialize$_name = t0;
  7818. },
  7819. LineFeed: function LineFeed() {
  7820. },
  7821. SerializeResult: function SerializeResult(t0, t1) {
  7822. this.css = t0;
  7823. this.sourceMap = t1;
  7824. },
  7825. warn: function(message, deprecation) {
  7826. var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
  7827. if (warnDefinition == null)
  7828. throw H.wrapException(P.ArgumentError$(string$.warn__));
  7829. warnDefinition.call$2(message, deprecation);
  7830. },
  7831. withWarnCallback: function(warn, callback, $T) {
  7832. var t1 = type$.legacy_Object;
  7833. return P.runZoned(new N.withWarnCallback_closure(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1));
  7834. },
  7835. withWarnCallback_closure: function withWarnCallback_closure(t0, t1) {
  7836. this.callback = t0;
  7837. this.T = t1;
  7838. },
  7839. UnparsedFrame: function UnparsedFrame(t0, t1) {
  7840. this.uri = t0;
  7841. this.member = t1;
  7842. },
  7843. AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3) {
  7844. var _ = this;
  7845. _.name = t0;
  7846. _.op = t1;
  7847. _.value = t2;
  7848. _.modifier = t3;
  7849. },
  7850. AttributeOperator0: function AttributeOperator0(t0) {
  7851. this._attribute0$_text = t0;
  7852. },
  7853. IDSelector0: function IDSelector0(t0) {
  7854. this.name = t0;
  7855. },
  7856. IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) {
  7857. this.$this = t0;
  7858. },
  7859. NoSourceMapBuffer: function NoSourceMapBuffer(t0) {
  7860. this._no_source_map_buffer$_buffer = t0;
  7861. },
  7862. PlaceholderSelector0: function PlaceholderSelector0(t0) {
  7863. this.name = t0;
  7864. },
  7865. serialize0: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
  7866. var t1, css, t2, prefix, t3,
  7867. visitor = N._SerializeVisitor$(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, true, sourceMap, style, useSpaces);
  7868. node.accept$1(visitor);
  7869. t1 = visitor._buffer;
  7870. css = t1.toString$0(0);
  7871. t2 = new H.CodeUnits(css);
  7872. t2 = t2.any$1(t2, new N.serialize_closure0());
  7873. if (t2)
  7874. prefix = style === C.OutputStyle_compressed0 ? "\ufeff" : '@charset "UTF-8";\n';
  7875. else
  7876. prefix = "";
  7877. t2 = prefix + css;
  7878. t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  7879. if (sourceMap)
  7880. t1.get$sourceFiles();
  7881. return new N.SerializeResult0(t2, t3);
  7882. },
  7883. serializeValue: function(value, inspect, quote) {
  7884. var visitor = N._SerializeVisitor$(null, inspect, null, quote, false, null, true);
  7885. value.accept$1(visitor);
  7886. return visitor._buffer.toString$0(0);
  7887. },
  7888. _SerializeVisitor$: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
  7889. var t1 = sourceMap ? new D.SourceMapBuffer(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_legacy_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_SourceFile)) : new N.NoSourceMapBuffer(new P.StringBuffer("")),
  7890. t2 = style == null ? C.OutputStyle_expanded : style,
  7891. t3 = useSpaces ? 32 : 9,
  7892. t4 = indentWidth == null ? 2 : indentWidth,
  7893. t5 = lineFeed == null ? C.LineFeed_D6m : lineFeed;
  7894. P.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth");
  7895. return new N._SerializeVisitor(t1, t2, inspect, quote, t3, t4, t5);
  7896. },
  7897. serialize_closure0: function serialize_closure0() {
  7898. },
  7899. _SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6) {
  7900. var _ = this;
  7901. _._buffer = t0;
  7902. _._serialize0$_indentation = 0;
  7903. _._serialize0$_style = t1;
  7904. _._inspect = t2;
  7905. _._serialize0$_quote = t3;
  7906. _._serialize0$_indentCharacter = t4;
  7907. _._serialize0$_indentWidth = t5;
  7908. _._lineFeed = t6;
  7909. },
  7910. _SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) {
  7911. this.$this = t0;
  7912. this.node = t1;
  7913. },
  7914. _SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) {
  7915. this.$this = t0;
  7916. this.node = t1;
  7917. },
  7918. _SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) {
  7919. this.$this = t0;
  7920. this.node = t1;
  7921. },
  7922. _SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) {
  7923. this.$this = t0;
  7924. this.node = t1;
  7925. },
  7926. _SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) {
  7927. this.$this = t0;
  7928. this.node = t1;
  7929. },
  7930. _SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) {
  7931. this.$this = t0;
  7932. this.node = t1;
  7933. },
  7934. _SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) {
  7935. this.$this = t0;
  7936. this.node = t1;
  7937. },
  7938. _SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) {
  7939. this.$this = t0;
  7940. this.node = t1;
  7941. },
  7942. _SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) {
  7943. this.$this = t0;
  7944. this.node = t1;
  7945. },
  7946. _SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) {
  7947. this.$this = t0;
  7948. this.node = t1;
  7949. },
  7950. _SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() {
  7951. },
  7952. _SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) {
  7953. this.$this = t0;
  7954. this.value = t1;
  7955. },
  7956. _SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) {
  7957. this.$this = t0;
  7958. },
  7959. _SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0, t1) {
  7960. this.$this = t0;
  7961. this.map = t1;
  7962. },
  7963. _SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() {
  7964. },
  7965. _SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) {
  7966. this.$this = t0;
  7967. this.value = t1;
  7968. },
  7969. _SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1, t2) {
  7970. this._box_0 = t0;
  7971. this.$this = t1;
  7972. this.children = t2;
  7973. },
  7974. OutputStyle0: function OutputStyle0(t0) {
  7975. this._name = t0;
  7976. },
  7977. LineFeed0: function LineFeed0(t0, t1) {
  7978. this.name = t0;
  7979. this.text = t1;
  7980. },
  7981. SerializeResult0: function SerializeResult0(t0, t1) {
  7982. this.css = t0;
  7983. this.sourceMap = t1;
  7984. },
  7985. SupportsCondition0: function SupportsCondition0() {
  7986. },
  7987. UniversalSelector0: function UniversalSelector0(t0) {
  7988. this.namespace = t0;
  7989. },
  7990. warn0: function(message, deprecation) {
  7991. var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
  7992. if (warnDefinition == null)
  7993. throw H.wrapException(P.ArgumentError$(string$.warn__));
  7994. warnDefinition.call$2(message, deprecation);
  7995. },
  7996. withWarnCallback0: function(warn, callback, $T) {
  7997. var t1 = type$.legacy_Object;
  7998. return P.runZoned(new N.withWarnCallback_closure0(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1));
  7999. },
  8000. withWarnCallback_closure0: function withWarnCallback_closure0(t0, t1) {
  8001. this.callback = t0;
  8002. this.T = t1;
  8003. }
  8004. },
  8005. Z = {
  8006. ArgParserException$: function(message, commands) {
  8007. return new Z.ArgParserException(commands == null ? C.List_empty : P.List_List$unmodifiable(commands, type$.legacy_String), message, null, null);
  8008. },
  8009. ArgParserException: function ArgParserException(t0, t1, t2, t3) {
  8010. var _ = this;
  8011. _.commands = t0;
  8012. _.message = t1;
  8013. _.source = t2;
  8014. _.offset = t3;
  8015. },
  8016. Argument: function Argument(t0, t1, t2) {
  8017. this.name = t0;
  8018. this.defaultValue = t1;
  8019. this.span = t2;
  8020. },
  8021. ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) {
  8022. var _ = this;
  8023. _.name = t0;
  8024. _.expression = t1;
  8025. _.isGuarded = t2;
  8026. _.span = t3;
  8027. },
  8028. BooleanExpression: function BooleanExpression(t0, t1) {
  8029. this.value = t0;
  8030. this.span = t1;
  8031. },
  8032. VariableDeclaration$: function($name, expression, span, comment, global, guarded, namespace) {
  8033. if (namespace != null && global)
  8034. H.throwExpression(P.ArgumentError$(string$.Other_));
  8035. return new Z.VariableDeclaration(namespace, $name, expression, guarded, global, span);
  8036. },
  8037. VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) {
  8038. var _ = this;
  8039. _.namespace = t0;
  8040. _.name = t1;
  8041. _.expression = t2;
  8042. _.isGuarded = t3;
  8043. _.isGlobal = t4;
  8044. _.span = t5;
  8045. },
  8046. ConfiguredValue: function ConfiguredValue(t0, t1, t2) {
  8047. this.value = t0;
  8048. this.configurationSpan = t1;
  8049. this.assignmentNode = t2;
  8050. },
  8051. InterpolationBuffer: function InterpolationBuffer(t0, t1) {
  8052. this._interpolation_buffer$_text = t0;
  8053. this._interpolation_buffer$_contents = t1;
  8054. },
  8055. MergedMapView$: function(maps, $K, $V) {
  8056. var t1 = $K._eval$1("@<0>")._bind$1($V);
  8057. t1 = new Z.MergedMapView(P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), t1._eval$1("Map<1*,2*>*")), t1._eval$1("MergedMapView<1,2>"));
  8058. t1.MergedMapView$1(maps, $K, $V);
  8059. return t1;
  8060. },
  8061. MergedMapView: function MergedMapView(t0, t1) {
  8062. this._mapsByKey = t0;
  8063. this.$ti = t1;
  8064. },
  8065. SassBoolean: function SassBoolean(t0) {
  8066. this.value = t0;
  8067. },
  8068. LineScanner: function LineScanner(t0, t1) {
  8069. var _ = this;
  8070. _._line_scanner$_column = _._line_scanner$_line = 0;
  8071. _.sourceUrl = t0;
  8072. _.string = t1;
  8073. _._string_scanner$_position = 0;
  8074. _._lastMatchPosition = _._lastMatch = null;
  8075. },
  8076. Argument0: function Argument0(t0, t1, t2) {
  8077. this.name = t0;
  8078. this.defaultValue = t1;
  8079. this.span = t2;
  8080. },
  8081. BooleanExpression0: function BooleanExpression0(t0, t1) {
  8082. this.value = t0;
  8083. this.span = t1;
  8084. },
  8085. closure245: function closure245() {
  8086. },
  8087. _closure32: function _closure32() {
  8088. },
  8089. _closure33: function _closure33() {
  8090. },
  8091. SassBoolean0: function SassBoolean0(t0) {
  8092. this.value = t0;
  8093. },
  8094. ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) {
  8095. this.value = t0;
  8096. this.configurationSpan = t1;
  8097. this.assignmentNode = t2;
  8098. },
  8099. ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) {
  8100. var _ = this;
  8101. _.name = t0;
  8102. _.expression = t1;
  8103. _.isGuarded = t2;
  8104. _.span = t3;
  8105. },
  8106. InterpolationBuffer0: function InterpolationBuffer0(t0, t1) {
  8107. this._interpolation_buffer0$_text = t0;
  8108. this._interpolation_buffer0$_contents = t1;
  8109. },
  8110. MergedMapView$0: function(maps, $K, $V) {
  8111. var t1 = $K._eval$1("@<0>")._bind$1($V);
  8112. t1 = new Z.MergedMapView0(P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), t1._eval$1("Map<1*,2*>*")), t1._eval$1("MergedMapView0<1,2>"));
  8113. t1.MergedMapView$10(maps, $K, $V);
  8114. return t1;
  8115. },
  8116. MergedMapView0: function MergedMapView0(t0, t1) {
  8117. this._merged_map_view$_mapsByKey = t0;
  8118. this.$ti = t1;
  8119. },
  8120. RenderContext: function RenderContext() {
  8121. },
  8122. VariableDeclaration$0: function($name, expression, span, comment, global, guarded, namespace) {
  8123. if (namespace != null && global)
  8124. H.throwExpression(P.ArgumentError$(string$.Other_));
  8125. return new Z.VariableDeclaration0(namespace, $name, expression, guarded, global, span);
  8126. },
  8127. VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) {
  8128. var _ = this;
  8129. _.namespace = t0;
  8130. _.name = t1;
  8131. _.expression = t2;
  8132. _.isGuarded = t3;
  8133. _.isGlobal = t4;
  8134. _.span = t5;
  8135. }
  8136. },
  8137. V = {
  8138. ArgResults$_: function(_parser, _parsed, $name, command, rest, $arguments) {
  8139. return new V.ArgResults(_parser, _parsed, $name, new P.UnmodifiableListView(rest, type$.UnmodifiableListView_legacy_String));
  8140. },
  8141. ArgResults: function ArgResults(t0, t1, t2, t3) {
  8142. var _ = this;
  8143. _._parser = t0;
  8144. _._parsed = t1;
  8145. _.name = t2;
  8146. _.rest = t3;
  8147. },
  8148. ErrorResult: function ErrorResult(t0, t1) {
  8149. this.error = t0;
  8150. this.stackTrace = t1;
  8151. },
  8152. ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) {
  8153. var _ = this;
  8154. _.span = t0;
  8155. _.children = t1;
  8156. _._children = t2;
  8157. _._indexInParent = _._parent = null;
  8158. _.isGroupEnd = false;
  8159. },
  8160. CssStylesheet: function CssStylesheet(t0, t1) {
  8161. this.children = t0;
  8162. this.span = t1;
  8163. },
  8164. AtRootQuery: function AtRootQuery(t0, t1, t2, t3) {
  8165. var _ = this;
  8166. _.include = t0;
  8167. _.names = t1;
  8168. _._all = t2;
  8169. _._at_root_query$_rule = t3;
  8170. },
  8171. BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) {
  8172. var _ = this;
  8173. _.operator = t0;
  8174. _.left = t1;
  8175. _.right = t2;
  8176. _.allowsSlash = t3;
  8177. },
  8178. BinaryOperator: function BinaryOperator(t0, t1, t2) {
  8179. this.name = t0;
  8180. this.operator = t1;
  8181. this.precedence = t2;
  8182. },
  8183. AtRootRule: function AtRootRule(t0, t1, t2, t3) {
  8184. var _ = this;
  8185. _.query = t0;
  8186. _.span = t1;
  8187. _.children = t2;
  8188. _.hasDeclarations = t3;
  8189. },
  8190. EachRule: function EachRule(t0, t1, t2, t3, t4) {
  8191. var _ = this;
  8192. _.variables = t0;
  8193. _.list = t1;
  8194. _.span = t2;
  8195. _.children = t3;
  8196. _.hasDeclarations = t4;
  8197. },
  8198. EachRule_toString_closure: function EachRule_toString_closure() {
  8199. },
  8200. IfRule: function IfRule(t0, t1, t2) {
  8201. this.clauses = t0;
  8202. this.lastClause = t1;
  8203. this.span = t2;
  8204. },
  8205. IfRule_toString_closure: function IfRule_toString_closure(t0) {
  8206. this._box_0 = t0;
  8207. },
  8208. IfClause: function IfClause(t0, t1, t2) {
  8209. this.expression = t0;
  8210. this.children = t1;
  8211. this.hasDeclarations = t2;
  8212. },
  8213. IfClause$__closure: function IfClause$__closure() {
  8214. },
  8215. IfClause$___closure: function IfClause$___closure() {
  8216. },
  8217. Stylesheet$: function(children, span, plainCss) {
  8218. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_UseRule),
  8219. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ForwardRule),
  8220. t3 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  8221. t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure());
  8222. t1 = new V.Stylesheet(span, plainCss, t1, t2, t3, t4);
  8223. t1.Stylesheet$3$plainCss(children, span, plainCss);
  8224. return t1;
  8225. },
  8226. Stylesheet_Stylesheet$parse: function(contents, syntax, logger, url) {
  8227. var t1, t2;
  8228. switch (syntax) {
  8229. case C.Syntax_Sass:
  8230. t1 = S.SpanScanner$(contents, url);
  8231. t2 = logger == null ? C.StderrLogger_false : logger;
  8232. return new U.SassParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2).parse$0();
  8233. case C.Syntax_SCSS:
  8234. t1 = S.SpanScanner$(contents, url);
  8235. t2 = logger == null ? C.StderrLogger_false : logger;
  8236. return new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2).parse$0();
  8237. case C.Syntax_CSS:
  8238. t1 = S.SpanScanner$(contents, url);
  8239. t2 = logger == null ? C.StderrLogger_false : logger;
  8240. return new Q.CssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2).parse$0();
  8241. default:
  8242. throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
  8243. }
  8244. },
  8245. Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) {
  8246. var _ = this;
  8247. _.span = t0;
  8248. _.plainCss = t1;
  8249. _._uses = t2;
  8250. _._forwards = t3;
  8251. _.children = t4;
  8252. _.hasDeclarations = t5;
  8253. },
  8254. AtRootQueryParser: function AtRootQueryParser(t0, t1) {
  8255. this.scanner = t0;
  8256. this.logger = t1;
  8257. },
  8258. AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) {
  8259. this.$this = t0;
  8260. },
  8261. StylesheetParser: function StylesheetParser() {
  8262. },
  8263. StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) {
  8264. this.$this = t0;
  8265. },
  8266. StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) {
  8267. this.$this = t0;
  8268. },
  8269. StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() {
  8270. },
  8271. StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) {
  8272. this.$this = t0;
  8273. },
  8274. StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) {
  8275. this.$this = t0;
  8276. },
  8277. StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) {
  8278. this.$this = t0;
  8279. },
  8280. StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) {
  8281. this.$this = t0;
  8282. this.production = t1;
  8283. this.T = t2;
  8284. },
  8285. StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) {
  8286. this.$this = t0;
  8287. },
  8288. StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) {
  8289. this._box_0 = t0;
  8290. this.$this = t1;
  8291. },
  8292. StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) {
  8293. this.declaration = t0;
  8294. },
  8295. StylesheetParser__declarationOrBuffer_closure: function StylesheetParser__declarationOrBuffer_closure(t0) {
  8296. this.name = t0;
  8297. },
  8298. StylesheetParser__declarationOrBuffer_closure0: function StylesheetParser__declarationOrBuffer_closure0(t0, t1) {
  8299. this._box_0 = t0;
  8300. this.name = t1;
  8301. },
  8302. StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2) {
  8303. this._box_0 = t0;
  8304. this.$this = t1;
  8305. this.wasInStyleRule = t2;
  8306. },
  8307. StylesheetParser__propertyOrVariableDeclaration_closure: function StylesheetParser__propertyOrVariableDeclaration_closure(t0) {
  8308. this._box_0 = t0;
  8309. },
  8310. StylesheetParser__propertyOrVariableDeclaration_closure0: function StylesheetParser__propertyOrVariableDeclaration_closure0(t0, t1) {
  8311. this._box_0 = t0;
  8312. this.value = t1;
  8313. },
  8314. StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) {
  8315. this.query = t0;
  8316. },
  8317. StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() {
  8318. },
  8319. StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) {
  8320. var _ = this;
  8321. _.$this = t0;
  8322. _.wasInControlDirective = t1;
  8323. _.variables = t2;
  8324. _.list = t3;
  8325. },
  8326. StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) {
  8327. this.name = t0;
  8328. this.$arguments = t1;
  8329. this.precedingComment = t2;
  8330. },
  8331. StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) {
  8332. this._box_0 = t0;
  8333. this.$this = t1;
  8334. },
  8335. StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) {
  8336. var _ = this;
  8337. _._box_0 = t0;
  8338. _.$this = t1;
  8339. _.wasInControlDirective = t2;
  8340. _.variable = t3;
  8341. _.from = t4;
  8342. _.to = t5;
  8343. },
  8344. StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) {
  8345. this.$this = t0;
  8346. this.variables = t1;
  8347. this.identifiers = t2;
  8348. },
  8349. StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) {
  8350. this._box_0 = t0;
  8351. },
  8352. StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) {
  8353. this.query = t0;
  8354. },
  8355. StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) {
  8356. var _ = this;
  8357. _.$this = t0;
  8358. _.name = t1;
  8359. _.$arguments = t2;
  8360. _.precedingComment = t3;
  8361. },
  8362. StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) {
  8363. var _ = this;
  8364. _._box_0 = t0;
  8365. _.$this = t1;
  8366. _.name = t2;
  8367. _.value = t3;
  8368. },
  8369. StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) {
  8370. this.condition = t0;
  8371. },
  8372. StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) {
  8373. this.$this = t0;
  8374. this.wasInControlDirective = t1;
  8375. this.condition = t2;
  8376. },
  8377. StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) {
  8378. this._box_0 = t0;
  8379. this.name = t1;
  8380. },
  8381. StylesheetParser_expression_resetState: function StylesheetParser_expression_resetState(t0, t1, t2) {
  8382. this._box_0 = t0;
  8383. this.$this = t1;
  8384. this.start = t2;
  8385. },
  8386. StylesheetParser_expression_resolveOneOperation: function StylesheetParser_expression_resolveOneOperation(t0, t1) {
  8387. this._box_0 = t0;
  8388. this.$this = t1;
  8389. },
  8390. StylesheetParser_expression_resolveOperations: function StylesheetParser_expression_resolveOperations(t0, t1) {
  8391. this._box_0 = t0;
  8392. this.resolveOneOperation = t1;
  8393. },
  8394. StylesheetParser_expression_addSingleExpression: function StylesheetParser_expression_addSingleExpression(t0, t1, t2, t3) {
  8395. var _ = this;
  8396. _._box_0 = t0;
  8397. _.$this = t1;
  8398. _.resetState = t2;
  8399. _.resolveOperations = t3;
  8400. },
  8401. StylesheetParser_expression_addOperator: function StylesheetParser_expression_addOperator(t0, t1, t2) {
  8402. this._box_0 = t0;
  8403. this.$this = t1;
  8404. this.resolveOneOperation = t2;
  8405. },
  8406. StylesheetParser_expression_resolveSpaceExpressions: function StylesheetParser_expression_resolveSpaceExpressions(t0, t1) {
  8407. this._box_0 = t0;
  8408. this.resolveOperations = t1;
  8409. },
  8410. StylesheetParser__expressionUntilComma_closure: function StylesheetParser__expressionUntilComma_closure(t0) {
  8411. this.$this = t0;
  8412. },
  8413. StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() {
  8414. },
  8415. StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() {
  8416. },
  8417. StylesheetParser_identifierLike_closure: function StylesheetParser_identifierLike_closure(t0, t1) {
  8418. this.$this = t0;
  8419. this.start = t1;
  8420. },
  8421. StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) {
  8422. this.$this = t0;
  8423. },
  8424. StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) {
  8425. this.$this = t0;
  8426. this.start = t1;
  8427. },
  8428. cloneCssStylesheet: function(stylesheet, extender) {
  8429. var result = extender.clone$0(),
  8430. t1 = stylesheet.get$span(),
  8431. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  8432. return new S.Tuple2(new V._CloneCssVisitor(result.item2)._visitChildren$2(new V.ModifiableCssStylesheet(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2), stylesheet), result.item1, type$.Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender);
  8433. },
  8434. _CloneCssVisitor: function _CloneCssVisitor(t0) {
  8435. this._oldToNewSelectors = t0;
  8436. },
  8437. SourceLocation$: function(offset, column, line, sourceUrl) {
  8438. var t1 = line == null,
  8439. t2 = t1 ? 0 : line;
  8440. if (offset < 0)
  8441. H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
  8442. else if (!t1 && line < 0)
  8443. H.throwExpression(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
  8444. else if (column < 0)
  8445. H.throwExpression(P.RangeError$("Column may not be negative, was " + column + "."));
  8446. return new V.SourceLocation(sourceUrl, offset, t2, column);
  8447. },
  8448. SourceLocation: function SourceLocation(t0, t1, t2, t3) {
  8449. var _ = this;
  8450. _.sourceUrl = t0;
  8451. _.offset = t1;
  8452. _.line = t2;
  8453. _.column = t3;
  8454. },
  8455. SourceSpan: function SourceSpan() {
  8456. },
  8457. SourceSpanBase: function SourceSpanBase() {
  8458. },
  8459. AtRootQueryParser0: function AtRootQueryParser0(t0, t1) {
  8460. this.scanner = t0;
  8461. this.logger = t1;
  8462. },
  8463. AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) {
  8464. this.$this = t0;
  8465. },
  8466. AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) {
  8467. var _ = this;
  8468. _.include = t0;
  8469. _.names = t1;
  8470. _._at_root_query0$_all = t2;
  8471. _._at_root_query0$_rule = t3;
  8472. },
  8473. AtRootRule0: function AtRootRule0(t0, t1, t2, t3) {
  8474. var _ = this;
  8475. _.query = t0;
  8476. _.span = t1;
  8477. _.children = t2;
  8478. _.hasDeclarations = t3;
  8479. },
  8480. BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) {
  8481. var _ = this;
  8482. _.operator = t0;
  8483. _.left = t1;
  8484. _.right = t2;
  8485. _.allowsSlash = t3;
  8486. },
  8487. BinaryOperator0: function BinaryOperator0(t0, t1, t2) {
  8488. this.name = t0;
  8489. this.operator = t1;
  8490. this.precedence = t2;
  8491. },
  8492. cloneCssStylesheet0: function(stylesheet, extender) {
  8493. var result = extender.clone$0(),
  8494. t1 = stylesheet.get$span(),
  8495. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  8496. return new S.Tuple2(new V._CloneCssVisitor0(result.item2)._clone_css$_visitChildren$2(new V.ModifiableCssStylesheet0(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2), stylesheet), result.item1, type$.Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender_2);
  8497. },
  8498. _CloneCssVisitor0: function _CloneCssVisitor0(t0) {
  8499. this._clone_css$_oldToNewSelectors = t0;
  8500. },
  8501. EachRule0: function EachRule0(t0, t1, t2, t3, t4) {
  8502. var _ = this;
  8503. _.variables = t0;
  8504. _.list = t1;
  8505. _.span = t2;
  8506. _.children = t3;
  8507. _.hasDeclarations = t4;
  8508. },
  8509. EachRule_toString_closure0: function EachRule_toString_closure0() {
  8510. },
  8511. JSError: function JSError() {
  8512. },
  8513. IfRule0: function IfRule0(t0, t1, t2) {
  8514. this.clauses = t0;
  8515. this.lastClause = t1;
  8516. this.span = t2;
  8517. },
  8518. IfRule_toString_closure0: function IfRule_toString_closure0(t0) {
  8519. this._box_0 = t0;
  8520. },
  8521. IfClause0: function IfClause0(t0, t1, t2) {
  8522. this.expression = t0;
  8523. this.children = t1;
  8524. this.hasDeclarations = t2;
  8525. },
  8526. IfClause$__closure0: function IfClause$__closure0() {
  8527. },
  8528. IfClause$___closure0: function IfClause$___closure0() {
  8529. },
  8530. CssStylesheet0: function CssStylesheet0(t0, t1) {
  8531. this.children = t0;
  8532. this.span = t1;
  8533. },
  8534. ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) {
  8535. var _ = this;
  8536. _.span = t0;
  8537. _.children = t1;
  8538. _._node2$_children = t2;
  8539. _._node2$_indexInParent = _._node2$_parent = null;
  8540. _.isGroupEnd = false;
  8541. },
  8542. StylesheetParser0: function StylesheetParser0() {
  8543. },
  8544. StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) {
  8545. this.$this = t0;
  8546. },
  8547. StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) {
  8548. this.$this = t0;
  8549. },
  8550. StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() {
  8551. },
  8552. StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) {
  8553. this.$this = t0;
  8554. },
  8555. StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) {
  8556. this.$this = t0;
  8557. this.production = t1;
  8558. this.T = t2;
  8559. },
  8560. StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0) {
  8561. this.$this = t0;
  8562. },
  8563. StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) {
  8564. this.$this = t0;
  8565. },
  8566. StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) {
  8567. this._box_0 = t0;
  8568. this.$this = t1;
  8569. },
  8570. StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) {
  8571. this.declaration = t0;
  8572. },
  8573. StylesheetParser__declarationOrBuffer_closure1: function StylesheetParser__declarationOrBuffer_closure1(t0) {
  8574. this.name = t0;
  8575. },
  8576. StylesheetParser__declarationOrBuffer_closure2: function StylesheetParser__declarationOrBuffer_closure2(t0, t1) {
  8577. this._box_0 = t0;
  8578. this.name = t1;
  8579. },
  8580. StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2) {
  8581. this._box_0 = t0;
  8582. this.$this = t1;
  8583. this.wasInStyleRule = t2;
  8584. },
  8585. StylesheetParser__propertyOrVariableDeclaration_closure1: function StylesheetParser__propertyOrVariableDeclaration_closure1(t0) {
  8586. this._box_0 = t0;
  8587. },
  8588. StylesheetParser__propertyOrVariableDeclaration_closure2: function StylesheetParser__propertyOrVariableDeclaration_closure2(t0, t1) {
  8589. this._box_0 = t0;
  8590. this.value = t1;
  8591. },
  8592. StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) {
  8593. this.query = t0;
  8594. },
  8595. StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() {
  8596. },
  8597. StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) {
  8598. var _ = this;
  8599. _.$this = t0;
  8600. _.wasInControlDirective = t1;
  8601. _.variables = t2;
  8602. _.list = t3;
  8603. },
  8604. StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) {
  8605. this.name = t0;
  8606. this.$arguments = t1;
  8607. this.precedingComment = t2;
  8608. },
  8609. StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) {
  8610. this._box_0 = t0;
  8611. this.$this = t1;
  8612. },
  8613. StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) {
  8614. var _ = this;
  8615. _._box_0 = t0;
  8616. _.$this = t1;
  8617. _.wasInControlDirective = t2;
  8618. _.variable = t3;
  8619. _.from = t4;
  8620. _.to = t5;
  8621. },
  8622. StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) {
  8623. this.$this = t0;
  8624. this.variables = t1;
  8625. this.identifiers = t2;
  8626. },
  8627. StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) {
  8628. this._box_0 = t0;
  8629. },
  8630. StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) {
  8631. this.query = t0;
  8632. },
  8633. StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) {
  8634. var _ = this;
  8635. _.$this = t0;
  8636. _.name = t1;
  8637. _.$arguments = t2;
  8638. _.precedingComment = t3;
  8639. },
  8640. StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) {
  8641. var _ = this;
  8642. _._box_0 = t0;
  8643. _.$this = t1;
  8644. _.name = t2;
  8645. _.value = t3;
  8646. },
  8647. StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) {
  8648. this.condition = t0;
  8649. },
  8650. StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) {
  8651. this.$this = t0;
  8652. this.wasInControlDirective = t1;
  8653. this.condition = t2;
  8654. },
  8655. StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) {
  8656. this._box_0 = t0;
  8657. this.name = t1;
  8658. },
  8659. StylesheetParser_expression_resetState0: function StylesheetParser_expression_resetState0(t0, t1, t2) {
  8660. this._box_0 = t0;
  8661. this.$this = t1;
  8662. this.start = t2;
  8663. },
  8664. StylesheetParser_expression_resolveOneOperation0: function StylesheetParser_expression_resolveOneOperation0(t0, t1) {
  8665. this._box_0 = t0;
  8666. this.$this = t1;
  8667. },
  8668. StylesheetParser_expression_resolveOperations0: function StylesheetParser_expression_resolveOperations0(t0, t1) {
  8669. this._box_0 = t0;
  8670. this.resolveOneOperation = t1;
  8671. },
  8672. StylesheetParser_expression_addSingleExpression0: function StylesheetParser_expression_addSingleExpression0(t0, t1, t2, t3) {
  8673. var _ = this;
  8674. _._box_0 = t0;
  8675. _.$this = t1;
  8676. _.resetState = t2;
  8677. _.resolveOperations = t3;
  8678. },
  8679. StylesheetParser_expression_addOperator0: function StylesheetParser_expression_addOperator0(t0, t1, t2) {
  8680. this._box_0 = t0;
  8681. this.$this = t1;
  8682. this.resolveOneOperation = t2;
  8683. },
  8684. StylesheetParser_expression_resolveSpaceExpressions0: function StylesheetParser_expression_resolveSpaceExpressions0(t0, t1) {
  8685. this._box_0 = t0;
  8686. this.resolveOperations = t1;
  8687. },
  8688. StylesheetParser__expressionUntilComma_closure0: function StylesheetParser__expressionUntilComma_closure0(t0) {
  8689. this.$this = t0;
  8690. },
  8691. StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() {
  8692. },
  8693. StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() {
  8694. },
  8695. StylesheetParser_identifierLike_closure0: function StylesheetParser_identifierLike_closure0(t0, t1) {
  8696. this.$this = t0;
  8697. this.start = t1;
  8698. },
  8699. StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) {
  8700. this.$this = t0;
  8701. },
  8702. StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) {
  8703. this.$this = t0;
  8704. this.start = t1;
  8705. },
  8706. Stylesheet$0: function(children, span, plainCss) {
  8707. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_UseRule_2),
  8708. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ForwardRule_2),
  8709. t3 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  8710. t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure0());
  8711. t1 = new V.Stylesheet0(span, plainCss, t1, t2, t3, t4);
  8712. t1.Stylesheet$3$plainCss0(children, span, plainCss);
  8713. return t1;
  8714. },
  8715. Stylesheet_Stylesheet$parse0: function(contents, syntax, logger, url) {
  8716. var t1, t2;
  8717. switch (syntax) {
  8718. case C.Syntax_Sass0:
  8719. t1 = S.SpanScanner$(contents, url);
  8720. t2 = logger == null ? C.C_StderrLogger : logger;
  8721. return new U.SassParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2).parse$0();
  8722. case C.Syntax_SCSS0:
  8723. t1 = S.SpanScanner$(contents, url);
  8724. t2 = logger == null ? C.C_StderrLogger : logger;
  8725. return new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2).parse$0();
  8726. case C.Syntax_CSS0:
  8727. t1 = S.SpanScanner$(contents, url);
  8728. t2 = logger == null ? C.C_StderrLogger : logger;
  8729. return new Q.CssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2).parse$0();
  8730. default:
  8731. throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
  8732. }
  8733. },
  8734. Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) {
  8735. var _ = this;
  8736. _.span = t0;
  8737. _.plainCss = t1;
  8738. _._stylesheet1$_uses = t2;
  8739. _._stylesheet1$_forwards = t3;
  8740. _.children = t4;
  8741. _.hasDeclarations = t5;
  8742. }
  8743. },
  8744. G = {Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
  8745. var _ = this;
  8746. _.name = t0;
  8747. _.abbr = t1;
  8748. _.help = t2;
  8749. _.valueHelp = t3;
  8750. _.allowed = t4;
  8751. _.allowedHelp = t5;
  8752. _.defaultsTo = t6;
  8753. _.negatable = t7;
  8754. _.callback = t8;
  8755. _.type = t9;
  8756. _.splitCommas = t10;
  8757. _.hide = t11;
  8758. }, OptionType: function OptionType(t0) {
  8759. this.name = t0;
  8760. },
  8761. Parser$0: function(commandName, grammar, args, $parent, rest) {
  8762. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  8763. if (rest != null)
  8764. C.JSArray_methods.addAll$1(t1, rest);
  8765. return new G.Parser0(commandName, $parent, grammar, args, t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.dynamic));
  8766. },
  8767. _isLetterOrDigit: function(codeUnit) {
  8768. var t1;
  8769. if (!(codeUnit >= 65 && codeUnit <= 90))
  8770. if (!(codeUnit >= 97 && codeUnit <= 122))
  8771. t1 = codeUnit >= 48 && codeUnit <= 57;
  8772. else
  8773. t1 = true;
  8774. else
  8775. t1 = true;
  8776. return t1;
  8777. },
  8778. Parser0: function Parser0(t0, t1, t2, t3, t4, t5) {
  8779. var _ = this;
  8780. _.commandName = t0;
  8781. _.parent = t1;
  8782. _.grammar = t2;
  8783. _.args = t3;
  8784. _.rest = t4;
  8785. _.results = t5;
  8786. },
  8787. Parser_parse_closure: function Parser_parse_closure(t0) {
  8788. this.$this = t0;
  8789. },
  8790. Parser_setOption_closure: function Parser_setOption_closure() {
  8791. },
  8792. Usage: function Usage(t0, t1) {
  8793. var _ = this;
  8794. _.optionsAndSeparators = t0;
  8795. _.buffer = null;
  8796. _.currentColumn = 0;
  8797. _.columnWidths = null;
  8798. _.newlinesNeeded = _.numHelpLines = 0;
  8799. _.lineLength = t1;
  8800. },
  8801. Usage_generate_closure: function Usage_generate_closure() {
  8802. },
  8803. Usage_buildAllowedList_closure: function Usage_buildAllowedList_closure(t0) {
  8804. this.option = t0;
  8805. },
  8806. StreamQueue: function StreamQueue(t0, t1, t2, t3) {
  8807. var _ = this;
  8808. _._stream_queue$_source = t0;
  8809. _._stream_queue$_subscription = null;
  8810. _._isDone = false;
  8811. _._eventsReceived = 0;
  8812. _._eventQueue = t1;
  8813. _._requestQueue = t2;
  8814. _.$ti = t3;
  8815. },
  8816. StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) {
  8817. this.$this = t0;
  8818. },
  8819. StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) {
  8820. this.$this = t0;
  8821. },
  8822. StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) {
  8823. this.$this = t0;
  8824. },
  8825. _EventRequest: function _EventRequest() {
  8826. },
  8827. _NextRequest: function _NextRequest(t0, t1) {
  8828. this._completer = t0;
  8829. this.$ti = t1;
  8830. },
  8831. ModifiableCssMediaRule$: function(queries, span) {
  8832. var t1 = P.List_List$unmodifiable(queries, type$.legacy_CssMediaQuery),
  8833. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  8834. if (J.get$isEmpty$asx(queries))
  8835. H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
  8836. return new G.ModifiableCssMediaRule(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2);
  8837. },
  8838. ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) {
  8839. var _ = this;
  8840. _.queries = t0;
  8841. _.span = t1;
  8842. _.children = t2;
  8843. _._children = t3;
  8844. _._indexInParent = _._parent = null;
  8845. _.isGroupEnd = false;
  8846. },
  8847. MediaRule: function MediaRule(t0, t1, t2, t3) {
  8848. var _ = this;
  8849. _.query = t0;
  8850. _.span = t1;
  8851. _.children = t2;
  8852. _.hasDeclarations = t3;
  8853. },
  8854. WhileRule: function WhileRule(t0, t1, t2, t3) {
  8855. var _ = this;
  8856. _.condition = t0;
  8857. _.span = t1;
  8858. _.children = t2;
  8859. _.hasDeclarations = t3;
  8860. },
  8861. Module: function Module() {
  8862. },
  8863. Parser_isIdentifier: function(text) {
  8864. var exception, logger = null;
  8865. try {
  8866. G.Parser$(text, logger, null)._parseIdentifier$0();
  8867. return true;
  8868. } catch (exception) {
  8869. if (H.unwrapException(exception) instanceof E.SassFormatException)
  8870. return false;
  8871. else
  8872. throw exception;
  8873. }
  8874. },
  8875. Parser$: function(contents, logger, url) {
  8876. var t1 = S.SpanScanner$(contents, url);
  8877. return new G.Parser(t1, logger == null ? C.StderrLogger_false : logger);
  8878. },
  8879. Parser: function Parser(t0, t1) {
  8880. this.scanner = t0;
  8881. this.logger = t1;
  8882. },
  8883. Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) {
  8884. this.$this = t0;
  8885. },
  8886. Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) {
  8887. this.caseSensitive = t0;
  8888. this.char = t1;
  8889. },
  8890. FixedLengthListBuilder: function FixedLengthListBuilder(t0, t1) {
  8891. this._list = t0;
  8892. this._fixed_length_list_builder$_index = 0;
  8893. this.$ti = t1;
  8894. },
  8895. SourceSpanFormatException$: function(message, span, source) {
  8896. return new G.SourceSpanFormatException(source, message, span);
  8897. },
  8898. SourceSpanException: function SourceSpanException() {
  8899. },
  8900. SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) {
  8901. this.source = t0;
  8902. this._span_exception$_message = t1;
  8903. this._span = t2;
  8904. },
  8905. FixedLengthListBuilder0: function FixedLengthListBuilder0(t0, t1) {
  8906. this._fixed_length_list_builder0$_list = t0;
  8907. this._fixed_length_list_builder0$_index = 0;
  8908. this.$ti = t1;
  8909. },
  8910. ModifiableCssMediaRule$0: function(queries, span) {
  8911. var t1 = P.List_List$unmodifiable(queries, type$.legacy_CssMediaQuery_2),
  8912. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  8913. if (J.get$isEmpty$asx(queries))
  8914. H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
  8915. return new G.ModifiableCssMediaRule0(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2);
  8916. },
  8917. ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) {
  8918. var _ = this;
  8919. _.queries = t0;
  8920. _.span = t1;
  8921. _.children = t2;
  8922. _._node2$_children = t3;
  8923. _._node2$_indexInParent = _._node2$_parent = null;
  8924. _.isGroupEnd = false;
  8925. },
  8926. MediaRule0: function MediaRule0(t0, t1, t2, t3) {
  8927. var _ = this;
  8928. _.query = t0;
  8929. _.span = t1;
  8930. _.children = t2;
  8931. _.hasDeclarations = t3;
  8932. },
  8933. Module0: function Module0() {
  8934. },
  8935. Parser_isIdentifier0: function(text) {
  8936. var exception, logger = null;
  8937. try {
  8938. G.Parser$1(text, logger, null)._parser$_parseIdentifier$0();
  8939. return true;
  8940. } catch (exception) {
  8941. if (H.unwrapException(exception) instanceof E.SassFormatException0)
  8942. return false;
  8943. else
  8944. throw exception;
  8945. }
  8946. },
  8947. Parser$1: function(contents, logger, url) {
  8948. var t1 = S.SpanScanner$(contents, url);
  8949. return new G.Parser1(t1, logger == null ? C.C_StderrLogger : logger);
  8950. },
  8951. Parser1: function Parser1(t0, t1) {
  8952. this.scanner = t0;
  8953. this.logger = t1;
  8954. },
  8955. Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) {
  8956. this.$this = t0;
  8957. },
  8958. Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) {
  8959. this.caseSensitive = t0;
  8960. this.char = t1;
  8961. },
  8962. Types: function Types() {
  8963. },
  8964. WhileRule0: function WhileRule0(t0, t1, t2, t3) {
  8965. var _ = this;
  8966. _.condition = t0;
  8967. _.span = t1;
  8968. _.children = t2;
  8969. _.hasDeclarations = t3;
  8970. }
  8971. },
  8972. E = {Result: function Result() {
  8973. }, PosixStyle: function PosixStyle(t0, t1, t2) {
  8974. this.separatorPattern = t0;
  8975. this.needsSeparatorPattern = t1;
  8976. this.rootPattern = t2;
  8977. }, UserDefinedCallable: function UserDefinedCallable(t0, t1, t2) {
  8978. this.declaration = t0;
  8979. this.environment = t1;
  8980. this.$ti = t2;
  8981. },
  8982. SassException$: function(message, span) {
  8983. return new E.SassException(message, span);
  8984. },
  8985. MultiSpanSassException$: function(message, span, primaryLabel, secondarySpans) {
  8986. return new E.MultiSpanSassException(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message, span);
  8987. },
  8988. SassRuntimeException$: function(message, span, trace) {
  8989. return new E.SassRuntimeException(trace, message, span);
  8990. },
  8991. MultiSpanSassRuntimeException$: function(message, span, primaryLabel, secondarySpans, trace) {
  8992. return new E.MultiSpanSassRuntimeException(trace, primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message, span);
  8993. },
  8994. SassFormatException$: function(message, span) {
  8995. return new E.SassFormatException(message, span);
  8996. },
  8997. SassScriptException$: function(message) {
  8998. return new E.SassScriptException(message);
  8999. },
  9000. MultiSpanSassScriptException$: function(message, primaryLabel, secondarySpans) {
  9001. return new E.MultiSpanSassScriptException(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message);
  9002. },
  9003. SassException: function SassException(t0, t1) {
  9004. this._span_exception$_message = t0;
  9005. this._span = t1;
  9006. },
  9007. MultiSpanSassException: function MultiSpanSassException(t0, t1, t2, t3) {
  9008. var _ = this;
  9009. _.primaryLabel = t0;
  9010. _.secondarySpans = t1;
  9011. _._span_exception$_message = t2;
  9012. _._span = t3;
  9013. },
  9014. SassRuntimeException: function SassRuntimeException(t0, t1, t2) {
  9015. this.trace = t0;
  9016. this._span_exception$_message = t1;
  9017. this._span = t2;
  9018. },
  9019. MultiSpanSassRuntimeException: function MultiSpanSassRuntimeException(t0, t1, t2, t3, t4) {
  9020. var _ = this;
  9021. _.trace = t0;
  9022. _.primaryLabel = t1;
  9023. _.secondarySpans = t2;
  9024. _._span_exception$_message = t3;
  9025. _._span = t4;
  9026. },
  9027. SassFormatException: function SassFormatException(t0, t1) {
  9028. this._span_exception$_message = t0;
  9029. this._span = t1;
  9030. },
  9031. SassScriptException: function SassScriptException(t0) {
  9032. this.message = t0;
  9033. },
  9034. MultiSpanSassScriptException: function MultiSpanSassScriptException(t0, t1, t2) {
  9035. this.primaryLabel = t0;
  9036. this.secondarySpans = t1;
  9037. this.message = t2;
  9038. },
  9039. ImporterResult: function ImporterResult(t0, t1, t2) {
  9040. this.contents = t0;
  9041. this._sourceMapUrl = t1;
  9042. this.syntax = t2;
  9043. },
  9044. KeyframeSelectorParser: function KeyframeSelectorParser(t0, t1) {
  9045. this.scanner = t0;
  9046. this.logger = t1;
  9047. },
  9048. KeyframeSelectorParser_parse_closure: function KeyframeSelectorParser_parse_closure(t0) {
  9049. this.$this = t0;
  9050. },
  9051. _EvaluateVisitor$0: function(functions, importCache, logger, nodeImporter, sourceMap) {
  9052. var t1 = type$.legacy_String,
  9053. t2 = type$.legacy_Uri,
  9054. t3 = type$.legacy_Module_legacy_AsyncCallable,
  9055. t4 = type$.legacy_AstNode,
  9056. t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode),
  9057. t6 = logger == null ? C.StderrLogger_false : logger;
  9058. t5 = new E._EvaluateVisitor0(importCache, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AsyncCallable), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t6, sourceMap, Q.AsyncEnvironment$(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true);
  9059. t5._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap0(functions, importCache, logger, nodeImporter, sourceMap);
  9060. return t5;
  9061. },
  9062. _ArgumentResults$0: function(positional, named, separator, namedNodes, positionalNodes) {
  9063. return new E._ArgumentResults0(positional, positionalNodes, named, namedNodes, separator);
  9064. },
  9065. _EvaluateVisitor0: function _EvaluateVisitor0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  9066. var _ = this;
  9067. _._async_evaluate$_importCache = t0;
  9068. _._async_evaluate$_nodeImporter = t1;
  9069. _._async_evaluate$_builtInFunctions = t2;
  9070. _._async_evaluate$_builtInModules = t3;
  9071. _._async_evaluate$_modules = t4;
  9072. _._async_evaluate$_moduleNodes = t5;
  9073. _._async_evaluate$_logger = t6;
  9074. _._async_evaluate$_sourceMap = t7;
  9075. _._async_evaluate$_environment = t8;
  9076. _._async_evaluate$_declarationName = _._async_evaluate$_parent = _._async_evaluate$_mediaQueries = _._async_evaluate$_styleRule = null;
  9077. _._async_evaluate$_member = "root stylesheet";
  9078. _._async_evaluate$_importSpan = _._async_evaluate$_callableNode = null;
  9079. _._async_evaluate$_inKeyframes = _._async_evaluate$_atRootExcludingStyleRule = _._async_evaluate$_inUnknownAtRule = _._async_evaluate$_inFunction = false;
  9080. _._async_evaluate$_includedFiles = t9;
  9081. _._async_evaluate$_activeModules = t10;
  9082. _._async_evaluate$_stack = t11;
  9083. _._async_evaluate$_extender = _._async_evaluate$_outOfOrderImports = _._async_evaluate$_endOfImports = _._async_evaluate$_root = _._async_evaluate$_stylesheet = _._async_evaluate$_importer = null;
  9084. _._async_evaluate$_configuration = t12;
  9085. },
  9086. _EvaluateVisitor_closure9: function _EvaluateVisitor_closure9(t0) {
  9087. this.$this = t0;
  9088. },
  9089. _EvaluateVisitor_closure10: function _EvaluateVisitor_closure10(t0) {
  9090. this.$this = t0;
  9091. },
  9092. _EvaluateVisitor_closure11: function _EvaluateVisitor_closure11(t0) {
  9093. this.$this = t0;
  9094. },
  9095. _EvaluateVisitor_closure12: function _EvaluateVisitor_closure12(t0) {
  9096. this.$this = t0;
  9097. },
  9098. _EvaluateVisitor_closure13: function _EvaluateVisitor_closure13(t0) {
  9099. this.$this = t0;
  9100. },
  9101. _EvaluateVisitor_closure14: function _EvaluateVisitor_closure14(t0) {
  9102. this.$this = t0;
  9103. },
  9104. _EvaluateVisitor_closure15: function _EvaluateVisitor_closure15(t0) {
  9105. this.$this = t0;
  9106. },
  9107. _EvaluateVisitor_closure16: function _EvaluateVisitor_closure16(t0) {
  9108. this.$this = t0;
  9109. },
  9110. _EvaluateVisitor__closure4: function _EvaluateVisitor__closure4(t0, t1, t2) {
  9111. this.$this = t0;
  9112. this.name = t1;
  9113. this.module = t2;
  9114. },
  9115. _EvaluateVisitor_closure17: function _EvaluateVisitor_closure17(t0) {
  9116. this.$this = t0;
  9117. },
  9118. _EvaluateVisitor_closure18: function _EvaluateVisitor_closure18(t0) {
  9119. this.$this = t0;
  9120. },
  9121. _EvaluateVisitor__closure2: function _EvaluateVisitor__closure2(t0, t1) {
  9122. this.values = t0;
  9123. this.span = t1;
  9124. },
  9125. _EvaluateVisitor__closure3: function _EvaluateVisitor__closure3(t0) {
  9126. this.$this = t0;
  9127. },
  9128. _EvaluateVisitor_run_closure0: function _EvaluateVisitor_run_closure0(t0, t1, t2) {
  9129. this.$this = t0;
  9130. this.node = t1;
  9131. this.importer = t2;
  9132. },
  9133. _EvaluateVisitor__withWarnCallback_closure0: function _EvaluateVisitor__withWarnCallback_closure0(t0) {
  9134. this.$this = t0;
  9135. },
  9136. _EvaluateVisitor__loadModule_closure1: function _EvaluateVisitor__loadModule_closure1(t0, t1) {
  9137. this.callback = t0;
  9138. this.builtInModule = t1;
  9139. },
  9140. _EvaluateVisitor__loadModule_closure2: function _EvaluateVisitor__loadModule_closure2(t0, t1, t2, t3, t4, t5, t6) {
  9141. var _ = this;
  9142. _.$this = t0;
  9143. _.url = t1;
  9144. _.nodeWithSpan = t2;
  9145. _.baseUrl = t3;
  9146. _.namesInErrors = t4;
  9147. _.configuration = t5;
  9148. _.callback = t6;
  9149. },
  9150. _EvaluateVisitor__execute_closure0: function _EvaluateVisitor__execute_closure0(t0, t1, t2, t3, t4, t5) {
  9151. var _ = this;
  9152. _._box_0 = t0;
  9153. _.$this = t1;
  9154. _.importer = t2;
  9155. _.stylesheet = t3;
  9156. _.extender = t4;
  9157. _.configuration = t5;
  9158. },
  9159. _EvaluateVisitor__combineCss_closure2: function _EvaluateVisitor__combineCss_closure2() {
  9160. },
  9161. _EvaluateVisitor__combineCss_closure3: function _EvaluateVisitor__combineCss_closure3(t0) {
  9162. this.selectors = t0;
  9163. },
  9164. _EvaluateVisitor__combineCss_closure4: function _EvaluateVisitor__combineCss_closure4() {
  9165. },
  9166. _EvaluateVisitor__extendModules_closure1: function _EvaluateVisitor__extendModules_closure1(t0) {
  9167. this.originalSelectors = t0;
  9168. },
  9169. _EvaluateVisitor__extendModules_closure2: function _EvaluateVisitor__extendModules_closure2() {
  9170. },
  9171. _EvaluateVisitor__topologicalModules_visitModule0: function _EvaluateVisitor__topologicalModules_visitModule0(t0, t1) {
  9172. this.seen = t0;
  9173. this.sorted = t1;
  9174. },
  9175. _EvaluateVisitor_visitAtRootRule_closure2: function _EvaluateVisitor_visitAtRootRule_closure2(t0, t1) {
  9176. this.$this = t0;
  9177. this.resolved = t1;
  9178. },
  9179. _EvaluateVisitor_visitAtRootRule_closure3: function _EvaluateVisitor_visitAtRootRule_closure3(t0, t1) {
  9180. this.$this = t0;
  9181. this.node = t1;
  9182. },
  9183. _EvaluateVisitor_visitAtRootRule_closure4: function _EvaluateVisitor_visitAtRootRule_closure4(t0, t1) {
  9184. this.$this = t0;
  9185. this.node = t1;
  9186. },
  9187. _EvaluateVisitor__scopeForAtRoot_closure5: function _EvaluateVisitor__scopeForAtRoot_closure5(t0, t1, t2) {
  9188. this.$this = t0;
  9189. this.newParent = t1;
  9190. this.node = t2;
  9191. },
  9192. _EvaluateVisitor__scopeForAtRoot_closure6: function _EvaluateVisitor__scopeForAtRoot_closure6(t0, t1) {
  9193. this.$this = t0;
  9194. this.innerScope = t1;
  9195. },
  9196. _EvaluateVisitor__scopeForAtRoot_closure7: function _EvaluateVisitor__scopeForAtRoot_closure7(t0, t1) {
  9197. this.$this = t0;
  9198. this.innerScope = t1;
  9199. },
  9200. _EvaluateVisitor__scopeForAtRoot__closure0: function _EvaluateVisitor__scopeForAtRoot__closure0(t0, t1) {
  9201. this.innerScope = t0;
  9202. this.callback = t1;
  9203. },
  9204. _EvaluateVisitor__scopeForAtRoot_closure8: function _EvaluateVisitor__scopeForAtRoot_closure8(t0, t1) {
  9205. this.$this = t0;
  9206. this.innerScope = t1;
  9207. },
  9208. _EvaluateVisitor__scopeForAtRoot_closure9: function _EvaluateVisitor__scopeForAtRoot_closure9() {
  9209. },
  9210. _EvaluateVisitor__scopeForAtRoot_closure10: function _EvaluateVisitor__scopeForAtRoot_closure10(t0, t1) {
  9211. this.$this = t0;
  9212. this.innerScope = t1;
  9213. },
  9214. _EvaluateVisitor_visitContentRule_closure0: function _EvaluateVisitor_visitContentRule_closure0(t0, t1) {
  9215. this.$this = t0;
  9216. this.content = t1;
  9217. },
  9218. _EvaluateVisitor_visitDeclaration_closure0: function _EvaluateVisitor_visitDeclaration_closure0(t0, t1) {
  9219. this.$this = t0;
  9220. this.node = t1;
  9221. },
  9222. _EvaluateVisitor_visitEachRule_closure2: function _EvaluateVisitor_visitEachRule_closure2(t0, t1, t2) {
  9223. this.$this = t0;
  9224. this.node = t1;
  9225. this.nodeWithSpan = t2;
  9226. },
  9227. _EvaluateVisitor_visitEachRule_closure3: function _EvaluateVisitor_visitEachRule_closure3(t0, t1, t2) {
  9228. this.$this = t0;
  9229. this.node = t1;
  9230. this.nodeWithSpan = t2;
  9231. },
  9232. _EvaluateVisitor_visitEachRule_closure4: function _EvaluateVisitor_visitEachRule_closure4(t0, t1, t2, t3) {
  9233. var _ = this;
  9234. _.$this = t0;
  9235. _.list = t1;
  9236. _.setVariables = t2;
  9237. _.node = t3;
  9238. },
  9239. _EvaluateVisitor_visitEachRule__closure0: function _EvaluateVisitor_visitEachRule__closure0(t0, t1, t2) {
  9240. this.$this = t0;
  9241. this.setVariables = t1;
  9242. this.node = t2;
  9243. },
  9244. _EvaluateVisitor_visitEachRule___closure0: function _EvaluateVisitor_visitEachRule___closure0(t0) {
  9245. this.$this = t0;
  9246. },
  9247. _EvaluateVisitor_visitExtendRule_closure0: function _EvaluateVisitor_visitExtendRule_closure0(t0, t1) {
  9248. this.$this = t0;
  9249. this.targetText = t1;
  9250. },
  9251. _EvaluateVisitor_visitAtRule_closure1: function _EvaluateVisitor_visitAtRule_closure1(t0, t1) {
  9252. this.$this = t0;
  9253. this.node = t1;
  9254. },
  9255. _EvaluateVisitor_visitAtRule__closure0: function _EvaluateVisitor_visitAtRule__closure0(t0, t1) {
  9256. this.$this = t0;
  9257. this.node = t1;
  9258. },
  9259. _EvaluateVisitor_visitAtRule_closure2: function _EvaluateVisitor_visitAtRule_closure2() {
  9260. },
  9261. _EvaluateVisitor_visitForRule_closure4: function _EvaluateVisitor_visitForRule_closure4(t0, t1) {
  9262. this.$this = t0;
  9263. this.node = t1;
  9264. },
  9265. _EvaluateVisitor_visitForRule_closure5: function _EvaluateVisitor_visitForRule_closure5(t0, t1) {
  9266. this.$this = t0;
  9267. this.node = t1;
  9268. },
  9269. _EvaluateVisitor_visitForRule_closure6: function _EvaluateVisitor_visitForRule_closure6(t0, t1) {
  9270. this.fromNumber = t0;
  9271. this.toNumber = t1;
  9272. },
  9273. _EvaluateVisitor_visitForRule_closure7: function _EvaluateVisitor_visitForRule_closure7(t0) {
  9274. this.toNumber = t0;
  9275. },
  9276. _EvaluateVisitor_visitForRule_closure8: function _EvaluateVisitor_visitForRule_closure8(t0, t1, t2, t3, t4) {
  9277. var _ = this;
  9278. _._box_0 = t0;
  9279. _.$this = t1;
  9280. _.node = t2;
  9281. _.from = t3;
  9282. _.direction = t4;
  9283. },
  9284. _EvaluateVisitor_visitForRule__closure0: function _EvaluateVisitor_visitForRule__closure0(t0) {
  9285. this.$this = t0;
  9286. },
  9287. _EvaluateVisitor_visitForwardRule_closure1: function _EvaluateVisitor_visitForwardRule_closure1(t0, t1) {
  9288. this.$this = t0;
  9289. this.node = t1;
  9290. },
  9291. _EvaluateVisitor_visitForwardRule_closure2: function _EvaluateVisitor_visitForwardRule_closure2(t0, t1) {
  9292. this.$this = t0;
  9293. this.node = t1;
  9294. },
  9295. _EvaluateVisitor__assertConfigurationIsEmpty_closure0: function _EvaluateVisitor__assertConfigurationIsEmpty_closure0(t0, t1, t2) {
  9296. this.$this = t0;
  9297. this.only = t1;
  9298. this.nameInError = t2;
  9299. },
  9300. _EvaluateVisitor_visitIfRule_closure0: function _EvaluateVisitor_visitIfRule_closure0(t0, t1) {
  9301. this._box_0 = t0;
  9302. this.$this = t1;
  9303. },
  9304. _EvaluateVisitor_visitIfRule__closure0: function _EvaluateVisitor_visitIfRule__closure0(t0) {
  9305. this.$this = t0;
  9306. },
  9307. _EvaluateVisitor__visitDynamicImport_closure0: function _EvaluateVisitor__visitDynamicImport_closure0(t0, t1) {
  9308. this.$this = t0;
  9309. this.$import = t1;
  9310. },
  9311. _EvaluateVisitor__visitDynamicImport__closure0: function _EvaluateVisitor__visitDynamicImport__closure0(t0, t1, t2, t3, t4) {
  9312. var _ = this;
  9313. _._box_0 = t0;
  9314. _.$this = t1;
  9315. _.importer = t2;
  9316. _.stylesheet = t3;
  9317. _.environment = t4;
  9318. },
  9319. _EvaluateVisitor_visitIncludeRule_closure2: function _EvaluateVisitor_visitIncludeRule_closure2(t0, t1) {
  9320. this.$this = t0;
  9321. this.node = t1;
  9322. },
  9323. _EvaluateVisitor_visitIncludeRule_closure3: function _EvaluateVisitor_visitIncludeRule_closure3(t0) {
  9324. this.node = t0;
  9325. },
  9326. _EvaluateVisitor_visitIncludeRule_closure4: function _EvaluateVisitor_visitIncludeRule_closure4(t0, t1, t2, t3) {
  9327. var _ = this;
  9328. _.$this = t0;
  9329. _.contentCallable = t1;
  9330. _.mixin = t2;
  9331. _.nodeWithSpan = t3;
  9332. },
  9333. _EvaluateVisitor_visitIncludeRule__closure0: function _EvaluateVisitor_visitIncludeRule__closure0(t0, t1, t2) {
  9334. this.$this = t0;
  9335. this.mixin = t1;
  9336. this.nodeWithSpan = t2;
  9337. },
  9338. _EvaluateVisitor_visitIncludeRule___closure0: function _EvaluateVisitor_visitIncludeRule___closure0(t0, t1, t2) {
  9339. this.$this = t0;
  9340. this.mixin = t1;
  9341. this.nodeWithSpan = t2;
  9342. },
  9343. _EvaluateVisitor_visitIncludeRule____closure0: function _EvaluateVisitor_visitIncludeRule____closure0(t0, t1) {
  9344. this.$this = t0;
  9345. this.statement = t1;
  9346. },
  9347. _EvaluateVisitor_visitMediaRule_closure1: function _EvaluateVisitor_visitMediaRule_closure1(t0, t1, t2, t3) {
  9348. var _ = this;
  9349. _.$this = t0;
  9350. _.mergedQueries = t1;
  9351. _.queries = t2;
  9352. _.node = t3;
  9353. },
  9354. _EvaluateVisitor_visitMediaRule__closure0: function _EvaluateVisitor_visitMediaRule__closure0(t0, t1) {
  9355. this.$this = t0;
  9356. this.node = t1;
  9357. },
  9358. _EvaluateVisitor_visitMediaRule___closure0: function _EvaluateVisitor_visitMediaRule___closure0(t0, t1) {
  9359. this.$this = t0;
  9360. this.node = t1;
  9361. },
  9362. _EvaluateVisitor_visitMediaRule_closure2: function _EvaluateVisitor_visitMediaRule_closure2(t0) {
  9363. this.mergedQueries = t0;
  9364. },
  9365. _EvaluateVisitor__visitMediaQueries_closure0: function _EvaluateVisitor__visitMediaQueries_closure0(t0, t1) {
  9366. this.$this = t0;
  9367. this.resolved = t1;
  9368. },
  9369. _EvaluateVisitor_visitStyleRule_closure6: function _EvaluateVisitor_visitStyleRule_closure6(t0, t1) {
  9370. this.$this = t0;
  9371. this.selectorText = t1;
  9372. },
  9373. _EvaluateVisitor_visitStyleRule_closure7: function _EvaluateVisitor_visitStyleRule_closure7(t0, t1) {
  9374. this.$this = t0;
  9375. this.node = t1;
  9376. },
  9377. _EvaluateVisitor_visitStyleRule_closure8: function _EvaluateVisitor_visitStyleRule_closure8() {
  9378. },
  9379. _EvaluateVisitor_visitStyleRule_closure9: function _EvaluateVisitor_visitStyleRule_closure9(t0, t1) {
  9380. this.$this = t0;
  9381. this.selectorText = t1;
  9382. },
  9383. _EvaluateVisitor_visitStyleRule_closure10: function _EvaluateVisitor_visitStyleRule_closure10(t0, t1) {
  9384. this._box_0 = t0;
  9385. this.$this = t1;
  9386. },
  9387. _EvaluateVisitor_visitStyleRule_closure11: function _EvaluateVisitor_visitStyleRule_closure11(t0, t1, t2) {
  9388. this.$this = t0;
  9389. this.rule = t1;
  9390. this.node = t2;
  9391. },
  9392. _EvaluateVisitor_visitStyleRule__closure0: function _EvaluateVisitor_visitStyleRule__closure0(t0, t1) {
  9393. this.$this = t0;
  9394. this.node = t1;
  9395. },
  9396. _EvaluateVisitor_visitStyleRule_closure12: function _EvaluateVisitor_visitStyleRule_closure12() {
  9397. },
  9398. _EvaluateVisitor_visitSupportsRule_closure1: function _EvaluateVisitor_visitSupportsRule_closure1(t0, t1) {
  9399. this.$this = t0;
  9400. this.node = t1;
  9401. },
  9402. _EvaluateVisitor_visitSupportsRule__closure0: function _EvaluateVisitor_visitSupportsRule__closure0(t0, t1) {
  9403. this.$this = t0;
  9404. this.node = t1;
  9405. },
  9406. _EvaluateVisitor_visitSupportsRule_closure2: function _EvaluateVisitor_visitSupportsRule_closure2() {
  9407. },
  9408. _EvaluateVisitor_visitVariableDeclaration_closure2: function _EvaluateVisitor_visitVariableDeclaration_closure2(t0, t1, t2) {
  9409. this.$this = t0;
  9410. this.node = t1;
  9411. this.override = t2;
  9412. },
  9413. _EvaluateVisitor_visitVariableDeclaration_closure3: function _EvaluateVisitor_visitVariableDeclaration_closure3(t0, t1) {
  9414. this.$this = t0;
  9415. this.node = t1;
  9416. },
  9417. _EvaluateVisitor_visitVariableDeclaration_closure4: function _EvaluateVisitor_visitVariableDeclaration_closure4(t0, t1, t2) {
  9418. this.$this = t0;
  9419. this.node = t1;
  9420. this.value = t2;
  9421. },
  9422. _EvaluateVisitor_visitUseRule_closure0: function _EvaluateVisitor_visitUseRule_closure0(t0, t1) {
  9423. this.$this = t0;
  9424. this.node = t1;
  9425. },
  9426. _EvaluateVisitor_visitWarnRule_closure0: function _EvaluateVisitor_visitWarnRule_closure0(t0, t1) {
  9427. this.$this = t0;
  9428. this.node = t1;
  9429. },
  9430. _EvaluateVisitor_visitWhileRule_closure0: function _EvaluateVisitor_visitWhileRule_closure0(t0, t1) {
  9431. this.$this = t0;
  9432. this.node = t1;
  9433. },
  9434. _EvaluateVisitor_visitWhileRule__closure0: function _EvaluateVisitor_visitWhileRule__closure0(t0) {
  9435. this.$this = t0;
  9436. },
  9437. _EvaluateVisitor_visitBinaryOperationExpression_closure0: function _EvaluateVisitor_visitBinaryOperationExpression_closure0(t0, t1) {
  9438. this.$this = t0;
  9439. this.node = t1;
  9440. },
  9441. _EvaluateVisitor_visitVariableExpression_closure0: function _EvaluateVisitor_visitVariableExpression_closure0(t0, t1) {
  9442. this.$this = t0;
  9443. this.node = t1;
  9444. },
  9445. _EvaluateVisitor_visitListExpression_closure0: function _EvaluateVisitor_visitListExpression_closure0(t0) {
  9446. this.$this = t0;
  9447. },
  9448. _EvaluateVisitor_visitFunctionExpression_closure1: function _EvaluateVisitor_visitFunctionExpression_closure1(t0, t1, t2) {
  9449. this.$this = t0;
  9450. this.node = t1;
  9451. this.plainName = t2;
  9452. },
  9453. _EvaluateVisitor_visitFunctionExpression_closure2: function _EvaluateVisitor_visitFunctionExpression_closure2(t0, t1, t2) {
  9454. this._box_0 = t0;
  9455. this.$this = t1;
  9456. this.node = t2;
  9457. },
  9458. _EvaluateVisitor__runUserDefinedCallable_closure0: function _EvaluateVisitor__runUserDefinedCallable_closure0(t0, t1, t2, t3, t4) {
  9459. var _ = this;
  9460. _.$this = t0;
  9461. _.callable = t1;
  9462. _.evaluated = t2;
  9463. _.nodeWithSpan = t3;
  9464. _.run = t4;
  9465. },
  9466. _EvaluateVisitor__runUserDefinedCallable__closure0: function _EvaluateVisitor__runUserDefinedCallable__closure0(t0, t1, t2, t3, t4) {
  9467. var _ = this;
  9468. _.$this = t0;
  9469. _.evaluated = t1;
  9470. _.callable = t2;
  9471. _.nodeWithSpan = t3;
  9472. _.run = t4;
  9473. },
  9474. _EvaluateVisitor__runUserDefinedCallable___closure0: function _EvaluateVisitor__runUserDefinedCallable___closure0(t0, t1, t2, t3, t4) {
  9475. var _ = this;
  9476. _.$this = t0;
  9477. _.evaluated = t1;
  9478. _.callable = t2;
  9479. _.nodeWithSpan = t3;
  9480. _.run = t4;
  9481. },
  9482. _EvaluateVisitor__runUserDefinedCallable____closure0: function _EvaluateVisitor__runUserDefinedCallable____closure0() {
  9483. },
  9484. _EvaluateVisitor__runFunctionCallable_closure0: function _EvaluateVisitor__runFunctionCallable_closure0(t0, t1) {
  9485. this.$this = t0;
  9486. this.callable = t1;
  9487. },
  9488. _EvaluateVisitor__runBuiltInCallable_closure1: function _EvaluateVisitor__runBuiltInCallable_closure1(t0, t1, t2) {
  9489. this.overload = t0;
  9490. this.evaluated = t1;
  9491. this.namedSet = t2;
  9492. },
  9493. _EvaluateVisitor__runBuiltInCallable_closure2: function _EvaluateVisitor__runBuiltInCallable_closure2() {
  9494. },
  9495. _EvaluateVisitor__evaluateArguments_closure0: function _EvaluateVisitor__evaluateArguments_closure0(t0, t1, t2) {
  9496. this.named = t0;
  9497. this.namedNodes = t1;
  9498. this.restNodeForSpan = t2;
  9499. },
  9500. _EvaluateVisitor__evaluateMacroArguments_closure3: function _EvaluateVisitor__evaluateMacroArguments_closure3() {
  9501. },
  9502. _EvaluateVisitor__evaluateMacroArguments_closure4: function _EvaluateVisitor__evaluateMacroArguments_closure4() {
  9503. },
  9504. _EvaluateVisitor__evaluateMacroArguments_closure5: function _EvaluateVisitor__evaluateMacroArguments_closure5(t0) {
  9505. this.named = t0;
  9506. },
  9507. _EvaluateVisitor__evaluateMacroArguments_closure6: function _EvaluateVisitor__evaluateMacroArguments_closure6() {
  9508. },
  9509. _EvaluateVisitor__addRestMap_closure1: function _EvaluateVisitor__addRestMap_closure1(t0) {
  9510. this.T = t0;
  9511. },
  9512. _EvaluateVisitor__addRestMap_closure2: function _EvaluateVisitor__addRestMap_closure2(t0, t1, t2, t3, t4) {
  9513. var _ = this;
  9514. _._box_0 = t0;
  9515. _.$this = t1;
  9516. _.values = t2;
  9517. _.map = t3;
  9518. _.nodeWithSpan = t4;
  9519. },
  9520. _EvaluateVisitor__verifyArguments_closure0: function _EvaluateVisitor__verifyArguments_closure0(t0, t1, t2) {
  9521. this.$arguments = t0;
  9522. this.positional = t1;
  9523. this.named = t2;
  9524. },
  9525. _EvaluateVisitor_visitStringExpression_closure0: function _EvaluateVisitor_visitStringExpression_closure0(t0) {
  9526. this.$this = t0;
  9527. },
  9528. _EvaluateVisitor_visitCssAtRule_closure1: function _EvaluateVisitor_visitCssAtRule_closure1(t0, t1) {
  9529. this.$this = t0;
  9530. this.node = t1;
  9531. },
  9532. _EvaluateVisitor_visitCssAtRule_closure2: function _EvaluateVisitor_visitCssAtRule_closure2() {
  9533. },
  9534. _EvaluateVisitor_visitCssKeyframeBlock_closure1: function _EvaluateVisitor_visitCssKeyframeBlock_closure1(t0, t1) {
  9535. this.$this = t0;
  9536. this.node = t1;
  9537. },
  9538. _EvaluateVisitor_visitCssKeyframeBlock_closure2: function _EvaluateVisitor_visitCssKeyframeBlock_closure2() {
  9539. },
  9540. _EvaluateVisitor_visitCssMediaRule_closure1: function _EvaluateVisitor_visitCssMediaRule_closure1(t0, t1, t2) {
  9541. this.$this = t0;
  9542. this.mergedQueries = t1;
  9543. this.node = t2;
  9544. },
  9545. _EvaluateVisitor_visitCssMediaRule__closure0: function _EvaluateVisitor_visitCssMediaRule__closure0(t0, t1) {
  9546. this.$this = t0;
  9547. this.node = t1;
  9548. },
  9549. _EvaluateVisitor_visitCssMediaRule___closure0: function _EvaluateVisitor_visitCssMediaRule___closure0(t0, t1) {
  9550. this.$this = t0;
  9551. this.node = t1;
  9552. },
  9553. _EvaluateVisitor_visitCssMediaRule_closure2: function _EvaluateVisitor_visitCssMediaRule_closure2(t0) {
  9554. this.mergedQueries = t0;
  9555. },
  9556. _EvaluateVisitor_visitCssStyleRule_closure1: function _EvaluateVisitor_visitCssStyleRule_closure1(t0, t1, t2) {
  9557. this.$this = t0;
  9558. this.rule = t1;
  9559. this.node = t2;
  9560. },
  9561. _EvaluateVisitor_visitCssStyleRule__closure0: function _EvaluateVisitor_visitCssStyleRule__closure0(t0, t1) {
  9562. this.$this = t0;
  9563. this.node = t1;
  9564. },
  9565. _EvaluateVisitor_visitCssStyleRule_closure2: function _EvaluateVisitor_visitCssStyleRule_closure2() {
  9566. },
  9567. _EvaluateVisitor_visitCssSupportsRule_closure1: function _EvaluateVisitor_visitCssSupportsRule_closure1(t0, t1) {
  9568. this.$this = t0;
  9569. this.node = t1;
  9570. },
  9571. _EvaluateVisitor_visitCssSupportsRule__closure0: function _EvaluateVisitor_visitCssSupportsRule__closure0(t0, t1) {
  9572. this.$this = t0;
  9573. this.node = t1;
  9574. },
  9575. _EvaluateVisitor_visitCssSupportsRule_closure2: function _EvaluateVisitor_visitCssSupportsRule_closure2() {
  9576. },
  9577. _EvaluateVisitor__performInterpolation_closure0: function _EvaluateVisitor__performInterpolation_closure0(t0, t1) {
  9578. this.$this = t0;
  9579. this.warnForColor = t1;
  9580. },
  9581. _EvaluateVisitor__serialize_closure0: function _EvaluateVisitor__serialize_closure0(t0, t1) {
  9582. this.value = t0;
  9583. this.quote = t1;
  9584. },
  9585. _EvaluateVisitor__stackTrace_closure0: function _EvaluateVisitor__stackTrace_closure0(t0) {
  9586. this.$this = t0;
  9587. },
  9588. _ImportedCssVisitor0: function _ImportedCssVisitor0(t0) {
  9589. this._async_evaluate$_visitor = t0;
  9590. },
  9591. _ImportedCssVisitor_visitCssAtRule_closure0: function _ImportedCssVisitor_visitCssAtRule_closure0() {
  9592. },
  9593. _ImportedCssVisitor_visitCssMediaRule_closure0: function _ImportedCssVisitor_visitCssMediaRule_closure0(t0) {
  9594. this.hasBeenMerged = t0;
  9595. },
  9596. _ImportedCssVisitor_visitCssStyleRule_closure0: function _ImportedCssVisitor_visitCssStyleRule_closure0() {
  9597. },
  9598. _ImportedCssVisitor_visitCssSupportsRule_closure0: function _ImportedCssVisitor_visitCssSupportsRule_closure0() {
  9599. },
  9600. EvaluateResult: function EvaluateResult(t0) {
  9601. this.stylesheet = t0;
  9602. },
  9603. _ArgumentResults0: function _ArgumentResults0(t0, t1, t2, t3, t4) {
  9604. var _ = this;
  9605. _.positional = t0;
  9606. _.positionalNodes = t1;
  9607. _.named = t2;
  9608. _.namedNodes = t3;
  9609. _.separator = t4;
  9610. },
  9611. StringScannerException$: function(message, span, source) {
  9612. return new E.StringScannerException(source, message, span);
  9613. },
  9614. StringScannerException: function StringScannerException(t0, t1, t2) {
  9615. this.source = t0;
  9616. this._span_exception$_message = t1;
  9617. this._span = t2;
  9618. },
  9619. WatchEvent: function WatchEvent(t0, t1) {
  9620. this.type = t0;
  9621. this.path = t1;
  9622. },
  9623. ChangeType: function ChangeType(t0) {
  9624. this._watch_event$_name = t0;
  9625. },
  9626. _EvaluateVisitor$2: function(functions, importCache, logger, nodeImporter, sourceMap) {
  9627. var t6,
  9628. t1 = type$.legacy_String,
  9629. t2 = type$.legacy_Uri,
  9630. t3 = type$.legacy_Module_legacy_AsyncCallable_2,
  9631. t4 = type$.legacy_AstNode_2,
  9632. t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode_2);
  9633. if (nodeImporter == null)
  9634. t6 = importCache == null ? O.AsyncImportCache$none(logger) : importCache;
  9635. else
  9636. t6 = null;
  9637. t1 = new E._EvaluateVisitor2(t6, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AsyncCallable_2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), C.C_StderrLogger, sourceMap, Q.AsyncEnvironment$0(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true0);
  9638. t1._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap2(functions, importCache, logger, nodeImporter, sourceMap);
  9639. return t1;
  9640. },
  9641. _ArgumentResults$2: function(positional, named, separator, namedNodes, positionalNodes) {
  9642. return new E._ArgumentResults2(positional, positionalNodes, named, namedNodes, separator);
  9643. },
  9644. _EvaluateVisitor2: function _EvaluateVisitor2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  9645. var _ = this;
  9646. _._async_evaluate0$_importCache = t0;
  9647. _._async_evaluate0$_nodeImporter = t1;
  9648. _._async_evaluate0$_builtInFunctions = t2;
  9649. _._async_evaluate0$_builtInModules = t3;
  9650. _._async_evaluate0$_modules = t4;
  9651. _._async_evaluate0$_moduleNodes = t5;
  9652. _._async_evaluate0$_logger = t6;
  9653. _._async_evaluate0$_sourceMap = t7;
  9654. _._async_evaluate0$_environment = t8;
  9655. _._async_evaluate0$_declarationName = _._async_evaluate0$_parent = _._async_evaluate0$_mediaQueries = _._async_evaluate0$_styleRule = null;
  9656. _._async_evaluate0$_member = "root stylesheet";
  9657. _._async_evaluate0$_importSpan = _._async_evaluate0$_callableNode = null;
  9658. _._async_evaluate0$_inKeyframes = _._async_evaluate0$_atRootExcludingStyleRule = _._async_evaluate0$_inUnknownAtRule = _._async_evaluate0$_inFunction = false;
  9659. _._async_evaluate0$_includedFiles = t9;
  9660. _._async_evaluate0$_activeModules = t10;
  9661. _._async_evaluate0$_stack = t11;
  9662. _._async_evaluate0$_extender = _._async_evaluate0$_outOfOrderImports = _._async_evaluate0$_endOfImports = _._async_evaluate0$_root = _._async_evaluate0$_stylesheet = _._async_evaluate0$_importer = null;
  9663. _._async_evaluate0$_configuration = t12;
  9664. },
  9665. _EvaluateVisitor_closure29: function _EvaluateVisitor_closure29(t0) {
  9666. this.$this = t0;
  9667. },
  9668. _EvaluateVisitor_closure30: function _EvaluateVisitor_closure30(t0) {
  9669. this.$this = t0;
  9670. },
  9671. _EvaluateVisitor_closure31: function _EvaluateVisitor_closure31(t0) {
  9672. this.$this = t0;
  9673. },
  9674. _EvaluateVisitor_closure32: function _EvaluateVisitor_closure32(t0) {
  9675. this.$this = t0;
  9676. },
  9677. _EvaluateVisitor_closure33: function _EvaluateVisitor_closure33(t0) {
  9678. this.$this = t0;
  9679. },
  9680. _EvaluateVisitor_closure34: function _EvaluateVisitor_closure34(t0) {
  9681. this.$this = t0;
  9682. },
  9683. _EvaluateVisitor_closure35: function _EvaluateVisitor_closure35(t0) {
  9684. this.$this = t0;
  9685. },
  9686. _EvaluateVisitor_closure36: function _EvaluateVisitor_closure36(t0) {
  9687. this.$this = t0;
  9688. },
  9689. _EvaluateVisitor__closure10: function _EvaluateVisitor__closure10(t0, t1, t2) {
  9690. this.$this = t0;
  9691. this.name = t1;
  9692. this.module = t2;
  9693. },
  9694. _EvaluateVisitor_closure37: function _EvaluateVisitor_closure37(t0) {
  9695. this.$this = t0;
  9696. },
  9697. _EvaluateVisitor_closure38: function _EvaluateVisitor_closure38(t0) {
  9698. this.$this = t0;
  9699. },
  9700. _EvaluateVisitor__closure8: function _EvaluateVisitor__closure8(t0, t1) {
  9701. this.values = t0;
  9702. this.span = t1;
  9703. },
  9704. _EvaluateVisitor__closure9: function _EvaluateVisitor__closure9(t0) {
  9705. this.$this = t0;
  9706. },
  9707. _EvaluateVisitor_run_closure2: function _EvaluateVisitor_run_closure2(t0, t1, t2) {
  9708. this.$this = t0;
  9709. this.node = t1;
  9710. this.importer = t2;
  9711. },
  9712. _EvaluateVisitor__withWarnCallback_closure2: function _EvaluateVisitor__withWarnCallback_closure2(t0) {
  9713. this.$this = t0;
  9714. },
  9715. _EvaluateVisitor__loadModule_closure5: function _EvaluateVisitor__loadModule_closure5(t0, t1) {
  9716. this.callback = t0;
  9717. this.builtInModule = t1;
  9718. },
  9719. _EvaluateVisitor__loadModule_closure6: function _EvaluateVisitor__loadModule_closure6(t0, t1, t2, t3, t4, t5, t6) {
  9720. var _ = this;
  9721. _.$this = t0;
  9722. _.url = t1;
  9723. _.nodeWithSpan = t2;
  9724. _.baseUrl = t3;
  9725. _.namesInErrors = t4;
  9726. _.configuration = t5;
  9727. _.callback = t6;
  9728. },
  9729. _EvaluateVisitor__execute_closure2: function _EvaluateVisitor__execute_closure2(t0, t1, t2, t3, t4, t5) {
  9730. var _ = this;
  9731. _._box_0 = t0;
  9732. _.$this = t1;
  9733. _.importer = t2;
  9734. _.stylesheet = t3;
  9735. _.extender = t4;
  9736. _.configuration = t5;
  9737. },
  9738. _EvaluateVisitor__combineCss_closure8: function _EvaluateVisitor__combineCss_closure8() {
  9739. },
  9740. _EvaluateVisitor__combineCss_closure9: function _EvaluateVisitor__combineCss_closure9(t0) {
  9741. this.selectors = t0;
  9742. },
  9743. _EvaluateVisitor__combineCss_closure10: function _EvaluateVisitor__combineCss_closure10() {
  9744. },
  9745. _EvaluateVisitor__extendModules_closure5: function _EvaluateVisitor__extendModules_closure5(t0) {
  9746. this.originalSelectors = t0;
  9747. },
  9748. _EvaluateVisitor__extendModules_closure6: function _EvaluateVisitor__extendModules_closure6() {
  9749. },
  9750. _EvaluateVisitor__topologicalModules_visitModule2: function _EvaluateVisitor__topologicalModules_visitModule2(t0, t1) {
  9751. this.seen = t0;
  9752. this.sorted = t1;
  9753. },
  9754. _EvaluateVisitor_visitAtRootRule_closure8: function _EvaluateVisitor_visitAtRootRule_closure8(t0, t1) {
  9755. this.$this = t0;
  9756. this.resolved = t1;
  9757. },
  9758. _EvaluateVisitor_visitAtRootRule_closure9: function _EvaluateVisitor_visitAtRootRule_closure9(t0, t1) {
  9759. this.$this = t0;
  9760. this.node = t1;
  9761. },
  9762. _EvaluateVisitor_visitAtRootRule_closure10: function _EvaluateVisitor_visitAtRootRule_closure10(t0, t1) {
  9763. this.$this = t0;
  9764. this.node = t1;
  9765. },
  9766. _EvaluateVisitor__scopeForAtRoot_closure17: function _EvaluateVisitor__scopeForAtRoot_closure17(t0, t1, t2) {
  9767. this.$this = t0;
  9768. this.newParent = t1;
  9769. this.node = t2;
  9770. },
  9771. _EvaluateVisitor__scopeForAtRoot_closure18: function _EvaluateVisitor__scopeForAtRoot_closure18(t0, t1) {
  9772. this.$this = t0;
  9773. this.innerScope = t1;
  9774. },
  9775. _EvaluateVisitor__scopeForAtRoot_closure19: function _EvaluateVisitor__scopeForAtRoot_closure19(t0, t1) {
  9776. this.$this = t0;
  9777. this.innerScope = t1;
  9778. },
  9779. _EvaluateVisitor__scopeForAtRoot__closure2: function _EvaluateVisitor__scopeForAtRoot__closure2(t0, t1) {
  9780. this.innerScope = t0;
  9781. this.callback = t1;
  9782. },
  9783. _EvaluateVisitor__scopeForAtRoot_closure20: function _EvaluateVisitor__scopeForAtRoot_closure20(t0, t1) {
  9784. this.$this = t0;
  9785. this.innerScope = t1;
  9786. },
  9787. _EvaluateVisitor__scopeForAtRoot_closure21: function _EvaluateVisitor__scopeForAtRoot_closure21() {
  9788. },
  9789. _EvaluateVisitor__scopeForAtRoot_closure22: function _EvaluateVisitor__scopeForAtRoot_closure22(t0, t1) {
  9790. this.$this = t0;
  9791. this.innerScope = t1;
  9792. },
  9793. _EvaluateVisitor_visitContentRule_closure2: function _EvaluateVisitor_visitContentRule_closure2(t0, t1) {
  9794. this.$this = t0;
  9795. this.content = t1;
  9796. },
  9797. _EvaluateVisitor_visitDeclaration_closure2: function _EvaluateVisitor_visitDeclaration_closure2(t0, t1) {
  9798. this.$this = t0;
  9799. this.node = t1;
  9800. },
  9801. _EvaluateVisitor_visitEachRule_closure8: function _EvaluateVisitor_visitEachRule_closure8(t0, t1, t2) {
  9802. this.$this = t0;
  9803. this.node = t1;
  9804. this.nodeWithSpan = t2;
  9805. },
  9806. _EvaluateVisitor_visitEachRule_closure9: function _EvaluateVisitor_visitEachRule_closure9(t0, t1, t2) {
  9807. this.$this = t0;
  9808. this.node = t1;
  9809. this.nodeWithSpan = t2;
  9810. },
  9811. _EvaluateVisitor_visitEachRule_closure10: function _EvaluateVisitor_visitEachRule_closure10(t0, t1, t2, t3) {
  9812. var _ = this;
  9813. _.$this = t0;
  9814. _.list = t1;
  9815. _.setVariables = t2;
  9816. _.node = t3;
  9817. },
  9818. _EvaluateVisitor_visitEachRule__closure2: function _EvaluateVisitor_visitEachRule__closure2(t0, t1, t2) {
  9819. this.$this = t0;
  9820. this.setVariables = t1;
  9821. this.node = t2;
  9822. },
  9823. _EvaluateVisitor_visitEachRule___closure2: function _EvaluateVisitor_visitEachRule___closure2(t0) {
  9824. this.$this = t0;
  9825. },
  9826. _EvaluateVisitor_visitExtendRule_closure2: function _EvaluateVisitor_visitExtendRule_closure2(t0, t1) {
  9827. this.$this = t0;
  9828. this.targetText = t1;
  9829. },
  9830. _EvaluateVisitor_visitAtRule_closure5: function _EvaluateVisitor_visitAtRule_closure5(t0, t1) {
  9831. this.$this = t0;
  9832. this.node = t1;
  9833. },
  9834. _EvaluateVisitor_visitAtRule__closure2: function _EvaluateVisitor_visitAtRule__closure2(t0, t1) {
  9835. this.$this = t0;
  9836. this.node = t1;
  9837. },
  9838. _EvaluateVisitor_visitAtRule_closure6: function _EvaluateVisitor_visitAtRule_closure6() {
  9839. },
  9840. _EvaluateVisitor_visitForRule_closure14: function _EvaluateVisitor_visitForRule_closure14(t0, t1) {
  9841. this.$this = t0;
  9842. this.node = t1;
  9843. },
  9844. _EvaluateVisitor_visitForRule_closure15: function _EvaluateVisitor_visitForRule_closure15(t0, t1) {
  9845. this.$this = t0;
  9846. this.node = t1;
  9847. },
  9848. _EvaluateVisitor_visitForRule_closure16: function _EvaluateVisitor_visitForRule_closure16(t0, t1) {
  9849. this.fromNumber = t0;
  9850. this.toNumber = t1;
  9851. },
  9852. _EvaluateVisitor_visitForRule_closure17: function _EvaluateVisitor_visitForRule_closure17(t0) {
  9853. this.toNumber = t0;
  9854. },
  9855. _EvaluateVisitor_visitForRule_closure18: function _EvaluateVisitor_visitForRule_closure18(t0, t1, t2, t3, t4) {
  9856. var _ = this;
  9857. _._box_0 = t0;
  9858. _.$this = t1;
  9859. _.node = t2;
  9860. _.from = t3;
  9861. _.direction = t4;
  9862. },
  9863. _EvaluateVisitor_visitForRule__closure2: function _EvaluateVisitor_visitForRule__closure2(t0) {
  9864. this.$this = t0;
  9865. },
  9866. _EvaluateVisitor_visitForwardRule_closure5: function _EvaluateVisitor_visitForwardRule_closure5(t0, t1) {
  9867. this.$this = t0;
  9868. this.node = t1;
  9869. },
  9870. _EvaluateVisitor_visitForwardRule_closure6: function _EvaluateVisitor_visitForwardRule_closure6(t0, t1) {
  9871. this.$this = t0;
  9872. this.node = t1;
  9873. },
  9874. _EvaluateVisitor__assertConfigurationIsEmpty_closure2: function _EvaluateVisitor__assertConfigurationIsEmpty_closure2(t0, t1, t2) {
  9875. this.$this = t0;
  9876. this.only = t1;
  9877. this.nameInError = t2;
  9878. },
  9879. _EvaluateVisitor_visitIfRule_closure2: function _EvaluateVisitor_visitIfRule_closure2(t0, t1) {
  9880. this._box_0 = t0;
  9881. this.$this = t1;
  9882. },
  9883. _EvaluateVisitor_visitIfRule__closure2: function _EvaluateVisitor_visitIfRule__closure2(t0) {
  9884. this.$this = t0;
  9885. },
  9886. _EvaluateVisitor__visitDynamicImport_closure2: function _EvaluateVisitor__visitDynamicImport_closure2(t0, t1) {
  9887. this.$this = t0;
  9888. this.$import = t1;
  9889. },
  9890. _EvaluateVisitor__visitDynamicImport__closure2: function _EvaluateVisitor__visitDynamicImport__closure2(t0, t1, t2, t3, t4) {
  9891. var _ = this;
  9892. _._box_0 = t0;
  9893. _.$this = t1;
  9894. _.importer = t2;
  9895. _.stylesheet = t3;
  9896. _.environment = t4;
  9897. },
  9898. _EvaluateVisitor_visitIncludeRule_closure8: function _EvaluateVisitor_visitIncludeRule_closure8(t0, t1) {
  9899. this.$this = t0;
  9900. this.node = t1;
  9901. },
  9902. _EvaluateVisitor_visitIncludeRule_closure9: function _EvaluateVisitor_visitIncludeRule_closure9(t0) {
  9903. this.node = t0;
  9904. },
  9905. _EvaluateVisitor_visitIncludeRule_closure10: function _EvaluateVisitor_visitIncludeRule_closure10(t0, t1, t2, t3) {
  9906. var _ = this;
  9907. _.$this = t0;
  9908. _.contentCallable = t1;
  9909. _.mixin = t2;
  9910. _.nodeWithSpan = t3;
  9911. },
  9912. _EvaluateVisitor_visitIncludeRule__closure2: function _EvaluateVisitor_visitIncludeRule__closure2(t0, t1, t2) {
  9913. this.$this = t0;
  9914. this.mixin = t1;
  9915. this.nodeWithSpan = t2;
  9916. },
  9917. _EvaluateVisitor_visitIncludeRule___closure2: function _EvaluateVisitor_visitIncludeRule___closure2(t0, t1, t2) {
  9918. this.$this = t0;
  9919. this.mixin = t1;
  9920. this.nodeWithSpan = t2;
  9921. },
  9922. _EvaluateVisitor_visitIncludeRule____closure2: function _EvaluateVisitor_visitIncludeRule____closure2(t0, t1) {
  9923. this.$this = t0;
  9924. this.statement = t1;
  9925. },
  9926. _EvaluateVisitor_visitMediaRule_closure5: function _EvaluateVisitor_visitMediaRule_closure5(t0, t1, t2, t3) {
  9927. var _ = this;
  9928. _.$this = t0;
  9929. _.mergedQueries = t1;
  9930. _.queries = t2;
  9931. _.node = t3;
  9932. },
  9933. _EvaluateVisitor_visitMediaRule__closure2: function _EvaluateVisitor_visitMediaRule__closure2(t0, t1) {
  9934. this.$this = t0;
  9935. this.node = t1;
  9936. },
  9937. _EvaluateVisitor_visitMediaRule___closure2: function _EvaluateVisitor_visitMediaRule___closure2(t0, t1) {
  9938. this.$this = t0;
  9939. this.node = t1;
  9940. },
  9941. _EvaluateVisitor_visitMediaRule_closure6: function _EvaluateVisitor_visitMediaRule_closure6(t0) {
  9942. this.mergedQueries = t0;
  9943. },
  9944. _EvaluateVisitor__visitMediaQueries_closure2: function _EvaluateVisitor__visitMediaQueries_closure2(t0, t1) {
  9945. this.$this = t0;
  9946. this.resolved = t1;
  9947. },
  9948. _EvaluateVisitor_visitStyleRule_closure20: function _EvaluateVisitor_visitStyleRule_closure20(t0, t1) {
  9949. this.$this = t0;
  9950. this.selectorText = t1;
  9951. },
  9952. _EvaluateVisitor_visitStyleRule_closure21: function _EvaluateVisitor_visitStyleRule_closure21(t0, t1) {
  9953. this.$this = t0;
  9954. this.node = t1;
  9955. },
  9956. _EvaluateVisitor_visitStyleRule_closure22: function _EvaluateVisitor_visitStyleRule_closure22() {
  9957. },
  9958. _EvaluateVisitor_visitStyleRule_closure23: function _EvaluateVisitor_visitStyleRule_closure23(t0, t1) {
  9959. this.$this = t0;
  9960. this.selectorText = t1;
  9961. },
  9962. _EvaluateVisitor_visitStyleRule_closure24: function _EvaluateVisitor_visitStyleRule_closure24(t0, t1) {
  9963. this._box_0 = t0;
  9964. this.$this = t1;
  9965. },
  9966. _EvaluateVisitor_visitStyleRule_closure25: function _EvaluateVisitor_visitStyleRule_closure25(t0, t1, t2) {
  9967. this.$this = t0;
  9968. this.rule = t1;
  9969. this.node = t2;
  9970. },
  9971. _EvaluateVisitor_visitStyleRule__closure2: function _EvaluateVisitor_visitStyleRule__closure2(t0, t1) {
  9972. this.$this = t0;
  9973. this.node = t1;
  9974. },
  9975. _EvaluateVisitor_visitStyleRule_closure26: function _EvaluateVisitor_visitStyleRule_closure26() {
  9976. },
  9977. _EvaluateVisitor_visitSupportsRule_closure5: function _EvaluateVisitor_visitSupportsRule_closure5(t0, t1) {
  9978. this.$this = t0;
  9979. this.node = t1;
  9980. },
  9981. _EvaluateVisitor_visitSupportsRule__closure2: function _EvaluateVisitor_visitSupportsRule__closure2(t0, t1) {
  9982. this.$this = t0;
  9983. this.node = t1;
  9984. },
  9985. _EvaluateVisitor_visitSupportsRule_closure6: function _EvaluateVisitor_visitSupportsRule_closure6() {
  9986. },
  9987. _EvaluateVisitor_visitVariableDeclaration_closure8: function _EvaluateVisitor_visitVariableDeclaration_closure8(t0, t1, t2) {
  9988. this.$this = t0;
  9989. this.node = t1;
  9990. this.override = t2;
  9991. },
  9992. _EvaluateVisitor_visitVariableDeclaration_closure9: function _EvaluateVisitor_visitVariableDeclaration_closure9(t0, t1) {
  9993. this.$this = t0;
  9994. this.node = t1;
  9995. },
  9996. _EvaluateVisitor_visitVariableDeclaration_closure10: function _EvaluateVisitor_visitVariableDeclaration_closure10(t0, t1, t2) {
  9997. this.$this = t0;
  9998. this.node = t1;
  9999. this.value = t2;
  10000. },
  10001. _EvaluateVisitor_visitUseRule_closure2: function _EvaluateVisitor_visitUseRule_closure2(t0, t1) {
  10002. this.$this = t0;
  10003. this.node = t1;
  10004. },
  10005. _EvaluateVisitor_visitWarnRule_closure2: function _EvaluateVisitor_visitWarnRule_closure2(t0, t1) {
  10006. this.$this = t0;
  10007. this.node = t1;
  10008. },
  10009. _EvaluateVisitor_visitWhileRule_closure2: function _EvaluateVisitor_visitWhileRule_closure2(t0, t1) {
  10010. this.$this = t0;
  10011. this.node = t1;
  10012. },
  10013. _EvaluateVisitor_visitWhileRule__closure2: function _EvaluateVisitor_visitWhileRule__closure2(t0) {
  10014. this.$this = t0;
  10015. },
  10016. _EvaluateVisitor_visitBinaryOperationExpression_closure2: function _EvaluateVisitor_visitBinaryOperationExpression_closure2(t0, t1) {
  10017. this.$this = t0;
  10018. this.node = t1;
  10019. },
  10020. _EvaluateVisitor_visitVariableExpression_closure2: function _EvaluateVisitor_visitVariableExpression_closure2(t0, t1) {
  10021. this.$this = t0;
  10022. this.node = t1;
  10023. },
  10024. _EvaluateVisitor_visitListExpression_closure2: function _EvaluateVisitor_visitListExpression_closure2(t0) {
  10025. this.$this = t0;
  10026. },
  10027. _EvaluateVisitor_visitFunctionExpression_closure5: function _EvaluateVisitor_visitFunctionExpression_closure5(t0, t1, t2) {
  10028. this.$this = t0;
  10029. this.node = t1;
  10030. this.plainName = t2;
  10031. },
  10032. _EvaluateVisitor_visitFunctionExpression_closure6: function _EvaluateVisitor_visitFunctionExpression_closure6(t0, t1, t2) {
  10033. this._box_0 = t0;
  10034. this.$this = t1;
  10035. this.node = t2;
  10036. },
  10037. _EvaluateVisitor__runUserDefinedCallable_closure2: function _EvaluateVisitor__runUserDefinedCallable_closure2(t0, t1, t2, t3, t4) {
  10038. var _ = this;
  10039. _.$this = t0;
  10040. _.callable = t1;
  10041. _.evaluated = t2;
  10042. _.nodeWithSpan = t3;
  10043. _.run = t4;
  10044. },
  10045. _EvaluateVisitor__runUserDefinedCallable__closure2: function _EvaluateVisitor__runUserDefinedCallable__closure2(t0, t1, t2, t3, t4) {
  10046. var _ = this;
  10047. _.$this = t0;
  10048. _.evaluated = t1;
  10049. _.callable = t2;
  10050. _.nodeWithSpan = t3;
  10051. _.run = t4;
  10052. },
  10053. _EvaluateVisitor__runUserDefinedCallable___closure2: function _EvaluateVisitor__runUserDefinedCallable___closure2(t0, t1, t2, t3, t4) {
  10054. var _ = this;
  10055. _.$this = t0;
  10056. _.evaluated = t1;
  10057. _.callable = t2;
  10058. _.nodeWithSpan = t3;
  10059. _.run = t4;
  10060. },
  10061. _EvaluateVisitor__runUserDefinedCallable____closure2: function _EvaluateVisitor__runUserDefinedCallable____closure2() {
  10062. },
  10063. _EvaluateVisitor__runFunctionCallable_closure2: function _EvaluateVisitor__runFunctionCallable_closure2(t0, t1) {
  10064. this.$this = t0;
  10065. this.callable = t1;
  10066. },
  10067. _EvaluateVisitor__runBuiltInCallable_closure5: function _EvaluateVisitor__runBuiltInCallable_closure5(t0, t1, t2) {
  10068. this.overload = t0;
  10069. this.evaluated = t1;
  10070. this.namedSet = t2;
  10071. },
  10072. _EvaluateVisitor__runBuiltInCallable_closure6: function _EvaluateVisitor__runBuiltInCallable_closure6() {
  10073. },
  10074. _EvaluateVisitor__evaluateArguments_closure2: function _EvaluateVisitor__evaluateArguments_closure2(t0, t1, t2) {
  10075. this.named = t0;
  10076. this.namedNodes = t1;
  10077. this.restNodeForSpan = t2;
  10078. },
  10079. _EvaluateVisitor__evaluateMacroArguments_closure11: function _EvaluateVisitor__evaluateMacroArguments_closure11() {
  10080. },
  10081. _EvaluateVisitor__evaluateMacroArguments_closure12: function _EvaluateVisitor__evaluateMacroArguments_closure12() {
  10082. },
  10083. _EvaluateVisitor__evaluateMacroArguments_closure13: function _EvaluateVisitor__evaluateMacroArguments_closure13(t0) {
  10084. this.named = t0;
  10085. },
  10086. _EvaluateVisitor__evaluateMacroArguments_closure14: function _EvaluateVisitor__evaluateMacroArguments_closure14() {
  10087. },
  10088. _EvaluateVisitor__addRestMap_closure5: function _EvaluateVisitor__addRestMap_closure5(t0) {
  10089. this.T = t0;
  10090. },
  10091. _EvaluateVisitor__addRestMap_closure6: function _EvaluateVisitor__addRestMap_closure6(t0, t1, t2, t3, t4) {
  10092. var _ = this;
  10093. _._box_0 = t0;
  10094. _.$this = t1;
  10095. _.values = t2;
  10096. _.map = t3;
  10097. _.nodeWithSpan = t4;
  10098. },
  10099. _EvaluateVisitor__verifyArguments_closure2: function _EvaluateVisitor__verifyArguments_closure2(t0, t1, t2) {
  10100. this.$arguments = t0;
  10101. this.positional = t1;
  10102. this.named = t2;
  10103. },
  10104. _EvaluateVisitor_visitStringExpression_closure2: function _EvaluateVisitor_visitStringExpression_closure2(t0) {
  10105. this.$this = t0;
  10106. },
  10107. _EvaluateVisitor_visitCssAtRule_closure5: function _EvaluateVisitor_visitCssAtRule_closure5(t0, t1) {
  10108. this.$this = t0;
  10109. this.node = t1;
  10110. },
  10111. _EvaluateVisitor_visitCssAtRule_closure6: function _EvaluateVisitor_visitCssAtRule_closure6() {
  10112. },
  10113. _EvaluateVisitor_visitCssKeyframeBlock_closure5: function _EvaluateVisitor_visitCssKeyframeBlock_closure5(t0, t1) {
  10114. this.$this = t0;
  10115. this.node = t1;
  10116. },
  10117. _EvaluateVisitor_visitCssKeyframeBlock_closure6: function _EvaluateVisitor_visitCssKeyframeBlock_closure6() {
  10118. },
  10119. _EvaluateVisitor_visitCssMediaRule_closure5: function _EvaluateVisitor_visitCssMediaRule_closure5(t0, t1, t2) {
  10120. this.$this = t0;
  10121. this.mergedQueries = t1;
  10122. this.node = t2;
  10123. },
  10124. _EvaluateVisitor_visitCssMediaRule__closure2: function _EvaluateVisitor_visitCssMediaRule__closure2(t0, t1) {
  10125. this.$this = t0;
  10126. this.node = t1;
  10127. },
  10128. _EvaluateVisitor_visitCssMediaRule___closure2: function _EvaluateVisitor_visitCssMediaRule___closure2(t0, t1) {
  10129. this.$this = t0;
  10130. this.node = t1;
  10131. },
  10132. _EvaluateVisitor_visitCssMediaRule_closure6: function _EvaluateVisitor_visitCssMediaRule_closure6(t0) {
  10133. this.mergedQueries = t0;
  10134. },
  10135. _EvaluateVisitor_visitCssStyleRule_closure5: function _EvaluateVisitor_visitCssStyleRule_closure5(t0, t1, t2) {
  10136. this.$this = t0;
  10137. this.rule = t1;
  10138. this.node = t2;
  10139. },
  10140. _EvaluateVisitor_visitCssStyleRule__closure2: function _EvaluateVisitor_visitCssStyleRule__closure2(t0, t1) {
  10141. this.$this = t0;
  10142. this.node = t1;
  10143. },
  10144. _EvaluateVisitor_visitCssStyleRule_closure6: function _EvaluateVisitor_visitCssStyleRule_closure6() {
  10145. },
  10146. _EvaluateVisitor_visitCssSupportsRule_closure5: function _EvaluateVisitor_visitCssSupportsRule_closure5(t0, t1) {
  10147. this.$this = t0;
  10148. this.node = t1;
  10149. },
  10150. _EvaluateVisitor_visitCssSupportsRule__closure2: function _EvaluateVisitor_visitCssSupportsRule__closure2(t0, t1) {
  10151. this.$this = t0;
  10152. this.node = t1;
  10153. },
  10154. _EvaluateVisitor_visitCssSupportsRule_closure6: function _EvaluateVisitor_visitCssSupportsRule_closure6() {
  10155. },
  10156. _EvaluateVisitor__performInterpolation_closure2: function _EvaluateVisitor__performInterpolation_closure2(t0, t1) {
  10157. this.$this = t0;
  10158. this.warnForColor = t1;
  10159. },
  10160. _EvaluateVisitor__serialize_closure2: function _EvaluateVisitor__serialize_closure2(t0, t1) {
  10161. this.value = t0;
  10162. this.quote = t1;
  10163. },
  10164. _EvaluateVisitor__stackTrace_closure2: function _EvaluateVisitor__stackTrace_closure2(t0) {
  10165. this.$this = t0;
  10166. },
  10167. _ImportedCssVisitor2: function _ImportedCssVisitor2(t0) {
  10168. this._async_evaluate0$_visitor = t0;
  10169. },
  10170. _ImportedCssVisitor_visitCssAtRule_closure2: function _ImportedCssVisitor_visitCssAtRule_closure2() {
  10171. },
  10172. _ImportedCssVisitor_visitCssMediaRule_closure2: function _ImportedCssVisitor_visitCssMediaRule_closure2(t0) {
  10173. this.hasBeenMerged = t0;
  10174. },
  10175. _ImportedCssVisitor_visitCssStyleRule_closure2: function _ImportedCssVisitor_visitCssStyleRule_closure2() {
  10176. },
  10177. _ImportedCssVisitor_visitCssSupportsRule_closure2: function _ImportedCssVisitor_visitCssSupportsRule_closure2() {
  10178. },
  10179. EvaluateResult0: function EvaluateResult0(t0, t1) {
  10180. this.stylesheet = t0;
  10181. this.includedFiles = t1;
  10182. },
  10183. _ArgumentResults2: function _ArgumentResults2(t0, t1, t2, t3, t4) {
  10184. var _ = this;
  10185. _.positional = t0;
  10186. _.positionalNodes = t1;
  10187. _.named = t2;
  10188. _.namedNodes = t3;
  10189. _.separator = t4;
  10190. },
  10191. SassException$0: function(message, span) {
  10192. return new E.SassException0(message, span);
  10193. },
  10194. MultiSpanSassException$0: function(message, span, primaryLabel, secondarySpans) {
  10195. return new E.MultiSpanSassException0(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message, span);
  10196. },
  10197. SassRuntimeException$0: function(message, span, trace) {
  10198. return new E.SassRuntimeException0(trace, message, span);
  10199. },
  10200. MultiSpanSassRuntimeException$0: function(message, span, primaryLabel, secondarySpans, trace) {
  10201. return new E.MultiSpanSassRuntimeException0(trace, primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message, span);
  10202. },
  10203. SassFormatException$0: function(message, span) {
  10204. return new E.SassFormatException0(message, span);
  10205. },
  10206. SassScriptException$0: function(message) {
  10207. return new E.SassScriptException0(message);
  10208. },
  10209. MultiSpanSassScriptException$0: function(message, primaryLabel, secondarySpans) {
  10210. return new E.MultiSpanSassScriptException0(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message);
  10211. },
  10212. SassException0: function SassException0(t0, t1) {
  10213. this._span_exception$_message = t0;
  10214. this._span = t1;
  10215. },
  10216. MultiSpanSassException0: function MultiSpanSassException0(t0, t1, t2, t3) {
  10217. var _ = this;
  10218. _.primaryLabel = t0;
  10219. _.secondarySpans = t1;
  10220. _._span_exception$_message = t2;
  10221. _._span = t3;
  10222. },
  10223. SassRuntimeException0: function SassRuntimeException0(t0, t1, t2) {
  10224. this.trace = t0;
  10225. this._span_exception$_message = t1;
  10226. this._span = t2;
  10227. },
  10228. MultiSpanSassRuntimeException0: function MultiSpanSassRuntimeException0(t0, t1, t2, t3, t4) {
  10229. var _ = this;
  10230. _.trace = t0;
  10231. _.primaryLabel = t1;
  10232. _.secondarySpans = t2;
  10233. _._span_exception$_message = t3;
  10234. _._span = t4;
  10235. },
  10236. SassFormatException0: function SassFormatException0(t0, t1) {
  10237. this._span_exception$_message = t0;
  10238. this._span = t1;
  10239. },
  10240. SassScriptException0: function SassScriptException0(t0) {
  10241. this.message = t0;
  10242. },
  10243. MultiSpanSassScriptException0: function MultiSpanSassScriptException0(t0, t1, t2) {
  10244. this.primaryLabel = t0;
  10245. this.secondarySpans = t1;
  10246. this.message = t2;
  10247. },
  10248. FiberClass: function FiberClass() {
  10249. },
  10250. Fiber: function Fiber() {
  10251. },
  10252. KeyframeSelectorParser0: function KeyframeSelectorParser0(t0, t1) {
  10253. this.scanner = t0;
  10254. this.logger = t1;
  10255. },
  10256. KeyframeSelectorParser_parse_closure0: function KeyframeSelectorParser_parse_closure0(t0) {
  10257. this.$this = t0;
  10258. },
  10259. ImporterResult0: function ImporterResult0(t0, t1, t2) {
  10260. this.contents = t0;
  10261. this._result$_sourceMapUrl = t1;
  10262. this.syntax = t2;
  10263. },
  10264. UserDefinedCallable0: function UserDefinedCallable0(t0, t1, t2) {
  10265. this.declaration = t0;
  10266. this.environment = t1;
  10267. this.$ti = t2;
  10268. }
  10269. },
  10270. F = {ValueResult: function ValueResult(t0, t1) {
  10271. this.value = t0;
  10272. this.$ti = t1;
  10273. }, UrlStyle: function UrlStyle(t0, t1, t2, t3) {
  10274. var _ = this;
  10275. _.separatorPattern = t0;
  10276. _.needsSeparatorPattern = t1;
  10277. _.rootPattern = t2;
  10278. _.relativeRootPattern = t3;
  10279. },
  10280. CssMediaQuery$: function(type, features, modifier) {
  10281. return new F.CssMediaQuery(modifier, type, features == null ? C.List_empty : P.List_List$unmodifiable(features, type$.legacy_String));
  10282. },
  10283. CssMediaQuery: function CssMediaQuery(t0, t1, t2) {
  10284. this.modifier = t0;
  10285. this.type = t1;
  10286. this.features = t2;
  10287. },
  10288. _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) {
  10289. this._media_query$_name = t0;
  10290. },
  10291. MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) {
  10292. this.query = t0;
  10293. },
  10294. ModifiableCssImport$: function(url, span, media, supports) {
  10295. return new F.ModifiableCssImport(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.legacy_CssMediaQuery), span);
  10296. },
  10297. ModifiableCssImport: function ModifiableCssImport(t0, t1, t2, t3) {
  10298. var _ = this;
  10299. _.url = t0;
  10300. _.supports = t1;
  10301. _.media = t2;
  10302. _.span = t3;
  10303. _._indexInParent = _._parent = null;
  10304. _.isGroupEnd = false;
  10305. },
  10306. ModifiableCssValue: function ModifiableCssValue(t0, t1, t2) {
  10307. this.value = t0;
  10308. this.span = t1;
  10309. this.$ti = t2;
  10310. },
  10311. CssValue: function CssValue(t0, t1, t2) {
  10312. this.value = t0;
  10313. this.span = t1;
  10314. this.$ti = t2;
  10315. },
  10316. FunctionExpression: function FunctionExpression(t0, t1, t2, t3) {
  10317. var _ = this;
  10318. _.namespace = t0;
  10319. _.name = t1;
  10320. _.$arguments = t2;
  10321. _.span = t3;
  10322. },
  10323. ValueExpression: function ValueExpression(t0, t1) {
  10324. this.value = t0;
  10325. this.span = t1;
  10326. },
  10327. Import: function Import() {
  10328. },
  10329. TypeSelector: function TypeSelector(t0) {
  10330. this.name = t0;
  10331. },
  10332. Extender__extendOrReplace: function(selector, source, targets, mode) {
  10333. var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
  10334. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
  10335. for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  10336. complex = t2[_i];
  10337. if (complex._maxSpecificity == null)
  10338. complex._computeSpecificity$0();
  10339. t4 = complex._maxSpecificity;
  10340. t1.$indexSet(0, complex, new S.Extension(complex, _null, t4, true, false, _null, _null, _null));
  10341. }
  10342. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CompoundSelector);
  10343. for (t3 = targets.components, t4 = t3.length, t5 = type$.legacy_CompoundSelector, _i = 0; _i < t4; ++_i) {
  10344. complex = t3[_i];
  10345. t6 = complex.components;
  10346. if (t6.length !== 1)
  10347. t2.push(H.throwExpression(E.SassScriptException$("Can't extend complex selector " + H.S(complex) + ".")));
  10348. else
  10349. t2.push(t5._as(C.JSArray_methods.get$first(t6)));
  10350. }
  10351. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension);
  10352. for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  10353. for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
  10354. t3.$indexSet(0, t5[_i0], t1);
  10355. extender = F.Extender$_mode(mode);
  10356. if (!selector.get$isInvisible())
  10357. extender._originals.addAll$1(0, selector.components);
  10358. return extender._extendList$3(selector, t3, _null);
  10359. },
  10360. Extender$_mode: function(_mode) {
  10361. var t1 = type$.legacy_SimpleSelector;
  10362. return new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList, type$.legacy_List_legacy_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector), _mode);
  10363. },
  10364. Extender: function Extender(t0, t1, t2, t3, t4, t5, t6) {
  10365. var _ = this;
  10366. _._selectors = t0;
  10367. _._extensions = t1;
  10368. _._extensionsByExtender = t2;
  10369. _._mediaContexts = t3;
  10370. _._sourceSpecificity = t4;
  10371. _._originals = t5;
  10372. _._mode = t6;
  10373. },
  10374. Extender_extensionsWhereTarget_closure: function Extender_extensionsWhereTarget_closure() {
  10375. },
  10376. Extender__registerSelector_closure: function Extender__registerSelector_closure() {
  10377. },
  10378. Extender_addExtension_closure: function Extender_addExtension_closure() {
  10379. },
  10380. Extender_addExtension_closure0: function Extender_addExtension_closure0() {
  10381. },
  10382. Extender_addExtension_closure1: function Extender_addExtension_closure1(t0) {
  10383. this.complex = t0;
  10384. },
  10385. Extender__extendExistingExtensions_closure: function Extender__extendExistingExtensions_closure() {
  10386. },
  10387. Extender__extendExistingExtensions_closure0: function Extender__extendExistingExtensions_closure0() {
  10388. },
  10389. Extender_addExtensions_closure: function Extender_addExtensions_closure(t0, t1, t2) {
  10390. this._box_0 = t0;
  10391. this.$this = t1;
  10392. this.extender = t2;
  10393. },
  10394. Extender_addExtensions__closure: function Extender_addExtensions__closure(t0, t1, t2, t3, t4) {
  10395. var _ = this;
  10396. _._box_0 = t0;
  10397. _.existingSources = t1;
  10398. _.extensionsForTarget = t2;
  10399. _.selectorsForTarget = t3;
  10400. _.target = t4;
  10401. },
  10402. Extender_addExtensions___closure: function Extender_addExtensions___closure() {
  10403. },
  10404. Extender_addExtensions___closure0: function Extender_addExtensions___closure0(t0) {
  10405. this.extension = t0;
  10406. },
  10407. Extender__extendList_closure: function Extender__extendList_closure() {
  10408. },
  10409. Extender__extendComplex_closure: function Extender__extendComplex_closure(t0) {
  10410. this.complex = t0;
  10411. },
  10412. Extender__extendComplex_closure0: function Extender__extendComplex_closure0(t0, t1, t2) {
  10413. this._box_0 = t0;
  10414. this.$this = t1;
  10415. this.complex = t2;
  10416. },
  10417. Extender__extendComplex__closure: function Extender__extendComplex__closure() {
  10418. },
  10419. Extender__extendComplex__closure0: function Extender__extendComplex__closure0(t0, t1, t2, t3) {
  10420. var _ = this;
  10421. _._box_0 = t0;
  10422. _.$this = t1;
  10423. _.complex = t2;
  10424. _.path = t3;
  10425. },
  10426. Extender__extendComplex___closure: function Extender__extendComplex___closure() {
  10427. },
  10428. Extender__extendCompound_closure: function Extender__extendCompound_closure(t0) {
  10429. this.mediaQueryContext = t0;
  10430. },
  10431. Extender__extendCompound_closure0: function Extender__extendCompound_closure0(t0, t1) {
  10432. this._box_1 = t0;
  10433. this.mediaQueryContext = t1;
  10434. },
  10435. Extender__extendCompound__closure: function Extender__extendCompound__closure() {
  10436. },
  10437. Extender__extendCompound__closure0: function Extender__extendCompound__closure0(t0) {
  10438. this._box_0 = t0;
  10439. },
  10440. Extender__extendCompound_closure1: function Extender__extendCompound_closure1() {
  10441. },
  10442. Extender__extendCompound_closure2: function Extender__extendCompound_closure2() {
  10443. },
  10444. Extender__extendSimple_withoutPseudo: function Extender__extendSimple_withoutPseudo(t0, t1, t2) {
  10445. this.$this = t0;
  10446. this.extensions = t1;
  10447. this.targetsUsed = t2;
  10448. },
  10449. Extender__extendSimple_closure: function Extender__extendSimple_closure(t0, t1) {
  10450. this.$this = t0;
  10451. this.withoutPseudo = t1;
  10452. },
  10453. Extender__extendPseudo_closure: function Extender__extendPseudo_closure() {
  10454. },
  10455. Extender__extendPseudo_closure0: function Extender__extendPseudo_closure0() {
  10456. },
  10457. Extender__extendPseudo_closure1: function Extender__extendPseudo_closure1() {
  10458. },
  10459. Extender__extendPseudo_closure2: function Extender__extendPseudo_closure2(t0) {
  10460. this.pseudo = t0;
  10461. },
  10462. Extender__extendPseudo_closure3: function Extender__extendPseudo_closure3(t0) {
  10463. this.pseudo = t0;
  10464. },
  10465. Extender__trim_closure: function Extender__trim_closure(t0, t1) {
  10466. this._box_0 = t0;
  10467. this.complex1 = t1;
  10468. },
  10469. Extender__trim_closure0: function Extender__trim_closure0(t0, t1) {
  10470. this._box_0 = t0;
  10471. this.complex1 = t1;
  10472. },
  10473. Extender_clone_closure: function Extender_clone_closure(t0, t1, t2, t3) {
  10474. var _ = this;
  10475. _.$this = t0;
  10476. _.newSelectors = t1;
  10477. _.oldToNewSelectors = t2;
  10478. _.newMediaContexts = t3;
  10479. },
  10480. FilesystemImporter: function FilesystemImporter(t0) {
  10481. this._loadPath = t0;
  10482. },
  10483. realCasePath: function(path) {
  10484. var t1, basename, matches;
  10485. if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
  10486. return path;
  10487. t1 = $.$get$context();
  10488. basename = X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename();
  10489. matches = J.where$1$ax(B.listDir(t1.dirname$1(path), false), new F.realCasePath_closure(basename)).toList$0(0);
  10490. if (matches.length !== 1)
  10491. return path;
  10492. return C.JSArray_methods.get$first(matches);
  10493. },
  10494. realCasePath_closure: function realCasePath_closure(t0) {
  10495. this.basename = t0;
  10496. },
  10497. _QuietLogger: function _QuietLogger() {
  10498. },
  10499. JSFunction: function JSFunction() {
  10500. },
  10501. NodeImporterResult: function NodeImporterResult() {
  10502. },
  10503. MediaQueryParser: function MediaQueryParser(t0, t1) {
  10504. this.scanner = t0;
  10505. this.logger = t1;
  10506. },
  10507. MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) {
  10508. this.$this = t0;
  10509. },
  10510. PrefixedMapView: function PrefixedMapView(t0, t1, t2) {
  10511. this._prefixed_map_view$_map = t0;
  10512. this._prefix = t1;
  10513. this.$ti = t2;
  10514. },
  10515. _PrefixedKeys: function _PrefixedKeys(t0) {
  10516. this._view = t0;
  10517. },
  10518. _PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) {
  10519. this.$this = t0;
  10520. },
  10521. Value: function Value() {
  10522. },
  10523. SassFunction: function SassFunction(t0) {
  10524. this.callable = t0;
  10525. },
  10526. _FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1) {
  10527. this._usesAndForwards = t0;
  10528. this._imports = t1;
  10529. },
  10530. Extender__extendOrReplace0: function(selector, source, targets, mode) {
  10531. var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
  10532. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
  10533. for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  10534. complex = t2[_i];
  10535. if (complex._complex0$_maxSpecificity == null)
  10536. complex._complex0$_computeSpecificity$0();
  10537. t4 = complex._complex0$_maxSpecificity;
  10538. t1.$indexSet(0, complex, new S.Extension0(complex, _null, t4, true, false, _null, _null, _null));
  10539. }
  10540. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CompoundSelector_2);
  10541. for (t3 = targets.components, t4 = t3.length, t5 = type$.legacy_CompoundSelector_2, _i = 0; _i < t4; ++_i) {
  10542. complex = t3[_i];
  10543. t6 = complex.components;
  10544. if (t6.length !== 1)
  10545. t2.push(H.throwExpression(E.SassScriptException$0("Can't extend complex selector " + H.S(complex) + ".")));
  10546. else
  10547. t2.push(t5._as(C.JSArray_methods.get$first(t6)));
  10548. }
  10549. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector_2, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2);
  10550. for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  10551. for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
  10552. t3.$indexSet(0, t5[_i0], t1);
  10553. extender = F.Extender$_mode0(mode);
  10554. if (!selector.get$isInvisible())
  10555. extender._extender$_originals.addAll$1(0, selector.components);
  10556. return extender._extender$_extendList$3(selector, t3, _null);
  10557. },
  10558. Extender$_mode0: function(_mode) {
  10559. var t1 = type$.legacy_SimpleSelector_2;
  10560. return new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2, type$.legacy_List_legacy_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2), _mode);
  10561. },
  10562. Extender0: function Extender0(t0, t1, t2, t3, t4, t5, t6) {
  10563. var _ = this;
  10564. _._extender$_selectors = t0;
  10565. _._extender$_extensions = t1;
  10566. _._extender$_extensionsByExtender = t2;
  10567. _._extender$_mediaContexts = t3;
  10568. _._extender$_sourceSpecificity = t4;
  10569. _._extender$_originals = t5;
  10570. _._extender$_mode = t6;
  10571. },
  10572. Extender_extensionsWhereTarget_closure0: function Extender_extensionsWhereTarget_closure0() {
  10573. },
  10574. Extender__registerSelector_closure0: function Extender__registerSelector_closure0() {
  10575. },
  10576. Extender_addExtension_closure2: function Extender_addExtension_closure2() {
  10577. },
  10578. Extender_addExtension_closure3: function Extender_addExtension_closure3() {
  10579. },
  10580. Extender_addExtension_closure4: function Extender_addExtension_closure4(t0) {
  10581. this.complex = t0;
  10582. },
  10583. Extender__extendExistingExtensions_closure1: function Extender__extendExistingExtensions_closure1() {
  10584. },
  10585. Extender__extendExistingExtensions_closure2: function Extender__extendExistingExtensions_closure2() {
  10586. },
  10587. Extender_addExtensions_closure0: function Extender_addExtensions_closure0(t0, t1, t2) {
  10588. this._box_0 = t0;
  10589. this.$this = t1;
  10590. this.extender = t2;
  10591. },
  10592. Extender_addExtensions__closure0: function Extender_addExtensions__closure0(t0, t1, t2, t3, t4) {
  10593. var _ = this;
  10594. _._box_0 = t0;
  10595. _.existingSources = t1;
  10596. _.extensionsForTarget = t2;
  10597. _.selectorsForTarget = t3;
  10598. _.target = t4;
  10599. },
  10600. Extender_addExtensions___closure1: function Extender_addExtensions___closure1() {
  10601. },
  10602. Extender_addExtensions___closure2: function Extender_addExtensions___closure2(t0) {
  10603. this.extension = t0;
  10604. },
  10605. Extender__extendList_closure0: function Extender__extendList_closure0() {
  10606. },
  10607. Extender__extendComplex_closure1: function Extender__extendComplex_closure1(t0) {
  10608. this.complex = t0;
  10609. },
  10610. Extender__extendComplex_closure2: function Extender__extendComplex_closure2(t0, t1, t2) {
  10611. this._box_0 = t0;
  10612. this.$this = t1;
  10613. this.complex = t2;
  10614. },
  10615. Extender__extendComplex__closure1: function Extender__extendComplex__closure1() {
  10616. },
  10617. Extender__extendComplex__closure2: function Extender__extendComplex__closure2(t0, t1, t2, t3) {
  10618. var _ = this;
  10619. _._box_0 = t0;
  10620. _.$this = t1;
  10621. _.complex = t2;
  10622. _.path = t3;
  10623. },
  10624. Extender__extendComplex___closure0: function Extender__extendComplex___closure0() {
  10625. },
  10626. Extender__extendCompound_closure3: function Extender__extendCompound_closure3(t0) {
  10627. this.mediaQueryContext = t0;
  10628. },
  10629. Extender__extendCompound_closure4: function Extender__extendCompound_closure4(t0, t1) {
  10630. this._box_1 = t0;
  10631. this.mediaQueryContext = t1;
  10632. },
  10633. Extender__extendCompound__closure1: function Extender__extendCompound__closure1() {
  10634. },
  10635. Extender__extendCompound__closure2: function Extender__extendCompound__closure2(t0) {
  10636. this._box_0 = t0;
  10637. },
  10638. Extender__extendCompound_closure5: function Extender__extendCompound_closure5() {
  10639. },
  10640. Extender__extendCompound_closure6: function Extender__extendCompound_closure6() {
  10641. },
  10642. Extender__extendSimple_withoutPseudo0: function Extender__extendSimple_withoutPseudo0(t0, t1, t2) {
  10643. this.$this = t0;
  10644. this.extensions = t1;
  10645. this.targetsUsed = t2;
  10646. },
  10647. Extender__extendSimple_closure0: function Extender__extendSimple_closure0(t0, t1) {
  10648. this.$this = t0;
  10649. this.withoutPseudo = t1;
  10650. },
  10651. Extender__extendPseudo_closure4: function Extender__extendPseudo_closure4() {
  10652. },
  10653. Extender__extendPseudo_closure5: function Extender__extendPseudo_closure5() {
  10654. },
  10655. Extender__extendPseudo_closure6: function Extender__extendPseudo_closure6() {
  10656. },
  10657. Extender__extendPseudo_closure7: function Extender__extendPseudo_closure7(t0) {
  10658. this.pseudo = t0;
  10659. },
  10660. Extender__extendPseudo_closure8: function Extender__extendPseudo_closure8(t0) {
  10661. this.pseudo = t0;
  10662. },
  10663. Extender__trim_closure1: function Extender__trim_closure1(t0, t1) {
  10664. this._box_0 = t0;
  10665. this.complex1 = t1;
  10666. },
  10667. Extender__trim_closure2: function Extender__trim_closure2(t0, t1) {
  10668. this._box_0 = t0;
  10669. this.complex1 = t1;
  10670. },
  10671. Extender_clone_closure0: function Extender_clone_closure0(t0, t1, t2, t3) {
  10672. var _ = this;
  10673. _.$this = t0;
  10674. _.newSelectors = t1;
  10675. _.oldToNewSelectors = t2;
  10676. _.newMediaContexts = t3;
  10677. },
  10678. FilesystemImporter0: function FilesystemImporter0(t0) {
  10679. this._filesystem$_loadPath = t0;
  10680. },
  10681. FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3) {
  10682. var _ = this;
  10683. _.namespace = t0;
  10684. _.name = t1;
  10685. _.$arguments = t2;
  10686. _.span = t3;
  10687. },
  10688. JSFunction0: function JSFunction0() {
  10689. },
  10690. SassFunction0: function SassFunction0(t0) {
  10691. this.callable = t0;
  10692. },
  10693. NodeImporter__addSassPath: function($async$includePaths) {
  10694. return P._makeSyncStarIterable(function() {
  10695. var includePaths = $async$includePaths;
  10696. var $async$goto = 0, $async$handler = 2, $async$currentError, sassPath;
  10697. return function $async$NodeImporter__addSassPath($async$errorCode, $async$result) {
  10698. if ($async$errorCode === 1) {
  10699. $async$currentError = $async$result;
  10700. $async$goto = $async$handler;
  10701. }
  10702. while (true)
  10703. switch ($async$goto) {
  10704. case 0:
  10705. // Function start
  10706. $async$goto = 3;
  10707. return P._IterationMarker_yieldStar(includePaths);
  10708. case 3:
  10709. // after yield
  10710. sassPath = H._asStringS(J.get$env$x(self.process).SASS_PATH);
  10711. if (sassPath == null) {
  10712. // goto return
  10713. $async$goto = 1;
  10714. break;
  10715. }
  10716. $async$goto = 4;
  10717. return P._IterationMarker_yieldStar(H.setRuntimeTypeInfo(sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":"), type$.JSArray_String));
  10718. case 4:
  10719. // after yield
  10720. case 1:
  10721. // return
  10722. return P._IterationMarker_endOfIteration();
  10723. case 2:
  10724. // rethrow
  10725. return P._IterationMarker_uncaughtError($async$currentError);
  10726. }
  10727. };
  10728. }, type$.legacy_String);
  10729. },
  10730. NodeImporter: function NodeImporter(t0, t1, t2) {
  10731. this._implementation$_context = t0;
  10732. this._includePaths = t1;
  10733. this._implementation$_importers = t2;
  10734. },
  10735. NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) {
  10736. this.path = t0;
  10737. },
  10738. ModifiableCssImport$0: function(url, span, media, supports) {
  10739. return new F.ModifiableCssImport0(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.legacy_CssMediaQuery_2), span);
  10740. },
  10741. ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2, t3) {
  10742. var _ = this;
  10743. _.url = t0;
  10744. _.supports = t1;
  10745. _.media = t2;
  10746. _.span = t3;
  10747. _._node2$_indexInParent = _._node2$_parent = null;
  10748. _.isGroupEnd = false;
  10749. },
  10750. Import0: function Import0() {
  10751. },
  10752. NodeImporterResult0: function NodeImporterResult0() {
  10753. },
  10754. realCasePath0: function(path) {
  10755. var t1, basename, matches;
  10756. if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
  10757. return path;
  10758. t1 = $.$get$context();
  10759. basename = X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename();
  10760. matches = J.where$1$ax(B.listDir0(t1.dirname$1(path)), new F.realCasePath_closure0(basename)).toList$0(0);
  10761. if (matches.length !== 1)
  10762. return path;
  10763. return C.JSArray_methods.get$first(matches);
  10764. },
  10765. realCasePath_closure0: function realCasePath_closure0(t0) {
  10766. this.basename = t0;
  10767. },
  10768. CssMediaQuery$0: function(type, features, modifier) {
  10769. return new F.CssMediaQuery0(modifier, type, features == null ? C.List_empty : P.List_List$unmodifiable(features, type$.legacy_String));
  10770. },
  10771. CssMediaQuery0: function CssMediaQuery0(t0, t1, t2) {
  10772. this.modifier = t0;
  10773. this.type = t1;
  10774. this.features = t2;
  10775. },
  10776. _SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) {
  10777. this._media_query1$_name = t0;
  10778. },
  10779. MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) {
  10780. this.query = t0;
  10781. },
  10782. MediaQueryParser0: function MediaQueryParser0(t0, t1) {
  10783. this.scanner = t0;
  10784. this.logger = t1;
  10785. },
  10786. MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) {
  10787. this.$this = t0;
  10788. },
  10789. PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) {
  10790. this._prefixed_map_view0$_map = t0;
  10791. this._prefixed_map_view0$_prefix = t1;
  10792. this.$ti = t2;
  10793. },
  10794. _PrefixedKeys0: function _PrefixedKeys0(t0) {
  10795. this._prefixed_map_view0$_view = t0;
  10796. },
  10797. _PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) {
  10798. this.$this = t0;
  10799. },
  10800. TypeSelector0: function TypeSelector0(t0) {
  10801. this.name = t0;
  10802. },
  10803. CssValue0: function CssValue0(t0, t1, t2) {
  10804. this.value = t0;
  10805. this.span = t1;
  10806. this.$ti = t2;
  10807. },
  10808. ValueExpression0: function ValueExpression0(t0, t1) {
  10809. this.value = t0;
  10810. this.span = t1;
  10811. },
  10812. ModifiableCssValue0: function ModifiableCssValue0(t0, t1, t2) {
  10813. this.value = t0;
  10814. this.span = t1;
  10815. this.$ti = t2;
  10816. },
  10817. Value0: function Value0() {
  10818. },
  10819. unwrapValue: function(object) {
  10820. var value, t1;
  10821. if (object != null) {
  10822. if (object instanceof F.Value0)
  10823. return object;
  10824. value = object.dartValue;
  10825. if (value != null && value instanceof F.Value0)
  10826. return value;
  10827. t1 = self.Error;
  10828. if (H._asBoolS($.$get$_jsInstanceOf().call$2(object, t1)))
  10829. throw H.wrapException(object);
  10830. }
  10831. throw H.wrapException(H.S(object) + " must be a Sass value type.");
  10832. },
  10833. wrapValue: function(value) {
  10834. if (value instanceof K.SassColor0)
  10835. return P.callConstructor($.$get$colorConstructor(), H.setRuntimeTypeInfo([null, null, null, null, value], type$.JSArray_legacy_Object));
  10836. if (value instanceof D.SassList0)
  10837. return P.callConstructor($.$get$listConstructor(), H.setRuntimeTypeInfo([null, null, value], type$.JSArray_legacy_Object));
  10838. if (value instanceof A.SassMap0)
  10839. return P.callConstructor($.$get$mapConstructor(), H.setRuntimeTypeInfo([null, value], type$.JSArray_legacy_Object));
  10840. if (value instanceof T.SassNumber0)
  10841. return P.callConstructor($.$get$numberConstructor(), H.setRuntimeTypeInfo([null, null, value], type$.JSArray_legacy_Object));
  10842. if (value instanceof D.SassString0)
  10843. return P.callConstructor($.$get$stringConstructor(), H.setRuntimeTypeInfo([null, value], type$.JSArray_legacy_Object));
  10844. return value;
  10845. }
  10846. },
  10847. Y = {StreamCompleter: function StreamCompleter(t0, t1) {
  10848. this._stream_completer$_stream = t0;
  10849. this.$ti = t1;
  10850. }, _CompleterStream: function _CompleterStream(t0) {
  10851. this._sourceStream = this._stream_completer$_controller = null;
  10852. this.$ti = t0;
  10853. }, ContentBlock: function ContentBlock(t0, t1, t2, t3, t4) {
  10854. var _ = this;
  10855. _.name = t0;
  10856. _.$arguments = t1;
  10857. _.span = t2;
  10858. _.children = t3;
  10859. _.hasDeclarations = t4;
  10860. }, WarnRule: function WarnRule(t0, t1) {
  10861. this.expression = t0;
  10862. this.span = t1;
  10863. },
  10864. unifyComplex: function(complexes) {
  10865. var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
  10866. t1 = J.getInterceptor$asx(complexes);
  10867. if (t1.get$length(complexes) === 1)
  10868. return complexes;
  10869. for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
  10870. base = J.get$last$ax(t2.get$current(t2));
  10871. if (base instanceof X.CompoundSelector)
  10872. if (unifiedBase == null)
  10873. unifiedBase = base.components;
  10874. else
  10875. for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  10876. unifiedBase = t3[_i].unify$1(unifiedBase);
  10877. if (unifiedBase == null)
  10878. return null;
  10879. }
  10880. else
  10881. return null;
  10882. }
  10883. t1 = t1.map$1$1(complexes, new Y.unifyComplex_closure(), type$.legacy_List_legacy_ComplexSelectorComponent);
  10884. complexesWithoutBases = P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  10885. J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$(unifiedBase));
  10886. return Y.weave(complexesWithoutBases);
  10887. },
  10888. unifyCompound: function(compound1, compound2) {
  10889. var t1, result, _i;
  10890. for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
  10891. result = compound1[_i].unify$1(result);
  10892. if (result == null)
  10893. return null;
  10894. }
  10895. return X.CompoundSelector$(result);
  10896. },
  10897. unifyUniversalAndElement: function(selector1, selector2) {
  10898. var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
  10899. _s45_ = string$.must_b;
  10900. if (selector1 instanceof N.UniversalSelector) {
  10901. namespace1 = selector1.namespace;
  10902. name1 = _null;
  10903. } else if (selector1 instanceof F.TypeSelector) {
  10904. t1 = selector1.name;
  10905. namespace1 = t1.namespace;
  10906. name1 = t1.name;
  10907. } else
  10908. throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
  10909. if (selector2 instanceof N.UniversalSelector) {
  10910. namespace2 = selector2.namespace;
  10911. name2 = _null;
  10912. } else if (selector2 instanceof F.TypeSelector) {
  10913. t1 = selector2.name;
  10914. namespace2 = t1.namespace;
  10915. name2 = t1.name;
  10916. } else
  10917. throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
  10918. if (namespace1 == namespace2 || namespace2 === "*")
  10919. namespace = namespace1;
  10920. else {
  10921. if (namespace1 !== "*")
  10922. return _null;
  10923. namespace = namespace2;
  10924. }
  10925. if (name1 == name2 || name2 == null)
  10926. $name = name1;
  10927. else {
  10928. if (!(name1 == null || name1 === "*"))
  10929. return _null;
  10930. $name = name2;
  10931. }
  10932. return $name == null ? new N.UniversalSelector(namespace) : new F.TypeSelector(new D.QualifiedName($name, namespace));
  10933. },
  10934. weave: function(complexes) {
  10935. var t2, cur, t3, target, _i, parents, newPrefixes, parentPrefixes, t4, t5,
  10936. t1 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent,
  10937. prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
  10938. for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  10939. cur = t2.__internal$_current;
  10940. t3 = J.getInterceptor$asx(cur);
  10941. if (t3.get$isEmpty(cur))
  10942. continue;
  10943. target = t3.get$last(cur);
  10944. if (t3.get$length(cur) === 1) {
  10945. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
  10946. J.add$1$ax(prefixes[_i], target);
  10947. continue;
  10948. }
  10949. parents = t3.take$1(cur, t3.get$length(cur) - 1).toList$0(0);
  10950. newPrefixes = H.setRuntimeTypeInfo([], t1);
  10951. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
  10952. parentPrefixes = Y._weaveParents(prefixes[_i], parents);
  10953. if (parentPrefixes == null)
  10954. continue;
  10955. for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
  10956. t5 = t4.get$current(t4);
  10957. J.add$1$ax(t5, target);
  10958. newPrefixes.push(t5);
  10959. }
  10960. }
  10961. prefixes = newPrefixes;
  10962. }
  10963. return prefixes;
  10964. },
  10965. _weaveParents: function(parents1, parents2) {
  10966. var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, t5, _null = null,
  10967. t1 = type$.legacy_ComplexSelectorComponent,
  10968. queue1 = P.ListQueue_ListQueue$of(parents1, t1),
  10969. queue2 = P.ListQueue_ListQueue$of(parents2, t1),
  10970. initialCombinators = Y._mergeInitialCombinators(queue1, queue2);
  10971. if (initialCombinators == null)
  10972. return _null;
  10973. finalCombinators = Y._mergeFinalCombinators(queue1, queue2, _null);
  10974. if (finalCombinators == null)
  10975. return _null;
  10976. root1 = Y._firstIfRoot(queue1);
  10977. root2 = Y._firstIfRoot(queue2);
  10978. t1 = root1 != null;
  10979. if (t1 && root2 != null) {
  10980. root = Y.unifyCompound(root1.components, root2.components);
  10981. if (root == null)
  10982. return _null;
  10983. queue1.addFirst$1(root);
  10984. queue2.addFirst$1(root);
  10985. } else if (t1)
  10986. queue2.addFirst$1(root1);
  10987. else if (root2 != null)
  10988. queue1.addFirst$1(root2);
  10989. groups1 = Y._groupSelectors(queue1);
  10990. groups2 = Y._groupSelectors(queue2);
  10991. t1 = type$.legacy_List_legacy_ComplexSelectorComponent;
  10992. lcs = B.longestCommonSubsequence(groups2, groups1, new Y._weaveParents_closure(), t1);
  10993. t2 = type$.JSArray_legacy_Iterable_legacy_ComplexSelectorComponent;
  10994. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent);
  10995. for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
  10996. group = lcs[_i];
  10997. t4 = Y._chunks(groups1, groups2, new Y._weaveParents_closure0(group), t1);
  10998. t5 = H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent*>*>");
  10999. choices.push(P.List_List$from(new H.MappedListIterable(t4, new Y._weaveParents_closure1(), t5), true, t5._eval$1("ListIterable.E")));
  11000. choices.push(H.setRuntimeTypeInfo([group], t2));
  11001. groups1.removeFirst$0();
  11002. groups2.removeFirst$0();
  11003. }
  11004. t2 = Y._chunks(groups1, groups2, new Y._weaveParents_closure2(), t1);
  11005. t3 = H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent*>*>");
  11006. choices.push(P.List_List$from(new H.MappedListIterable(t2, new Y._weaveParents_closure3(), t3), true, t3._eval$1("ListIterable.E")));
  11007. C.JSArray_methods.addAll$1(choices, finalCombinators);
  11008. return J.map$1$1$ax(Y.paths(new H.WhereIterable(choices, new Y._weaveParents_closure4(), type$.WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent), type$.legacy_Iterable_legacy_ComplexSelectorComponent), new Y._weaveParents_closure5(), t1);
  11009. },
  11010. _firstIfRoot: function(queue) {
  11011. var first;
  11012. if (queue._collection$_head === queue._collection$_tail)
  11013. return null;
  11014. first = queue.get$first(queue);
  11015. if (first instanceof X.CompoundSelector) {
  11016. if (!Y._hasRoot(first))
  11017. return null;
  11018. queue.removeFirst$0();
  11019. return first;
  11020. } else
  11021. return null;
  11022. },
  11023. _mergeInitialCombinators: function(components1, components2) {
  11024. var t3, combinators2, lcs,
  11025. t1 = type$.JSArray_legacy_Combinator,
  11026. combinators1 = H.setRuntimeTypeInfo([], t1),
  11027. t2 = type$.legacy_Combinator;
  11028. while (true) {
  11029. if (!components1.get$isEmpty(components1)) {
  11030. t3 = components1._collection$_head;
  11031. if (t3 === components1._collection$_tail)
  11032. H.throwExpression(H.IterableElementError_noElement());
  11033. t3 = components1._collection$_table[t3] instanceof S.Combinator;
  11034. } else
  11035. t3 = false;
  11036. if (!t3)
  11037. break;
  11038. combinators1.push(t2._as(components1.removeFirst$0()));
  11039. }
  11040. combinators2 = H.setRuntimeTypeInfo([], t1);
  11041. while (true) {
  11042. if (!components2.get$isEmpty(components2)) {
  11043. t1 = components2._collection$_head;
  11044. if (t1 === components2._collection$_tail)
  11045. H.throwExpression(H.IterableElementError_noElement());
  11046. t1 = components2._collection$_table[t1] instanceof S.Combinator;
  11047. } else
  11048. t1 = false;
  11049. if (!t1)
  11050. break;
  11051. combinators2.push(t2._as(components2.removeFirst$0()));
  11052. }
  11053. lcs = B.longestCommonSubsequence(combinators1, combinators2, null, t2);
  11054. if (C.C_ListEquality.equals$2(lcs, combinators1))
  11055. return combinators2;
  11056. if (C.C_ListEquality.equals$2(lcs, combinators2))
  11057. return combinators1;
  11058. return null;
  11059. },
  11060. _mergeFinalCombinators: function(components1, components2, result) {
  11061. var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
  11062. if (result == null)
  11063. result = Q.QueueList$(_null, type$.legacy_List_legacy_List_legacy_ComplexSelectorComponent);
  11064. if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator))
  11065. t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator);
  11066. else
  11067. t1 = false;
  11068. if (t1)
  11069. return result;
  11070. t1 = type$.JSArray_legacy_Combinator;
  11071. combinators1 = H.setRuntimeTypeInfo([], t1);
  11072. t2 = type$.legacy_Combinator;
  11073. while (true) {
  11074. if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator))
  11075. break;
  11076. combinators1.push(t2._as(components1.removeLast$0(0)));
  11077. }
  11078. combinators2 = H.setRuntimeTypeInfo([], t1);
  11079. while (true) {
  11080. if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator))
  11081. break;
  11082. combinators2.push(t2._as(components2.removeLast$0(0)));
  11083. }
  11084. t1 = combinators1.length;
  11085. if (t1 > 1 || combinators2.length > 1) {
  11086. lcs = B.longestCommonSubsequence(combinators1, combinators2, _null, t2);
  11087. if (C.C_ListEquality.equals$2(lcs, combinators1))
  11088. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_legacy_Combinator), true, type$.legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  11089. else if (C.C_ListEquality.equals$2(lcs, combinators2))
  11090. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_legacy_Combinator), true, type$.legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  11091. else
  11092. return _null;
  11093. return result;
  11094. }
  11095. combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
  11096. combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
  11097. t1 = combinator1 != null;
  11098. if (t1 && combinator2 != null) {
  11099. t1 = type$.legacy_CompoundSelector;
  11100. compound1 = t1._as(components1.removeLast$0(0));
  11101. compound2 = t1._as(components2.removeLast$0(0));
  11102. t1 = combinator1 === C.Combinator_CzM;
  11103. if (t1 && combinator2 === C.Combinator_CzM) {
  11104. compound1.toString;
  11105. if (Y.compoundIsSuperselector(compound1, compound2, _null))
  11106. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  11107. else {
  11108. compound2.toString;
  11109. t1 = type$.JSArray_legacy_ComplexSelectorComponent;
  11110. t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent;
  11111. if (Y.compoundIsSuperselector(compound2, compound1, _null))
  11112. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM], t1)], t2));
  11113. else {
  11114. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM, compound2, C.Combinator_CzM], t1), H.setRuntimeTypeInfo([compound2, C.Combinator_CzM, compound1, C.Combinator_CzM], t1)], t2);
  11115. unified = Y.unifyCompound(compound1.components, compound2.components);
  11116. if (unified != null)
  11117. choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM], t1));
  11118. result.addFirst$1(choices);
  11119. }
  11120. }
  11121. } else {
  11122. if (!(t1 && combinator2 === C.Combinator_uzg))
  11123. t2 = combinator1 === C.Combinator_uzg && combinator2 === C.Combinator_CzM;
  11124. else
  11125. t2 = true;
  11126. if (t2) {
  11127. followingSiblingSelector = t1 ? compound1 : compound2;
  11128. nextSiblingSelector = t1 ? compound2 : compound1;
  11129. followingSiblingSelector.toString;
  11130. t1 = type$.JSArray_legacy_ComplexSelectorComponent;
  11131. t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent;
  11132. if (Y.compoundIsSuperselector(followingSiblingSelector, nextSiblingSelector, _null))
  11133. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg], t1)], t2));
  11134. else {
  11135. unified = Y.unifyCompound(compound1.components, compound2.components);
  11136. t2 = H.setRuntimeTypeInfo([], t2);
  11137. t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM, nextSiblingSelector, C.Combinator_uzg], t1));
  11138. if (unified != null)
  11139. t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg], t1));
  11140. result.addFirst$1(t2);
  11141. }
  11142. } else {
  11143. if (combinator1 === C.Combinator_sgq)
  11144. t2 = combinator2 === C.Combinator_uzg || combinator2 === C.Combinator_CzM;
  11145. else
  11146. t2 = false;
  11147. if (t2) {
  11148. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  11149. components1._add$1(compound1);
  11150. components1._add$1(C.Combinator_sgq);
  11151. } else {
  11152. if (combinator2 === C.Combinator_sgq)
  11153. t1 = combinator1 === C.Combinator_uzg || t1;
  11154. else
  11155. t1 = false;
  11156. if (t1) {
  11157. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  11158. components2._add$1(compound2);
  11159. components2._add$1(C.Combinator_sgq);
  11160. } else if (combinator1 === combinator2) {
  11161. unified = Y.unifyCompound(compound1.components, compound2.components);
  11162. if (unified == null)
  11163. return _null;
  11164. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  11165. } else
  11166. return _null;
  11167. }
  11168. }
  11169. }
  11170. return Y._mergeFinalCombinators(components1, components2, result);
  11171. } else if (t1) {
  11172. if (combinator1 === C.Combinator_sgq)
  11173. if (!components2.get$isEmpty(components2)) {
  11174. t1 = type$.legacy_CompoundSelector;
  11175. t2 = t1._as(components2.get$last(components2));
  11176. t1 = t1._as(components1.get$last(components1));
  11177. t2.toString;
  11178. t1 = Y.compoundIsSuperselector(t2, t1, _null);
  11179. } else
  11180. t1 = false;
  11181. else
  11182. t1 = false;
  11183. if (t1)
  11184. components2.removeLast$0(0);
  11185. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  11186. return Y._mergeFinalCombinators(components1, components2, result);
  11187. } else {
  11188. if (combinator2 === C.Combinator_sgq)
  11189. if (!components1.get$isEmpty(components1)) {
  11190. t1 = type$.legacy_CompoundSelector;
  11191. t2 = t1._as(components1.get$last(components1));
  11192. t1 = t1._as(components2.get$last(components2));
  11193. t2.toString;
  11194. t1 = Y.compoundIsSuperselector(t2, t1, _null);
  11195. } else
  11196. t1 = false;
  11197. else
  11198. t1 = false;
  11199. if (t1)
  11200. components1.removeLast$0(0);
  11201. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  11202. return Y._mergeFinalCombinators(components1, components2, result);
  11203. }
  11204. },
  11205. _mustUnify: function(complex1, complex2) {
  11206. var t2, t3, t4,
  11207. t1 = P.LinkedHashSet_LinkedHashSet(type$.legacy_SimpleSelector);
  11208. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
  11209. t3 = t2.get$current(t2);
  11210. if (t3 instanceof X.CompoundSelector)
  11211. for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions___isUnique$closure()); t4.moveNext$0();)
  11212. t1.add$1(0, t3.get$current(t3));
  11213. }
  11214. if (t1._collection$_length === 0)
  11215. return false;
  11216. return J.any$1$ax(complex2, new Y._mustUnify_closure(t1));
  11217. },
  11218. _isUnique: function(simple) {
  11219. var t1;
  11220. if (!(simple instanceof N.IDSelector))
  11221. t1 = simple instanceof D.PseudoSelector && !simple.isClass;
  11222. else
  11223. t1 = true;
  11224. return t1;
  11225. },
  11226. _chunks: function(queue1, queue2, done, $T) {
  11227. var chunk2, t2, t3, _i,
  11228. t1 = $T._eval$1("JSArray<0*>"),
  11229. chunk1 = H.setRuntimeTypeInfo([], t1);
  11230. for (; !done.call$1(queue1);)
  11231. chunk1.push(queue1.removeFirst$0());
  11232. chunk2 = H.setRuntimeTypeInfo([], t1);
  11233. for (; !done.call$1(queue2);)
  11234. chunk2.push(queue2.removeFirst$0());
  11235. t2 = chunk1.length === 0;
  11236. if (t2 && chunk2.length === 0)
  11237. return H.setRuntimeTypeInfo([], $T._eval$1("JSArray<List<0*>*>"));
  11238. if (t2)
  11239. return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray<List<0*>*>"));
  11240. if (chunk2.length === 0)
  11241. return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray<List<0*>*>"));
  11242. t2 = H.setRuntimeTypeInfo([], t1);
  11243. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  11244. t2.push(chunk1[_i]);
  11245. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  11246. t2.push(chunk2[_i]);
  11247. t1 = H.setRuntimeTypeInfo([], t1);
  11248. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  11249. t1.push(chunk2[_i]);
  11250. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  11251. t1.push(chunk1[_i]);
  11252. return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray<List<0*>*>"));
  11253. },
  11254. paths: function(choices, $T) {
  11255. return J.fold$2$ax(choices, H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"))], $T._eval$1("JSArray<List<0*>*>")), new Y.paths_closure($T));
  11256. },
  11257. _groupSelectors: function(complex) {
  11258. var t1, group, cur, t2,
  11259. groups = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent),
  11260. iterator = P._ListQueueIterator$(complex);
  11261. if (!iterator.moveNext$0())
  11262. return groups;
  11263. t1 = type$.JSArray_legacy_ComplexSelectorComponent;
  11264. group = H.setRuntimeTypeInfo([iterator.get$current(iterator)], t1);
  11265. groups._queue_list$_add$1(group);
  11266. for (; iterator.moveNext$0();) {
  11267. if (!(C.JSArray_methods.get$last(group) instanceof S.Combinator)) {
  11268. cur = iterator._collection$_current;
  11269. t2 = cur instanceof S.Combinator;
  11270. } else
  11271. t2 = true;
  11272. cur = iterator._collection$_current;
  11273. if (t2)
  11274. group.push(cur);
  11275. else {
  11276. group = H.setRuntimeTypeInfo([cur], t1);
  11277. groups._queue_list$_add$1(group);
  11278. }
  11279. }
  11280. return groups;
  11281. },
  11282. _hasRoot: function(compound) {
  11283. return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure());
  11284. },
  11285. listIsSuperselector: function(list1, list2) {
  11286. return C.JSArray_methods.every$1(list2, new Y.listIsSuperselector_closure(list1));
  11287. },
  11288. complexIsParentSuperselector: function(complex1, complex2) {
  11289. var t2, base, t3, t4,
  11290. t1 = J.getInterceptor$ax(complex1);
  11291. if (t1.get$first(complex1) instanceof S.Combinator)
  11292. return false;
  11293. t2 = J.getInterceptor$ax(complex2);
  11294. if (t2.get$first(complex2) instanceof S.Combinator)
  11295. return false;
  11296. if (t1.get$length(complex1) > t2.get$length(complex2))
  11297. return false;
  11298. base = X.CompoundSelector$(H.setRuntimeTypeInfo([new N.PlaceholderSelector("<temp>")], type$.JSArray_legacy_SimpleSelector));
  11299. t3 = type$.JSArray_legacy_ComplexSelectorComponent;
  11300. t4 = H.setRuntimeTypeInfo([], t3);
  11301. for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
  11302. t4.push(t1.get$current(t1));
  11303. t4.push(base);
  11304. t1 = H.setRuntimeTypeInfo([], t3);
  11305. for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
  11306. t1.push(t2.get$current(t2));
  11307. t1.push(base);
  11308. return Y.complexIsSuperselector(t4, t1);
  11309. },
  11310. complexIsSuperselector: function(complex1, complex2) {
  11311. var t1, t2, i1, i2, remaining1, remaining2, t3, afterSuperselector, afterSuperselector0, t4, compound2, i10, combinator1, combinator2;
  11312. if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator)
  11313. return false;
  11314. if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator)
  11315. return false;
  11316. for (t1 = H._arrayInstanceType(complex2)._precomputed1, t2 = type$.legacy_CompoundSelector, i1 = 0, i2 = 0; true;) {
  11317. remaining1 = complex1.length - i1;
  11318. remaining2 = complex2.length - i2;
  11319. if (remaining1 === 0 || remaining2 === 0)
  11320. return false;
  11321. if (remaining1 > remaining2)
  11322. return false;
  11323. t3 = complex1[i1];
  11324. if (t3 instanceof S.Combinator)
  11325. return false;
  11326. if (complex2[i2] instanceof S.Combinator)
  11327. return false;
  11328. t2._as(t3);
  11329. if (remaining1 === 1)
  11330. return Y.compoundIsSuperselector(t3, t2._as(C.JSArray_methods.get$last(complex2)), H.SubListIterable$(complex2, 0, complex2.length - 1, t1).skip$1(0, i2));
  11331. afterSuperselector = i2 + 1;
  11332. for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
  11333. t4 = afterSuperselector0 - 1;
  11334. compound2 = complex2[t4];
  11335. if (compound2 instanceof X.CompoundSelector)
  11336. if (Y.compoundIsSuperselector(t3, compound2, H.SubListIterable$(complex2, 0, t4, t1).skip$1(0, afterSuperselector)))
  11337. break;
  11338. }
  11339. if (afterSuperselector0 === complex2.length)
  11340. return false;
  11341. i10 = i1 + 1;
  11342. combinator1 = complex1[i10];
  11343. combinator2 = complex2[afterSuperselector0];
  11344. if (combinator1 instanceof S.Combinator) {
  11345. if (!(combinator2 instanceof S.Combinator))
  11346. return false;
  11347. if (combinator1 === C.Combinator_CzM) {
  11348. if (combinator2 === C.Combinator_sgq)
  11349. return false;
  11350. } else if (combinator2 !== combinator1)
  11351. return false;
  11352. if (remaining1 === 3 && remaining2 > 3)
  11353. return false;
  11354. i1 += 2;
  11355. i2 = afterSuperselector0 + 1;
  11356. } else {
  11357. if (combinator2 instanceof S.Combinator) {
  11358. if (combinator2 !== C.Combinator_sgq)
  11359. return false;
  11360. i2 = afterSuperselector0 + 1;
  11361. } else
  11362. i2 = afterSuperselector0;
  11363. i1 = i10;
  11364. }
  11365. }
  11366. },
  11367. compoundIsSuperselector: function(compound1, compound2, parents) {
  11368. var t1, t2, _i, simple1, simple2;
  11369. for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  11370. simple1 = t1[_i];
  11371. if (simple1 instanceof D.PseudoSelector && simple1.selector != null) {
  11372. if (!Y._selectorPseudoIsSuperselector(simple1, compound2, parents))
  11373. return false;
  11374. } else if (!Y._simpleIsSuperselectorOfCompound(simple1, compound2))
  11375. return false;
  11376. }
  11377. for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  11378. simple2 = t1[_i];
  11379. if (simple2 instanceof D.PseudoSelector && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound(simple2, compound1))
  11380. return false;
  11381. }
  11382. return true;
  11383. },
  11384. _simpleIsSuperselectorOfCompound: function(simple, compound) {
  11385. return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure(simple));
  11386. },
  11387. _selectorPseudoIsSuperselector: function(pseudo1, compound2, parents) {
  11388. switch (pseudo1.normalizedName) {
  11389. case "matches":
  11390. case "any":
  11391. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure(pseudo1)) || C.JSArray_methods.any$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure0(parents, compound2));
  11392. case "has":
  11393. case "host":
  11394. case "host-context":
  11395. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure1(pseudo1));
  11396. case "slotted":
  11397. return Y._selectorPseudosNamed(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure2(pseudo1));
  11398. case "not":
  11399. return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure3(compound2, pseudo1));
  11400. case "current":
  11401. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure4(pseudo1));
  11402. case "nth-child":
  11403. case "nth-last-child":
  11404. return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure5(pseudo1));
  11405. default:
  11406. throw H.wrapException("unreachable");
  11407. }
  11408. },
  11409. _selectorPseudosNamed: function(compound, $name, isClass) {
  11410. var t1 = type$.WhereTypeIterable_legacy_PseudoSelector;
  11411. return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>"));
  11412. },
  11413. unifyComplex_closure: function unifyComplex_closure() {
  11414. },
  11415. _weaveParents_closure: function _weaveParents_closure() {
  11416. },
  11417. _weaveParents_closure0: function _weaveParents_closure0(t0) {
  11418. this.group = t0;
  11419. },
  11420. _weaveParents_closure1: function _weaveParents_closure1() {
  11421. },
  11422. _weaveParents__closure1: function _weaveParents__closure1() {
  11423. },
  11424. _weaveParents_closure2: function _weaveParents_closure2() {
  11425. },
  11426. _weaveParents_closure3: function _weaveParents_closure3() {
  11427. },
  11428. _weaveParents__closure0: function _weaveParents__closure0() {
  11429. },
  11430. _weaveParents_closure4: function _weaveParents_closure4() {
  11431. },
  11432. _weaveParents_closure5: function _weaveParents_closure5() {
  11433. },
  11434. _weaveParents__closure: function _weaveParents__closure() {
  11435. },
  11436. _mustUnify_closure: function _mustUnify_closure(t0) {
  11437. this.uniqueSelectors = t0;
  11438. },
  11439. _mustUnify__closure: function _mustUnify__closure(t0) {
  11440. this.uniqueSelectors = t0;
  11441. },
  11442. paths_closure: function paths_closure(t0) {
  11443. this.T = t0;
  11444. },
  11445. paths__closure: function paths__closure(t0, t1) {
  11446. this.paths = t0;
  11447. this.T = t1;
  11448. },
  11449. paths___closure: function paths___closure(t0, t1) {
  11450. this.option = t0;
  11451. this.T = t1;
  11452. },
  11453. _hasRoot_closure: function _hasRoot_closure() {
  11454. },
  11455. listIsSuperselector_closure: function listIsSuperselector_closure(t0) {
  11456. this.list1 = t0;
  11457. },
  11458. listIsSuperselector__closure: function listIsSuperselector__closure(t0) {
  11459. this.complex1 = t0;
  11460. },
  11461. _simpleIsSuperselectorOfCompound_closure: function _simpleIsSuperselectorOfCompound_closure(t0) {
  11462. this.simple = t0;
  11463. },
  11464. _simpleIsSuperselectorOfCompound__closure: function _simpleIsSuperselectorOfCompound__closure(t0) {
  11465. this.simple = t0;
  11466. },
  11467. _selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) {
  11468. this.pseudo1 = t0;
  11469. },
  11470. _selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) {
  11471. this.parents = t0;
  11472. this.compound2 = t1;
  11473. },
  11474. _selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) {
  11475. this.pseudo1 = t0;
  11476. },
  11477. _selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) {
  11478. this.pseudo1 = t0;
  11479. },
  11480. _selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) {
  11481. this.compound2 = t0;
  11482. this.pseudo1 = t1;
  11483. },
  11484. _selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) {
  11485. this.complex = t0;
  11486. this.pseudo1 = t1;
  11487. },
  11488. _selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) {
  11489. this.simple2 = t0;
  11490. },
  11491. _selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) {
  11492. this.simple2 = t0;
  11493. },
  11494. _selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) {
  11495. this.pseudo1 = t0;
  11496. },
  11497. _selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0) {
  11498. this.pseudo1 = t0;
  11499. },
  11500. _selectorPseudosNamed_closure: function _selectorPseudosNamed_closure(t0, t1) {
  11501. this.isClass = t0;
  11502. this.name = t1;
  11503. },
  11504. closure: function closure() {
  11505. },
  11506. Chokidar: function Chokidar() {
  11507. },
  11508. ChokidarOptions: function ChokidarOptions() {
  11509. },
  11510. ChokidarWatcher: function ChokidarWatcher() {
  11511. },
  11512. SourceFile$decoded: function(decodedChars, url) {
  11513. var t1 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int),
  11514. t2 = typeof url == "string" ? P.Uri_parse(url) : type$.legacy_Uri._as(url);
  11515. t1 = new Y.SourceFile(t2, t1, new Uint32Array(H._ensureNativeList(J.toList$0$ax(decodedChars))));
  11516. t1.SourceFile$decoded$2$url(decodedChars, url);
  11517. return t1;
  11518. },
  11519. FileLocation$_: function(file, offset) {
  11520. if (offset < 0)
  11521. H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
  11522. else if (offset > file._decodedChars.length)
  11523. H.throwExpression(P.RangeError$("Offset " + offset + string$.x20must_ + file.get$length(file) + "."));
  11524. return new Y.FileLocation(file, offset);
  11525. },
  11526. _FileSpan$: function(file, _start, _end) {
  11527. if (_end < _start)
  11528. H.throwExpression(P.ArgumentError$("End " + _end + " must come after start " + _start + "."));
  11529. else if (_end > file._decodedChars.length)
  11530. H.throwExpression(P.RangeError$("End " + _end + string$.x20must_ + file.get$length(file) + "."));
  11531. else if (_start < 0)
  11532. H.throwExpression(P.RangeError$("Start may not be negative, was " + _start + "."));
  11533. return new Y._FileSpan(file, _start, _end);
  11534. },
  11535. SourceFile: function SourceFile(t0, t1, t2) {
  11536. var _ = this;
  11537. _.url = t0;
  11538. _._lineStarts = t1;
  11539. _._decodedChars = t2;
  11540. _._cachedLine = null;
  11541. },
  11542. FileLocation: function FileLocation(t0, t1) {
  11543. this.file = t0;
  11544. this.offset = t1;
  11545. },
  11546. FileSpan: function FileSpan() {
  11547. },
  11548. _FileSpan: function _FileSpan(t0, t1, t2) {
  11549. this.file = t0;
  11550. this._file$_start = t1;
  11551. this._end = t2;
  11552. },
  11553. SourceSpanMixin: function SourceSpanMixin() {
  11554. },
  11555. Trace_Trace$from: function(trace) {
  11556. if (trace == null)
  11557. throw H.wrapException(P.ArgumentError$("Cannot create a Trace from null."));
  11558. if (type$.legacy_Trace._is(trace))
  11559. return trace;
  11560. if (trace instanceof U.Chain)
  11561. return trace.toTrace$0();
  11562. return new T.LazyTrace(new Y.Trace_Trace$from_closure(trace));
  11563. },
  11564. Trace_Trace$parse: function(trace) {
  11565. var error, t1, exception;
  11566. try {
  11567. if (trace.length === 0) {
  11568. t1 = P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame), type$.legacy_Frame);
  11569. return new Y.Trace(t1, new P._StringStackTrace(null));
  11570. }
  11571. if (C.JSString_methods.contains$1(trace, $.$get$_v8Trace())) {
  11572. t1 = Y.Trace$parseV8(trace);
  11573. return t1;
  11574. }
  11575. if (C.JSString_methods.contains$1(trace, "\tat ")) {
  11576. t1 = Y.Trace$parseJSCore(trace);
  11577. return t1;
  11578. }
  11579. if (C.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace()) || C.JSString_methods.contains$1(trace, $.$get$_firefoxEvalTrace())) {
  11580. t1 = Y.Trace$parseFirefox(trace);
  11581. return t1;
  11582. }
  11583. if (C.JSString_methods.contains$1(trace, string$.x3d_____)) {
  11584. t1 = U.Chain_Chain$parse(trace).toTrace$0();
  11585. return t1;
  11586. }
  11587. if (C.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) {
  11588. t1 = Y.Trace$parseFriendly(trace);
  11589. return t1;
  11590. }
  11591. t1 = P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.legacy_Frame);
  11592. return new Y.Trace(t1, new P._StringStackTrace(trace));
  11593. } catch (exception) {
  11594. t1 = H.unwrapException(exception);
  11595. if (type$.legacy_FormatException._is(t1)) {
  11596. error = t1;
  11597. throw H.wrapException(P.FormatException$(H.S(J.get$message$x(error)) + "\nStack trace:\n" + H.S(trace), null, null));
  11598. } else
  11599. throw exception;
  11600. }
  11601. },
  11602. Trace__parseVM: function(trace) {
  11603. var t2, $frames,
  11604. t1 = J.trim$0$s(trace),
  11605. lines = H.setRuntimeTypeInfo(H.stringReplaceAllUnchecked(t1, "<asynchronous suspension>\n", "").split("\n"), type$.JSArray_String);
  11606. t1 = H.SubListIterable$(lines, 0, lines.length - 1, type$.String);
  11607. t2 = t1.$ti._eval$1("MappedListIterable<ListIterable.E,Frame*>");
  11608. $frames = P.List_List$from(new H.MappedListIterable(t1, new Y.Trace__parseVM_closure(), t2), true, t2._eval$1("ListIterable.E"));
  11609. if (!J.endsWith$1$s(C.JSArray_methods.get$last(lines), ".da"))
  11610. C.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(C.JSArray_methods.get$last(lines)));
  11611. return $frames;
  11612. },
  11613. Trace$parseV8: function(trace) {
  11614. var t1 = H.SubListIterable$(H.setRuntimeTypeInfo(trace.split("\n"), type$.JSArray_String), 1, null, type$.String).super$Iterable$skipWhile(0, new Y.Trace$parseV8_closure()),
  11615. t2 = type$.legacy_Frame;
  11616. return new Y.Trace(P.List_List$unmodifiable(H.MappedIterable_MappedIterable(t1, new Y.Trace$parseV8_closure0(), t1.$ti._eval$1("Iterable.E"), t2), t2), new P._StringStackTrace(trace));
  11617. },
  11618. Trace$parseJSCore: function(trace) {
  11619. return new Y.Trace(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(trace.split("\n"), type$.JSArray_String), new Y.Trace$parseJSCore_closure(), type$.WhereIterable_String), new Y.Trace$parseJSCore_closure0(), type$.MappedIterable_of_String_and_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(trace));
  11620. },
  11621. Trace$parseFirefox: function(trace) {
  11622. return new Y.Trace(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(C.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new Y.Trace$parseFirefox_closure(), type$.WhereIterable_String), new Y.Trace$parseFirefox_closure0(), type$.MappedIterable_of_String_and_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(trace));
  11623. },
  11624. Trace$parseFriendly: function(trace) {
  11625. var t1 = trace.length === 0 ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame) : new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(C.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new Y.Trace$parseFriendly_closure(), type$.WhereIterable_String), new Y.Trace$parseFriendly_closure0(), type$.MappedIterable_of_String_and_legacy_Frame);
  11626. return new Y.Trace(P.List_List$unmodifiable(t1, type$.legacy_Frame), new P._StringStackTrace(trace));
  11627. },
  11628. Trace: function Trace(t0, t1) {
  11629. this.frames = t0;
  11630. this.original = t1;
  11631. },
  11632. Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) {
  11633. this.trace = t0;
  11634. },
  11635. Trace__parseVM_closure: function Trace__parseVM_closure() {
  11636. },
  11637. Trace$parseV8_closure: function Trace$parseV8_closure() {
  11638. },
  11639. Trace$parseV8_closure0: function Trace$parseV8_closure0() {
  11640. },
  11641. Trace$parseJSCore_closure: function Trace$parseJSCore_closure() {
  11642. },
  11643. Trace$parseJSCore_closure0: function Trace$parseJSCore_closure0() {
  11644. },
  11645. Trace$parseFirefox_closure: function Trace$parseFirefox_closure() {
  11646. },
  11647. Trace$parseFirefox_closure0: function Trace$parseFirefox_closure0() {
  11648. },
  11649. Trace$parseFriendly_closure: function Trace$parseFriendly_closure() {
  11650. },
  11651. Trace$parseFriendly_closure0: function Trace$parseFriendly_closure0() {
  11652. },
  11653. Trace_terse_closure: function Trace_terse_closure() {
  11654. },
  11655. Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) {
  11656. this.oldPredicate = t0;
  11657. },
  11658. Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) {
  11659. this._box_0 = t0;
  11660. },
  11661. Trace_toString_closure0: function Trace_toString_closure0() {
  11662. },
  11663. Trace_toString_closure: function Trace_toString_closure(t0) {
  11664. this.longest = t0;
  11665. },
  11666. Chokidar0: function Chokidar0() {
  11667. },
  11668. ChokidarOptions0: function ChokidarOptions0() {
  11669. },
  11670. ChokidarWatcher0: function ChokidarWatcher0() {
  11671. },
  11672. ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4) {
  11673. var _ = this;
  11674. _.name = t0;
  11675. _.$arguments = t1;
  11676. _.span = t2;
  11677. _.children = t3;
  11678. _.hasDeclarations = t4;
  11679. },
  11680. unifyComplex0: function(complexes) {
  11681. var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
  11682. t1 = J.getInterceptor$asx(complexes);
  11683. if (t1.get$length(complexes) === 1)
  11684. return complexes;
  11685. for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
  11686. base = J.get$last$ax(t2.get$current(t2));
  11687. if (base instanceof X.CompoundSelector0)
  11688. if (unifiedBase == null)
  11689. unifiedBase = base.components;
  11690. else
  11691. for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  11692. unifiedBase = t3[_i].unify$1(unifiedBase);
  11693. if (unifiedBase == null)
  11694. return null;
  11695. }
  11696. else
  11697. return null;
  11698. }
  11699. t1 = t1.map$1$1(complexes, new Y.unifyComplex_closure0(), type$.legacy_List_legacy_ComplexSelectorComponent_2);
  11700. complexesWithoutBases = P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  11701. J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$0(unifiedBase));
  11702. return Y.weave0(complexesWithoutBases);
  11703. },
  11704. unifyCompound0: function(compound1, compound2) {
  11705. var t1, result, _i;
  11706. for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
  11707. result = compound1[_i].unify$1(result);
  11708. if (result == null)
  11709. return null;
  11710. }
  11711. return X.CompoundSelector$0(result);
  11712. },
  11713. unifyUniversalAndElement0: function(selector1, selector2) {
  11714. var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
  11715. _s45_ = string$.must_b;
  11716. if (selector1 instanceof N.UniversalSelector0) {
  11717. namespace1 = selector1.namespace;
  11718. name1 = _null;
  11719. } else if (selector1 instanceof F.TypeSelector0) {
  11720. t1 = selector1.name;
  11721. namespace1 = t1.namespace;
  11722. name1 = t1.name;
  11723. } else
  11724. throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
  11725. if (selector2 instanceof N.UniversalSelector0) {
  11726. namespace2 = selector2.namespace;
  11727. name2 = _null;
  11728. } else if (selector2 instanceof F.TypeSelector0) {
  11729. t1 = selector2.name;
  11730. namespace2 = t1.namespace;
  11731. name2 = t1.name;
  11732. } else
  11733. throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
  11734. if (namespace1 == namespace2 || namespace2 === "*")
  11735. namespace = namespace1;
  11736. else {
  11737. if (namespace1 !== "*")
  11738. return _null;
  11739. namespace = namespace2;
  11740. }
  11741. if (name1 == name2 || name2 == null)
  11742. $name = name1;
  11743. else {
  11744. if (!(name1 == null || name1 === "*"))
  11745. return _null;
  11746. $name = name2;
  11747. }
  11748. return $name == null ? new N.UniversalSelector0(namespace) : new F.TypeSelector0(new D.QualifiedName0($name, namespace));
  11749. },
  11750. weave0: function(complexes) {
  11751. var t2, cur, t3, target, _i, parents, newPrefixes, parentPrefixes, t4, t5,
  11752. t1 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2,
  11753. prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
  11754. for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  11755. cur = t2.__internal$_current;
  11756. t3 = J.getInterceptor$asx(cur);
  11757. if (t3.get$isEmpty(cur))
  11758. continue;
  11759. target = t3.get$last(cur);
  11760. if (t3.get$length(cur) === 1) {
  11761. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
  11762. J.add$1$ax(prefixes[_i], target);
  11763. continue;
  11764. }
  11765. parents = t3.take$1(cur, t3.get$length(cur) - 1).toList$0(0);
  11766. newPrefixes = H.setRuntimeTypeInfo([], t1);
  11767. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
  11768. parentPrefixes = Y._weaveParents0(prefixes[_i], parents);
  11769. if (parentPrefixes == null)
  11770. continue;
  11771. for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
  11772. t5 = t4.get$current(t4);
  11773. J.add$1$ax(t5, target);
  11774. newPrefixes.push(t5);
  11775. }
  11776. }
  11777. prefixes = newPrefixes;
  11778. }
  11779. return prefixes;
  11780. },
  11781. _weaveParents0: function(parents1, parents2) {
  11782. var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, t5, _null = null,
  11783. t1 = type$.legacy_ComplexSelectorComponent_2,
  11784. queue1 = P.ListQueue_ListQueue$of(parents1, t1),
  11785. queue2 = P.ListQueue_ListQueue$of(parents2, t1),
  11786. initialCombinators = Y._mergeInitialCombinators0(queue1, queue2);
  11787. if (initialCombinators == null)
  11788. return _null;
  11789. finalCombinators = Y._mergeFinalCombinators0(queue1, queue2, _null);
  11790. if (finalCombinators == null)
  11791. return _null;
  11792. root1 = Y._firstIfRoot0(queue1);
  11793. root2 = Y._firstIfRoot0(queue2);
  11794. t1 = root1 != null;
  11795. if (t1 && root2 != null) {
  11796. root = Y.unifyCompound0(root1.components, root2.components);
  11797. if (root == null)
  11798. return _null;
  11799. queue1.addFirst$1(root);
  11800. queue2.addFirst$1(root);
  11801. } else if (t1)
  11802. queue2.addFirst$1(root1);
  11803. else if (root2 != null)
  11804. queue1.addFirst$1(root2);
  11805. groups1 = Y._groupSelectors0(queue1);
  11806. groups2 = Y._groupSelectors0(queue2);
  11807. t1 = type$.legacy_List_legacy_ComplexSelectorComponent_2;
  11808. lcs = B.longestCommonSubsequence0(groups2, groups1, new Y._weaveParents_closure6(), t1);
  11809. t2 = type$.JSArray_legacy_Iterable_legacy_ComplexSelectorComponent_2;
  11810. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2);
  11811. for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
  11812. group = lcs[_i];
  11813. t4 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure7(group), t1);
  11814. t5 = H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent0*>*>");
  11815. choices.push(P.List_List$from(new H.MappedListIterable(t4, new Y._weaveParents_closure8(), t5), true, t5._eval$1("ListIterable.E")));
  11816. choices.push(H.setRuntimeTypeInfo([group], t2));
  11817. groups1.removeFirst$0();
  11818. groups2.removeFirst$0();
  11819. }
  11820. t2 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure9(), t1);
  11821. t3 = H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent0*>*>");
  11822. choices.push(P.List_List$from(new H.MappedListIterable(t2, new Y._weaveParents_closure10(), t3), true, t3._eval$1("ListIterable.E")));
  11823. C.JSArray_methods.addAll$1(choices, finalCombinators);
  11824. return J.map$1$1$ax(Y.paths0(new H.WhereIterable(choices, new Y._weaveParents_closure11(), type$.WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2), type$.legacy_Iterable_legacy_ComplexSelectorComponent_2), new Y._weaveParents_closure12(), t1);
  11825. },
  11826. _firstIfRoot0: function(queue) {
  11827. var first;
  11828. if (queue._collection$_head === queue._collection$_tail)
  11829. return null;
  11830. first = queue.get$first(queue);
  11831. if (first instanceof X.CompoundSelector0) {
  11832. if (!Y._hasRoot0(first))
  11833. return null;
  11834. queue.removeFirst$0();
  11835. return first;
  11836. } else
  11837. return null;
  11838. },
  11839. _mergeInitialCombinators0: function(components1, components2) {
  11840. var t3, combinators2, lcs,
  11841. t1 = type$.JSArray_legacy_Combinator_2,
  11842. combinators1 = H.setRuntimeTypeInfo([], t1),
  11843. t2 = type$.legacy_Combinator_2;
  11844. while (true) {
  11845. if (!components1.get$isEmpty(components1)) {
  11846. t3 = components1._collection$_head;
  11847. if (t3 === components1._collection$_tail)
  11848. H.throwExpression(H.IterableElementError_noElement());
  11849. t3 = components1._collection$_table[t3] instanceof S.Combinator0;
  11850. } else
  11851. t3 = false;
  11852. if (!t3)
  11853. break;
  11854. combinators1.push(t2._as(components1.removeFirst$0()));
  11855. }
  11856. combinators2 = H.setRuntimeTypeInfo([], t1);
  11857. while (true) {
  11858. if (!components2.get$isEmpty(components2)) {
  11859. t1 = components2._collection$_head;
  11860. if (t1 === components2._collection$_tail)
  11861. H.throwExpression(H.IterableElementError_noElement());
  11862. t1 = components2._collection$_table[t1] instanceof S.Combinator0;
  11863. } else
  11864. t1 = false;
  11865. if (!t1)
  11866. break;
  11867. combinators2.push(t2._as(components2.removeFirst$0()));
  11868. }
  11869. lcs = B.longestCommonSubsequence0(combinators1, combinators2, null, t2);
  11870. if (C.C_ListEquality.equals$2(lcs, combinators1))
  11871. return combinators2;
  11872. if (C.C_ListEquality.equals$2(lcs, combinators2))
  11873. return combinators1;
  11874. return null;
  11875. },
  11876. _mergeFinalCombinators0: function(components1, components2, result) {
  11877. var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
  11878. if (result == null)
  11879. result = Q.QueueList$(_null, type$.legacy_List_legacy_List_legacy_ComplexSelectorComponent_2);
  11880. if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator0))
  11881. t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator0);
  11882. else
  11883. t1 = false;
  11884. if (t1)
  11885. return result;
  11886. t1 = type$.JSArray_legacy_Combinator_2;
  11887. combinators1 = H.setRuntimeTypeInfo([], t1);
  11888. t2 = type$.legacy_Combinator_2;
  11889. while (true) {
  11890. if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator0))
  11891. break;
  11892. combinators1.push(t2._as(components1.removeLast$0(0)));
  11893. }
  11894. combinators2 = H.setRuntimeTypeInfo([], t1);
  11895. while (true) {
  11896. if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator0))
  11897. break;
  11898. combinators2.push(t2._as(components2.removeLast$0(0)));
  11899. }
  11900. t1 = combinators1.length;
  11901. if (t1 > 1 || combinators2.length > 1) {
  11902. lcs = B.longestCommonSubsequence0(combinators1, combinators2, _null, t2);
  11903. if (C.C_ListEquality.equals$2(lcs, combinators1))
  11904. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_legacy_Combinator_2), true, type$.legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  11905. else if (C.C_ListEquality.equals$2(lcs, combinators2))
  11906. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_legacy_Combinator_2), true, type$.legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  11907. else
  11908. return _null;
  11909. return result;
  11910. }
  11911. combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
  11912. combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
  11913. t1 = combinator1 != null;
  11914. if (t1 && combinator2 != null) {
  11915. t1 = type$.legacy_CompoundSelector_2;
  11916. compound1 = t1._as(components1.removeLast$0(0));
  11917. compound2 = t1._as(components2.removeLast$0(0));
  11918. t1 = combinator1 === C.Combinator_CzM0;
  11919. if (t1 && combinator2 === C.Combinator_CzM0) {
  11920. compound1.toString;
  11921. if (Y.compoundIsSuperselector0(compound1, compound2, _null))
  11922. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  11923. else {
  11924. compound2.toString;
  11925. t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  11926. t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2;
  11927. if (Y.compoundIsSuperselector0(compound2, compound1, _null))
  11928. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0], t1)], t2));
  11929. else {
  11930. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0, compound2, C.Combinator_CzM0], t1), H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0, compound1, C.Combinator_CzM0], t1)], t2);
  11931. unified = Y.unifyCompound0(compound1.components, compound2.components);
  11932. if (unified != null)
  11933. choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM0], t1));
  11934. result.addFirst$1(choices);
  11935. }
  11936. }
  11937. } else {
  11938. if (!(t1 && combinator2 === C.Combinator_uzg0))
  11939. t2 = combinator1 === C.Combinator_uzg0 && combinator2 === C.Combinator_CzM0;
  11940. else
  11941. t2 = true;
  11942. if (t2) {
  11943. followingSiblingSelector = t1 ? compound1 : compound2;
  11944. nextSiblingSelector = t1 ? compound2 : compound1;
  11945. followingSiblingSelector.toString;
  11946. t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  11947. t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2;
  11948. if (Y.compoundIsSuperselector0(followingSiblingSelector, nextSiblingSelector, _null))
  11949. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg0], t1)], t2));
  11950. else {
  11951. unified = Y.unifyCompound0(compound1.components, compound2.components);
  11952. t2 = H.setRuntimeTypeInfo([], t2);
  11953. t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM0, nextSiblingSelector, C.Combinator_uzg0], t1));
  11954. if (unified != null)
  11955. t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg0], t1));
  11956. result.addFirst$1(t2);
  11957. }
  11958. } else {
  11959. if (combinator1 === C.Combinator_sgq0)
  11960. t2 = combinator2 === C.Combinator_uzg0 || combinator2 === C.Combinator_CzM0;
  11961. else
  11962. t2 = false;
  11963. if (t2) {
  11964. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  11965. components1._add$1(compound1);
  11966. components1._add$1(C.Combinator_sgq0);
  11967. } else {
  11968. if (combinator2 === C.Combinator_sgq0)
  11969. t1 = combinator1 === C.Combinator_uzg0 || t1;
  11970. else
  11971. t1 = false;
  11972. if (t1) {
  11973. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  11974. components2._add$1(compound2);
  11975. components2._add$1(C.Combinator_sgq0);
  11976. } else if (combinator1 === combinator2) {
  11977. unified = Y.unifyCompound0(compound1.components, compound2.components);
  11978. if (unified == null)
  11979. return _null;
  11980. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  11981. } else
  11982. return _null;
  11983. }
  11984. }
  11985. }
  11986. return Y._mergeFinalCombinators0(components1, components2, result);
  11987. } else if (t1) {
  11988. if (combinator1 === C.Combinator_sgq0)
  11989. if (!components2.get$isEmpty(components2)) {
  11990. t1 = type$.legacy_CompoundSelector_2;
  11991. t2 = t1._as(components2.get$last(components2));
  11992. t1 = t1._as(components1.get$last(components1));
  11993. t2.toString;
  11994. t1 = Y.compoundIsSuperselector0(t2, t1, _null);
  11995. } else
  11996. t1 = false;
  11997. else
  11998. t1 = false;
  11999. if (t1)
  12000. components2.removeLast$0(0);
  12001. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  12002. return Y._mergeFinalCombinators0(components1, components2, result);
  12003. } else {
  12004. if (combinator2 === C.Combinator_sgq0)
  12005. if (!components1.get$isEmpty(components1)) {
  12006. t1 = type$.legacy_CompoundSelector_2;
  12007. t2 = t1._as(components1.get$last(components1));
  12008. t1 = t1._as(components2.get$last(components2));
  12009. t2.toString;
  12010. t1 = Y.compoundIsSuperselector0(t2, t1, _null);
  12011. } else
  12012. t1 = false;
  12013. else
  12014. t1 = false;
  12015. if (t1)
  12016. components1.removeLast$0(0);
  12017. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  12018. return Y._mergeFinalCombinators0(components1, components2, result);
  12019. }
  12020. },
  12021. _mustUnify0: function(complex1, complex2) {
  12022. var t2, t3, t4,
  12023. t1 = P.LinkedHashSet_LinkedHashSet(type$.legacy_SimpleSelector_2);
  12024. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
  12025. t3 = t2.get$current(t2);
  12026. if (t3 instanceof X.CompoundSelector0)
  12027. for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions0___isUnique$closure()); t4.moveNext$0();)
  12028. t1.add$1(0, t3.get$current(t3));
  12029. }
  12030. if (t1._collection$_length === 0)
  12031. return false;
  12032. return J.any$1$ax(complex2, new Y._mustUnify_closure0(t1));
  12033. },
  12034. _isUnique0: function(simple) {
  12035. var t1;
  12036. if (!(simple instanceof N.IDSelector0))
  12037. t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
  12038. else
  12039. t1 = true;
  12040. return t1;
  12041. },
  12042. _chunks0: function(queue1, queue2, done, $T) {
  12043. var chunk2, t2, t3, _i,
  12044. t1 = $T._eval$1("JSArray<0*>"),
  12045. chunk1 = H.setRuntimeTypeInfo([], t1);
  12046. for (; !done.call$1(queue1);)
  12047. chunk1.push(queue1.removeFirst$0());
  12048. chunk2 = H.setRuntimeTypeInfo([], t1);
  12049. for (; !done.call$1(queue2);)
  12050. chunk2.push(queue2.removeFirst$0());
  12051. t2 = chunk1.length === 0;
  12052. if (t2 && chunk2.length === 0)
  12053. return H.setRuntimeTypeInfo([], $T._eval$1("JSArray<List<0*>*>"));
  12054. if (t2)
  12055. return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray<List<0*>*>"));
  12056. if (chunk2.length === 0)
  12057. return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray<List<0*>*>"));
  12058. t2 = H.setRuntimeTypeInfo([], t1);
  12059. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  12060. t2.push(chunk1[_i]);
  12061. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  12062. t2.push(chunk2[_i]);
  12063. t1 = H.setRuntimeTypeInfo([], t1);
  12064. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  12065. t1.push(chunk2[_i]);
  12066. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  12067. t1.push(chunk1[_i]);
  12068. return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray<List<0*>*>"));
  12069. },
  12070. paths0: function(choices, $T) {
  12071. return J.fold$2$ax(choices, H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"))], $T._eval$1("JSArray<List<0*>*>")), new Y.paths_closure0($T));
  12072. },
  12073. _groupSelectors0: function(complex) {
  12074. var t1, group, cur, t2,
  12075. groups = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent_2),
  12076. iterator = P._ListQueueIterator$(complex);
  12077. if (!iterator.moveNext$0())
  12078. return groups;
  12079. t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  12080. group = H.setRuntimeTypeInfo([iterator.get$current(iterator)], t1);
  12081. groups._queue_list$_add$1(group);
  12082. for (; iterator.moveNext$0();) {
  12083. if (!(C.JSArray_methods.get$last(group) instanceof S.Combinator0)) {
  12084. cur = iterator._collection$_current;
  12085. t2 = cur instanceof S.Combinator0;
  12086. } else
  12087. t2 = true;
  12088. cur = iterator._collection$_current;
  12089. if (t2)
  12090. group.push(cur);
  12091. else {
  12092. group = H.setRuntimeTypeInfo([cur], t1);
  12093. groups._queue_list$_add$1(group);
  12094. }
  12095. }
  12096. return groups;
  12097. },
  12098. _hasRoot0: function(compound) {
  12099. return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure0());
  12100. },
  12101. listIsSuperselector0: function(list1, list2) {
  12102. return C.JSArray_methods.every$1(list2, new Y.listIsSuperselector_closure0(list1));
  12103. },
  12104. complexIsParentSuperselector0: function(complex1, complex2) {
  12105. var t2, base, t3, t4,
  12106. t1 = J.getInterceptor$ax(complex1);
  12107. if (t1.get$first(complex1) instanceof S.Combinator0)
  12108. return false;
  12109. t2 = J.getInterceptor$ax(complex2);
  12110. if (t2.get$first(complex2) instanceof S.Combinator0)
  12111. return false;
  12112. if (t1.get$length(complex1) > t2.get$length(complex2))
  12113. return false;
  12114. base = X.CompoundSelector$0(H.setRuntimeTypeInfo([new N.PlaceholderSelector0("<temp>")], type$.JSArray_legacy_SimpleSelector_2));
  12115. t3 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  12116. t4 = H.setRuntimeTypeInfo([], t3);
  12117. for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
  12118. t4.push(t1.get$current(t1));
  12119. t4.push(base);
  12120. t1 = H.setRuntimeTypeInfo([], t3);
  12121. for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
  12122. t1.push(t2.get$current(t2));
  12123. t1.push(base);
  12124. return Y.complexIsSuperselector0(t4, t1);
  12125. },
  12126. complexIsSuperselector0: function(complex1, complex2) {
  12127. var t1, t2, i1, i2, remaining1, remaining2, t3, afterSuperselector, afterSuperselector0, t4, compound2, i10, combinator1, combinator2;
  12128. if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator0)
  12129. return false;
  12130. if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator0)
  12131. return false;
  12132. for (t1 = H._arrayInstanceType(complex2)._precomputed1, t2 = type$.legacy_CompoundSelector_2, i1 = 0, i2 = 0; true;) {
  12133. remaining1 = complex1.length - i1;
  12134. remaining2 = complex2.length - i2;
  12135. if (remaining1 === 0 || remaining2 === 0)
  12136. return false;
  12137. if (remaining1 > remaining2)
  12138. return false;
  12139. t3 = complex1[i1];
  12140. if (t3 instanceof S.Combinator0)
  12141. return false;
  12142. if (complex2[i2] instanceof S.Combinator0)
  12143. return false;
  12144. t2._as(t3);
  12145. if (remaining1 === 1)
  12146. return Y.compoundIsSuperselector0(t3, t2._as(C.JSArray_methods.get$last(complex2)), H.SubListIterable$(complex2, 0, complex2.length - 1, t1).skip$1(0, i2));
  12147. afterSuperselector = i2 + 1;
  12148. for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
  12149. t4 = afterSuperselector0 - 1;
  12150. compound2 = complex2[t4];
  12151. if (compound2 instanceof X.CompoundSelector0)
  12152. if (Y.compoundIsSuperselector0(t3, compound2, H.SubListIterable$(complex2, 0, t4, t1).skip$1(0, afterSuperselector)))
  12153. break;
  12154. }
  12155. if (afterSuperselector0 === complex2.length)
  12156. return false;
  12157. i10 = i1 + 1;
  12158. combinator1 = complex1[i10];
  12159. combinator2 = complex2[afterSuperselector0];
  12160. if (combinator1 instanceof S.Combinator0) {
  12161. if (!(combinator2 instanceof S.Combinator0))
  12162. return false;
  12163. if (combinator1 === C.Combinator_CzM0) {
  12164. if (combinator2 === C.Combinator_sgq0)
  12165. return false;
  12166. } else if (combinator2 !== combinator1)
  12167. return false;
  12168. if (remaining1 === 3 && remaining2 > 3)
  12169. return false;
  12170. i1 += 2;
  12171. i2 = afterSuperselector0 + 1;
  12172. } else {
  12173. if (combinator2 instanceof S.Combinator0) {
  12174. if (combinator2 !== C.Combinator_sgq0)
  12175. return false;
  12176. i2 = afterSuperselector0 + 1;
  12177. } else
  12178. i2 = afterSuperselector0;
  12179. i1 = i10;
  12180. }
  12181. }
  12182. },
  12183. compoundIsSuperselector0: function(compound1, compound2, parents) {
  12184. var t1, t2, _i, simple1, simple2;
  12185. for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  12186. simple1 = t1[_i];
  12187. if (simple1 instanceof D.PseudoSelector0 && simple1.selector != null) {
  12188. if (!Y._selectorPseudoIsSuperselector0(simple1, compound2, parents))
  12189. return false;
  12190. } else if (!Y._simpleIsSuperselectorOfCompound0(simple1, compound2))
  12191. return false;
  12192. }
  12193. for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  12194. simple2 = t1[_i];
  12195. if (simple2 instanceof D.PseudoSelector0 && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound0(simple2, compound1))
  12196. return false;
  12197. }
  12198. return true;
  12199. },
  12200. _simpleIsSuperselectorOfCompound0: function(simple, compound) {
  12201. return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure0(simple));
  12202. },
  12203. _selectorPseudoIsSuperselector0: function(pseudo1, compound2, parents) {
  12204. switch (pseudo1.normalizedName) {
  12205. case "matches":
  12206. case "any":
  12207. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure6(pseudo1)) || C.JSArray_methods.any$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure7(parents, compound2));
  12208. case "has":
  12209. case "host":
  12210. case "host-context":
  12211. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure8(pseudo1));
  12212. case "slotted":
  12213. return Y._selectorPseudosNamed0(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure9(pseudo1));
  12214. case "not":
  12215. return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure10(compound2, pseudo1));
  12216. case "current":
  12217. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure11(pseudo1));
  12218. case "nth-child":
  12219. case "nth-last-child":
  12220. return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure12(pseudo1));
  12221. default:
  12222. throw H.wrapException("unreachable");
  12223. }
  12224. },
  12225. _selectorPseudosNamed0: function(compound, $name, isClass) {
  12226. var t1 = type$.WhereTypeIterable_legacy_PseudoSelector_2;
  12227. return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure0(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>"));
  12228. },
  12229. unifyComplex_closure0: function unifyComplex_closure0() {
  12230. },
  12231. _weaveParents_closure6: function _weaveParents_closure6() {
  12232. },
  12233. _weaveParents_closure7: function _weaveParents_closure7(t0) {
  12234. this.group = t0;
  12235. },
  12236. _weaveParents_closure8: function _weaveParents_closure8() {
  12237. },
  12238. _weaveParents__closure4: function _weaveParents__closure4() {
  12239. },
  12240. _weaveParents_closure9: function _weaveParents_closure9() {
  12241. },
  12242. _weaveParents_closure10: function _weaveParents_closure10() {
  12243. },
  12244. _weaveParents__closure3: function _weaveParents__closure3() {
  12245. },
  12246. _weaveParents_closure11: function _weaveParents_closure11() {
  12247. },
  12248. _weaveParents_closure12: function _weaveParents_closure12() {
  12249. },
  12250. _weaveParents__closure2: function _weaveParents__closure2() {
  12251. },
  12252. _mustUnify_closure0: function _mustUnify_closure0(t0) {
  12253. this.uniqueSelectors = t0;
  12254. },
  12255. _mustUnify__closure0: function _mustUnify__closure0(t0) {
  12256. this.uniqueSelectors = t0;
  12257. },
  12258. paths_closure0: function paths_closure0(t0) {
  12259. this.T = t0;
  12260. },
  12261. paths__closure0: function paths__closure0(t0, t1) {
  12262. this.paths = t0;
  12263. this.T = t1;
  12264. },
  12265. paths___closure0: function paths___closure0(t0, t1) {
  12266. this.option = t0;
  12267. this.T = t1;
  12268. },
  12269. _hasRoot_closure0: function _hasRoot_closure0() {
  12270. },
  12271. listIsSuperselector_closure0: function listIsSuperselector_closure0(t0) {
  12272. this.list1 = t0;
  12273. },
  12274. listIsSuperselector__closure0: function listIsSuperselector__closure0(t0) {
  12275. this.complex1 = t0;
  12276. },
  12277. _simpleIsSuperselectorOfCompound_closure0: function _simpleIsSuperselectorOfCompound_closure0(t0) {
  12278. this.simple = t0;
  12279. },
  12280. _simpleIsSuperselectorOfCompound__closure0: function _simpleIsSuperselectorOfCompound__closure0(t0) {
  12281. this.simple = t0;
  12282. },
  12283. _selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) {
  12284. this.pseudo1 = t0;
  12285. },
  12286. _selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) {
  12287. this.parents = t0;
  12288. this.compound2 = t1;
  12289. },
  12290. _selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) {
  12291. this.pseudo1 = t0;
  12292. },
  12293. _selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) {
  12294. this.pseudo1 = t0;
  12295. },
  12296. _selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) {
  12297. this.compound2 = t0;
  12298. this.pseudo1 = t1;
  12299. },
  12300. _selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) {
  12301. this.complex = t0;
  12302. this.pseudo1 = t1;
  12303. },
  12304. _selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) {
  12305. this.simple2 = t0;
  12306. },
  12307. _selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) {
  12308. this.simple2 = t0;
  12309. },
  12310. _selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) {
  12311. this.pseudo1 = t0;
  12312. },
  12313. _selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0) {
  12314. this.pseudo1 = t0;
  12315. },
  12316. _selectorPseudosNamed_closure0: function _selectorPseudosNamed_closure0(t0, t1) {
  12317. this.isClass = t0;
  12318. this.name = t1;
  12319. },
  12320. closure105: function closure105() {
  12321. },
  12322. WarnRule0: function WarnRule0(t0, t1) {
  12323. this.expression = t0;
  12324. this.span = t1;
  12325. },
  12326. mergeMaps: function(map1, map2, $K, $V) {
  12327. var result = P.LinkedHashMap_LinkedHashMap$from(map1, $K._eval$1("0*"), $V._eval$1("0*"));
  12328. result.addAll$1(0, map2);
  12329. return result;
  12330. },
  12331. groupBy: function(values, key, $S, $T) {
  12332. var t1, t2, _i, element, t3, t4,
  12333. map = P.LinkedHashMap_LinkedHashMap$_empty($T._eval$1("0*"), $S._eval$1("List<0*>*"));
  12334. for (t1 = values.length, t2 = $S._eval$1("JSArray<0*>"), _i = 0; _i < values.length; values.length === t1 || (0, H.throwConcurrentModificationError)(values), ++_i) {
  12335. element = values[_i];
  12336. t3 = key.call$1(element);
  12337. t4 = map.$index(0, t3);
  12338. if (t4 == null) {
  12339. t4 = H.setRuntimeTypeInfo([], t2);
  12340. map.$indexSet(0, t3, t4);
  12341. t3 = t4;
  12342. } else
  12343. t3 = t4;
  12344. t3.push(element);
  12345. }
  12346. return map;
  12347. },
  12348. minBy: function(values, orderBy, $S, $T) {
  12349. var t1, minValue, minOrderBy, cur, elementOrderBy,
  12350. compare = B.defaultCompare($T._eval$1("0*"));
  12351. for (t1 = new H.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f), minValue = null, minOrderBy = null; t1.moveNext$0();) {
  12352. cur = t1.__internal$_current;
  12353. elementOrderBy = orderBy.call$1(cur);
  12354. if (minOrderBy == null || compare.call$2(elementOrderBy, minOrderBy) < 0) {
  12355. minOrderBy = elementOrderBy;
  12356. minValue = cur;
  12357. }
  12358. }
  12359. return minValue;
  12360. },
  12361. repl: function(options) {
  12362. return Y.repl$body(options);
  12363. },
  12364. repl$body: function(options) {
  12365. var $async$goto = 0,
  12366. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  12367. $async$handler = 1, $async$currentError, $async$next = [], repl, logger, evaluator, line, declaration, error, stackTrace, t4, t5, t6, t7, t8, t9, t10, line0, toZone, exception, t1, t2, t3, repl0;
  12368. var $async$repl = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  12369. if ($async$errorCode === 1) {
  12370. $async$currentError = $async$result;
  12371. $async$goto = $async$handler;
  12372. }
  12373. while (true)
  12374. switch ($async$goto) {
  12375. case 0:
  12376. // Function start
  12377. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  12378. t2 = C.JSString_methods.$mul(" ", 3);
  12379. t3 = $.$get$alwaysValid();
  12380. repl0 = new Q.Repl(">> ", t2, t3, t1);
  12381. repl0._adapter = new B.ReplAdapter(repl0);
  12382. repl = repl0;
  12383. t1 = options._options;
  12384. logger = new T.TrackingLogger(H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color()));
  12385. t2 = D.absolute(".");
  12386. evaluator = new R.Evaluator(R._EvaluateVisitor$(null, R.ImportCache$(C.List_empty10, type$.legacy_List_legacy_String._as(t1.$index(0, "load-path")), logger), logger, null, false), new F.FilesystemImporter(t2));
  12387. t2 = repl._adapter.runAsync$0();
  12388. t1 = new P._StreamIterator(t2);
  12389. P.ArgumentError_checkNotNull(t2, "stream");
  12390. $async$handler = 2;
  12391. t2 = type$.legacy_Expression, t3 = type$.legacy_String, t4 = type$.legacy_VariableDeclaration, t5 = type$.JSArray_legacy_int;
  12392. case 5:
  12393. // for condition
  12394. $async$goto = 7;
  12395. return P._asyncAwait(t1.moveNext$0(), $async$repl);
  12396. case 7:
  12397. // returning from await.
  12398. if (!$async$result) {
  12399. // goto after for
  12400. $async$goto = 6;
  12401. break;
  12402. }
  12403. line = t1.get$current(t1);
  12404. if (J.trim$0$s(line).length === 0) {
  12405. // goto for condition
  12406. $async$goto = 5;
  12407. break;
  12408. }
  12409. try {
  12410. if (J.startsWith$1$s(line, "@")) {
  12411. t6 = evaluator;
  12412. t7 = line;
  12413. t8 = logger;
  12414. t7.toString;
  12415. t9 = new H.CodeUnits(t7);
  12416. t10 = H.setRuntimeTypeInfo([0], t5);
  12417. t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
  12418. t10.SourceFile$decoded$2$url(t9, null);
  12419. if (t8 == null)
  12420. t8 = C.StderrLogger_false;
  12421. t8 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t10, null, t7), t8).parseUseRule$0();
  12422. t6._visitor.runStatement$2(t6._importer, t8);
  12423. // goto for condition
  12424. $async$goto = 5;
  12425. break;
  12426. }
  12427. t6 = line;
  12428. t6.toString;
  12429. t7 = new H.CodeUnits(t6);
  12430. t8 = H.setRuntimeTypeInfo([0], t5);
  12431. t8 = new Y.SourceFile(null, t8, new Uint32Array(H._ensureNativeList(t7.toList$0(t7))));
  12432. t8.SourceFile$decoded$2$url(t7, null);
  12433. if (new G.Parser(new S.SpanScanner(t8, null, t6), C.StderrLogger_false)._isVariableDeclarationLike$0()) {
  12434. t6 = line;
  12435. t7 = logger;
  12436. t6.toString;
  12437. t8 = new H.CodeUnits(t6);
  12438. t9 = H.setRuntimeTypeInfo([0], t5);
  12439. t9 = new Y.SourceFile(null, t9, new Uint32Array(H._ensureNativeList(t8.toList$0(t8))));
  12440. t9.SourceFile$decoded$2$url(t8, null);
  12441. if (t7 == null)
  12442. t7 = C.StderrLogger_false;
  12443. declaration = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t9, null, t6), t7).parseVariableDeclaration$0();
  12444. t7 = evaluator;
  12445. t7._visitor.runStatement$2(t7._importer, declaration);
  12446. t7 = evaluator;
  12447. t6 = declaration.name;
  12448. t9 = declaration.span;
  12449. t8 = declaration.namespace;
  12450. line0 = J.toString$0$(t7._visitor.runExpression$2(t7._importer, new S.VariableExpression(t8, t6, t9)));
  12451. toZone = $.printToZone;
  12452. if (toZone == null)
  12453. H.printString(line0);
  12454. else
  12455. toZone.call$1(line0);
  12456. } else {
  12457. t6 = evaluator;
  12458. t7 = line;
  12459. t8 = logger;
  12460. t7.toString;
  12461. t9 = new H.CodeUnits(t7);
  12462. t10 = H.setRuntimeTypeInfo([0], t5);
  12463. t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
  12464. t10.SourceFile$decoded$2$url(t9, null);
  12465. if (t8 == null)
  12466. t8 = C.StderrLogger_false;
  12467. t8 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t10, null, t7), t8);
  12468. t8 = t8._parseSingleProduction$1$1(t8.get$expression(), t2);
  12469. line0 = J.toString$0$(t6._visitor.runExpression$2(t6._importer, t8));
  12470. toZone = $.printToZone;
  12471. if (toZone == null)
  12472. H.printString(line0);
  12473. else
  12474. toZone.call$1(line0);
  12475. }
  12476. } catch (exception) {
  12477. t6 = H.unwrapException(exception);
  12478. if (t6 instanceof E.SassException) {
  12479. error = t6;
  12480. stackTrace = H.getTraceFromException(exception);
  12481. Y._logError(error, stackTrace, line, repl, options, logger);
  12482. } else
  12483. throw exception;
  12484. }
  12485. // goto for condition
  12486. $async$goto = 5;
  12487. break;
  12488. case 6:
  12489. // after for
  12490. $async$next.push(4);
  12491. // goto finally
  12492. $async$goto = 3;
  12493. break;
  12494. case 2:
  12495. // uncaught
  12496. $async$next = [1];
  12497. case 3:
  12498. // finally
  12499. $async$handler = 1;
  12500. $async$goto = 8;
  12501. return P._asyncAwait(t1.cancel$0(), $async$repl);
  12502. case 8:
  12503. // returning from await.
  12504. // goto the next finally handler
  12505. $async$goto = $async$next.pop();
  12506. break;
  12507. case 4:
  12508. // after finally
  12509. // implicit return
  12510. return P._asyncReturn(null, $async$completer);
  12511. case 1:
  12512. // rethrow
  12513. return P._asyncRethrow($async$currentError, $async$completer);
  12514. }
  12515. });
  12516. return P._asyncStartSync($async$repl, $async$completer);
  12517. },
  12518. _logError: function(error, stackTrace, line, repl, options, logger) {
  12519. var t1, t2, spacesBeforeError;
  12520. if (G.SourceSpanException.prototype.get$span.call(error).file.url == null)
  12521. if (!H._asBoolS(options._options.$index(0, "quiet")))
  12522. t1 = logger._emittedDebug || logger._emittedWarning;
  12523. else
  12524. t1 = false;
  12525. else
  12526. t1 = true;
  12527. if (t1) {
  12528. P.print(error.toString$1$color(0, options.get$color()));
  12529. return;
  12530. }
  12531. t1 = options.get$color() ? "\x1b[31m" : "";
  12532. t2 = G.SourceSpanException.prototype.get$span.call(error);
  12533. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  12534. spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset);
  12535. if (options.get$color()) {
  12536. t2 = G.SourceSpanException.prototype.get$span.call(error);
  12537. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  12538. t2 = t2.file.getColumn$1(t2.offset) < line.length;
  12539. } else
  12540. t2 = false;
  12541. if (t2) {
  12542. t1 += "\x1b[1F\x1b[" + spacesBeforeError + "C";
  12543. t2 = G.SourceSpanException.prototype.get$span.call(error);
  12544. t2 = t1 + (P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null) + "\n");
  12545. t1 = t2;
  12546. }
  12547. t1 += C.JSString_methods.$mul(" ", spacesBeforeError);
  12548. t2 = G.SourceSpanException.prototype.get$span.call(error);
  12549. t2 = t1 + (C.JSString_methods.$mul("^", Math.max(1, t2._end - t2._file$_start)) + "\n");
  12550. t1 = options.get$color() ? t2 + "\x1b[0m" : t2;
  12551. t1 += "Error: " + H.S(error._span_exception$_message) + "\n";
  12552. if (H._asBoolS(options._options.$index(0, "trace")))
  12553. t1 += Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0);
  12554. P.print(C.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1));
  12555. }
  12556. },
  12557. L = {StreamGroup: function StreamGroup(t0, t1, t2) {
  12558. var _ = this;
  12559. _._controller = null;
  12560. _._closed = false;
  12561. _._stream_group$_state = t0;
  12562. _._subscriptions = t1;
  12563. _.$ti = t2;
  12564. }, StreamGroup_add_closure: function StreamGroup_add_closure() {
  12565. }, StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) {
  12566. this.$this = t0;
  12567. this.stream = t1;
  12568. }, StreamGroup__onListen_closure: function StreamGroup__onListen_closure(t0) {
  12569. this.$this = t0;
  12570. }, StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure() {
  12571. }, StreamGroup__onCancel_closure0: function StreamGroup__onCancel_closure0() {
  12572. }, StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) {
  12573. this.$this = t0;
  12574. this.stream = t1;
  12575. }, _StreamGroupState: function _StreamGroupState(t0) {
  12576. this.name = t0;
  12577. },
  12578. UnmodifiableSetMixin__throw: function() {
  12579. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
  12580. },
  12581. UnmodifiableSetView: function UnmodifiableSetView(t0, t1) {
  12582. this._base = t0;
  12583. this.$ti = t1;
  12584. },
  12585. UnmodifiableSetMixin: function UnmodifiableSetMixin() {
  12586. },
  12587. _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() {
  12588. },
  12589. WindowsStyle: function WindowsStyle(t0, t1, t2, t3) {
  12590. var _ = this;
  12591. _.separatorPattern = t0;
  12592. _.needsSeparatorPattern = t1;
  12593. _.rootPattern = t2;
  12594. _.relativeRootPattern = t3;
  12595. },
  12596. WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() {
  12597. },
  12598. ModifiableCssDeclaration$: function($name, value, span, valueSpanForMap) {
  12599. return new L.ModifiableCssDeclaration($name, value, valueSpanForMap == null ? span : valueSpanForMap, span);
  12600. },
  12601. ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3) {
  12602. var _ = this;
  12603. _.name = t0;
  12604. _.value = t1;
  12605. _.valueSpanForMap = t2;
  12606. _.span = t3;
  12607. _._indexInParent = _._parent = null;
  12608. _.isGroupEnd = false;
  12609. },
  12610. IfExpression: function IfExpression(t0, t1) {
  12611. this.$arguments = t0;
  12612. this.span = t1;
  12613. },
  12614. Declaration$: function($name, span, children, value) {
  12615. var t1;
  12616. children = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement);
  12617. t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure());
  12618. return new L.Declaration($name, value, span, children, t1 === true);
  12619. },
  12620. Declaration: function Declaration(t0, t1, t2, t3, t4) {
  12621. var _ = this;
  12622. _.name = t0;
  12623. _.value = t1;
  12624. _.span = t2;
  12625. _.children = t3;
  12626. _.hasDeclarations = t4;
  12627. },
  12628. ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) {
  12629. var _ = this;
  12630. _.url = t0;
  12631. _.shownMixinsAndFunctions = t1;
  12632. _.shownVariables = t2;
  12633. _.hiddenMixinsAndFunctions = t3;
  12634. _.hiddenVariables = t4;
  12635. _.prefix = t5;
  12636. _.configuration = t6;
  12637. _.span = t7;
  12638. },
  12639. LoudComment: function LoudComment(t0) {
  12640. this.text = t0;
  12641. },
  12642. SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) {
  12643. this.name = t0;
  12644. this.value = t1;
  12645. this.span = t2;
  12646. },
  12647. PlainCssCallable: function PlainCssCallable(t0) {
  12648. this.name = t0;
  12649. },
  12650. ExtendMode: function ExtendMode(t0) {
  12651. this.name = t0;
  12652. },
  12653. ScssParser: function ScssParser(t0, t1, t2) {
  12654. var _ = this;
  12655. _._isUseAllowed = true;
  12656. _._stylesheet$_inMixin = false;
  12657. _._mixinHasContent = null;
  12658. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  12659. _._globalVariables = t0;
  12660. _.lastSilentComment = null;
  12661. _.scanner = t1;
  12662. _.logger = t2;
  12663. },
  12664. Entry: function Entry(t0, t1, t2) {
  12665. this.source = t0;
  12666. this.target = t1;
  12667. this.identifierName = t2;
  12668. },
  12669. _StreamTransformer__defaultHandleError: function(error, stackTrace, sink) {
  12670. sink.addError$2(error, stackTrace);
  12671. },
  12672. _StreamTransformer: function _StreamTransformer(t0, t1, t2, t3) {
  12673. var _ = this;
  12674. _._from_handlers$_handleData = t0;
  12675. _._from_handlers$_handleDone = t1;
  12676. _._from_handlers$_handleError = t2;
  12677. _.$ti = t3;
  12678. },
  12679. _StreamTransformer_bind_closure: function _StreamTransformer_bind_closure(t0, t1, t2, t3) {
  12680. var _ = this;
  12681. _._box_1 = t0;
  12682. _.$this = t1;
  12683. _.values = t2;
  12684. _.controller = t3;
  12685. },
  12686. _StreamTransformer_bind__closure: function _StreamTransformer_bind__closure(t0, t1) {
  12687. this.$this = t0;
  12688. this.controller = t1;
  12689. },
  12690. _StreamTransformer_bind__closure1: function _StreamTransformer_bind__closure1(t0, t1) {
  12691. this.$this = t0;
  12692. this.controller = t1;
  12693. },
  12694. _StreamTransformer_bind__closure0: function _StreamTransformer_bind__closure0(t0, t1, t2) {
  12695. this._box_0 = t0;
  12696. this.$this = t1;
  12697. this.controller = t2;
  12698. },
  12699. _StreamTransformer_bind__closure2: function _StreamTransformer_bind__closure2(t0, t1) {
  12700. this._box_1 = t0;
  12701. this._box_0 = t1;
  12702. },
  12703. ModifiableCssDeclaration$0: function($name, value, span, valueSpanForMap) {
  12704. return new L.ModifiableCssDeclaration0($name, value, valueSpanForMap == null ? span : valueSpanForMap, span);
  12705. },
  12706. ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3) {
  12707. var _ = this;
  12708. _.name = t0;
  12709. _.value = t1;
  12710. _.valueSpanForMap = t2;
  12711. _.span = t3;
  12712. _._node2$_indexInParent = _._node2$_parent = null;
  12713. _.isGroupEnd = false;
  12714. },
  12715. Declaration$0: function($name, span, children, value) {
  12716. var t1;
  12717. children = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  12718. t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure0());
  12719. return new L.Declaration0($name, value, span, children, t1 === true);
  12720. },
  12721. Declaration0: function Declaration0(t0, t1, t2, t3, t4) {
  12722. var _ = this;
  12723. _.name = t0;
  12724. _.value = t1;
  12725. _.span = t2;
  12726. _.children = t3;
  12727. _.hasDeclarations = t4;
  12728. },
  12729. SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) {
  12730. this.name = t0;
  12731. this.value = t1;
  12732. this.span = t2;
  12733. },
  12734. ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) {
  12735. var _ = this;
  12736. _.url = t0;
  12737. _.shownMixinsAndFunctions = t1;
  12738. _.shownVariables = t2;
  12739. _.hiddenMixinsAndFunctions = t3;
  12740. _.hiddenVariables = t4;
  12741. _.prefix = t5;
  12742. _.configuration = t6;
  12743. _.span = t7;
  12744. },
  12745. IfExpression0: function IfExpression0(t0, t1) {
  12746. this.$arguments = t0;
  12747. this.span = t1;
  12748. },
  12749. LoudComment0: function LoudComment0(t0) {
  12750. this.text = t0;
  12751. },
  12752. ExtendMode0: function ExtendMode0(t0) {
  12753. this.name = t0;
  12754. },
  12755. PlainCssCallable0: function PlainCssCallable0(t0) {
  12756. this.name = t0;
  12757. },
  12758. RenderContextOptions: function RenderContextOptions() {
  12759. },
  12760. ScssParser0: function ScssParser0(t0, t1, t2) {
  12761. var _ = this;
  12762. _._stylesheet0$_isUseAllowed = true;
  12763. _._stylesheet0$_inMixin = false;
  12764. _._stylesheet0$_mixinHasContent = null;
  12765. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  12766. _._stylesheet0$_globalVariables = t0;
  12767. _.lastSilentComment = null;
  12768. _.scanner = t1;
  12769. _.logger = t2;
  12770. },
  12771. encodeVlq: function(value) {
  12772. var res, signBit, digit, t1;
  12773. if (value < $.$get$MIN_INT32() || value > $.$get$MAX_INT32())
  12774. throw H.wrapException(P.ArgumentError$("expected 32 bit int, got: " + value));
  12775. res = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  12776. if (value < 0) {
  12777. value = -value;
  12778. signBit = 1;
  12779. } else
  12780. signBit = 0;
  12781. value = value << 1 | signBit;
  12782. do {
  12783. digit = value & 31;
  12784. value = value >>> 5;
  12785. t1 = value > 0;
  12786. res.push(string$.ABCDEF[t1 ? digit | 32 : digit]);
  12787. } while (t1);
  12788. return res;
  12789. }
  12790. },
  12791. Q = {Repl: function Repl(t0, t1, t2, t3) {
  12792. var _ = this;
  12793. _.prompt = t0;
  12794. _.continuation = t1;
  12795. _.validator = t2;
  12796. _._adapter = null;
  12797. _.history = t3;
  12798. }, closure104: function closure104() {
  12799. },
  12800. QueueList$: function(initialCapacity, $E) {
  12801. var t1 = new Q.QueueList(0, 0, $E._eval$1("QueueList<0>"));
  12802. t1.QueueList$1(initialCapacity, $E);
  12803. return t1;
  12804. },
  12805. QueueList_QueueList$from: function(source, $E) {
  12806. var $length, queue,
  12807. t1 = $E._eval$1("0*");
  12808. if (type$.legacy_List_dynamic._is(source)) {
  12809. $length = J.get$length$asx(source);
  12810. queue = Q.QueueList$($length + 1, t1);
  12811. J.setRange$4$ax(queue._table, 0, $length, source, 0);
  12812. queue._tail = $length;
  12813. return queue;
  12814. } else {
  12815. t1 = Q.QueueList$(null, t1);
  12816. t1.addAll$1(0, source);
  12817. return t1;
  12818. }
  12819. },
  12820. QueueList__nextPowerOf2: function(number) {
  12821. var nextNumber;
  12822. number = (number << 1 >>> 0) - 1;
  12823. for (; true; number = nextNumber) {
  12824. nextNumber = (number & number - 1) >>> 0;
  12825. if (nextNumber === 0)
  12826. return number;
  12827. }
  12828. },
  12829. QueueList: function QueueList(t0, t1, t2) {
  12830. var _ = this;
  12831. _._table = null;
  12832. _._head = t0;
  12833. _._tail = t1;
  12834. _.$ti = t2;
  12835. },
  12836. _CastQueueList: function _CastQueueList(t0, t1, t2, t3) {
  12837. var _ = this;
  12838. _._queue_list$_delegate = t0;
  12839. _._table = null;
  12840. _._head = t1;
  12841. _._tail = t2;
  12842. _.$ti = t3;
  12843. },
  12844. _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() {
  12845. },
  12846. StaticImport: function StaticImport(t0, t1, t2, t3) {
  12847. var _ = this;
  12848. _.url = t0;
  12849. _.supports = t1;
  12850. _.media = t2;
  12851. _.span = t3;
  12852. },
  12853. ContentRule: function ContentRule(t0, t1) {
  12854. this.span = t0;
  12855. this.$arguments = t1;
  12856. },
  12857. DebugRule: function DebugRule(t0, t1) {
  12858. this.expression = t0;
  12859. this.span = t1;
  12860. },
  12861. AsyncEnvironment$: function(sourceMap) {
  12862. var _null = null,
  12863. t1 = type$.legacy_String,
  12864. t2 = type$.legacy_Module_legacy_AsyncCallable,
  12865. t3 = type$.legacy_AstNode,
  12866. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable),
  12867. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value),
  12868. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode) : _null,
  12869. t7 = type$.legacy_int,
  12870. t8 = type$.legacy_AsyncCallable,
  12871. t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable;
  12872. return new Q.AsyncEnvironment(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  12873. },
  12874. AsyncEnvironment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  12875. var t1 = type$.legacy_String,
  12876. t2 = type$.legacy_int;
  12877. return new Q.AsyncEnvironment(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  12878. },
  12879. _EnvironmentModule__EnvironmentModule0: function(environment, css, extender, forwarded) {
  12880. var t1, t2, t3, t4, t5, t6;
  12881. if (forwarded == null)
  12882. forwarded = C.Set_empty0;
  12883. t1 = Q._EnvironmentModule__makeModulesByVariable0(forwarded);
  12884. t2 = H._instanceType(forwarded);
  12885. t3 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_variables), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure5(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Value*>*>")), type$.legacy_Value);
  12886. t4 = environment._async_environment$_variableNodes;
  12887. t4 = t4 == null ? null : Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure6(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AstNode*>*>")), type$.legacy_AstNode);
  12888. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AsyncCallable*>*>");
  12889. t5 = type$.legacy_AsyncCallable;
  12890. t6 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure7(), t2), t5);
  12891. t5 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure8(), t2), t5);
  12892. t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure9());
  12893. return Q._EnvironmentModule$_0(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure10()));
  12894. },
  12895. _EnvironmentModule__makeModulesByVariable0: function(forwarded) {
  12896. var modulesByVariable, t1, t2, t3, t4;
  12897. if (forwarded.get$isEmpty(forwarded))
  12898. return C.Map_empty4;
  12899. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_AsyncCallable);
  12900. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  12901. t2 = t1.get$current(t1);
  12902. if (t2 instanceof Q._EnvironmentModule0) {
  12903. for (t3 = t2._async_environment$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  12904. t4 = t3.get$current(t3);
  12905. B.setAll(modulesByVariable, t4.get$variables().get$keys(), t4);
  12906. }
  12907. B.setAll(modulesByVariable, C.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables).get$keys(), t2);
  12908. } else
  12909. B.setAll(modulesByVariable, t2.get$variables().get$keys(), t2);
  12910. }
  12911. return modulesByVariable;
  12912. },
  12913. _EnvironmentModule__memberMap0: function(localMap, otherMaps, $V) {
  12914. var t1, t2, t3, cur;
  12915. localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0*>"));
  12916. t1 = otherMaps.__internal$_iterable;
  12917. t2 = J.getInterceptor$asx(t1);
  12918. if (t2.get$isEmpty(t1))
  12919. return localMap;
  12920. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String*,0*>*>"));
  12921. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  12922. cur = t1.__internal$_current;
  12923. if (cur.get$isNotEmpty(cur))
  12924. t3.push(cur);
  12925. }
  12926. t3.push(localMap);
  12927. if (t3.length === 1)
  12928. return localMap;
  12929. return Z.MergedMapView$(t3, type$.legacy_String, $V._eval$1("0*"));
  12930. },
  12931. _EnvironmentModule$_0: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  12932. return new Q._EnvironmentModule0(_environment._async_environment$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  12933. },
  12934. AsyncEnvironment: function AsyncEnvironment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  12935. var _ = this;
  12936. _._async_environment$_modules = t0;
  12937. _._async_environment$_namespaceNodes = t1;
  12938. _._async_environment$_globalModules = t2;
  12939. _._async_environment$_globalModuleNodes = t3;
  12940. _._async_environment$_forwardedModules = t4;
  12941. _._async_environment$_forwardedModuleNodes = t5;
  12942. _._async_environment$_nestedForwardedModules = t6;
  12943. _._async_environment$_allModules = t7;
  12944. _._async_environment$_variables = t8;
  12945. _._async_environment$_variableNodes = t9;
  12946. _._async_environment$_variableIndices = t10;
  12947. _._async_environment$_functions = t11;
  12948. _._async_environment$_functionIndices = t12;
  12949. _._async_environment$_mixins = t13;
  12950. _._async_environment$_mixinIndices = t14;
  12951. _._async_environment$_content = t15;
  12952. _._async_environment$_inMixin = false;
  12953. _._async_environment$_inSemiGlobalScope = true;
  12954. _._async_environment$_lastVariableIndex = _._async_environment$_lastVariableName = null;
  12955. },
  12956. AsyncEnvironment_importForwards_closure: function AsyncEnvironment_importForwards_closure() {
  12957. },
  12958. AsyncEnvironment_importForwards_closure0: function AsyncEnvironment_importForwards_closure0() {
  12959. },
  12960. AsyncEnvironment_importForwards_closure1: function AsyncEnvironment_importForwards_closure1() {
  12961. },
  12962. AsyncEnvironment_importForwards_closure2: function AsyncEnvironment_importForwards_closure2() {
  12963. },
  12964. AsyncEnvironment__getVariableFromGlobalModule_closure: function AsyncEnvironment__getVariableFromGlobalModule_closure(t0) {
  12965. this.name = t0;
  12966. },
  12967. AsyncEnvironment_setVariable_closure: function AsyncEnvironment_setVariable_closure(t0, t1) {
  12968. this.$this = t0;
  12969. this.name = t1;
  12970. },
  12971. AsyncEnvironment_setVariable_closure0: function AsyncEnvironment_setVariable_closure0(t0) {
  12972. this.name = t0;
  12973. },
  12974. AsyncEnvironment_setVariable_closure1: function AsyncEnvironment_setVariable_closure1(t0, t1) {
  12975. this.$this = t0;
  12976. this.name = t1;
  12977. },
  12978. AsyncEnvironment__getFunctionFromGlobalModule_closure: function AsyncEnvironment__getFunctionFromGlobalModule_closure(t0) {
  12979. this.name = t0;
  12980. },
  12981. AsyncEnvironment__getMixinFromGlobalModule_closure: function AsyncEnvironment__getMixinFromGlobalModule_closure(t0) {
  12982. this.name = t0;
  12983. },
  12984. _EnvironmentModule0: function _EnvironmentModule0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  12985. var _ = this;
  12986. _.upstream = t0;
  12987. _.variables = t1;
  12988. _.variableNodes = t2;
  12989. _.functions = t3;
  12990. _.mixins = t4;
  12991. _.extender = t5;
  12992. _.css = t6;
  12993. _.transitivelyContainsCss = t7;
  12994. _.transitivelyContainsExtensions = t8;
  12995. _._async_environment$_environment = t9;
  12996. _._async_environment$_modulesByVariable = t10;
  12997. },
  12998. _EnvironmentModule__EnvironmentModule_closure5: function _EnvironmentModule__EnvironmentModule_closure5() {
  12999. },
  13000. _EnvironmentModule__EnvironmentModule_closure6: function _EnvironmentModule__EnvironmentModule_closure6() {
  13001. },
  13002. _EnvironmentModule__EnvironmentModule_closure7: function _EnvironmentModule__EnvironmentModule_closure7() {
  13003. },
  13004. _EnvironmentModule__EnvironmentModule_closure8: function _EnvironmentModule__EnvironmentModule_closure8() {
  13005. },
  13006. _EnvironmentModule__EnvironmentModule_closure9: function _EnvironmentModule__EnvironmentModule_closure9() {
  13007. },
  13008. _EnvironmentModule__EnvironmentModule_closure10: function _EnvironmentModule__EnvironmentModule_closure10() {
  13009. },
  13010. BuiltInCallable$function: function($name, $arguments, callback, url) {
  13011. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", url);
  13012. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  13013. },
  13014. BuiltInCallable$mixin: function($name, $arguments, callback, url) {
  13015. var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
  13016. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new Q.BuiltInCallable$mixin_closure(callback), type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  13017. },
  13018. BuiltInCallable$overloadedFunction: function($name, overloads) {
  13019. var t2, t3, t4, t5, t6, t7, t8, t9, t10,
  13020. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value);
  13021. for (t2 = overloads.get$entries(), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value, t4 = type$.legacy_String, t5 = type$.legacy_VariableDeclaration, t6 = type$.JSArray_legacy_int; t2.moveNext$0();) {
  13022. t7 = t2.get$current(t2);
  13023. t8 = "@function " + $name + "(" + H.S(t7.key) + ") {";
  13024. t9 = new H.CodeUnits(t8);
  13025. t10 = H.setRuntimeTypeInfo([0], t6);
  13026. t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
  13027. t10.SourceFile$decoded$2$url(t9, null);
  13028. t1.push(new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), new S.SpanScanner(t10, null, t8), C.StderrLogger_false).parseArgumentDeclaration$0(), t7.value, t3));
  13029. }
  13030. return new Q.BuiltInCallable($name, t1);
  13031. },
  13032. BuiltInCallable: function BuiltInCallable(t0, t1) {
  13033. this.name = t0;
  13034. this._overloads = t1;
  13035. },
  13036. BuiltInCallable$mixin_closure: function BuiltInCallable$mixin_closure(t0) {
  13037. this.callback = t0;
  13038. },
  13039. _function5: function($name, $arguments, callback) {
  13040. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:meta");
  13041. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  13042. },
  13043. closure99: function closure99() {
  13044. },
  13045. closure100: function closure100() {
  13046. },
  13047. closure101: function closure101() {
  13048. },
  13049. closure102: function closure102() {
  13050. },
  13051. BuiltInModule$: function($name, functions, mixins, variables, $T) {
  13052. var t4,
  13053. t1 = P._Uri__Uri(null, $name, null, "sass"),
  13054. t2 = $T._eval$1("0*"),
  13055. t3 = Q.BuiltInModule__callableMap(functions, t2);
  13056. t2 = Q.BuiltInModule__callableMap(mixins, t2);
  13057. t4 = variables == null ? C.Map_empty2 : new P.UnmodifiableMapView(variables, type$.UnmodifiableMapView_of_legacy_String_and_legacy_Value);
  13058. return new Q.BuiltInModule(t1, t3, t2, t4, $T._eval$1("BuiltInModule<0>"));
  13059. },
  13060. BuiltInModule__callableMap: function(callables, $T) {
  13061. var t3, _i, callable,
  13062. t1 = type$.legacy_String,
  13063. t2 = $T._eval$1("0*");
  13064. if (callables == null)
  13065. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  13066. else {
  13067. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  13068. for (t3 = callables.length, _i = 0; _i < callables.length; callables.length === t3 || (0, H.throwConcurrentModificationError)(callables), ++_i) {
  13069. callable = callables[_i];
  13070. t1.$indexSet(0, callable.get$name(), callable);
  13071. }
  13072. t1 = new P.UnmodifiableMapView(t1, type$.$env_1_1_legacy_String._bind$1(t2)._eval$1("UnmodifiableMapView<1,2>"));
  13073. }
  13074. return new P.UnmodifiableMapView(t1, type$.$env_1_1_legacy_String._bind$1(t2)._eval$1("UnmodifiableMapView<1,2>"));
  13075. },
  13076. BuiltInModule: function BuiltInModule(t0, t1, t2, t3, t4) {
  13077. var _ = this;
  13078. _.url = t0;
  13079. _.functions = t1;
  13080. _.mixins = t2;
  13081. _.variables = t3;
  13082. _.$ti = t4;
  13083. },
  13084. closure103: function closure103() {
  13085. },
  13086. CssParser: function CssParser(t0, t1, t2) {
  13087. var _ = this;
  13088. _._isUseAllowed = true;
  13089. _._stylesheet$_inMixin = false;
  13090. _._mixinHasContent = null;
  13091. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  13092. _._globalVariables = t0;
  13093. _.lastSilentComment = null;
  13094. _.scanner = t1;
  13095. _.logger = t2;
  13096. },
  13097. AsyncEnvironment$0: function(sourceMap) {
  13098. var _null = null,
  13099. t1 = type$.legacy_String,
  13100. t2 = type$.legacy_Module_legacy_AsyncCallable_2,
  13101. t3 = type$.legacy_AstNode_2,
  13102. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable_2),
  13103. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value_2)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value_2),
  13104. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode_2) : _null,
  13105. t7 = type$.legacy_int,
  13106. t8 = type$.legacy_AsyncCallable_2,
  13107. t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable_2;
  13108. return new Q.AsyncEnvironment0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  13109. },
  13110. AsyncEnvironment$_0: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  13111. var t1 = type$.legacy_String,
  13112. t2 = type$.legacy_int;
  13113. return new Q.AsyncEnvironment0(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  13114. },
  13115. _EnvironmentModule__EnvironmentModule2: function(environment, css, extender, forwarded) {
  13116. var t1, t2, t3, t4, t5, t6;
  13117. if (forwarded == null)
  13118. forwarded = C.Set_empty3;
  13119. t1 = Q._EnvironmentModule__makeModulesByVariable2(forwarded);
  13120. t2 = H._instanceType(forwarded);
  13121. t3 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_variables), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure17(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Value0*>*>")), type$.legacy_Value_2);
  13122. t4 = environment._async_environment0$_variableNodes;
  13123. t4 = t4 == null ? null : Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure18(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AstNode0*>*>")), type$.legacy_AstNode_2);
  13124. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AsyncCallable0*>*>");
  13125. t5 = type$.legacy_AsyncCallable_2;
  13126. t6 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure19(), t2), t5);
  13127. t5 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure20(), t2), t5);
  13128. t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._async_environment0$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure21());
  13129. return Q._EnvironmentModule$_2(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._async_environment0$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure22()));
  13130. },
  13131. _EnvironmentModule__makeModulesByVariable2: function(forwarded) {
  13132. var modulesByVariable, t1, t2, t3, t4;
  13133. if (forwarded.get$isEmpty(forwarded))
  13134. return C.Map_empty11;
  13135. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_AsyncCallable_2);
  13136. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  13137. t2 = t1.get$current(t1);
  13138. if (t2 instanceof Q._EnvironmentModule2) {
  13139. for (t3 = t2._async_environment0$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  13140. t4 = t3.get$current(t3);
  13141. B.setAll0(modulesByVariable, t4.get$variables().get$keys(), t4);
  13142. }
  13143. B.setAll0(modulesByVariable, C.JSArray_methods.get$first(t2._async_environment0$_environment._async_environment0$_variables).get$keys(), t2);
  13144. } else
  13145. B.setAll0(modulesByVariable, t2.get$variables().get$keys(), t2);
  13146. }
  13147. return modulesByVariable;
  13148. },
  13149. _EnvironmentModule__memberMap2: function(localMap, otherMaps, $V) {
  13150. var t1, t2, t3, cur;
  13151. localMap = new U.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0*>"));
  13152. t1 = otherMaps.__internal$_iterable;
  13153. t2 = J.getInterceptor$asx(t1);
  13154. if (t2.get$isEmpty(t1))
  13155. return localMap;
  13156. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String*,0*>*>"));
  13157. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  13158. cur = t1.__internal$_current;
  13159. if (cur.get$isNotEmpty(cur))
  13160. t3.push(cur);
  13161. }
  13162. t3.push(localMap);
  13163. if (t3.length === 1)
  13164. return localMap;
  13165. return Z.MergedMapView$0(t3, type$.legacy_String, $V._eval$1("0*"));
  13166. },
  13167. _EnvironmentModule$_2: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  13168. return new Q._EnvironmentModule2(_environment._async_environment0$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  13169. },
  13170. AsyncEnvironment0: function AsyncEnvironment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  13171. var _ = this;
  13172. _._async_environment0$_modules = t0;
  13173. _._async_environment0$_namespaceNodes = t1;
  13174. _._async_environment0$_globalModules = t2;
  13175. _._async_environment0$_globalModuleNodes = t3;
  13176. _._async_environment0$_forwardedModules = t4;
  13177. _._async_environment0$_forwardedModuleNodes = t5;
  13178. _._async_environment0$_nestedForwardedModules = t6;
  13179. _._async_environment0$_allModules = t7;
  13180. _._async_environment0$_variables = t8;
  13181. _._async_environment0$_variableNodes = t9;
  13182. _._async_environment0$_variableIndices = t10;
  13183. _._async_environment0$_functions = t11;
  13184. _._async_environment0$_functionIndices = t12;
  13185. _._async_environment0$_mixins = t13;
  13186. _._async_environment0$_mixinIndices = t14;
  13187. _._async_environment0$_content = t15;
  13188. _._async_environment0$_inMixin = false;
  13189. _._async_environment0$_inSemiGlobalScope = true;
  13190. _._async_environment0$_lastVariableIndex = _._async_environment0$_lastVariableName = null;
  13191. },
  13192. AsyncEnvironment_importForwards_closure3: function AsyncEnvironment_importForwards_closure3() {
  13193. },
  13194. AsyncEnvironment_importForwards_closure4: function AsyncEnvironment_importForwards_closure4() {
  13195. },
  13196. AsyncEnvironment_importForwards_closure5: function AsyncEnvironment_importForwards_closure5() {
  13197. },
  13198. AsyncEnvironment_importForwards_closure6: function AsyncEnvironment_importForwards_closure6() {
  13199. },
  13200. AsyncEnvironment__getVariableFromGlobalModule_closure0: function AsyncEnvironment__getVariableFromGlobalModule_closure0(t0) {
  13201. this.name = t0;
  13202. },
  13203. AsyncEnvironment_setVariable_closure2: function AsyncEnvironment_setVariable_closure2(t0, t1) {
  13204. this.$this = t0;
  13205. this.name = t1;
  13206. },
  13207. AsyncEnvironment_setVariable_closure3: function AsyncEnvironment_setVariable_closure3(t0) {
  13208. this.name = t0;
  13209. },
  13210. AsyncEnvironment_setVariable_closure4: function AsyncEnvironment_setVariable_closure4(t0, t1) {
  13211. this.$this = t0;
  13212. this.name = t1;
  13213. },
  13214. AsyncEnvironment__getFunctionFromGlobalModule_closure0: function AsyncEnvironment__getFunctionFromGlobalModule_closure0(t0) {
  13215. this.name = t0;
  13216. },
  13217. AsyncEnvironment__getMixinFromGlobalModule_closure0: function AsyncEnvironment__getMixinFromGlobalModule_closure0(t0) {
  13218. this.name = t0;
  13219. },
  13220. _EnvironmentModule2: function _EnvironmentModule2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  13221. var _ = this;
  13222. _.upstream = t0;
  13223. _.variables = t1;
  13224. _.variableNodes = t2;
  13225. _.functions = t3;
  13226. _.mixins = t4;
  13227. _.extender = t5;
  13228. _.css = t6;
  13229. _.transitivelyContainsCss = t7;
  13230. _.transitivelyContainsExtensions = t8;
  13231. _._async_environment0$_environment = t9;
  13232. _._async_environment0$_modulesByVariable = t10;
  13233. },
  13234. _EnvironmentModule__EnvironmentModule_closure17: function _EnvironmentModule__EnvironmentModule_closure17() {
  13235. },
  13236. _EnvironmentModule__EnvironmentModule_closure18: function _EnvironmentModule__EnvironmentModule_closure18() {
  13237. },
  13238. _EnvironmentModule__EnvironmentModule_closure19: function _EnvironmentModule__EnvironmentModule_closure19() {
  13239. },
  13240. _EnvironmentModule__EnvironmentModule_closure20: function _EnvironmentModule__EnvironmentModule_closure20() {
  13241. },
  13242. _EnvironmentModule__EnvironmentModule_closure21: function _EnvironmentModule__EnvironmentModule_closure21() {
  13243. },
  13244. _EnvironmentModule__EnvironmentModule_closure22: function _EnvironmentModule__EnvironmentModule_closure22() {
  13245. },
  13246. BuiltInCallable$function0: function($name, $arguments, callback, url) {
  13247. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", url);
  13248. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  13249. },
  13250. BuiltInCallable$mixin0: function($name, $arguments, callback, url) {
  13251. var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
  13252. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new Q.BuiltInCallable$mixin_closure0(callback), type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  13253. },
  13254. BuiltInCallable$parsed: function($name, $arguments, callback) {
  13255. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2($arguments, callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  13256. },
  13257. BuiltInCallable$overloadedFunction0: function($name, overloads) {
  13258. var t2, t3, t4, t5, t6, t7, t8, t9, t10,
  13259. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2);
  13260. for (t2 = overloads.get$entries(), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2, t4 = type$.legacy_String, t5 = type$.legacy_VariableDeclaration_2, t6 = type$.JSArray_legacy_int; t2.moveNext$0();) {
  13261. t7 = t2.get$current(t2);
  13262. t8 = "@function " + $name + "(" + H.S(t7.key) + ") {";
  13263. t9 = new H.CodeUnits(t8);
  13264. t10 = H.setRuntimeTypeInfo([0], t6);
  13265. t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
  13266. t10.SourceFile$decoded$2$url(t9, null);
  13267. t1.push(new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), new S.SpanScanner(t10, null, t8), C.C_StderrLogger).parseArgumentDeclaration$0(), t7.value, t3));
  13268. }
  13269. return new Q.BuiltInCallable0($name, t1);
  13270. },
  13271. BuiltInCallable0: function BuiltInCallable0(t0, t1) {
  13272. this.name = t0;
  13273. this._built_in$_overloads = t1;
  13274. },
  13275. BuiltInCallable$mixin_closure0: function BuiltInCallable$mixin_closure0(t0) {
  13276. this.callback = t0;
  13277. },
  13278. BuiltInModule$0: function($name, functions, mixins, variables, $T) {
  13279. var t4,
  13280. t1 = P._Uri__Uri(null, $name, null, "sass"),
  13281. t2 = $T._eval$1("0*"),
  13282. t3 = Q.BuiltInModule__callableMap0(functions, t2);
  13283. t2 = Q.BuiltInModule__callableMap0(mixins, t2);
  13284. t4 = variables == null ? C.Map_empty8 : new P.UnmodifiableMapView(variables, type$.UnmodifiableMapView_of_legacy_String_and_legacy_Value_2);
  13285. return new Q.BuiltInModule0(t1, t3, t2, t4, $T._eval$1("BuiltInModule0<0>"));
  13286. },
  13287. BuiltInModule__callableMap0: function(callables, $T) {
  13288. var t3, _i, callable,
  13289. t1 = type$.legacy_String,
  13290. t2 = $T._eval$1("0*");
  13291. if (callables == null)
  13292. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  13293. else {
  13294. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  13295. for (t3 = callables.length, _i = 0; _i < callables.length; callables.length === t3 || (0, H.throwConcurrentModificationError)(callables), ++_i) {
  13296. callable = callables[_i];
  13297. t1.$indexSet(0, callable.get$name(), callable);
  13298. }
  13299. t1 = new P.UnmodifiableMapView(t1, type$.$env_1_1_legacy_String._bind$1(t2)._eval$1("UnmodifiableMapView<1,2>"));
  13300. }
  13301. return new P.UnmodifiableMapView(t1, type$.$env_1_1_legacy_String._bind$1(t2)._eval$1("UnmodifiableMapView<1,2>"));
  13302. },
  13303. BuiltInModule0: function BuiltInModule0(t0, t1, t2, t3, t4) {
  13304. var _ = this;
  13305. _.url = t0;
  13306. _.functions = t1;
  13307. _.mixins = t2;
  13308. _.variables = t3;
  13309. _.$ti = t4;
  13310. },
  13311. ContentRule0: function ContentRule0(t0, t1) {
  13312. this.span = t0;
  13313. this.$arguments = t1;
  13314. },
  13315. closure209: function closure209() {
  13316. },
  13317. CssParser0: function CssParser0(t0, t1, t2) {
  13318. var _ = this;
  13319. _._stylesheet0$_isUseAllowed = true;
  13320. _._stylesheet0$_inMixin = false;
  13321. _._stylesheet0$_mixinHasContent = null;
  13322. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  13323. _._stylesheet0$_globalVariables = t0;
  13324. _.lastSilentComment = null;
  13325. _.scanner = t1;
  13326. _.logger = t2;
  13327. },
  13328. DebugRule0: function DebugRule0(t0, t1) {
  13329. this.expression = t0;
  13330. this.span = t1;
  13331. },
  13332. _function12: function($name, $arguments, callback) {
  13333. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:meta");
  13334. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  13335. },
  13336. closure205: function closure205() {
  13337. },
  13338. closure206: function closure206() {
  13339. },
  13340. closure207: function closure207() {
  13341. },
  13342. closure208: function closure208() {
  13343. },
  13344. StaticImport0: function StaticImport0(t0, t1, t2, t3) {
  13345. var _ = this;
  13346. _.url = t0;
  13347. _.supports = t1;
  13348. _.media = t2;
  13349. _.span = t3;
  13350. }
  13351. },
  13352. B = {ReplAdapter: function ReplAdapter(t0) {
  13353. this.repl = t0;
  13354. this.rl = null;
  13355. }, ReplAdapter_runAsync_closure: function ReplAdapter_runAsync_closure(t0) {
  13356. this.controller = t0;
  13357. }, Stdin: function Stdin() {
  13358. }, Stdout: function Stdout() {
  13359. }, ReadlineModule: function ReadlineModule() {
  13360. }, ReadlineOptions: function ReadlineOptions() {
  13361. }, ReadlineInterface: function ReadlineInterface() {
  13362. },
  13363. defaultCompare: function($T) {
  13364. return new B.defaultCompare_closure($T);
  13365. },
  13366. defaultCompare_closure: function defaultCompare_closure(t0) {
  13367. this.T = t0;
  13368. },
  13369. InternalStyle: function InternalStyle() {
  13370. },
  13371. ModifiableCssNode: function ModifiableCssNode() {
  13372. },
  13373. ModifiableCssParentNode: function ModifiableCssParentNode() {
  13374. },
  13375. ModifiableCssSupportsRule: function ModifiableCssSupportsRule(t0, t1, t2, t3) {
  13376. var _ = this;
  13377. _.condition = t0;
  13378. _.span = t1;
  13379. _.children = t2;
  13380. _._children = t3;
  13381. _._indexInParent = _._parent = null;
  13382. _.isGroupEnd = false;
  13383. },
  13384. CssNode: function CssNode() {
  13385. },
  13386. CssParentNode: function CssParentNode() {
  13387. },
  13388. AstNode: function AstNode() {
  13389. },
  13390. _FakeAstNode: function _FakeAstNode(t0) {
  13391. this._callback = t0;
  13392. },
  13393. ArgumentDeclaration_ArgumentDeclaration$parse: function(contents, url) {
  13394. var t1 = S.SpanScanner$(contents, url);
  13395. return new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0();
  13396. },
  13397. ArgumentDeclaration: function ArgumentDeclaration(t0, t1, t2) {
  13398. this.$arguments = t0;
  13399. this.restArgument = t1;
  13400. this.span = t2;
  13401. },
  13402. ArgumentDeclaration_verify_closure: function ArgumentDeclaration_verify_closure() {
  13403. },
  13404. ArgumentDeclaration_verify_closure0: function ArgumentDeclaration_verify_closure0() {
  13405. },
  13406. DynamicImport: function DynamicImport(t0, t1) {
  13407. this.url = t0;
  13408. this.span = t1;
  13409. },
  13410. SassNode: function SassNode() {
  13411. },
  13412. ForRule: function ForRule(t0, t1, t2, t3, t4, t5, t6) {
  13413. var _ = this;
  13414. _.variable = t0;
  13415. _.from = t1;
  13416. _.to = t2;
  13417. _.isExclusive = t3;
  13418. _.span = t4;
  13419. _.children = t5;
  13420. _.hasDeclarations = t6;
  13421. },
  13422. ImportRule: function ImportRule(t0, t1) {
  13423. this.imports = t0;
  13424. this.span = t1;
  13425. },
  13426. ReturnRule: function ReturnRule(t0, t1) {
  13427. this.expression = t0;
  13428. this.span = t1;
  13429. },
  13430. SilentComment: function SilentComment(t0, t1) {
  13431. this.text = t0;
  13432. this.span = t1;
  13433. },
  13434. SupportsRule: function SupportsRule(t0, t1, t2, t3) {
  13435. var _ = this;
  13436. _.condition = t0;
  13437. _.span = t1;
  13438. _.children = t2;
  13439. _.hasDeclarations = t3;
  13440. },
  13441. AsyncCallable: function AsyncCallable() {
  13442. },
  13443. ExecutableOptions__separator: function(text) {
  13444. var t1 = $.$get$ExecutableOptions__separatorBar(),
  13445. t2 = C.JSString_methods.$mul(t1, 3) + " ",
  13446. t3 = self.process.stdout.isTTY;
  13447. t2 = t2 + ((t3 == null ? false : t3) ? "\x1b[1m" : "") + text;
  13448. t3 = self.process.stdout.isTTY;
  13449. return t2 + ((t3 == null ? false : t3) ? "\x1b[0m" : "") + " " + C.JSString_methods.$mul(t1, 35 - text.length);
  13450. },
  13451. ExecutableOptions__fail: function(message) {
  13452. return H.throwExpression(B.UsageException$(message));
  13453. },
  13454. ExecutableOptions_ExecutableOptions$parse: function(args) {
  13455. var options, error, t1, exception;
  13456. try {
  13457. t1 = $.$get$ExecutableOptions__parser();
  13458. t1.toString;
  13459. t1 = G.Parser$0(null, t1, P.ListQueue_ListQueue$of(args, type$.legacy_String), null, null).parse$0();
  13460. if (t1.wasParsed$1("poll") && !H._asBoolS(t1.$index(0, "watch")))
  13461. B.ExecutableOptions__fail("--poll may not be passed without --watch.");
  13462. options = new B.ExecutableOptions(t1);
  13463. if (H._asBoolS(options._options.$index(0, "help")))
  13464. B.ExecutableOptions__fail("Compile Sass to CSS.");
  13465. return options;
  13466. } catch (exception) {
  13467. t1 = H.unwrapException(exception);
  13468. if (type$.legacy_FormatException._is(t1)) {
  13469. error = t1;
  13470. B.ExecutableOptions__fail(J.get$message$x(error));
  13471. } else
  13472. throw exception;
  13473. }
  13474. },
  13475. UsageException$: function(message) {
  13476. return new B.UsageException(message);
  13477. },
  13478. ExecutableOptions: function ExecutableOptions(t0) {
  13479. var _ = this;
  13480. _._options = t0;
  13481. _._sourceDirectoriesToDestinations = _._sourcesToDestinations = _._interactive = null;
  13482. },
  13483. ExecutableOptions_closure: function ExecutableOptions_closure() {
  13484. },
  13485. ExecutableOptions_emitErrorCss_closure: function ExecutableOptions_emitErrorCss_closure() {
  13486. },
  13487. UsageException: function UsageException(t0) {
  13488. this.message = t0;
  13489. },
  13490. AsyncImporter: function AsyncImporter() {
  13491. },
  13492. inImportRule: function(callback) {
  13493. var t1,
  13494. wasInImportRule = $._inImportRule;
  13495. $._inImportRule = true;
  13496. try {
  13497. t1 = callback.call$0();
  13498. return t1;
  13499. } finally {
  13500. $._inImportRule = wasInImportRule;
  13501. }
  13502. },
  13503. resolveImportPath: function(path) {
  13504. var t1,
  13505. extension = X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  13506. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  13507. t1 = $._inImportRule ? new B.resolveImportPath_closure(path, extension).call$0() : null;
  13508. return t1 == null ? B._exactlyOne(B._tryPath(path)) : t1;
  13509. }
  13510. t1 = $._inImportRule ? new B.resolveImportPath_closure0(path).call$0() : null;
  13511. if (t1 == null)
  13512. t1 = B._exactlyOne(B._tryPathWithExtensions(path));
  13513. return t1 == null ? B._tryPathAsDirectory(path) : t1;
  13514. },
  13515. _tryPathWithExtensions: function(path) {
  13516. var result = B._tryPath(path + ".sass");
  13517. C.JSArray_methods.addAll$1(result, B._tryPath(path + ".scss"));
  13518. return result.length !== 0 ? result : B._tryPath(path + ".css");
  13519. },
  13520. _tryPath: function(path) {
  13521. var t1 = $.$get$context(),
  13522. partial = D.join(t1.dirname$1(path), "_" + H.S(X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename()), null);
  13523. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  13524. if (B.fileExists(partial))
  13525. t1.push(partial);
  13526. if (B.fileExists(path))
  13527. t1.push(path);
  13528. return t1;
  13529. },
  13530. _tryPathAsDirectory: function(path) {
  13531. var t1;
  13532. if (!B.dirExists(path))
  13533. return null;
  13534. t1 = $._inImportRule ? new B._tryPathAsDirectory_closure(path).call$0() : null;
  13535. return t1 == null ? B._exactlyOne(B._tryPathWithExtensions(D.join(path, "index", null))) : t1;
  13536. },
  13537. _exactlyOne: function(paths) {
  13538. var t1 = paths.length;
  13539. if (t1 === 0)
  13540. return null;
  13541. if (t1 === 1)
  13542. return C.JSArray_methods.get$first(paths);
  13543. throw H.wrapException(string$.It_s_n + C.JSArray_methods.map$1$1(paths, new B._exactlyOne_closure(), type$.legacy_String).join$1(0, "\n"));
  13544. },
  13545. resolveImportPath_closure: function resolveImportPath_closure(t0, t1) {
  13546. this.path = t0;
  13547. this.extension = t1;
  13548. },
  13549. resolveImportPath_closure0: function resolveImportPath_closure0(t0) {
  13550. this.path = t0;
  13551. },
  13552. _tryPathAsDirectory_closure: function _tryPathAsDirectory_closure(t0) {
  13553. this.path = t0;
  13554. },
  13555. _exactlyOne_closure: function _exactlyOne_closure() {
  13556. },
  13557. readFile: function(path) {
  13558. var t1, t2, t3, sourceFile, i,
  13559. contents = H._asStringS(B._readFile(path, "utf8"));
  13560. if (!J.getInterceptor$asx(contents).contains$1(contents, "\ufffd"))
  13561. return contents;
  13562. t1 = $.$get$context().toUri$1(path);
  13563. t2 = new H.CodeUnits(contents);
  13564. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  13565. sourceFile = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  13566. sourceFile.SourceFile$decoded$2$url(t2, t1);
  13567. for (t1 = contents.length, i = 0; i < t1; ++i) {
  13568. if (C.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
  13569. continue;
  13570. throw H.wrapException(E.SassException$("Invalid UTF-8.", Y.FileLocation$_(sourceFile, i).pointSpan$0()));
  13571. }
  13572. return contents;
  13573. },
  13574. _readFile: function(path, encoding) {
  13575. return B._systemErrorToFileSystemException(new B._readFile_closure(path, encoding));
  13576. },
  13577. writeFile: function(path, contents) {
  13578. return B._systemErrorToFileSystemException(new B.writeFile_closure(path, contents));
  13579. },
  13580. deleteFile: function(path) {
  13581. return B._systemErrorToFileSystemException(new B.deleteFile_closure(path));
  13582. },
  13583. readStdin: function() {
  13584. return B.readStdin$body();
  13585. },
  13586. readStdin$body: function() {
  13587. var $async$goto = 0,
  13588. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  13589. $async$returnValue, sink, t1, t2, completer;
  13590. var $async$readStdin = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  13591. if ($async$errorCode === 1)
  13592. return P._asyncRethrow($async$result, $async$completer);
  13593. while (true)
  13594. switch ($async$goto) {
  13595. case 0:
  13596. // Function start
  13597. t1 = {};
  13598. t2 = new P._Future($.Zone__current, type$._Future_legacy_String);
  13599. completer = new P._AsyncCompleter(t2, type$._AsyncCompleter_legacy_String);
  13600. t1.contents = null;
  13601. sink = C.Utf8Decoder_false.startChunkedConversion$1(new P._StringCallbackSink(new B.readStdin_closure(t1, completer), new P.StringBuffer("")));
  13602. J.on$2$x(self.process.stdin, "data", P.allowInterop(new B.readStdin_closure0(sink)));
  13603. J.on$2$x(self.process.stdin, "end", P.allowInterop(new B.readStdin_closure1(sink)));
  13604. J.on$2$x(self.process.stdin, "error", P.allowInterop(new B.readStdin_closure2(completer)));
  13605. $async$returnValue = t2;
  13606. // goto return
  13607. $async$goto = 1;
  13608. break;
  13609. case 1:
  13610. // return
  13611. return P._asyncReturn($async$returnValue, $async$completer);
  13612. }
  13613. });
  13614. return P._asyncStartSync($async$readStdin, $async$completer);
  13615. },
  13616. fileExists: function(path) {
  13617. return B._systemErrorToFileSystemException(new B.fileExists_closure(path));
  13618. },
  13619. dirExists: function(path) {
  13620. return B._systemErrorToFileSystemException(new B.dirExists_closure(path));
  13621. },
  13622. ensureDir: function(path) {
  13623. return B._systemErrorToFileSystemException(new B.ensureDir_closure(path));
  13624. },
  13625. listDir: function(path, recursive) {
  13626. return B._systemErrorToFileSystemException(new B.listDir_closure(recursive, path));
  13627. },
  13628. modificationTime: function(path) {
  13629. return B._systemErrorToFileSystemException(new B.modificationTime_closure(path));
  13630. },
  13631. _systemErrorToFileSystemException: function(callback) {
  13632. var error, systemError, t1, exception, t2;
  13633. try {
  13634. t1 = callback.call$0();
  13635. return t1;
  13636. } catch (exception) {
  13637. error = H.unwrapException(exception);
  13638. systemError = type$.legacy__SystemError._as(error);
  13639. t1 = systemError;
  13640. t2 = J.getInterceptor$x(t1);
  13641. throw H.wrapException(new B.FileSystemException(J.substring$2$s(t2.get$message(t1), (H.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + H.S(t2.get$syscall(t1)) + " '" + H.S(t2.get$path(t1)) + "'").length), J.get$path$x(systemError)));
  13642. }
  13643. },
  13644. isWindows: function() {
  13645. return J.$eq$(J.get$platform$x(self.process), "win32");
  13646. },
  13647. watchDir: function(path, poll) {
  13648. var t2, t3, t1 = {},
  13649. watcher = J.watch$2$x(self.chokidar, path, {disableGlobbing: true, usePolling: poll});
  13650. t1.controller = null;
  13651. t2 = J.getInterceptor$x(watcher);
  13652. t2.on$2(watcher, "add", P.allowInterop(new B.watchDir_closure(t1)));
  13653. t2.on$2(watcher, "change", P.allowInterop(new B.watchDir_closure0(t1)));
  13654. t2.on$2(watcher, "unlink", P.allowInterop(new B.watchDir_closure1(t1)));
  13655. t2.on$2(watcher, "error", P.allowInterop(new B.watchDir_closure2(t1)));
  13656. t3 = new P._Future($.Zone__current, type$._Future_legacy_Stream_legacy_WatchEvent);
  13657. t2.on$2(watcher, "ready", P.allowInterop(new B.watchDir_closure3(t1, watcher, new P._AsyncCompleter(t3, type$._AsyncCompleter_legacy_Stream_legacy_WatchEvent))));
  13658. return t3;
  13659. },
  13660. _FS: function _FS() {
  13661. },
  13662. _Stat: function _Stat() {
  13663. },
  13664. _Date: function _Date() {
  13665. },
  13666. _Stderr: function _Stderr() {
  13667. },
  13668. _Stdin: function _Stdin() {
  13669. },
  13670. _SystemError: function _SystemError() {
  13671. },
  13672. _Process: function _Process() {
  13673. },
  13674. FileSystemException: function FileSystemException(t0, t1) {
  13675. this.message = t0;
  13676. this.path = t1;
  13677. },
  13678. Stderr: function Stderr(t0) {
  13679. this._stderr = t0;
  13680. },
  13681. _readFile_closure: function _readFile_closure(t0, t1) {
  13682. this.path = t0;
  13683. this.encoding = t1;
  13684. },
  13685. writeFile_closure: function writeFile_closure(t0, t1) {
  13686. this.path = t0;
  13687. this.contents = t1;
  13688. },
  13689. deleteFile_closure: function deleteFile_closure(t0) {
  13690. this.path = t0;
  13691. },
  13692. readStdin_closure: function readStdin_closure(t0, t1) {
  13693. this._box_0 = t0;
  13694. this.completer = t1;
  13695. },
  13696. readStdin_closure0: function readStdin_closure0(t0) {
  13697. this.sink = t0;
  13698. },
  13699. readStdin_closure1: function readStdin_closure1(t0) {
  13700. this.sink = t0;
  13701. },
  13702. readStdin_closure2: function readStdin_closure2(t0) {
  13703. this.completer = t0;
  13704. },
  13705. fileExists_closure: function fileExists_closure(t0) {
  13706. this.path = t0;
  13707. },
  13708. dirExists_closure: function dirExists_closure(t0) {
  13709. this.path = t0;
  13710. },
  13711. ensureDir_closure: function ensureDir_closure(t0) {
  13712. this.path = t0;
  13713. },
  13714. listDir_closure: function listDir_closure(t0, t1) {
  13715. this.recursive = t0;
  13716. this.path = t1;
  13717. },
  13718. listDir__closure: function listDir__closure(t0) {
  13719. this.path = t0;
  13720. },
  13721. listDir__closure0: function listDir__closure0() {
  13722. },
  13723. listDir_closure_list: function listDir_closure_list() {
  13724. },
  13725. listDir__list_closure: function listDir__list_closure(t0, t1) {
  13726. this.parent = t0;
  13727. this.list = t1;
  13728. },
  13729. modificationTime_closure: function modificationTime_closure(t0) {
  13730. this.path = t0;
  13731. },
  13732. watchDir_closure: function watchDir_closure(t0) {
  13733. this._box_0 = t0;
  13734. },
  13735. watchDir_closure0: function watchDir_closure0(t0) {
  13736. this._box_0 = t0;
  13737. },
  13738. watchDir_closure1: function watchDir_closure1(t0) {
  13739. this._box_0 = t0;
  13740. },
  13741. watchDir_closure2: function watchDir_closure2(t0) {
  13742. this._box_0 = t0;
  13743. },
  13744. watchDir_closure3: function watchDir_closure3(t0, t1, t2) {
  13745. this._box_0 = t0;
  13746. this.watcher = t1;
  13747. this.completer = t2;
  13748. },
  13749. watchDir__closure: function watchDir__closure(t0) {
  13750. this.watcher = t0;
  13751. },
  13752. ShadowedModuleView_ifNecessary: function(inner, functions, mixins, variables, $T) {
  13753. var t1;
  13754. if (B.ShadowedModuleView__needsBlacklist(inner.get$variables(), variables) || B.ShadowedModuleView__needsBlacklist(inner.get$functions(inner), functions) || B.ShadowedModuleView__needsBlacklist(inner.get$mixins(), mixins)) {
  13755. t1 = $T._eval$1("0*");
  13756. t1 = new B.ShadowedModuleView(inner, B.ShadowedModuleView__shadowedMap(inner.get$variables(), variables, type$.legacy_Value), B.ShadowedModuleView__shadowedMap(inner.get$variableNodes(), variables, type$.legacy_AstNode), B.ShadowedModuleView__shadowedMap(inner.get$functions(inner), functions, t1), B.ShadowedModuleView__shadowedMap(inner.get$mixins(), mixins, t1), $T._eval$1("ShadowedModuleView<0*>"));
  13757. } else
  13758. t1 = null;
  13759. return t1;
  13760. },
  13761. ShadowedModuleView__shadowedMap: function(map, blocklist, $V) {
  13762. if (map == null || !B.ShadowedModuleView__needsBlacklist(map, blocklist))
  13763. return map;
  13764. return K.LimitedMapView$blocklist(map, blocklist, type$.legacy_String, $V._eval$1("0*"));
  13765. },
  13766. ShadowedModuleView__needsBlacklist: function(map, blocklist) {
  13767. var t1 = map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  13768. return t1;
  13769. },
  13770. ShadowedModuleView: function ShadowedModuleView(t0, t1, t2, t3, t4, t5) {
  13771. var _ = this;
  13772. _._shadowed_view$_inner = t0;
  13773. _.variables = t1;
  13774. _.variableNodes = t2;
  13775. _.functions = t3;
  13776. _.mixins = t4;
  13777. _.$ti = t5;
  13778. },
  13779. _PropertyDescriptor: function _PropertyDescriptor() {
  13780. },
  13781. toSentence: function(iter, conjunction) {
  13782. var t1 = iter.__internal$_iterable,
  13783. t2 = J.getInterceptor$asx(t1);
  13784. if (t2.get$length(t1) === 1)
  13785. return J.toString$0$(iter._f.call$1(t2.get$first(t1)));
  13786. return H.TakeIterable_TakeIterable(iter, t2.get$length(t1) - 1, H._instanceType(iter)._eval$1("Iterable.E")).join$1(0, ", ") + (" " + conjunction + " " + H.S(iter._f.call$1(t2.get$last(t1))));
  13787. },
  13788. indent: function(string, indentation) {
  13789. return new H.MappedListIterable(H.setRuntimeTypeInfo(string.split("\n"), type$.JSArray_String), new B.indent_closure(indentation), type$.MappedListIterable_of_String_and_legacy_String).join$1(0, "\n");
  13790. },
  13791. pluralize: function($name, number, plural) {
  13792. if (number === 1)
  13793. return $name;
  13794. if (plural != null)
  13795. return plural;
  13796. return $name + "s";
  13797. },
  13798. trimAscii: function(string, excludeEscape) {
  13799. var start = B._firstNonWhitespace(string);
  13800. return start == null ? "" : J.substring$2$s(string, start, B._lastNonWhitespace(string, true) + 1);
  13801. },
  13802. trimAsciiRight: function(string, excludeEscape) {
  13803. var end = B._lastNonWhitespace(string, excludeEscape);
  13804. return end == null ? "" : J.substring$2$s(string, 0, end + 1);
  13805. },
  13806. _firstNonWhitespace: function(string) {
  13807. var t1, i, t2;
  13808. for (t1 = string.length, i = 0; i < t1; ++i) {
  13809. t2 = C.JSString_methods._codeUnitAt$1(string, i);
  13810. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  13811. return i;
  13812. }
  13813. return null;
  13814. },
  13815. _lastNonWhitespace: function(string, excludeEscape) {
  13816. var t1, i, t2, codeUnit;
  13817. for (t1 = string.length, i = t1 - 1, t2 = J.getInterceptor$s(string); i >= 0; --i) {
  13818. codeUnit = t2.codeUnitAt$1(string, i);
  13819. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  13820. if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
  13821. return i + 1;
  13822. else
  13823. return i;
  13824. }
  13825. return null;
  13826. },
  13827. isPublic: function(member) {
  13828. var start = J._codeUnitAt$1$s(member, 0);
  13829. return start !== 45 && start !== 95;
  13830. },
  13831. flattenVertically: function(iterable, $T) {
  13832. var result,
  13833. t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0*>*"))._eval$1("MappedListIterable<1,2>"),
  13834. queues = P.List_List$from(new H.MappedListIterable(iterable, new B.flattenVertically_closure($T), t1), true, t1._eval$1("ListIterable.E"));
  13835. if (queues.length === 1)
  13836. return C.JSArray_methods.get$first(queues);
  13837. result = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"));
  13838. for (; queues.length !== 0;) {
  13839. if (!!queues.fixed$length)
  13840. H.throwExpression(P.UnsupportedError$("removeWhere"));
  13841. C.JSArray_methods._removeWhere$2(queues, new B.flattenVertically_closure0(result), true);
  13842. }
  13843. return result;
  13844. },
  13845. firstOrNull: function(iterable) {
  13846. var iterator = J.get$iterator$ax(iterable);
  13847. return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
  13848. },
  13849. codepointIndexToCodeUnitIndex: function(string, codepointIndex) {
  13850. var t1, codeUnitIndex, i, codeUnitIndex0, t2;
  13851. for (t1 = J.getInterceptor$s(string), codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  13852. codeUnitIndex0 = codeUnitIndex + 1;
  13853. t2 = t1._codeUnitAt$1(string, codeUnitIndex);
  13854. codeUnitIndex = t2 >= 55296 && t2 <= 56319 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  13855. }
  13856. return codeUnitIndex;
  13857. },
  13858. codeUnitIndexToCodepointIndex: function(string, codeUnitIndex) {
  13859. var t1, codepointIndex, i, t2;
  13860. for (t1 = J.getInterceptor$s(string), codepointIndex = 0, i = 0; i < codeUnitIndex; i = (t2 >= 55296 && t2 <= 56319 ? i + 1 : i) + 1) {
  13861. ++codepointIndex;
  13862. t2 = t1._codeUnitAt$1(string, i);
  13863. }
  13864. return codepointIndex;
  13865. },
  13866. frameForSpan: function(span, member, url) {
  13867. var t2, t3, t4,
  13868. t1 = url == null ? span.file.url : url;
  13869. if (t1 == null)
  13870. t1 = $.$get$_noSourceUrl();
  13871. t2 = span.file;
  13872. t3 = span._file$_start;
  13873. t4 = Y.FileLocation$_(t2, t3);
  13874. t4 = t4.file.getLine$1(t4.offset);
  13875. t3 = Y.FileLocation$_(t2, t3);
  13876. return new A.Frame(t1, t4 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  13877. },
  13878. spanForList: function(nodes) {
  13879. var t1, left, right, _null = null;
  13880. if (nodes.length === 0)
  13881. return _null;
  13882. t1 = C.JSArray_methods.get$first(nodes);
  13883. left = t1 == null ? _null : t1.get$span();
  13884. if (left == null)
  13885. return _null;
  13886. t1 = C.JSArray_methods.get$last(nodes);
  13887. right = t1 == null ? _null : t1.get$span();
  13888. if (right == null)
  13889. return _null;
  13890. return left.expand$1(0, right);
  13891. },
  13892. declarationName: function(span) {
  13893. var text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  13894. return B.trimAsciiRight(C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":")), false);
  13895. },
  13896. unvendor: function($name) {
  13897. var i,
  13898. t1 = $name.length;
  13899. if (t1 < 2)
  13900. return $name;
  13901. if (J.getInterceptor$s($name)._codeUnitAt$1($name, 0) !== 45)
  13902. return $name;
  13903. if (C.JSString_methods._codeUnitAt$1($name, 1) === 45)
  13904. return $name;
  13905. for (i = 2; i < t1; ++i)
  13906. if (C.JSString_methods._codeUnitAt$1($name, i) === 45)
  13907. return C.JSString_methods.substring$1($name, i + 1);
  13908. return $name;
  13909. },
  13910. equalsIgnoreCase: function(string1, string2) {
  13911. var t1, i;
  13912. if (string1 == string2)
  13913. return true;
  13914. if (string1 == null || string2 == null)
  13915. return false;
  13916. t1 = string1.length;
  13917. if (t1 !== string2.length)
  13918. return false;
  13919. for (i = 0; i < t1; ++i)
  13920. if (!T.characterEqualsIgnoreCase(C.JSString_methods._codeUnitAt$1(string1, i), C.JSString_methods._codeUnitAt$1(string2, i)))
  13921. return false;
  13922. return true;
  13923. },
  13924. startsWithIgnoreCase: function(string, prefix) {
  13925. var t2, i,
  13926. t1 = prefix.length;
  13927. if (string.length < t1)
  13928. return false;
  13929. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  13930. if (!T.characterEqualsIgnoreCase(t2._codeUnitAt$1(string, i), C.JSString_methods._codeUnitAt$1(prefix, i)))
  13931. return false;
  13932. return true;
  13933. },
  13934. mapInPlace: function(list, $function) {
  13935. var i;
  13936. for (i = 0; i < list.length; ++i)
  13937. list[i] = $function.call$1(list[i]);
  13938. },
  13939. longestCommonSubsequence: function(list1, list2, select, $T) {
  13940. var t1, lengths, selections, t2, i, i0, j, selection, t3, j0, t4, t5;
  13941. if (select == null)
  13942. select = new B.longestCommonSubsequence_closure($T);
  13943. t1 = J.getInterceptor$asx(list1);
  13944. lengths = P.List_List$generate(t1.get$length(list1) + 1, new B.longestCommonSubsequence_closure0(list2), false, type$.legacy_List_legacy_int);
  13945. selections = P.List_List$generate(t1.get$length(list1), new B.longestCommonSubsequence_closure1(list2, $T), false, $T._eval$1("List<0*>*"));
  13946. for (t2 = J.getInterceptor$asx(list2), i = 0; i < t1.get$length(list1); i = i0)
  13947. for (i0 = i + 1, j = 0; j < t2.get$length(list2); j = j0) {
  13948. selection = select.call$2(t1.$index(list1, i), t2.$index(list2, j));
  13949. J.$indexSet$ax(selections[i], j, selection);
  13950. t3 = lengths[i0];
  13951. j0 = j + 1;
  13952. if (selection == null) {
  13953. t4 = J.$index$asx(t3, j);
  13954. t5 = J.$index$asx(lengths[i], j0);
  13955. t5 = Math.max(H.checkNum(t4), H.checkNum(t5));
  13956. t4 = t5;
  13957. } else
  13958. t4 = J.$index$asx(lengths[i], j) + 1;
  13959. J.$indexSet$ax(t3, j0, t4);
  13960. }
  13961. return new B.longestCommonSubsequence_backtrack(selections, lengths, $T).call$2(t1.get$length(list1) - 1, t2.get$length(list2) - 1);
  13962. },
  13963. removeFirstWhere: function(list, test, orElse) {
  13964. var toRemove, element,
  13965. t1 = list.length,
  13966. _i = 0;
  13967. while (true) {
  13968. if (!(_i < list.length)) {
  13969. toRemove = null;
  13970. break;
  13971. }
  13972. c$0: {
  13973. element = list[_i];
  13974. if (!test.call$1(element))
  13975. break c$0;
  13976. toRemove = element;
  13977. break;
  13978. }
  13979. list.length === t1 || (0, H.throwConcurrentModificationError)(list);
  13980. ++_i;
  13981. }
  13982. if (toRemove == null)
  13983. return orElse.call$0();
  13984. else {
  13985. C.JSArray_methods.remove$1(list, toRemove);
  13986. return toRemove;
  13987. }
  13988. },
  13989. mapAddAll2: function(destination, source) {
  13990. source.forEach$1(0, new B.mapAddAll2_closure(destination));
  13991. },
  13992. setAll: function(map, keys, value) {
  13993. var t1;
  13994. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  13995. map.$indexSet(0, t1.get$current(t1), value);
  13996. },
  13997. rotateSlice: function(list, start, end) {
  13998. var i, next,
  13999. element = list.$index(0, end - 1);
  14000. for (i = start; i < end; ++i, element = next) {
  14001. next = list.$index(0, i);
  14002. list.$indexSet(0, i, element);
  14003. }
  14004. },
  14005. mapAsync: function(iterable, callback, $E, $F) {
  14006. return B.mapAsync$body(iterable, callback, $E, $F, $F._eval$1("Iterable<0*>*"));
  14007. },
  14008. mapAsync$body: function(iterable, callback, $E, $F, $async$type) {
  14009. var $async$goto = 0,
  14010. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  14011. $async$returnValue, t2, _i, t1, $async$temp1;
  14012. var $async$mapAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14013. if ($async$errorCode === 1)
  14014. return P._asyncRethrow($async$result, $async$completer);
  14015. while (true)
  14016. switch ($async$goto) {
  14017. case 0:
  14018. // Function start
  14019. t1 = H.setRuntimeTypeInfo([], $F._eval$1("JSArray<0*>"));
  14020. t2 = iterable.length, _i = 0;
  14021. case 3:
  14022. // for condition
  14023. if (!(_i < t2)) {
  14024. // goto after for
  14025. $async$goto = 5;
  14026. break;
  14027. }
  14028. $async$temp1 = t1;
  14029. $async$goto = 6;
  14030. return P._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync);
  14031. case 6:
  14032. // returning from await.
  14033. $async$temp1.push($async$result);
  14034. case 4:
  14035. // for update
  14036. ++_i;
  14037. // goto for condition
  14038. $async$goto = 3;
  14039. break;
  14040. case 5:
  14041. // after for
  14042. $async$returnValue = t1;
  14043. // goto return
  14044. $async$goto = 1;
  14045. break;
  14046. case 1:
  14047. // return
  14048. return P._asyncReturn($async$returnValue, $async$completer);
  14049. }
  14050. });
  14051. return P._asyncStartSync($async$mapAsync, $async$completer);
  14052. },
  14053. putIfAbsentAsync: function(map, key, ifAbsent, $K, $V) {
  14054. return B.putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $V._eval$1("0*"));
  14055. },
  14056. putIfAbsentAsync$body: function(map, key, ifAbsent, $K, $V, $async$type) {
  14057. var $async$goto = 0,
  14058. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  14059. $async$returnValue, value;
  14060. var $async$putIfAbsentAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14061. if ($async$errorCode === 1)
  14062. return P._asyncRethrow($async$result, $async$completer);
  14063. while (true)
  14064. switch ($async$goto) {
  14065. case 0:
  14066. // Function start
  14067. if (map.containsKey$1(key)) {
  14068. $async$returnValue = map.$index(0, key);
  14069. // goto return
  14070. $async$goto = 1;
  14071. break;
  14072. }
  14073. $async$goto = 3;
  14074. return P._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync);
  14075. case 3:
  14076. // returning from await.
  14077. value = $async$result;
  14078. map.$indexSet(0, key, value);
  14079. $async$returnValue = value;
  14080. // goto return
  14081. $async$goto = 1;
  14082. break;
  14083. case 1:
  14084. // return
  14085. return P._asyncReturn($async$returnValue, $async$completer);
  14086. }
  14087. });
  14088. return P._asyncStartSync($async$putIfAbsentAsync, $async$completer);
  14089. },
  14090. copyMapOfMap: function(map, K1, K2, $V) {
  14091. var t2, t3, t4, t5, t6, t7,
  14092. t1 = P.LinkedHashMap_LinkedHashMap$_empty(K1._eval$1("0*"), K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1*,2*>*"));
  14093. for (t2 = map.get$entries(), t2 = t2.get$iterator(t2), t3 = K2._eval$1("0*"), t4 = $V._eval$1("0*"); t2.moveNext$0();) {
  14094. t5 = t2.get$current(t2);
  14095. t6 = t5.key;
  14096. t5 = t5.value;
  14097. t7 = P.LinkedHashMap_LinkedHashMap(null, null, null, t3, t4);
  14098. t7.addAll$1(0, t5);
  14099. t1.$indexSet(0, t6, t7);
  14100. }
  14101. return t1;
  14102. },
  14103. copyMapOfList: function(map, $K, $E) {
  14104. var t2, t3,
  14105. t1 = P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), $E._eval$1("List<0*>*"));
  14106. for (t2 = map.get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  14107. t3 = t2.get$current(t2);
  14108. t1.$indexSet(0, t3.key, J.toList$0$ax(t3.value));
  14109. }
  14110. return t1;
  14111. },
  14112. SpanExtensions_trim: function(_this) {
  14113. var t3, end, end0,
  14114. t1 = _this.file,
  14115. t2 = _this._file$_start,
  14116. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t2, _this._end), 0, null),
  14117. start = 0;
  14118. while (true) {
  14119. t3 = C.JSString_methods._codeUnitAt$1(text, start);
  14120. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  14121. break;
  14122. ++start;
  14123. }
  14124. end = text.length - 1;
  14125. end0 = end;
  14126. while (true) {
  14127. t3 = C.JSString_methods.codeUnitAt$1(text, end0);
  14128. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  14129. break;
  14130. --end0;
  14131. }
  14132. return start === 0 && end0 === end ? _this : t1.span$2(Y.FileLocation$_(t1, t2).offset + start, Y.FileLocation$_(t1, t2).offset + end0 + 1);
  14133. },
  14134. indent_closure: function indent_closure(t0) {
  14135. this.indentation = t0;
  14136. },
  14137. flattenVertically_closure: function flattenVertically_closure(t0) {
  14138. this.T = t0;
  14139. },
  14140. flattenVertically_closure0: function flattenVertically_closure0(t0) {
  14141. this.result = t0;
  14142. },
  14143. longestCommonSubsequence_closure: function longestCommonSubsequence_closure(t0) {
  14144. this.T = t0;
  14145. },
  14146. longestCommonSubsequence_closure0: function longestCommonSubsequence_closure0(t0) {
  14147. this.list2 = t0;
  14148. },
  14149. longestCommonSubsequence_closure1: function longestCommonSubsequence_closure1(t0, t1) {
  14150. this.list2 = t0;
  14151. this.T = t1;
  14152. },
  14153. longestCommonSubsequence_backtrack: function longestCommonSubsequence_backtrack(t0, t1, t2) {
  14154. this.selections = t0;
  14155. this.lengths = t1;
  14156. this.T = t2;
  14157. },
  14158. mapAddAll2_closure: function mapAddAll2_closure(t0) {
  14159. this.destination = t0;
  14160. },
  14161. ArgumentDeclaration_ArgumentDeclaration$parse0: function(contents, url) {
  14162. var t1 = S.SpanScanner$(contents, url);
  14163. return new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0();
  14164. },
  14165. ArgumentDeclaration0: function ArgumentDeclaration0(t0, t1, t2) {
  14166. this.$arguments = t0;
  14167. this.restArgument = t1;
  14168. this.span = t2;
  14169. },
  14170. ArgumentDeclaration_verify_closure1: function ArgumentDeclaration_verify_closure1() {
  14171. },
  14172. ArgumentDeclaration_verify_closure2: function ArgumentDeclaration_verify_closure2() {
  14173. },
  14174. AsyncCallable0: function AsyncCallable0() {
  14175. },
  14176. AsyncImporter0: function AsyncImporter0() {
  14177. },
  14178. DynamicImport0: function DynamicImport0(t0, t1) {
  14179. this.url = t0;
  14180. this.span = t1;
  14181. },
  14182. ForRule0: function ForRule0(t0, t1, t2, t3, t4, t5, t6) {
  14183. var _ = this;
  14184. _.variable = t0;
  14185. _.from = t1;
  14186. _.to = t2;
  14187. _.isExclusive = t3;
  14188. _.span = t4;
  14189. _.children = t5;
  14190. _.hasDeclarations = t6;
  14191. },
  14192. ImportRule0: function ImportRule0(t0, t1) {
  14193. this.imports = t0;
  14194. this.span = t1;
  14195. },
  14196. AstNode0: function AstNode0() {
  14197. },
  14198. _FakeAstNode0: function _FakeAstNode0(t0) {
  14199. this._node3$_callback = t0;
  14200. },
  14201. CssNode0: function CssNode0() {
  14202. },
  14203. CssParentNode0: function CssParentNode0() {
  14204. },
  14205. readFile0: function(path) {
  14206. var t1, t2, t3, sourceFile, i,
  14207. contents = H._asStringS(B._readFile0(path, "utf8"));
  14208. if (!J.getInterceptor$asx(contents).contains$1(contents, "\ufffd"))
  14209. return contents;
  14210. t1 = $.$get$context().toUri$1(path);
  14211. t2 = new H.CodeUnits(contents);
  14212. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  14213. sourceFile = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  14214. sourceFile.SourceFile$decoded$2$url(t2, t1);
  14215. for (t1 = contents.length, i = 0; i < t1; ++i) {
  14216. if (C.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
  14217. continue;
  14218. throw H.wrapException(E.SassException$0("Invalid UTF-8.", Y.FileLocation$_(sourceFile, i).pointSpan$0()));
  14219. }
  14220. return contents;
  14221. },
  14222. _readFile0: function(path, encoding) {
  14223. return B._systemErrorToFileSystemException0(new B._readFile_closure0(path, encoding));
  14224. },
  14225. fileExists0: function(path) {
  14226. return B._systemErrorToFileSystemException0(new B.fileExists_closure0(path));
  14227. },
  14228. dirExists0: function(path) {
  14229. return B._systemErrorToFileSystemException0(new B.dirExists_closure0(path));
  14230. },
  14231. listDir0: function(path) {
  14232. return B._systemErrorToFileSystemException0(new B.listDir_closure0(false, path));
  14233. },
  14234. _systemErrorToFileSystemException0: function(callback) {
  14235. var error, systemError, t1, exception, t2;
  14236. try {
  14237. t1 = callback.call$0();
  14238. return t1;
  14239. } catch (exception) {
  14240. error = H.unwrapException(exception);
  14241. systemError = type$.legacy__SystemError_2._as(error);
  14242. t1 = systemError;
  14243. t2 = J.getInterceptor$x(t1);
  14244. throw H.wrapException(new B.FileSystemException0(J.substring$2$s(t2.get$message(t1), (H.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + H.S(t2.get$syscall(t1)) + " '" + H.S(t2.get$path(t1)) + "'").length), J.get$path$x(systemError)));
  14245. }
  14246. },
  14247. _FS0: function _FS0() {
  14248. },
  14249. _Stat0: function _Stat0() {
  14250. },
  14251. _Date0: function _Date0() {
  14252. },
  14253. _Stderr0: function _Stderr0() {
  14254. },
  14255. _Stdin0: function _Stdin0() {
  14256. },
  14257. _SystemError0: function _SystemError0() {
  14258. },
  14259. _Process0: function _Process0() {
  14260. },
  14261. FileSystemException0: function FileSystemException0(t0, t1) {
  14262. this.message = t0;
  14263. this.path = t1;
  14264. },
  14265. Stderr0: function Stderr0(t0) {
  14266. this._node1$_stderr = t0;
  14267. },
  14268. _readFile_closure0: function _readFile_closure0(t0, t1) {
  14269. this.path = t0;
  14270. this.encoding = t1;
  14271. },
  14272. fileExists_closure0: function fileExists_closure0(t0) {
  14273. this.path = t0;
  14274. },
  14275. dirExists_closure0: function dirExists_closure0(t0) {
  14276. this.path = t0;
  14277. },
  14278. listDir_closure0: function listDir_closure0(t0, t1) {
  14279. this.recursive = t0;
  14280. this.path = t1;
  14281. },
  14282. listDir__closure1: function listDir__closure1(t0) {
  14283. this.path = t0;
  14284. },
  14285. listDir__closure2: function listDir__closure2() {
  14286. },
  14287. listDir_closure_list0: function listDir_closure_list0() {
  14288. },
  14289. listDir__list_closure0: function listDir__list_closure0(t0, t1) {
  14290. this.parent = t0;
  14291. this.list = t1;
  14292. },
  14293. ModifiableCssNode0: function ModifiableCssNode0() {
  14294. },
  14295. ModifiableCssParentNode0: function ModifiableCssParentNode0() {
  14296. },
  14297. SassNode0: function SassNode0() {
  14298. },
  14299. _render: function(options, callback) {
  14300. var t1 = J.getInterceptor$x(options);
  14301. if (t1.get$fiber(options) != null)
  14302. J.run$0$x(t1.get$fiber(options).call$1(P.allowInterop(new B._render_closure(callback, options))));
  14303. else
  14304. B._renderAsync(options).then$1$2$onError(new B._render_closure0(callback), new B._render_closure1(callback), type$.Null);
  14305. },
  14306. _renderAsync: function(options) {
  14307. var $async$goto = 0,
  14308. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_RenderResult),
  14309. $async$returnValue, t2, t3, t4, t5, t6, t7, t8, t9, result, start, t1, file;
  14310. var $async$_renderAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14311. if ($async$errorCode === 1)
  14312. return P._asyncRethrow($async$result, $async$completer);
  14313. while (true)
  14314. switch ($async$goto) {
  14315. case 0:
  14316. // Function start
  14317. start = new P.DateTime(Date.now(), false);
  14318. t1 = J.getInterceptor$x(options);
  14319. file = t1.get$file(options) == null ? null : D.absolute(t1.get$file(options));
  14320. $async$goto = t1.get$data(options) != null ? 3 : 5;
  14321. break;
  14322. case 3:
  14323. // then
  14324. t2 = t1.get$data(options);
  14325. t3 = B._parseImporter(options, start);
  14326. t4 = B._parseFunctions(options, true);
  14327. t5 = t1.get$indentedSyntax(options);
  14328. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : null;
  14329. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  14330. t7 = J.$eq$(t1.get$indentType(options), "tab");
  14331. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  14332. t9 = B._parseLineFeed(t1.get$linefeed(options));
  14333. t1 = t1.get$file(options) == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
  14334. $async$goto = 6;
  14335. return P._asyncAwait(X.compileStringAsync0(t2, t4, t8, t9, t3, B._enableSourceMaps(options), t6, t5, t1, !t7), $async$_renderAsync);
  14336. case 6:
  14337. // returning from await.
  14338. result = $async$result;
  14339. // goto join
  14340. $async$goto = 4;
  14341. break;
  14342. case 5:
  14343. // else
  14344. $async$goto = t1.get$file(options) != null ? 7 : 9;
  14345. break;
  14346. case 7:
  14347. // then
  14348. t2 = B._parseImporter(options, start);
  14349. t3 = B._parseFunctions(options, true);
  14350. t4 = t1.get$indentedSyntax(options);
  14351. t4 = !J.$eq$(t4, false) && t4 != null ? C.Syntax_Sass0 : null;
  14352. t5 = B._parseOutputStyle(t1.get$outputStyle(options));
  14353. t6 = J.$eq$(t1.get$indentType(options), "tab");
  14354. $async$goto = 10;
  14355. return P._asyncAwait(X.compileAsync0(file, t3, B._parseIndentWidth(t1.get$indentWidth(options)), B._parseLineFeed(t1.get$linefeed(options)), t2, B._enableSourceMaps(options), t5, t4, !t6), $async$_renderAsync);
  14356. case 10:
  14357. // returning from await.
  14358. result = $async$result;
  14359. // goto join
  14360. $async$goto = 8;
  14361. break;
  14362. case 9:
  14363. // else
  14364. throw H.wrapException(P.ArgumentError$(string$.Either));
  14365. case 8:
  14366. // join
  14367. case 4:
  14368. // join
  14369. $async$returnValue = B._newRenderResult(options, result, start);
  14370. // goto return
  14371. $async$goto = 1;
  14372. break;
  14373. case 1:
  14374. // return
  14375. return P._asyncReturn($async$returnValue, $async$completer);
  14376. }
  14377. });
  14378. return P._asyncStartSync($async$_renderAsync, $async$completer);
  14379. },
  14380. _renderSync: function(options) {
  14381. var start, file, result, error, error0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, stylesheet, exception, _null = null;
  14382. try {
  14383. start = new P.DateTime(Date.now(), false);
  14384. t1 = J.getInterceptor$x(options);
  14385. file = t1.get$file(options) == null ? _null : D.absolute(t1.get$file(options));
  14386. result = null;
  14387. if (t1.get$data(options) != null) {
  14388. t2 = t1.get$data(options);
  14389. t3 = B._parseImporter(options, start);
  14390. t4 = B._parseFunctions(options, false);
  14391. t5 = t1.get$indentedSyntax(options);
  14392. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : _null;
  14393. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  14394. t7 = J.$eq$(t1.get$indentType(options), "tab");
  14395. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  14396. t9 = B._parseLineFeed(t1.get$linefeed(options));
  14397. t1 = t1.get$file(options) == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
  14398. t10 = B._enableSourceMaps(options);
  14399. stylesheet = V.Stylesheet_Stylesheet$parse0(t2, t5 == null ? C.Syntax_SCSS0 : t5, _null, t1);
  14400. t1 = D.absolute(".");
  14401. result = U._compileStylesheet1(stylesheet, _null, _null, t3, new F.FilesystemImporter0(t1), new H.CastList(t4, H._arrayInstanceType(t4)._eval$1("CastList<1,Callable0*>")), t6, !t7, t8, t9, t10, true);
  14402. } else if (t1.get$file(options) != null) {
  14403. t2 = file;
  14404. t3 = B._parseImporter(options, start);
  14405. t4 = B._parseFunctions(options, false);
  14406. t5 = t1.get$indentedSyntax(options);
  14407. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : _null;
  14408. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  14409. t7 = J.$eq$(t1.get$indentType(options), "tab");
  14410. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  14411. t1 = B._parseLineFeed(t1.get$linefeed(options));
  14412. t9 = B._enableSourceMaps(options);
  14413. t10 = B.readFile0(t2);
  14414. if (t5 == null)
  14415. t5 = M.Syntax_forPath0(t2);
  14416. stylesheet = V.Stylesheet_Stylesheet$parse0(t10, t5, _null, $.$get$context().toUri$1(t2));
  14417. result = U._compileStylesheet1(stylesheet, _null, _null, t3, new F.FilesystemImporter0(D.absolute(".")), new H.CastList(t4, H._arrayInstanceType(t4)._eval$1("CastList<1,Callable0*>")), t6, !t7, t8, t1, t9, true);
  14418. } else {
  14419. t1 = P.ArgumentError$(string$.Either);
  14420. throw H.wrapException(t1);
  14421. }
  14422. t1 = B._newRenderResult(options, result, start);
  14423. return t1;
  14424. } catch (exception) {
  14425. t1 = H.unwrapException(exception);
  14426. if (t1 instanceof E.SassException0) {
  14427. error = t1;
  14428. t1 = B._wrapException(error);
  14429. $.$get$_jsThrow().call$1(t1);
  14430. } else {
  14431. error0 = t1;
  14432. t1 = B._newRenderError(J.toString$0$(error0), _null, _null, _null, 3);
  14433. $.$get$_jsThrow().call$1(t1);
  14434. }
  14435. }
  14436. throw H.wrapException("unreachable");
  14437. },
  14438. _wrapException: function(exception) {
  14439. var t3, t4,
  14440. t1 = C.JSString_methods.replaceFirst$2(exception.toString$0(0), "Error: ", ""),
  14441. t2 = G.SourceSpanException.prototype.get$span.call(exception);
  14442. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  14443. t2 = t2.file.getLine$1(t2.offset);
  14444. t3 = G.SourceSpanException.prototype.get$span.call(exception);
  14445. t3 = Y.FileLocation$_(t3.file, t3._file$_start);
  14446. t3 = t3.file.getColumn$1(t3.offset);
  14447. if (G.SourceSpanException.prototype.get$span.call(exception).file.url == null)
  14448. t4 = "stdin";
  14449. else {
  14450. t4 = G.SourceSpanException.prototype.get$span.call(exception).file;
  14451. t4 = $.$get$context().style.pathFromUri$1(M._parseUri(t4.url));
  14452. }
  14453. return B._newRenderError(t1, t3 + 1, t4, t2 + 1, 1);
  14454. },
  14455. _parseFunctions: function(options, asynch) {
  14456. var result,
  14457. t1 = J.getInterceptor$x(options);
  14458. if (t1.get$functions(options) == null)
  14459. return C.List_empty21;
  14460. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncCallable);
  14461. B.jsForEach(t1.get$functions(options), new B._parseFunctions_closure(options, result, asynch));
  14462. return result;
  14463. },
  14464. _parseImporter: function(options, start) {
  14465. var importers, t2, t3, includePaths, t4, t5, t6, t7, _i, t8, t9, t10, context,
  14466. t1 = J.getInterceptor$x(options);
  14467. if (t1.get$importer(options) == null)
  14468. importers = H.setRuntimeTypeInfo([], type$.JSArray_legacy_JSFunction);
  14469. else {
  14470. t2 = type$.legacy_List_legacy_Object;
  14471. t3 = type$.legacy_JSFunction;
  14472. importers = t2._is(t1.get$importer(options)) ? J.cast$1$0$ax(t2._as(t1.get$importer(options)), t3) : H.setRuntimeTypeInfo([t3._as(t1.get$importer(options))], type$.JSArray_legacy_JSFunction);
  14473. }
  14474. t2 = t1.get$includePaths(options);
  14475. if (t2 == null)
  14476. t2 = [];
  14477. t3 = type$.legacy_String;
  14478. includePaths = P.List_List$from(t2, true, t3);
  14479. t2 = J.getInterceptor$asx(importers);
  14480. if (t2.get$isNotEmpty(importers)) {
  14481. t4 = t1.get$file(options);
  14482. t5 = t1.get$data(options);
  14483. t6 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  14484. t6.push(D.current());
  14485. for (t7 = includePaths.length, _i = 0; _i < includePaths.length; includePaths.length === t7 || (0, H.throwConcurrentModificationError)(includePaths), ++_i)
  14486. t6.push(includePaths[_i]);
  14487. t6 = C.JSArray_methods.join$1(t6, J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  14488. t7 = J.$eq$(t1.get$indentType(options), "tab") ? 1 : 0;
  14489. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  14490. if (t8 == null)
  14491. t8 = 2;
  14492. t9 = B._parseLineFeed(t1.get$linefeed(options));
  14493. t10 = t1.get$file(options);
  14494. if (t10 == null)
  14495. t10 = "data";
  14496. context = {options: {file: t4, data: t5, includePaths: t6, precision: 10, style: 1, indentType: t7, indentWidth: t8, linefeed: t9.text, result: {stats: {entry: t10, start: start._value}}}};
  14497. J.set$context$x(J.get$options$x(context), context);
  14498. } else
  14499. context = null;
  14500. if (t1.get$fiber(options) != null) {
  14501. t1 = t2.map$1$1(importers, new B._parseImporter_closure(options), type$.legacy_JSFunction);
  14502. importers = P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  14503. }
  14504. return new F.NodeImporter(context, P.List_List$unmodifiable(F.NodeImporter__addSassPath(includePaths), t3), P.List_List$unmodifiable(J.cast$1$0$ax(importers, type$.dynamic), type$.legacy_JSFunction));
  14505. },
  14506. _parseOutputStyle: function(style) {
  14507. if (style == null || style === "expanded")
  14508. return C.OutputStyle_expanded;
  14509. if (style === "compressed")
  14510. return C.OutputStyle_compressed0;
  14511. throw H.wrapException(P.ArgumentError$('Unsupported output style "' + H.S(style) + '".'));
  14512. },
  14513. _parseIndentWidth: function(width) {
  14514. if (width == null)
  14515. return null;
  14516. return H._isInt(width) ? width : P.int_parse(J.toString$0$(width), null);
  14517. },
  14518. _parseLineFeed: function(str) {
  14519. switch (str) {
  14520. case "cr":
  14521. return C.LineFeed_kMT;
  14522. case "crlf":
  14523. return C.LineFeed_Mss;
  14524. case "lfcr":
  14525. return C.LineFeed_a1Y;
  14526. default:
  14527. return C.LineFeed_D6m;
  14528. }
  14529. },
  14530. _newRenderResult: function(options, result, start) {
  14531. var t3, sourceMapPath, t4, sourceMapDir, sourceMapDirUrl, i, source, t5, t6, sourceMapBytes, buffer, indices, url, _null = null,
  14532. t1 = Date.now(),
  14533. t2 = result._async_compile$_serialize,
  14534. css = t2.css;
  14535. if (B._enableSourceMaps(options)) {
  14536. t3 = J.getInterceptor$x(options);
  14537. sourceMapPath = typeof t3.get$sourceMap(options) == "string" ? H._asStringS(t3.get$sourceMap(options)) : J.$add$ansx(t3.get$outFile(options), ".map");
  14538. t4 = $.$get$context();
  14539. sourceMapDir = t4.dirname$1(sourceMapPath);
  14540. t2 = t2.sourceMap;
  14541. t2.sourceRoot = t3.get$sourceMapRoot(options);
  14542. if (t3.get$outFile(options) == null)
  14543. if (t3.get$file(options) == null)
  14544. t2.targetUrl = "stdin.css";
  14545. else
  14546. t2.targetUrl = t4.toUri$1(t4.withoutExtension$1(t3.get$file(options)) + ".css").toString$0(0);
  14547. else
  14548. t2.targetUrl = t4.toUri$1(t4.relative$2$from(t3.get$outFile(options), sourceMapDir)).toString$0(0);
  14549. sourceMapDirUrl = t4.toUri$1(sourceMapDir).toString$0(0);
  14550. for (t4 = t2.urls, i = 0; i < t4.length; ++i) {
  14551. source = t4[i];
  14552. if (source === "stdin")
  14553. continue;
  14554. t5 = $.$get$url();
  14555. t6 = t5.style;
  14556. if (t6.rootLength$1(source) <= 0 || t6.isRootRelative$1(source))
  14557. continue;
  14558. t4[i] = t5.relative$2$from(source, sourceMapDirUrl);
  14559. }
  14560. t4 = t3.get$sourceMapContents(options);
  14561. sourceMapBytes = self.Buffer.from(C.C_JsonCodec.encode$2$toEncodable(t2.toJson$1$includeSourceContents(!J.$eq$(t4, false) && t4 != null), _null), "utf8");
  14562. t2 = t3.get$omitSourceMapUrl(options);
  14563. if (!(!J.$eq$(t2, false) && t2 != null)) {
  14564. t2 = t3.get$sourceMapEmbed(options);
  14565. if (!J.$eq$(t2, false) && t2 != null) {
  14566. buffer = new P.StringBuffer("");
  14567. indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
  14568. P.UriData__writeUri("application/json", _null, _null, buffer, indices);
  14569. indices.push(buffer._contents.length);
  14570. t2 = buffer._contents += ";base64,";
  14571. indices.push(t2.length - 1);
  14572. C.C_Base64Encoder.startChunkedConversion$1(new P._StringSinkConversionSink(buffer)).addSlice$4(sourceMapBytes, 0, sourceMapBytes.length, true);
  14573. t2 = buffer._contents;
  14574. url = new P.UriData(t2.charCodeAt(0) == 0 ? t2 : t2, indices, _null).get$uri();
  14575. } else {
  14576. if (t3.get$outFile(options) == null)
  14577. t2 = sourceMapPath;
  14578. else {
  14579. t2 = t3.get$outFile(options);
  14580. t3 = $.$get$context();
  14581. t2 = t3.relative$2$from(sourceMapPath, t3.dirname$1(t2));
  14582. }
  14583. url = $.$get$context().toUri$1(t2);
  14584. }
  14585. css += "\n\n/*# sourceMappingURL=" + url.toString$0(0) + " */";
  14586. }
  14587. } else
  14588. sourceMapBytes = _null;
  14589. t2 = self.Buffer.from(css, "utf8");
  14590. t3 = J.get$file$x(options);
  14591. if (t3 == null)
  14592. t3 = "data";
  14593. t4 = start._value;
  14594. t1 = new P.DateTime(t1, false)._value;
  14595. t5 = C.JSInt_methods._tdivFast$1(P.Duration$(t1 - t4)._duration, 1000);
  14596. t6 = result._evaluate.includedFiles;
  14597. return {css: t2, map: sourceMapBytes, stats: {entry: t3, start: t4, end: t1, duration: t5, includedFiles: P.List_List$from(t6, true, H._instanceType(t6)._precomputed1)}};
  14598. },
  14599. _enableSourceMaps: function(options) {
  14600. var t2,
  14601. t1 = J.getInterceptor$x(options);
  14602. if (typeof t1.get$sourceMap(options) != "string") {
  14603. t2 = t1.get$sourceMap(options);
  14604. t1 = !J.$eq$(t2, false) && t2 != null && t1.get$outFile(options) != null;
  14605. } else
  14606. t1 = true;
  14607. return t1;
  14608. },
  14609. _newRenderError: function(message, column, file, line, $status) {
  14610. var error = new self.Error(message);
  14611. error.formatted = "Error: " + H.S(message);
  14612. if (line != null)
  14613. error.line = line;
  14614. if (column != null)
  14615. error.column = column;
  14616. if (file != null)
  14617. error.file = file;
  14618. error.status = $status;
  14619. return error;
  14620. },
  14621. _render_closure: function _render_closure(t0, t1) {
  14622. this.callback = t0;
  14623. this.options = t1;
  14624. },
  14625. _render_closure0: function _render_closure0(t0) {
  14626. this.callback = t0;
  14627. },
  14628. _render_closure1: function _render_closure1(t0) {
  14629. this.callback = t0;
  14630. },
  14631. _parseFunctions_closure: function _parseFunctions_closure(t0, t1, t2) {
  14632. this.options = t0;
  14633. this.result = t1;
  14634. this.asynch = t2;
  14635. },
  14636. _parseFunctions__closure: function _parseFunctions__closure(t0, t1) {
  14637. this.options = t0;
  14638. this.callback = t1;
  14639. },
  14640. _parseFunctions___closure0: function _parseFunctions___closure0(t0) {
  14641. this.fiber = t0;
  14642. },
  14643. _parseFunctions____closure: function _parseFunctions____closure(t0, t1) {
  14644. this.fiber = t0;
  14645. this.result = t1;
  14646. },
  14647. _parseFunctions__closure0: function _parseFunctions__closure0(t0) {
  14648. this.callback = t0;
  14649. },
  14650. _parseFunctions__closure1: function _parseFunctions__closure1(t0) {
  14651. this.callback = t0;
  14652. },
  14653. _parseFunctions___closure: function _parseFunctions___closure(t0) {
  14654. this.completer = t0;
  14655. },
  14656. _parseImporter_closure: function _parseImporter_closure(t0) {
  14657. this.options = t0;
  14658. },
  14659. _parseImporter__closure: function _parseImporter__closure(t0, t1) {
  14660. this.options = t0;
  14661. this.importer = t1;
  14662. },
  14663. _parseImporter___closure: function _parseImporter___closure(t0) {
  14664. this.fiber = t0;
  14665. },
  14666. _parseImporter____closure: function _parseImporter____closure(t0, t1) {
  14667. this.fiber = t0;
  14668. this.result = t1;
  14669. },
  14670. ReturnRule0: function ReturnRule0(t0, t1) {
  14671. this.expression = t0;
  14672. this.span = t1;
  14673. },
  14674. ShadowedModuleView_ifNecessary0: function(inner, functions, mixins, variables, $T) {
  14675. var t1;
  14676. if (B.ShadowedModuleView__needsBlacklist0(inner.get$variables(), variables) || B.ShadowedModuleView__needsBlacklist0(inner.get$functions(inner), functions) || B.ShadowedModuleView__needsBlacklist0(inner.get$mixins(), mixins)) {
  14677. t1 = $T._eval$1("0*");
  14678. t1 = new B.ShadowedModuleView0(inner, B.ShadowedModuleView__shadowedMap0(inner.get$variables(), variables, type$.legacy_Value_2), B.ShadowedModuleView__shadowedMap0(inner.get$variableNodes(), variables, type$.legacy_AstNode_2), B.ShadowedModuleView__shadowedMap0(inner.get$functions(inner), functions, t1), B.ShadowedModuleView__shadowedMap0(inner.get$mixins(), mixins, t1), $T._eval$1("ShadowedModuleView0<0*>"));
  14679. } else
  14680. t1 = null;
  14681. return t1;
  14682. },
  14683. ShadowedModuleView__shadowedMap0: function(map, blocklist, $V) {
  14684. if (map == null || !B.ShadowedModuleView__needsBlacklist0(map, blocklist))
  14685. return map;
  14686. return K.LimitedMapView$blocklist0(map, blocklist, type$.legacy_String, $V._eval$1("0*"));
  14687. },
  14688. ShadowedModuleView__needsBlacklist0: function(map, blocklist) {
  14689. var t1 = map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  14690. return t1;
  14691. },
  14692. ShadowedModuleView0: function ShadowedModuleView0(t0, t1, t2, t3, t4, t5) {
  14693. var _ = this;
  14694. _._shadowed_view0$_inner = t0;
  14695. _.variables = t1;
  14696. _.variableNodes = t2;
  14697. _.functions = t3;
  14698. _.mixins = t4;
  14699. _.$ti = t5;
  14700. },
  14701. SilentComment0: function SilentComment0(t0, t1) {
  14702. this.text = t0;
  14703. this.span = t1;
  14704. },
  14705. ModifiableCssSupportsRule0: function ModifiableCssSupportsRule0(t0, t1, t2, t3) {
  14706. var _ = this;
  14707. _.condition = t0;
  14708. _.span = t1;
  14709. _.children = t2;
  14710. _._node2$_children = t3;
  14711. _._node2$_indexInParent = _._node2$_parent = null;
  14712. _.isGroupEnd = false;
  14713. },
  14714. SupportsRule0: function SupportsRule0(t0, t1, t2, t3) {
  14715. var _ = this;
  14716. _.condition = t0;
  14717. _.span = t1;
  14718. _.children = t2;
  14719. _.hasDeclarations = t3;
  14720. },
  14721. inImportRule0: function(callback) {
  14722. var t1,
  14723. wasInImportRule = $._inImportRule0;
  14724. $._inImportRule0 = true;
  14725. try {
  14726. t1 = callback.call$0();
  14727. return t1;
  14728. } finally {
  14729. $._inImportRule0 = wasInImportRule;
  14730. }
  14731. },
  14732. resolveImportPath0: function(path) {
  14733. var t1,
  14734. extension = X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  14735. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  14736. t1 = $._inImportRule0 ? new B.resolveImportPath_closure1(path, extension).call$0() : null;
  14737. return t1 == null ? B._exactlyOne0(B._tryPath0(path)) : t1;
  14738. }
  14739. t1 = $._inImportRule0 ? new B.resolveImportPath_closure2(path).call$0() : null;
  14740. if (t1 == null)
  14741. t1 = B._exactlyOne0(B._tryPathWithExtensions0(path));
  14742. return t1 == null ? B._tryPathAsDirectory0(path) : t1;
  14743. },
  14744. _tryPathWithExtensions0: function(path) {
  14745. var result = B._tryPath0(J.$add$ansx(path, ".sass"));
  14746. C.JSArray_methods.addAll$1(result, B._tryPath0(path + ".scss"));
  14747. return result.length !== 0 ? result : B._tryPath0(path + ".css");
  14748. },
  14749. _tryPath0: function(path) {
  14750. var t1 = $.$get$context(),
  14751. partial = D.join(t1.dirname$1(path), "_" + H.S(X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename()), null);
  14752. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  14753. if (B.fileExists0(partial))
  14754. t1.push(partial);
  14755. if (B.fileExists0(path))
  14756. t1.push(path);
  14757. return t1;
  14758. },
  14759. _tryPathAsDirectory0: function(path) {
  14760. var t1;
  14761. if (!B.dirExists0(path))
  14762. return null;
  14763. t1 = $._inImportRule0 ? new B._tryPathAsDirectory_closure0(path).call$0() : null;
  14764. return t1 == null ? B._exactlyOne0(B._tryPathWithExtensions0(D.join(path, "index", null))) : t1;
  14765. },
  14766. _exactlyOne0: function(paths) {
  14767. var t1 = paths.length;
  14768. if (t1 === 0)
  14769. return null;
  14770. if (t1 === 1)
  14771. return C.JSArray_methods.get$first(paths);
  14772. throw H.wrapException(string$.It_s_n + C.JSArray_methods.map$1$1(paths, new B._exactlyOne_closure0(), type$.legacy_String).join$1(0, "\n"));
  14773. },
  14774. resolveImportPath_closure1: function resolveImportPath_closure1(t0, t1) {
  14775. this.path = t0;
  14776. this.extension = t1;
  14777. },
  14778. resolveImportPath_closure2: function resolveImportPath_closure2(t0) {
  14779. this.path = t0;
  14780. },
  14781. _tryPathAsDirectory_closure0: function _tryPathAsDirectory_closure0(t0) {
  14782. this.path = t0;
  14783. },
  14784. _exactlyOne_closure0: function _exactlyOne_closure0() {
  14785. },
  14786. forwardToString: function(klass) {
  14787. klass.prototype.toString = P.allowInteropCaptureThis(new B.forwardToString_closure());
  14788. },
  14789. jsForEach: function(object, callback) {
  14790. var t1, t2;
  14791. for (t1 = J.get$iterator$ax(self.Object.keys(object)); t1.moveNext$0();) {
  14792. t2 = t1.get$current(t1);
  14793. callback.call$2(t2, object[t2]);
  14794. }
  14795. },
  14796. createClass: function($name, $constructor, methods) {
  14797. var klass = P.allowInteropCaptureThis($constructor);
  14798. self.Object.defineProperty(klass, "name", {value: $name});
  14799. methods.forEach$1(0, new B.createClass_closure(klass.prototype));
  14800. return klass;
  14801. },
  14802. injectSuperclass: function(object, $constructor) {
  14803. var $prototype = self.Object.getPrototypeOf(object),
  14804. $parent = self.Object.getPrototypeOf($prototype);
  14805. if ($parent != null)
  14806. self.Object.setPrototypeOf($constructor.prototype, $parent);
  14807. self.Object.setPrototypeOf($prototype, self.Object.create($constructor.prototype));
  14808. },
  14809. forwardToString_closure: function forwardToString_closure() {
  14810. },
  14811. createClass_closure: function createClass_closure(t0) {
  14812. this.$prototype = t0;
  14813. },
  14814. _PropertyDescriptor0: function _PropertyDescriptor0() {
  14815. },
  14816. toSentence0: function(iter, conjunction) {
  14817. var t1 = iter.__internal$_iterable,
  14818. t2 = J.getInterceptor$asx(t1);
  14819. if (t2.get$length(t1) === 1)
  14820. return J.toString$0$(iter._f.call$1(t2.get$first(t1)));
  14821. return H.TakeIterable_TakeIterable(iter, t2.get$length(t1) - 1, H._instanceType(iter)._eval$1("Iterable.E")).join$1(0, ", ") + (" " + conjunction + " " + H.S(iter._f.call$1(t2.get$last(t1))));
  14822. },
  14823. indent0: function(string, indentation) {
  14824. return new H.MappedListIterable(H.setRuntimeTypeInfo(string.split("\n"), type$.JSArray_String), new B.indent_closure0(indentation), type$.MappedListIterable_of_String_and_legacy_String).join$1(0, "\n");
  14825. },
  14826. pluralize0: function($name, number, plural) {
  14827. if (number === 1)
  14828. return $name;
  14829. if (plural != null)
  14830. return plural;
  14831. return $name + "s";
  14832. },
  14833. trimAscii0: function(string, excludeEscape) {
  14834. var start = B._firstNonWhitespace0(string);
  14835. return start == null ? "" : J.substring$2$s(string, start, B._lastNonWhitespace0(string, true) + 1);
  14836. },
  14837. trimAsciiRight0: function(string, excludeEscape) {
  14838. var end = B._lastNonWhitespace0(string, excludeEscape);
  14839. return end == null ? "" : J.substring$2$s(string, 0, end + 1);
  14840. },
  14841. _firstNonWhitespace0: function(string) {
  14842. var t1, i, t2;
  14843. for (t1 = string.length, i = 0; i < t1; ++i) {
  14844. t2 = C.JSString_methods._codeUnitAt$1(string, i);
  14845. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  14846. return i;
  14847. }
  14848. return null;
  14849. },
  14850. _lastNonWhitespace0: function(string, excludeEscape) {
  14851. var t1, i, t2, codeUnit;
  14852. for (t1 = string.length, i = t1 - 1, t2 = J.getInterceptor$s(string); i >= 0; --i) {
  14853. codeUnit = t2.codeUnitAt$1(string, i);
  14854. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  14855. if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
  14856. return i + 1;
  14857. else
  14858. return i;
  14859. }
  14860. return null;
  14861. },
  14862. isPublic0: function(member) {
  14863. var start = J._codeUnitAt$1$s(member, 0);
  14864. return start !== 45 && start !== 95;
  14865. },
  14866. flattenVertically0: function(iterable, $T) {
  14867. var result,
  14868. t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0*>*"))._eval$1("MappedListIterable<1,2>"),
  14869. queues = P.List_List$from(new H.MappedListIterable(iterable, new B.flattenVertically_closure1($T), t1), true, t1._eval$1("ListIterable.E"));
  14870. if (queues.length === 1)
  14871. return C.JSArray_methods.get$first(queues);
  14872. result = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"));
  14873. for (; queues.length !== 0;) {
  14874. if (!!queues.fixed$length)
  14875. H.throwExpression(P.UnsupportedError$("removeWhere"));
  14876. C.JSArray_methods._removeWhere$2(queues, new B.flattenVertically_closure2(result), true);
  14877. }
  14878. return result;
  14879. },
  14880. firstOrNull0: function(iterable) {
  14881. var iterator = J.get$iterator$ax(iterable);
  14882. return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
  14883. },
  14884. codepointIndexToCodeUnitIndex0: function(string, codepointIndex) {
  14885. var t1, codeUnitIndex, i, codeUnitIndex0, t2;
  14886. for (t1 = J.getInterceptor$s(string), codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  14887. codeUnitIndex0 = codeUnitIndex + 1;
  14888. t2 = t1._codeUnitAt$1(string, codeUnitIndex);
  14889. codeUnitIndex = t2 >= 55296 && t2 <= 56319 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  14890. }
  14891. return codeUnitIndex;
  14892. },
  14893. codeUnitIndexToCodepointIndex0: function(string, codeUnitIndex) {
  14894. var t1, codepointIndex, i, t2;
  14895. for (t1 = J.getInterceptor$s(string), codepointIndex = 0, i = 0; i < codeUnitIndex; i = (t2 >= 55296 && t2 <= 56319 ? i + 1 : i) + 1) {
  14896. ++codepointIndex;
  14897. t2 = t1._codeUnitAt$1(string, i);
  14898. }
  14899. return codepointIndex;
  14900. },
  14901. frameForSpan0: function(span, member, url) {
  14902. var t2, t3, t4,
  14903. t1 = url == null ? span.file.url : url;
  14904. if (t1 == null)
  14905. t1 = $.$get$_noSourceUrl0();
  14906. t2 = span.file;
  14907. t3 = span._file$_start;
  14908. t4 = Y.FileLocation$_(t2, t3);
  14909. t4 = t4.file.getLine$1(t4.offset);
  14910. t3 = Y.FileLocation$_(t2, t3);
  14911. return new A.Frame(t1, t4 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  14912. },
  14913. spanForList0: function(nodes) {
  14914. var t1, left, right, _null = null;
  14915. if (nodes.length === 0)
  14916. return _null;
  14917. t1 = C.JSArray_methods.get$first(nodes);
  14918. left = t1 == null ? _null : t1.get$span();
  14919. if (left == null)
  14920. return _null;
  14921. t1 = C.JSArray_methods.get$last(nodes);
  14922. right = t1 == null ? _null : t1.get$span();
  14923. if (right == null)
  14924. return _null;
  14925. return left.expand$1(0, right);
  14926. },
  14927. declarationName0: function(span) {
  14928. var text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  14929. return B.trimAsciiRight0(C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":")), false);
  14930. },
  14931. unvendor0: function($name) {
  14932. var i,
  14933. t1 = $name.length;
  14934. if (t1 < 2)
  14935. return $name;
  14936. if (J.getInterceptor$s($name)._codeUnitAt$1($name, 0) !== 45)
  14937. return $name;
  14938. if (C.JSString_methods._codeUnitAt$1($name, 1) === 45)
  14939. return $name;
  14940. for (i = 2; i < t1; ++i)
  14941. if (C.JSString_methods._codeUnitAt$1($name, i) === 45)
  14942. return C.JSString_methods.substring$1($name, i + 1);
  14943. return $name;
  14944. },
  14945. equalsIgnoreCase0: function(string1, string2) {
  14946. var t1, i;
  14947. if (string1 == string2)
  14948. return true;
  14949. if (string1 == null || string2 == null)
  14950. return false;
  14951. t1 = string1.length;
  14952. if (t1 !== string2.length)
  14953. return false;
  14954. for (i = 0; i < t1; ++i)
  14955. if (!T.characterEqualsIgnoreCase0(C.JSString_methods._codeUnitAt$1(string1, i), C.JSString_methods._codeUnitAt$1(string2, i)))
  14956. return false;
  14957. return true;
  14958. },
  14959. startsWithIgnoreCase0: function(string, prefix) {
  14960. var t2, i,
  14961. t1 = prefix.length;
  14962. if (string.length < t1)
  14963. return false;
  14964. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  14965. if (!T.characterEqualsIgnoreCase0(t2._codeUnitAt$1(string, i), C.JSString_methods._codeUnitAt$1(prefix, i)))
  14966. return false;
  14967. return true;
  14968. },
  14969. mapInPlace0: function(list, $function) {
  14970. var i;
  14971. for (i = 0; i < list.length; ++i)
  14972. list[i] = $function.call$1(list[i]);
  14973. },
  14974. longestCommonSubsequence0: function(list1, list2, select, $T) {
  14975. var t1, lengths, selections, t2, i, i0, j, selection, t3, j0, t4, t5;
  14976. if (select == null)
  14977. select = new B.longestCommonSubsequence_closure2($T);
  14978. t1 = J.getInterceptor$asx(list1);
  14979. lengths = P.List_List$generate(t1.get$length(list1) + 1, new B.longestCommonSubsequence_closure3(list2), false, type$.legacy_List_legacy_int);
  14980. selections = P.List_List$generate(t1.get$length(list1), new B.longestCommonSubsequence_closure4(list2, $T), false, $T._eval$1("List<0*>*"));
  14981. for (t2 = J.getInterceptor$asx(list2), i = 0; i < t1.get$length(list1); i = i0)
  14982. for (i0 = i + 1, j = 0; j < t2.get$length(list2); j = j0) {
  14983. selection = select.call$2(t1.$index(list1, i), t2.$index(list2, j));
  14984. J.$indexSet$ax(selections[i], j, selection);
  14985. t3 = lengths[i0];
  14986. j0 = j + 1;
  14987. if (selection == null) {
  14988. t4 = J.$index$asx(t3, j);
  14989. t5 = J.$index$asx(lengths[i], j0);
  14990. t5 = Math.max(H.checkNum(t4), H.checkNum(t5));
  14991. t4 = t5;
  14992. } else
  14993. t4 = J.$index$asx(lengths[i], j) + 1;
  14994. J.$indexSet$ax(t3, j0, t4);
  14995. }
  14996. return new B.longestCommonSubsequence_backtrack0(selections, lengths, $T).call$2(t1.get$length(list1) - 1, t2.get$length(list2) - 1);
  14997. },
  14998. removeFirstWhere0: function(list, test, orElse) {
  14999. var toRemove, element,
  15000. t1 = list.length,
  15001. _i = 0;
  15002. while (true) {
  15003. if (!(_i < list.length)) {
  15004. toRemove = null;
  15005. break;
  15006. }
  15007. c$0: {
  15008. element = list[_i];
  15009. if (!test.call$1(element))
  15010. break c$0;
  15011. toRemove = element;
  15012. break;
  15013. }
  15014. list.length === t1 || (0, H.throwConcurrentModificationError)(list);
  15015. ++_i;
  15016. }
  15017. if (toRemove == null)
  15018. return orElse.call$0();
  15019. else {
  15020. C.JSArray_methods.remove$1(list, toRemove);
  15021. return toRemove;
  15022. }
  15023. },
  15024. mapAddAll20: function(destination, source) {
  15025. source.forEach$1(0, new B.mapAddAll2_closure0(destination));
  15026. },
  15027. setAll0: function(map, keys, value) {
  15028. var t1;
  15029. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  15030. map.$indexSet(0, t1.get$current(t1), value);
  15031. },
  15032. rotateSlice0: function(list, start, end) {
  15033. var i, next,
  15034. element = list.$index(0, end - 1);
  15035. for (i = start; i < end; ++i, element = next) {
  15036. next = list.$index(0, i);
  15037. list.$indexSet(0, i, element);
  15038. }
  15039. },
  15040. mapAsync0: function(iterable, callback, $E, $F) {
  15041. return B.mapAsync$body0(iterable, callback, $E, $F, $F._eval$1("Iterable<0*>*"));
  15042. },
  15043. mapAsync$body0: function(iterable, callback, $E, $F, $async$type) {
  15044. var $async$goto = 0,
  15045. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  15046. $async$returnValue, t2, _i, t1, $async$temp1;
  15047. var $async$mapAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15048. if ($async$errorCode === 1)
  15049. return P._asyncRethrow($async$result, $async$completer);
  15050. while (true)
  15051. switch ($async$goto) {
  15052. case 0:
  15053. // Function start
  15054. t1 = H.setRuntimeTypeInfo([], $F._eval$1("JSArray<0*>"));
  15055. t2 = iterable.length, _i = 0;
  15056. case 3:
  15057. // for condition
  15058. if (!(_i < t2)) {
  15059. // goto after for
  15060. $async$goto = 5;
  15061. break;
  15062. }
  15063. $async$temp1 = t1;
  15064. $async$goto = 6;
  15065. return P._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync0);
  15066. case 6:
  15067. // returning from await.
  15068. $async$temp1.push($async$result);
  15069. case 4:
  15070. // for update
  15071. ++_i;
  15072. // goto for condition
  15073. $async$goto = 3;
  15074. break;
  15075. case 5:
  15076. // after for
  15077. $async$returnValue = t1;
  15078. // goto return
  15079. $async$goto = 1;
  15080. break;
  15081. case 1:
  15082. // return
  15083. return P._asyncReturn($async$returnValue, $async$completer);
  15084. }
  15085. });
  15086. return P._asyncStartSync($async$mapAsync0, $async$completer);
  15087. },
  15088. putIfAbsentAsync0: function(map, key, ifAbsent, $K, $V) {
  15089. return B.putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $V._eval$1("0*"));
  15090. },
  15091. putIfAbsentAsync$body0: function(map, key, ifAbsent, $K, $V, $async$type) {
  15092. var $async$goto = 0,
  15093. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  15094. $async$returnValue, value;
  15095. var $async$putIfAbsentAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15096. if ($async$errorCode === 1)
  15097. return P._asyncRethrow($async$result, $async$completer);
  15098. while (true)
  15099. switch ($async$goto) {
  15100. case 0:
  15101. // Function start
  15102. if (map.containsKey$1(key)) {
  15103. $async$returnValue = map.$index(0, key);
  15104. // goto return
  15105. $async$goto = 1;
  15106. break;
  15107. }
  15108. $async$goto = 3;
  15109. return P._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync0);
  15110. case 3:
  15111. // returning from await.
  15112. value = $async$result;
  15113. map.$indexSet(0, key, value);
  15114. $async$returnValue = value;
  15115. // goto return
  15116. $async$goto = 1;
  15117. break;
  15118. case 1:
  15119. // return
  15120. return P._asyncReturn($async$returnValue, $async$completer);
  15121. }
  15122. });
  15123. return P._asyncStartSync($async$putIfAbsentAsync0, $async$completer);
  15124. },
  15125. copyMapOfMap0: function(map, K1, K2, $V) {
  15126. var t2, t3, t4, t5, t6, t7,
  15127. t1 = P.LinkedHashMap_LinkedHashMap$_empty(K1._eval$1("0*"), K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1*,2*>*"));
  15128. for (t2 = map.get$entries(), t2 = t2.get$iterator(t2), t3 = K2._eval$1("0*"), t4 = $V._eval$1("0*"); t2.moveNext$0();) {
  15129. t5 = t2.get$current(t2);
  15130. t6 = t5.key;
  15131. t5 = t5.value;
  15132. t7 = P.LinkedHashMap_LinkedHashMap(null, null, null, t3, t4);
  15133. t7.addAll$1(0, t5);
  15134. t1.$indexSet(0, t6, t7);
  15135. }
  15136. return t1;
  15137. },
  15138. copyMapOfList0: function(map, $K, $E) {
  15139. var t2, t3,
  15140. t1 = P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), $E._eval$1("List<0*>*"));
  15141. for (t2 = map.get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  15142. t3 = t2.get$current(t2);
  15143. t1.$indexSet(0, t3.key, J.toList$0$ax(t3.value));
  15144. }
  15145. return t1;
  15146. },
  15147. SpanExtensions_trim0: function(_this) {
  15148. var t3, end, end0,
  15149. t1 = _this.file,
  15150. t2 = _this._file$_start,
  15151. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t2, _this._end), 0, null),
  15152. start = 0;
  15153. while (true) {
  15154. t3 = C.JSString_methods._codeUnitAt$1(text, start);
  15155. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  15156. break;
  15157. ++start;
  15158. }
  15159. end = text.length - 1;
  15160. end0 = end;
  15161. while (true) {
  15162. t3 = C.JSString_methods.codeUnitAt$1(text, end0);
  15163. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  15164. break;
  15165. --end0;
  15166. }
  15167. return start === 0 && end0 === end ? _this : t1.span$2(Y.FileLocation$_(t1, t2).offset + start, Y.FileLocation$_(t1, t2).offset + end0 + 1);
  15168. },
  15169. indent_closure0: function indent_closure0(t0) {
  15170. this.indentation = t0;
  15171. },
  15172. flattenVertically_closure1: function flattenVertically_closure1(t0) {
  15173. this.T = t0;
  15174. },
  15175. flattenVertically_closure2: function flattenVertically_closure2(t0) {
  15176. this.result = t0;
  15177. },
  15178. longestCommonSubsequence_closure2: function longestCommonSubsequence_closure2(t0) {
  15179. this.T = t0;
  15180. },
  15181. longestCommonSubsequence_closure3: function longestCommonSubsequence_closure3(t0) {
  15182. this.list2 = t0;
  15183. },
  15184. longestCommonSubsequence_closure4: function longestCommonSubsequence_closure4(t0, t1) {
  15185. this.list2 = t0;
  15186. this.T = t1;
  15187. },
  15188. longestCommonSubsequence_backtrack0: function longestCommonSubsequence_backtrack0(t0, t1, t2) {
  15189. this.selections = t0;
  15190. this.lengths = t1;
  15191. this.T = t2;
  15192. },
  15193. mapAddAll2_closure0: function mapAddAll2_closure0(t0) {
  15194. this.destination = t0;
  15195. },
  15196. isAlphabetic: function(char) {
  15197. var t1;
  15198. if (!(char >= 65 && char <= 90))
  15199. t1 = char >= 97 && char <= 122;
  15200. else
  15201. t1 = true;
  15202. return t1;
  15203. },
  15204. isDriveLetter: function(path, index) {
  15205. var t1 = path.length,
  15206. t2 = index + 2;
  15207. if (t1 < t2)
  15208. return false;
  15209. if (!B.isAlphabetic(C.JSString_methods.codeUnitAt$1(path, index)))
  15210. return false;
  15211. if (C.JSString_methods.codeUnitAt$1(path, index + 1) !== 58)
  15212. return false;
  15213. if (t1 === t2)
  15214. return true;
  15215. return C.JSString_methods.codeUnitAt$1(path, t2) === 47;
  15216. },
  15217. isAllTheSame: function(iter) {
  15218. var t1, lastValue, cur;
  15219. for (t1 = new H.ListIterator(iter, iter.get$length(iter)), lastValue = null; t1.moveNext$0();) {
  15220. cur = t1.__internal$_current;
  15221. if (lastValue == null)
  15222. lastValue = cur;
  15223. else if (!J.$eq$(cur, lastValue))
  15224. return false;
  15225. }
  15226. return true;
  15227. },
  15228. replaceFirstNull: function(list, element) {
  15229. var index = C.JSArray_methods.indexOf$1(list, null);
  15230. if (index < 0)
  15231. throw H.wrapException(P.ArgumentError$(H.S(list) + " contains no null elements."));
  15232. list[index] = element;
  15233. },
  15234. replaceWithNull: function(list, element) {
  15235. var index = C.JSArray_methods.indexOf$1(list, element);
  15236. if (index < 0)
  15237. throw H.wrapException(P.ArgumentError$(H.S(list) + " contains no elements matching " + element.toString$0(0) + "."));
  15238. list[index] = null;
  15239. },
  15240. countCodeUnits: function(string, codeUnit) {
  15241. var t1, count, cur;
  15242. for (t1 = new H.CodeUnits(string), t1 = new H.ListIterator(t1, t1.get$length(t1)), count = 0; t1.moveNext$0();) {
  15243. cur = t1.__internal$_current;
  15244. if (cur === codeUnit)
  15245. ++count;
  15246. }
  15247. return count;
  15248. },
  15249. findLineStart: function(context, text, column) {
  15250. var beginningOfLine, index, lineStart;
  15251. if (text.length === 0)
  15252. for (beginningOfLine = 0; true;) {
  15253. index = C.JSString_methods.indexOf$2(context, "\n", beginningOfLine);
  15254. if (index === -1)
  15255. return context.length - beginningOfLine >= column ? beginningOfLine : null;
  15256. if (index - beginningOfLine >= column)
  15257. return beginningOfLine;
  15258. beginningOfLine = index + 1;
  15259. }
  15260. index = C.JSString_methods.indexOf$1(context, text);
  15261. for (; index !== -1;) {
  15262. lineStart = index === 0 ? 0 : C.JSString_methods.lastIndexOf$2(context, "\n", index - 1) + 1;
  15263. if (column === index - lineStart)
  15264. return lineStart;
  15265. index = C.JSString_methods.indexOf$2(context, text, index + 1);
  15266. }
  15267. return null;
  15268. },
  15269. validateErrorArgs: function(string, match, position, $length) {
  15270. var t2,
  15271. t1 = position != null;
  15272. if (t1)
  15273. if (position < 0)
  15274. throw H.wrapException(P.RangeError$("position must be greater than or equal to 0."));
  15275. else if (position > string.length)
  15276. throw H.wrapException(P.RangeError$("position must be less than or equal to the string length."));
  15277. t2 = $length != null;
  15278. if (t2 && $length < 0)
  15279. throw H.wrapException(P.RangeError$("length must be greater than or equal to 0."));
  15280. if (t1 && t2 && position + $length > string.length)
  15281. throw H.wrapException(P.RangeError$("position plus length must not go beyond the end of the string."));
  15282. }
  15283. },
  15284. O = {
  15285. EmptyUnmodifiableSet__throw: function() {
  15286. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
  15287. },
  15288. EmptyUnmodifiableSet: function EmptyUnmodifiableSet(t0) {
  15289. this.$ti = t0;
  15290. },
  15291. Style__getPlatformStyle: function() {
  15292. if (P.Uri_base().get$scheme() !== "file")
  15293. return $.$get$Style_url();
  15294. var t1 = P.Uri_base();
  15295. if (!C.JSString_methods.endsWith$1(t1.get$path(t1), "/"))
  15296. return $.$get$Style_url();
  15297. if (P._Uri__Uri(null, "a/b", null, null).toFilePath$0() === "a\\b")
  15298. return $.$get$Style_windows();
  15299. return $.$get$Style_posix();
  15300. },
  15301. Style: function Style() {
  15302. },
  15303. NullExpression: function NullExpression(t0) {
  15304. this.span = t0;
  15305. },
  15306. Statement: function Statement() {
  15307. },
  15308. AsyncImportCache__toImporters: function(importers, loadPaths, packageResolver) {
  15309. var _i, t2, t3, path, _null = null,
  15310. sassPath = H._asStringS(J.get$env$x(self.process).SASS_PATH),
  15311. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncImporter);
  15312. for (_i = 0; false; ++_i)
  15313. t1.push(importers[_i]);
  15314. if (loadPaths != null)
  15315. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  15316. t3 = t2.get$current(t2);
  15317. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(t3, _null, _null, _null, _null, _null, _null)));
  15318. }
  15319. if (sassPath != null) {
  15320. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  15321. t3 = t2.length;
  15322. _i = 0;
  15323. for (; _i < t3; ++_i) {
  15324. path = t2[_i];
  15325. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(path, _null, _null, _null, _null, _null, _null)));
  15326. }
  15327. }
  15328. return t1;
  15329. },
  15330. AsyncImportCache: function AsyncImportCache(t0, t1, t2, t3, t4) {
  15331. var _ = this;
  15332. _._async_import_cache$_importers = t0;
  15333. _._async_import_cache$_logger = t1;
  15334. _._async_import_cache$_canonicalizeCache = t2;
  15335. _._async_import_cache$_importCache = t3;
  15336. _._async_import_cache$_resultsCache = t4;
  15337. },
  15338. AsyncImportCache_canonicalize_closure: function AsyncImportCache_canonicalize_closure(t0, t1, t2) {
  15339. this.$this = t0;
  15340. this.url = t1;
  15341. this.forImport = t2;
  15342. },
  15343. AsyncImportCache__canonicalize_closure: function AsyncImportCache__canonicalize_closure(t0, t1) {
  15344. this.importer = t0;
  15345. this.url = t1;
  15346. },
  15347. AsyncImportCache_importCanonical_closure: function AsyncImportCache_importCanonical_closure(t0, t1, t2, t3) {
  15348. var _ = this;
  15349. _.$this = t0;
  15350. _.importer = t1;
  15351. _.canonicalUrl = t2;
  15352. _.originalUrl = t3;
  15353. },
  15354. AsyncImportCache_humanize_closure: function AsyncImportCache_humanize_closure(t0) {
  15355. this.canonicalUrl = t0;
  15356. },
  15357. AsyncImportCache_humanize_closure0: function AsyncImportCache_humanize_closure0() {
  15358. },
  15359. AsyncImportCache_humanize_closure1: function AsyncImportCache_humanize_closure1() {
  15360. },
  15361. Environment$: function(sourceMap) {
  15362. var _null = null,
  15363. t1 = type$.legacy_String,
  15364. t2 = type$.legacy_Module_legacy_Callable,
  15365. t3 = type$.legacy_AstNode,
  15366. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable),
  15367. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value),
  15368. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode) : _null,
  15369. t7 = type$.legacy_int,
  15370. t8 = type$.legacy_Callable,
  15371. t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Callable;
  15372. return new O.Environment(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  15373. },
  15374. Environment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  15375. var t1 = type$.legacy_String,
  15376. t2 = type$.legacy_int;
  15377. return new O.Environment(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  15378. },
  15379. _EnvironmentModule__EnvironmentModule: function(environment, css, extender, forwarded) {
  15380. var t1, t2, t3, t4, t5, t6;
  15381. if (forwarded == null)
  15382. forwarded = C.Set_empty;
  15383. t1 = O._EnvironmentModule__makeModulesByVariable(forwarded);
  15384. t2 = H._instanceType(forwarded);
  15385. t3 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._variables), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Value*>*>")), type$.legacy_Value);
  15386. t4 = environment._variableNodes;
  15387. t4 = t4 == null ? null : O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure0(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AstNode*>*>")), type$.legacy_AstNode);
  15388. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Callable*>*>");
  15389. t5 = type$.legacy_Callable;
  15390. t6 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._functions), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure1(), t2), t5);
  15391. t5 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._mixins), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure2(), t2), t5);
  15392. t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._allModules, new O._EnvironmentModule__EnvironmentModule_closure3());
  15393. return O._EnvironmentModule$_(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._allModules, new O._EnvironmentModule__EnvironmentModule_closure4()));
  15394. },
  15395. _EnvironmentModule__makeModulesByVariable: function(forwarded) {
  15396. var modulesByVariable, t1, t2, t3, t4;
  15397. if (forwarded.get$isEmpty(forwarded))
  15398. return C.Map_empty0;
  15399. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_Callable);
  15400. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  15401. t2 = t1.get$current(t1);
  15402. if (t2 instanceof O._EnvironmentModule) {
  15403. for (t3 = t2._modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  15404. t4 = t3.get$current(t3);
  15405. B.setAll(modulesByVariable, t4.get$variables().get$keys(), t4);
  15406. }
  15407. B.setAll(modulesByVariable, C.JSArray_methods.get$first(t2._environment._variables).get$keys(), t2);
  15408. } else
  15409. B.setAll(modulesByVariable, t2.get$variables().get$keys(), t2);
  15410. }
  15411. return modulesByVariable;
  15412. },
  15413. _EnvironmentModule__memberMap: function(localMap, otherMaps, $V) {
  15414. var t1, t2, t3, cur;
  15415. localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0*>"));
  15416. t1 = otherMaps.__internal$_iterable;
  15417. t2 = J.getInterceptor$asx(t1);
  15418. if (t2.get$isEmpty(t1))
  15419. return localMap;
  15420. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String*,0*>*>"));
  15421. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  15422. cur = t1.__internal$_current;
  15423. if (cur.get$isNotEmpty(cur))
  15424. t3.push(cur);
  15425. }
  15426. t3.push(localMap);
  15427. if (t3.length === 1)
  15428. return localMap;
  15429. return Z.MergedMapView$(t3, type$.legacy_String, $V._eval$1("0*"));
  15430. },
  15431. _EnvironmentModule$_: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  15432. return new O._EnvironmentModule(_environment._allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  15433. },
  15434. Environment: function Environment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  15435. var _ = this;
  15436. _._environment$_modules = t0;
  15437. _._namespaceNodes = t1;
  15438. _._globalModules = t2;
  15439. _._globalModuleNodes = t3;
  15440. _._forwardedModules = t4;
  15441. _._forwardedModuleNodes = t5;
  15442. _._nestedForwardedModules = t6;
  15443. _._allModules = t7;
  15444. _._variables = t8;
  15445. _._variableNodes = t9;
  15446. _._variableIndices = t10;
  15447. _._functions = t11;
  15448. _._functionIndices = t12;
  15449. _._mixins = t13;
  15450. _._mixinIndices = t14;
  15451. _._content = t15;
  15452. _._inMixin = false;
  15453. _._inSemiGlobalScope = true;
  15454. _._lastVariableIndex = _._lastVariableName = null;
  15455. },
  15456. Environment_importForwards_closure: function Environment_importForwards_closure() {
  15457. },
  15458. Environment_importForwards_closure0: function Environment_importForwards_closure0() {
  15459. },
  15460. Environment_importForwards_closure1: function Environment_importForwards_closure1() {
  15461. },
  15462. Environment_importForwards_closure2: function Environment_importForwards_closure2() {
  15463. },
  15464. Environment__getVariableFromGlobalModule_closure: function Environment__getVariableFromGlobalModule_closure(t0) {
  15465. this.name = t0;
  15466. },
  15467. Environment_setVariable_closure: function Environment_setVariable_closure(t0, t1) {
  15468. this.$this = t0;
  15469. this.name = t1;
  15470. },
  15471. Environment_setVariable_closure0: function Environment_setVariable_closure0(t0) {
  15472. this.name = t0;
  15473. },
  15474. Environment_setVariable_closure1: function Environment_setVariable_closure1(t0, t1) {
  15475. this.$this = t0;
  15476. this.name = t1;
  15477. },
  15478. Environment__getFunctionFromGlobalModule_closure: function Environment__getFunctionFromGlobalModule_closure(t0) {
  15479. this.name = t0;
  15480. },
  15481. Environment__getMixinFromGlobalModule_closure: function Environment__getMixinFromGlobalModule_closure(t0) {
  15482. this.name = t0;
  15483. },
  15484. _EnvironmentModule: function _EnvironmentModule(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  15485. var _ = this;
  15486. _.upstream = t0;
  15487. _.variables = t1;
  15488. _.variableNodes = t2;
  15489. _.functions = t3;
  15490. _.mixins = t4;
  15491. _.extender = t5;
  15492. _.css = t6;
  15493. _.transitivelyContainsCss = t7;
  15494. _.transitivelyContainsExtensions = t8;
  15495. _._environment = t9;
  15496. _._modulesByVariable = t10;
  15497. },
  15498. _EnvironmentModule__EnvironmentModule_closure: function _EnvironmentModule__EnvironmentModule_closure() {
  15499. },
  15500. _EnvironmentModule__EnvironmentModule_closure0: function _EnvironmentModule__EnvironmentModule_closure0() {
  15501. },
  15502. _EnvironmentModule__EnvironmentModule_closure1: function _EnvironmentModule__EnvironmentModule_closure1() {
  15503. },
  15504. _EnvironmentModule__EnvironmentModule_closure2: function _EnvironmentModule__EnvironmentModule_closure2() {
  15505. },
  15506. _EnvironmentModule__EnvironmentModule_closure3: function _EnvironmentModule__EnvironmentModule_closure3() {
  15507. },
  15508. _EnvironmentModule__EnvironmentModule_closure4: function _EnvironmentModule__EnvironmentModule_closure4() {
  15509. },
  15510. SassNull: function SassNull() {
  15511. },
  15512. AsyncImportCache$none: function(logger) {
  15513. var t1 = type$.legacy_Uri;
  15514. return new O.AsyncImportCache0(C.C_StderrLogger, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Stylesheet), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ImporterResult));
  15515. },
  15516. AsyncImportCache0: function AsyncImportCache0(t0, t1, t2, t3) {
  15517. var _ = this;
  15518. _._async_import_cache0$_logger = t0;
  15519. _._async_import_cache0$_canonicalizeCache = t1;
  15520. _._async_import_cache0$_importCache = t2;
  15521. _._async_import_cache0$_resultsCache = t3;
  15522. },
  15523. AsyncImportCache_canonicalize_closure0: function AsyncImportCache_canonicalize_closure0(t0, t1, t2) {
  15524. this.$this = t0;
  15525. this.url = t1;
  15526. this.forImport = t2;
  15527. },
  15528. AsyncImportCache__canonicalize_closure0: function AsyncImportCache__canonicalize_closure0(t0, t1) {
  15529. this.importer = t0;
  15530. this.url = t1;
  15531. },
  15532. AsyncImportCache_importCanonical_closure0: function AsyncImportCache_importCanonical_closure0(t0, t1, t2, t3) {
  15533. var _ = this;
  15534. _.$this = t0;
  15535. _.importer = t1;
  15536. _.canonicalUrl = t2;
  15537. _.originalUrl = t3;
  15538. },
  15539. AsyncImportCache_humanize_closure2: function AsyncImportCache_humanize_closure2(t0) {
  15540. this.canonicalUrl = t0;
  15541. },
  15542. AsyncImportCache_humanize_closure3: function AsyncImportCache_humanize_closure3() {
  15543. },
  15544. AsyncImportCache_humanize_closure4: function AsyncImportCache_humanize_closure4() {
  15545. },
  15546. Environment$0: function(sourceMap) {
  15547. var _null = null,
  15548. t1 = type$.legacy_String,
  15549. t2 = type$.legacy_Module_legacy_Callable_2,
  15550. t3 = type$.legacy_AstNode_2,
  15551. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable_2),
  15552. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value_2)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value_2),
  15553. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode_2) : _null,
  15554. t7 = type$.legacy_int,
  15555. t8 = type$.legacy_Callable_2,
  15556. t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Callable_2;
  15557. return new O.Environment0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  15558. },
  15559. Environment$_0: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  15560. var t1 = type$.legacy_String,
  15561. t2 = type$.legacy_int;
  15562. return new O.Environment0(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  15563. },
  15564. _EnvironmentModule__EnvironmentModule1: function(environment, css, extender, forwarded) {
  15565. var t1, t2, t3, t4, t5, t6;
  15566. if (forwarded == null)
  15567. forwarded = C.Set_empty2;
  15568. t1 = O._EnvironmentModule__makeModulesByVariable1(forwarded);
  15569. t2 = H._instanceType(forwarded);
  15570. t3 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_variables), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure11(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Value0*>*>")), type$.legacy_Value_2);
  15571. t4 = environment._environment0$_variableNodes;
  15572. t4 = t4 == null ? null : O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure12(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AstNode0*>*>")), type$.legacy_AstNode_2);
  15573. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Callable0*>*>");
  15574. t5 = type$.legacy_Callable_2;
  15575. t6 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_functions), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure13(), t2), t5);
  15576. t5 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_mixins), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure14(), t2), t5);
  15577. t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._environment0$_allModules, new O._EnvironmentModule__EnvironmentModule_closure15());
  15578. return O._EnvironmentModule$_1(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._environment0$_allModules, new O._EnvironmentModule__EnvironmentModule_closure16()));
  15579. },
  15580. _EnvironmentModule__makeModulesByVariable1: function(forwarded) {
  15581. var modulesByVariable, t1, t2, t3, t4;
  15582. if (forwarded.get$isEmpty(forwarded))
  15583. return C.Map_empty6;
  15584. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_Callable_2);
  15585. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  15586. t2 = t1.get$current(t1);
  15587. if (t2 instanceof O._EnvironmentModule1) {
  15588. for (t3 = t2._environment0$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  15589. t4 = t3.get$current(t3);
  15590. B.setAll0(modulesByVariable, t4.get$variables().get$keys(), t4);
  15591. }
  15592. B.setAll0(modulesByVariable, C.JSArray_methods.get$first(t2._environment0$_environment._environment0$_variables).get$keys(), t2);
  15593. } else
  15594. B.setAll0(modulesByVariable, t2.get$variables().get$keys(), t2);
  15595. }
  15596. return modulesByVariable;
  15597. },
  15598. _EnvironmentModule__memberMap1: function(localMap, otherMaps, $V) {
  15599. var t1, t2, t3, cur;
  15600. localMap = new U.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0*>"));
  15601. t1 = otherMaps.__internal$_iterable;
  15602. t2 = J.getInterceptor$asx(t1);
  15603. if (t2.get$isEmpty(t1))
  15604. return localMap;
  15605. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String*,0*>*>"));
  15606. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  15607. cur = t1.__internal$_current;
  15608. if (cur.get$isNotEmpty(cur))
  15609. t3.push(cur);
  15610. }
  15611. t3.push(localMap);
  15612. if (t3.length === 1)
  15613. return localMap;
  15614. return Z.MergedMapView$0(t3, type$.legacy_String, $V._eval$1("0*"));
  15615. },
  15616. _EnvironmentModule$_1: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  15617. return new O._EnvironmentModule1(_environment._environment0$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  15618. },
  15619. Environment0: function Environment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  15620. var _ = this;
  15621. _._environment0$_modules = t0;
  15622. _._environment0$_namespaceNodes = t1;
  15623. _._environment0$_globalModules = t2;
  15624. _._environment0$_globalModuleNodes = t3;
  15625. _._environment0$_forwardedModules = t4;
  15626. _._environment0$_forwardedModuleNodes = t5;
  15627. _._environment0$_nestedForwardedModules = t6;
  15628. _._environment0$_allModules = t7;
  15629. _._environment0$_variables = t8;
  15630. _._environment0$_variableNodes = t9;
  15631. _._environment0$_variableIndices = t10;
  15632. _._environment0$_functions = t11;
  15633. _._environment0$_functionIndices = t12;
  15634. _._environment0$_mixins = t13;
  15635. _._environment0$_mixinIndices = t14;
  15636. _._environment0$_content = t15;
  15637. _._environment0$_inMixin = false;
  15638. _._environment0$_inSemiGlobalScope = true;
  15639. _._environment0$_lastVariableIndex = _._environment0$_lastVariableName = null;
  15640. },
  15641. Environment_importForwards_closure3: function Environment_importForwards_closure3() {
  15642. },
  15643. Environment_importForwards_closure4: function Environment_importForwards_closure4() {
  15644. },
  15645. Environment_importForwards_closure5: function Environment_importForwards_closure5() {
  15646. },
  15647. Environment_importForwards_closure6: function Environment_importForwards_closure6() {
  15648. },
  15649. Environment__getVariableFromGlobalModule_closure0: function Environment__getVariableFromGlobalModule_closure0(t0) {
  15650. this.name = t0;
  15651. },
  15652. Environment_setVariable_closure2: function Environment_setVariable_closure2(t0, t1) {
  15653. this.$this = t0;
  15654. this.name = t1;
  15655. },
  15656. Environment_setVariable_closure3: function Environment_setVariable_closure3(t0) {
  15657. this.name = t0;
  15658. },
  15659. Environment_setVariable_closure4: function Environment_setVariable_closure4(t0, t1) {
  15660. this.$this = t0;
  15661. this.name = t1;
  15662. },
  15663. Environment__getFunctionFromGlobalModule_closure0: function Environment__getFunctionFromGlobalModule_closure0(t0) {
  15664. this.name = t0;
  15665. },
  15666. Environment__getMixinFromGlobalModule_closure0: function Environment__getMixinFromGlobalModule_closure0(t0) {
  15667. this.name = t0;
  15668. },
  15669. _EnvironmentModule1: function _EnvironmentModule1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  15670. var _ = this;
  15671. _.upstream = t0;
  15672. _.variables = t1;
  15673. _.variableNodes = t2;
  15674. _.functions = t3;
  15675. _.mixins = t4;
  15676. _.extender = t5;
  15677. _.css = t6;
  15678. _.transitivelyContainsCss = t7;
  15679. _.transitivelyContainsExtensions = t8;
  15680. _._environment0$_environment = t9;
  15681. _._environment0$_modulesByVariable = t10;
  15682. },
  15683. _EnvironmentModule__EnvironmentModule_closure11: function _EnvironmentModule__EnvironmentModule_closure11() {
  15684. },
  15685. _EnvironmentModule__EnvironmentModule_closure12: function _EnvironmentModule__EnvironmentModule_closure12() {
  15686. },
  15687. _EnvironmentModule__EnvironmentModule_closure13: function _EnvironmentModule__EnvironmentModule_closure13() {
  15688. },
  15689. _EnvironmentModule__EnvironmentModule_closure14: function _EnvironmentModule__EnvironmentModule_closure14() {
  15690. },
  15691. _EnvironmentModule__EnvironmentModule_closure15: function _EnvironmentModule__EnvironmentModule_closure15() {
  15692. },
  15693. _EnvironmentModule__EnvironmentModule_closure16: function _EnvironmentModule__EnvironmentModule_closure16() {
  15694. },
  15695. NullExpression0: function NullExpression0(t0) {
  15696. this.span = t0;
  15697. },
  15698. closure220: function closure220() {
  15699. },
  15700. _closure27: function _closure27() {
  15701. },
  15702. _closure28: function _closure28() {
  15703. },
  15704. SassNull0: function SassNull0() {
  15705. },
  15706. Statement0: function Statement0() {
  15707. }
  15708. },
  15709. U = {DefaultEquality: function DefaultEquality() {
  15710. }, IterableEquality: function IterableEquality() {
  15711. }, ListEquality: function ListEquality() {
  15712. }, _MapEntry: function _MapEntry(t0, t1, t2) {
  15713. this.equality = t0;
  15714. this.key = t1;
  15715. this.value = t2;
  15716. }, MapEquality: function MapEquality() {
  15717. }, ModifiableCssAtRule: function ModifiableCssAtRule(t0, t1, t2, t3, t4, t5) {
  15718. var _ = this;
  15719. _.name = t0;
  15720. _.value = t1;
  15721. _.isChildless = t2;
  15722. _.span = t3;
  15723. _.children = t4;
  15724. _._children = t5;
  15725. _._indexInParent = _._parent = null;
  15726. _.isGroupEnd = false;
  15727. }, ModifiableCssKeyframeBlock: function ModifiableCssKeyframeBlock(t0, t1, t2, t3) {
  15728. var _ = this;
  15729. _.selector = t0;
  15730. _.span = t1;
  15731. _.children = t2;
  15732. _._children = t3;
  15733. _._indexInParent = _._parent = null;
  15734. _.isGroupEnd = false;
  15735. },
  15736. AtRule$: function($name, span, children, value) {
  15737. var t1 = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement),
  15738. t2 = t1 == null ? null : C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  15739. return new U.AtRule($name, value, span, t1, t2 === true);
  15740. },
  15741. AtRule: function AtRule(t0, t1, t2, t3, t4) {
  15742. var _ = this;
  15743. _.name = t0;
  15744. _.value = t1;
  15745. _.span = t2;
  15746. _.children = t3;
  15747. _.hasDeclarations = t4;
  15748. },
  15749. SupportsOperation: function SupportsOperation(t0, t1, t2, t3) {
  15750. var _ = this;
  15751. _.left = t0;
  15752. _.right = t1;
  15753. _.operator = t2;
  15754. _.span = t3;
  15755. },
  15756. _compileStylesheet: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  15757. var serializeResult = N.serialize(R._EvaluateVisitor$(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet).stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true),
  15758. t1 = serializeResult.sourceMap;
  15759. if (t1 != null && true)
  15760. B.mapInPlace(t1.urls, new U._compileStylesheet_closure(stylesheet, importCache));
  15761. return new X.CompileResult(serializeResult);
  15762. },
  15763. _compileStylesheet_closure: function _compileStylesheet_closure(t0, t1) {
  15764. this.stylesheet = t0;
  15765. this.importCache = t1;
  15766. },
  15767. SassParser: function SassParser(t0, t1, t2) {
  15768. var _ = this;
  15769. _._currentIndentation = 0;
  15770. _._spaces = _._nextIndentationEnd = _._nextIndentation = null;
  15771. _._isUseAllowed = true;
  15772. _._stylesheet$_inMixin = false;
  15773. _._mixinHasContent = null;
  15774. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  15775. _._globalVariables = t0;
  15776. _.lastSilentComment = null;
  15777. _.scanner = t1;
  15778. _.logger = t2;
  15779. },
  15780. SassParser_children_closure: function SassParser_children_closure(t0, t1, t2) {
  15781. this.$this = t0;
  15782. this.children = t1;
  15783. this.child = t2;
  15784. },
  15785. MultiDirWatcher: function MultiDirWatcher(t0, t1, t2) {
  15786. this._watchers = t0;
  15787. this._group = t1;
  15788. this._poll = t2;
  15789. },
  15790. PublicMemberMapView: function PublicMemberMapView(t0, t1) {
  15791. this._inner = t0;
  15792. this.$ti = t1;
  15793. },
  15794. Highlighter$: function(span, color) {
  15795. var t1 = U.Highlighter__collateLines(H.setRuntimeTypeInfo([U._Highlight$(span, null, true)], type$.JSArray_legacy__Highlight)),
  15796. t2 = new U.Highlighter_closure(color).call$0(),
  15797. t3 = C.JSInt_methods.toString$0(C.JSArray_methods.get$last(t1).number + 1),
  15798. t4 = U.Highlighter__contiguous(t1) ? 0 : 3,
  15799. t5 = H._arrayInstanceType(t1);
  15800. return new U.Highlighter(t1, t2, null, 1 + Math.max(t3.length, t4), new H.MappedListIterable(t1, new U.Highlighter$__closure(), t5._eval$1("MappedListIterable<1,int*>")).reduce$1(0, H.instantiate1(P.math__max$closure(), type$.legacy_int)), !B.isAllTheSame(new H.MappedListIterable(t1, new U.Highlighter$__closure0(), t5._eval$1("MappedListIterable<1,Object*>"))), new P.StringBuffer(""));
  15801. },
  15802. Highlighter$multiple: function(primarySpan, primaryLabel, secondarySpans, color, primaryColor, secondaryColor) {
  15803. var t2, t3, t4, t5, t6,
  15804. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy__Highlight);
  15805. t1.push(U._Highlight$(primarySpan, primaryLabel, true));
  15806. for (t2 = secondarySpans.get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  15807. t3 = t2.get$current(t2);
  15808. t1.push(U._Highlight$(t3.key, t3.value, false));
  15809. }
  15810. t1 = U.Highlighter__collateLines(t1);
  15811. if (color)
  15812. t2 = "\x1b[31m";
  15813. else
  15814. t2 = null;
  15815. if (color)
  15816. t3 = "\x1b[34m";
  15817. else
  15818. t3 = null;
  15819. t4 = C.JSInt_methods.toString$0(C.JSArray_methods.get$last(t1).number + 1);
  15820. t5 = U.Highlighter__contiguous(t1) ? 0 : 3;
  15821. t6 = H._arrayInstanceType(t1);
  15822. return new U.Highlighter(t1, t2, t3, 1 + Math.max(t4.length, t5), new H.MappedListIterable(t1, new U.Highlighter$__closure(), t6._eval$1("MappedListIterable<1,int*>")).reduce$1(0, H.instantiate1(P.math__max$closure(), type$.legacy_int)), !B.isAllTheSame(new H.MappedListIterable(t1, new U.Highlighter$__closure0(), t6._eval$1("MappedListIterable<1,Object*>"))), new P.StringBuffer(""));
  15823. },
  15824. Highlighter__contiguous: function(lines) {
  15825. var i, thisLine, nextLine;
  15826. for (i = 0; i < lines.length - 1;) {
  15827. thisLine = lines[i];
  15828. ++i;
  15829. nextLine = lines[i];
  15830. if (thisLine.number + 1 !== nextLine.number && J.$eq$(thisLine.url, nextLine.url))
  15831. return false;
  15832. }
  15833. return true;
  15834. },
  15835. Highlighter__collateLines: function(highlights) {
  15836. var t1, t2,
  15837. highlightsByUrl = Y.groupBy(highlights, new U.Highlighter__collateLines_closure(), type$.legacy__Highlight, type$.dynamic);
  15838. for (t1 = highlightsByUrl.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  15839. J.sort$1$ax(t1.get$current(t1), new U.Highlighter__collateLines_closure0());
  15840. t1 = highlightsByUrl.get$values();
  15841. t2 = H._instanceType(t1)._eval$1("ExpandIterable<Iterable.E,_Line*>");
  15842. return P.List_List$from(new H.ExpandIterable(t1, new U.Highlighter__collateLines_closure1(), t2), true, t2._eval$1("Iterable.E"));
  15843. },
  15844. _Highlight$: function(span, label, primary) {
  15845. return new U._Highlight(new U._Highlight_closure(span).call$0(), primary, label);
  15846. },
  15847. _Highlight__normalizeNewlines: function(span) {
  15848. var endOffset, t1, i, t2, t3, t4,
  15849. text = span.get$text();
  15850. if (!C.JSString_methods.contains$1(text, "\r\n"))
  15851. return span;
  15852. endOffset = span.get$end(span).get$offset();
  15853. for (t1 = text.length - 1, i = 0; i < t1; ++i)
  15854. if (C.JSString_methods._codeUnitAt$1(text, i) === 13 && C.JSString_methods._codeUnitAt$1(text, i + 1) === 10)
  15855. --endOffset;
  15856. t1 = span.get$start(span);
  15857. t2 = span.get$sourceUrl();
  15858. t3 = span.get$end(span).get$line();
  15859. t2 = V.SourceLocation$(endOffset, span.get$end(span).get$column(), t3, t2);
  15860. t3 = H.stringReplaceAllUnchecked(text, "\r\n", "\n");
  15861. t4 = span.get$context(span);
  15862. return X.SourceSpanWithContext$(t1, t2, t3, H.stringReplaceAllUnchecked(t4, "\r\n", "\n"));
  15863. },
  15864. _Highlight__normalizeTrailingNewline: function(span) {
  15865. var context, text, start, end, t1, t2, t3;
  15866. if (!C.JSString_methods.endsWith$1(span.get$context(span), "\n"))
  15867. return span;
  15868. if (C.JSString_methods.endsWith$1(span.get$text(), "\n\n"))
  15869. return span;
  15870. context = C.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1);
  15871. text = span.get$text();
  15872. start = span.get$start(span);
  15873. end = span.get$end(span);
  15874. if (C.JSString_methods.endsWith$1(span.get$text(), "\n") && B.findLineStart(span.get$context(span), span.get$text(), span.get$start(span).get$column()) + span.get$start(span).get$column() + span.get$length(span) === span.get$context(span).length) {
  15875. text = C.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  15876. if (text.length === 0)
  15877. end = start;
  15878. else {
  15879. t1 = span.get$end(span).get$offset();
  15880. t2 = span.get$sourceUrl();
  15881. t3 = span.get$end(span).get$line();
  15882. end = V.SourceLocation$(t1 - 1, U._Highlight__lastLineLength(context), t3 - 1, t2);
  15883. start = span.get$start(span).get$offset() === span.get$end(span).get$offset() ? end : span.get$start(span);
  15884. }
  15885. }
  15886. return X.SourceSpanWithContext$(start, end, text, context);
  15887. },
  15888. _Highlight__normalizeEndOfLine: function(span) {
  15889. var text, t1, t2, t3, t4;
  15890. if (span.get$end(span).get$column() !== 0)
  15891. return span;
  15892. if (span.get$end(span).get$line() == span.get$start(span).get$line())
  15893. return span;
  15894. text = C.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  15895. t1 = span.get$start(span);
  15896. t2 = span.get$end(span).get$offset();
  15897. t3 = span.get$sourceUrl();
  15898. t4 = span.get$end(span).get$line();
  15899. t3 = V.SourceLocation$(t2 - 1, text.length - C.JSString_methods.lastIndexOf$1(text, "\n") - 1, t4 - 1, t3);
  15900. return X.SourceSpanWithContext$(t1, t3, text, C.JSString_methods.endsWith$1(span.get$context(span), "\n") ? C.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1) : span.get$context(span));
  15901. },
  15902. _Highlight__lastLineLength: function(text) {
  15903. var t1 = text.length;
  15904. if (t1 === 0)
  15905. return 0;
  15906. else if (C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 10)
  15907. return t1 === 1 ? 0 : t1 - C.JSString_methods.lastIndexOf$2(text, "\n", t1 - 2) - 1;
  15908. else
  15909. return t1 - C.JSString_methods.lastIndexOf$1(text, "\n") - 1;
  15910. },
  15911. Highlighter: function Highlighter(t0, t1, t2, t3, t4, t5, t6) {
  15912. var _ = this;
  15913. _._lines = t0;
  15914. _._primaryColor = t1;
  15915. _._secondaryColor = t2;
  15916. _._paddingBeforeSidebar = t3;
  15917. _._maxMultilineSpans = t4;
  15918. _._multipleFiles = t5;
  15919. _._highlighter$_buffer = t6;
  15920. },
  15921. Highlighter_closure: function Highlighter_closure(t0) {
  15922. this.color = t0;
  15923. },
  15924. Highlighter$__closure: function Highlighter$__closure() {
  15925. },
  15926. Highlighter$___closure: function Highlighter$___closure() {
  15927. },
  15928. Highlighter$__closure0: function Highlighter$__closure0() {
  15929. },
  15930. Highlighter__collateLines_closure: function Highlighter__collateLines_closure() {
  15931. },
  15932. Highlighter__collateLines_closure0: function Highlighter__collateLines_closure0() {
  15933. },
  15934. Highlighter__collateLines_closure1: function Highlighter__collateLines_closure1() {
  15935. },
  15936. Highlighter__collateLines__closure: function Highlighter__collateLines__closure(t0) {
  15937. this.line = t0;
  15938. },
  15939. Highlighter_highlight_closure: function Highlighter_highlight_closure() {
  15940. },
  15941. Highlighter_highlight_closure0: function Highlighter_highlight_closure0() {
  15942. },
  15943. Highlighter__writeFileStart_closure: function Highlighter__writeFileStart_closure(t0) {
  15944. this.$this = t0;
  15945. },
  15946. Highlighter__writeMultilineHighlights_closure: function Highlighter__writeMultilineHighlights_closure(t0, t1, t2) {
  15947. this.$this = t0;
  15948. this.startLine = t1;
  15949. this.line = t2;
  15950. },
  15951. Highlighter__writeMultilineHighlights_closure0: function Highlighter__writeMultilineHighlights_closure0(t0, t1) {
  15952. this.$this = t0;
  15953. this.highlight = t1;
  15954. },
  15955. Highlighter__writeMultilineHighlights_closure1: function Highlighter__writeMultilineHighlights_closure1(t0) {
  15956. this.$this = t0;
  15957. },
  15958. Highlighter__writeMultilineHighlights_closure2: function Highlighter__writeMultilineHighlights_closure2(t0, t1, t2, t3, t4, t5, t6) {
  15959. var _ = this;
  15960. _._box_0 = t0;
  15961. _.$this = t1;
  15962. _.current = t2;
  15963. _.startLine = t3;
  15964. _.line = t4;
  15965. _.highlight = t5;
  15966. _.endLine = t6;
  15967. },
  15968. Highlighter__writeMultilineHighlights__closure: function Highlighter__writeMultilineHighlights__closure(t0, t1) {
  15969. this._box_0 = t0;
  15970. this.$this = t1;
  15971. },
  15972. Highlighter__writeMultilineHighlights__closure0: function Highlighter__writeMultilineHighlights__closure0(t0, t1) {
  15973. this.$this = t0;
  15974. this.vertical = t1;
  15975. },
  15976. Highlighter__writeHighlightedText_closure: function Highlighter__writeHighlightedText_closure(t0, t1, t2, t3) {
  15977. var _ = this;
  15978. _.$this = t0;
  15979. _.text = t1;
  15980. _.startColumn = t2;
  15981. _.endColumn = t3;
  15982. },
  15983. Highlighter__writeIndicator_closure: function Highlighter__writeIndicator_closure(t0, t1, t2) {
  15984. this.$this = t0;
  15985. this.line = t1;
  15986. this.highlight = t2;
  15987. },
  15988. Highlighter__writeIndicator_closure0: function Highlighter__writeIndicator_closure0(t0, t1, t2) {
  15989. this.$this = t0;
  15990. this.line = t1;
  15991. this.highlight = t2;
  15992. },
  15993. Highlighter__writeIndicator_closure1: function Highlighter__writeIndicator_closure1(t0, t1, t2, t3) {
  15994. var _ = this;
  15995. _.$this = t0;
  15996. _.coversWholeLine = t1;
  15997. _.line = t2;
  15998. _.highlight = t3;
  15999. },
  16000. Highlighter__writeSidebar_closure: function Highlighter__writeSidebar_closure(t0, t1, t2) {
  16001. this._box_0 = t0;
  16002. this.$this = t1;
  16003. this.end = t2;
  16004. },
  16005. _Highlight: function _Highlight(t0, t1, t2) {
  16006. this.span = t0;
  16007. this.isPrimary = t1;
  16008. this.label = t2;
  16009. },
  16010. _Highlight_closure: function _Highlight_closure(t0) {
  16011. this.span = t0;
  16012. },
  16013. _Line: function _Line(t0, t1, t2, t3) {
  16014. var _ = this;
  16015. _.text = t0;
  16016. _.number = t1;
  16017. _.url = t2;
  16018. _.highlights = t3;
  16019. },
  16020. Chain_Chain$parse: function(chain) {
  16021. var _s26_ = "<asynchronous suspension>\n",
  16022. _s51_ = string$.x3d_____;
  16023. if (chain.length === 0)
  16024. return new U.Chain(P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Trace), type$.legacy_Trace));
  16025. if (C.JSString_methods.contains$1(chain, _s26_))
  16026. return new U.Chain(P.List_List$unmodifiable(new H.MappedListIterable(H.setRuntimeTypeInfo(chain.split(_s26_), type$.JSArray_String), new U.Chain_Chain$parse_closure(), type$.MappedListIterable_of_String_and_legacy_Trace), type$.legacy_Trace));
  16027. if (!C.JSString_methods.contains$1(chain, _s51_))
  16028. return new U.Chain(P.List_List$unmodifiable(H.setRuntimeTypeInfo([Y.Trace_Trace$parse(chain)], type$.JSArray_legacy_Trace), type$.legacy_Trace));
  16029. return new U.Chain(P.List_List$unmodifiable(new H.MappedListIterable(H.setRuntimeTypeInfo(chain.split(_s51_), type$.JSArray_String), new U.Chain_Chain$parse_closure0(), type$.MappedListIterable_of_String_and_legacy_Trace), type$.legacy_Trace));
  16030. },
  16031. Chain: function Chain(t0) {
  16032. this.traces = t0;
  16033. },
  16034. Chain_Chain$parse_closure: function Chain_Chain$parse_closure() {
  16035. },
  16036. Chain_Chain$parse_closure0: function Chain_Chain$parse_closure0() {
  16037. },
  16038. Chain_toTrace_closure: function Chain_toTrace_closure() {
  16039. },
  16040. Chain_toString_closure0: function Chain_toString_closure0() {
  16041. },
  16042. Chain_toString__closure0: function Chain_toString__closure0() {
  16043. },
  16044. Chain_toString_closure: function Chain_toString_closure(t0) {
  16045. this.longest = t0;
  16046. },
  16047. Chain_toString__closure: function Chain_toString__closure(t0) {
  16048. this.longest = t0;
  16049. },
  16050. ModifiableCssAtRule0: function ModifiableCssAtRule0(t0, t1, t2, t3, t4, t5) {
  16051. var _ = this;
  16052. _.name = t0;
  16053. _.value = t1;
  16054. _.isChildless = t2;
  16055. _.span = t3;
  16056. _.children = t4;
  16057. _._node2$_children = t5;
  16058. _._node2$_indexInParent = _._node2$_parent = null;
  16059. _.isGroupEnd = false;
  16060. },
  16061. AtRule$0: function($name, span, children, value) {
  16062. var t1 = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  16063. t2 = t1 == null ? null : C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  16064. return new U.AtRule0($name, value, span, t1, t2 === true);
  16065. },
  16066. AtRule0: function AtRule0(t0, t1, t2, t3, t4) {
  16067. var _ = this;
  16068. _.name = t0;
  16069. _.value = t1;
  16070. _.span = t2;
  16071. _.children = t3;
  16072. _.hasDeclarations = t4;
  16073. },
  16074. _compileStylesheet1: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  16075. var evaluateResult = R._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet),
  16076. serializeResult = N.serialize0(evaluateResult.stylesheet, true, indentWidth, false, lineFeed, sourceMap, style, useSpaces),
  16077. t1 = serializeResult.sourceMap;
  16078. if (t1 != null && importCache != null)
  16079. B.mapInPlace0(t1.urls, new U._compileStylesheet_closure1(stylesheet, importCache));
  16080. return new X.CompileResult0(evaluateResult, serializeResult);
  16081. },
  16082. _compileStylesheet_closure1: function _compileStylesheet_closure1(t0, t1) {
  16083. this.stylesheet = t0;
  16084. this.importCache = t1;
  16085. },
  16086. ModifiableCssKeyframeBlock0: function ModifiableCssKeyframeBlock0(t0, t1, t2, t3) {
  16087. var _ = this;
  16088. _.selector = t0;
  16089. _.span = t1;
  16090. _.children = t2;
  16091. _._node2$_children = t3;
  16092. _._node2$_indexInParent = _._node2$_parent = null;
  16093. _.isGroupEnd = false;
  16094. },
  16095. SupportsOperation0: function SupportsOperation0(t0, t1, t2, t3) {
  16096. var _ = this;
  16097. _.left = t0;
  16098. _.right = t1;
  16099. _.operator = t2;
  16100. _.span = t3;
  16101. },
  16102. PublicMemberMapView0: function PublicMemberMapView0(t0, t1) {
  16103. this._public_member_map_view$_inner = t0;
  16104. this.$ti = t1;
  16105. },
  16106. RenderResult: function RenderResult() {
  16107. },
  16108. RenderResultStats: function RenderResultStats() {
  16109. },
  16110. main: function(args) {
  16111. return U.main$body(args);
  16112. },
  16113. main$body: function(args) {
  16114. var $async$goto = 0,
  16115. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  16116. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], printError, graph, source, destination, error, stackTrace, error0, stackTrace0, error1, error2, stackTrace1, buffer, options, t1, t2, t3, t4, exception, _box_0, $async$exception, $async$exception1, $async$temp1;
  16117. var $async$main = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16118. if ($async$errorCode === 1) {
  16119. $async$currentError = $async$result;
  16120. $async$goto = $async$handler;
  16121. }
  16122. while (true)
  16123. switch ($async$goto) {
  16124. case 0:
  16125. // Function start
  16126. _box_0 = {};
  16127. _box_0.printedError = false;
  16128. printError = new U.main_printError(_box_0);
  16129. _box_0.options = null;
  16130. $async$handler = 4;
  16131. options = B.ExecutableOptions_ExecutableOptions$parse(args);
  16132. _box_0.options = options;
  16133. t1 = options._options;
  16134. $._glyphs = !(t1.wasParsed$1("unicode") ? H._asBoolS(t1.$index(0, "unicode")) : $._glyphs !== C.C_AsciiGlyphSet) ? C.C_AsciiGlyphSet : C.C_UnicodeGlyphSet;
  16135. $async$goto = H._asBoolS(_box_0.options._options.$index(0, "version")) ? 7 : 8;
  16136. break;
  16137. case 7:
  16138. // then
  16139. $async$temp1 = P;
  16140. $async$goto = 9;
  16141. return P._asyncAwait(U._loadVersion(), $async$main);
  16142. case 9:
  16143. // returning from await.
  16144. $async$temp1.print($async$result);
  16145. self.process.exitCode = 0;
  16146. // goto return
  16147. $async$goto = 1;
  16148. break;
  16149. case 8:
  16150. // join
  16151. $async$goto = _box_0.options.get$interactive() ? 10 : 11;
  16152. break;
  16153. case 10:
  16154. // then
  16155. $async$goto = 12;
  16156. return P._asyncAwait(Y.repl(_box_0.options), $async$main);
  16157. case 12:
  16158. // returning from await.
  16159. // goto return
  16160. $async$goto = 1;
  16161. break;
  16162. case 11:
  16163. // join
  16164. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Importer);
  16165. t2 = type$.legacy_List_legacy_String._as(_box_0.options._options.$index(0, "load-path"));
  16166. t3 = _box_0.options;
  16167. t4 = type$.legacy_Uri;
  16168. graph = new M.StylesheetGraph(P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_StylesheetNode), R.ImportCache$(t1, t2, H._asBoolS(t3._options.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(t3.get$color())), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_DateTime));
  16169. $async$goto = H._asBoolS(_box_0.options._options.$index(0, "watch")) ? 13 : 14;
  16170. break;
  16171. case 13:
  16172. // then
  16173. $async$goto = 15;
  16174. return P._asyncAwait(A.watch(_box_0.options, graph), $async$main);
  16175. case 15:
  16176. // returning from await.
  16177. // goto return
  16178. $async$goto = 1;
  16179. break;
  16180. case 14:
  16181. // join
  16182. t1 = _box_0.options, t1._ensureSources$0(), t1 = J.get$iterator$ax(t1._sourcesToDestinations.get$keys());
  16183. case 16:
  16184. // for condition
  16185. if (!t1.moveNext$0()) {
  16186. // goto after for
  16187. $async$goto = 17;
  16188. break;
  16189. }
  16190. source = t1.get$current(t1);
  16191. t2 = _box_0.options;
  16192. t2._ensureSources$0();
  16193. destination = t2._sourcesToDestinations.$index(0, source);
  16194. $async$handler = 19;
  16195. t2 = _box_0.options;
  16196. $async$goto = 22;
  16197. return P._asyncAwait(D.compileStylesheet(t2, graph, source, destination, H._asBoolS(t2._options.$index(0, "update"))), $async$main);
  16198. case 22:
  16199. // returning from await.
  16200. $async$handler = 4;
  16201. // goto after finally
  16202. $async$goto = 21;
  16203. break;
  16204. case 19:
  16205. // catch
  16206. $async$handler = 18;
  16207. $async$exception = $async$currentError;
  16208. t2 = H.unwrapException($async$exception);
  16209. if (t2 instanceof E.SassException) {
  16210. error = t2;
  16211. stackTrace = H.getTraceFromException($async$exception);
  16212. new U.main_closure(_box_0, destination).call$0();
  16213. t2 = _box_0.options._options;
  16214. if (t2._parser.options._collection$_map.$index(0, "color") == null)
  16215. H.throwExpression(P.ArgumentError$('Could not find an option named "color".'));
  16216. if (t2._parsed.containsKey$1("color"))
  16217. t2 = H._asBoolS(t2.$index(0, "color"));
  16218. else {
  16219. t2 = self.process.stdout.isTTY;
  16220. if (t2 == null)
  16221. t2 = false;
  16222. }
  16223. t2 = J.toString$1$color$(error, t2);
  16224. t3 = H._asBoolS(_box_0.options._options.$index(0, "trace")) ? stackTrace : null;
  16225. printError.call$2(t2, t3);
  16226. if (!J.$eq$(self.process.exitCode, 66))
  16227. self.process.exitCode = 65;
  16228. if (H._asBoolS(_box_0.options._options.$index(0, "stop-on-error"))) {
  16229. // goto return
  16230. $async$goto = 1;
  16231. break;
  16232. }
  16233. } else if (t2 instanceof B.FileSystemException) {
  16234. error0 = t2;
  16235. stackTrace0 = H.getTraceFromException($async$exception);
  16236. t2 = error0.path;
  16237. t2 = "Error reading " + H.S($.$get$context().relative$2$from(t2, null)) + ": " + error0.message + ".";
  16238. t3 = H._asBoolS(_box_0.options._options.$index(0, "trace")) ? stackTrace0 : null;
  16239. printError.call$2(t2, t3);
  16240. self.process.exitCode = 66;
  16241. if (H._asBoolS(_box_0.options._options.$index(0, "stop-on-error"))) {
  16242. // goto return
  16243. $async$goto = 1;
  16244. break;
  16245. }
  16246. } else
  16247. throw $async$exception;
  16248. // goto after finally
  16249. $async$goto = 21;
  16250. break;
  16251. case 18:
  16252. // uncaught
  16253. // goto catch
  16254. $async$goto = 4;
  16255. break;
  16256. case 21:
  16257. // after finally
  16258. // goto for condition
  16259. $async$goto = 16;
  16260. break;
  16261. case 17:
  16262. // after for
  16263. $async$handler = 2;
  16264. // goto after finally
  16265. $async$goto = 6;
  16266. break;
  16267. case 4:
  16268. // catch
  16269. $async$handler = 3;
  16270. $async$exception1 = $async$currentError;
  16271. t1 = H.unwrapException($async$exception1);
  16272. if (t1 instanceof B.UsageException) {
  16273. error1 = t1;
  16274. P.print(H.S(error1.message) + "\n");
  16275. P.print("Usage: sass <input.scss> [output.css]\n sass <input.scss>:<output.css> <input/>:<output/> <dir/>\n");
  16276. t1 = $.$get$ExecutableOptions__parser();
  16277. P.print(new G.Usage(t1._optionsAndSeparators, t1.usageLineLength).generate$0());
  16278. self.process.exitCode = 64;
  16279. } else {
  16280. error2 = t1;
  16281. stackTrace1 = H.getTraceFromException($async$exception1);
  16282. buffer = new P.StringBuffer("");
  16283. t1 = _box_0.options;
  16284. if (t1 != null && t1.get$color())
  16285. buffer._contents += "\x1b[31m\x1b[1m";
  16286. buffer._contents += "Unexpected exception:";
  16287. t1 = _box_0.options;
  16288. if (t1 != null && t1.get$color())
  16289. buffer._contents += "\x1b[0m";
  16290. buffer._contents += "\n";
  16291. buffer._contents += H.S(error2) + "\n";
  16292. t1 = buffer._contents;
  16293. printError.call$2(t1.charCodeAt(0) == 0 ? t1 : t1, stackTrace1);
  16294. self.process.exitCode = 255;
  16295. }
  16296. // goto after finally
  16297. $async$goto = 6;
  16298. break;
  16299. case 3:
  16300. // uncaught
  16301. // goto rethrow
  16302. $async$goto = 2;
  16303. break;
  16304. case 6:
  16305. // after finally
  16306. case 1:
  16307. // return
  16308. return P._asyncReturn($async$returnValue, $async$completer);
  16309. case 2:
  16310. // rethrow
  16311. return P._asyncRethrow($async$currentError, $async$completer);
  16312. }
  16313. });
  16314. return P._asyncStartSync($async$main, $async$completer);
  16315. },
  16316. _loadVersion: function() {
  16317. var $async$goto = 0,
  16318. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  16319. $async$returnValue;
  16320. var $async$_loadVersion = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16321. if ($async$errorCode === 1)
  16322. return P._asyncRethrow($async$result, $async$completer);
  16323. while (true)
  16324. switch ($async$goto) {
  16325. case 0:
  16326. // Function start
  16327. $async$returnValue = "1.26.11 compiled with dart2js 2.9.3";
  16328. // goto return
  16329. $async$goto = 1;
  16330. break;
  16331. case 1:
  16332. // return
  16333. return P._asyncReturn($async$returnValue, $async$completer);
  16334. }
  16335. });
  16336. return P._asyncStartSync($async$_loadVersion, $async$completer);
  16337. },
  16338. main_printError: function main_printError(t0) {
  16339. this._box_0 = t0;
  16340. },
  16341. main_closure: function main_closure(t0, t1) {
  16342. this._box_0 = t0;
  16343. this.destination = t1;
  16344. },
  16345. SassParser0: function SassParser0(t0, t1, t2) {
  16346. var _ = this;
  16347. _._sass0$_currentIndentation = 0;
  16348. _._sass0$_spaces = _._sass0$_nextIndentationEnd = _._sass0$_nextIndentation = null;
  16349. _._stylesheet0$_isUseAllowed = true;
  16350. _._stylesheet0$_inMixin = false;
  16351. _._stylesheet0$_mixinHasContent = null;
  16352. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  16353. _._stylesheet0$_globalVariables = t0;
  16354. _.lastSilentComment = null;
  16355. _.scanner = t1;
  16356. _.logger = t2;
  16357. },
  16358. SassParser_children_closure0: function SassParser_children_closure0(t0, t1, t2) {
  16359. this.$this = t0;
  16360. this.children = t1;
  16361. this.child = t2;
  16362. }
  16363. },
  16364. M = {_DelegatingIterableBase: function _DelegatingIterableBase() {
  16365. }, DelegatingIterable: function DelegatingIterable() {
  16366. }, DelegatingSet: function DelegatingSet(t0, t1) {
  16367. this._base = t0;
  16368. this.$ti = t1;
  16369. }, MapKeySet: function MapKeySet(t0, t1) {
  16370. this._baseMap = t0;
  16371. this.$ti = t1;
  16372. }, _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin: function _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin() {
  16373. },
  16374. Context_Context: function(style) {
  16375. var current = style == null ? D.current() : ".";
  16376. if (style == null)
  16377. style = $.$get$Style_platform();
  16378. return new M.Context(style, current);
  16379. },
  16380. _parseUri: function(uri) {
  16381. if (typeof uri == "string")
  16382. return P.Uri_parse(uri);
  16383. if (type$.legacy_Uri._is(uri))
  16384. return uri;
  16385. throw H.wrapException(P.ArgumentError$value(uri, "uri", "Value must be a String or a Uri"));
  16386. },
  16387. _validateArgList: function(method, args) {
  16388. var numArgs, i, numArgs0, message, t1, t2;
  16389. for (numArgs = args.length, i = 1; i < numArgs; ++i) {
  16390. if (args[i] == null || args[i - 1] != null)
  16391. continue;
  16392. for (; numArgs >= 1; numArgs = numArgs0) {
  16393. numArgs0 = numArgs - 1;
  16394. if (args[numArgs0] != null)
  16395. break;
  16396. }
  16397. message = new P.StringBuffer("");
  16398. t1 = method + "(";
  16399. message._contents = t1;
  16400. t2 = H.SubListIterable$(args, 0, numArgs, H._arrayInstanceType(args)._precomputed1);
  16401. t2 = t1 + new H.MappedListIterable(t2, new M._validateArgList_closure(), t2.$ti._eval$1("MappedListIterable<ListIterable.E,String*>")).join$1(0, ", ");
  16402. message._contents = t2;
  16403. message._contents = t2 + ("): part " + (i - 1) + " was null, but part " + i + " was not.");
  16404. throw H.wrapException(P.ArgumentError$(message.toString$0(0)));
  16405. }
  16406. },
  16407. Context: function Context(t0, t1) {
  16408. this.style = t0;
  16409. this._context$_current = t1;
  16410. },
  16411. Context_join_closure: function Context_join_closure() {
  16412. },
  16413. Context_joinAll_closure: function Context_joinAll_closure() {
  16414. },
  16415. Context_split_closure: function Context_split_closure() {
  16416. },
  16417. _validateArgList_closure: function _validateArgList_closure() {
  16418. },
  16419. _PathDirection: function _PathDirection(t0) {
  16420. this.name = t0;
  16421. },
  16422. _PathRelation: function _PathRelation(t0) {
  16423. this.name = t0;
  16424. },
  16425. CallableDeclaration: function CallableDeclaration() {
  16426. },
  16427. FunctionRule: function FunctionRule(t0, t1, t2, t3, t4) {
  16428. var _ = this;
  16429. _.name = t0;
  16430. _.$arguments = t1;
  16431. _.span = t2;
  16432. _.children = t3;
  16433. _.hasDeclarations = t4;
  16434. },
  16435. ParentStatement: function ParentStatement() {
  16436. },
  16437. ParentStatement_closure: function ParentStatement_closure() {
  16438. },
  16439. ParentStatement__closure: function ParentStatement__closure() {
  16440. },
  16441. SupportsNegation: function SupportsNegation(t0, t1) {
  16442. this.condition = t0;
  16443. this.span = t1;
  16444. },
  16445. ParentSelector: function ParentSelector(t0) {
  16446. this.suffix = t0;
  16447. },
  16448. SimpleSelector: function SimpleSelector() {
  16449. },
  16450. Importer: function Importer() {
  16451. },
  16452. StylesheetNode$_: function(_stylesheet, importer, canonicalUrl, allUpstream) {
  16453. var t1 = new M.StylesheetNode(_stylesheet, importer, canonicalUrl, allUpstream.item1, allUpstream.item2, P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_StylesheetNode));
  16454. t1.StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream);
  16455. return t1;
  16456. },
  16457. StylesheetGraph: function StylesheetGraph(t0, t1, t2) {
  16458. this._nodes = t0;
  16459. this.importCache = t1;
  16460. this._transitiveModificationTimes = t2;
  16461. },
  16462. StylesheetGraph_modifiedSince_transitiveModificationTime: function StylesheetGraph_modifiedSince_transitiveModificationTime(t0) {
  16463. this.$this = t0;
  16464. },
  16465. StylesheetGraph_modifiedSince_transitiveModificationTime_closure: function StylesheetGraph_modifiedSince_transitiveModificationTime_closure(t0, t1) {
  16466. this.node = t0;
  16467. this.transitiveModificationTime = t1;
  16468. },
  16469. StylesheetGraph__add_closure: function StylesheetGraph__add_closure(t0, t1, t2, t3) {
  16470. var _ = this;
  16471. _.$this = t0;
  16472. _.url = t1;
  16473. _.baseImporter = t2;
  16474. _.baseUrl = t3;
  16475. },
  16476. StylesheetGraph_addCanonical_closure: function StylesheetGraph_addCanonical_closure(t0, t1, t2, t3) {
  16477. var _ = this;
  16478. _.$this = t0;
  16479. _.importer = t1;
  16480. _.canonicalUrl = t2;
  16481. _.originalUrl = t3;
  16482. },
  16483. StylesheetGraph_reload_closure: function StylesheetGraph_reload_closure(t0, t1, t2) {
  16484. this.$this = t0;
  16485. this.node = t1;
  16486. this.canonicalUrl = t2;
  16487. },
  16488. StylesheetGraph__recanonicalizeImportsForNode_closure: function StylesheetGraph__recanonicalizeImportsForNode_closure(t0, t1, t2, t3, t4, t5) {
  16489. var _ = this;
  16490. _.$this = t0;
  16491. _.importer = t1;
  16492. _.canonicalUrl = t2;
  16493. _.node = t3;
  16494. _.forImport = t4;
  16495. _.newMap = t5;
  16496. },
  16497. StylesheetGraph__nodeFor_closure: function StylesheetGraph__nodeFor_closure(t0, t1, t2, t3, t4) {
  16498. var _ = this;
  16499. _.$this = t0;
  16500. _.url = t1;
  16501. _.baseImporter = t2;
  16502. _.baseUrl = t3;
  16503. _.forImport = t4;
  16504. },
  16505. StylesheetGraph__nodeFor_closure0: function StylesheetGraph__nodeFor_closure0(t0, t1, t2, t3) {
  16506. var _ = this;
  16507. _.$this = t0;
  16508. _.importer = t1;
  16509. _.canonicalUrl = t2;
  16510. _.resolvedUrl = t3;
  16511. },
  16512. StylesheetNode: function StylesheetNode(t0, t1, t2, t3, t4, t5) {
  16513. var _ = this;
  16514. _._stylesheet_graph$_stylesheet = t0;
  16515. _.importer = t1;
  16516. _.canonicalUrl = t2;
  16517. _._upstream = t3;
  16518. _._upstreamImports = t4;
  16519. _._downstream = t5;
  16520. },
  16521. Syntax_forPath: function(path) {
  16522. switch (X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
  16523. case ".sass":
  16524. return C.Syntax_Sass;
  16525. case ".css":
  16526. return C.Syntax_CSS;
  16527. default:
  16528. return C.Syntax_SCSS;
  16529. }
  16530. },
  16531. Syntax: function Syntax(t0) {
  16532. this._syntax$_name = t0;
  16533. },
  16534. CallableDeclaration0: function CallableDeclaration0() {
  16535. },
  16536. FunctionRule0: function FunctionRule0(t0, t1, t2, t3, t4) {
  16537. var _ = this;
  16538. _.name = t0;
  16539. _.$arguments = t1;
  16540. _.span = t2;
  16541. _.children = t3;
  16542. _.hasDeclarations = t4;
  16543. },
  16544. Importer0: function Importer0() {
  16545. },
  16546. SupportsNegation0: function SupportsNegation0(t0, t1) {
  16547. this.condition = t0;
  16548. this.span = t1;
  16549. },
  16550. ParentSelector0: function ParentSelector0(t0) {
  16551. this.suffix = t0;
  16552. },
  16553. ParentStatement0: function ParentStatement0() {
  16554. },
  16555. ParentStatement_closure0: function ParentStatement_closure0() {
  16556. },
  16557. ParentStatement__closure0: function ParentStatement__closure0() {
  16558. },
  16559. SimpleSelector0: function SimpleSelector0() {
  16560. },
  16561. Syntax_forPath0: function(path) {
  16562. switch (X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
  16563. case ".sass":
  16564. return C.Syntax_Sass0;
  16565. case ".css":
  16566. return C.Syntax_CSS0;
  16567. default:
  16568. return C.Syntax_SCSS0;
  16569. }
  16570. },
  16571. Syntax0: function Syntax0(t0) {
  16572. this._syntax0$_name = t0;
  16573. }
  16574. },
  16575. X = {
  16576. ParsedPath_ParsedPath$parse: function(path, style) {
  16577. var t1, parts, separators, start, i,
  16578. root = style.getRoot$1(path),
  16579. isRootRelative = style.isRootRelative$1(path);
  16580. if (root != null)
  16581. path = J.substring$1$s(path, root.length);
  16582. t1 = type$.JSArray_legacy_String;
  16583. parts = H.setRuntimeTypeInfo([], t1);
  16584. separators = H.setRuntimeTypeInfo([], t1);
  16585. t1 = path.length;
  16586. if (t1 !== 0 && style.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, 0))) {
  16587. separators.push(path[0]);
  16588. start = 1;
  16589. } else {
  16590. separators.push("");
  16591. start = 0;
  16592. }
  16593. for (i = start; i < t1; ++i)
  16594. if (style.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, i))) {
  16595. parts.push(C.JSString_methods.substring$2(path, start, i));
  16596. separators.push(path[i]);
  16597. start = i + 1;
  16598. }
  16599. if (start < t1) {
  16600. parts.push(C.JSString_methods.substring$1(path, start));
  16601. separators.push("");
  16602. }
  16603. return new X.ParsedPath(style, root, isRootRelative, parts, separators);
  16604. },
  16605. ParsedPath: function ParsedPath(t0, t1, t2, t3, t4) {
  16606. var _ = this;
  16607. _.style = t0;
  16608. _.root = t1;
  16609. _.isRootRelative = t2;
  16610. _.parts = t3;
  16611. _.separators = t4;
  16612. },
  16613. ParsedPath_normalize_closure: function ParsedPath_normalize_closure(t0) {
  16614. this.$this = t0;
  16615. },
  16616. ParsedPath__splitExtension_closure: function ParsedPath__splitExtension_closure() {
  16617. },
  16618. ParsedPath__splitExtension_closure0: function ParsedPath__splitExtension_closure0() {
  16619. },
  16620. PathException$: function(message) {
  16621. return new X.PathException(message);
  16622. },
  16623. PathException: function PathException(t0) {
  16624. this.message = t0;
  16625. },
  16626. ModifiableCssStyleRule$: function(selector, span, originalSelector) {
  16627. var t1 = originalSelector == null ? selector.value : originalSelector,
  16628. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  16629. return new X.ModifiableCssStyleRule(selector, t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2);
  16630. },
  16631. ModifiableCssStyleRule: function ModifiableCssStyleRule(t0, t1, t2, t3, t4) {
  16632. var _ = this;
  16633. _.selector = t0;
  16634. _.originalSelector = t1;
  16635. _.span = t2;
  16636. _.children = t3;
  16637. _._children = t4;
  16638. _._indexInParent = _._parent = null;
  16639. _.isGroupEnd = false;
  16640. },
  16641. ArgumentInvocation$: function(positional, named, span, keywordRest, rest) {
  16642. var t1 = type$.legacy_Expression;
  16643. return new X.ArgumentInvocation(P.List_List$unmodifiable(positional, t1), H.ConstantMap_ConstantMap$from(named, type$.legacy_String, t1), rest, keywordRest, span);
  16644. },
  16645. ArgumentInvocation: function ArgumentInvocation(t0, t1, t2, t3, t4) {
  16646. var _ = this;
  16647. _.positional = t0;
  16648. _.named = t1;
  16649. _.rest = t2;
  16650. _.keywordRest = t3;
  16651. _.span = t4;
  16652. },
  16653. UnaryOperationExpression: function UnaryOperationExpression(t0, t1, t2) {
  16654. this.operator = t0;
  16655. this.operand = t1;
  16656. this.span = t2;
  16657. },
  16658. UnaryOperator: function UnaryOperator(t0, t1) {
  16659. this.name = t0;
  16660. this.operator = t1;
  16661. },
  16662. Interpolation$: function(contents, span) {
  16663. var t1 = new X.Interpolation(P.List_List$unmodifiable(contents, type$.legacy_Object), span);
  16664. t1.Interpolation$2(contents, span);
  16665. return t1;
  16666. },
  16667. Interpolation: function Interpolation(t0, t1) {
  16668. this.contents = t0;
  16669. this.span = t1;
  16670. },
  16671. Interpolation_toString_closure: function Interpolation_toString_closure() {
  16672. },
  16673. ExtendRule: function ExtendRule(t0, t1, t2) {
  16674. this.selector = t0;
  16675. this.isOptional = t1;
  16676. this.span = t2;
  16677. },
  16678. StyleRule: function StyleRule(t0, t1, t2, t3) {
  16679. var _ = this;
  16680. _.selector = t0;
  16681. _.span = t1;
  16682. _.children = t2;
  16683. _.hasDeclarations = t3;
  16684. },
  16685. SupportsInterpolation: function SupportsInterpolation(t0, t1) {
  16686. this.expression = t0;
  16687. this.span = t1;
  16688. },
  16689. ClassSelector: function ClassSelector(t0) {
  16690. this.name = t0;
  16691. },
  16692. CompoundSelector$: function(components) {
  16693. var t1 = P.List_List$unmodifiable(components, type$.legacy_SimpleSelector);
  16694. if (t1.length === 0)
  16695. H.throwExpression(P.ArgumentError$("components may not be empty."));
  16696. return new X.CompoundSelector(t1);
  16697. },
  16698. CompoundSelector: function CompoundSelector(t0) {
  16699. this.components = t0;
  16700. this._compound$_maxSpecificity = this._compound$_minSpecificity = null;
  16701. },
  16702. CompoundSelector_isInvisible_closure: function CompoundSelector_isInvisible_closure() {
  16703. },
  16704. compileAsync: function(path, charset, importCache, logger, sourceMap, style, syntax) {
  16705. var $async$goto = 0,
  16706. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult),
  16707. $async$returnValue, t2, stylesheet, t1;
  16708. var $async$compileAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16709. if ($async$errorCode === 1)
  16710. return P._asyncRethrow($async$result, $async$completer);
  16711. while (true)
  16712. switch ($async$goto) {
  16713. case 0:
  16714. // Function start
  16715. t1 = syntax === M.Syntax_forPath(path);
  16716. $async$goto = t1 ? 3 : 5;
  16717. break;
  16718. case 3:
  16719. // then
  16720. t1 = D.absolute(".");
  16721. t2 = $.$get$context();
  16722. $async$goto = 6;
  16723. return P._asyncAwait(importCache.importCanonical$3(new F.FilesystemImporter(t1), t2.toUri$1(t2.canonicalize$1(path)), t2.toUri$1(path)), $async$compileAsync);
  16724. case 6:
  16725. // returning from await.
  16726. stylesheet = $async$result;
  16727. // goto join
  16728. $async$goto = 4;
  16729. break;
  16730. case 5:
  16731. // else
  16732. t1 = B.readFile(path);
  16733. stylesheet = V.Stylesheet_Stylesheet$parse(t1, syntax, logger, $.$get$context().toUri$1(path));
  16734. case 4:
  16735. // join
  16736. $async$goto = 7;
  16737. return P._asyncAwait(X._compileStylesheet0(stylesheet, logger, importCache, null, new F.FilesystemImporter(D.absolute(".")), null, style, true, null, null, sourceMap, charset), $async$compileAsync);
  16738. case 7:
  16739. // returning from await.
  16740. $async$returnValue = $async$result;
  16741. // goto return
  16742. $async$goto = 1;
  16743. break;
  16744. case 1:
  16745. // return
  16746. return P._asyncReturn($async$returnValue, $async$completer);
  16747. }
  16748. });
  16749. return P._asyncStartSync($async$compileAsync, $async$completer);
  16750. },
  16751. compileStringAsync: function(source, charset, importCache, importer, logger, sourceMap, style, syntax) {
  16752. var $async$goto = 0,
  16753. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult),
  16754. $async$returnValue, stylesheet;
  16755. var $async$compileStringAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16756. if ($async$errorCode === 1)
  16757. return P._asyncRethrow($async$result, $async$completer);
  16758. while (true)
  16759. switch ($async$goto) {
  16760. case 0:
  16761. // Function start
  16762. stylesheet = V.Stylesheet_Stylesheet$parse(source, syntax, logger, null);
  16763. $async$returnValue = X._compileStylesheet0(stylesheet, logger, importCache, null, importer, null, style, true, null, null, sourceMap, charset);
  16764. // goto return
  16765. $async$goto = 1;
  16766. break;
  16767. case 1:
  16768. // return
  16769. return P._asyncReturn($async$returnValue, $async$completer);
  16770. }
  16771. });
  16772. return P._asyncStartSync($async$compileStringAsync, $async$completer);
  16773. },
  16774. _compileStylesheet0: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  16775. var $async$goto = 0,
  16776. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult),
  16777. $async$returnValue, serializeResult, t1, $async$temp1;
  16778. var $async$_compileStylesheet0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16779. if ($async$errorCode === 1)
  16780. return P._asyncRethrow($async$result, $async$completer);
  16781. while (true)
  16782. switch ($async$goto) {
  16783. case 0:
  16784. // Function start
  16785. $async$temp1 = N;
  16786. $async$goto = 3;
  16787. return P._asyncAwait(E._EvaluateVisitor$0(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet0);
  16788. case 3:
  16789. // returning from await.
  16790. serializeResult = $async$temp1.serialize($async$result.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true);
  16791. t1 = serializeResult.sourceMap;
  16792. if (t1 != null && true)
  16793. B.mapInPlace(t1.urls, new X._compileStylesheet_closure0(stylesheet, importCache));
  16794. $async$returnValue = new X.CompileResult(serializeResult);
  16795. // goto return
  16796. $async$goto = 1;
  16797. break;
  16798. case 1:
  16799. // return
  16800. return P._asyncReturn($async$returnValue, $async$completer);
  16801. }
  16802. });
  16803. return P._asyncStartSync($async$_compileStylesheet0, $async$completer);
  16804. },
  16805. _compileStylesheet_closure0: function _compileStylesheet_closure0(t0, t1) {
  16806. this.stylesheet = t0;
  16807. this.importCache = t1;
  16808. },
  16809. CompileResult: function CompileResult(t0) {
  16810. this._serialize = t0;
  16811. },
  16812. SourceSpanWithContext$: function(start, end, text, _context) {
  16813. var t1 = new X.SourceSpanWithContext(_context, start, end, text);
  16814. t1.SourceSpanBase$3(start, end, text);
  16815. if (!C.JSString_methods.contains$1(_context, text))
  16816. H.throwExpression(P.ArgumentError$('The context line "' + _context + '" must contain "' + text + '".'));
  16817. if (B.findLineStart(_context, text, start.get$column()) == null)
  16818. H.throwExpression(P.ArgumentError$('The span text "' + text + '" must start at column ' + (start.get$column() + 1) + ' in a line within "' + _context + '".'));
  16819. return t1;
  16820. },
  16821. SourceSpanWithContext: function SourceSpanWithContext(t0, t1, t2, t3) {
  16822. var _ = this;
  16823. _._context = t0;
  16824. _.start = t1;
  16825. _.end = t2;
  16826. _.text = t3;
  16827. },
  16828. StringScanner$: function(string, position, sourceUrl) {
  16829. var t1 = typeof sourceUrl == "string" ? P.Uri_parse(sourceUrl) : type$.legacy_Uri._as(sourceUrl);
  16830. return new X.StringScanner(t1, string);
  16831. },
  16832. StringScanner: function StringScanner(t0, t1) {
  16833. var _ = this;
  16834. _.sourceUrl = t0;
  16835. _.string = t1;
  16836. _._string_scanner$_position = 0;
  16837. _._lastMatchPosition = _._lastMatch = null;
  16838. },
  16839. ArgumentInvocation$0: function(positional, named, span, keywordRest, rest) {
  16840. var t1 = type$.legacy_Expression_2;
  16841. return new X.ArgumentInvocation0(P.List_List$unmodifiable(positional, t1), H.ConstantMap_ConstantMap$from(named, type$.legacy_String, t1), rest, keywordRest, span);
  16842. },
  16843. ArgumentInvocation0: function ArgumentInvocation0(t0, t1, t2, t3, t4) {
  16844. var _ = this;
  16845. _.positional = t0;
  16846. _.named = t1;
  16847. _.rest = t2;
  16848. _.keywordRest = t3;
  16849. _.span = t4;
  16850. },
  16851. compileAsync0: function(path, functions, indentWidth, lineFeed, nodeImporter, sourceMap, style, syntax, useSpaces) {
  16852. var $async$goto = 0,
  16853. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult_2),
  16854. $async$returnValue, t1, t2, stylesheet;
  16855. var $async$compileAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16856. if ($async$errorCode === 1)
  16857. return P._asyncRethrow($async$result, $async$completer);
  16858. while (true)
  16859. switch ($async$goto) {
  16860. case 0:
  16861. // Function start
  16862. t1 = B.readFile0(path);
  16863. t2 = syntax == null ? M.Syntax_forPath0(path) : syntax;
  16864. stylesheet = V.Stylesheet_Stylesheet$parse0(t1, t2, null, $.$get$context().toUri$1(path));
  16865. $async$goto = 3;
  16866. return P._asyncAwait(X._compileStylesheet2(stylesheet, null, null, nodeImporter, new F.FilesystemImporter0(D.absolute(".")), functions, style, useSpaces, indentWidth, lineFeed, sourceMap, true), $async$compileAsync0);
  16867. case 3:
  16868. // returning from await.
  16869. $async$returnValue = $async$result;
  16870. // goto return
  16871. $async$goto = 1;
  16872. break;
  16873. case 1:
  16874. // return
  16875. return P._asyncReturn($async$returnValue, $async$completer);
  16876. }
  16877. });
  16878. return P._asyncStartSync($async$compileAsync0, $async$completer);
  16879. },
  16880. compileStringAsync0: function(source, functions, indentWidth, lineFeed, nodeImporter, sourceMap, style, syntax, url, useSpaces) {
  16881. var $async$goto = 0,
  16882. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult_2),
  16883. $async$returnValue, stylesheet, t1;
  16884. var $async$compileStringAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16885. if ($async$errorCode === 1)
  16886. return P._asyncRethrow($async$result, $async$completer);
  16887. while (true)
  16888. switch ($async$goto) {
  16889. case 0:
  16890. // Function start
  16891. stylesheet = V.Stylesheet_Stylesheet$parse0(source, syntax == null ? C.Syntax_SCSS0 : syntax, null, url);
  16892. t1 = D.absolute(".");
  16893. $async$returnValue = X._compileStylesheet2(stylesheet, null, null, nodeImporter, new F.FilesystemImporter0(t1), functions, style, useSpaces, indentWidth, lineFeed, sourceMap, true);
  16894. // goto return
  16895. $async$goto = 1;
  16896. break;
  16897. case 1:
  16898. // return
  16899. return P._asyncReturn($async$returnValue, $async$completer);
  16900. }
  16901. });
  16902. return P._asyncStartSync($async$compileStringAsync0, $async$completer);
  16903. },
  16904. _compileStylesheet2: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  16905. var $async$goto = 0,
  16906. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult_2),
  16907. $async$returnValue, evaluateResult, serializeResult, t1;
  16908. var $async$_compileStylesheet2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  16909. if ($async$errorCode === 1)
  16910. return P._asyncRethrow($async$result, $async$completer);
  16911. while (true)
  16912. switch ($async$goto) {
  16913. case 0:
  16914. // Function start
  16915. $async$goto = 3;
  16916. return P._asyncAwait(E._EvaluateVisitor$2(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet2);
  16917. case 3:
  16918. // returning from await.
  16919. evaluateResult = $async$result;
  16920. serializeResult = N.serialize0(evaluateResult.stylesheet, true, indentWidth, false, lineFeed, sourceMap, style, useSpaces);
  16921. t1 = serializeResult.sourceMap;
  16922. if (t1 != null && importCache != null)
  16923. B.mapInPlace0(t1.urls, new X._compileStylesheet_closure2(stylesheet, importCache));
  16924. $async$returnValue = new X.CompileResult0(evaluateResult, serializeResult);
  16925. // goto return
  16926. $async$goto = 1;
  16927. break;
  16928. case 1:
  16929. // return
  16930. return P._asyncReturn($async$returnValue, $async$completer);
  16931. }
  16932. });
  16933. return P._asyncStartSync($async$_compileStylesheet2, $async$completer);
  16934. },
  16935. _compileStylesheet_closure2: function _compileStylesheet_closure2(t0, t1) {
  16936. this.stylesheet = t0;
  16937. this.importCache = t1;
  16938. },
  16939. CompileResult0: function CompileResult0(t0, t1) {
  16940. this._evaluate = t0;
  16941. this._async_compile$_serialize = t1;
  16942. },
  16943. ClassSelector0: function ClassSelector0(t0) {
  16944. this.name = t0;
  16945. },
  16946. CompoundSelector$0: function(components) {
  16947. var t1 = P.List_List$unmodifiable(components, type$.legacy_SimpleSelector_2);
  16948. if (t1.length === 0)
  16949. H.throwExpression(P.ArgumentError$("components may not be empty."));
  16950. return new X.CompoundSelector0(t1);
  16951. },
  16952. CompoundSelector0: function CompoundSelector0(t0) {
  16953. this.components = t0;
  16954. this._compound0$_maxSpecificity = this._compound0$_minSpecificity = null;
  16955. },
  16956. CompoundSelector_isInvisible_closure0: function CompoundSelector_isInvisible_closure0() {
  16957. },
  16958. ExtendRule0: function ExtendRule0(t0, t1, t2) {
  16959. this.selector = t0;
  16960. this.isOptional = t1;
  16961. this.span = t2;
  16962. },
  16963. Interpolation$0: function(contents, span) {
  16964. var t1 = new X.Interpolation0(P.List_List$unmodifiable(contents, type$.legacy_Object), span);
  16965. t1.Interpolation$20(contents, span);
  16966. return t1;
  16967. },
  16968. Interpolation0: function Interpolation0(t0, t1) {
  16969. this.contents = t0;
  16970. this.span = t1;
  16971. },
  16972. Interpolation_toString_closure0: function Interpolation_toString_closure0() {
  16973. },
  16974. SupportsInterpolation0: function SupportsInterpolation0(t0, t1) {
  16975. this.expression = t0;
  16976. this.span = t1;
  16977. },
  16978. ModifiableCssStyleRule$0: function(selector, span, originalSelector) {
  16979. var t1 = originalSelector == null ? selector.value : originalSelector,
  16980. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  16981. return new X.ModifiableCssStyleRule0(selector, t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2);
  16982. },
  16983. ModifiableCssStyleRule0: function ModifiableCssStyleRule0(t0, t1, t2, t3, t4) {
  16984. var _ = this;
  16985. _.selector = t0;
  16986. _.originalSelector = t1;
  16987. _.span = t2;
  16988. _.children = t3;
  16989. _._node2$_children = t4;
  16990. _._node2$_indexInParent = _._node2$_parent = null;
  16991. _.isGroupEnd = false;
  16992. },
  16993. StyleRule0: function StyleRule0(t0, t1, t2, t3) {
  16994. var _ = this;
  16995. _.selector = t0;
  16996. _.span = t1;
  16997. _.children = t2;
  16998. _.hasDeclarations = t3;
  16999. },
  17000. UnaryOperationExpression0: function UnaryOperationExpression0(t0, t1, t2) {
  17001. this.operator = t0;
  17002. this.operand = t1;
  17003. this.span = t2;
  17004. },
  17005. UnaryOperator0: function UnaryOperator0(t0, t1) {
  17006. this.name = t0;
  17007. this.operator = t1;
  17008. },
  17009. _combine: function(hash, value) {
  17010. hash = 536870911 & hash + value;
  17011. hash = 536870911 & hash + ((524287 & hash) << 10);
  17012. return hash ^ hash >>> 6;
  17013. },
  17014. _finish: function(hash) {
  17015. hash = 536870911 & hash + ((67108863 & hash) << 3);
  17016. hash ^= hash >>> 11;
  17017. return 536870911 & hash + ((16383 & hash) << 15);
  17018. }
  17019. },
  17020. K = {
  17021. PathMap__create: function(context, $V) {
  17022. var t1 = {};
  17023. t1.context = context;
  17024. t1.context = $.$get$context();
  17025. return P.LinkedHashMap_LinkedHashMap(new K.PathMap__create_closure(t1), new K.PathMap__create_closure0(t1), new K.PathMap__create_closure1(), type$.legacy_String, $V._eval$1("0*"));
  17026. },
  17027. PathMap: function PathMap(t0, t1) {
  17028. this._collection$_map = t0;
  17029. this.$ti = t1;
  17030. },
  17031. PathMap__create_closure: function PathMap__create_closure(t0) {
  17032. this._box_0 = t0;
  17033. },
  17034. PathMap__create_closure0: function PathMap__create_closure0(t0) {
  17035. this._box_0 = t0;
  17036. },
  17037. PathMap__create_closure1: function PathMap__create_closure1() {
  17038. },
  17039. ColorExpression: function ColorExpression(t0) {
  17040. this.value = t0;
  17041. },
  17042. _functionString: function($name, $arguments) {
  17043. return new D.SassString($name + "(" + J.map$1$1$ax($arguments, new K._functionString_closure(), type$.legacy_String).join$1(0, ", ") + ")", false);
  17044. },
  17045. _removedColorFunction: function($name, argument, negative) {
  17046. var t1 = S.SpanScanner$("@function " + $name + "($color, $amount) {", "sass:color");
  17047. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new K._removedColorFunction_closure($name, argument, negative), type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  17048. },
  17049. _rgb: function($name, $arguments) {
  17050. var t2, red, green, blue, t3, _null = null,
  17051. t1 = J.getInterceptor$asx($arguments),
  17052. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : _null;
  17053. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  17054. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  17055. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  17056. t2 = alpha == null ? _null : alpha.get$isSpecialNumber();
  17057. t2 = t2 === true;
  17058. } else
  17059. t2 = true;
  17060. else
  17061. t2 = true;
  17062. else
  17063. t2 = true;
  17064. if (t2)
  17065. return K._functionString($name, $arguments);
  17066. red = t1.$index($arguments, 0).assertNumber$1("red");
  17067. green = t1.$index($arguments, 1).assertNumber$1("green");
  17068. blue = t1.$index($arguments, 2).assertNumber$1("blue");
  17069. t1 = T.fuzzyRound(K._percentageOrUnitless(red, 255, "red"));
  17070. t2 = T.fuzzyRound(K._percentageOrUnitless(green, 255, "green"));
  17071. t3 = T.fuzzyRound(K._percentageOrUnitless(blue, 255, "blue"));
  17072. return K.SassColor$rgb(t1, t2, t3, alpha == null ? _null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha"), _null);
  17073. },
  17074. _rgbTwoArg: function($name, $arguments) {
  17075. var first, t2, color,
  17076. t1 = J.getInterceptor$asx($arguments);
  17077. if (t1.$index($arguments, 0).get$isVar())
  17078. return K._functionString($name, $arguments);
  17079. else if (t1.$index($arguments, 1).get$isVar()) {
  17080. first = t1.$index($arguments, 0);
  17081. if (first instanceof K.SassColor) {
  17082. t2 = $name + "(" + H.S(first.get$red()) + ", " + H.S(first.get$green()) + ", " + H.S(first.get$blue()) + ", ";
  17083. t1 = t1.$index($arguments, 1);
  17084. t1.toString;
  17085. return new D.SassString(t2 + N.serializeValue0(t1, false, true) + ")", false);
  17086. } else
  17087. return K._functionString($name, $arguments);
  17088. } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
  17089. color = t1.$index($arguments, 0).assertColor$1("color");
  17090. t2 = $name + "(" + H.S(color.get$red()) + ", " + H.S(color.get$green()) + ", " + H.S(color.get$blue()) + ", ";
  17091. t1 = t1.$index($arguments, 1);
  17092. t1.toString;
  17093. return new D.SassString(t2 + N.serializeValue0(t1, false, true) + ")", false);
  17094. }
  17095. return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(K._percentageOrUnitless(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
  17096. },
  17097. _hsl: function($name, $arguments) {
  17098. var t2, hue, saturation, lightness, t3,
  17099. t1 = J.getInterceptor$asx($arguments),
  17100. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  17101. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  17102. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  17103. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  17104. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  17105. t2 = t2 === true;
  17106. } else
  17107. t2 = true;
  17108. else
  17109. t2 = true;
  17110. else
  17111. t2 = true;
  17112. if (t2)
  17113. return K._functionString($name, $arguments);
  17114. hue = t1.$index($arguments, 0).assertNumber$1("hue");
  17115. saturation = t1.$index($arguments, 1).assertNumber$1("saturation");
  17116. lightness = t1.$index($arguments, 2).assertNumber$1("lightness");
  17117. t1 = J.clamp$2$n(saturation.value, 0, 100);
  17118. t2 = J.clamp$2$n(lightness.value, 0, 100);
  17119. t3 = alpha == null ? null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  17120. return K.SassColor$hsl(hue.value, t1, t2, t3);
  17121. },
  17122. _parseChannels: function($name, argumentNames, channels) {
  17123. var isCommaSeparated, isBracketed, buffer, t1, list, maybeSlashSeparated, t2, t3,
  17124. _s17_ = "$channels must be",
  17125. _s32_ = "$channels must be an unbracketed";
  17126. if (channels.get$isVar())
  17127. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value));
  17128. isCommaSeparated = channels.get$separator() === C.ListSeparator_comma;
  17129. isBracketed = channels.get$hasBrackets();
  17130. if (isCommaSeparated || isBracketed) {
  17131. buffer = new P.StringBuffer(_s17_);
  17132. if (isBracketed) {
  17133. buffer._contents = _s32_;
  17134. t1 = _s32_;
  17135. } else
  17136. t1 = _s17_;
  17137. if (isCommaSeparated) {
  17138. t1 += isBracketed ? "," : " a";
  17139. buffer._contents = t1;
  17140. t1 = buffer._contents = t1 + " space-separated";
  17141. }
  17142. buffer._contents = t1 + " list.";
  17143. throw H.wrapException(E.SassScriptException$(buffer.toString$0(0)));
  17144. }
  17145. list = channels.get$asList();
  17146. t1 = list.length;
  17147. if (t1 > 3)
  17148. throw H.wrapException(E.SassScriptException$("Only 3 elements allowed, but " + t1 + " were passed."));
  17149. else if (t1 < 3) {
  17150. if (!C.JSArray_methods.any$1(list, new K._parseChannels_closure()))
  17151. if (list.length !== 0) {
  17152. t1 = C.JSArray_methods.get$last(list);
  17153. if (t1 instanceof D.SassString)
  17154. if (t1.hasQuotes) {
  17155. t1 = t1.text;
  17156. t1 = B.startsWithIgnoreCase(t1, "var(") && J.contains$1$asx(t1, "/");
  17157. } else
  17158. t1 = false;
  17159. else
  17160. t1 = false;
  17161. } else
  17162. t1 = false;
  17163. else
  17164. t1 = true;
  17165. if (t1)
  17166. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value));
  17167. else
  17168. throw H.wrapException(E.SassScriptException$("Missing element " + argumentNames[list.length] + "."));
  17169. }
  17170. maybeSlashSeparated = list[2];
  17171. if (maybeSlashSeparated instanceof T.SassNumber && maybeSlashSeparated.asSlash != null) {
  17172. t1 = list[0];
  17173. t2 = list[1];
  17174. t3 = maybeSlashSeparated.asSlash;
  17175. return H.setRuntimeTypeInfo([t1, t2, t3.item1, t3.item2], type$.JSArray_legacy_Value);
  17176. } else if (maybeSlashSeparated instanceof D.SassString && !maybeSlashSeparated.hasQuotes && J.contains$1$asx(maybeSlashSeparated.text, "/"))
  17177. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value));
  17178. else
  17179. return list;
  17180. },
  17181. _percentageOrUnitless: function(number, max, $name) {
  17182. var value;
  17183. if (!(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0))
  17184. value = number.value;
  17185. else if (number.hasUnit$1("%"))
  17186. value = max * number.value / 100;
  17187. else
  17188. throw H.wrapException(E.SassScriptException$("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".'));
  17189. return J.clamp$2$n(value, 0, max);
  17190. },
  17191. _mixColors: function(color1, color2, weight) {
  17192. var weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
  17193. normalizedWeight = weightScale * 2 - 1,
  17194. t1 = color1.alpha,
  17195. t2 = color2.alpha,
  17196. alphaDistance = t1 - t2,
  17197. t3 = normalizedWeight * alphaDistance,
  17198. weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2,
  17199. weight2 = 1 - weight1;
  17200. return K.SassColor$rgb(T.fuzzyRound(color1.get$red() * weight1 + color2.get$red() * weight2), T.fuzzyRound(color1.get$green() * weight1 + color2.get$green() * weight2), T.fuzzyRound(color1.get$blue() * weight1 + color2.get$blue() * weight2), t1 * weightScale + t2 * (1 - weightScale), null);
  17201. },
  17202. _opacify: function($arguments) {
  17203. var t1 = J.getInterceptor$asx($arguments),
  17204. color = t1.$index($arguments, 0).assertColor$1("color");
  17205. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  17206. },
  17207. _transparentize: function($arguments) {
  17208. var t1 = J.getInterceptor$asx($arguments),
  17209. color = t1.$index($arguments, 0).assertColor$1("color");
  17210. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  17211. },
  17212. _function4: function($name, $arguments, callback) {
  17213. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:color");
  17214. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  17215. },
  17216. closure43: function closure43() {
  17217. },
  17218. closure44: function closure44() {
  17219. },
  17220. closure45: function closure45() {
  17221. },
  17222. closure46: function closure46() {
  17223. },
  17224. closure47: function closure47() {
  17225. },
  17226. closure48: function closure48() {
  17227. },
  17228. closure49: function closure49() {
  17229. },
  17230. closure50: function closure50() {
  17231. },
  17232. closure51: function closure51() {
  17233. },
  17234. closure52: function closure52() {
  17235. },
  17236. closure53: function closure53() {
  17237. },
  17238. closure54: function closure54() {
  17239. },
  17240. closure55: function closure55() {
  17241. },
  17242. closure56: function closure56() {
  17243. },
  17244. closure57: function closure57() {
  17245. },
  17246. closure58: function closure58() {
  17247. },
  17248. closure59: function closure59() {
  17249. },
  17250. closure60: function closure60() {
  17251. },
  17252. closure61: function closure61() {
  17253. },
  17254. closure62: function closure62() {
  17255. },
  17256. closure63: function closure63() {
  17257. },
  17258. closure64: function closure64() {
  17259. },
  17260. closure65: function closure65() {
  17261. },
  17262. closure66: function closure66() {
  17263. },
  17264. closure67: function closure67() {
  17265. },
  17266. closure68: function closure68() {
  17267. },
  17268. _closure10: function _closure10() {
  17269. },
  17270. closure69: function closure69() {
  17271. },
  17272. closure94: function closure94() {
  17273. },
  17274. closure95: function closure95() {
  17275. },
  17276. closure96: function closure96() {
  17277. },
  17278. closure97: function closure97() {
  17279. },
  17280. _closure12: function _closure12() {
  17281. },
  17282. closure98: function closure98() {
  17283. },
  17284. closure81: function closure81() {
  17285. },
  17286. closure80: function closure80() {
  17287. },
  17288. closure79: function closure79() {
  17289. },
  17290. closure78: function closure78() {
  17291. },
  17292. closure77: function closure77() {
  17293. },
  17294. closure76: function closure76() {
  17295. },
  17296. closure75: function closure75() {
  17297. },
  17298. closure74: function closure74() {
  17299. },
  17300. closure72: function closure72() {
  17301. },
  17302. closure_getInRange0: function closure_getInRange0(t0) {
  17303. this.keywords = t0;
  17304. },
  17305. _closure9: function _closure9() {
  17306. },
  17307. closure71: function closure71() {
  17308. },
  17309. closure_getScale: function closure_getScale(t0) {
  17310. this.keywords = t0;
  17311. },
  17312. closure_scaleValue: function closure_scaleValue() {
  17313. },
  17314. _closure8: function _closure8() {
  17315. },
  17316. closure70: function closure70() {
  17317. },
  17318. closure_getInRange: function closure_getInRange(t0) {
  17319. this.keywords = t0;
  17320. },
  17321. _closure7: function _closure7() {
  17322. },
  17323. closure73: function closure73() {
  17324. },
  17325. closure_hexString: function closure_hexString() {
  17326. },
  17327. _functionString_closure: function _functionString_closure() {
  17328. },
  17329. _removedColorFunction_closure: function _removedColorFunction_closure(t0, t1, t2) {
  17330. this.name = t0;
  17331. this.argument = t1;
  17332. this.negative = t2;
  17333. },
  17334. _parseChannels_closure: function _parseChannels_closure() {
  17335. },
  17336. _fuzzyRoundIfZero: function(number) {
  17337. if (!(Math.abs(number - 0) < $.$get$epsilon()))
  17338. return number;
  17339. return C.JSNumber_methods.get$isNegative(number) ? -0.0 : 0;
  17340. },
  17341. _coerceToRad: function(number) {
  17342. var error, t1, t2, exception;
  17343. try {
  17344. t1 = type$.JSArray_legacy_String;
  17345. t2 = H.setRuntimeTypeInfo(["rad"], t1);
  17346. t1 = H.setRuntimeTypeInfo([], t1);
  17347. t2 = T.SassNumber$withUnits(number.valueInUnits$2(t2, t1), t1, t2);
  17348. return t2;
  17349. } catch (exception) {
  17350. t1 = H.unwrapException(exception);
  17351. if (t1 instanceof E.SassScriptException) {
  17352. error = t1;
  17353. if (!C.JSString_methods.startsWith$1(error.message, "Incompatible units"))
  17354. throw exception;
  17355. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to be an angle."));
  17356. } else
  17357. throw exception;
  17358. }
  17359. },
  17360. _numberFunction: function($name, transform) {
  17361. var t1 = S.SpanScanner$("@function " + $name + "($number) {", "sass:math");
  17362. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new K._numberFunction_closure(transform), type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  17363. },
  17364. _function1: function($name, $arguments, callback) {
  17365. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:math");
  17366. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  17367. },
  17368. closure25: function closure25() {
  17369. },
  17370. closure89: function closure89() {
  17371. },
  17372. closure24: function closure24() {
  17373. },
  17374. closure23: function closure23() {
  17375. },
  17376. closure22: function closure22() {
  17377. },
  17378. closure26: function closure26() {
  17379. },
  17380. closure87: function closure87() {
  17381. },
  17382. _closure11: function _closure11() {
  17383. },
  17384. closure86: function closure86() {
  17385. },
  17386. closure85: function closure85() {
  17387. },
  17388. closure83: function closure83() {
  17389. },
  17390. closure93: function closure93() {
  17391. },
  17392. closure92: function closure92() {
  17393. },
  17394. closure91: function closure91() {
  17395. },
  17396. closure90: function closure90() {
  17397. },
  17398. closure88: function closure88() {
  17399. },
  17400. closure84: function closure84() {
  17401. },
  17402. closure82: function closure82() {
  17403. },
  17404. closure18: function closure18() {
  17405. },
  17406. closure17: function closure17() {
  17407. },
  17408. closure19: function closure19() {
  17409. },
  17410. closure21: function closure21() {
  17411. },
  17412. closure20: function closure20() {
  17413. },
  17414. _numberFunction_closure: function _numberFunction_closure(t0) {
  17415. this.transform = t0;
  17416. },
  17417. LimitedMapView$safelist: function(_map, safelist, $K, $V) {
  17418. return new K.LimitedMapView(_map, safelist._base.intersection$1(new M.MapKeySet(_map, type$.MapKeySet_legacy_Object)), $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  17419. },
  17420. LimitedMapView$blocklist: function(_map, blocklist, $K, $V) {
  17421. var t2, key,
  17422. t1 = P.LinkedHashSet_LinkedHashSet($K._eval$1("0*"));
  17423. for (t2 = J.get$iterator$ax(_map.get$keys()); t2.moveNext$0();) {
  17424. key = t2.get$current(t2);
  17425. if (!blocklist.contains$1(0, key))
  17426. t1.add$1(0, key);
  17427. }
  17428. return new K.LimitedMapView(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  17429. },
  17430. LimitedMapView: function LimitedMapView(t0, t1, t2) {
  17431. this._limited_map_view$_map = t0;
  17432. this._limited_map_view$_keys = t1;
  17433. this.$ti = t2;
  17434. },
  17435. SassColor$rgb: function(_red, _green, _blue, alpha, originalSpan) {
  17436. var t1 = new K.SassColor(_red, _green, _blue, null, null, null, alpha == null ? 1 : T.fuzzyAssertRange(alpha, 0, 1, "alpha"), originalSpan);
  17437. P.RangeError_checkValueInInterval(t1.get$red(), 0, 255, "red");
  17438. P.RangeError_checkValueInInterval(t1.get$green(), 0, 255, "green");
  17439. P.RangeError_checkValueInInterval(t1.get$blue(), 0, 255, "blue");
  17440. return t1;
  17441. },
  17442. SassColor$hsl: function(hue, saturation, lightness, alpha) {
  17443. var _null = null,
  17444. t1 = C.JSNumber_methods.$mod(hue, 360),
  17445. t2 = T.fuzzyAssertRange(saturation, 0, 100, "saturation"),
  17446. t3 = T.fuzzyAssertRange(lightness, 0, 100, "lightness");
  17447. return new K.SassColor(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : T.fuzzyAssertRange(alpha, 0, 1, "alpha"), _null);
  17448. },
  17449. SassColor: function SassColor(t0, t1, t2, t3, t4, t5, t6, t7) {
  17450. var _ = this;
  17451. _._red = t0;
  17452. _._green = t1;
  17453. _._blue = t2;
  17454. _._hue = t3;
  17455. _._saturation = t4;
  17456. _._lightness = t5;
  17457. _.alpha = t6;
  17458. _.originalSpan = t7;
  17459. },
  17460. UnicodeGlyphSet: function UnicodeGlyphSet() {
  17461. },
  17462. ColorExpression0: function ColorExpression0(t0) {
  17463. this.value = t0;
  17464. },
  17465. _functionString0: function($name, $arguments) {
  17466. return new D.SassString0($name + "(" + J.map$1$1$ax($arguments, new K._functionString_closure0(), type$.legacy_String).join$1(0, ", ") + ")", false);
  17467. },
  17468. _removedColorFunction0: function($name, argument, negative) {
  17469. var t1 = S.SpanScanner$("@function " + $name + "($color, $amount) {", "sass:color");
  17470. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new K._removedColorFunction_closure0($name, argument, negative), type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  17471. },
  17472. _rgb0: function($name, $arguments) {
  17473. var t2, red, green, blue, t3, _null = null,
  17474. t1 = J.getInterceptor$asx($arguments),
  17475. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : _null;
  17476. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  17477. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  17478. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  17479. t2 = alpha == null ? _null : alpha.get$isSpecialNumber();
  17480. t2 = t2 === true;
  17481. } else
  17482. t2 = true;
  17483. else
  17484. t2 = true;
  17485. else
  17486. t2 = true;
  17487. if (t2)
  17488. return K._functionString0($name, $arguments);
  17489. red = t1.$index($arguments, 0).assertNumber$1("red");
  17490. green = t1.$index($arguments, 1).assertNumber$1("green");
  17491. blue = t1.$index($arguments, 2).assertNumber$1("blue");
  17492. t1 = T.fuzzyRound0(K._percentageOrUnitless0(red, 255, "red"));
  17493. t2 = T.fuzzyRound0(K._percentageOrUnitless0(green, 255, "green"));
  17494. t3 = T.fuzzyRound0(K._percentageOrUnitless0(blue, 255, "blue"));
  17495. return K.SassColor$rgb0(t1, t2, t3, alpha == null ? _null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha"), _null);
  17496. },
  17497. _rgbTwoArg0: function($name, $arguments) {
  17498. var first, t2, color,
  17499. t1 = J.getInterceptor$asx($arguments);
  17500. if (t1.$index($arguments, 0).get$isVar())
  17501. return K._functionString0($name, $arguments);
  17502. else if (t1.$index($arguments, 1).get$isVar()) {
  17503. first = t1.$index($arguments, 0);
  17504. if (first instanceof K.SassColor0) {
  17505. t2 = $name + "(" + H.S(first.get$red()) + ", " + H.S(first.get$green()) + ", " + H.S(first.get$blue()) + ", ";
  17506. t1 = t1.$index($arguments, 1);
  17507. t1.toString;
  17508. return new D.SassString0(t2 + N.serializeValue(t1, false, true) + ")", false);
  17509. } else
  17510. return K._functionString0($name, $arguments);
  17511. } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
  17512. color = t1.$index($arguments, 0).assertColor$1("color");
  17513. t2 = $name + "(" + H.S(color.get$red()) + ", " + H.S(color.get$green()) + ", " + H.S(color.get$blue()) + ", ";
  17514. t1 = t1.$index($arguments, 1);
  17515. t1.toString;
  17516. return new D.SassString0(t2 + N.serializeValue(t1, false, true) + ")", false);
  17517. }
  17518. return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(K._percentageOrUnitless0(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
  17519. },
  17520. _hsl0: function($name, $arguments) {
  17521. var t2, hue, saturation, lightness, t3,
  17522. t1 = J.getInterceptor$asx($arguments),
  17523. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  17524. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  17525. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  17526. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  17527. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  17528. t2 = t2 === true;
  17529. } else
  17530. t2 = true;
  17531. else
  17532. t2 = true;
  17533. else
  17534. t2 = true;
  17535. if (t2)
  17536. return K._functionString0($name, $arguments);
  17537. hue = t1.$index($arguments, 0).assertNumber$1("hue");
  17538. saturation = t1.$index($arguments, 1).assertNumber$1("saturation");
  17539. lightness = t1.$index($arguments, 2).assertNumber$1("lightness");
  17540. t1 = J.clamp$2$n(saturation.value, 0, 100);
  17541. t2 = J.clamp$2$n(lightness.value, 0, 100);
  17542. t3 = alpha == null ? null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  17543. return K.SassColor$hsl0(hue.value, t1, t2, t3);
  17544. },
  17545. _parseChannels0: function($name, argumentNames, channels) {
  17546. var isCommaSeparated, isBracketed, buffer, t1, list, maybeSlashSeparated, t2, t3,
  17547. _s17_ = "$channels must be",
  17548. _s32_ = "$channels must be an unbracketed";
  17549. if (channels.get$isVar())
  17550. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value_2));
  17551. isCommaSeparated = channels.get$separator() === C.ListSeparator_comma0;
  17552. isBracketed = channels.get$hasBrackets();
  17553. if (isCommaSeparated || isBracketed) {
  17554. buffer = new P.StringBuffer(_s17_);
  17555. if (isBracketed) {
  17556. buffer._contents = _s32_;
  17557. t1 = _s32_;
  17558. } else
  17559. t1 = _s17_;
  17560. if (isCommaSeparated) {
  17561. t1 += isBracketed ? "," : " a";
  17562. buffer._contents = t1;
  17563. t1 = buffer._contents = t1 + " space-separated";
  17564. }
  17565. buffer._contents = t1 + " list.";
  17566. throw H.wrapException(E.SassScriptException$0(buffer.toString$0(0)));
  17567. }
  17568. list = channels.get$asList();
  17569. t1 = list.length;
  17570. if (t1 > 3)
  17571. throw H.wrapException(E.SassScriptException$0("Only 3 elements allowed, but " + t1 + " were passed."));
  17572. else if (t1 < 3) {
  17573. if (!C.JSArray_methods.any$1(list, new K._parseChannels_closure0()))
  17574. if (list.length !== 0) {
  17575. t1 = C.JSArray_methods.get$last(list);
  17576. if (t1 instanceof D.SassString0)
  17577. if (t1.hasQuotes) {
  17578. t1 = t1.text;
  17579. t1 = B.startsWithIgnoreCase0(t1, "var(") && J.contains$1$asx(t1, "/");
  17580. } else
  17581. t1 = false;
  17582. else
  17583. t1 = false;
  17584. } else
  17585. t1 = false;
  17586. else
  17587. t1 = true;
  17588. if (t1)
  17589. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value_2));
  17590. else
  17591. throw H.wrapException(E.SassScriptException$0("Missing element " + argumentNames[list.length] + "."));
  17592. }
  17593. maybeSlashSeparated = list[2];
  17594. if (maybeSlashSeparated instanceof T.SassNumber0 && maybeSlashSeparated.asSlash != null) {
  17595. t1 = list[0];
  17596. t2 = list[1];
  17597. t3 = maybeSlashSeparated.asSlash;
  17598. return H.setRuntimeTypeInfo([t1, t2, t3.item1, t3.item2], type$.JSArray_legacy_Value_2);
  17599. } else if (maybeSlashSeparated instanceof D.SassString0 && !maybeSlashSeparated.hasQuotes && J.contains$1$asx(maybeSlashSeparated.text, "/"))
  17600. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value_2));
  17601. else
  17602. return list;
  17603. },
  17604. _percentageOrUnitless0: function(number, max, $name) {
  17605. var value;
  17606. if (!(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0))
  17607. value = number.value;
  17608. else if (number.hasUnit$1("%"))
  17609. value = max * number.value / 100;
  17610. else
  17611. throw H.wrapException(E.SassScriptException$0("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".'));
  17612. return J.clamp$2$n(value, 0, max);
  17613. },
  17614. _mixColors0: function(color1, color2, weight) {
  17615. var weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
  17616. normalizedWeight = weightScale * 2 - 1,
  17617. t1 = color1.alpha,
  17618. t2 = color2.alpha,
  17619. alphaDistance = t1 - t2,
  17620. t3 = normalizedWeight * alphaDistance,
  17621. weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2,
  17622. weight2 = 1 - weight1;
  17623. return K.SassColor$rgb0(T.fuzzyRound0(color1.get$red() * weight1 + color2.get$red() * weight2), T.fuzzyRound0(color1.get$green() * weight1 + color2.get$green() * weight2), T.fuzzyRound0(color1.get$blue() * weight1 + color2.get$blue() * weight2), t1 * weightScale + t2 * (1 - weightScale), null);
  17624. },
  17625. _opacify0: function($arguments) {
  17626. var t1 = J.getInterceptor$asx($arguments),
  17627. color = t1.$index($arguments, 0).assertColor$1("color");
  17628. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  17629. },
  17630. _transparentize0: function($arguments) {
  17631. var t1 = J.getInterceptor$asx($arguments),
  17632. color = t1.$index($arguments, 0).assertColor$1("color");
  17633. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  17634. },
  17635. _function11: function($name, $arguments, callback) {
  17636. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:color");
  17637. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  17638. },
  17639. closure149: function closure149() {
  17640. },
  17641. closure150: function closure150() {
  17642. },
  17643. closure151: function closure151() {
  17644. },
  17645. closure152: function closure152() {
  17646. },
  17647. closure153: function closure153() {
  17648. },
  17649. closure154: function closure154() {
  17650. },
  17651. closure155: function closure155() {
  17652. },
  17653. closure156: function closure156() {
  17654. },
  17655. closure157: function closure157() {
  17656. },
  17657. closure158: function closure158() {
  17658. },
  17659. closure159: function closure159() {
  17660. },
  17661. closure160: function closure160() {
  17662. },
  17663. closure161: function closure161() {
  17664. },
  17665. closure162: function closure162() {
  17666. },
  17667. closure163: function closure163() {
  17668. },
  17669. closure164: function closure164() {
  17670. },
  17671. closure165: function closure165() {
  17672. },
  17673. closure166: function closure166() {
  17674. },
  17675. closure167: function closure167() {
  17676. },
  17677. closure168: function closure168() {
  17678. },
  17679. closure169: function closure169() {
  17680. },
  17681. closure170: function closure170() {
  17682. },
  17683. closure171: function closure171() {
  17684. },
  17685. closure172: function closure172() {
  17686. },
  17687. closure173: function closure173() {
  17688. },
  17689. closure174: function closure174() {
  17690. },
  17691. _closure24: function _closure24() {
  17692. },
  17693. closure175: function closure175() {
  17694. },
  17695. closure200: function closure200() {
  17696. },
  17697. closure201: function closure201() {
  17698. },
  17699. closure202: function closure202() {
  17700. },
  17701. closure203: function closure203() {
  17702. },
  17703. _closure26: function _closure26() {
  17704. },
  17705. closure204: function closure204() {
  17706. },
  17707. closure187: function closure187() {
  17708. },
  17709. closure186: function closure186() {
  17710. },
  17711. closure185: function closure185() {
  17712. },
  17713. closure184: function closure184() {
  17714. },
  17715. closure183: function closure183() {
  17716. },
  17717. closure182: function closure182() {
  17718. },
  17719. closure181: function closure181() {
  17720. },
  17721. closure180: function closure180() {
  17722. },
  17723. closure178: function closure178() {
  17724. },
  17725. closure_getInRange2: function closure_getInRange2(t0) {
  17726. this.keywords = t0;
  17727. },
  17728. _closure23: function _closure23() {
  17729. },
  17730. closure177: function closure177() {
  17731. },
  17732. closure_getScale0: function closure_getScale0(t0) {
  17733. this.keywords = t0;
  17734. },
  17735. closure_scaleValue0: function closure_scaleValue0() {
  17736. },
  17737. _closure22: function _closure22() {
  17738. },
  17739. closure176: function closure176() {
  17740. },
  17741. closure_getInRange1: function closure_getInRange1(t0) {
  17742. this.keywords = t0;
  17743. },
  17744. _closure21: function _closure21() {
  17745. },
  17746. closure179: function closure179() {
  17747. },
  17748. closure_hexString0: function closure_hexString0() {
  17749. },
  17750. _functionString_closure0: function _functionString_closure0() {
  17751. },
  17752. _removedColorFunction_closure0: function _removedColorFunction_closure0(t0, t1, t2) {
  17753. this.name = t0;
  17754. this.argument = t1;
  17755. this.negative = t2;
  17756. },
  17757. _parseChannels_closure0: function _parseChannels_closure0() {
  17758. },
  17759. _NodeSassColor: function _NodeSassColor() {
  17760. },
  17761. closure235: function closure235() {
  17762. },
  17763. closure236: function closure236() {
  17764. },
  17765. closure237: function closure237() {
  17766. },
  17767. closure238: function closure238() {
  17768. },
  17769. closure239: function closure239() {
  17770. },
  17771. closure240: function closure240() {
  17772. },
  17773. closure241: function closure241() {
  17774. },
  17775. closure242: function closure242() {
  17776. },
  17777. closure243: function closure243() {
  17778. },
  17779. closure244: function closure244() {
  17780. },
  17781. SassColor$rgb0: function(_red, _green, _blue, alpha, originalSpan) {
  17782. var t1 = new K.SassColor0(_red, _green, _blue, null, null, null, alpha == null ? 1 : T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), originalSpan);
  17783. P.RangeError_checkValueInInterval(t1.get$red(), 0, 255, "red");
  17784. P.RangeError_checkValueInInterval(t1.get$green(), 0, 255, "green");
  17785. P.RangeError_checkValueInInterval(t1.get$blue(), 0, 255, "blue");
  17786. return t1;
  17787. },
  17788. SassColor$hsl0: function(hue, saturation, lightness, alpha) {
  17789. var _null = null,
  17790. t1 = C.JSNumber_methods.$mod(hue, 360),
  17791. t2 = T.fuzzyAssertRange0(saturation, 0, 100, "saturation"),
  17792. t3 = T.fuzzyAssertRange0(lightness, 0, 100, "lightness");
  17793. return new K.SassColor0(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), _null);
  17794. },
  17795. SassColor0: function SassColor0(t0, t1, t2, t3, t4, t5, t6, t7) {
  17796. var _ = this;
  17797. _._color1$_red = t0;
  17798. _._color1$_green = t1;
  17799. _._color1$_blue = t2;
  17800. _._color1$_hue = t3;
  17801. _._color1$_saturation = t4;
  17802. _._color1$_lightness = t5;
  17803. _.alpha = t6;
  17804. _.originalSpan = t7;
  17805. },
  17806. LimitedMapView$safelist0: function(_map, safelist, $K, $V) {
  17807. return new K.LimitedMapView0(_map, safelist._base.intersection$1(new M.MapKeySet(_map, type$.MapKeySet_legacy_Object)), $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  17808. },
  17809. LimitedMapView$blocklist0: function(_map, blocklist, $K, $V) {
  17810. var t2, key,
  17811. t1 = P.LinkedHashSet_LinkedHashSet($K._eval$1("0*"));
  17812. for (t2 = J.get$iterator$ax(_map.get$keys()); t2.moveNext$0();) {
  17813. key = t2.get$current(t2);
  17814. if (!blocklist.contains$1(0, key))
  17815. t1.add$1(0, key);
  17816. }
  17817. return new K.LimitedMapView0(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  17818. },
  17819. LimitedMapView0: function LimitedMapView0(t0, t1, t2) {
  17820. this._limited_map_view0$_map = t0;
  17821. this._limited_map_view0$_keys = t1;
  17822. this.$ti = t2;
  17823. },
  17824. _fuzzyRoundIfZero0: function(number) {
  17825. if (!(Math.abs(number - 0) < $.$get$epsilon0()))
  17826. return number;
  17827. return C.JSNumber_methods.get$isNegative(number) ? -0.0 : 0;
  17828. },
  17829. _coerceToRad0: function(number) {
  17830. var error, t1, t2, exception;
  17831. try {
  17832. t1 = type$.JSArray_legacy_String;
  17833. t2 = H.setRuntimeTypeInfo(["rad"], t1);
  17834. t1 = H.setRuntimeTypeInfo([], t1);
  17835. t2 = T.SassNumber$withUnits0(number.valueInUnits$2(t2, t1), t1, t2);
  17836. return t2;
  17837. } catch (exception) {
  17838. t1 = H.unwrapException(exception);
  17839. if (t1 instanceof E.SassScriptException0) {
  17840. error = t1;
  17841. if (!C.JSString_methods.startsWith$1(error.message, "Incompatible units"))
  17842. throw exception;
  17843. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to be an angle."));
  17844. } else
  17845. throw exception;
  17846. }
  17847. },
  17848. _numberFunction0: function($name, transform) {
  17849. var t1 = S.SpanScanner$("@function " + $name + "($number) {", "sass:math");
  17850. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new K._numberFunction_closure0(transform), type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  17851. },
  17852. _function8: function($name, $arguments, callback) {
  17853. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:math");
  17854. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  17855. },
  17856. closure131: function closure131() {
  17857. },
  17858. closure195: function closure195() {
  17859. },
  17860. closure130: function closure130() {
  17861. },
  17862. closure129: function closure129() {
  17863. },
  17864. closure128: function closure128() {
  17865. },
  17866. closure132: function closure132() {
  17867. },
  17868. closure193: function closure193() {
  17869. },
  17870. _closure25: function _closure25() {
  17871. },
  17872. closure192: function closure192() {
  17873. },
  17874. closure191: function closure191() {
  17875. },
  17876. closure189: function closure189() {
  17877. },
  17878. closure199: function closure199() {
  17879. },
  17880. closure198: function closure198() {
  17881. },
  17882. closure197: function closure197() {
  17883. },
  17884. closure196: function closure196() {
  17885. },
  17886. closure194: function closure194() {
  17887. },
  17888. closure190: function closure190() {
  17889. },
  17890. closure188: function closure188() {
  17891. },
  17892. closure124: function closure124() {
  17893. },
  17894. closure123: function closure123() {
  17895. },
  17896. closure125: function closure125() {
  17897. },
  17898. closure127: function closure127() {
  17899. },
  17900. closure126: function closure126() {
  17901. },
  17902. _numberFunction_closure0: function _numberFunction_closure0(t0) {
  17903. this.transform = t0;
  17904. }
  17905. },
  17906. R = {ModifiableCssComment: function ModifiableCssComment(t0, t1) {
  17907. var _ = this;
  17908. _.text = t0;
  17909. _.span = t1;
  17910. _._indexInParent = _._parent = null;
  17911. _.isGroupEnd = false;
  17912. },
  17913. ImportCache$: function(importers, loadPaths, logger) {
  17914. var t1 = R.ImportCache__toImporters(importers, loadPaths, null),
  17915. t2 = logger == null ? C.StderrLogger_false : logger,
  17916. t3 = type$.legacy_Uri;
  17917. return new R.ImportCache(t1, t2, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Stylesheet_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_ImporterResult_2));
  17918. },
  17919. ImportCache__toImporters: function(importers, loadPaths, packageResolver) {
  17920. var _i, t2, t3, path, _null = null,
  17921. sassPath = H._asStringS(J.get$env$x(self.process).SASS_PATH),
  17922. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Importer);
  17923. for (_i = 0; false; ++_i)
  17924. t1.push(importers[_i]);
  17925. if (loadPaths != null)
  17926. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  17927. t3 = t2.get$current(t2);
  17928. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(t3, _null, _null, _null, _null, _null, _null)));
  17929. }
  17930. if (sassPath != null) {
  17931. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  17932. t3 = t2.length;
  17933. _i = 0;
  17934. for (; _i < t3; ++_i) {
  17935. path = t2[_i];
  17936. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(path, _null, _null, _null, _null, _null, _null)));
  17937. }
  17938. }
  17939. return t1;
  17940. },
  17941. ImportCache: function ImportCache(t0, t1, t2, t3, t4) {
  17942. var _ = this;
  17943. _._importers = t0;
  17944. _._logger = t1;
  17945. _._canonicalizeCache = t2;
  17946. _._importCache = t3;
  17947. _._resultsCache = t4;
  17948. },
  17949. ImportCache_canonicalize_closure: function ImportCache_canonicalize_closure(t0, t1, t2) {
  17950. this.$this = t0;
  17951. this.url = t1;
  17952. this.forImport = t2;
  17953. },
  17954. ImportCache__canonicalize_closure: function ImportCache__canonicalize_closure(t0, t1) {
  17955. this.importer = t0;
  17956. this.url = t1;
  17957. },
  17958. ImportCache_importCanonical_closure: function ImportCache_importCanonical_closure(t0, t1, t2, t3) {
  17959. var _ = this;
  17960. _.$this = t0;
  17961. _.importer = t1;
  17962. _.canonicalUrl = t2;
  17963. _.originalUrl = t3;
  17964. },
  17965. ImportCache_humanize_closure: function ImportCache_humanize_closure(t0) {
  17966. this.canonicalUrl = t0;
  17967. },
  17968. ImportCache_humanize_closure0: function ImportCache_humanize_closure0() {
  17969. },
  17970. ImportCache_humanize_closure1: function ImportCache_humanize_closure1() {
  17971. },
  17972. ForwardedModuleView_ifNecessary: function(inner, rule, $T) {
  17973. var t1;
  17974. if (rule.prefix == null)
  17975. if (rule.shownMixinsAndFunctions == null)
  17976. if (rule.shownVariables == null) {
  17977. t1 = rule.hiddenMixinsAndFunctions;
  17978. if (t1 != null) {
  17979. t1 = t1._base;
  17980. t1 = t1.get$isEmpty(t1);
  17981. } else
  17982. t1 = true;
  17983. if (t1) {
  17984. t1 = rule.hiddenVariables;
  17985. if (t1 != null) {
  17986. t1 = t1._base;
  17987. t1 = t1.get$isEmpty(t1);
  17988. } else
  17989. t1 = true;
  17990. } else
  17991. t1 = false;
  17992. } else
  17993. t1 = false;
  17994. else
  17995. t1 = false;
  17996. else
  17997. t1 = false;
  17998. if (t1)
  17999. return inner;
  18000. else
  18001. return R.ForwardedModuleView$(inner, rule, $T._eval$1("0*"));
  18002. },
  18003. ForwardedModuleView$: function(_inner, _rule, $T) {
  18004. var t5, t6,
  18005. t1 = _rule.prefix,
  18006. t2 = _rule.shownVariables,
  18007. t3 = _rule.hiddenVariables,
  18008. t4 = R.ForwardedModuleView__forwardedMap(_inner.get$variables(), t1, t2, t3, type$.legacy_Value);
  18009. t2 = _inner.get$variableNodes() == null ? null : R.ForwardedModuleView__forwardedMap(_inner.get$variableNodes(), t1, t2, t3, type$.legacy_AstNode);
  18010. t3 = _rule.shownMixinsAndFunctions;
  18011. t5 = _rule.hiddenMixinsAndFunctions;
  18012. t6 = $T._eval$1("0*");
  18013. return new R.ForwardedModuleView(_inner, _rule, t4, t2, R.ForwardedModuleView__forwardedMap(_inner.get$functions(_inner), t1, t3, t5, t6), R.ForwardedModuleView__forwardedMap(_inner.get$mixins(), t1, t3, t5, t6), $T._eval$1("ForwardedModuleView<0>"));
  18014. },
  18015. ForwardedModuleView__forwardedMap: function(map, prefix, safelist, blocklist, $V) {
  18016. var t2,
  18017. t1 = prefix == null;
  18018. if (t1)
  18019. if (safelist == null)
  18020. if (blocklist != null) {
  18021. t2 = blocklist._base;
  18022. t2 = t2.get$isEmpty(t2);
  18023. } else
  18024. t2 = true;
  18025. else
  18026. t2 = false;
  18027. else
  18028. t2 = false;
  18029. if (t2)
  18030. return map;
  18031. if (!t1)
  18032. map = new F.PrefixedMapView(map, prefix, $V._eval$1("PrefixedMapView<0*>"));
  18033. if (safelist != null)
  18034. map = K.LimitedMapView$safelist(map, safelist, type$.legacy_String, $V._eval$1("0*"));
  18035. else {
  18036. if (blocklist != null) {
  18037. t1 = blocklist._base;
  18038. t1 = t1.get$isNotEmpty(t1);
  18039. } else
  18040. t1 = false;
  18041. if (t1)
  18042. map = K.LimitedMapView$blocklist(map, blocklist, type$.legacy_String, $V._eval$1("0*"));
  18043. }
  18044. return map;
  18045. },
  18046. ForwardedModuleView: function ForwardedModuleView(t0, t1, t2, t3, t4, t5, t6) {
  18047. var _ = this;
  18048. _._forwarded_view$_inner = t0;
  18049. _._rule = t1;
  18050. _.variables = t2;
  18051. _.variableNodes = t3;
  18052. _.functions = t4;
  18053. _.mixins = t5;
  18054. _.$ti = t6;
  18055. },
  18056. UnprefixedMapView: function UnprefixedMapView(t0, t1, t2) {
  18057. this._unprefixed_map_view$_map = t0;
  18058. this._unprefixed_map_view$_prefix = t1;
  18059. this.$ti = t2;
  18060. },
  18061. _UnprefixedKeys: function _UnprefixedKeys(t0) {
  18062. this._unprefixed_map_view$_view = t0;
  18063. },
  18064. _UnprefixedKeys_iterator_closure: function _UnprefixedKeys_iterator_closure(t0) {
  18065. this.$this = t0;
  18066. },
  18067. _UnprefixedKeys_iterator_closure0: function _UnprefixedKeys_iterator_closure0(t0) {
  18068. this.$this = t0;
  18069. },
  18070. _EvaluateVisitor$: function(functions, importCache, logger, nodeImporter, sourceMap) {
  18071. var t1 = type$.legacy_String,
  18072. t2 = type$.legacy_Uri,
  18073. t3 = type$.legacy_Module_legacy_Callable,
  18074. t4 = type$.legacy_AstNode,
  18075. t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode),
  18076. t6 = logger == null ? C.StderrLogger_false : logger;
  18077. t5 = new R._EvaluateVisitor(importCache, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Callable), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t6, sourceMap, O.Environment$(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true);
  18078. t5._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap(functions, importCache, logger, nodeImporter, sourceMap);
  18079. return t5;
  18080. },
  18081. _ArgumentResults$: function(positional, named, separator, namedNodes, positionalNodes) {
  18082. return new R._ArgumentResults(positional, positionalNodes, named, namedNodes, separator);
  18083. },
  18084. Evaluator: function Evaluator(t0, t1) {
  18085. this._visitor = t0;
  18086. this._importer = t1;
  18087. },
  18088. _EvaluateVisitor: function _EvaluateVisitor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  18089. var _ = this;
  18090. _._evaluate$_importCache = t0;
  18091. _._evaluate$_nodeImporter = t1;
  18092. _._builtInFunctions = t2;
  18093. _._builtInModules = t3;
  18094. _._modules = t4;
  18095. _._moduleNodes = t5;
  18096. _._evaluate$_logger = t6;
  18097. _._sourceMap = t7;
  18098. _._evaluate$_environment = t8;
  18099. _._declarationName = _._evaluate$_parent = _._mediaQueries = _._styleRule = null;
  18100. _._member = "root stylesheet";
  18101. _._importSpan = _._callableNode = null;
  18102. _._inKeyframes = _._atRootExcludingStyleRule = _._inUnknownAtRule = _._inFunction = false;
  18103. _._evaluate$_includedFiles = t9;
  18104. _._activeModules = t10;
  18105. _._stack = t11;
  18106. _._extender = _._outOfOrderImports = _._endOfImports = _._root = _._stylesheet = _._importer = null;
  18107. _._configuration = t12;
  18108. },
  18109. _EvaluateVisitor_closure: function _EvaluateVisitor_closure(t0) {
  18110. this.$this = t0;
  18111. },
  18112. _EvaluateVisitor_closure0: function _EvaluateVisitor_closure0(t0) {
  18113. this.$this = t0;
  18114. },
  18115. _EvaluateVisitor_closure1: function _EvaluateVisitor_closure1(t0) {
  18116. this.$this = t0;
  18117. },
  18118. _EvaluateVisitor_closure2: function _EvaluateVisitor_closure2(t0) {
  18119. this.$this = t0;
  18120. },
  18121. _EvaluateVisitor_closure3: function _EvaluateVisitor_closure3(t0) {
  18122. this.$this = t0;
  18123. },
  18124. _EvaluateVisitor_closure4: function _EvaluateVisitor_closure4(t0) {
  18125. this.$this = t0;
  18126. },
  18127. _EvaluateVisitor_closure5: function _EvaluateVisitor_closure5(t0) {
  18128. this.$this = t0;
  18129. },
  18130. _EvaluateVisitor_closure6: function _EvaluateVisitor_closure6(t0) {
  18131. this.$this = t0;
  18132. },
  18133. _EvaluateVisitor__closure1: function _EvaluateVisitor__closure1(t0, t1, t2) {
  18134. this.$this = t0;
  18135. this.name = t1;
  18136. this.module = t2;
  18137. },
  18138. _EvaluateVisitor_closure7: function _EvaluateVisitor_closure7(t0) {
  18139. this.$this = t0;
  18140. },
  18141. _EvaluateVisitor_closure8: function _EvaluateVisitor_closure8(t0) {
  18142. this.$this = t0;
  18143. },
  18144. _EvaluateVisitor__closure: function _EvaluateVisitor__closure(t0, t1) {
  18145. this.values = t0;
  18146. this.span = t1;
  18147. },
  18148. _EvaluateVisitor__closure0: function _EvaluateVisitor__closure0(t0) {
  18149. this.$this = t0;
  18150. },
  18151. _EvaluateVisitor_run_closure: function _EvaluateVisitor_run_closure(t0, t1, t2) {
  18152. this.$this = t0;
  18153. this.node = t1;
  18154. this.importer = t2;
  18155. },
  18156. _EvaluateVisitor_runExpression_closure: function _EvaluateVisitor_runExpression_closure(t0, t1, t2) {
  18157. this.$this = t0;
  18158. this.importer = t1;
  18159. this.expression = t2;
  18160. },
  18161. _EvaluateVisitor_runExpression__closure: function _EvaluateVisitor_runExpression__closure(t0, t1) {
  18162. this.$this = t0;
  18163. this.expression = t1;
  18164. },
  18165. _EvaluateVisitor_runStatement_closure: function _EvaluateVisitor_runStatement_closure(t0, t1, t2) {
  18166. this.$this = t0;
  18167. this.importer = t1;
  18168. this.statement = t2;
  18169. },
  18170. _EvaluateVisitor_runStatement__closure: function _EvaluateVisitor_runStatement__closure(t0, t1) {
  18171. this.$this = t0;
  18172. this.statement = t1;
  18173. },
  18174. _EvaluateVisitor__withWarnCallback_closure: function _EvaluateVisitor__withWarnCallback_closure(t0) {
  18175. this.$this = t0;
  18176. },
  18177. _EvaluateVisitor__loadModule_closure: function _EvaluateVisitor__loadModule_closure(t0, t1) {
  18178. this.callback = t0;
  18179. this.builtInModule = t1;
  18180. },
  18181. _EvaluateVisitor__loadModule_closure0: function _EvaluateVisitor__loadModule_closure0(t0, t1, t2, t3, t4, t5, t6) {
  18182. var _ = this;
  18183. _.$this = t0;
  18184. _.url = t1;
  18185. _.nodeWithSpan = t2;
  18186. _.baseUrl = t3;
  18187. _.namesInErrors = t4;
  18188. _.configuration = t5;
  18189. _.callback = t6;
  18190. },
  18191. _EvaluateVisitor__execute_closure: function _EvaluateVisitor__execute_closure(t0, t1, t2, t3, t4, t5) {
  18192. var _ = this;
  18193. _._box_0 = t0;
  18194. _.$this = t1;
  18195. _.importer = t2;
  18196. _.stylesheet = t3;
  18197. _.extender = t4;
  18198. _.configuration = t5;
  18199. },
  18200. _EvaluateVisitor__combineCss_closure: function _EvaluateVisitor__combineCss_closure() {
  18201. },
  18202. _EvaluateVisitor__combineCss_closure0: function _EvaluateVisitor__combineCss_closure0(t0) {
  18203. this.selectors = t0;
  18204. },
  18205. _EvaluateVisitor__combineCss_closure1: function _EvaluateVisitor__combineCss_closure1() {
  18206. },
  18207. _EvaluateVisitor__extendModules_closure: function _EvaluateVisitor__extendModules_closure(t0) {
  18208. this.originalSelectors = t0;
  18209. },
  18210. _EvaluateVisitor__extendModules_closure0: function _EvaluateVisitor__extendModules_closure0() {
  18211. },
  18212. _EvaluateVisitor__topologicalModules_visitModule: function _EvaluateVisitor__topologicalModules_visitModule(t0, t1) {
  18213. this.seen = t0;
  18214. this.sorted = t1;
  18215. },
  18216. _EvaluateVisitor_visitAtRootRule_closure: function _EvaluateVisitor_visitAtRootRule_closure(t0, t1) {
  18217. this.$this = t0;
  18218. this.resolved = t1;
  18219. },
  18220. _EvaluateVisitor_visitAtRootRule_closure0: function _EvaluateVisitor_visitAtRootRule_closure0(t0, t1) {
  18221. this.$this = t0;
  18222. this.node = t1;
  18223. },
  18224. _EvaluateVisitor_visitAtRootRule_closure1: function _EvaluateVisitor_visitAtRootRule_closure1(t0, t1) {
  18225. this.$this = t0;
  18226. this.node = t1;
  18227. },
  18228. _EvaluateVisitor__scopeForAtRoot_closure: function _EvaluateVisitor__scopeForAtRoot_closure(t0, t1, t2) {
  18229. this.$this = t0;
  18230. this.newParent = t1;
  18231. this.node = t2;
  18232. },
  18233. _EvaluateVisitor__scopeForAtRoot_closure0: function _EvaluateVisitor__scopeForAtRoot_closure0(t0, t1) {
  18234. this.$this = t0;
  18235. this.innerScope = t1;
  18236. },
  18237. _EvaluateVisitor__scopeForAtRoot_closure1: function _EvaluateVisitor__scopeForAtRoot_closure1(t0, t1) {
  18238. this.$this = t0;
  18239. this.innerScope = t1;
  18240. },
  18241. _EvaluateVisitor__scopeForAtRoot__closure: function _EvaluateVisitor__scopeForAtRoot__closure(t0, t1) {
  18242. this.innerScope = t0;
  18243. this.callback = t1;
  18244. },
  18245. _EvaluateVisitor__scopeForAtRoot_closure2: function _EvaluateVisitor__scopeForAtRoot_closure2(t0, t1) {
  18246. this.$this = t0;
  18247. this.innerScope = t1;
  18248. },
  18249. _EvaluateVisitor__scopeForAtRoot_closure3: function _EvaluateVisitor__scopeForAtRoot_closure3() {
  18250. },
  18251. _EvaluateVisitor__scopeForAtRoot_closure4: function _EvaluateVisitor__scopeForAtRoot_closure4(t0, t1) {
  18252. this.$this = t0;
  18253. this.innerScope = t1;
  18254. },
  18255. _EvaluateVisitor_visitContentRule_closure: function _EvaluateVisitor_visitContentRule_closure(t0, t1) {
  18256. this.$this = t0;
  18257. this.content = t1;
  18258. },
  18259. _EvaluateVisitor_visitDeclaration_closure: function _EvaluateVisitor_visitDeclaration_closure(t0, t1) {
  18260. this.$this = t0;
  18261. this.node = t1;
  18262. },
  18263. _EvaluateVisitor_visitEachRule_closure: function _EvaluateVisitor_visitEachRule_closure(t0, t1, t2) {
  18264. this.$this = t0;
  18265. this.node = t1;
  18266. this.nodeWithSpan = t2;
  18267. },
  18268. _EvaluateVisitor_visitEachRule_closure0: function _EvaluateVisitor_visitEachRule_closure0(t0, t1, t2) {
  18269. this.$this = t0;
  18270. this.node = t1;
  18271. this.nodeWithSpan = t2;
  18272. },
  18273. _EvaluateVisitor_visitEachRule_closure1: function _EvaluateVisitor_visitEachRule_closure1(t0, t1, t2, t3) {
  18274. var _ = this;
  18275. _.$this = t0;
  18276. _.list = t1;
  18277. _.setVariables = t2;
  18278. _.node = t3;
  18279. },
  18280. _EvaluateVisitor_visitEachRule__closure: function _EvaluateVisitor_visitEachRule__closure(t0, t1, t2) {
  18281. this.$this = t0;
  18282. this.setVariables = t1;
  18283. this.node = t2;
  18284. },
  18285. _EvaluateVisitor_visitEachRule___closure: function _EvaluateVisitor_visitEachRule___closure(t0) {
  18286. this.$this = t0;
  18287. },
  18288. _EvaluateVisitor_visitExtendRule_closure: function _EvaluateVisitor_visitExtendRule_closure(t0, t1) {
  18289. this.$this = t0;
  18290. this.targetText = t1;
  18291. },
  18292. _EvaluateVisitor_visitAtRule_closure: function _EvaluateVisitor_visitAtRule_closure(t0, t1) {
  18293. this.$this = t0;
  18294. this.node = t1;
  18295. },
  18296. _EvaluateVisitor_visitAtRule__closure: function _EvaluateVisitor_visitAtRule__closure(t0, t1) {
  18297. this.$this = t0;
  18298. this.node = t1;
  18299. },
  18300. _EvaluateVisitor_visitAtRule_closure0: function _EvaluateVisitor_visitAtRule_closure0() {
  18301. },
  18302. _EvaluateVisitor_visitForRule_closure: function _EvaluateVisitor_visitForRule_closure(t0, t1) {
  18303. this.$this = t0;
  18304. this.node = t1;
  18305. },
  18306. _EvaluateVisitor_visitForRule_closure0: function _EvaluateVisitor_visitForRule_closure0(t0, t1) {
  18307. this.$this = t0;
  18308. this.node = t1;
  18309. },
  18310. _EvaluateVisitor_visitForRule_closure1: function _EvaluateVisitor_visitForRule_closure1(t0, t1) {
  18311. this.fromNumber = t0;
  18312. this.toNumber = t1;
  18313. },
  18314. _EvaluateVisitor_visitForRule_closure2: function _EvaluateVisitor_visitForRule_closure2(t0) {
  18315. this.toNumber = t0;
  18316. },
  18317. _EvaluateVisitor_visitForRule_closure3: function _EvaluateVisitor_visitForRule_closure3(t0, t1, t2, t3, t4) {
  18318. var _ = this;
  18319. _._box_0 = t0;
  18320. _.$this = t1;
  18321. _.node = t2;
  18322. _.from = t3;
  18323. _.direction = t4;
  18324. },
  18325. _EvaluateVisitor_visitForRule__closure: function _EvaluateVisitor_visitForRule__closure(t0) {
  18326. this.$this = t0;
  18327. },
  18328. _EvaluateVisitor_visitForwardRule_closure: function _EvaluateVisitor_visitForwardRule_closure(t0, t1) {
  18329. this.$this = t0;
  18330. this.node = t1;
  18331. },
  18332. _EvaluateVisitor_visitForwardRule_closure0: function _EvaluateVisitor_visitForwardRule_closure0(t0, t1) {
  18333. this.$this = t0;
  18334. this.node = t1;
  18335. },
  18336. _EvaluateVisitor__assertConfigurationIsEmpty_closure: function _EvaluateVisitor__assertConfigurationIsEmpty_closure(t0, t1, t2) {
  18337. this.$this = t0;
  18338. this.only = t1;
  18339. this.nameInError = t2;
  18340. },
  18341. _EvaluateVisitor_visitIfRule_closure: function _EvaluateVisitor_visitIfRule_closure(t0, t1) {
  18342. this._box_0 = t0;
  18343. this.$this = t1;
  18344. },
  18345. _EvaluateVisitor_visitIfRule__closure: function _EvaluateVisitor_visitIfRule__closure(t0) {
  18346. this.$this = t0;
  18347. },
  18348. _EvaluateVisitor__visitDynamicImport_closure: function _EvaluateVisitor__visitDynamicImport_closure(t0, t1) {
  18349. this.$this = t0;
  18350. this.$import = t1;
  18351. },
  18352. _EvaluateVisitor__visitDynamicImport__closure: function _EvaluateVisitor__visitDynamicImport__closure(t0, t1, t2, t3, t4) {
  18353. var _ = this;
  18354. _._box_0 = t0;
  18355. _.$this = t1;
  18356. _.importer = t2;
  18357. _.stylesheet = t3;
  18358. _.environment = t4;
  18359. },
  18360. _EvaluateVisitor_visitIncludeRule_closure: function _EvaluateVisitor_visitIncludeRule_closure(t0, t1) {
  18361. this.$this = t0;
  18362. this.node = t1;
  18363. },
  18364. _EvaluateVisitor_visitIncludeRule_closure0: function _EvaluateVisitor_visitIncludeRule_closure0(t0) {
  18365. this.node = t0;
  18366. },
  18367. _EvaluateVisitor_visitIncludeRule_closure1: function _EvaluateVisitor_visitIncludeRule_closure1(t0, t1, t2, t3) {
  18368. var _ = this;
  18369. _.$this = t0;
  18370. _.contentCallable = t1;
  18371. _.mixin = t2;
  18372. _.nodeWithSpan = t3;
  18373. },
  18374. _EvaluateVisitor_visitIncludeRule__closure: function _EvaluateVisitor_visitIncludeRule__closure(t0, t1, t2) {
  18375. this.$this = t0;
  18376. this.mixin = t1;
  18377. this.nodeWithSpan = t2;
  18378. },
  18379. _EvaluateVisitor_visitIncludeRule___closure: function _EvaluateVisitor_visitIncludeRule___closure(t0, t1, t2) {
  18380. this.$this = t0;
  18381. this.mixin = t1;
  18382. this.nodeWithSpan = t2;
  18383. },
  18384. _EvaluateVisitor_visitIncludeRule____closure: function _EvaluateVisitor_visitIncludeRule____closure(t0, t1) {
  18385. this.$this = t0;
  18386. this.statement = t1;
  18387. },
  18388. _EvaluateVisitor_visitMediaRule_closure: function _EvaluateVisitor_visitMediaRule_closure(t0, t1, t2, t3) {
  18389. var _ = this;
  18390. _.$this = t0;
  18391. _.mergedQueries = t1;
  18392. _.queries = t2;
  18393. _.node = t3;
  18394. },
  18395. _EvaluateVisitor_visitMediaRule__closure: function _EvaluateVisitor_visitMediaRule__closure(t0, t1) {
  18396. this.$this = t0;
  18397. this.node = t1;
  18398. },
  18399. _EvaluateVisitor_visitMediaRule___closure: function _EvaluateVisitor_visitMediaRule___closure(t0, t1) {
  18400. this.$this = t0;
  18401. this.node = t1;
  18402. },
  18403. _EvaluateVisitor_visitMediaRule_closure0: function _EvaluateVisitor_visitMediaRule_closure0(t0) {
  18404. this.mergedQueries = t0;
  18405. },
  18406. _EvaluateVisitor__visitMediaQueries_closure: function _EvaluateVisitor__visitMediaQueries_closure(t0, t1) {
  18407. this.$this = t0;
  18408. this.resolved = t1;
  18409. },
  18410. _EvaluateVisitor_visitStyleRule_closure: function _EvaluateVisitor_visitStyleRule_closure(t0, t1) {
  18411. this.$this = t0;
  18412. this.selectorText = t1;
  18413. },
  18414. _EvaluateVisitor_visitStyleRule_closure0: function _EvaluateVisitor_visitStyleRule_closure0(t0, t1) {
  18415. this.$this = t0;
  18416. this.node = t1;
  18417. },
  18418. _EvaluateVisitor_visitStyleRule_closure1: function _EvaluateVisitor_visitStyleRule_closure1() {
  18419. },
  18420. _EvaluateVisitor_visitStyleRule_closure2: function _EvaluateVisitor_visitStyleRule_closure2(t0, t1) {
  18421. this.$this = t0;
  18422. this.selectorText = t1;
  18423. },
  18424. _EvaluateVisitor_visitStyleRule_closure3: function _EvaluateVisitor_visitStyleRule_closure3(t0, t1) {
  18425. this._box_0 = t0;
  18426. this.$this = t1;
  18427. },
  18428. _EvaluateVisitor_visitStyleRule_closure4: function _EvaluateVisitor_visitStyleRule_closure4(t0, t1, t2) {
  18429. this.$this = t0;
  18430. this.rule = t1;
  18431. this.node = t2;
  18432. },
  18433. _EvaluateVisitor_visitStyleRule__closure: function _EvaluateVisitor_visitStyleRule__closure(t0, t1) {
  18434. this.$this = t0;
  18435. this.node = t1;
  18436. },
  18437. _EvaluateVisitor_visitStyleRule_closure5: function _EvaluateVisitor_visitStyleRule_closure5() {
  18438. },
  18439. _EvaluateVisitor_visitSupportsRule_closure: function _EvaluateVisitor_visitSupportsRule_closure(t0, t1) {
  18440. this.$this = t0;
  18441. this.node = t1;
  18442. },
  18443. _EvaluateVisitor_visitSupportsRule__closure: function _EvaluateVisitor_visitSupportsRule__closure(t0, t1) {
  18444. this.$this = t0;
  18445. this.node = t1;
  18446. },
  18447. _EvaluateVisitor_visitSupportsRule_closure0: function _EvaluateVisitor_visitSupportsRule_closure0() {
  18448. },
  18449. _EvaluateVisitor_visitVariableDeclaration_closure: function _EvaluateVisitor_visitVariableDeclaration_closure(t0, t1, t2) {
  18450. this.$this = t0;
  18451. this.node = t1;
  18452. this.override = t2;
  18453. },
  18454. _EvaluateVisitor_visitVariableDeclaration_closure0: function _EvaluateVisitor_visitVariableDeclaration_closure0(t0, t1) {
  18455. this.$this = t0;
  18456. this.node = t1;
  18457. },
  18458. _EvaluateVisitor_visitVariableDeclaration_closure1: function _EvaluateVisitor_visitVariableDeclaration_closure1(t0, t1, t2) {
  18459. this.$this = t0;
  18460. this.node = t1;
  18461. this.value = t2;
  18462. },
  18463. _EvaluateVisitor_visitUseRule_closure: function _EvaluateVisitor_visitUseRule_closure(t0, t1) {
  18464. this.$this = t0;
  18465. this.node = t1;
  18466. },
  18467. _EvaluateVisitor_visitWarnRule_closure: function _EvaluateVisitor_visitWarnRule_closure(t0, t1) {
  18468. this.$this = t0;
  18469. this.node = t1;
  18470. },
  18471. _EvaluateVisitor_visitWhileRule_closure: function _EvaluateVisitor_visitWhileRule_closure(t0, t1) {
  18472. this.$this = t0;
  18473. this.node = t1;
  18474. },
  18475. _EvaluateVisitor_visitWhileRule__closure: function _EvaluateVisitor_visitWhileRule__closure(t0) {
  18476. this.$this = t0;
  18477. },
  18478. _EvaluateVisitor_visitBinaryOperationExpression_closure: function _EvaluateVisitor_visitBinaryOperationExpression_closure(t0, t1) {
  18479. this.$this = t0;
  18480. this.node = t1;
  18481. },
  18482. _EvaluateVisitor_visitVariableExpression_closure: function _EvaluateVisitor_visitVariableExpression_closure(t0, t1) {
  18483. this.$this = t0;
  18484. this.node = t1;
  18485. },
  18486. _EvaluateVisitor_visitListExpression_closure: function _EvaluateVisitor_visitListExpression_closure(t0) {
  18487. this.$this = t0;
  18488. },
  18489. _EvaluateVisitor_visitFunctionExpression_closure: function _EvaluateVisitor_visitFunctionExpression_closure(t0, t1, t2) {
  18490. this.$this = t0;
  18491. this.node = t1;
  18492. this.plainName = t2;
  18493. },
  18494. _EvaluateVisitor_visitFunctionExpression_closure0: function _EvaluateVisitor_visitFunctionExpression_closure0(t0, t1, t2) {
  18495. this._box_0 = t0;
  18496. this.$this = t1;
  18497. this.node = t2;
  18498. },
  18499. _EvaluateVisitor__runUserDefinedCallable_closure: function _EvaluateVisitor__runUserDefinedCallable_closure(t0, t1, t2, t3, t4) {
  18500. var _ = this;
  18501. _.$this = t0;
  18502. _.callable = t1;
  18503. _.evaluated = t2;
  18504. _.nodeWithSpan = t3;
  18505. _.run = t4;
  18506. },
  18507. _EvaluateVisitor__runUserDefinedCallable__closure: function _EvaluateVisitor__runUserDefinedCallable__closure(t0, t1, t2, t3, t4) {
  18508. var _ = this;
  18509. _.$this = t0;
  18510. _.evaluated = t1;
  18511. _.callable = t2;
  18512. _.nodeWithSpan = t3;
  18513. _.run = t4;
  18514. },
  18515. _EvaluateVisitor__runUserDefinedCallable___closure: function _EvaluateVisitor__runUserDefinedCallable___closure(t0, t1, t2, t3, t4) {
  18516. var _ = this;
  18517. _.$this = t0;
  18518. _.evaluated = t1;
  18519. _.callable = t2;
  18520. _.nodeWithSpan = t3;
  18521. _.run = t4;
  18522. },
  18523. _EvaluateVisitor__runUserDefinedCallable____closure: function _EvaluateVisitor__runUserDefinedCallable____closure() {
  18524. },
  18525. _EvaluateVisitor__runFunctionCallable_closure: function _EvaluateVisitor__runFunctionCallable_closure(t0, t1) {
  18526. this.$this = t0;
  18527. this.callable = t1;
  18528. },
  18529. _EvaluateVisitor__runBuiltInCallable_closure: function _EvaluateVisitor__runBuiltInCallable_closure(t0, t1, t2) {
  18530. this.overload = t0;
  18531. this.evaluated = t1;
  18532. this.namedSet = t2;
  18533. },
  18534. _EvaluateVisitor__runBuiltInCallable_closure0: function _EvaluateVisitor__runBuiltInCallable_closure0() {
  18535. },
  18536. _EvaluateVisitor__evaluateArguments_closure: function _EvaluateVisitor__evaluateArguments_closure(t0, t1, t2) {
  18537. this.named = t0;
  18538. this.namedNodes = t1;
  18539. this.restNodeForSpan = t2;
  18540. },
  18541. _EvaluateVisitor__evaluateMacroArguments_closure: function _EvaluateVisitor__evaluateMacroArguments_closure() {
  18542. },
  18543. _EvaluateVisitor__evaluateMacroArguments_closure0: function _EvaluateVisitor__evaluateMacroArguments_closure0() {
  18544. },
  18545. _EvaluateVisitor__evaluateMacroArguments_closure1: function _EvaluateVisitor__evaluateMacroArguments_closure1(t0) {
  18546. this.named = t0;
  18547. },
  18548. _EvaluateVisitor__evaluateMacroArguments_closure2: function _EvaluateVisitor__evaluateMacroArguments_closure2() {
  18549. },
  18550. _EvaluateVisitor__addRestMap_closure: function _EvaluateVisitor__addRestMap_closure(t0) {
  18551. this.T = t0;
  18552. },
  18553. _EvaluateVisitor__addRestMap_closure0: function _EvaluateVisitor__addRestMap_closure0(t0, t1, t2, t3, t4) {
  18554. var _ = this;
  18555. _._box_0 = t0;
  18556. _.$this = t1;
  18557. _.values = t2;
  18558. _.map = t3;
  18559. _.nodeWithSpan = t4;
  18560. },
  18561. _EvaluateVisitor__verifyArguments_closure: function _EvaluateVisitor__verifyArguments_closure(t0, t1, t2) {
  18562. this.$arguments = t0;
  18563. this.positional = t1;
  18564. this.named = t2;
  18565. },
  18566. _EvaluateVisitor_visitStringExpression_closure: function _EvaluateVisitor_visitStringExpression_closure(t0) {
  18567. this.$this = t0;
  18568. },
  18569. _EvaluateVisitor_visitCssAtRule_closure: function _EvaluateVisitor_visitCssAtRule_closure(t0, t1) {
  18570. this.$this = t0;
  18571. this.node = t1;
  18572. },
  18573. _EvaluateVisitor_visitCssAtRule_closure0: function _EvaluateVisitor_visitCssAtRule_closure0() {
  18574. },
  18575. _EvaluateVisitor_visitCssKeyframeBlock_closure: function _EvaluateVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  18576. this.$this = t0;
  18577. this.node = t1;
  18578. },
  18579. _EvaluateVisitor_visitCssKeyframeBlock_closure0: function _EvaluateVisitor_visitCssKeyframeBlock_closure0() {
  18580. },
  18581. _EvaluateVisitor_visitCssMediaRule_closure: function _EvaluateVisitor_visitCssMediaRule_closure(t0, t1, t2) {
  18582. this.$this = t0;
  18583. this.mergedQueries = t1;
  18584. this.node = t2;
  18585. },
  18586. _EvaluateVisitor_visitCssMediaRule__closure: function _EvaluateVisitor_visitCssMediaRule__closure(t0, t1) {
  18587. this.$this = t0;
  18588. this.node = t1;
  18589. },
  18590. _EvaluateVisitor_visitCssMediaRule___closure: function _EvaluateVisitor_visitCssMediaRule___closure(t0, t1) {
  18591. this.$this = t0;
  18592. this.node = t1;
  18593. },
  18594. _EvaluateVisitor_visitCssMediaRule_closure0: function _EvaluateVisitor_visitCssMediaRule_closure0(t0) {
  18595. this.mergedQueries = t0;
  18596. },
  18597. _EvaluateVisitor_visitCssStyleRule_closure: function _EvaluateVisitor_visitCssStyleRule_closure(t0, t1, t2) {
  18598. this.$this = t0;
  18599. this.rule = t1;
  18600. this.node = t2;
  18601. },
  18602. _EvaluateVisitor_visitCssStyleRule__closure: function _EvaluateVisitor_visitCssStyleRule__closure(t0, t1) {
  18603. this.$this = t0;
  18604. this.node = t1;
  18605. },
  18606. _EvaluateVisitor_visitCssStyleRule_closure0: function _EvaluateVisitor_visitCssStyleRule_closure0() {
  18607. },
  18608. _EvaluateVisitor_visitCssSupportsRule_closure: function _EvaluateVisitor_visitCssSupportsRule_closure(t0, t1) {
  18609. this.$this = t0;
  18610. this.node = t1;
  18611. },
  18612. _EvaluateVisitor_visitCssSupportsRule__closure: function _EvaluateVisitor_visitCssSupportsRule__closure(t0, t1) {
  18613. this.$this = t0;
  18614. this.node = t1;
  18615. },
  18616. _EvaluateVisitor_visitCssSupportsRule_closure0: function _EvaluateVisitor_visitCssSupportsRule_closure0() {
  18617. },
  18618. _EvaluateVisitor__performInterpolation_closure: function _EvaluateVisitor__performInterpolation_closure(t0, t1) {
  18619. this.$this = t0;
  18620. this.warnForColor = t1;
  18621. },
  18622. _EvaluateVisitor__serialize_closure: function _EvaluateVisitor__serialize_closure(t0, t1) {
  18623. this.value = t0;
  18624. this.quote = t1;
  18625. },
  18626. _EvaluateVisitor__stackTrace_closure: function _EvaluateVisitor__stackTrace_closure(t0) {
  18627. this.$this = t0;
  18628. },
  18629. _ImportedCssVisitor: function _ImportedCssVisitor(t0) {
  18630. this._visitor = t0;
  18631. },
  18632. _ImportedCssVisitor_visitCssAtRule_closure: function _ImportedCssVisitor_visitCssAtRule_closure() {
  18633. },
  18634. _ImportedCssVisitor_visitCssMediaRule_closure: function _ImportedCssVisitor_visitCssMediaRule_closure(t0) {
  18635. this.hasBeenMerged = t0;
  18636. },
  18637. _ImportedCssVisitor_visitCssStyleRule_closure: function _ImportedCssVisitor_visitCssStyleRule_closure() {
  18638. },
  18639. _ImportedCssVisitor_visitCssSupportsRule_closure: function _ImportedCssVisitor_visitCssSupportsRule_closure() {
  18640. },
  18641. _ArgumentResults: function _ArgumentResults(t0, t1, t2, t3, t4) {
  18642. var _ = this;
  18643. _.positional = t0;
  18644. _.positionalNodes = t1;
  18645. _.named = t2;
  18646. _.namedNodes = t3;
  18647. _.separator = t4;
  18648. },
  18649. _collectToList: function(element, soFar, $T) {
  18650. if (soFar == null)
  18651. soFar = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"));
  18652. J.add$1$ax(soFar, element);
  18653. return soFar;
  18654. },
  18655. _debounceAggregate: function(duration, collect, leading, trailing, $T, $R) {
  18656. var t2, t1 = {};
  18657. t1.soFar = t1.timer = null;
  18658. t1.emittedLatestAsLeading = t1.shouldClose = false;
  18659. t2 = $R._eval$1("0*");
  18660. return new L._StreamTransformer(new R._debounceAggregate_closure(t1, collect, false, duration, true), new R._debounceAggregate_closure0(t1, true), H.instantiate1(L.from_handlers__StreamTransformer__defaultHandleError$closure(), t2), $T._eval$1("@<0*>")._bind$1(t2)._eval$1("_StreamTransformer<1,2>"));
  18661. },
  18662. _debounceAggregate_closure: function _debounceAggregate_closure(t0, t1, t2, t3, t4) {
  18663. var _ = this;
  18664. _._box_0 = t0;
  18665. _.collect = t1;
  18666. _.leading = t2;
  18667. _.duration = t3;
  18668. _.trailing = t4;
  18669. },
  18670. _debounceAggregate__closure: function _debounceAggregate__closure(t0, t1, t2) {
  18671. this._box_0 = t0;
  18672. this.trailing = t1;
  18673. this.sink = t2;
  18674. },
  18675. _debounceAggregate_closure0: function _debounceAggregate_closure0(t0, t1) {
  18676. this._box_0 = t0;
  18677. this.trailing = t1;
  18678. },
  18679. ModifiableCssComment0: function ModifiableCssComment0(t0, t1) {
  18680. var _ = this;
  18681. _.text = t0;
  18682. _.span = t1;
  18683. _._node2$_indexInParent = _._node2$_parent = null;
  18684. _.isGroupEnd = false;
  18685. },
  18686. _EvaluateVisitor$1: function(functions, importCache, logger, nodeImporter, sourceMap) {
  18687. var t6,
  18688. t1 = type$.legacy_String,
  18689. t2 = type$.legacy_Uri,
  18690. t3 = type$.legacy_Module_legacy_Callable_2,
  18691. t4 = type$.legacy_AstNode_2,
  18692. t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode_2);
  18693. if (nodeImporter == null)
  18694. t6 = importCache == null ? R.ImportCache$none(logger) : importCache;
  18695. else
  18696. t6 = null;
  18697. t1 = new R._EvaluateVisitor1(t6, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Callable_2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), C.C_StderrLogger, sourceMap, O.Environment$0(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true0);
  18698. t1._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap1(functions, importCache, logger, nodeImporter, sourceMap);
  18699. return t1;
  18700. },
  18701. _ArgumentResults$1: function(positional, named, separator, namedNodes, positionalNodes) {
  18702. return new R._ArgumentResults1(positional, positionalNodes, named, namedNodes, separator);
  18703. },
  18704. _EvaluateVisitor1: function _EvaluateVisitor1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  18705. var _ = this;
  18706. _._evaluate0$_importCache = t0;
  18707. _._nodeImporter = t1;
  18708. _._evaluate0$_builtInFunctions = t2;
  18709. _._evaluate0$_builtInModules = t3;
  18710. _._evaluate0$_modules = t4;
  18711. _._evaluate0$_moduleNodes = t5;
  18712. _._evaluate0$_logger = t6;
  18713. _._evaluate0$_sourceMap = t7;
  18714. _._evaluate0$_environment = t8;
  18715. _._evaluate0$_declarationName = _._evaluate0$_parent = _._evaluate0$_mediaQueries = _._evaluate0$_styleRule = null;
  18716. _._evaluate0$_member = "root stylesheet";
  18717. _._evaluate0$_importSpan = _._evaluate0$_callableNode = null;
  18718. _._evaluate0$_inKeyframes = _._evaluate0$_atRootExcludingStyleRule = _._evaluate0$_inUnknownAtRule = _._evaluate0$_inFunction = false;
  18719. _._includedFiles = t9;
  18720. _._evaluate0$_activeModules = t10;
  18721. _._evaluate0$_stack = t11;
  18722. _._evaluate0$_extender = _._evaluate0$_outOfOrderImports = _._evaluate0$_endOfImports = _._evaluate0$_root = _._evaluate0$_stylesheet = _._evaluate0$_importer = null;
  18723. _._evaluate0$_configuration = t12;
  18724. },
  18725. _EvaluateVisitor_closure19: function _EvaluateVisitor_closure19(t0) {
  18726. this.$this = t0;
  18727. },
  18728. _EvaluateVisitor_closure20: function _EvaluateVisitor_closure20(t0) {
  18729. this.$this = t0;
  18730. },
  18731. _EvaluateVisitor_closure21: function _EvaluateVisitor_closure21(t0) {
  18732. this.$this = t0;
  18733. },
  18734. _EvaluateVisitor_closure22: function _EvaluateVisitor_closure22(t0) {
  18735. this.$this = t0;
  18736. },
  18737. _EvaluateVisitor_closure23: function _EvaluateVisitor_closure23(t0) {
  18738. this.$this = t0;
  18739. },
  18740. _EvaluateVisitor_closure24: function _EvaluateVisitor_closure24(t0) {
  18741. this.$this = t0;
  18742. },
  18743. _EvaluateVisitor_closure25: function _EvaluateVisitor_closure25(t0) {
  18744. this.$this = t0;
  18745. },
  18746. _EvaluateVisitor_closure26: function _EvaluateVisitor_closure26(t0) {
  18747. this.$this = t0;
  18748. },
  18749. _EvaluateVisitor__closure7: function _EvaluateVisitor__closure7(t0, t1, t2) {
  18750. this.$this = t0;
  18751. this.name = t1;
  18752. this.module = t2;
  18753. },
  18754. _EvaluateVisitor_closure27: function _EvaluateVisitor_closure27(t0) {
  18755. this.$this = t0;
  18756. },
  18757. _EvaluateVisitor_closure28: function _EvaluateVisitor_closure28(t0) {
  18758. this.$this = t0;
  18759. },
  18760. _EvaluateVisitor__closure5: function _EvaluateVisitor__closure5(t0, t1) {
  18761. this.values = t0;
  18762. this.span = t1;
  18763. },
  18764. _EvaluateVisitor__closure6: function _EvaluateVisitor__closure6(t0) {
  18765. this.$this = t0;
  18766. },
  18767. _EvaluateVisitor_run_closure1: function _EvaluateVisitor_run_closure1(t0, t1, t2) {
  18768. this.$this = t0;
  18769. this.node = t1;
  18770. this.importer = t2;
  18771. },
  18772. _EvaluateVisitor__withWarnCallback_closure1: function _EvaluateVisitor__withWarnCallback_closure1(t0) {
  18773. this.$this = t0;
  18774. },
  18775. _EvaluateVisitor__loadModule_closure3: function _EvaluateVisitor__loadModule_closure3(t0, t1) {
  18776. this.callback = t0;
  18777. this.builtInModule = t1;
  18778. },
  18779. _EvaluateVisitor__loadModule_closure4: function _EvaluateVisitor__loadModule_closure4(t0, t1, t2, t3, t4, t5, t6) {
  18780. var _ = this;
  18781. _.$this = t0;
  18782. _.url = t1;
  18783. _.nodeWithSpan = t2;
  18784. _.baseUrl = t3;
  18785. _.namesInErrors = t4;
  18786. _.configuration = t5;
  18787. _.callback = t6;
  18788. },
  18789. _EvaluateVisitor__execute_closure1: function _EvaluateVisitor__execute_closure1(t0, t1, t2, t3, t4, t5) {
  18790. var _ = this;
  18791. _._box_0 = t0;
  18792. _.$this = t1;
  18793. _.importer = t2;
  18794. _.stylesheet = t3;
  18795. _.extender = t4;
  18796. _.configuration = t5;
  18797. },
  18798. _EvaluateVisitor__combineCss_closure5: function _EvaluateVisitor__combineCss_closure5() {
  18799. },
  18800. _EvaluateVisitor__combineCss_closure6: function _EvaluateVisitor__combineCss_closure6(t0) {
  18801. this.selectors = t0;
  18802. },
  18803. _EvaluateVisitor__combineCss_closure7: function _EvaluateVisitor__combineCss_closure7() {
  18804. },
  18805. _EvaluateVisitor__extendModules_closure3: function _EvaluateVisitor__extendModules_closure3(t0) {
  18806. this.originalSelectors = t0;
  18807. },
  18808. _EvaluateVisitor__extendModules_closure4: function _EvaluateVisitor__extendModules_closure4() {
  18809. },
  18810. _EvaluateVisitor__topologicalModules_visitModule1: function _EvaluateVisitor__topologicalModules_visitModule1(t0, t1) {
  18811. this.seen = t0;
  18812. this.sorted = t1;
  18813. },
  18814. _EvaluateVisitor_visitAtRootRule_closure5: function _EvaluateVisitor_visitAtRootRule_closure5(t0, t1) {
  18815. this.$this = t0;
  18816. this.resolved = t1;
  18817. },
  18818. _EvaluateVisitor_visitAtRootRule_closure6: function _EvaluateVisitor_visitAtRootRule_closure6(t0, t1) {
  18819. this.$this = t0;
  18820. this.node = t1;
  18821. },
  18822. _EvaluateVisitor_visitAtRootRule_closure7: function _EvaluateVisitor_visitAtRootRule_closure7(t0, t1) {
  18823. this.$this = t0;
  18824. this.node = t1;
  18825. },
  18826. _EvaluateVisitor__scopeForAtRoot_closure11: function _EvaluateVisitor__scopeForAtRoot_closure11(t0, t1, t2) {
  18827. this.$this = t0;
  18828. this.newParent = t1;
  18829. this.node = t2;
  18830. },
  18831. _EvaluateVisitor__scopeForAtRoot_closure12: function _EvaluateVisitor__scopeForAtRoot_closure12(t0, t1) {
  18832. this.$this = t0;
  18833. this.innerScope = t1;
  18834. },
  18835. _EvaluateVisitor__scopeForAtRoot_closure13: function _EvaluateVisitor__scopeForAtRoot_closure13(t0, t1) {
  18836. this.$this = t0;
  18837. this.innerScope = t1;
  18838. },
  18839. _EvaluateVisitor__scopeForAtRoot__closure1: function _EvaluateVisitor__scopeForAtRoot__closure1(t0, t1) {
  18840. this.innerScope = t0;
  18841. this.callback = t1;
  18842. },
  18843. _EvaluateVisitor__scopeForAtRoot_closure14: function _EvaluateVisitor__scopeForAtRoot_closure14(t0, t1) {
  18844. this.$this = t0;
  18845. this.innerScope = t1;
  18846. },
  18847. _EvaluateVisitor__scopeForAtRoot_closure15: function _EvaluateVisitor__scopeForAtRoot_closure15() {
  18848. },
  18849. _EvaluateVisitor__scopeForAtRoot_closure16: function _EvaluateVisitor__scopeForAtRoot_closure16(t0, t1) {
  18850. this.$this = t0;
  18851. this.innerScope = t1;
  18852. },
  18853. _EvaluateVisitor_visitContentRule_closure1: function _EvaluateVisitor_visitContentRule_closure1(t0, t1) {
  18854. this.$this = t0;
  18855. this.content = t1;
  18856. },
  18857. _EvaluateVisitor_visitDeclaration_closure1: function _EvaluateVisitor_visitDeclaration_closure1(t0, t1) {
  18858. this.$this = t0;
  18859. this.node = t1;
  18860. },
  18861. _EvaluateVisitor_visitEachRule_closure5: function _EvaluateVisitor_visitEachRule_closure5(t0, t1, t2) {
  18862. this.$this = t0;
  18863. this.node = t1;
  18864. this.nodeWithSpan = t2;
  18865. },
  18866. _EvaluateVisitor_visitEachRule_closure6: function _EvaluateVisitor_visitEachRule_closure6(t0, t1, t2) {
  18867. this.$this = t0;
  18868. this.node = t1;
  18869. this.nodeWithSpan = t2;
  18870. },
  18871. _EvaluateVisitor_visitEachRule_closure7: function _EvaluateVisitor_visitEachRule_closure7(t0, t1, t2, t3) {
  18872. var _ = this;
  18873. _.$this = t0;
  18874. _.list = t1;
  18875. _.setVariables = t2;
  18876. _.node = t3;
  18877. },
  18878. _EvaluateVisitor_visitEachRule__closure1: function _EvaluateVisitor_visitEachRule__closure1(t0, t1, t2) {
  18879. this.$this = t0;
  18880. this.setVariables = t1;
  18881. this.node = t2;
  18882. },
  18883. _EvaluateVisitor_visitEachRule___closure1: function _EvaluateVisitor_visitEachRule___closure1(t0) {
  18884. this.$this = t0;
  18885. },
  18886. _EvaluateVisitor_visitExtendRule_closure1: function _EvaluateVisitor_visitExtendRule_closure1(t0, t1) {
  18887. this.$this = t0;
  18888. this.targetText = t1;
  18889. },
  18890. _EvaluateVisitor_visitAtRule_closure3: function _EvaluateVisitor_visitAtRule_closure3(t0, t1) {
  18891. this.$this = t0;
  18892. this.node = t1;
  18893. },
  18894. _EvaluateVisitor_visitAtRule__closure1: function _EvaluateVisitor_visitAtRule__closure1(t0, t1) {
  18895. this.$this = t0;
  18896. this.node = t1;
  18897. },
  18898. _EvaluateVisitor_visitAtRule_closure4: function _EvaluateVisitor_visitAtRule_closure4() {
  18899. },
  18900. _EvaluateVisitor_visitForRule_closure9: function _EvaluateVisitor_visitForRule_closure9(t0, t1) {
  18901. this.$this = t0;
  18902. this.node = t1;
  18903. },
  18904. _EvaluateVisitor_visitForRule_closure10: function _EvaluateVisitor_visitForRule_closure10(t0, t1) {
  18905. this.$this = t0;
  18906. this.node = t1;
  18907. },
  18908. _EvaluateVisitor_visitForRule_closure11: function _EvaluateVisitor_visitForRule_closure11(t0, t1) {
  18909. this.fromNumber = t0;
  18910. this.toNumber = t1;
  18911. },
  18912. _EvaluateVisitor_visitForRule_closure12: function _EvaluateVisitor_visitForRule_closure12(t0) {
  18913. this.toNumber = t0;
  18914. },
  18915. _EvaluateVisitor_visitForRule_closure13: function _EvaluateVisitor_visitForRule_closure13(t0, t1, t2, t3, t4) {
  18916. var _ = this;
  18917. _._box_0 = t0;
  18918. _.$this = t1;
  18919. _.node = t2;
  18920. _.from = t3;
  18921. _.direction = t4;
  18922. },
  18923. _EvaluateVisitor_visitForRule__closure1: function _EvaluateVisitor_visitForRule__closure1(t0) {
  18924. this.$this = t0;
  18925. },
  18926. _EvaluateVisitor_visitForwardRule_closure3: function _EvaluateVisitor_visitForwardRule_closure3(t0, t1) {
  18927. this.$this = t0;
  18928. this.node = t1;
  18929. },
  18930. _EvaluateVisitor_visitForwardRule_closure4: function _EvaluateVisitor_visitForwardRule_closure4(t0, t1) {
  18931. this.$this = t0;
  18932. this.node = t1;
  18933. },
  18934. _EvaluateVisitor__assertConfigurationIsEmpty_closure1: function _EvaluateVisitor__assertConfigurationIsEmpty_closure1(t0, t1, t2) {
  18935. this.$this = t0;
  18936. this.only = t1;
  18937. this.nameInError = t2;
  18938. },
  18939. _EvaluateVisitor_visitIfRule_closure1: function _EvaluateVisitor_visitIfRule_closure1(t0, t1) {
  18940. this._box_0 = t0;
  18941. this.$this = t1;
  18942. },
  18943. _EvaluateVisitor_visitIfRule__closure1: function _EvaluateVisitor_visitIfRule__closure1(t0) {
  18944. this.$this = t0;
  18945. },
  18946. _EvaluateVisitor__visitDynamicImport_closure1: function _EvaluateVisitor__visitDynamicImport_closure1(t0, t1) {
  18947. this.$this = t0;
  18948. this.$import = t1;
  18949. },
  18950. _EvaluateVisitor__visitDynamicImport__closure1: function _EvaluateVisitor__visitDynamicImport__closure1(t0, t1, t2, t3, t4) {
  18951. var _ = this;
  18952. _._box_0 = t0;
  18953. _.$this = t1;
  18954. _.importer = t2;
  18955. _.stylesheet = t3;
  18956. _.environment = t4;
  18957. },
  18958. _EvaluateVisitor_visitIncludeRule_closure5: function _EvaluateVisitor_visitIncludeRule_closure5(t0, t1) {
  18959. this.$this = t0;
  18960. this.node = t1;
  18961. },
  18962. _EvaluateVisitor_visitIncludeRule_closure6: function _EvaluateVisitor_visitIncludeRule_closure6(t0) {
  18963. this.node = t0;
  18964. },
  18965. _EvaluateVisitor_visitIncludeRule_closure7: function _EvaluateVisitor_visitIncludeRule_closure7(t0, t1, t2, t3) {
  18966. var _ = this;
  18967. _.$this = t0;
  18968. _.contentCallable = t1;
  18969. _.mixin = t2;
  18970. _.nodeWithSpan = t3;
  18971. },
  18972. _EvaluateVisitor_visitIncludeRule__closure1: function _EvaluateVisitor_visitIncludeRule__closure1(t0, t1, t2) {
  18973. this.$this = t0;
  18974. this.mixin = t1;
  18975. this.nodeWithSpan = t2;
  18976. },
  18977. _EvaluateVisitor_visitIncludeRule___closure1: function _EvaluateVisitor_visitIncludeRule___closure1(t0, t1, t2) {
  18978. this.$this = t0;
  18979. this.mixin = t1;
  18980. this.nodeWithSpan = t2;
  18981. },
  18982. _EvaluateVisitor_visitIncludeRule____closure1: function _EvaluateVisitor_visitIncludeRule____closure1(t0, t1) {
  18983. this.$this = t0;
  18984. this.statement = t1;
  18985. },
  18986. _EvaluateVisitor_visitMediaRule_closure3: function _EvaluateVisitor_visitMediaRule_closure3(t0, t1, t2, t3) {
  18987. var _ = this;
  18988. _.$this = t0;
  18989. _.mergedQueries = t1;
  18990. _.queries = t2;
  18991. _.node = t3;
  18992. },
  18993. _EvaluateVisitor_visitMediaRule__closure1: function _EvaluateVisitor_visitMediaRule__closure1(t0, t1) {
  18994. this.$this = t0;
  18995. this.node = t1;
  18996. },
  18997. _EvaluateVisitor_visitMediaRule___closure1: function _EvaluateVisitor_visitMediaRule___closure1(t0, t1) {
  18998. this.$this = t0;
  18999. this.node = t1;
  19000. },
  19001. _EvaluateVisitor_visitMediaRule_closure4: function _EvaluateVisitor_visitMediaRule_closure4(t0) {
  19002. this.mergedQueries = t0;
  19003. },
  19004. _EvaluateVisitor__visitMediaQueries_closure1: function _EvaluateVisitor__visitMediaQueries_closure1(t0, t1) {
  19005. this.$this = t0;
  19006. this.resolved = t1;
  19007. },
  19008. _EvaluateVisitor_visitStyleRule_closure13: function _EvaluateVisitor_visitStyleRule_closure13(t0, t1) {
  19009. this.$this = t0;
  19010. this.selectorText = t1;
  19011. },
  19012. _EvaluateVisitor_visitStyleRule_closure14: function _EvaluateVisitor_visitStyleRule_closure14(t0, t1) {
  19013. this.$this = t0;
  19014. this.node = t1;
  19015. },
  19016. _EvaluateVisitor_visitStyleRule_closure15: function _EvaluateVisitor_visitStyleRule_closure15() {
  19017. },
  19018. _EvaluateVisitor_visitStyleRule_closure16: function _EvaluateVisitor_visitStyleRule_closure16(t0, t1) {
  19019. this.$this = t0;
  19020. this.selectorText = t1;
  19021. },
  19022. _EvaluateVisitor_visitStyleRule_closure17: function _EvaluateVisitor_visitStyleRule_closure17(t0, t1) {
  19023. this._box_0 = t0;
  19024. this.$this = t1;
  19025. },
  19026. _EvaluateVisitor_visitStyleRule_closure18: function _EvaluateVisitor_visitStyleRule_closure18(t0, t1, t2) {
  19027. this.$this = t0;
  19028. this.rule = t1;
  19029. this.node = t2;
  19030. },
  19031. _EvaluateVisitor_visitStyleRule__closure1: function _EvaluateVisitor_visitStyleRule__closure1(t0, t1) {
  19032. this.$this = t0;
  19033. this.node = t1;
  19034. },
  19035. _EvaluateVisitor_visitStyleRule_closure19: function _EvaluateVisitor_visitStyleRule_closure19() {
  19036. },
  19037. _EvaluateVisitor_visitSupportsRule_closure3: function _EvaluateVisitor_visitSupportsRule_closure3(t0, t1) {
  19038. this.$this = t0;
  19039. this.node = t1;
  19040. },
  19041. _EvaluateVisitor_visitSupportsRule__closure1: function _EvaluateVisitor_visitSupportsRule__closure1(t0, t1) {
  19042. this.$this = t0;
  19043. this.node = t1;
  19044. },
  19045. _EvaluateVisitor_visitSupportsRule_closure4: function _EvaluateVisitor_visitSupportsRule_closure4() {
  19046. },
  19047. _EvaluateVisitor_visitVariableDeclaration_closure5: function _EvaluateVisitor_visitVariableDeclaration_closure5(t0, t1, t2) {
  19048. this.$this = t0;
  19049. this.node = t1;
  19050. this.override = t2;
  19051. },
  19052. _EvaluateVisitor_visitVariableDeclaration_closure6: function _EvaluateVisitor_visitVariableDeclaration_closure6(t0, t1) {
  19053. this.$this = t0;
  19054. this.node = t1;
  19055. },
  19056. _EvaluateVisitor_visitVariableDeclaration_closure7: function _EvaluateVisitor_visitVariableDeclaration_closure7(t0, t1, t2) {
  19057. this.$this = t0;
  19058. this.node = t1;
  19059. this.value = t2;
  19060. },
  19061. _EvaluateVisitor_visitUseRule_closure1: function _EvaluateVisitor_visitUseRule_closure1(t0, t1) {
  19062. this.$this = t0;
  19063. this.node = t1;
  19064. },
  19065. _EvaluateVisitor_visitWarnRule_closure1: function _EvaluateVisitor_visitWarnRule_closure1(t0, t1) {
  19066. this.$this = t0;
  19067. this.node = t1;
  19068. },
  19069. _EvaluateVisitor_visitWhileRule_closure1: function _EvaluateVisitor_visitWhileRule_closure1(t0, t1) {
  19070. this.$this = t0;
  19071. this.node = t1;
  19072. },
  19073. _EvaluateVisitor_visitWhileRule__closure1: function _EvaluateVisitor_visitWhileRule__closure1(t0) {
  19074. this.$this = t0;
  19075. },
  19076. _EvaluateVisitor_visitBinaryOperationExpression_closure1: function _EvaluateVisitor_visitBinaryOperationExpression_closure1(t0, t1) {
  19077. this.$this = t0;
  19078. this.node = t1;
  19079. },
  19080. _EvaluateVisitor_visitVariableExpression_closure1: function _EvaluateVisitor_visitVariableExpression_closure1(t0, t1) {
  19081. this.$this = t0;
  19082. this.node = t1;
  19083. },
  19084. _EvaluateVisitor_visitListExpression_closure1: function _EvaluateVisitor_visitListExpression_closure1(t0) {
  19085. this.$this = t0;
  19086. },
  19087. _EvaluateVisitor_visitFunctionExpression_closure3: function _EvaluateVisitor_visitFunctionExpression_closure3(t0, t1, t2) {
  19088. this.$this = t0;
  19089. this.node = t1;
  19090. this.plainName = t2;
  19091. },
  19092. _EvaluateVisitor_visitFunctionExpression_closure4: function _EvaluateVisitor_visitFunctionExpression_closure4(t0, t1, t2) {
  19093. this._box_0 = t0;
  19094. this.$this = t1;
  19095. this.node = t2;
  19096. },
  19097. _EvaluateVisitor__runUserDefinedCallable_closure1: function _EvaluateVisitor__runUserDefinedCallable_closure1(t0, t1, t2, t3, t4) {
  19098. var _ = this;
  19099. _.$this = t0;
  19100. _.callable = t1;
  19101. _.evaluated = t2;
  19102. _.nodeWithSpan = t3;
  19103. _.run = t4;
  19104. },
  19105. _EvaluateVisitor__runUserDefinedCallable__closure1: function _EvaluateVisitor__runUserDefinedCallable__closure1(t0, t1, t2, t3, t4) {
  19106. var _ = this;
  19107. _.$this = t0;
  19108. _.evaluated = t1;
  19109. _.callable = t2;
  19110. _.nodeWithSpan = t3;
  19111. _.run = t4;
  19112. },
  19113. _EvaluateVisitor__runUserDefinedCallable___closure1: function _EvaluateVisitor__runUserDefinedCallable___closure1(t0, t1, t2, t3, t4) {
  19114. var _ = this;
  19115. _.$this = t0;
  19116. _.evaluated = t1;
  19117. _.callable = t2;
  19118. _.nodeWithSpan = t3;
  19119. _.run = t4;
  19120. },
  19121. _EvaluateVisitor__runUserDefinedCallable____closure1: function _EvaluateVisitor__runUserDefinedCallable____closure1() {
  19122. },
  19123. _EvaluateVisitor__runFunctionCallable_closure1: function _EvaluateVisitor__runFunctionCallable_closure1(t0, t1) {
  19124. this.$this = t0;
  19125. this.callable = t1;
  19126. },
  19127. _EvaluateVisitor__runBuiltInCallable_closure3: function _EvaluateVisitor__runBuiltInCallable_closure3(t0, t1, t2) {
  19128. this.overload = t0;
  19129. this.evaluated = t1;
  19130. this.namedSet = t2;
  19131. },
  19132. _EvaluateVisitor__runBuiltInCallable_closure4: function _EvaluateVisitor__runBuiltInCallable_closure4() {
  19133. },
  19134. _EvaluateVisitor__evaluateArguments_closure1: function _EvaluateVisitor__evaluateArguments_closure1(t0, t1, t2) {
  19135. this.named = t0;
  19136. this.namedNodes = t1;
  19137. this.restNodeForSpan = t2;
  19138. },
  19139. _EvaluateVisitor__evaluateMacroArguments_closure7: function _EvaluateVisitor__evaluateMacroArguments_closure7() {
  19140. },
  19141. _EvaluateVisitor__evaluateMacroArguments_closure8: function _EvaluateVisitor__evaluateMacroArguments_closure8() {
  19142. },
  19143. _EvaluateVisitor__evaluateMacroArguments_closure9: function _EvaluateVisitor__evaluateMacroArguments_closure9(t0) {
  19144. this.named = t0;
  19145. },
  19146. _EvaluateVisitor__evaluateMacroArguments_closure10: function _EvaluateVisitor__evaluateMacroArguments_closure10() {
  19147. },
  19148. _EvaluateVisitor__addRestMap_closure3: function _EvaluateVisitor__addRestMap_closure3(t0) {
  19149. this.T = t0;
  19150. },
  19151. _EvaluateVisitor__addRestMap_closure4: function _EvaluateVisitor__addRestMap_closure4(t0, t1, t2, t3, t4) {
  19152. var _ = this;
  19153. _._box_0 = t0;
  19154. _.$this = t1;
  19155. _.values = t2;
  19156. _.map = t3;
  19157. _.nodeWithSpan = t4;
  19158. },
  19159. _EvaluateVisitor__verifyArguments_closure1: function _EvaluateVisitor__verifyArguments_closure1(t0, t1, t2) {
  19160. this.$arguments = t0;
  19161. this.positional = t1;
  19162. this.named = t2;
  19163. },
  19164. _EvaluateVisitor_visitStringExpression_closure1: function _EvaluateVisitor_visitStringExpression_closure1(t0) {
  19165. this.$this = t0;
  19166. },
  19167. _EvaluateVisitor_visitCssAtRule_closure3: function _EvaluateVisitor_visitCssAtRule_closure3(t0, t1) {
  19168. this.$this = t0;
  19169. this.node = t1;
  19170. },
  19171. _EvaluateVisitor_visitCssAtRule_closure4: function _EvaluateVisitor_visitCssAtRule_closure4() {
  19172. },
  19173. _EvaluateVisitor_visitCssKeyframeBlock_closure3: function _EvaluateVisitor_visitCssKeyframeBlock_closure3(t0, t1) {
  19174. this.$this = t0;
  19175. this.node = t1;
  19176. },
  19177. _EvaluateVisitor_visitCssKeyframeBlock_closure4: function _EvaluateVisitor_visitCssKeyframeBlock_closure4() {
  19178. },
  19179. _EvaluateVisitor_visitCssMediaRule_closure3: function _EvaluateVisitor_visitCssMediaRule_closure3(t0, t1, t2) {
  19180. this.$this = t0;
  19181. this.mergedQueries = t1;
  19182. this.node = t2;
  19183. },
  19184. _EvaluateVisitor_visitCssMediaRule__closure1: function _EvaluateVisitor_visitCssMediaRule__closure1(t0, t1) {
  19185. this.$this = t0;
  19186. this.node = t1;
  19187. },
  19188. _EvaluateVisitor_visitCssMediaRule___closure1: function _EvaluateVisitor_visitCssMediaRule___closure1(t0, t1) {
  19189. this.$this = t0;
  19190. this.node = t1;
  19191. },
  19192. _EvaluateVisitor_visitCssMediaRule_closure4: function _EvaluateVisitor_visitCssMediaRule_closure4(t0) {
  19193. this.mergedQueries = t0;
  19194. },
  19195. _EvaluateVisitor_visitCssStyleRule_closure3: function _EvaluateVisitor_visitCssStyleRule_closure3(t0, t1, t2) {
  19196. this.$this = t0;
  19197. this.rule = t1;
  19198. this.node = t2;
  19199. },
  19200. _EvaluateVisitor_visitCssStyleRule__closure1: function _EvaluateVisitor_visitCssStyleRule__closure1(t0, t1) {
  19201. this.$this = t0;
  19202. this.node = t1;
  19203. },
  19204. _EvaluateVisitor_visitCssStyleRule_closure4: function _EvaluateVisitor_visitCssStyleRule_closure4() {
  19205. },
  19206. _EvaluateVisitor_visitCssSupportsRule_closure3: function _EvaluateVisitor_visitCssSupportsRule_closure3(t0, t1) {
  19207. this.$this = t0;
  19208. this.node = t1;
  19209. },
  19210. _EvaluateVisitor_visitCssSupportsRule__closure1: function _EvaluateVisitor_visitCssSupportsRule__closure1(t0, t1) {
  19211. this.$this = t0;
  19212. this.node = t1;
  19213. },
  19214. _EvaluateVisitor_visitCssSupportsRule_closure4: function _EvaluateVisitor_visitCssSupportsRule_closure4() {
  19215. },
  19216. _EvaluateVisitor__performInterpolation_closure1: function _EvaluateVisitor__performInterpolation_closure1(t0, t1) {
  19217. this.$this = t0;
  19218. this.warnForColor = t1;
  19219. },
  19220. _EvaluateVisitor__serialize_closure1: function _EvaluateVisitor__serialize_closure1(t0, t1) {
  19221. this.value = t0;
  19222. this.quote = t1;
  19223. },
  19224. _EvaluateVisitor__stackTrace_closure1: function _EvaluateVisitor__stackTrace_closure1(t0) {
  19225. this.$this = t0;
  19226. },
  19227. _ImportedCssVisitor1: function _ImportedCssVisitor1(t0) {
  19228. this._evaluate0$_visitor = t0;
  19229. },
  19230. _ImportedCssVisitor_visitCssAtRule_closure1: function _ImportedCssVisitor_visitCssAtRule_closure1() {
  19231. },
  19232. _ImportedCssVisitor_visitCssMediaRule_closure1: function _ImportedCssVisitor_visitCssMediaRule_closure1(t0) {
  19233. this.hasBeenMerged = t0;
  19234. },
  19235. _ImportedCssVisitor_visitCssStyleRule_closure1: function _ImportedCssVisitor_visitCssStyleRule_closure1() {
  19236. },
  19237. _ImportedCssVisitor_visitCssSupportsRule_closure1: function _ImportedCssVisitor_visitCssSupportsRule_closure1() {
  19238. },
  19239. _ArgumentResults1: function _ArgumentResults1(t0, t1, t2, t3, t4) {
  19240. var _ = this;
  19241. _.positional = t0;
  19242. _.positionalNodes = t1;
  19243. _.named = t2;
  19244. _.namedNodes = t3;
  19245. _.separator = t4;
  19246. },
  19247. ForwardedModuleView_ifNecessary0: function(inner, rule, $T) {
  19248. var t1;
  19249. if (rule.prefix == null)
  19250. if (rule.shownMixinsAndFunctions == null)
  19251. if (rule.shownVariables == null) {
  19252. t1 = rule.hiddenMixinsAndFunctions;
  19253. if (t1 != null) {
  19254. t1 = t1._base;
  19255. t1 = t1.get$isEmpty(t1);
  19256. } else
  19257. t1 = true;
  19258. if (t1) {
  19259. t1 = rule.hiddenVariables;
  19260. if (t1 != null) {
  19261. t1 = t1._base;
  19262. t1 = t1.get$isEmpty(t1);
  19263. } else
  19264. t1 = true;
  19265. } else
  19266. t1 = false;
  19267. } else
  19268. t1 = false;
  19269. else
  19270. t1 = false;
  19271. else
  19272. t1 = false;
  19273. if (t1)
  19274. return inner;
  19275. else
  19276. return R.ForwardedModuleView$0(inner, rule, $T._eval$1("0*"));
  19277. },
  19278. ForwardedModuleView$0: function(_inner, _rule, $T) {
  19279. var t5, t6,
  19280. t1 = _rule.prefix,
  19281. t2 = _rule.shownVariables,
  19282. t3 = _rule.hiddenVariables,
  19283. t4 = R.ForwardedModuleView__forwardedMap0(_inner.get$variables(), t1, t2, t3, type$.legacy_Value_2);
  19284. t2 = _inner.get$variableNodes() == null ? null : R.ForwardedModuleView__forwardedMap0(_inner.get$variableNodes(), t1, t2, t3, type$.legacy_AstNode_2);
  19285. t3 = _rule.shownMixinsAndFunctions;
  19286. t5 = _rule.hiddenMixinsAndFunctions;
  19287. t6 = $T._eval$1("0*");
  19288. return new R.ForwardedModuleView0(_inner, _rule, t4, t2, R.ForwardedModuleView__forwardedMap0(_inner.get$functions(_inner), t1, t3, t5, t6), R.ForwardedModuleView__forwardedMap0(_inner.get$mixins(), t1, t3, t5, t6), $T._eval$1("ForwardedModuleView0<0>"));
  19289. },
  19290. ForwardedModuleView__forwardedMap0: function(map, prefix, safelist, blocklist, $V) {
  19291. var t2,
  19292. t1 = prefix == null;
  19293. if (t1)
  19294. if (safelist == null)
  19295. if (blocklist != null) {
  19296. t2 = blocklist._base;
  19297. t2 = t2.get$isEmpty(t2);
  19298. } else
  19299. t2 = true;
  19300. else
  19301. t2 = false;
  19302. else
  19303. t2 = false;
  19304. if (t2)
  19305. return map;
  19306. if (!t1)
  19307. map = new F.PrefixedMapView0(map, prefix, $V._eval$1("PrefixedMapView0<0*>"));
  19308. if (safelist != null)
  19309. map = K.LimitedMapView$safelist0(map, safelist, type$.legacy_String, $V._eval$1("0*"));
  19310. else {
  19311. if (blocklist != null) {
  19312. t1 = blocklist._base;
  19313. t1 = t1.get$isNotEmpty(t1);
  19314. } else
  19315. t1 = false;
  19316. if (t1)
  19317. map = K.LimitedMapView$blocklist0(map, blocklist, type$.legacy_String, $V._eval$1("0*"));
  19318. }
  19319. return map;
  19320. },
  19321. ForwardedModuleView0: function ForwardedModuleView0(t0, t1, t2, t3, t4, t5, t6) {
  19322. var _ = this;
  19323. _._forwarded_view0$_inner = t0;
  19324. _._forwarded_view0$_rule = t1;
  19325. _.variables = t2;
  19326. _.variableNodes = t3;
  19327. _.functions = t4;
  19328. _.mixins = t5;
  19329. _.$ti = t6;
  19330. },
  19331. ImportCache$none: function(logger) {
  19332. var t1 = type$.legacy_Uri;
  19333. return new R.ImportCache0(C.C_StderrLogger, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Stylesheet), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ImporterResult));
  19334. },
  19335. ImportCache0: function ImportCache0(t0, t1, t2, t3) {
  19336. var _ = this;
  19337. _._import_cache$_logger = t0;
  19338. _._import_cache$_canonicalizeCache = t1;
  19339. _._import_cache$_importCache = t2;
  19340. _._import_cache$_resultsCache = t3;
  19341. },
  19342. ImportCache_canonicalize_closure0: function ImportCache_canonicalize_closure0(t0, t1, t2) {
  19343. this.$this = t0;
  19344. this.url = t1;
  19345. this.forImport = t2;
  19346. },
  19347. ImportCache__canonicalize_closure0: function ImportCache__canonicalize_closure0(t0, t1) {
  19348. this.importer = t0;
  19349. this.url = t1;
  19350. },
  19351. ImportCache_importCanonical_closure0: function ImportCache_importCanonical_closure0(t0, t1, t2, t3) {
  19352. var _ = this;
  19353. _.$this = t0;
  19354. _.importer = t1;
  19355. _.canonicalUrl = t2;
  19356. _.originalUrl = t3;
  19357. },
  19358. ImportCache_humanize_closure2: function ImportCache_humanize_closure2(t0) {
  19359. this.canonicalUrl = t0;
  19360. },
  19361. ImportCache_humanize_closure3: function ImportCache_humanize_closure3() {
  19362. },
  19363. ImportCache_humanize_closure4: function ImportCache_humanize_closure4() {
  19364. },
  19365. RenderOptions: function RenderOptions() {
  19366. },
  19367. main0: function() {
  19368. new Uint8Array(0);
  19369. J.set$render$x(self.exports, P.allowInterop(B.node___render$closure()));
  19370. J.set$renderSync$x(self.exports, P.allowInterop(B.node___renderSync$closure()));
  19371. J.set$info$x(self.exports, "dart-sass\t1.26.11\t(Sass Compiler)\t[Dart]\ndart2js\t2.9.3\t(Dart Compiler)\t[Dart]");
  19372. J.set$types$x(self.exports, {Boolean: $.$get$booleanConstructor(), Color: $.$get$colorConstructor(), List: $.$get$listConstructor(), Map: $.$get$mapConstructor(), Null: $.$get$nullConstructor(), Number: $.$get$numberConstructor(), String: $.$get$stringConstructor(), Error: self.Error});
  19373. J.set$NULL$x(self.exports, C.C_SassNull);
  19374. J.set$TRUE$x(self.exports, C.SassBoolean_true);
  19375. J.set$FALSE$x(self.exports, C.SassBoolean_false);
  19376. J.set$cli_pkg_main_0_$x(self.exports, R._wrapMain(U.sass__main$closure()));
  19377. },
  19378. _wrapMain: function(main) {
  19379. if (type$.legacy_legacy_Object_Function._is(main))
  19380. return P.allowInterop(new R._wrapMain_closure(main));
  19381. else
  19382. return P.allowInterop(new R._wrapMain_closure0(main));
  19383. },
  19384. _Exports: function _Exports() {
  19385. },
  19386. _wrapMain_closure: function _wrapMain_closure(t0) {
  19387. this.main = t0;
  19388. },
  19389. _wrapMain_closure0: function _wrapMain_closure0(t0) {
  19390. this.main = t0;
  19391. },
  19392. UnprefixedMapView0: function UnprefixedMapView0(t0, t1, t2) {
  19393. this._unprefixed_map_view0$_map = t0;
  19394. this._unprefixed_map_view0$_prefix = t1;
  19395. this.$ti = t2;
  19396. },
  19397. _UnprefixedKeys0: function _UnprefixedKeys0(t0) {
  19398. this._unprefixed_map_view0$_view = t0;
  19399. },
  19400. _UnprefixedKeys_iterator_closure1: function _UnprefixedKeys_iterator_closure1(t0) {
  19401. this.$this = t0;
  19402. },
  19403. _UnprefixedKeys_iterator_closure2: function _UnprefixedKeys_iterator_closure2(t0) {
  19404. this.$this = t0;
  19405. }
  19406. },
  19407. T = {Expression: function Expression() {
  19408. }, NumberExpression: function NumberExpression(t0, t1, t2) {
  19409. this.value = t0;
  19410. this.unit = t1;
  19411. this.span = t2;
  19412. }, ParenthesizedExpression: function ParenthesizedExpression(t0, t1) {
  19413. this.expression = t0;
  19414. this.span = t1;
  19415. }, SelectorExpression: function SelectorExpression(t0) {
  19416. this.span = t0;
  19417. }, MixinRule: function MixinRule(t0, t1, t2, t3, t4, t5) {
  19418. var _ = this;
  19419. _.hasContent = t0;
  19420. _.name = t1;
  19421. _.$arguments = t2;
  19422. _.span = t3;
  19423. _.children = t4;
  19424. _.hasDeclarations = t5;
  19425. },
  19426. UseRule$: function(url, namespace, span, configuration) {
  19427. var t1 = new T.UseRule(url, namespace, configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable), span);
  19428. t1.UseRule$4$configuration(url, namespace, span, configuration);
  19429. return t1;
  19430. },
  19431. UseRule: function UseRule(t0, t1, t2, t3) {
  19432. var _ = this;
  19433. _.url = t0;
  19434. _.namespace = t1;
  19435. _.configuration = t2;
  19436. _.span = t3;
  19437. },
  19438. Selector: function Selector() {
  19439. },
  19440. EmptyExtender: function EmptyExtender() {
  19441. },
  19442. _prependParent: function(compound) {
  19443. var t2, t3, cur, _i, _null = null,
  19444. t1 = compound.components,
  19445. first = C.JSArray_methods.get$first(t1);
  19446. if (first instanceof N.UniversalSelector)
  19447. return _null;
  19448. if (first instanceof F.TypeSelector) {
  19449. t2 = first.name;
  19450. if (t2.namespace != null)
  19451. return _null;
  19452. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  19453. t3.push(new M.ParentSelector(t2.name));
  19454. for (t1 = H.SubListIterable$(t1, 1, _null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  19455. cur = t1.__internal$_current;
  19456. t3.push(cur);
  19457. }
  19458. return X.CompoundSelector$(t3);
  19459. } else {
  19460. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  19461. t2.push(new M.ParentSelector(_null));
  19462. for (t3 = t1.length, _i = 0; _i < t3; ++_i)
  19463. t2.push(t1[_i]);
  19464. return X.CompoundSelector$(t2);
  19465. }
  19466. },
  19467. _function0: function($name, $arguments, callback) {
  19468. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:selector");
  19469. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  19470. },
  19471. closure13: function closure13() {
  19472. },
  19473. _closure1: function _closure1(t0) {
  19474. this._box_0 = t0;
  19475. },
  19476. _closure2: function _closure2() {
  19477. },
  19478. closure12: function closure12() {
  19479. },
  19480. _closure: function _closure() {
  19481. },
  19482. _closure0: function _closure0() {
  19483. },
  19484. __closure: function __closure(t0) {
  19485. this.parent = t0;
  19486. },
  19487. closure11: function closure11() {
  19488. },
  19489. closure10: function closure10() {
  19490. },
  19491. closure9: function closure9() {
  19492. },
  19493. closure16: function closure16() {
  19494. },
  19495. closure15: function closure15() {
  19496. },
  19497. _closure3: function _closure3() {
  19498. },
  19499. closure14: function closure14() {
  19500. },
  19501. TrackingLogger: function TrackingLogger(t0) {
  19502. this._tracking$_logger = t0;
  19503. this._emittedDebug = this._emittedWarning = false;
  19504. },
  19505. SelectorParser: function SelectorParser(t0, t1, t2, t3) {
  19506. var _ = this;
  19507. _._allowParent = t0;
  19508. _._allowPlaceholder = t1;
  19509. _.scanner = t2;
  19510. _.logger = t3;
  19511. },
  19512. SelectorParser_parse_closure: function SelectorParser_parse_closure(t0) {
  19513. this.$this = t0;
  19514. },
  19515. SelectorParser_parseCompoundSelector_closure: function SelectorParser_parseCompoundSelector_closure(t0) {
  19516. this.$this = t0;
  19517. },
  19518. SassNumber$: function(value, unit) {
  19519. var t1 = unit == null ? null : H.setRuntimeTypeInfo([unit], type$.JSArray_legacy_String);
  19520. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.legacy_String);
  19521. return new T.SassNumber(value, t1, C.List_empty, null);
  19522. },
  19523. SassNumber$withUnits: function(value, denominatorUnits, numeratorUnits) {
  19524. var t1 = numeratorUnits == null ? C.List_empty : P.List_List$unmodifiable(numeratorUnits, type$.legacy_String);
  19525. return new T.SassNumber(value, t1, denominatorUnits == null ? C.List_empty : P.List_List$unmodifiable(denominatorUnits, type$.legacy_String), null);
  19526. },
  19527. SassNumber: function SassNumber(t0, t1, t2, t3) {
  19528. var _ = this;
  19529. _.value = t0;
  19530. _.numeratorUnits = t1;
  19531. _.denominatorUnits = t2;
  19532. _.asSlash = t3;
  19533. },
  19534. SassNumber_valueInUnits_closure: function SassNumber_valueInUnits_closure(t0, t1, t2) {
  19535. this._box_0 = t0;
  19536. this.$this = t1;
  19537. this.newNumerator = t2;
  19538. },
  19539. SassNumber_valueInUnits_closure0: function SassNumber_valueInUnits_closure0(t0, t1, t2) {
  19540. this.$this = t0;
  19541. this.newNumerators = t1;
  19542. this.newDenominators = t2;
  19543. },
  19544. SassNumber_valueInUnits_closure1: function SassNumber_valueInUnits_closure1(t0, t1, t2) {
  19545. this._box_0 = t0;
  19546. this.$this = t1;
  19547. this.newDenominator = t2;
  19548. },
  19549. SassNumber_valueInUnits_closure2: function SassNumber_valueInUnits_closure2(t0, t1, t2) {
  19550. this.$this = t0;
  19551. this.newNumerators = t1;
  19552. this.newDenominators = t2;
  19553. },
  19554. SassNumber_modulo_closure: function SassNumber_modulo_closure() {
  19555. },
  19556. SassNumber_plus_closure: function SassNumber_plus_closure() {
  19557. },
  19558. SassNumber_minus_closure: function SassNumber_minus_closure() {
  19559. },
  19560. SassNumber__multiplyUnits_closure: function SassNumber__multiplyUnits_closure(t0, t1, t2) {
  19561. this._box_0 = t0;
  19562. this.$this = t1;
  19563. this.numerator = t2;
  19564. },
  19565. SassNumber__multiplyUnits_closure0: function SassNumber__multiplyUnits_closure0(t0, t1) {
  19566. this.newNumerators = t0;
  19567. this.numerator = t1;
  19568. },
  19569. SassNumber__multiplyUnits_closure1: function SassNumber__multiplyUnits_closure1(t0, t1, t2) {
  19570. this._box_0 = t0;
  19571. this.$this = t1;
  19572. this.numerator = t2;
  19573. },
  19574. SassNumber__multiplyUnits_closure2: function SassNumber__multiplyUnits_closure2(t0, t1) {
  19575. this.newNumerators = t0;
  19576. this.numerator = t1;
  19577. },
  19578. SassNumber__areAnyConvertible_closure: function SassNumber__areAnyConvertible_closure(t0, t1) {
  19579. this.$this = t0;
  19580. this.units2 = t1;
  19581. },
  19582. SassNumber__canonicalMultiplier_closure: function SassNumber__canonicalMultiplier_closure() {
  19583. },
  19584. SingleMapping_SingleMapping$fromEntries: function(entries) {
  19585. var lines, t2, t3, urls, t4, files, t5, t6, targetEntries, lineNum, _i, sourceEntry, sourceUrl, t7, urlId, _null = null,
  19586. t1 = type$.dynamic,
  19587. sourceEntries = P.List_List$from(entries, true, t1);
  19588. C.JSArray_methods.sort$0(sourceEntries);
  19589. lines = H.setRuntimeTypeInfo([], type$.JSArray_legacy_TargetLineEntry);
  19590. t2 = type$.legacy_String;
  19591. t3 = type$.legacy_int;
  19592. urls = P.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  19593. t4 = type$.legacy_SourceFile;
  19594. files = P.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  19595. for (t5 = sourceEntries.length, t6 = type$.JSArray_legacy_TargetEntry, targetEntries = _null, lineNum = targetEntries, _i = 0; _i < sourceEntries.length; sourceEntries.length === t5 || (0, H.throwConcurrentModificationError)(sourceEntries), ++_i) {
  19596. sourceEntry = sourceEntries[_i];
  19597. if (lineNum == null || sourceEntry.get$target().get$line() > lineNum) {
  19598. lineNum = sourceEntry.get$target().get$line();
  19599. targetEntries = H.setRuntimeTypeInfo([], t6);
  19600. lines.push(new T.TargetLineEntry(lineNum, targetEntries));
  19601. }
  19602. if (sourceEntry.get$source() == null)
  19603. targetEntries.push(new T.TargetEntry(sourceEntry.get$target().get$column(), _null, _null, _null, _null));
  19604. else {
  19605. sourceUrl = sourceEntry.get$source().get$sourceUrl();
  19606. t7 = sourceUrl == null ? "" : sourceUrl.toString$0(0);
  19607. urlId = urls.putIfAbsent$2(t7, new T.SingleMapping_SingleMapping$fromEntries_closure(urls));
  19608. if (sourceEntry.get$source() instanceof Y.FileLocation)
  19609. files.putIfAbsent$2(urlId, new T.SingleMapping_SingleMapping$fromEntries_closure0(sourceEntry));
  19610. sourceEntry.get$identifierName();
  19611. targetEntries.push(new T.TargetEntry(sourceEntry.get$target().get$column(), urlId, sourceEntry.get$source().get$line(), sourceEntry.get$source().get$column(), _null));
  19612. }
  19613. }
  19614. t5 = urls.get$values();
  19615. t4 = H.MappedIterable_MappedIterable(t5, new T.SingleMapping_SingleMapping$fromEntries_closure1(files), H._instanceType(t5)._eval$1("Iterable.E"), t4);
  19616. t4 = P.List_List$from(t4, true, H._instanceType(t4)._eval$1("Iterable.E"));
  19617. t5 = urls.get$keys();
  19618. t5 = P.List_List$from(t5, true, H._instanceType(t5)._eval$1("Iterable.E"));
  19619. t3 = P.LinkedHashMap_LinkedHashMap$_empty(t2, t3).get$keys();
  19620. return new T.SingleMapping(t5, P.List_List$from(t3, true, H._instanceType(t3)._eval$1("Iterable.E")), t4, lines, _null, P.LinkedHashMap_LinkedHashMap$_empty(t2, t1));
  19621. },
  19622. Mapping: function Mapping() {
  19623. },
  19624. SingleMapping: function SingleMapping(t0, t1, t2, t3, t4, t5) {
  19625. var _ = this;
  19626. _.urls = t0;
  19627. _.names = t1;
  19628. _.files = t2;
  19629. _.lines = t3;
  19630. _.targetUrl = t4;
  19631. _.sourceRoot = null;
  19632. _.extensions = t5;
  19633. },
  19634. SingleMapping_SingleMapping$fromEntries_closure: function SingleMapping_SingleMapping$fromEntries_closure(t0) {
  19635. this.urls = t0;
  19636. },
  19637. SingleMapping_SingleMapping$fromEntries_closure0: function SingleMapping_SingleMapping$fromEntries_closure0(t0) {
  19638. this.sourceEntry = t0;
  19639. },
  19640. SingleMapping_SingleMapping$fromEntries_closure1: function SingleMapping_SingleMapping$fromEntries_closure1(t0) {
  19641. this.files = t0;
  19642. },
  19643. SingleMapping_toJson_closure: function SingleMapping_toJson_closure() {
  19644. },
  19645. SingleMapping_toJson_closure0: function SingleMapping_toJson_closure0(t0) {
  19646. this.result = t0;
  19647. },
  19648. TargetLineEntry: function TargetLineEntry(t0, t1) {
  19649. this.line = t0;
  19650. this.entries = t1;
  19651. },
  19652. TargetEntry: function TargetEntry(t0, t1, t2, t3, t4) {
  19653. var _ = this;
  19654. _.column = t0;
  19655. _.sourceUrlId = t1;
  19656. _.sourceLine = t2;
  19657. _.sourceColumn = t3;
  19658. _.sourceNameId = t4;
  19659. },
  19660. LazyTrace: function LazyTrace(t0) {
  19661. this._thunk = t0;
  19662. this._lazy_trace$_inner = null;
  19663. },
  19664. LazyTrace_terse_closure: function LazyTrace_terse_closure(t0) {
  19665. this.$this = t0;
  19666. },
  19667. EmptyExtender0: function EmptyExtender0() {
  19668. },
  19669. Expression0: function Expression0() {
  19670. },
  19671. MixinRule0: function MixinRule0(t0, t1, t2, t3, t4, t5) {
  19672. var _ = this;
  19673. _.hasContent = t0;
  19674. _.name = t1;
  19675. _.$arguments = t2;
  19676. _.span = t3;
  19677. _.children = t4;
  19678. _.hasDeclarations = t5;
  19679. },
  19680. NumberExpression0: function NumberExpression0(t0, t1, t2) {
  19681. this.value = t0;
  19682. this.unit = t1;
  19683. this.span = t2;
  19684. },
  19685. _parseNumber: function(value, unit) {
  19686. var t1, invalidUnit, operands, numerator, denominator, numeratorUnits, denominatorUnits;
  19687. if (unit == null || unit.length === 0)
  19688. return new T.SassNumber0(value, C.List_empty, C.List_empty, null);
  19689. if (!J.contains$1$asx(unit, "*") && !C.JSString_methods.contains$1(unit, "/")) {
  19690. t1 = H.setRuntimeTypeInfo([unit], type$.JSArray_legacy_String);
  19691. t1 = P.List_List$unmodifiable(t1, type$.legacy_String);
  19692. return new T.SassNumber0(value, t1, C.List_empty, null);
  19693. }
  19694. invalidUnit = new P.ArgumentError(true, unit, "unit", "is invalid.");
  19695. operands = unit.split("/");
  19696. t1 = operands.length;
  19697. if (t1 > 2)
  19698. throw H.wrapException(invalidUnit);
  19699. numerator = operands[0];
  19700. denominator = t1 === 1 ? null : operands[1];
  19701. numeratorUnits = numerator.length === 0 ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_String) : H.setRuntimeTypeInfo(numerator.split("*"), type$.JSArray_String);
  19702. if (C.JSArray_methods.any$1(numeratorUnits, new T._parseNumber_closure()))
  19703. throw H.wrapException(invalidUnit);
  19704. denominatorUnits = denominator == null ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_String) : H.setRuntimeTypeInfo(denominator.split("*"), type$.JSArray_String);
  19705. if (C.JSArray_methods.any$1(denominatorUnits, new T._parseNumber_closure0()))
  19706. throw H.wrapException(invalidUnit);
  19707. return T.SassNumber$withUnits0(value, denominatorUnits, numeratorUnits);
  19708. },
  19709. _NodeSassNumber: function _NodeSassNumber() {
  19710. },
  19711. closure214: function closure214() {
  19712. },
  19713. closure215: function closure215() {
  19714. },
  19715. closure216: function closure216() {
  19716. },
  19717. closure217: function closure217() {
  19718. },
  19719. closure218: function closure218() {
  19720. },
  19721. closure219: function closure219() {
  19722. },
  19723. _parseNumber_closure: function _parseNumber_closure() {
  19724. },
  19725. _parseNumber_closure0: function _parseNumber_closure0() {
  19726. },
  19727. SassNumber$0: function(value, unit) {
  19728. var t1 = unit == null ? null : H.setRuntimeTypeInfo([unit], type$.JSArray_legacy_String);
  19729. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.legacy_String);
  19730. return new T.SassNumber0(value, t1, C.List_empty, null);
  19731. },
  19732. SassNumber$withUnits0: function(value, denominatorUnits, numeratorUnits) {
  19733. var t1 = numeratorUnits == null ? C.List_empty : P.List_List$unmodifiable(numeratorUnits, type$.legacy_String);
  19734. return new T.SassNumber0(value, t1, denominatorUnits == null ? C.List_empty : P.List_List$unmodifiable(denominatorUnits, type$.legacy_String), null);
  19735. },
  19736. SassNumber0: function SassNumber0(t0, t1, t2, t3) {
  19737. var _ = this;
  19738. _.value = t0;
  19739. _.numeratorUnits = t1;
  19740. _.denominatorUnits = t2;
  19741. _.asSlash = t3;
  19742. },
  19743. SassNumber_valueInUnits_closure3: function SassNumber_valueInUnits_closure3(t0, t1, t2) {
  19744. this._box_0 = t0;
  19745. this.$this = t1;
  19746. this.newNumerator = t2;
  19747. },
  19748. SassNumber_valueInUnits_closure4: function SassNumber_valueInUnits_closure4(t0, t1, t2) {
  19749. this.$this = t0;
  19750. this.newNumerators = t1;
  19751. this.newDenominators = t2;
  19752. },
  19753. SassNumber_valueInUnits_closure5: function SassNumber_valueInUnits_closure5(t0, t1, t2) {
  19754. this._box_0 = t0;
  19755. this.$this = t1;
  19756. this.newDenominator = t2;
  19757. },
  19758. SassNumber_valueInUnits_closure6: function SassNumber_valueInUnits_closure6(t0, t1, t2) {
  19759. this.$this = t0;
  19760. this.newNumerators = t1;
  19761. this.newDenominators = t2;
  19762. },
  19763. SassNumber_modulo_closure0: function SassNumber_modulo_closure0() {
  19764. },
  19765. SassNumber_plus_closure0: function SassNumber_plus_closure0() {
  19766. },
  19767. SassNumber_minus_closure0: function SassNumber_minus_closure0() {
  19768. },
  19769. SassNumber__multiplyUnits_closure3: function SassNumber__multiplyUnits_closure3(t0, t1, t2) {
  19770. this._box_0 = t0;
  19771. this.$this = t1;
  19772. this.numerator = t2;
  19773. },
  19774. SassNumber__multiplyUnits_closure4: function SassNumber__multiplyUnits_closure4(t0, t1) {
  19775. this.newNumerators = t0;
  19776. this.numerator = t1;
  19777. },
  19778. SassNumber__multiplyUnits_closure5: function SassNumber__multiplyUnits_closure5(t0, t1, t2) {
  19779. this._box_0 = t0;
  19780. this.$this = t1;
  19781. this.numerator = t2;
  19782. },
  19783. SassNumber__multiplyUnits_closure6: function SassNumber__multiplyUnits_closure6(t0, t1) {
  19784. this.newNumerators = t0;
  19785. this.numerator = t1;
  19786. },
  19787. SassNumber__areAnyConvertible_closure0: function SassNumber__areAnyConvertible_closure0(t0, t1) {
  19788. this.$this = t0;
  19789. this.units2 = t1;
  19790. },
  19791. SassNumber__canonicalMultiplier_closure0: function SassNumber__canonicalMultiplier_closure0() {
  19792. },
  19793. ParenthesizedExpression0: function ParenthesizedExpression0(t0, t1) {
  19794. this.expression = t0;
  19795. this.span = t1;
  19796. },
  19797. Selector0: function Selector0() {
  19798. },
  19799. SelectorExpression0: function SelectorExpression0(t0) {
  19800. this.span = t0;
  19801. },
  19802. _prependParent0: function(compound) {
  19803. var t2, t3, cur, _i, _null = null,
  19804. t1 = compound.components,
  19805. first = C.JSArray_methods.get$first(t1);
  19806. if (first instanceof N.UniversalSelector0)
  19807. return _null;
  19808. if (first instanceof F.TypeSelector0) {
  19809. t2 = first.name;
  19810. if (t2.namespace != null)
  19811. return _null;
  19812. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  19813. t3.push(new M.ParentSelector0(t2.name));
  19814. for (t1 = H.SubListIterable$(t1, 1, _null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  19815. cur = t1.__internal$_current;
  19816. t3.push(cur);
  19817. }
  19818. return X.CompoundSelector$0(t3);
  19819. } else {
  19820. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  19821. t2.push(new M.ParentSelector0(_null));
  19822. for (t3 = t1.length, _i = 0; _i < t3; ++_i)
  19823. t2.push(t1[_i]);
  19824. return X.CompoundSelector$0(t2);
  19825. }
  19826. },
  19827. _function7: function($name, $arguments, callback) {
  19828. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:selector");
  19829. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  19830. },
  19831. closure119: function closure119() {
  19832. },
  19833. _closure15: function _closure15(t0) {
  19834. this._box_0 = t0;
  19835. },
  19836. _closure16: function _closure16() {
  19837. },
  19838. closure118: function closure118() {
  19839. },
  19840. _closure13: function _closure13() {
  19841. },
  19842. _closure14: function _closure14() {
  19843. },
  19844. __closure0: function __closure0(t0) {
  19845. this.parent = t0;
  19846. },
  19847. closure117: function closure117() {
  19848. },
  19849. closure116: function closure116() {
  19850. },
  19851. closure115: function closure115() {
  19852. },
  19853. closure122: function closure122() {
  19854. },
  19855. closure121: function closure121() {
  19856. },
  19857. _closure17: function _closure17() {
  19858. },
  19859. closure120: function closure120() {
  19860. },
  19861. SelectorParser0: function SelectorParser0(t0, t1, t2, t3) {
  19862. var _ = this;
  19863. _._selector$_allowParent = t0;
  19864. _._selector$_allowPlaceholder = t1;
  19865. _.scanner = t2;
  19866. _.logger = t3;
  19867. },
  19868. SelectorParser_parse_closure0: function SelectorParser_parse_closure0(t0) {
  19869. this.$this = t0;
  19870. },
  19871. SelectorParser_parseCompoundSelector_closure0: function SelectorParser_parseCompoundSelector_closure0(t0) {
  19872. this.$this = t0;
  19873. },
  19874. UseRule$0: function(url, namespace, span, configuration) {
  19875. var t1 = new T.UseRule0(url, namespace, configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable_2), span);
  19876. t1.UseRule$4$configuration0(url, namespace, span, configuration);
  19877. return t1;
  19878. },
  19879. UseRule0: function UseRule0(t0, t1, t2, t3) {
  19880. var _ = this;
  19881. _.url = t0;
  19882. _.namespace = t1;
  19883. _.configuration = t2;
  19884. _.span = t3;
  19885. },
  19886. isWhitespace: function(character) {
  19887. return character === 32 || character === 9 || T.isNewline(character);
  19888. },
  19889. isNewline: function(character) {
  19890. return character === 10 || character === 13 || character === 12;
  19891. },
  19892. isAlphabetic0: function(character) {
  19893. var t1;
  19894. if (!(character >= 97 && character <= 122))
  19895. t1 = character >= 65 && character <= 90;
  19896. else
  19897. t1 = true;
  19898. return t1;
  19899. },
  19900. isDigit: function(character) {
  19901. return character != null && character >= 48 && character <= 57;
  19902. },
  19903. isHex: function(character) {
  19904. if (character == null)
  19905. return false;
  19906. if (T.isDigit(character))
  19907. return true;
  19908. if (character >= 97 && character <= 102)
  19909. return true;
  19910. if (character >= 65 && character <= 70)
  19911. return true;
  19912. return false;
  19913. },
  19914. isPrivate: function(identifier) {
  19915. var first = C.JSString_methods._codeUnitAt$1(identifier, 0);
  19916. return first === 45 || first === 95;
  19917. },
  19918. asHex: function(character) {
  19919. if (character <= 57)
  19920. return character - 48;
  19921. if (character <= 70)
  19922. return 10 + character - 65;
  19923. return 10 + character - 97;
  19924. },
  19925. hexCharFor: function(number) {
  19926. return number < 10 ? 48 + number : 87 + number;
  19927. },
  19928. opposite: function(character) {
  19929. switch (character) {
  19930. case 40:
  19931. return 41;
  19932. case 123:
  19933. return 125;
  19934. case 91:
  19935. return 93;
  19936. default:
  19937. return null;
  19938. }
  19939. },
  19940. characterEqualsIgnoreCase: function(character1, character2) {
  19941. var upperCase1;
  19942. if (character1 === character2)
  19943. return true;
  19944. if ((character1 ^ character2) >>> 0 !== 32)
  19945. return false;
  19946. upperCase1 = (character1 & 4294967263) >>> 0;
  19947. return upperCase1 >= 65 && upperCase1 <= 90;
  19948. },
  19949. fuzzyEquals: function(number1, number2) {
  19950. return Math.abs(number1 - number2) < $.$get$epsilon();
  19951. },
  19952. fuzzyLessThan: function(number1, number2) {
  19953. return number1 < number2 && !(Math.abs(number1 - number2) < $.$get$epsilon());
  19954. },
  19955. fuzzyLessThanOrEquals: function(number1, number2) {
  19956. return number1 < number2 || Math.abs(number1 - number2) < $.$get$epsilon();
  19957. },
  19958. fuzzyGreaterThan: function(number1, number2) {
  19959. return number1 > number2 && !(Math.abs(number1 - number2) < $.$get$epsilon());
  19960. },
  19961. fuzzyGreaterThanOrEquals: function(number1, number2) {
  19962. return number1 > number2 || Math.abs(number1 - number2) < $.$get$epsilon();
  19963. },
  19964. fuzzyIsInt: function(number) {
  19965. number.toString;
  19966. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  19967. return false;
  19968. if (H._isInt(number))
  19969. return true;
  19970. return Math.abs(C.JSNumber_methods.$mod(Math.abs(number - 0.5), 1) - 0.5) < $.$get$epsilon();
  19971. },
  19972. fuzzyRound: function(number) {
  19973. var t1;
  19974. if (number > 0) {
  19975. t1 = C.JSNumber_methods.$mod(number, 1);
  19976. return t1 < 0.5 && !(Math.abs(t1 - 0.5) < $.$get$epsilon()) ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  19977. } else {
  19978. t1 = C.JSNumber_methods.$mod(number, 1);
  19979. return t1 < 0.5 || Math.abs(t1 - 0.5) < $.$get$epsilon() ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  19980. }
  19981. },
  19982. fuzzyCheckRange: function(number, min, max) {
  19983. var t1 = $.$get$epsilon();
  19984. if (Math.abs(number - min) < t1)
  19985. return min;
  19986. if (Math.abs(number - max) < t1)
  19987. return max;
  19988. if (number > min && number < max)
  19989. return number;
  19990. return null;
  19991. },
  19992. fuzzyAssertRange: function(number, min, max, $name) {
  19993. var result = T.fuzzyCheckRange(number, min, max);
  19994. if (result != null)
  19995. return result;
  19996. throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
  19997. },
  19998. isWhitespace0: function(character) {
  19999. return character === 32 || character === 9 || T.isNewline0(character);
  20000. },
  20001. isNewline0: function(character) {
  20002. return character === 10 || character === 13 || character === 12;
  20003. },
  20004. isAlphabetic1: function(character) {
  20005. var t1;
  20006. if (!(character >= 97 && character <= 122))
  20007. t1 = character >= 65 && character <= 90;
  20008. else
  20009. t1 = true;
  20010. return t1;
  20011. },
  20012. isDigit0: function(character) {
  20013. return character != null && character >= 48 && character <= 57;
  20014. },
  20015. isHex0: function(character) {
  20016. if (character == null)
  20017. return false;
  20018. if (T.isDigit0(character))
  20019. return true;
  20020. if (character >= 97 && character <= 102)
  20021. return true;
  20022. if (character >= 65 && character <= 70)
  20023. return true;
  20024. return false;
  20025. },
  20026. isPrivate0: function(identifier) {
  20027. var first = C.JSString_methods._codeUnitAt$1(identifier, 0);
  20028. return first === 45 || first === 95;
  20029. },
  20030. asHex0: function(character) {
  20031. if (character <= 57)
  20032. return character - 48;
  20033. if (character <= 70)
  20034. return 10 + character - 65;
  20035. return 10 + character - 97;
  20036. },
  20037. hexCharFor0: function(number) {
  20038. return number < 10 ? 48 + number : 87 + number;
  20039. },
  20040. opposite0: function(character) {
  20041. switch (character) {
  20042. case 40:
  20043. return 41;
  20044. case 123:
  20045. return 125;
  20046. case 91:
  20047. return 93;
  20048. default:
  20049. return null;
  20050. }
  20051. },
  20052. characterEqualsIgnoreCase0: function(character1, character2) {
  20053. var upperCase1;
  20054. if (character1 === character2)
  20055. return true;
  20056. if ((character1 ^ character2) >>> 0 !== 32)
  20057. return false;
  20058. upperCase1 = (character1 & 4294967263) >>> 0;
  20059. return upperCase1 >= 65 && upperCase1 <= 90;
  20060. },
  20061. fuzzyEquals0: function(number1, number2) {
  20062. return Math.abs(number1 - number2) < $.$get$epsilon0();
  20063. },
  20064. fuzzyLessThan0: function(number1, number2) {
  20065. return number1 < number2 && !(Math.abs(number1 - number2) < $.$get$epsilon0());
  20066. },
  20067. fuzzyLessThanOrEquals0: function(number1, number2) {
  20068. return number1 < number2 || Math.abs(number1 - number2) < $.$get$epsilon0();
  20069. },
  20070. fuzzyGreaterThan0: function(number1, number2) {
  20071. return number1 > number2 && !(Math.abs(number1 - number2) < $.$get$epsilon0());
  20072. },
  20073. fuzzyGreaterThanOrEquals0: function(number1, number2) {
  20074. return number1 > number2 || Math.abs(number1 - number2) < $.$get$epsilon0();
  20075. },
  20076. fuzzyIsInt0: function(number) {
  20077. number.toString;
  20078. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  20079. return false;
  20080. if (H._isInt(number))
  20081. return true;
  20082. return Math.abs(C.JSNumber_methods.$mod(Math.abs(number - 0.5), 1) - 0.5) < $.$get$epsilon0();
  20083. },
  20084. fuzzyRound0: function(number) {
  20085. var t1;
  20086. if (number > 0) {
  20087. t1 = C.JSNumber_methods.$mod(number, 1);
  20088. return t1 < 0.5 && !(Math.abs(t1 - 0.5) < $.$get$epsilon0()) ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  20089. } else {
  20090. t1 = C.JSNumber_methods.$mod(number, 1);
  20091. return t1 < 0.5 || Math.abs(t1 - 0.5) < $.$get$epsilon0() ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  20092. }
  20093. },
  20094. fuzzyCheckRange0: function(number, min, max) {
  20095. var t1 = $.$get$epsilon0();
  20096. if (Math.abs(number - min) < t1)
  20097. return min;
  20098. if (Math.abs(number - max) < t1)
  20099. return max;
  20100. if (number > min && number < max)
  20101. return number;
  20102. return null;
  20103. },
  20104. fuzzyAssertRange0: function(number, min, max, $name) {
  20105. var result = T.fuzzyCheckRange0(number, min, max);
  20106. if (result != null)
  20107. return result;
  20108. throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
  20109. }
  20110. },
  20111. D = {ListExpression: function ListExpression(t0, t1, t2, t3) {
  20112. var _ = this;
  20113. _.contents = t0;
  20114. _.separator = t1;
  20115. _.hasBrackets = t2;
  20116. _.span = t3;
  20117. }, ListExpression_toString_closure: function ListExpression_toString_closure(t0) {
  20118. this.$this = t0;
  20119. }, StringExpression: function StringExpression(t0, t1) {
  20120. this.text = t0;
  20121. this.hasQuotes = t1;
  20122. }, ErrorRule: function ErrorRule(t0, t1) {
  20123. this.expression = t0;
  20124. this.span = t1;
  20125. },
  20126. SelectorList$: function(components) {
  20127. var t1 = P.List_List$unmodifiable(components, type$.legacy_ComplexSelector);
  20128. if (t1.length === 0)
  20129. H.throwExpression(P.ArgumentError$("components may not be empty."));
  20130. return new D.SelectorList(t1);
  20131. },
  20132. SelectorList_SelectorList$parse: function(contents, allowParent, allowPlaceholder, logger) {
  20133. var t1 = S.SpanScanner$(contents, null);
  20134. return new T.SelectorParser(allowParent, allowPlaceholder, t1, logger == null ? C.StderrLogger_false : logger).parse$0();
  20135. },
  20136. SelectorList: function SelectorList(t0) {
  20137. this.components = t0;
  20138. },
  20139. SelectorList_isInvisible_closure: function SelectorList_isInvisible_closure() {
  20140. },
  20141. SelectorList_asSassList_closure: function SelectorList_asSassList_closure() {
  20142. },
  20143. SelectorList_asSassList__closure: function SelectorList_asSassList__closure() {
  20144. },
  20145. SelectorList_unify_closure: function SelectorList_unify_closure(t0) {
  20146. this.other = t0;
  20147. },
  20148. SelectorList_unify__closure: function SelectorList_unify__closure(t0) {
  20149. this.complex1 = t0;
  20150. },
  20151. SelectorList_unify___closure: function SelectorList_unify___closure() {
  20152. },
  20153. SelectorList_resolveParentSelectors_closure: function SelectorList_resolveParentSelectors_closure(t0, t1, t2) {
  20154. this.$this = t0;
  20155. this.implicitParent = t1;
  20156. this.parent = t2;
  20157. },
  20158. SelectorList_resolveParentSelectors__closure: function SelectorList_resolveParentSelectors__closure(t0) {
  20159. this.complex = t0;
  20160. },
  20161. SelectorList_resolveParentSelectors__closure0: function SelectorList_resolveParentSelectors__closure0(t0) {
  20162. this._box_0 = t0;
  20163. },
  20164. SelectorList__complexContainsParentSelector_closure: function SelectorList__complexContainsParentSelector_closure() {
  20165. },
  20166. SelectorList__complexContainsParentSelector__closure: function SelectorList__complexContainsParentSelector__closure() {
  20167. },
  20168. SelectorList__resolveParentSelectorsCompound_closure: function SelectorList__resolveParentSelectorsCompound_closure() {
  20169. },
  20170. SelectorList__resolveParentSelectorsCompound_closure0: function SelectorList__resolveParentSelectorsCompound_closure0(t0) {
  20171. this.parent = t0;
  20172. },
  20173. SelectorList__resolveParentSelectorsCompound_closure1: function SelectorList__resolveParentSelectorsCompound_closure1(t0, t1) {
  20174. this.compound = t0;
  20175. this.resolvedMembers = t1;
  20176. },
  20177. PseudoSelector$: function($name, argument, element, selector) {
  20178. var t1 = !element,
  20179. t2 = t1 && !D.PseudoSelector__isFakePseudoElement($name);
  20180. return new D.PseudoSelector($name, B.unvendor($name), t2, t1, argument, selector);
  20181. },
  20182. PseudoSelector__isFakePseudoElement: function($name) {
  20183. switch (C.JSString_methods._codeUnitAt$1($name, 0)) {
  20184. case 97:
  20185. case 65:
  20186. return B.equalsIgnoreCase($name, "after");
  20187. case 98:
  20188. case 66:
  20189. return B.equalsIgnoreCase($name, "before");
  20190. case 102:
  20191. case 70:
  20192. return B.equalsIgnoreCase($name, "first-line") || B.equalsIgnoreCase($name, "first-letter");
  20193. default:
  20194. return false;
  20195. }
  20196. },
  20197. PseudoSelector: function PseudoSelector(t0, t1, t2, t3, t4, t5) {
  20198. var _ = this;
  20199. _.name = t0;
  20200. _.normalizedName = t1;
  20201. _.isClass = t2;
  20202. _.isSyntacticClass = t3;
  20203. _.argument = t4;
  20204. _.selector = t5;
  20205. _._pseudo$_maxSpecificity = _._pseudo$_minSpecificity = null;
  20206. },
  20207. QualifiedName: function QualifiedName(t0, t1) {
  20208. this.name = t0;
  20209. this.namespace = t1;
  20210. },
  20211. Callable: function Callable() {
  20212. },
  20213. compileStylesheet: function(options, graph, source, destination, ifModified) {
  20214. return D.compileStylesheet$body(options, graph, source, destination, ifModified);
  20215. },
  20216. compileStylesheet$body: function(options, graph, source, destination, ifModified) {
  20217. var $async$goto = 0,
  20218. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  20219. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], syntax, result, importCache, error, exception, t1, t2, t3, t4, t5, t6, t7, result0, stylesheet, css, buffer, sourceName, destinationName, importer, $async$exception;
  20220. var $async$compileStylesheet = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20221. if ($async$errorCode === 1) {
  20222. $async$currentError = $async$result;
  20223. $async$goto = $async$handler;
  20224. }
  20225. while (true)
  20226. switch ($async$goto) {
  20227. case 0:
  20228. // Function start
  20229. importer = new F.FilesystemImporter(D.absolute("."));
  20230. if (ifModified)
  20231. try {
  20232. if (source != null && destination != null && !graph.modifiedSince$3($.$get$context().toUri$1(source), B.modificationTime(destination), importer)) {
  20233. // goto return
  20234. $async$goto = 1;
  20235. break;
  20236. }
  20237. } catch (exception) {
  20238. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  20239. throw exception;
  20240. }
  20241. syntax = null;
  20242. if (H._asBoolS(options._ifParsed$1("indented")) === true)
  20243. syntax = C.Syntax_Sass;
  20244. else if (source != null)
  20245. syntax = M.Syntax_forPath(source);
  20246. else
  20247. syntax = C.Syntax_SCSS;
  20248. result = null;
  20249. $async$handler = 4;
  20250. t1 = options._options;
  20251. $async$goto = H._asBoolS(t1.$index(0, "async")) ? 7 : 9;
  20252. break;
  20253. case 7:
  20254. // then
  20255. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncImporter);
  20256. t3 = type$.legacy_List_legacy_String._as(t1.$index(0, "load-path"));
  20257. t4 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20258. t3 = O.AsyncImportCache__toImporters(t2, t3, null);
  20259. t2 = t4 == null ? C.StderrLogger_false : t4;
  20260. t4 = type$.legacy_Uri;
  20261. importCache = new O.AsyncImportCache(t3, t2, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_Stylesheet_2), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_ImporterResult_2));
  20262. $async$goto = source == null ? 10 : 12;
  20263. break;
  20264. case 10:
  20265. // then
  20266. $async$goto = 13;
  20267. return P._asyncAwait(B.readStdin(), $async$compileStylesheet);
  20268. case 13:
  20269. // returning from await.
  20270. t2 = $async$result;
  20271. t3 = syntax;
  20272. t4 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20273. t5 = D.absolute(".");
  20274. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  20275. t7 = options.get$emitSourceMap();
  20276. $async$goto = 14;
  20277. return P._asyncAwait(X.compileStringAsync(t2, H._asBoolS(t1.$index(0, "charset")), importCache, new F.FilesystemImporter(t5), t4, t7, t6, t3), $async$compileStylesheet);
  20278. case 14:
  20279. // returning from await.
  20280. result0 = $async$result;
  20281. // goto join
  20282. $async$goto = 11;
  20283. break;
  20284. case 12:
  20285. // else
  20286. t2 = syntax;
  20287. t3 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20288. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  20289. t5 = options.get$emitSourceMap();
  20290. $async$goto = 15;
  20291. return P._asyncAwait(X.compileAsync(source, H._asBoolS(t1.$index(0, "charset")), importCache, t3, t5, t4, t2), $async$compileStylesheet);
  20292. case 15:
  20293. // returning from await.
  20294. result0 = $async$result;
  20295. case 11:
  20296. // join
  20297. result = result0;
  20298. // goto join
  20299. $async$goto = 8;
  20300. break;
  20301. case 9:
  20302. // else
  20303. $async$goto = source == null ? 16 : 18;
  20304. break;
  20305. case 16:
  20306. // then
  20307. $async$goto = 19;
  20308. return P._asyncAwait(B.readStdin(), $async$compileStylesheet);
  20309. case 19:
  20310. // returning from await.
  20311. t2 = $async$result;
  20312. t3 = syntax;
  20313. t4 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20314. t5 = D.absolute(".");
  20315. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  20316. t7 = options.get$emitSourceMap();
  20317. t1 = H._asBoolS(t1.$index(0, "charset"));
  20318. stylesheet = V.Stylesheet_Stylesheet$parse(t2, t3 == null ? C.Syntax_SCSS : t3, t4, null);
  20319. result0 = U._compileStylesheet(stylesheet, t4, graph.importCache, null, new F.FilesystemImporter(t5), null, t6, true, null, null, t7, t1);
  20320. // goto join
  20321. $async$goto = 17;
  20322. break;
  20323. case 18:
  20324. // else
  20325. t2 = syntax;
  20326. t3 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  20327. importCache = graph.importCache;
  20328. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  20329. t5 = options.get$emitSourceMap();
  20330. t1 = H._asBoolS(t1.$index(0, "charset"));
  20331. t6 = t2 == null || t2 === M.Syntax_forPath(source);
  20332. if (t6) {
  20333. t2 = D.absolute(".");
  20334. t6 = $.$get$context();
  20335. stylesheet = importCache.importCanonical$3(new F.FilesystemImporter(t2), t6.toUri$1(t6.canonicalize$1(source)), t6.toUri$1(source));
  20336. } else {
  20337. t6 = B.readFile(source);
  20338. if (t2 == null)
  20339. t2 = M.Syntax_forPath(source);
  20340. stylesheet = V.Stylesheet_Stylesheet$parse(t6, t2, t3, $.$get$context().toUri$1(source));
  20341. }
  20342. result0 = U._compileStylesheet(stylesheet, t3, importCache, null, new F.FilesystemImporter(D.absolute(".")), null, t4, true, null, null, t5, t1);
  20343. case 17:
  20344. // join
  20345. result = result0;
  20346. case 8:
  20347. // join
  20348. $async$handler = 2;
  20349. // goto after finally
  20350. $async$goto = 6;
  20351. break;
  20352. case 4:
  20353. // catch
  20354. $async$handler = 3;
  20355. $async$exception = $async$currentError;
  20356. t1 = H.unwrapException($async$exception);
  20357. if (t1 instanceof E.SassException) {
  20358. error = t1;
  20359. if (options.get$emitErrorCss())
  20360. if (destination == null)
  20361. P.print(error.toCssString$0());
  20362. else {
  20363. B.ensureDir($.$get$context().dirname$1(destination));
  20364. B.writeFile(destination, error.toCssString$0() + "\n");
  20365. }
  20366. throw $async$exception;
  20367. } else
  20368. throw $async$exception;
  20369. // goto after finally
  20370. $async$goto = 6;
  20371. break;
  20372. case 3:
  20373. // uncaught
  20374. // goto rethrow
  20375. $async$goto = 2;
  20376. break;
  20377. case 6:
  20378. // after finally
  20379. css = result._serialize.css + D._writeSourceMap(options, result._serialize.sourceMap, destination);
  20380. if (destination == null) {
  20381. if (css.length !== 0)
  20382. P.print(css);
  20383. } else {
  20384. B.ensureDir($.$get$context().dirname$1(destination));
  20385. B.writeFile(destination, css + "\n");
  20386. }
  20387. t1 = options._options;
  20388. if (!H._asBoolS(t1.$index(0, "quiet")))
  20389. t1 = !H._asBoolS(t1.$index(0, "update")) && !H._asBoolS(t1.$index(0, "watch"));
  20390. else
  20391. t1 = true;
  20392. if (t1) {
  20393. // goto return
  20394. $async$goto = 1;
  20395. break;
  20396. }
  20397. buffer = new P.StringBuffer("");
  20398. t1 = options.get$color() ? buffer._contents = "\x1b[32m" : "";
  20399. if (source == null)
  20400. sourceName = "stdin";
  20401. else {
  20402. t2 = $.$get$context();
  20403. sourceName = t2.prettyUri$1(t2.toUri$1(source));
  20404. }
  20405. t2 = $.$get$context();
  20406. destinationName = t2.prettyUri$1(t2.toUri$1(destination));
  20407. t1 += "Compiled " + H.S(sourceName) + " to " + H.S(destinationName) + ".";
  20408. buffer._contents = t1;
  20409. if (options.get$color())
  20410. buffer._contents = t1 + "\x1b[0m";
  20411. P.print(buffer);
  20412. case 1:
  20413. // return
  20414. return P._asyncReturn($async$returnValue, $async$completer);
  20415. case 2:
  20416. // rethrow
  20417. return P._asyncRethrow($async$currentError, $async$completer);
  20418. }
  20419. });
  20420. return P._asyncStartSync($async$compileStylesheet, $async$completer);
  20421. },
  20422. _writeSourceMap: function(options, sourceMap, destination) {
  20423. var t1, sourceMapText, url, sourceMapPath, t2;
  20424. if (sourceMap == null)
  20425. return "";
  20426. if (destination != null) {
  20427. t1 = $.$get$context();
  20428. sourceMap.targetUrl = t1.toUri$1(X.ParsedPath_ParsedPath$parse(destination, t1.style).get$basename()).toString$0(0);
  20429. }
  20430. B.mapInPlace(sourceMap.urls, new D._writeSourceMap_closure(options, destination));
  20431. t1 = options._options;
  20432. sourceMapText = C.C_JsonCodec.encode$2$toEncodable(sourceMap.toJson$1$includeSourceContents(H._asBoolS(t1.$index(0, "embed-sources"))), null);
  20433. if (H._asBoolS(t1.$index(0, "embed-source-map")))
  20434. url = P.Uri_Uri$dataFromString(sourceMapText, C.C_Utf8Codec, "application/json");
  20435. else {
  20436. sourceMapPath = J.$add$ansx(destination, ".map");
  20437. t2 = $.$get$context();
  20438. B.ensureDir(t2.dirname$1(sourceMapPath));
  20439. B.writeFile(sourceMapPath, sourceMapText);
  20440. url = t2.toUri$1(t2.relative$2$from(sourceMapPath, t2.dirname$1(destination)));
  20441. }
  20442. t1 = (J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0) === C.OutputStyle_compressed ? "" : "\n\n";
  20443. return t1 + ("/*# sourceMappingURL=" + url.toString$0(0) + " */");
  20444. },
  20445. _writeSourceMap_closure: function _writeSourceMap_closure(t0, t1) {
  20446. this.options = t0;
  20447. this.destination = t1;
  20448. },
  20449. _function3: function($name, $arguments, callback) {
  20450. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:list");
  20451. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  20452. },
  20453. closure42: function closure42() {
  20454. },
  20455. closure41: function closure41() {
  20456. },
  20457. closure40: function closure40() {
  20458. },
  20459. closure39: function closure39() {
  20460. },
  20461. closure38: function closure38() {
  20462. },
  20463. closure37: function closure37() {
  20464. },
  20465. _closure4: function _closure4() {
  20466. },
  20467. _closure5: function _closure5(t0) {
  20468. this._box_0 = t0;
  20469. },
  20470. _closure6: function _closure6(t0) {
  20471. this._box_0 = t0;
  20472. },
  20473. closure36: function closure36() {
  20474. },
  20475. closure34: function closure34() {
  20476. },
  20477. closure35: function closure35() {
  20478. },
  20479. _codepointForIndex: function(index, lengthInCodepoints, allowNegative) {
  20480. var result;
  20481. if (index === 0)
  20482. return 0;
  20483. if (index > 0)
  20484. return Math.min(index - 1, H.checkNum(lengthInCodepoints));
  20485. result = lengthInCodepoints + index;
  20486. if (result < 0 && !allowNegative)
  20487. return 0;
  20488. return result;
  20489. },
  20490. _function: function($name, $arguments, callback) {
  20491. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:string");
  20492. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  20493. },
  20494. closure8: function closure8() {
  20495. },
  20496. closure7: function closure7() {
  20497. },
  20498. closure3: function closure3() {
  20499. },
  20500. closure2: function closure2() {
  20501. },
  20502. closure1: function closure1() {
  20503. },
  20504. closure0: function closure0() {
  20505. },
  20506. closure6: function closure6() {
  20507. },
  20508. closure5: function closure5() {
  20509. },
  20510. closure4: function closure4() {
  20511. },
  20512. SourceMapBuffer0: function SourceMapBuffer0(t0, t1, t2) {
  20513. var _ = this;
  20514. _._source_map_buffer0$_buffer = t0;
  20515. _._source_map_buffer0$_entries = t1;
  20516. _._sourceFiles = t2;
  20517. _._source_map_buffer0$_column = _._source_map_buffer0$_line = 0;
  20518. _._source_map_buffer0$_inSpan = false;
  20519. },
  20520. SourceMapBuffer__addEntry_closure: function SourceMapBuffer__addEntry_closure(t0) {
  20521. this.source = t0;
  20522. },
  20523. SourceMapBuffer_buildSourceMap_closure: function SourceMapBuffer_buildSourceMap_closure(t0, t1) {
  20524. this._box_0 = t0;
  20525. this.prefixLength = t1;
  20526. },
  20527. SassArgumentList: function SassArgumentList(t0, t1, t2, t3) {
  20528. var _ = this;
  20529. _._keywords = t0;
  20530. _._wereKeywordsAccessed = false;
  20531. _._list$_contents = t1;
  20532. _.separator = t2;
  20533. _.hasBrackets = t3;
  20534. },
  20535. SassList$: function(contents, separator, brackets) {
  20536. var t1 = new D.SassList(P.List_List$unmodifiable(contents, type$.legacy_Value), separator, brackets);
  20537. t1.SassList$3$brackets(contents, separator, brackets);
  20538. return t1;
  20539. },
  20540. SassList: function SassList(t0, t1, t2) {
  20541. this._list$_contents = t0;
  20542. this.separator = t1;
  20543. this.hasBrackets = t2;
  20544. },
  20545. SassList_isBlank_closure: function SassList_isBlank_closure() {
  20546. },
  20547. ListSeparator: function ListSeparator(t0) {
  20548. this._list$_name = t0;
  20549. },
  20550. SassString$: function(text, quotes) {
  20551. return new D.SassString(text, quotes);
  20552. },
  20553. SassString: function SassString(t0, t1) {
  20554. this.text = t0;
  20555. this.hasQuotes = t1;
  20556. this._sassLength = null;
  20557. },
  20558. RecursiveStatementVisitor: function RecursiveStatementVisitor() {
  20559. },
  20560. SourceLocationMixin: function SourceLocationMixin() {
  20561. },
  20562. SassArgumentList0: function SassArgumentList0(t0, t1, t2, t3) {
  20563. var _ = this;
  20564. _._argument_list$_keywords = t0;
  20565. _._argument_list$_wereKeywordsAccessed = false;
  20566. _._list1$_contents = t1;
  20567. _.separator = t2;
  20568. _.hasBrackets = t3;
  20569. },
  20570. Callable0: function Callable0() {
  20571. },
  20572. ErrorRule0: function ErrorRule0(t0, t1) {
  20573. this.expression = t0;
  20574. this.span = t1;
  20575. },
  20576. Exports: function Exports() {
  20577. },
  20578. ListExpression0: function ListExpression0(t0, t1, t2, t3) {
  20579. var _ = this;
  20580. _.contents = t0;
  20581. _.separator = t1;
  20582. _.hasBrackets = t2;
  20583. _.span = t3;
  20584. },
  20585. ListExpression_toString_closure0: function ListExpression_toString_closure0(t0) {
  20586. this.$this = t0;
  20587. },
  20588. _function10: function($name, $arguments, callback) {
  20589. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:list");
  20590. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  20591. },
  20592. closure148: function closure148() {
  20593. },
  20594. closure147: function closure147() {
  20595. },
  20596. closure146: function closure146() {
  20597. },
  20598. closure145: function closure145() {
  20599. },
  20600. closure144: function closure144() {
  20601. },
  20602. closure143: function closure143() {
  20603. },
  20604. _closure18: function _closure18() {
  20605. },
  20606. _closure19: function _closure19(t0) {
  20607. this._box_0 = t0;
  20608. },
  20609. _closure20: function _closure20(t0) {
  20610. this._box_0 = t0;
  20611. },
  20612. closure142: function closure142() {
  20613. },
  20614. closure140: function closure140() {
  20615. },
  20616. closure141: function closure141() {
  20617. },
  20618. SelectorList$0: function(components) {
  20619. var t1 = P.List_List$unmodifiable(components, type$.legacy_ComplexSelector_2);
  20620. if (t1.length === 0)
  20621. H.throwExpression(P.ArgumentError$("components may not be empty."));
  20622. return new D.SelectorList0(t1);
  20623. },
  20624. SelectorList_SelectorList$parse0: function(contents, allowParent, allowPlaceholder, logger) {
  20625. var t1 = S.SpanScanner$(contents, null);
  20626. return new T.SelectorParser0(allowParent, allowPlaceholder, t1, logger == null ? C.C_StderrLogger : logger).parse$0();
  20627. },
  20628. SelectorList0: function SelectorList0(t0) {
  20629. this.components = t0;
  20630. },
  20631. SelectorList_isInvisible_closure0: function SelectorList_isInvisible_closure0() {
  20632. },
  20633. SelectorList_asSassList_closure0: function SelectorList_asSassList_closure0() {
  20634. },
  20635. SelectorList_asSassList__closure0: function SelectorList_asSassList__closure0() {
  20636. },
  20637. SelectorList_unify_closure0: function SelectorList_unify_closure0(t0) {
  20638. this.other = t0;
  20639. },
  20640. SelectorList_unify__closure0: function SelectorList_unify__closure0(t0) {
  20641. this.complex1 = t0;
  20642. },
  20643. SelectorList_unify___closure0: function SelectorList_unify___closure0() {
  20644. },
  20645. SelectorList_resolveParentSelectors_closure0: function SelectorList_resolveParentSelectors_closure0(t0, t1, t2) {
  20646. this.$this = t0;
  20647. this.implicitParent = t1;
  20648. this.parent = t2;
  20649. },
  20650. SelectorList_resolveParentSelectors__closure1: function SelectorList_resolveParentSelectors__closure1(t0) {
  20651. this.complex = t0;
  20652. },
  20653. SelectorList_resolveParentSelectors__closure2: function SelectorList_resolveParentSelectors__closure2(t0) {
  20654. this._box_0 = t0;
  20655. },
  20656. SelectorList__complexContainsParentSelector_closure0: function SelectorList__complexContainsParentSelector_closure0() {
  20657. },
  20658. SelectorList__complexContainsParentSelector__closure0: function SelectorList__complexContainsParentSelector__closure0() {
  20659. },
  20660. SelectorList__resolveParentSelectorsCompound_closure2: function SelectorList__resolveParentSelectorsCompound_closure2() {
  20661. },
  20662. SelectorList__resolveParentSelectorsCompound_closure3: function SelectorList__resolveParentSelectorsCompound_closure3(t0) {
  20663. this.parent = t0;
  20664. },
  20665. SelectorList__resolveParentSelectorsCompound_closure4: function SelectorList__resolveParentSelectorsCompound_closure4(t0, t1) {
  20666. this.compound = t0;
  20667. this.resolvedMembers = t1;
  20668. },
  20669. _NodeSassList: function _NodeSassList() {
  20670. },
  20671. closure228: function closure228() {
  20672. },
  20673. _closure31: function _closure31() {
  20674. },
  20675. closure229: function closure229() {
  20676. },
  20677. closure230: function closure230() {
  20678. },
  20679. closure231: function closure231() {
  20680. },
  20681. closure232: function closure232() {
  20682. },
  20683. closure233: function closure233() {
  20684. },
  20685. closure234: function closure234() {
  20686. },
  20687. SassList$0: function(contents, separator, brackets) {
  20688. var t1 = new D.SassList0(P.List_List$unmodifiable(contents, type$.legacy_Value_2), separator, brackets);
  20689. t1.SassList$3$brackets0(contents, separator, brackets);
  20690. return t1;
  20691. },
  20692. SassList0: function SassList0(t0, t1, t2) {
  20693. this._list1$_contents = t0;
  20694. this.separator = t1;
  20695. this.hasBrackets = t2;
  20696. },
  20697. SassList_isBlank_closure0: function SassList_isBlank_closure0() {
  20698. },
  20699. ListSeparator0: function ListSeparator0(t0) {
  20700. this._list1$_name = t0;
  20701. },
  20702. PseudoSelector$0: function($name, argument, element, selector) {
  20703. var t1 = !element,
  20704. t2 = t1 && !D.PseudoSelector__isFakePseudoElement0($name);
  20705. return new D.PseudoSelector0($name, B.unvendor0($name), t2, t1, argument, selector);
  20706. },
  20707. PseudoSelector__isFakePseudoElement0: function($name) {
  20708. switch (C.JSString_methods._codeUnitAt$1($name, 0)) {
  20709. case 97:
  20710. case 65:
  20711. return B.equalsIgnoreCase0($name, "after");
  20712. case 98:
  20713. case 66:
  20714. return B.equalsIgnoreCase0($name, "before");
  20715. case 102:
  20716. case 70:
  20717. return B.equalsIgnoreCase0($name, "first-line") || B.equalsIgnoreCase0($name, "first-letter");
  20718. default:
  20719. return false;
  20720. }
  20721. },
  20722. PseudoSelector0: function PseudoSelector0(t0, t1, t2, t3, t4, t5) {
  20723. var _ = this;
  20724. _.name = t0;
  20725. _.normalizedName = t1;
  20726. _.isClass = t2;
  20727. _.isSyntacticClass = t3;
  20728. _.argument = t4;
  20729. _.selector = t5;
  20730. _._pseudo0$_maxSpecificity = _._pseudo0$_minSpecificity = null;
  20731. },
  20732. QualifiedName0: function QualifiedName0(t0, t1) {
  20733. this.name = t0;
  20734. this.namespace = t1;
  20735. },
  20736. SourceMapBuffer: function SourceMapBuffer(t0, t1, t2) {
  20737. var _ = this;
  20738. _._source_map_buffer$_buffer = t0;
  20739. _._entries = t1;
  20740. _._source_map_buffer$_sourceFiles = t2;
  20741. _._column = _._line = 0;
  20742. _._inSpan = false;
  20743. },
  20744. SourceMapBuffer__addEntry_closure0: function SourceMapBuffer__addEntry_closure0(t0) {
  20745. this.source = t0;
  20746. },
  20747. SourceMapBuffer_buildSourceMap_closure0: function SourceMapBuffer_buildSourceMap_closure0(t0, t1) {
  20748. this._box_0 = t0;
  20749. this.prefixLength = t1;
  20750. },
  20751. StringExpression0: function StringExpression0(t0, t1) {
  20752. this.text = t0;
  20753. this.hasQuotes = t1;
  20754. },
  20755. _codepointForIndex0: function(index, lengthInCodepoints, allowNegative) {
  20756. var result;
  20757. if (index === 0)
  20758. return 0;
  20759. if (index > 0)
  20760. return Math.min(index - 1, H.checkNum(lengthInCodepoints));
  20761. result = lengthInCodepoints + index;
  20762. if (result < 0 && !allowNegative)
  20763. return 0;
  20764. return result;
  20765. },
  20766. _function6: function($name, $arguments, callback) {
  20767. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:string");
  20768. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  20769. },
  20770. closure114: function closure114() {
  20771. },
  20772. closure113: function closure113() {
  20773. },
  20774. closure109: function closure109() {
  20775. },
  20776. closure108: function closure108() {
  20777. },
  20778. closure107: function closure107() {
  20779. },
  20780. closure106: function closure106() {
  20781. },
  20782. closure112: function closure112() {
  20783. },
  20784. closure111: function closure111() {
  20785. },
  20786. closure110: function closure110() {
  20787. },
  20788. _NodeSassString: function _NodeSassString() {
  20789. },
  20790. closure210: function closure210() {
  20791. },
  20792. closure211: function closure211() {
  20793. },
  20794. closure212: function closure212() {
  20795. },
  20796. closure213: function closure213() {
  20797. },
  20798. SassString$0: function(text, quotes) {
  20799. return new D.SassString0(text, quotes);
  20800. },
  20801. SassString0: function SassString0(t0, t1) {
  20802. this.text = t0;
  20803. this.hasQuotes = t1;
  20804. this._string$_sassLength = null;
  20805. },
  20806. current: function() {
  20807. var exception, t1, path, lastIndex, uri = null;
  20808. try {
  20809. uri = P.Uri_base();
  20810. } catch (exception) {
  20811. if (type$.legacy_Exception._is(H.unwrapException(exception))) {
  20812. t1 = $._current;
  20813. if (t1 != null)
  20814. return t1;
  20815. throw exception;
  20816. } else
  20817. throw exception;
  20818. }
  20819. if (J.$eq$(uri, $._currentUriBase))
  20820. return $._current;
  20821. $._currentUriBase = uri;
  20822. if ($.$get$Style_platform() == $.$get$Style_url())
  20823. t1 = $._current = uri.resolve$1(".").toString$0(0);
  20824. else {
  20825. path = uri.toFilePath$0();
  20826. lastIndex = path.length - 1;
  20827. t1 = $._current = lastIndex === 0 ? path : C.JSString_methods.substring$2(path, 0, lastIndex);
  20828. }
  20829. return t1;
  20830. },
  20831. absolute: function(part1) {
  20832. var _null = null;
  20833. return $.$get$context().absolute$7(part1, _null, _null, _null, _null, _null, _null);
  20834. },
  20835. dirname: function(path) {
  20836. return $.$get$context().dirname$1(path);
  20837. },
  20838. join: function(part1, part2, part3) {
  20839. var _null = null;
  20840. return $.$get$context().join$8(0, part1, part2, part3, _null, _null, _null, _null, _null);
  20841. }
  20842. },
  20843. A = {MapExpression: function MapExpression(t0, t1) {
  20844. this.pairs = t0;
  20845. this.span = t1;
  20846. }, MapExpression_toString_closure: function MapExpression_toString_closure() {
  20847. }, IncludeRule: function IncludeRule(t0, t1, t2, t3, t4) {
  20848. var _ = this;
  20849. _.namespace = t0;
  20850. _.name = t1;
  20851. _.$arguments = t2;
  20852. _.content = t3;
  20853. _.span = t4;
  20854. }, Configuration: function Configuration(t0, t1, t2) {
  20855. this._values = t0;
  20856. this.nodeWithSpan = t1;
  20857. this.isImplicit = t2;
  20858. },
  20859. watch: function(options, graph) {
  20860. var $async$goto = 0,
  20861. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  20862. $async$returnValue, t2, t3, t4, t5, t6, dirWatcher, watcher, destination, t1;
  20863. var $async$watch = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20864. if ($async$errorCode === 1)
  20865. return P._asyncRethrow($async$result, $async$completer);
  20866. while (true)
  20867. switch ($async$goto) {
  20868. case 0:
  20869. // Function start
  20870. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  20871. for (options._ensureSources$0(), t2 = J.get$iterator$ax(options._sourceDirectoriesToDestinations.get$keys()); t2.moveNext$0();)
  20872. t1.push(t2.get$current(t2));
  20873. for (options._ensureSources$0(), t2 = type$.legacy_String, t3 = J.map$1$1$ax(options._sourcesToDestinations.get$keys(), D.path__dirname$closure(), t2), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  20874. t1.push(t3.get$current(t3));
  20875. for (t3 = options._options, t4 = J.get$iterator$ax(type$.legacy_List_legacy_String._as(t3.$index(0, "load-path"))); t4.moveNext$0();)
  20876. t1.push(t4.get$current(t4));
  20877. t4 = H._asBoolS(t3.$index(0, "poll"));
  20878. t5 = type$.legacy_Stream_legacy_WatchEvent;
  20879. t6 = new L.StreamGroup(C._StreamGroupState_dormant, P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.legacy_StreamSubscription_legacy_WatchEvent), type$.StreamGroup_legacy_WatchEvent);
  20880. t6._controller = P.StreamController_StreamController(t6.get$_onCancel(), t6.get$_onListen(), t6.get$_onPause(), t6.get$_onResume(), true, type$.legacy_WatchEvent);
  20881. dirWatcher = new U.MultiDirWatcher(P.LinkedHashMap_LinkedHashMap$_empty(t2, t5), t6, t4);
  20882. $async$goto = 3;
  20883. return P._asyncAwait(P.Future_wait(new H.MappedListIterable(t1, new A.watch_closure(dirWatcher), type$.MappedListIterable_of_legacy_String_and_legacy_Future_void), type$.void), $async$watch);
  20884. case 3:
  20885. // returning from await.
  20886. watcher = new A._Watcher(options, graph);
  20887. options._ensureSources$0(), t1 = J.get$iterator$ax(options._sourcesToDestinations.get$keys());
  20888. case 4:
  20889. // for condition
  20890. if (!t1.moveNext$0()) {
  20891. // goto after for
  20892. $async$goto = 5;
  20893. break;
  20894. }
  20895. t2 = t1.get$current(t1);
  20896. options._ensureSources$0();
  20897. destination = options._sourcesToDestinations.$index(0, t2);
  20898. t4 = $.$get$context();
  20899. graph.addCanonical$4$recanonicalize(new F.FilesystemImporter(t4.absolute$7(".", null, null, null, null, null, null)), t4.toUri$1(t4.canonicalize$1(t2)), t4.toUri$1(t2), false);
  20900. $async$goto = 6;
  20901. return P._asyncAwait(watcher.compile$3$ifModified(t2, destination, true), $async$watch);
  20902. case 6:
  20903. // returning from await.
  20904. if (!$async$result && H._asBoolS(t3.$index(0, "stop-on-error"))) {
  20905. t1 = dirWatcher._group._controller;
  20906. t1._subscribe$4(null, null, null, false).cancel$0();
  20907. // goto return
  20908. $async$goto = 1;
  20909. break;
  20910. }
  20911. // goto for condition
  20912. $async$goto = 4;
  20913. break;
  20914. case 5:
  20915. // after for
  20916. P.print("Sass is watching for changes. Press Ctrl-C to stop.\n");
  20917. $async$goto = 7;
  20918. return P._asyncAwait(watcher.watch$1(0, dirWatcher), $async$watch);
  20919. case 7:
  20920. // returning from await.
  20921. case 1:
  20922. // return
  20923. return P._asyncReturn($async$returnValue, $async$completer);
  20924. }
  20925. });
  20926. return P._asyncStartSync($async$watch, $async$completer);
  20927. },
  20928. watch_closure: function watch_closure(t0) {
  20929. this.dirWatcher = t0;
  20930. },
  20931. _Watcher: function _Watcher(t0, t1) {
  20932. this._watch$_options = t0;
  20933. this._graph = t1;
  20934. },
  20935. _Watcher__debounceEvents_closure: function _Watcher__debounceEvents_closure() {
  20936. },
  20937. _Watcher__debounceEvents__closure: function _Watcher__debounceEvents__closure(t0) {
  20938. this.typeForPath = t0;
  20939. },
  20940. MergedExtension_merge: function(left, right) {
  20941. var t2, t3, t4,
  20942. t1 = left.extender;
  20943. if (!J.$eq$(t1, right.extender) || !J.$eq$(left.target, right.target))
  20944. throw H.wrapException(P.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension."));
  20945. t2 = left.mediaContext;
  20946. t3 = t2 == null;
  20947. if (!t3) {
  20948. t4 = right.mediaContext;
  20949. t4 = t4 != null && !C.C_ListEquality.equals$2(t2, t4);
  20950. } else
  20951. t4 = false;
  20952. if (t4)
  20953. throw H.wrapException(E.SassException$("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span));
  20954. if (right.isOptional && right.mediaContext == null)
  20955. return left;
  20956. if (left.isOptional && t3)
  20957. return right;
  20958. if (t3)
  20959. t2 = right.mediaContext;
  20960. t3 = left.specificity;
  20961. if (t3 == null)
  20962. t3 = t1.get$maxSpecificity();
  20963. return new A.MergedExtension(left, right, t1, left.target, t3, true, false, t2, left.extenderSpan, left.span);
  20964. },
  20965. MergedExtension: function MergedExtension(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
  20966. var _ = this;
  20967. _.left = t0;
  20968. _.right = t1;
  20969. _.extender = t2;
  20970. _.target = t3;
  20971. _.specificity = t4;
  20972. _.isOptional = t5;
  20973. _.isOriginal = t6;
  20974. _.mediaContext = t7;
  20975. _.extenderSpan = t8;
  20976. _.span = t9;
  20977. },
  20978. _function2: function($name, $arguments, callback) {
  20979. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:map");
  20980. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  20981. },
  20982. closure33: function closure33() {
  20983. },
  20984. closure32: function closure32() {
  20985. },
  20986. closure30: function closure30() {
  20987. },
  20988. closure31: function closure31() {
  20989. },
  20990. closure29: function closure29() {
  20991. },
  20992. closure28: function closure28() {
  20993. },
  20994. closure27: function closure27() {
  20995. },
  20996. SassMap: function SassMap(t0) {
  20997. this.contents = t0;
  20998. },
  20999. SassMap_asList_closure: function SassMap_asList_closure(t0) {
  21000. this.result = t0;
  21001. },
  21002. Frame_Frame$parseVM: function(frame) {
  21003. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseVM_closure(frame));
  21004. },
  21005. Frame_Frame$parseV8: function(frame) {
  21006. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseV8_closure(frame));
  21007. },
  21008. Frame_Frame$_parseFirefoxEval: function(frame) {
  21009. return A.Frame__catchFormatException(frame, new A.Frame_Frame$_parseFirefoxEval_closure(frame));
  21010. },
  21011. Frame_Frame$parseFirefox: function(frame) {
  21012. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFirefox_closure(frame));
  21013. },
  21014. Frame_Frame$parseFriendly: function(frame) {
  21015. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFriendly_closure(frame));
  21016. },
  21017. Frame__uriOrPathToUri: function(uriOrPath) {
  21018. if (J.getInterceptor$asx(uriOrPath).contains$1(uriOrPath, $.$get$Frame__uriRegExp()))
  21019. return P.Uri_parse(uriOrPath);
  21020. else if (C.JSString_methods.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()))
  21021. return P._Uri__Uri$file(uriOrPath, true);
  21022. else if (C.JSString_methods.startsWith$1(uriOrPath, "/"))
  21023. return P._Uri__Uri$file(uriOrPath, false);
  21024. if (C.JSString_methods.contains$1(uriOrPath, "\\"))
  21025. return $.$get$windows().toUri$1(uriOrPath);
  21026. return P.Uri_parse(uriOrPath);
  21027. },
  21028. Frame__catchFormatException: function(text, body) {
  21029. var t1, exception;
  21030. try {
  21031. t1 = body.call$0();
  21032. return t1;
  21033. } catch (exception) {
  21034. if (type$.legacy_FormatException._is(H.unwrapException(exception)))
  21035. return new N.UnparsedFrame(P._Uri__Uri(null, "unparsed", null, null), text);
  21036. else
  21037. throw exception;
  21038. }
  21039. },
  21040. Frame: function Frame(t0, t1, t2, t3) {
  21041. var _ = this;
  21042. _.uri = t0;
  21043. _.line = t1;
  21044. _.column = t2;
  21045. _.member = t3;
  21046. },
  21047. Frame_Frame$parseVM_closure: function Frame_Frame$parseVM_closure(t0) {
  21048. this.frame = t0;
  21049. },
  21050. Frame_Frame$parseV8_closure: function Frame_Frame$parseV8_closure(t0) {
  21051. this.frame = t0;
  21052. },
  21053. Frame_Frame$parseV8_closure_parseLocation: function Frame_Frame$parseV8_closure_parseLocation(t0) {
  21054. this.frame = t0;
  21055. },
  21056. Frame_Frame$_parseFirefoxEval_closure: function Frame_Frame$_parseFirefoxEval_closure(t0) {
  21057. this.frame = t0;
  21058. },
  21059. Frame_Frame$parseFirefox_closure: function Frame_Frame$parseFirefox_closure(t0) {
  21060. this.frame = t0;
  21061. },
  21062. Frame_Frame$parseFriendly_closure: function Frame_Frame$parseFriendly_closure(t0) {
  21063. this.frame = t0;
  21064. },
  21065. AsciiGlyphSet: function AsciiGlyphSet() {
  21066. },
  21067. Configuration0: function Configuration0(t0, t1, t2) {
  21068. this._configuration$_values = t0;
  21069. this.nodeWithSpan = t1;
  21070. this.isImplicit = t2;
  21071. },
  21072. IncludeRule0: function IncludeRule0(t0, t1, t2, t3, t4) {
  21073. var _ = this;
  21074. _.namespace = t0;
  21075. _.name = t1;
  21076. _.$arguments = t2;
  21077. _.content = t3;
  21078. _.span = t4;
  21079. },
  21080. MapExpression0: function MapExpression0(t0, t1) {
  21081. this.pairs = t0;
  21082. this.span = t1;
  21083. },
  21084. MapExpression_toString_closure0: function MapExpression_toString_closure0() {
  21085. },
  21086. _function9: function($name, $arguments, callback) {
  21087. var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:map");
  21088. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  21089. },
  21090. closure139: function closure139() {
  21091. },
  21092. closure138: function closure138() {
  21093. },
  21094. closure136: function closure136() {
  21095. },
  21096. closure137: function closure137() {
  21097. },
  21098. closure135: function closure135() {
  21099. },
  21100. closure134: function closure134() {
  21101. },
  21102. closure133: function closure133() {
  21103. },
  21104. _NodeSassMap: function _NodeSassMap() {
  21105. },
  21106. closure221: function closure221() {
  21107. },
  21108. _closure29: function _closure29() {
  21109. },
  21110. _closure30: function _closure30() {
  21111. },
  21112. closure222: function closure222() {
  21113. },
  21114. closure223: function closure223() {
  21115. },
  21116. closure224: function closure224() {
  21117. },
  21118. closure225: function closure225() {
  21119. },
  21120. closure226: function closure226() {
  21121. },
  21122. closure227: function closure227() {
  21123. },
  21124. SassMap0: function SassMap0(t0) {
  21125. this.contents = t0;
  21126. },
  21127. SassMap_asList_closure0: function SassMap_asList_closure0(t0) {
  21128. this.result = t0;
  21129. },
  21130. MergedExtension_merge0: function(left, right) {
  21131. var t2, t3, t4,
  21132. t1 = left.extender;
  21133. if (!J.$eq$(t1, right.extender) || !J.$eq$(left.target, right.target))
  21134. throw H.wrapException(P.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension."));
  21135. t2 = left.mediaContext;
  21136. t3 = t2 == null;
  21137. if (!t3) {
  21138. t4 = right.mediaContext;
  21139. t4 = t4 != null && !C.C_ListEquality.equals$2(t2, t4);
  21140. } else
  21141. t4 = false;
  21142. if (t4)
  21143. throw H.wrapException(E.SassException$0("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span));
  21144. if (right.isOptional && right.mediaContext == null)
  21145. return left;
  21146. if (left.isOptional && t3)
  21147. return right;
  21148. if (t3)
  21149. t2 = right.mediaContext;
  21150. t3 = left.specificity;
  21151. if (t3 == null)
  21152. t3 = t1.get$maxSpecificity();
  21153. return new A.MergedExtension0(left, right, t1, left.target, t3, true, false, t2, left.extenderSpan, left.span);
  21154. },
  21155. MergedExtension0: function MergedExtension0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
  21156. var _ = this;
  21157. _.left = t0;
  21158. _.right = t1;
  21159. _.extender = t2;
  21160. _.target = t3;
  21161. _.specificity = t4;
  21162. _.isOptional = t5;
  21163. _.isOriginal = t6;
  21164. _.mediaContext = t7;
  21165. _.extenderSpan = t8;
  21166. _.span = t9;
  21167. }
  21168. },
  21169. S = {VariableExpression: function VariableExpression(t0, t1, t2) {
  21170. this.namespace = t0;
  21171. this.name = t1;
  21172. this.span = t2;
  21173. },
  21174. ComplexSelector$: function(components, lineBreak) {
  21175. var t1 = P.List_List$unmodifiable(components, type$.legacy_ComplexSelectorComponent);
  21176. if (t1.length === 0)
  21177. H.throwExpression(P.ArgumentError$("components may not be empty."));
  21178. return new S.ComplexSelector(t1, lineBreak);
  21179. },
  21180. ComplexSelector: function ComplexSelector(t0, t1) {
  21181. var _ = this;
  21182. _.components = t0;
  21183. _.lineBreak = t1;
  21184. _._complex$_isInvisible = _._maxSpecificity = _._minSpecificity = null;
  21185. },
  21186. ComplexSelector_isInvisible_closure: function ComplexSelector_isInvisible_closure() {
  21187. },
  21188. ComplexSelectorComponent: function ComplexSelectorComponent() {
  21189. },
  21190. Combinator: function Combinator(t0) {
  21191. this._complex$_text = t0;
  21192. },
  21193. AsyncBuiltInCallable$mixin: function($name, $arguments, callback, url) {
  21194. var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
  21195. return new S.AsyncBuiltInCallable($name, new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new S.AsyncBuiltInCallable$mixin_closure(callback));
  21196. },
  21197. AsyncBuiltInCallable: function AsyncBuiltInCallable(t0, t1, t2) {
  21198. this.name = t0;
  21199. this._async_built_in$_arguments = t1;
  21200. this._async_built_in$_callback = t2;
  21201. },
  21202. AsyncBuiltInCallable$mixin_closure: function AsyncBuiltInCallable$mixin_closure(t0) {
  21203. this.callback = t0;
  21204. },
  21205. Extension$oneOff: function(extender, isOriginal, specificity) {
  21206. var _null = null;
  21207. return new S.Extension(extender, _null, specificity == null ? extender.get$maxSpecificity() : specificity, true, isOriginal, _null, _null, _null);
  21208. },
  21209. Extension: function Extension(t0, t1, t2, t3, t4, t5, t6, t7) {
  21210. var _ = this;
  21211. _.extender = t0;
  21212. _.target = t1;
  21213. _.specificity = t2;
  21214. _.isOptional = t3;
  21215. _.isOriginal = t4;
  21216. _.mediaContext = t5;
  21217. _.extenderSpan = t6;
  21218. _.span = t7;
  21219. },
  21220. StderrLogger: function StderrLogger(t0) {
  21221. this.color = t0;
  21222. },
  21223. SpanScanner$: function(string, sourceUrl) {
  21224. var t1, t2, t3, t4;
  21225. string.toString;
  21226. t1 = new H.CodeUnits(string);
  21227. t2 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  21228. t3 = typeof sourceUrl == "string";
  21229. t4 = t3 ? P.Uri_parse(sourceUrl) : type$.legacy_Uri._as(sourceUrl);
  21230. t2 = new Y.SourceFile(t4, t2, new Uint32Array(H._ensureNativeList(t1.toList$0(t1))));
  21231. t2.SourceFile$decoded$2$url(t1, sourceUrl);
  21232. t1 = t3 ? P.Uri_parse(sourceUrl) : type$.legacy_Uri._as(sourceUrl);
  21233. return new S.SpanScanner(t2, t1, string);
  21234. },
  21235. SpanScanner: function SpanScanner(t0, t1, t2) {
  21236. var _ = this;
  21237. _._sourceFile = t0;
  21238. _.sourceUrl = t1;
  21239. _.string = t2;
  21240. _._string_scanner$_position = 0;
  21241. _._lastMatchPosition = _._lastMatch = null;
  21242. },
  21243. _SpanScannerState: function _SpanScannerState(t0, t1) {
  21244. this._scanner = t0;
  21245. this.position = t1;
  21246. },
  21247. Tuple2: function Tuple2(t0, t1, t2) {
  21248. this.item1 = t0;
  21249. this.item2 = t1;
  21250. this.$ti = t2;
  21251. },
  21252. Tuple3: function Tuple3(t0, t1, t2, t3) {
  21253. var _ = this;
  21254. _.item1 = t0;
  21255. _.item2 = t1;
  21256. _.item3 = t2;
  21257. _.$ti = t3;
  21258. },
  21259. AsyncBuiltInCallable$mixin0: function($name, $arguments, callback, url) {
  21260. var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
  21261. return new S.AsyncBuiltInCallable0($name, new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new S.AsyncBuiltInCallable$mixin_closure0(callback));
  21262. },
  21263. AsyncBuiltInCallable0: function AsyncBuiltInCallable0(t0, t1, t2) {
  21264. this.name = t0;
  21265. this._async_built_in0$_arguments = t1;
  21266. this._async_built_in0$_callback = t2;
  21267. },
  21268. AsyncBuiltInCallable$mixin_closure0: function AsyncBuiltInCallable$mixin_closure0(t0) {
  21269. this.callback = t0;
  21270. },
  21271. ComplexSelector$0: function(components, lineBreak) {
  21272. var t1 = P.List_List$unmodifiable(components, type$.legacy_ComplexSelectorComponent_2);
  21273. if (t1.length === 0)
  21274. H.throwExpression(P.ArgumentError$("components may not be empty."));
  21275. return new S.ComplexSelector0(t1, lineBreak);
  21276. },
  21277. ComplexSelector0: function ComplexSelector0(t0, t1) {
  21278. var _ = this;
  21279. _.components = t0;
  21280. _.lineBreak = t1;
  21281. _._complex0$_isInvisible = _._complex0$_maxSpecificity = _._complex0$_minSpecificity = null;
  21282. },
  21283. ComplexSelector_isInvisible_closure0: function ComplexSelector_isInvisible_closure0() {
  21284. },
  21285. ComplexSelectorComponent0: function ComplexSelectorComponent0() {
  21286. },
  21287. Combinator0: function Combinator0(t0) {
  21288. this._complex0$_text = t0;
  21289. },
  21290. Extension$oneOff0: function(extender, isOriginal, specificity) {
  21291. var _null = null;
  21292. return new S.Extension0(extender, _null, specificity == null ? extender.get$maxSpecificity() : specificity, true, isOriginal, _null, _null, _null);
  21293. },
  21294. Extension0: function Extension0(t0, t1, t2, t3, t4, t5, t6, t7) {
  21295. var _ = this;
  21296. _.extender = t0;
  21297. _.target = t1;
  21298. _.specificity = t2;
  21299. _.isOptional = t3;
  21300. _.isOriginal = t4;
  21301. _.mediaContext = t5;
  21302. _.extenderSpan = t6;
  21303. _.span = t7;
  21304. },
  21305. StderrLogger0: function StderrLogger0() {
  21306. },
  21307. VariableExpression0: function VariableExpression0(t0, t1, t2) {
  21308. this.namespace = t0;
  21309. this.name = t1;
  21310. this.span = t2;
  21311. }
  21312. };
  21313. var holders = [C, H, J, P, N, Z, V, G, E, F, Y, L, Q, B, O, U, M, X, K, R, T, D, A, S];
  21314. hunkHelpers.setFunctionNamesIfNecessary(holders);
  21315. var $ = {};
  21316. H.JS_CONST.prototype = {};
  21317. J.Interceptor.prototype = {
  21318. $eq: function(receiver, other) {
  21319. return receiver === other;
  21320. },
  21321. get$hashCode: function(receiver) {
  21322. return H.Primitives_objectHashCode(receiver);
  21323. },
  21324. toString$0: function(receiver) {
  21325. return "Instance of '" + H.S(H.Primitives_objectTypeName(receiver)) + "'";
  21326. },
  21327. noSuchMethod$1: function(receiver, invocation) {
  21328. throw H.wrapException(P.NoSuchMethodError$(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
  21329. }
  21330. };
  21331. J.JSBool.prototype = {
  21332. toString$0: function(receiver) {
  21333. return String(receiver);
  21334. },
  21335. get$hashCode: function(receiver) {
  21336. return receiver ? 519018 : 218159;
  21337. },
  21338. $isbool: 1
  21339. };
  21340. J.JSNull.prototype = {
  21341. $eq: function(receiver, other) {
  21342. return null == other;
  21343. },
  21344. toString$0: function(receiver) {
  21345. return "null";
  21346. },
  21347. get$hashCode: function(receiver) {
  21348. return 0;
  21349. },
  21350. noSuchMethod$1: function(receiver, invocation) {
  21351. return this.super$Interceptor$noSuchMethod(receiver, invocation);
  21352. },
  21353. $isNull: 1
  21354. };
  21355. J.JavaScriptObject.prototype = {
  21356. get$hashCode: function(receiver) {
  21357. return 0;
  21358. },
  21359. toString$0: function(receiver) {
  21360. return String(receiver);
  21361. },
  21362. $is_SystemError: 1,
  21363. $is_NodeSassColor: 1,
  21364. $isJSError: 1,
  21365. $isJSFunction0: 1,
  21366. $isNodeImporterResult0: 1,
  21367. $is_NodeSassList: 1,
  21368. $is_NodeSassMap: 1,
  21369. $is_SystemError0: 1,
  21370. $is_NodeSassNumber: 1,
  21371. $isRenderOptions: 1,
  21372. $isRenderResult: 1,
  21373. $is_NodeSassString: 1,
  21374. get$isTTY: function(obj) {
  21375. return obj.isTTY;
  21376. },
  21377. get$write: function(obj) {
  21378. return obj.write;
  21379. },
  21380. write$1: function(receiver, p0) {
  21381. return receiver.write(p0);
  21382. },
  21383. createInterface$1: function(receiver, p0) {
  21384. return receiver.createInterface(p0);
  21385. },
  21386. on$2: function(receiver, p0, p1) {
  21387. return receiver.on(p0, p1);
  21388. },
  21389. get$close: function(obj) {
  21390. return obj.close;
  21391. },
  21392. close$0: function(receiver) {
  21393. return receiver.close();
  21394. },
  21395. setPrompt$1: function(receiver, p0) {
  21396. return receiver.setPrompt(p0);
  21397. },
  21398. readFileSync$2: function(receiver, p0, p1) {
  21399. return receiver.readFileSync(p0, p1);
  21400. },
  21401. writeFileSync$2: function(receiver, p0, p1) {
  21402. return receiver.writeFileSync(p0, p1);
  21403. },
  21404. existsSync$1: function(receiver, p0) {
  21405. return receiver.existsSync(p0);
  21406. },
  21407. mkdirSync$1: function(receiver, p0) {
  21408. return receiver.mkdirSync(p0);
  21409. },
  21410. statSync$1: function(receiver, p0) {
  21411. return receiver.statSync(p0);
  21412. },
  21413. unlinkSync$1: function(receiver, p0) {
  21414. return receiver.unlinkSync(p0);
  21415. },
  21416. readdirSync$1: function(receiver, p0) {
  21417. return receiver.readdirSync(p0);
  21418. },
  21419. isFile$0: function(receiver) {
  21420. return receiver.isFile();
  21421. },
  21422. isDirectory$0: function(receiver) {
  21423. return receiver.isDirectory();
  21424. },
  21425. get$mtime: function(obj) {
  21426. return obj.mtime;
  21427. },
  21428. getTime$0: function(receiver) {
  21429. return receiver.getTime();
  21430. },
  21431. get$message: function(obj) {
  21432. return obj.message;
  21433. },
  21434. message$1: function(receiver, p0) {
  21435. return receiver.message(p0);
  21436. },
  21437. get$code: function(obj) {
  21438. return obj.code;
  21439. },
  21440. get$syscall: function(obj) {
  21441. return obj.syscall;
  21442. },
  21443. get$path: function(obj) {
  21444. return obj.path;
  21445. },
  21446. get$platform: function(obj) {
  21447. return obj.platform;
  21448. },
  21449. get$env: function(obj) {
  21450. return obj.env;
  21451. },
  21452. watch$2: function(receiver, p0, p1) {
  21453. return receiver.watch(p0, p1);
  21454. },
  21455. call$2: function(receiver, p0, p1) {
  21456. return receiver.call(p0, p1);
  21457. },
  21458. call$1: function(receiver, p0) {
  21459. return receiver.call(p0);
  21460. },
  21461. call$0: function(receiver) {
  21462. return receiver.call();
  21463. },
  21464. call$1$1: function(receiver, p0) {
  21465. return receiver.call(p0);
  21466. },
  21467. call$3: function(receiver, p0, p1, p2) {
  21468. return receiver.call(p0, p1, p2);
  21469. },
  21470. call$1$3: function(receiver, p0, p1, p2) {
  21471. return receiver.call(p0, p1, p2);
  21472. },
  21473. call$2$2: function(receiver, p0, p1) {
  21474. return receiver.call(p0, p1);
  21475. },
  21476. call$1$0: function(receiver) {
  21477. return receiver.call();
  21478. },
  21479. apply$2: function(receiver, p0, p1) {
  21480. return receiver.apply(p0, p1);
  21481. },
  21482. get$file: function(obj) {
  21483. return obj.file;
  21484. },
  21485. get$contents: function(obj) {
  21486. return obj.contents;
  21487. },
  21488. get$dartValue: function(obj) {
  21489. return obj.dartValue;
  21490. },
  21491. set$dartValue: function(obj, v) {
  21492. return obj.dartValue = v;
  21493. },
  21494. set$render: function(obj, v) {
  21495. return obj.render = v;
  21496. },
  21497. set$renderSync: function(obj, v) {
  21498. return obj.renderSync = v;
  21499. },
  21500. set$info: function(obj, v) {
  21501. return obj.info = v;
  21502. },
  21503. set$types: function(obj, v) {
  21504. return obj.types = v;
  21505. },
  21506. set$NULL: function(obj, v) {
  21507. return obj.NULL = v;
  21508. },
  21509. set$TRUE: function(obj, v) {
  21510. return obj.TRUE = v;
  21511. },
  21512. set$FALSE: function(obj, v) {
  21513. return obj.FALSE = v;
  21514. },
  21515. get$current: function(obj) {
  21516. return obj.current;
  21517. },
  21518. yield$0: function(receiver) {
  21519. return receiver.yield();
  21520. },
  21521. run$1: function(receiver, p0) {
  21522. return receiver.run(p0);
  21523. },
  21524. run$0: function(receiver) {
  21525. return receiver.run();
  21526. },
  21527. get$options: function(obj) {
  21528. return obj.options;
  21529. },
  21530. get$data: function(obj) {
  21531. return obj.data;
  21532. },
  21533. get$includePaths: function(obj) {
  21534. return obj.includePaths;
  21535. },
  21536. get$indentType: function(obj) {
  21537. return obj.indentType;
  21538. },
  21539. get$indentWidth: function(obj) {
  21540. return obj.indentWidth;
  21541. },
  21542. get$linefeed: function(obj) {
  21543. return obj.linefeed;
  21544. },
  21545. set$context: function(obj, v) {
  21546. return obj.context = v;
  21547. },
  21548. get$importer: function(obj) {
  21549. return obj.importer;
  21550. },
  21551. get$functions: function(obj) {
  21552. return obj.functions;
  21553. },
  21554. get$indentedSyntax: function(obj) {
  21555. return obj.indentedSyntax;
  21556. },
  21557. get$omitSourceMapUrl: function(obj) {
  21558. return obj.omitSourceMapUrl;
  21559. },
  21560. get$outFile: function(obj) {
  21561. return obj.outFile;
  21562. },
  21563. get$outputStyle: function(obj) {
  21564. return obj.outputStyle;
  21565. },
  21566. get$fiber: function(obj) {
  21567. return obj.fiber;
  21568. },
  21569. get$sourceMap: function(obj) {
  21570. return obj.sourceMap;
  21571. },
  21572. get$sourceMapContents: function(obj) {
  21573. return obj.sourceMapContents;
  21574. },
  21575. get$sourceMapEmbed: function(obj) {
  21576. return obj.sourceMapEmbed;
  21577. },
  21578. get$sourceMapRoot: function(obj) {
  21579. return obj.sourceMapRoot;
  21580. },
  21581. map$1: function(receiver, p0) {
  21582. return receiver.map(p0);
  21583. },
  21584. map$1$1: function(receiver, p0) {
  21585. return receiver.map(p0);
  21586. },
  21587. get$start: function(obj) {
  21588. return obj.start;
  21589. },
  21590. get$end: function(obj) {
  21591. return obj.end;
  21592. },
  21593. set$cli_pkg_main_0_: function(obj, v) {
  21594. return obj.cli_pkg_main_0_ = v;
  21595. }
  21596. };
  21597. J.PlainJavaScriptObject.prototype = {};
  21598. J.UnknownJavaScriptObject.prototype = {};
  21599. J.JavaScriptFunction.prototype = {
  21600. toString$0: function(receiver) {
  21601. var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()];
  21602. if (dartClosure == null)
  21603. return this.super$JavaScriptObject$toString(receiver);
  21604. return "JavaScript function for " + H.S(J.toString$0$(dartClosure));
  21605. },
  21606. $isFunction: 1
  21607. };
  21608. J.JSArray.prototype = {
  21609. cast$1$0: function(receiver, $R) {
  21610. return new H.CastList(receiver, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  21611. },
  21612. add$1: function(receiver, value) {
  21613. if (!!receiver.fixed$length)
  21614. H.throwExpression(P.UnsupportedError$("add"));
  21615. receiver.push(value);
  21616. },
  21617. removeAt$1: function(receiver, index) {
  21618. var t1;
  21619. if (!!receiver.fixed$length)
  21620. H.throwExpression(P.UnsupportedError$("removeAt"));
  21621. t1 = receiver.length;
  21622. if (index >= t1)
  21623. throw H.wrapException(P.RangeError$value(index, null, null));
  21624. return receiver.splice(index, 1)[0];
  21625. },
  21626. insert$2: function(receiver, index, value) {
  21627. var t1;
  21628. if (!!receiver.fixed$length)
  21629. H.throwExpression(P.UnsupportedError$("insert"));
  21630. t1 = receiver.length;
  21631. if (index > t1)
  21632. throw H.wrapException(P.RangeError$value(index, null, null));
  21633. receiver.splice(index, 0, value);
  21634. },
  21635. insertAll$2: function(receiver, index, iterable) {
  21636. var insertionLength, end;
  21637. if (!!receiver.fixed$length)
  21638. H.throwExpression(P.UnsupportedError$("insertAll"));
  21639. P.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
  21640. if (!type$.EfficientLengthIterable_dynamic._is(iterable))
  21641. iterable = J.toList$0$ax(iterable);
  21642. insertionLength = J.get$length$asx(iterable);
  21643. receiver.length = receiver.length + insertionLength;
  21644. end = index + insertionLength;
  21645. this.setRange$4(receiver, end, receiver.length, receiver, index);
  21646. this.setRange$3(receiver, index, end, iterable);
  21647. },
  21648. setAll$2: function(receiver, index, iterable) {
  21649. var t1, index0;
  21650. if (!!receiver.immutable$list)
  21651. H.throwExpression(P.UnsupportedError$("setAll"));
  21652. P.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
  21653. for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0(); index = index0) {
  21654. index0 = index + 1;
  21655. this.$indexSet(receiver, index, t1.get$current(t1));
  21656. }
  21657. },
  21658. removeLast$0: function(receiver) {
  21659. if (!!receiver.fixed$length)
  21660. H.throwExpression(P.UnsupportedError$("removeLast"));
  21661. if (receiver.length === 0)
  21662. throw H.wrapException(H.diagnoseIndexError(receiver, -1));
  21663. return receiver.pop();
  21664. },
  21665. remove$1: function(receiver, element) {
  21666. var i;
  21667. if (!!receiver.fixed$length)
  21668. H.throwExpression(P.UnsupportedError$("remove"));
  21669. for (i = 0; i < receiver.length; ++i)
  21670. if (J.$eq$(receiver[i], element)) {
  21671. receiver.splice(i, 1);
  21672. return true;
  21673. }
  21674. return false;
  21675. },
  21676. _removeWhere$2: function(receiver, test, removeMatching) {
  21677. var i, element, t1, retained = [],
  21678. end = receiver.length;
  21679. for (i = 0; i < end; ++i) {
  21680. element = receiver[i];
  21681. if (!test.call$1(element))
  21682. retained.push(element);
  21683. if (receiver.length !== end)
  21684. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21685. }
  21686. t1 = retained.length;
  21687. if (t1 === end)
  21688. return;
  21689. this.set$length(receiver, t1);
  21690. for (i = 0; i < retained.length; ++i)
  21691. receiver[i] = retained[i];
  21692. },
  21693. where$1: function(receiver, f) {
  21694. return new H.WhereIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("WhereIterable<1>"));
  21695. },
  21696. expand$1$1: function(receiver, f, $T) {
  21697. return new H.ExpandIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  21698. },
  21699. addAll$1: function(receiver, collection) {
  21700. var t1;
  21701. if (!!receiver.fixed$length)
  21702. H.throwExpression(P.UnsupportedError$("addAll"));
  21703. for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();)
  21704. receiver.push(t1.get$current(t1));
  21705. },
  21706. map$1$1: function(receiver, f, $T) {
  21707. return new H.MappedListIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  21708. },
  21709. map$1: function($receiver, f) {
  21710. return this.map$1$1($receiver, f, type$.dynamic);
  21711. },
  21712. join$1: function(receiver, separator) {
  21713. var i,
  21714. list = P.List_List$filled(receiver.length, "", false, type$.String);
  21715. for (i = 0; i < receiver.length; ++i)
  21716. list[i] = H.S(receiver[i]);
  21717. return list.join(separator);
  21718. },
  21719. join$0: function($receiver) {
  21720. return this.join$1($receiver, "");
  21721. },
  21722. take$1: function(receiver, n) {
  21723. return H.SubListIterable$(receiver, 0, n, H._arrayInstanceType(receiver)._precomputed1);
  21724. },
  21725. skip$1: function(receiver, n) {
  21726. return H.SubListIterable$(receiver, n, null, H._arrayInstanceType(receiver)._precomputed1);
  21727. },
  21728. fold$1$2: function(receiver, initialValue, combine) {
  21729. var value, i,
  21730. $length = receiver.length;
  21731. for (value = initialValue, i = 0; i < $length; ++i) {
  21732. value = combine.call$2(value, receiver[i]);
  21733. if (receiver.length !== $length)
  21734. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21735. }
  21736. return value;
  21737. },
  21738. fold$2: function($receiver, initialValue, combine) {
  21739. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  21740. },
  21741. firstWhere$2$orElse: function(receiver, test, orElse) {
  21742. var i, element,
  21743. end = receiver.length;
  21744. for (i = 0; i < end; ++i) {
  21745. element = receiver[i];
  21746. if (test.call$1(element))
  21747. return element;
  21748. if (receiver.length !== end)
  21749. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21750. }
  21751. if (orElse != null)
  21752. return orElse.call$0();
  21753. throw H.wrapException(H.IterableElementError_noElement());
  21754. },
  21755. lastWhere$2$orElse: function(receiver, test, orElse) {
  21756. var i, element,
  21757. $length = receiver.length;
  21758. for (i = $length - 1; i >= 0; --i) {
  21759. element = receiver[i];
  21760. if (test.call$1(element))
  21761. return element;
  21762. if ($length !== receiver.length)
  21763. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21764. }
  21765. if (orElse != null)
  21766. return orElse.call$0();
  21767. throw H.wrapException(H.IterableElementError_noElement());
  21768. },
  21769. elementAt$1: function(receiver, index) {
  21770. return receiver[index];
  21771. },
  21772. sublist$2: function(receiver, start, end) {
  21773. var end0 = receiver.length;
  21774. if (start > end0)
  21775. throw H.wrapException(P.RangeError$range(start, 0, end0, "start", null));
  21776. if (end == null)
  21777. end = end0;
  21778. else if (end < start || end > end0)
  21779. throw H.wrapException(P.RangeError$range(end, start, end0, "end", null));
  21780. if (start === end)
  21781. return H.setRuntimeTypeInfo([], H._arrayInstanceType(receiver));
  21782. return H.setRuntimeTypeInfo(receiver.slice(start, end), H._arrayInstanceType(receiver));
  21783. },
  21784. sublist$1: function($receiver, start) {
  21785. return this.sublist$2($receiver, start, null);
  21786. },
  21787. getRange$2: function(receiver, start, end) {
  21788. P.RangeError_checkValidRange(start, end, receiver.length);
  21789. return H.SubListIterable$(receiver, start, end, H._arrayInstanceType(receiver)._precomputed1);
  21790. },
  21791. get$first: function(receiver) {
  21792. if (receiver.length > 0)
  21793. return receiver[0];
  21794. throw H.wrapException(H.IterableElementError_noElement());
  21795. },
  21796. get$last: function(receiver) {
  21797. var t1 = receiver.length;
  21798. if (t1 > 0)
  21799. return receiver[t1 - 1];
  21800. throw H.wrapException(H.IterableElementError_noElement());
  21801. },
  21802. get$single: function(receiver) {
  21803. var t1 = receiver.length;
  21804. if (t1 === 1)
  21805. return receiver[0];
  21806. if (t1 === 0)
  21807. throw H.wrapException(H.IterableElementError_noElement());
  21808. throw H.wrapException(H.IterableElementError_tooMany());
  21809. },
  21810. removeRange$2: function(receiver, start, end) {
  21811. if (!!receiver.fixed$length)
  21812. H.throwExpression(P.UnsupportedError$("removeRange"));
  21813. P.RangeError_checkValidRange(start, end, receiver.length);
  21814. receiver.splice(start, end - start);
  21815. },
  21816. setRange$4: function(receiver, start, end, iterable, skipCount) {
  21817. var $length, otherList, otherStart, t1, i;
  21818. if (!!receiver.immutable$list)
  21819. H.throwExpression(P.UnsupportedError$("setRange"));
  21820. P.RangeError_checkValidRange(start, end, receiver.length);
  21821. $length = end - start;
  21822. if ($length === 0)
  21823. return;
  21824. P.RangeError_checkNotNegative(skipCount, "skipCount");
  21825. if (type$.List_dynamic._is(iterable)) {
  21826. otherList = iterable;
  21827. otherStart = skipCount;
  21828. } else {
  21829. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  21830. otherStart = 0;
  21831. }
  21832. t1 = J.getInterceptor$asx(otherList);
  21833. if (otherStart + $length > t1.get$length(otherList))
  21834. throw H.wrapException(H.IterableElementError_tooFew());
  21835. if (otherStart < start)
  21836. for (i = $length - 1; i >= 0; --i)
  21837. receiver[start + i] = t1.$index(otherList, otherStart + i);
  21838. else
  21839. for (i = 0; i < $length; ++i)
  21840. receiver[start + i] = t1.$index(otherList, otherStart + i);
  21841. },
  21842. setRange$3: function($receiver, start, end, iterable) {
  21843. return this.setRange$4($receiver, start, end, iterable, 0);
  21844. },
  21845. fillRange$3: function(receiver, start, end, fillValue) {
  21846. var i;
  21847. if (!!receiver.immutable$list)
  21848. H.throwExpression(P.UnsupportedError$("fill range"));
  21849. P.RangeError_checkValidRange(start, end, receiver.length);
  21850. for (i = start; i < end; ++i)
  21851. receiver[i] = fillValue;
  21852. },
  21853. any$1: function(receiver, test) {
  21854. var i,
  21855. end = receiver.length;
  21856. for (i = 0; i < end; ++i) {
  21857. if (test.call$1(receiver[i]))
  21858. return true;
  21859. if (receiver.length !== end)
  21860. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21861. }
  21862. return false;
  21863. },
  21864. every$1: function(receiver, test) {
  21865. var i,
  21866. end = receiver.length;
  21867. for (i = 0; i < end; ++i) {
  21868. if (!test.call$1(receiver[i]))
  21869. return false;
  21870. if (receiver.length !== end)
  21871. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  21872. }
  21873. return true;
  21874. },
  21875. get$reversed: function(receiver) {
  21876. return new H.ReversedListIterable(receiver, H._arrayInstanceType(receiver)._eval$1("ReversedListIterable<1>"));
  21877. },
  21878. sort$1: function(receiver, compare) {
  21879. if (!!receiver.immutable$list)
  21880. H.throwExpression(P.UnsupportedError$("sort"));
  21881. H.Sort_sort(receiver, compare == null ? J._interceptors_JSArray__compareAny$closure() : compare);
  21882. },
  21883. sort$0: function($receiver) {
  21884. return this.sort$1($receiver, null);
  21885. },
  21886. indexOf$1: function(receiver, element) {
  21887. var i,
  21888. $length = receiver.length;
  21889. if (0 >= $length)
  21890. return -1;
  21891. for (i = 0; i < $length; ++i)
  21892. if (J.$eq$(receiver[i], element))
  21893. return i;
  21894. return -1;
  21895. },
  21896. contains$1: function(receiver, other) {
  21897. var i;
  21898. for (i = 0; i < receiver.length; ++i)
  21899. if (J.$eq$(receiver[i], other))
  21900. return true;
  21901. return false;
  21902. },
  21903. get$isEmpty: function(receiver) {
  21904. return receiver.length === 0;
  21905. },
  21906. get$isNotEmpty: function(receiver) {
  21907. return receiver.length !== 0;
  21908. },
  21909. toString$0: function(receiver) {
  21910. return P.IterableBase_iterableToFullString(receiver, "[", "]");
  21911. },
  21912. toList$1$growable: function(receiver, growable) {
  21913. var t1 = H._arrayInstanceType(receiver);
  21914. return growable ? H.setRuntimeTypeInfo(receiver.slice(0), t1) : J.JSArray_JSArray$markFixed(receiver.slice(0), t1._precomputed1);
  21915. },
  21916. toList$0: function($receiver) {
  21917. return this.toList$1$growable($receiver, true);
  21918. },
  21919. toSet$0: function(receiver) {
  21920. return P.LinkedHashSet_LinkedHashSet$from(receiver, H._arrayInstanceType(receiver)._precomputed1);
  21921. },
  21922. get$iterator: function(receiver) {
  21923. return new J.ArrayIterator(receiver, receiver.length);
  21924. },
  21925. get$hashCode: function(receiver) {
  21926. return H.Primitives_objectHashCode(receiver);
  21927. },
  21928. get$length: function(receiver) {
  21929. return receiver.length;
  21930. },
  21931. set$length: function(receiver, newLength) {
  21932. if (!!receiver.fixed$length)
  21933. H.throwExpression(P.UnsupportedError$("set length"));
  21934. if (newLength < 0)
  21935. throw H.wrapException(P.RangeError$range(newLength, 0, null, "newLength", null));
  21936. receiver.length = newLength;
  21937. },
  21938. $index: function(receiver, index) {
  21939. if (!H._isInt(index))
  21940. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  21941. if (index >= receiver.length || index < 0)
  21942. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  21943. return receiver[index];
  21944. },
  21945. $indexSet: function(receiver, index, value) {
  21946. if (!!receiver.immutable$list)
  21947. H.throwExpression(P.UnsupportedError$("indexed set"));
  21948. if (!H._isInt(index))
  21949. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  21950. if (index >= receiver.length || index < 0)
  21951. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  21952. receiver[index] = value;
  21953. },
  21954. $add: function(receiver, other) {
  21955. var t2, _i,
  21956. t1 = H.setRuntimeTypeInfo([], H._arrayInstanceType(receiver));
  21957. for (t2 = receiver.length, _i = 0; _i < receiver.length; receiver.length === t2 || (0, H.throwConcurrentModificationError)(receiver), ++_i)
  21958. t1.push(receiver[_i]);
  21959. for (t2 = other.length, _i = 0; _i < other.length; other.length === t2 || (0, H.throwConcurrentModificationError)(other), ++_i)
  21960. t1.push(other[_i]);
  21961. return t1;
  21962. },
  21963. $isEfficientLengthIterable: 1,
  21964. $isIterable: 1,
  21965. $isList: 1
  21966. };
  21967. J.JSUnmodifiableArray.prototype = {};
  21968. J.ArrayIterator.prototype = {
  21969. get$current: function(_) {
  21970. return this._current;
  21971. },
  21972. moveNext$0: function() {
  21973. var t2, _this = this,
  21974. t1 = _this._iterable,
  21975. $length = t1.length;
  21976. if (_this._length !== $length)
  21977. throw H.wrapException(H.throwConcurrentModificationError(t1));
  21978. t2 = _this._index;
  21979. if (t2 >= $length) {
  21980. _this._current = null;
  21981. return false;
  21982. }
  21983. _this._current = t1[t2];
  21984. _this._index = t2 + 1;
  21985. return true;
  21986. }
  21987. };
  21988. J.JSNumber.prototype = {
  21989. compareTo$1: function(receiver, b) {
  21990. var bIsNegative;
  21991. if (typeof b != "number")
  21992. throw H.wrapException(H.argumentErrorValue(b));
  21993. if (receiver < b)
  21994. return -1;
  21995. else if (receiver > b)
  21996. return 1;
  21997. else if (receiver === b) {
  21998. if (receiver === 0) {
  21999. bIsNegative = this.get$isNegative(b);
  22000. if (this.get$isNegative(receiver) === bIsNegative)
  22001. return 0;
  22002. if (this.get$isNegative(receiver))
  22003. return -1;
  22004. return 1;
  22005. }
  22006. return 0;
  22007. } else if (isNaN(receiver)) {
  22008. if (isNaN(b))
  22009. return 0;
  22010. return 1;
  22011. } else
  22012. return -1;
  22013. },
  22014. get$isNegative: function(receiver) {
  22015. return receiver === 0 ? 1 / receiver < 0 : receiver < 0;
  22016. },
  22017. ceil$0: function(receiver) {
  22018. var truncated, d;
  22019. if (receiver >= 0) {
  22020. if (receiver <= 2147483647) {
  22021. truncated = receiver | 0;
  22022. return receiver === truncated ? truncated : truncated + 1;
  22023. }
  22024. } else if (receiver >= -2147483648)
  22025. return receiver | 0;
  22026. d = Math.ceil(receiver);
  22027. if (isFinite(d))
  22028. return d;
  22029. throw H.wrapException(P.UnsupportedError$("" + receiver + ".ceil()"));
  22030. },
  22031. floor$0: function(receiver) {
  22032. var truncated, d;
  22033. if (receiver >= 0) {
  22034. if (receiver <= 2147483647)
  22035. return receiver | 0;
  22036. } else if (receiver >= -2147483648) {
  22037. truncated = receiver | 0;
  22038. return receiver === truncated ? truncated : truncated - 1;
  22039. }
  22040. d = Math.floor(receiver);
  22041. if (isFinite(d))
  22042. return d;
  22043. throw H.wrapException(P.UnsupportedError$("" + receiver + ".floor()"));
  22044. },
  22045. round$0: function(receiver) {
  22046. if (receiver > 0) {
  22047. if (receiver !== 1 / 0)
  22048. return Math.round(receiver);
  22049. } else if (receiver > -1 / 0)
  22050. return 0 - Math.round(0 - receiver);
  22051. throw H.wrapException(P.UnsupportedError$("" + receiver + ".round()"));
  22052. },
  22053. clamp$2: function(receiver, lowerLimit, upperLimit) {
  22054. if (C.JSInt_methods.compareTo$1(lowerLimit, upperLimit) > 0)
  22055. throw H.wrapException(H.argumentErrorValue(lowerLimit));
  22056. if (this.compareTo$1(receiver, lowerLimit) < 0)
  22057. return lowerLimit;
  22058. if (this.compareTo$1(receiver, upperLimit) > 0)
  22059. return upperLimit;
  22060. return receiver;
  22061. },
  22062. toRadixString$1: function(receiver, radix) {
  22063. var result, match, exponent, t1;
  22064. if (radix < 2 || radix > 36)
  22065. throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", null));
  22066. result = receiver.toString(radix);
  22067. if (C.JSString_methods.codeUnitAt$1(result, result.length - 1) !== 41)
  22068. return result;
  22069. match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result);
  22070. if (match == null)
  22071. H.throwExpression(P.UnsupportedError$("Unexpected toString result: " + result));
  22072. result = match[1];
  22073. exponent = +match[3];
  22074. t1 = match[2];
  22075. if (t1 != null) {
  22076. result += t1;
  22077. exponent -= t1.length;
  22078. }
  22079. return result + C.JSString_methods.$mul("0", exponent);
  22080. },
  22081. toString$0: function(receiver) {
  22082. if (receiver === 0 && 1 / receiver < 0)
  22083. return "-0.0";
  22084. else
  22085. return "" + receiver;
  22086. },
  22087. get$hashCode: function(receiver) {
  22088. var absolute, floorLog2, factor, scaled,
  22089. intValue = receiver | 0;
  22090. if (receiver === intValue)
  22091. return 536870911 & intValue;
  22092. absolute = Math.abs(receiver);
  22093. floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0;
  22094. factor = Math.pow(2, floorLog2);
  22095. scaled = absolute < 1 ? absolute / factor : factor / absolute;
  22096. return 536870911 & ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259;
  22097. },
  22098. $add: function(receiver, other) {
  22099. if (typeof other != "number")
  22100. throw H.wrapException(H.argumentErrorValue(other));
  22101. return receiver + other;
  22102. },
  22103. $mod: function(receiver, other) {
  22104. var result = receiver % other;
  22105. if (result === 0)
  22106. return 0;
  22107. if (result > 0)
  22108. return result;
  22109. if (other < 0)
  22110. return result - other;
  22111. else
  22112. return result + other;
  22113. },
  22114. $tdiv: function(receiver, other) {
  22115. if ((receiver | 0) === receiver)
  22116. if (other >= 1 || other < -1)
  22117. return receiver / other | 0;
  22118. return this._tdivSlow$1(receiver, other);
  22119. },
  22120. _tdivFast$1: function(receiver, other) {
  22121. return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other);
  22122. },
  22123. _tdivSlow$1: function(receiver, other) {
  22124. var quotient = receiver / other;
  22125. if (quotient >= -2147483648 && quotient <= 2147483647)
  22126. return quotient | 0;
  22127. if (quotient > 0) {
  22128. if (quotient !== 1 / 0)
  22129. return Math.floor(quotient);
  22130. } else if (quotient > -1 / 0)
  22131. return Math.ceil(quotient);
  22132. throw H.wrapException(P.UnsupportedError$("Result of truncating division is " + H.S(quotient) + ": " + H.S(receiver) + " ~/ " + other));
  22133. },
  22134. _shrOtherPositive$1: function(receiver, other) {
  22135. var t1;
  22136. if (receiver > 0)
  22137. t1 = this._shrBothPositive$1(receiver, other);
  22138. else {
  22139. t1 = other > 31 ? 31 : other;
  22140. t1 = receiver >> t1 >>> 0;
  22141. }
  22142. return t1;
  22143. },
  22144. _shrReceiverPositive$1: function(receiver, other) {
  22145. if (other < 0)
  22146. throw H.wrapException(H.argumentErrorValue(other));
  22147. return this._shrBothPositive$1(receiver, other);
  22148. },
  22149. _shrBothPositive$1: function(receiver, other) {
  22150. return other > 31 ? 0 : receiver >>> other;
  22151. },
  22152. $isComparable: 1,
  22153. $isdouble: 1,
  22154. $isnum: 1
  22155. };
  22156. J.JSInt.prototype = {$isint: 1};
  22157. J.JSDouble.prototype = {};
  22158. J.JSString.prototype = {
  22159. codeUnitAt$1: function(receiver, index) {
  22160. if (!H._isInt(index))
  22161. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22162. if (index < 0)
  22163. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22164. if (index >= receiver.length)
  22165. H.throwExpression(H.diagnoseIndexError(receiver, index));
  22166. return receiver.charCodeAt(index);
  22167. },
  22168. _codeUnitAt$1: function(receiver, index) {
  22169. if (index >= receiver.length)
  22170. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22171. return receiver.charCodeAt(index);
  22172. },
  22173. allMatches$2: function(receiver, string, start) {
  22174. var t1;
  22175. if (typeof string != "string")
  22176. H.throwExpression(H.argumentErrorValue(string));
  22177. t1 = string.length;
  22178. if (start > t1)
  22179. throw H.wrapException(P.RangeError$range(start, 0, t1, null, null));
  22180. return new H._StringAllMatchesIterable(string, receiver, start);
  22181. },
  22182. allMatches$1: function($receiver, string) {
  22183. return this.allMatches$2($receiver, string, 0);
  22184. },
  22185. matchAsPrefix$2: function(receiver, string, start) {
  22186. var t1, t2, i, _null = null;
  22187. if (start < 0 || start > string.length)
  22188. throw H.wrapException(P.RangeError$range(start, 0, string.length, _null, _null));
  22189. t1 = receiver.length;
  22190. if (start + t1 > string.length)
  22191. return _null;
  22192. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  22193. if (t2.codeUnitAt$1(string, start + i) !== this._codeUnitAt$1(receiver, i))
  22194. return _null;
  22195. return new H.StringMatch(start, receiver);
  22196. },
  22197. $add: function(receiver, other) {
  22198. if (typeof other != "string")
  22199. throw H.wrapException(P.ArgumentError$value(other, null, null));
  22200. return receiver + other;
  22201. },
  22202. endsWith$1: function(receiver, other) {
  22203. var otherLength = other.length,
  22204. t1 = receiver.length;
  22205. if (otherLength > t1)
  22206. return false;
  22207. return other === this.substring$1(receiver, t1 - otherLength);
  22208. },
  22209. replaceFirst$2: function(receiver, from, to) {
  22210. P.RangeError_checkValueInInterval(0, 0, receiver.length, "startIndex");
  22211. return H.stringReplaceFirstUnchecked(receiver, from, to, 0);
  22212. },
  22213. replaceRange$3: function(receiver, start, end, replacement) {
  22214. var e;
  22215. if (typeof replacement != "string")
  22216. H.throwExpression(H.argumentErrorValue(replacement));
  22217. e = P.RangeError_checkValidRange(start, end, receiver.length);
  22218. return H.stringReplaceRangeUnchecked(receiver, start, e, replacement);
  22219. },
  22220. startsWith$2: function(receiver, pattern, index) {
  22221. var endIndex;
  22222. if (index < 0 || index > receiver.length)
  22223. throw H.wrapException(P.RangeError$range(index, 0, receiver.length, null, null));
  22224. if (typeof pattern == "string") {
  22225. endIndex = index + pattern.length;
  22226. if (endIndex > receiver.length)
  22227. return false;
  22228. return pattern === receiver.substring(index, endIndex);
  22229. }
  22230. return J.matchAsPrefix$2$s(pattern, receiver, index) != null;
  22231. },
  22232. startsWith$1: function($receiver, pattern) {
  22233. return this.startsWith$2($receiver, pattern, 0);
  22234. },
  22235. substring$2: function(receiver, startIndex, endIndex) {
  22236. var _null = null;
  22237. if (endIndex == null)
  22238. endIndex = receiver.length;
  22239. if (startIndex < 0)
  22240. throw H.wrapException(P.RangeError$value(startIndex, _null, _null));
  22241. if (startIndex > endIndex)
  22242. throw H.wrapException(P.RangeError$value(startIndex, _null, _null));
  22243. if (endIndex > receiver.length)
  22244. throw H.wrapException(P.RangeError$value(endIndex, _null, _null));
  22245. return receiver.substring(startIndex, endIndex);
  22246. },
  22247. substring$1: function($receiver, startIndex) {
  22248. return this.substring$2($receiver, startIndex, null);
  22249. },
  22250. trim$0: function(receiver) {
  22251. var startIndex, t1, endIndex0,
  22252. result = receiver.trim(),
  22253. endIndex = result.length;
  22254. if (endIndex === 0)
  22255. return result;
  22256. if (this._codeUnitAt$1(result, 0) === 133) {
  22257. startIndex = J.JSString__skipLeadingWhitespace(result, 1);
  22258. if (startIndex === endIndex)
  22259. return "";
  22260. } else
  22261. startIndex = 0;
  22262. t1 = endIndex - 1;
  22263. endIndex0 = this.codeUnitAt$1(result, t1) === 133 ? J.JSString__skipTrailingWhitespace(result, t1) : endIndex;
  22264. if (startIndex === 0 && endIndex0 === endIndex)
  22265. return result;
  22266. return result.substring(startIndex, endIndex0);
  22267. },
  22268. trimRight$0: function(receiver) {
  22269. var result, endIndex, t1;
  22270. if (typeof receiver.trimRight != "undefined") {
  22271. result = receiver.trimRight();
  22272. endIndex = result.length;
  22273. if (endIndex === 0)
  22274. return result;
  22275. t1 = endIndex - 1;
  22276. if (this.codeUnitAt$1(result, t1) === 133)
  22277. endIndex = J.JSString__skipTrailingWhitespace(result, t1);
  22278. } else {
  22279. endIndex = J.JSString__skipTrailingWhitespace(receiver, receiver.length);
  22280. result = receiver;
  22281. }
  22282. if (endIndex === result.length)
  22283. return result;
  22284. if (endIndex === 0)
  22285. return "";
  22286. return result.substring(0, endIndex);
  22287. },
  22288. $mul: function(receiver, times) {
  22289. var s, result;
  22290. if (0 >= times)
  22291. return "";
  22292. if (times === 1 || receiver.length === 0)
  22293. return receiver;
  22294. if (times !== times >>> 0)
  22295. throw H.wrapException(C.C_OutOfMemoryError);
  22296. for (s = receiver, result = ""; true;) {
  22297. if ((times & 1) === 1)
  22298. result = s + result;
  22299. times = times >>> 1;
  22300. if (times === 0)
  22301. break;
  22302. s += s;
  22303. }
  22304. return result;
  22305. },
  22306. padLeft$2: function(receiver, width, padding) {
  22307. var delta = width - receiver.length;
  22308. if (delta <= 0)
  22309. return receiver;
  22310. return this.$mul(padding, delta) + receiver;
  22311. },
  22312. padRight$1: function(receiver, width) {
  22313. var delta = width - receiver.length;
  22314. if (delta <= 0)
  22315. return receiver;
  22316. return receiver + this.$mul(" ", delta);
  22317. },
  22318. indexOf$2: function(receiver, pattern, start) {
  22319. var t1, t2, i;
  22320. if (pattern == null)
  22321. H.throwExpression(H.argumentErrorValue(pattern));
  22322. if (start < 0 || start > receiver.length)
  22323. throw H.wrapException(P.RangeError$range(start, 0, receiver.length, null, null));
  22324. if (typeof pattern == "string")
  22325. return receiver.indexOf(pattern, start);
  22326. for (t1 = receiver.length, t2 = J.getInterceptor$s(pattern), i = start; i <= t1; ++i)
  22327. if (t2.matchAsPrefix$2(pattern, receiver, i) != null)
  22328. return i;
  22329. return -1;
  22330. },
  22331. indexOf$1: function($receiver, pattern) {
  22332. return this.indexOf$2($receiver, pattern, 0);
  22333. },
  22334. lastIndexOf$2: function(receiver, pattern, start) {
  22335. var t1, t2, i;
  22336. if (pattern == null)
  22337. H.throwExpression(H.argumentErrorValue(pattern));
  22338. if (start == null)
  22339. start = receiver.length;
  22340. else if (start < 0 || start > receiver.length)
  22341. throw H.wrapException(P.RangeError$range(start, 0, receiver.length, null, null));
  22342. if (typeof pattern == "string") {
  22343. t1 = pattern.length;
  22344. t2 = receiver.length;
  22345. if (start + t1 > t2)
  22346. start = t2 - t1;
  22347. return receiver.lastIndexOf(pattern, start);
  22348. }
  22349. for (t1 = J.getInterceptor$s(pattern), i = start; i >= 0; --i)
  22350. if (t1.matchAsPrefix$2(pattern, receiver, i) != null)
  22351. return i;
  22352. return -1;
  22353. },
  22354. lastIndexOf$1: function($receiver, pattern) {
  22355. return this.lastIndexOf$2($receiver, pattern, null);
  22356. },
  22357. contains$2: function(receiver, other, startIndex) {
  22358. var t1;
  22359. if (other == null)
  22360. H.throwExpression(H.argumentErrorValue(other));
  22361. t1 = receiver.length;
  22362. if (startIndex > t1)
  22363. throw H.wrapException(P.RangeError$range(startIndex, 0, t1, null, null));
  22364. return H.stringContainsUnchecked(receiver, other, startIndex);
  22365. },
  22366. contains$1: function($receiver, other) {
  22367. return this.contains$2($receiver, other, 0);
  22368. },
  22369. get$isNotEmpty: function(receiver) {
  22370. return receiver.length !== 0;
  22371. },
  22372. compareTo$1: function(receiver, other) {
  22373. var t1;
  22374. if (typeof other != "string")
  22375. throw H.wrapException(H.argumentErrorValue(other));
  22376. if (receiver === other)
  22377. t1 = 0;
  22378. else
  22379. t1 = receiver < other ? -1 : 1;
  22380. return t1;
  22381. },
  22382. toString$0: function(receiver) {
  22383. return receiver;
  22384. },
  22385. get$hashCode: function(receiver) {
  22386. var t1, hash, i;
  22387. for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) {
  22388. hash = 536870911 & hash + receiver.charCodeAt(i);
  22389. hash = 536870911 & hash + ((524287 & hash) << 10);
  22390. hash ^= hash >> 6;
  22391. }
  22392. hash = 536870911 & hash + ((67108863 & hash) << 3);
  22393. hash ^= hash >> 11;
  22394. return 536870911 & hash + ((16383 & hash) << 15);
  22395. },
  22396. get$length: function(receiver) {
  22397. return receiver.length;
  22398. },
  22399. $isComparable: 1,
  22400. $isString: 1
  22401. };
  22402. H._CastIterableBase.prototype = {
  22403. get$iterator: function(_) {
  22404. var t1 = H._instanceType(this);
  22405. return new H.CastIterator(J.get$iterator$ax(this.get$_source()), t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastIterator<1,2>"));
  22406. },
  22407. get$length: function(_) {
  22408. return J.get$length$asx(this.get$_source());
  22409. },
  22410. get$isEmpty: function(_) {
  22411. return J.get$isEmpty$asx(this.get$_source());
  22412. },
  22413. get$isNotEmpty: function(_) {
  22414. return J.get$isNotEmpty$asx(this.get$_source());
  22415. },
  22416. skip$1: function(_, count) {
  22417. var t1 = H._instanceType(this);
  22418. return H.CastIterable_CastIterable(J.skip$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  22419. },
  22420. take$1: function(_, count) {
  22421. var t1 = H._instanceType(this);
  22422. return H.CastIterable_CastIterable(J.take$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  22423. },
  22424. elementAt$1: function(_, index) {
  22425. return H._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$_source(), index));
  22426. },
  22427. get$first: function(_) {
  22428. return H._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$_source()));
  22429. },
  22430. get$last: function(_) {
  22431. return H._instanceType(this)._rest[1]._as(J.get$last$ax(this.get$_source()));
  22432. },
  22433. get$single: function(_) {
  22434. return H._instanceType(this)._rest[1]._as(J.get$single$ax(this.get$_source()));
  22435. },
  22436. contains$1: function(_, other) {
  22437. return J.contains$1$asx(this.get$_source(), other);
  22438. },
  22439. toString$0: function(_) {
  22440. return J.toString$0$(this.get$_source());
  22441. }
  22442. };
  22443. H.CastIterator.prototype = {
  22444. moveNext$0: function() {
  22445. return this._source.moveNext$0();
  22446. },
  22447. get$current: function(_) {
  22448. var t1 = this._source;
  22449. return this.$ti._rest[1]._as(t1.get$current(t1));
  22450. }
  22451. };
  22452. H.CastIterable.prototype = {
  22453. cast$1$0: function(_, $R) {
  22454. return H.CastIterable_CastIterable(this._source, H._instanceType(this)._precomputed1, $R);
  22455. },
  22456. get$_source: function() {
  22457. return this._source;
  22458. }
  22459. };
  22460. H._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1};
  22461. H._CastListBase.prototype = {
  22462. $index: function(_, index) {
  22463. return this.$ti._rest[1]._as(J.$index$asx(this._source, index));
  22464. },
  22465. $indexSet: function(_, index, value) {
  22466. J.$indexSet$ax(this._source, index, this.$ti._precomputed1._as(value));
  22467. },
  22468. set$length: function(_, $length) {
  22469. J.set$length$asx(this._source, $length);
  22470. },
  22471. add$1: function(_, value) {
  22472. J.add$1$ax(this._source, this.$ti._precomputed1._as(value));
  22473. },
  22474. addAll$1: function(_, values) {
  22475. var t1 = this.$ti;
  22476. J.addAll$1$ax(this._source, H.CastIterable_CastIterable(values, t1._rest[1], t1._precomputed1));
  22477. },
  22478. sort$1: function(_, compare) {
  22479. var t1 = compare == null ? null : new H._CastListBase_sort_closure(this, compare);
  22480. J.sort$1$ax(this._source, t1);
  22481. },
  22482. getRange$2: function(_, start, end) {
  22483. var t1 = this.$ti;
  22484. return H.CastIterable_CastIterable(J.getRange$2$ax(this._source, start, end), t1._precomputed1, t1._rest[1]);
  22485. },
  22486. setRange$4: function(_, start, end, iterable, skipCount) {
  22487. var t1 = this.$ti;
  22488. J.setRange$4$ax(this._source, start, end, H.CastIterable_CastIterable(iterable, t1._rest[1], t1._precomputed1), skipCount);
  22489. },
  22490. fillRange$3: function(_, start, end, fillValue) {
  22491. J.fillRange$3$ax(this._source, start, end, this.$ti._precomputed1._as(fillValue));
  22492. },
  22493. $isEfficientLengthIterable: 1,
  22494. $isList: 1
  22495. };
  22496. H._CastListBase_sort_closure.prototype = {
  22497. call$2: function(v1, v2) {
  22498. var t1 = this.$this.$ti._rest[1];
  22499. return this.compare.call$2(t1._as(v1), t1._as(v2));
  22500. },
  22501. $signature: function() {
  22502. return this.$this.$ti._eval$1("int(1,1)");
  22503. }
  22504. };
  22505. H.CastList.prototype = {
  22506. cast$1$0: function(_, $R) {
  22507. return new H.CastList(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  22508. },
  22509. get$_source: function() {
  22510. return this._source;
  22511. }
  22512. };
  22513. H.CastSet.prototype = {
  22514. cast$1$0: function(_, $R) {
  22515. return new H.CastSet(this._source, this._emptySet, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastSet<1,2>"));
  22516. },
  22517. add$1: function(_, value) {
  22518. return this._source.add$1(0, this.$ti._precomputed1._as(value));
  22519. },
  22520. addAll$1: function(_, elements) {
  22521. var t1 = this.$ti;
  22522. this._source.addAll$1(0, H.CastIterable_CastIterable(elements, t1._rest[1], t1._precomputed1));
  22523. },
  22524. toSet$0: function(_) {
  22525. var emptySet = this._emptySet,
  22526. t1 = this.$ti._rest[1],
  22527. result = emptySet == null ? P.LinkedHashSet_LinkedHashSet(t1) : emptySet.call$1$0(t1);
  22528. result.addAll$1(0, this);
  22529. return result;
  22530. },
  22531. $isEfficientLengthIterable: 1,
  22532. $isSet: 1,
  22533. get$_source: function() {
  22534. return this._source;
  22535. }
  22536. };
  22537. H.CastQueue.prototype = {
  22538. cast$1$0: function(_, $R) {
  22539. return new H.CastQueue(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastQueue<1,2>"));
  22540. },
  22541. add$1: function(_, value) {
  22542. this._source._add$1(this.$ti._precomputed1._as(value));
  22543. },
  22544. $isEfficientLengthIterable: 1,
  22545. $isQueue: 1,
  22546. get$_source: function() {
  22547. return this._source;
  22548. }
  22549. };
  22550. H.LateInitializationErrorImpl.prototype = {
  22551. toString$0: function(_) {
  22552. var t1 = "LateInitializationError: " + this.__internal$_message;
  22553. return t1;
  22554. }
  22555. };
  22556. H.CodeUnits.prototype = {
  22557. get$length: function(_) {
  22558. return this._string.length;
  22559. },
  22560. $index: function(_, i) {
  22561. return C.JSString_methods.codeUnitAt$1(this._string, i);
  22562. }
  22563. };
  22564. H.EfficientLengthIterable.prototype = {};
  22565. H.ListIterable.prototype = {
  22566. get$iterator: function(_) {
  22567. return new H.ListIterator(this, this.get$length(this));
  22568. },
  22569. get$isEmpty: function(_) {
  22570. return this.get$length(this) === 0;
  22571. },
  22572. get$first: function(_) {
  22573. if (this.get$length(this) === 0)
  22574. throw H.wrapException(H.IterableElementError_noElement());
  22575. return this.elementAt$1(0, 0);
  22576. },
  22577. get$last: function(_) {
  22578. var _this = this;
  22579. if (_this.get$length(_this) === 0)
  22580. throw H.wrapException(H.IterableElementError_noElement());
  22581. return _this.elementAt$1(0, _this.get$length(_this) - 1);
  22582. },
  22583. get$single: function(_) {
  22584. var _this = this;
  22585. if (_this.get$length(_this) === 0)
  22586. throw H.wrapException(H.IterableElementError_noElement());
  22587. if (_this.get$length(_this) > 1)
  22588. throw H.wrapException(H.IterableElementError_tooMany());
  22589. return _this.elementAt$1(0, 0);
  22590. },
  22591. contains$1: function(_, element) {
  22592. var i, _this = this,
  22593. $length = _this.get$length(_this);
  22594. for (i = 0; i < $length; ++i) {
  22595. if (J.$eq$(_this.elementAt$1(0, i), element))
  22596. return true;
  22597. if ($length !== _this.get$length(_this))
  22598. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22599. }
  22600. return false;
  22601. },
  22602. any$1: function(_, test) {
  22603. var i, _this = this,
  22604. $length = _this.get$length(_this);
  22605. for (i = 0; i < $length; ++i) {
  22606. if (test.call$1(_this.elementAt$1(0, i)))
  22607. return true;
  22608. if ($length !== _this.get$length(_this))
  22609. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22610. }
  22611. return false;
  22612. },
  22613. join$1: function(_, separator) {
  22614. var first, t1, i, _this = this,
  22615. $length = _this.get$length(_this);
  22616. if (separator.length !== 0) {
  22617. if ($length === 0)
  22618. return "";
  22619. first = H.S(_this.elementAt$1(0, 0));
  22620. if ($length !== _this.get$length(_this))
  22621. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22622. for (t1 = first, i = 1; i < $length; ++i) {
  22623. t1 = t1 + separator + H.S(_this.elementAt$1(0, i));
  22624. if ($length !== _this.get$length(_this))
  22625. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22626. }
  22627. return t1.charCodeAt(0) == 0 ? t1 : t1;
  22628. } else {
  22629. for (i = 0, t1 = ""; i < $length; ++i) {
  22630. t1 += H.S(_this.elementAt$1(0, i));
  22631. if ($length !== _this.get$length(_this))
  22632. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22633. }
  22634. return t1.charCodeAt(0) == 0 ? t1 : t1;
  22635. }
  22636. },
  22637. join$0: function($receiver) {
  22638. return this.join$1($receiver, "");
  22639. },
  22640. where$1: function(_, test) {
  22641. return this.super$Iterable$where(0, test);
  22642. },
  22643. map$1$1: function(_, f, $T) {
  22644. return new H.MappedListIterable(this, f, H._instanceType(this)._eval$1("@<ListIterable.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  22645. },
  22646. reduce$1: function(_, combine) {
  22647. var value, i, _this = this,
  22648. $length = _this.get$length(_this);
  22649. if ($length === 0)
  22650. throw H.wrapException(H.IterableElementError_noElement());
  22651. value = _this.elementAt$1(0, 0);
  22652. for (i = 1; i < $length; ++i) {
  22653. value = combine.call$2(value, _this.elementAt$1(0, i));
  22654. if ($length !== _this.get$length(_this))
  22655. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22656. }
  22657. return value;
  22658. },
  22659. fold$1$2: function(_, initialValue, combine) {
  22660. var value, i, _this = this,
  22661. $length = _this.get$length(_this);
  22662. for (value = initialValue, i = 0; i < $length; ++i) {
  22663. value = combine.call$2(value, _this.elementAt$1(0, i));
  22664. if ($length !== _this.get$length(_this))
  22665. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22666. }
  22667. return value;
  22668. },
  22669. fold$2: function($receiver, initialValue, combine) {
  22670. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  22671. },
  22672. skip$1: function(_, count) {
  22673. return H.SubListIterable$(this, count, null, H._instanceType(this)._eval$1("ListIterable.E"));
  22674. },
  22675. take$1: function(_, count) {
  22676. return H.SubListIterable$(this, 0, count, H._instanceType(this)._eval$1("ListIterable.E"));
  22677. },
  22678. toList$1$growable: function(_, growable) {
  22679. return P.List_List$from(this, growable, H._instanceType(this)._eval$1("ListIterable.E"));
  22680. },
  22681. toList$0: function($receiver) {
  22682. return this.toList$1$growable($receiver, true);
  22683. },
  22684. toSet$0: function(_) {
  22685. var i, _this = this,
  22686. result = P.LinkedHashSet_LinkedHashSet(H._instanceType(_this)._eval$1("ListIterable.E"));
  22687. for (i = 0; i < _this.get$length(_this); ++i)
  22688. result.add$1(0, _this.elementAt$1(0, i));
  22689. return result;
  22690. }
  22691. };
  22692. H.SubListIterable.prototype = {
  22693. get$_endIndex: function() {
  22694. var $length = J.get$length$asx(this.__internal$_iterable),
  22695. endOrLength = this._endOrLength;
  22696. if (endOrLength == null || endOrLength > $length)
  22697. return $length;
  22698. return endOrLength;
  22699. },
  22700. get$_startIndex: function() {
  22701. var $length = J.get$length$asx(this.__internal$_iterable),
  22702. t1 = this._start;
  22703. if (t1 > $length)
  22704. return $length;
  22705. return t1;
  22706. },
  22707. get$length: function(_) {
  22708. var endOrLength,
  22709. $length = J.get$length$asx(this.__internal$_iterable),
  22710. t1 = this._start;
  22711. if (t1 >= $length)
  22712. return 0;
  22713. endOrLength = this._endOrLength;
  22714. if (endOrLength == null || endOrLength >= $length)
  22715. return $length - t1;
  22716. return endOrLength - t1;
  22717. },
  22718. elementAt$1: function(_, index) {
  22719. var _this = this,
  22720. realIndex = _this.get$_startIndex() + index;
  22721. if (index < 0 || realIndex >= _this.get$_endIndex())
  22722. throw H.wrapException(P.IndexError$(index, _this, "index", null, null));
  22723. return J.elementAt$1$ax(_this.__internal$_iterable, realIndex);
  22724. },
  22725. skip$1: function(_, count) {
  22726. var newStart, endOrLength, _this = this;
  22727. P.RangeError_checkNotNegative(count, "count");
  22728. newStart = _this._start + count;
  22729. endOrLength = _this._endOrLength;
  22730. if (endOrLength != null && newStart >= endOrLength)
  22731. return new H.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>"));
  22732. return H.SubListIterable$(_this.__internal$_iterable, newStart, endOrLength, _this.$ti._precomputed1);
  22733. },
  22734. take$1: function(_, count) {
  22735. var endOrLength, t1, newEnd, _this = this;
  22736. P.RangeError_checkNotNegative(count, "count");
  22737. endOrLength = _this._endOrLength;
  22738. t1 = _this._start;
  22739. if (endOrLength == null)
  22740. return H.SubListIterable$(_this.__internal$_iterable, t1, t1 + count, _this.$ti._precomputed1);
  22741. else {
  22742. newEnd = t1 + count;
  22743. if (endOrLength < newEnd)
  22744. return _this;
  22745. return H.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1);
  22746. }
  22747. },
  22748. toList$1$growable: function(_, growable) {
  22749. var $length, result, i, _this = this,
  22750. start = _this._start,
  22751. t1 = _this.__internal$_iterable,
  22752. t2 = J.getInterceptor$asx(t1),
  22753. end = t2.get$length(t1),
  22754. endOrLength = _this._endOrLength;
  22755. if (endOrLength != null && endOrLength < end)
  22756. end = endOrLength;
  22757. $length = end - start;
  22758. if ($length <= 0) {
  22759. t1 = _this.$ti._precomputed1;
  22760. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  22761. }
  22762. result = P.List_List$filled($length, t2.elementAt$1(t1, start), growable, _this.$ti._precomputed1);
  22763. for (i = 1; i < $length; ++i) {
  22764. result[i] = t2.elementAt$1(t1, start + i);
  22765. if (t2.get$length(t1) < end)
  22766. throw H.wrapException(P.ConcurrentModificationError$(_this));
  22767. }
  22768. return result;
  22769. },
  22770. toList$0: function($receiver) {
  22771. return this.toList$1$growable($receiver, true);
  22772. }
  22773. };
  22774. H.ListIterator.prototype = {
  22775. get$current: function(_) {
  22776. var cur = this.__internal$_current;
  22777. return cur;
  22778. },
  22779. moveNext$0: function() {
  22780. var t3, _this = this,
  22781. t1 = _this.__internal$_iterable,
  22782. t2 = J.getInterceptor$asx(t1),
  22783. $length = t2.get$length(t1);
  22784. if (_this.__internal$_length !== $length)
  22785. throw H.wrapException(P.ConcurrentModificationError$(t1));
  22786. t3 = _this.__internal$_index;
  22787. if (t3 >= $length) {
  22788. _this.__internal$_current = null;
  22789. return false;
  22790. }
  22791. _this.__internal$_current = t2.elementAt$1(t1, t3);
  22792. ++_this.__internal$_index;
  22793. return true;
  22794. }
  22795. };
  22796. H.MappedIterable.prototype = {
  22797. get$iterator: function(_) {
  22798. return new H.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  22799. },
  22800. get$length: function(_) {
  22801. return J.get$length$asx(this.__internal$_iterable);
  22802. },
  22803. get$isEmpty: function(_) {
  22804. return J.get$isEmpty$asx(this.__internal$_iterable);
  22805. },
  22806. get$first: function(_) {
  22807. return this._f.call$1(J.get$first$ax(this.__internal$_iterable));
  22808. },
  22809. get$last: function(_) {
  22810. return this._f.call$1(J.get$last$ax(this.__internal$_iterable));
  22811. },
  22812. get$single: function(_) {
  22813. return this._f.call$1(J.get$single$ax(this.__internal$_iterable));
  22814. },
  22815. elementAt$1: function(_, index) {
  22816. return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index));
  22817. }
  22818. };
  22819. H.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1};
  22820. H.MappedIterator.prototype = {
  22821. moveNext$0: function() {
  22822. var _this = this,
  22823. t1 = _this._iterator;
  22824. if (t1.moveNext$0()) {
  22825. _this.__internal$_current = _this._f.call$1(t1.get$current(t1));
  22826. return true;
  22827. }
  22828. _this.__internal$_current = null;
  22829. return false;
  22830. },
  22831. get$current: function(_) {
  22832. var cur = this.__internal$_current;
  22833. return cur;
  22834. }
  22835. };
  22836. H.MappedListIterable.prototype = {
  22837. get$length: function(_) {
  22838. return J.get$length$asx(this._source);
  22839. },
  22840. elementAt$1: function(_, index) {
  22841. return this._f.call$1(J.elementAt$1$ax(this._source, index));
  22842. }
  22843. };
  22844. H.WhereIterable.prototype = {
  22845. get$iterator: function(_) {
  22846. return new H.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  22847. },
  22848. map$1$1: function(_, f, $T) {
  22849. return new H.MappedIterable(this, f, this.$ti._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  22850. }
  22851. };
  22852. H.WhereIterator.prototype = {
  22853. moveNext$0: function() {
  22854. var t1, t2;
  22855. for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();)
  22856. if (t2.call$1(t1.get$current(t1)))
  22857. return true;
  22858. return false;
  22859. },
  22860. get$current: function(_) {
  22861. var t1 = this._iterator;
  22862. return t1.get$current(t1);
  22863. }
  22864. };
  22865. H.ExpandIterable.prototype = {
  22866. get$iterator: function(_) {
  22867. return new H.ExpandIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, C.C_EmptyIterator);
  22868. }
  22869. };
  22870. H.ExpandIterator.prototype = {
  22871. get$current: function(_) {
  22872. var cur = this.__internal$_current;
  22873. return cur;
  22874. },
  22875. moveNext$0: function() {
  22876. var t2, t3, _this = this,
  22877. t1 = _this._currentExpansion;
  22878. if (t1 == null)
  22879. return false;
  22880. for (t2 = _this._iterator, t3 = _this._f; !t1.moveNext$0();) {
  22881. _this.__internal$_current = null;
  22882. if (t2.moveNext$0()) {
  22883. _this._currentExpansion = null;
  22884. t1 = J.get$iterator$ax(t3.call$1(t2.get$current(t2)));
  22885. _this._currentExpansion = t1;
  22886. } else
  22887. return false;
  22888. }
  22889. t1 = _this._currentExpansion;
  22890. _this.__internal$_current = t1.get$current(t1);
  22891. return true;
  22892. }
  22893. };
  22894. H.TakeIterable.prototype = {
  22895. get$iterator: function(_) {
  22896. return new H.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount);
  22897. }
  22898. };
  22899. H.EfficientLengthTakeIterable.prototype = {
  22900. get$length: function(_) {
  22901. var iterableLength = J.get$length$asx(this.__internal$_iterable),
  22902. t1 = this._takeCount;
  22903. if (iterableLength > t1)
  22904. return t1;
  22905. return iterableLength;
  22906. },
  22907. $isEfficientLengthIterable: 1
  22908. };
  22909. H.TakeIterator.prototype = {
  22910. moveNext$0: function() {
  22911. if (--this._remaining >= 0)
  22912. return this._iterator.moveNext$0();
  22913. this._remaining = -1;
  22914. return false;
  22915. },
  22916. get$current: function(_) {
  22917. var t1;
  22918. if (this._remaining < 0)
  22919. return null;
  22920. t1 = this._iterator;
  22921. return t1.get$current(t1);
  22922. }
  22923. };
  22924. H.SkipIterable.prototype = {
  22925. skip$1: function(_, count) {
  22926. P.ArgumentError_checkNotNull(count, "count");
  22927. P.RangeError_checkNotNegative(count, "count");
  22928. return new H.SkipIterable(this.__internal$_iterable, this._skipCount + count, H._instanceType(this)._eval$1("SkipIterable<1>"));
  22929. },
  22930. get$iterator: function(_) {
  22931. return new H.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount);
  22932. }
  22933. };
  22934. H.EfficientLengthSkipIterable.prototype = {
  22935. get$length: function(_) {
  22936. var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount;
  22937. if ($length >= 0)
  22938. return $length;
  22939. return 0;
  22940. },
  22941. skip$1: function(_, count) {
  22942. P.ArgumentError_checkNotNull(count, "count");
  22943. P.RangeError_checkNotNegative(count, "count");
  22944. return new H.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti);
  22945. },
  22946. $isEfficientLengthIterable: 1
  22947. };
  22948. H.SkipIterator.prototype = {
  22949. moveNext$0: function() {
  22950. var t1, i;
  22951. for (t1 = this._iterator, i = 0; i < this._skipCount; ++i)
  22952. t1.moveNext$0();
  22953. this._skipCount = 0;
  22954. return t1.moveNext$0();
  22955. },
  22956. get$current: function(_) {
  22957. var t1 = this._iterator;
  22958. return t1.get$current(t1);
  22959. }
  22960. };
  22961. H.SkipWhileIterable.prototype = {
  22962. get$iterator: function(_) {
  22963. return new H.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  22964. }
  22965. };
  22966. H.SkipWhileIterator.prototype = {
  22967. moveNext$0: function() {
  22968. var t1, t2, _this = this;
  22969. if (!_this._hasSkipped) {
  22970. _this._hasSkipped = true;
  22971. for (t1 = _this._iterator, t2 = _this._f; t1.moveNext$0();)
  22972. if (!t2.call$1(t1.get$current(t1)))
  22973. return true;
  22974. }
  22975. return _this._iterator.moveNext$0();
  22976. },
  22977. get$current: function(_) {
  22978. var t1 = this._iterator;
  22979. return t1.get$current(t1);
  22980. }
  22981. };
  22982. H.EmptyIterable.prototype = {
  22983. get$iterator: function(_) {
  22984. return C.C_EmptyIterator;
  22985. },
  22986. get$isEmpty: function(_) {
  22987. return true;
  22988. },
  22989. get$length: function(_) {
  22990. return 0;
  22991. },
  22992. get$first: function(_) {
  22993. throw H.wrapException(H.IterableElementError_noElement());
  22994. },
  22995. get$last: function(_) {
  22996. throw H.wrapException(H.IterableElementError_noElement());
  22997. },
  22998. get$single: function(_) {
  22999. throw H.wrapException(H.IterableElementError_noElement());
  23000. },
  23001. elementAt$1: function(_, index) {
  23002. throw H.wrapException(P.RangeError$range(index, 0, 0, "index", null));
  23003. },
  23004. contains$1: function(_, element) {
  23005. return false;
  23006. },
  23007. join$1: function(_, separator) {
  23008. return "";
  23009. },
  23010. join$0: function($receiver) {
  23011. return this.join$1($receiver, "");
  23012. },
  23013. where$1: function(_, test) {
  23014. return this;
  23015. },
  23016. map$1$1: function(_, f, $T) {
  23017. return new H.EmptyIterable($T._eval$1("EmptyIterable<0>"));
  23018. },
  23019. skip$1: function(_, count) {
  23020. P.RangeError_checkNotNegative(count, "count");
  23021. return this;
  23022. },
  23023. take$1: function(_, count) {
  23024. P.RangeError_checkNotNegative(count, "count");
  23025. return this;
  23026. },
  23027. toList$1$growable: function(_, growable) {
  23028. var t1 = this.$ti._precomputed1;
  23029. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  23030. },
  23031. toList$0: function($receiver) {
  23032. return this.toList$1$growable($receiver, true);
  23033. },
  23034. toSet$0: function(_) {
  23035. return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  23036. }
  23037. };
  23038. H.EmptyIterator.prototype = {
  23039. moveNext$0: function() {
  23040. return false;
  23041. },
  23042. get$current: function(_) {
  23043. throw H.wrapException(H.IterableElementError_noElement());
  23044. }
  23045. };
  23046. H.FollowedByIterable.prototype = {
  23047. get$iterator: function(_) {
  23048. return new H.FollowedByIterator(J.get$iterator$ax(this.__internal$_first), this._second);
  23049. },
  23050. get$length: function(_) {
  23051. var t1 = this._second;
  23052. return J.get$length$asx(this.__internal$_first) + t1.get$length(t1);
  23053. },
  23054. get$isEmpty: function(_) {
  23055. var t1;
  23056. if (J.get$isEmpty$asx(this.__internal$_first)) {
  23057. t1 = this._second;
  23058. t1 = t1.get$isEmpty(t1);
  23059. } else
  23060. t1 = false;
  23061. return t1;
  23062. },
  23063. get$isNotEmpty: function(_) {
  23064. var t1;
  23065. if (!J.get$isNotEmpty$asx(this.__internal$_first)) {
  23066. t1 = this._second;
  23067. t1 = t1.get$isNotEmpty(t1);
  23068. } else
  23069. t1 = true;
  23070. return t1;
  23071. },
  23072. contains$1: function(_, value) {
  23073. return J.contains$1$asx(this.__internal$_first, value) || this._second.contains$1(0, value);
  23074. },
  23075. get$first: function(_) {
  23076. var t1,
  23077. iterator = J.get$iterator$ax(this.__internal$_first);
  23078. if (iterator.moveNext$0())
  23079. return iterator.get$current(iterator);
  23080. t1 = this._second;
  23081. return t1.get$first(t1);
  23082. },
  23083. get$last: function(_) {
  23084. var last,
  23085. t1 = this._second,
  23086. iterator = t1.get$iterator(t1);
  23087. if (iterator.moveNext$0()) {
  23088. last = iterator.get$current(iterator);
  23089. for (; iterator.moveNext$0();)
  23090. last = iterator.get$current(iterator);
  23091. return last;
  23092. }
  23093. return J.get$last$ax(this.__internal$_first);
  23094. }
  23095. };
  23096. H.EfficientLengthFollowedByIterable.prototype = {
  23097. elementAt$1: function(_, index) {
  23098. var t1 = this.__internal$_first,
  23099. t2 = J.getInterceptor$asx(t1),
  23100. firstLength = t2.get$length(t1);
  23101. if (index < firstLength)
  23102. return t2.elementAt$1(t1, index);
  23103. return this._second.elementAt$1(0, index - firstLength);
  23104. },
  23105. get$first: function(_) {
  23106. var t1 = this.__internal$_first,
  23107. t2 = J.getInterceptor$asx(t1);
  23108. if (t2.get$isNotEmpty(t1))
  23109. return t2.get$first(t1);
  23110. t1 = this._second;
  23111. return t1.get$first(t1);
  23112. },
  23113. get$last: function(_) {
  23114. var t1 = this._second;
  23115. if (t1.get$isNotEmpty(t1))
  23116. return t1.get$last(t1);
  23117. return J.get$last$ax(this.__internal$_first);
  23118. },
  23119. $isEfficientLengthIterable: 1
  23120. };
  23121. H.FollowedByIterator.prototype = {
  23122. moveNext$0: function() {
  23123. var t1, _this = this;
  23124. if (_this._currentIterator.moveNext$0())
  23125. return true;
  23126. t1 = _this._nextIterable;
  23127. if (t1 != null) {
  23128. t1 = t1.get$iterator(t1);
  23129. _this._currentIterator = t1;
  23130. _this._nextIterable = null;
  23131. return t1.moveNext$0();
  23132. }
  23133. return false;
  23134. },
  23135. get$current: function(_) {
  23136. var t1 = this._currentIterator;
  23137. return t1.get$current(t1);
  23138. }
  23139. };
  23140. H.WhereTypeIterable.prototype = {
  23141. get$iterator: function(_) {
  23142. return new H.WhereTypeIterator(J.get$iterator$ax(this._source), this.$ti._eval$1("WhereTypeIterator<1>"));
  23143. }
  23144. };
  23145. H.WhereTypeIterator.prototype = {
  23146. moveNext$0: function() {
  23147. var t1, t2;
  23148. for (t1 = this._source, t2 = this.$ti._precomputed1; t1.moveNext$0();)
  23149. if (t2._is(t1.get$current(t1)))
  23150. return true;
  23151. return false;
  23152. },
  23153. get$current: function(_) {
  23154. var t1 = this._source;
  23155. return this.$ti._precomputed1._as(t1.get$current(t1));
  23156. }
  23157. };
  23158. H.FixedLengthListMixin.prototype = {
  23159. set$length: function(receiver, newLength) {
  23160. throw H.wrapException(P.UnsupportedError$("Cannot change the length of a fixed-length list"));
  23161. },
  23162. add$1: function(receiver, value) {
  23163. throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list"));
  23164. },
  23165. addAll$1: function(receiver, iterable) {
  23166. throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list"));
  23167. }
  23168. };
  23169. H.UnmodifiableListMixin.prototype = {
  23170. $indexSet: function(_, index, value) {
  23171. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23172. },
  23173. set$length: function(_, newLength) {
  23174. throw H.wrapException(P.UnsupportedError$("Cannot change the length of an unmodifiable list"));
  23175. },
  23176. add$1: function(_, value) {
  23177. throw H.wrapException(P.UnsupportedError$("Cannot add to an unmodifiable list"));
  23178. },
  23179. addAll$1: function(_, iterable) {
  23180. throw H.wrapException(P.UnsupportedError$("Cannot add to an unmodifiable list"));
  23181. },
  23182. sort$1: function(_, compare) {
  23183. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23184. },
  23185. setRange$4: function(_, start, end, iterable, skipCount) {
  23186. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23187. },
  23188. fillRange$3: function(_, start, end, fillValue) {
  23189. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23190. }
  23191. };
  23192. H.UnmodifiableListBase.prototype = {};
  23193. H.ReversedListIterable.prototype = {
  23194. get$length: function(_) {
  23195. return J.get$length$asx(this._source);
  23196. },
  23197. elementAt$1: function(_, index) {
  23198. var t1 = this._source,
  23199. t2 = J.getInterceptor$asx(t1);
  23200. return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index);
  23201. }
  23202. };
  23203. H.Symbol.prototype = {
  23204. get$hashCode: function(_) {
  23205. var hash = this._hashCode;
  23206. if (hash != null)
  23207. return hash;
  23208. hash = 536870911 & 664597 * J.get$hashCode$(this.__internal$_name);
  23209. this._hashCode = hash;
  23210. return hash;
  23211. },
  23212. toString$0: function(_) {
  23213. return 'Symbol("' + H.S(this.__internal$_name) + '")';
  23214. },
  23215. $eq: function(_, other) {
  23216. if (other == null)
  23217. return false;
  23218. return other instanceof H.Symbol && this.__internal$_name == other.__internal$_name;
  23219. },
  23220. $isSymbol0: 1
  23221. };
  23222. H.__CastListBase__CastIterableBase_ListMixin.prototype = {};
  23223. H.ConstantMapView.prototype = {};
  23224. H.ConstantMap.prototype = {
  23225. get$isEmpty: function(_) {
  23226. return this.get$length(this) === 0;
  23227. },
  23228. get$isNotEmpty: function(_) {
  23229. return this.get$length(this) !== 0;
  23230. },
  23231. toString$0: function(_) {
  23232. return P.MapBase_mapToString(this);
  23233. },
  23234. $indexSet: function(_, key, val) {
  23235. H.ConstantMap__throwUnmodifiable();
  23236. },
  23237. putIfAbsent$2: function(key, ifAbsent) {
  23238. H.ConstantMap__throwUnmodifiable();
  23239. },
  23240. remove$1: function(_, key) {
  23241. H.ConstantMap__throwUnmodifiable();
  23242. },
  23243. addAll$1: function(_, other) {
  23244. return H.ConstantMap__throwUnmodifiable();
  23245. },
  23246. get$entries: function() {
  23247. return this.entries$body$ConstantMap(H._instanceType(this)._eval$1("MapEntry<1,2>"));
  23248. },
  23249. entries$body$ConstantMap: function($async$type) {
  23250. var $async$self = this;
  23251. return P._makeSyncStarIterable(function() {
  23252. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, key, t3;
  23253. return function $async$get$entries($async$errorCode, $async$result) {
  23254. if ($async$errorCode === 1) {
  23255. $async$currentError = $async$result;
  23256. $async$goto = $async$handler;
  23257. }
  23258. while (true)
  23259. switch ($async$goto) {
  23260. case 0:
  23261. // Function start
  23262. t1 = $async$self.get$keys(), t1 = t1.get$iterator(t1), t2 = H._instanceType($async$self), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("MapEntry<1,2>");
  23263. case 2:
  23264. // for condition
  23265. if (!t1.moveNext$0()) {
  23266. // goto after for
  23267. $async$goto = 3;
  23268. break;
  23269. }
  23270. key = t1.get$current(t1);
  23271. t3 = $async$self.$index(0, key);
  23272. t3.toString;
  23273. $async$goto = 4;
  23274. return new P.MapEntry(key, t3, t2);
  23275. case 4:
  23276. // after yield
  23277. // goto for condition
  23278. $async$goto = 2;
  23279. break;
  23280. case 3:
  23281. // after for
  23282. // implicit return
  23283. return P._IterationMarker_endOfIteration();
  23284. case 1:
  23285. // rethrow
  23286. return P._IterationMarker_uncaughtError($async$currentError);
  23287. }
  23288. };
  23289. }, $async$type);
  23290. },
  23291. $isMap: 1
  23292. };
  23293. H.ConstantStringMap.prototype = {
  23294. get$length: function(_) {
  23295. return this.__js_helper$_length;
  23296. },
  23297. containsKey$1: function(key) {
  23298. if (typeof key != "string")
  23299. return false;
  23300. if ("__proto__" === key)
  23301. return false;
  23302. return this._jsObject.hasOwnProperty(key);
  23303. },
  23304. $index: function(_, key) {
  23305. if (!this.containsKey$1(key))
  23306. return null;
  23307. return this._fetch$1(key);
  23308. },
  23309. _fetch$1: function(key) {
  23310. return this._jsObject[key];
  23311. },
  23312. forEach$1: function(_, f) {
  23313. var t1, i, key,
  23314. keys = this.__js_helper$_keys;
  23315. for (t1 = keys.length, i = 0; i < t1; ++i) {
  23316. key = keys[i];
  23317. f.call$2(key, this._fetch$1(key));
  23318. }
  23319. },
  23320. get$keys: function() {
  23321. return new H._ConstantMapKeyIterable(this, H._instanceType(this)._eval$1("_ConstantMapKeyIterable<1>"));
  23322. },
  23323. get$values: function() {
  23324. var t1 = H._instanceType(this);
  23325. return H.MappedIterable_MappedIterable(this.__js_helper$_keys, new H.ConstantStringMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  23326. }
  23327. };
  23328. H.ConstantStringMap_values_closure.prototype = {
  23329. call$1: function(key) {
  23330. return this.$this._fetch$1(key);
  23331. },
  23332. $signature: function() {
  23333. return H._instanceType(this.$this)._eval$1("2(1)");
  23334. }
  23335. };
  23336. H.ConstantProtoMap.prototype = {
  23337. containsKey$1: function(key) {
  23338. if (typeof key != "string")
  23339. return false;
  23340. if ("__proto__" === key)
  23341. return true;
  23342. return this._jsObject.hasOwnProperty(key);
  23343. },
  23344. _fetch$1: function(key) {
  23345. return "__proto__" === key ? this._protoValue : this._jsObject[key];
  23346. }
  23347. };
  23348. H._ConstantMapKeyIterable.prototype = {
  23349. get$iterator: function(_) {
  23350. var t1 = this._map.__js_helper$_keys;
  23351. return new J.ArrayIterator(t1, t1.length);
  23352. },
  23353. get$length: function(_) {
  23354. return this._map.__js_helper$_keys.length;
  23355. }
  23356. };
  23357. H.Instantiation.prototype = {
  23358. Instantiation$1: function(_genericClosure) {
  23359. if (false)
  23360. H.instantiatedGenericFunctionType(0, 0);
  23361. },
  23362. toString$0: function(_) {
  23363. var types = "<" + C.JSArray_methods.join$1(this.get$_types(), ", ") + ">";
  23364. return H.S(this._genericClosure) + " with " + types;
  23365. }
  23366. };
  23367. H.Instantiation1.prototype = {
  23368. get$_types: function() {
  23369. return [H.createRuntimeType(this.$ti._precomputed1)];
  23370. },
  23371. call$2: function(a0, a1) {
  23372. return this._genericClosure.call$1$2(a0, a1, this.$ti._rest[0]);
  23373. },
  23374. call$0: function() {
  23375. return this._genericClosure.call$1$0(this.$ti._rest[0]);
  23376. },
  23377. call$3: function(a0, a1, a2) {
  23378. return this._genericClosure.call$1$3(a0, a1, a2, this.$ti._rest[0]);
  23379. },
  23380. call$4: function(a0, a1, a2, a3) {
  23381. return this._genericClosure.call$1$4(a0, a1, a2, a3, this.$ti._rest[0]);
  23382. },
  23383. $signature: function() {
  23384. return H.instantiatedGenericFunctionType(H.closureFunctionType(this._genericClosure), this.$ti);
  23385. }
  23386. };
  23387. H.JSInvocationMirror.prototype = {
  23388. get$memberName: function() {
  23389. var t1 = this.__js_helper$_memberName;
  23390. return t1;
  23391. },
  23392. get$positionalArguments: function() {
  23393. var t1, argumentCount, list, index, _this = this;
  23394. if (_this.__js_helper$_kind === 1)
  23395. return C.List_empty22;
  23396. t1 = _this._arguments;
  23397. argumentCount = t1.length - _this._namedArgumentNames.length - _this._typeArgumentCount;
  23398. if (argumentCount === 0)
  23399. return C.List_empty22;
  23400. list = [];
  23401. for (index = 0; index < argumentCount; ++index)
  23402. list.push(t1[index]);
  23403. return J.JSArray_markUnmodifiableList(list);
  23404. },
  23405. get$namedArguments: function() {
  23406. var t1, namedArgumentCount, t2, namedArgumentsStartIndex, map, i, _this = this;
  23407. if (_this.__js_helper$_kind !== 0)
  23408. return C.Map_empty10;
  23409. t1 = _this._namedArgumentNames;
  23410. namedArgumentCount = t1.length;
  23411. t2 = _this._arguments;
  23412. namedArgumentsStartIndex = t2.length - namedArgumentCount - _this._typeArgumentCount;
  23413. if (namedArgumentCount === 0)
  23414. return C.Map_empty10;
  23415. map = new H.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic);
  23416. for (i = 0; i < namedArgumentCount; ++i)
  23417. map.$indexSet(0, new H.Symbol(t1[i]), t2[namedArgumentsStartIndex + i]);
  23418. return new H.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic);
  23419. }
  23420. };
  23421. H.Primitives_functionNoSuchMethod_closure.prototype = {
  23422. call$2: function($name, argument) {
  23423. var t1 = this._box_0;
  23424. t1.names = t1.names + "$" + H.S($name);
  23425. this.namedArgumentList.push($name);
  23426. this.$arguments.push(argument);
  23427. ++t1.argumentCount;
  23428. }
  23429. };
  23430. H.TypeErrorDecoder.prototype = {
  23431. matchTypeError$1: function(message) {
  23432. var result, t1, _this = this,
  23433. match = new RegExp(_this._pattern).exec(message);
  23434. if (match == null)
  23435. return null;
  23436. result = Object.create(null);
  23437. t1 = _this._arguments;
  23438. if (t1 !== -1)
  23439. result.arguments = match[t1 + 1];
  23440. t1 = _this._argumentsExpr;
  23441. if (t1 !== -1)
  23442. result.argumentsExpr = match[t1 + 1];
  23443. t1 = _this._expr;
  23444. if (t1 !== -1)
  23445. result.expr = match[t1 + 1];
  23446. t1 = _this._method;
  23447. if (t1 !== -1)
  23448. result.method = match[t1 + 1];
  23449. t1 = _this._receiver;
  23450. if (t1 !== -1)
  23451. result.receiver = match[t1 + 1];
  23452. return result;
  23453. }
  23454. };
  23455. H.NullError.prototype = {
  23456. toString$0: function(_) {
  23457. var t1 = this._method;
  23458. if (t1 == null)
  23459. return "NoSuchMethodError: " + H.S(this.__js_helper$_message);
  23460. return "NoSuchMethodError: method not found: '" + t1 + "' on null";
  23461. }
  23462. };
  23463. H.JsNoSuchMethodError.prototype = {
  23464. toString$0: function(_) {
  23465. var t2, _this = this,
  23466. _s38_ = "NoSuchMethodError: method not found: '",
  23467. t1 = _this._method;
  23468. if (t1 == null)
  23469. return "NoSuchMethodError: " + H.S(_this.__js_helper$_message);
  23470. t2 = _this._receiver;
  23471. if (t2 == null)
  23472. return _s38_ + t1 + "' (" + H.S(_this.__js_helper$_message) + ")";
  23473. return _s38_ + t1 + "' on '" + t2 + "' (" + H.S(_this.__js_helper$_message) + ")";
  23474. }
  23475. };
  23476. H.UnknownJsTypeError.prototype = {
  23477. toString$0: function(_) {
  23478. var t1 = this.__js_helper$_message;
  23479. return t1.length === 0 ? "Error" : "Error: " + t1;
  23480. }
  23481. };
  23482. H.NullThrownFromJavaScriptException.prototype = {
  23483. toString$0: function(_) {
  23484. return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)";
  23485. },
  23486. $isException: 1
  23487. };
  23488. H.ExceptionAndStackTrace.prototype = {};
  23489. H._StackTrace.prototype = {
  23490. toString$0: function(_) {
  23491. var trace,
  23492. t1 = this._trace;
  23493. if (t1 != null)
  23494. return t1;
  23495. t1 = this._exception;
  23496. trace = t1 !== null && typeof t1 === "object" ? t1.stack : null;
  23497. return this._trace = trace == null ? "" : trace;
  23498. },
  23499. $isStackTrace: 1
  23500. };
  23501. H.Closure.prototype = {
  23502. toString$0: function(_) {
  23503. var $constructor = this.constructor,
  23504. $name = $constructor == null ? null : $constructor.name;
  23505. return "Closure '" + H.unminifyOrTag($name == null ? "unknown" : $name) + "'";
  23506. },
  23507. $isFunction: 1,
  23508. get$$call: function() {
  23509. return this;
  23510. },
  23511. "call*": "call$1",
  23512. $requiredArgCount: 1,
  23513. $defaultValues: null
  23514. };
  23515. H.TearOffClosure.prototype = {};
  23516. H.StaticClosure.prototype = {
  23517. toString$0: function(_) {
  23518. var $name = this.$static_name;
  23519. if ($name == null)
  23520. return "Closure of unknown static method";
  23521. return "Closure '" + H.unminifyOrTag($name) + "'";
  23522. }
  23523. };
  23524. H.BoundClosure.prototype = {
  23525. $eq: function(_, other) {
  23526. var _this = this;
  23527. if (other == null)
  23528. return false;
  23529. if (_this === other)
  23530. return true;
  23531. if (!(other instanceof H.BoundClosure))
  23532. return false;
  23533. return _this._self === other._self && _this._target === other._target && _this._receiver === other._receiver;
  23534. },
  23535. get$hashCode: function(_) {
  23536. var receiverHashCode,
  23537. t1 = this._receiver;
  23538. if (t1 == null)
  23539. receiverHashCode = H.Primitives_objectHashCode(this._self);
  23540. else
  23541. receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primitives_objectHashCode(t1);
  23542. return (receiverHashCode ^ H.Primitives_objectHashCode(this._target)) >>> 0;
  23543. },
  23544. toString$0: function(_) {
  23545. var receiver = this._receiver;
  23546. if (receiver == null)
  23547. receiver = this._self;
  23548. return "Closure '" + H.S(this.__js_helper$_name) + "' of " + ("Instance of '" + H.S(H.Primitives_objectTypeName(receiver)) + "'");
  23549. }
  23550. };
  23551. H.RuntimeError.prototype = {
  23552. toString$0: function(_) {
  23553. return "RuntimeError: " + this.message;
  23554. },
  23555. get$message: function(receiver) {
  23556. return this.message;
  23557. }
  23558. };
  23559. H._Required.prototype = {};
  23560. H.JsLinkedHashMap.prototype = {
  23561. get$length: function(_) {
  23562. return this.__js_helper$_length;
  23563. },
  23564. get$isEmpty: function(_) {
  23565. return this.__js_helper$_length === 0;
  23566. },
  23567. get$isNotEmpty: function(_) {
  23568. return !this.get$isEmpty(this);
  23569. },
  23570. get$keys: function() {
  23571. return new H.LinkedHashMapKeyIterable(this, H._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>"));
  23572. },
  23573. get$values: function() {
  23574. var t1 = H._instanceType(this);
  23575. return H.MappedIterable_MappedIterable(this.get$keys(), new H.JsLinkedHashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  23576. },
  23577. containsKey$1: function(key) {
  23578. var strings, nums, _this = this;
  23579. if (typeof key == "string") {
  23580. strings = _this._strings;
  23581. if (strings == null)
  23582. return false;
  23583. return _this._containsTableEntry$2(strings, key);
  23584. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  23585. nums = _this._nums;
  23586. if (nums == null)
  23587. return false;
  23588. return _this._containsTableEntry$2(nums, key);
  23589. } else
  23590. return _this.internalContainsKey$1(key);
  23591. },
  23592. internalContainsKey$1: function(key) {
  23593. var _this = this,
  23594. rest = _this.__js_helper$_rest;
  23595. if (rest == null)
  23596. return false;
  23597. return _this.internalFindBucketIndex$2(_this._getTableBucket$2(rest, _this.internalComputeHashCode$1(key)), key) >= 0;
  23598. },
  23599. addAll$1: function(_, other) {
  23600. other.forEach$1(0, new H.JsLinkedHashMap_addAll_closure(this));
  23601. },
  23602. $index: function(_, key) {
  23603. var strings, cell, t1, nums, _this = this, _null = null;
  23604. if (typeof key == "string") {
  23605. strings = _this._strings;
  23606. if (strings == null)
  23607. return _null;
  23608. cell = _this._getTableCell$2(strings, key);
  23609. t1 = cell == null ? _null : cell.hashMapCellValue;
  23610. return t1;
  23611. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  23612. nums = _this._nums;
  23613. if (nums == null)
  23614. return _null;
  23615. cell = _this._getTableCell$2(nums, key);
  23616. t1 = cell == null ? _null : cell.hashMapCellValue;
  23617. return t1;
  23618. } else
  23619. return _this.internalGet$1(key);
  23620. },
  23621. internalGet$1: function(key) {
  23622. var bucket, index, _this = this,
  23623. rest = _this.__js_helper$_rest;
  23624. if (rest == null)
  23625. return null;
  23626. bucket = _this._getTableBucket$2(rest, _this.internalComputeHashCode$1(key));
  23627. index = _this.internalFindBucketIndex$2(bucket, key);
  23628. if (index < 0)
  23629. return null;
  23630. return bucket[index].hashMapCellValue;
  23631. },
  23632. $indexSet: function(_, key, value) {
  23633. var strings, nums, _this = this;
  23634. if (typeof key == "string") {
  23635. strings = _this._strings;
  23636. _this._addHashTableEntry$3(strings == null ? _this._strings = _this._newHashTable$0() : strings, key, value);
  23637. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  23638. nums = _this._nums;
  23639. _this._addHashTableEntry$3(nums == null ? _this._nums = _this._newHashTable$0() : nums, key, value);
  23640. } else
  23641. _this.internalSet$2(key, value);
  23642. },
  23643. internalSet$2: function(key, value) {
  23644. var hash, bucket, index, _this = this,
  23645. rest = _this.__js_helper$_rest;
  23646. if (rest == null)
  23647. rest = _this.__js_helper$_rest = _this._newHashTable$0();
  23648. hash = _this.internalComputeHashCode$1(key);
  23649. bucket = _this._getTableBucket$2(rest, hash);
  23650. if (bucket == null)
  23651. _this._setTableEntry$3(rest, hash, [_this._newLinkedCell$2(key, value)]);
  23652. else {
  23653. index = _this.internalFindBucketIndex$2(bucket, key);
  23654. if (index >= 0)
  23655. bucket[index].hashMapCellValue = value;
  23656. else
  23657. bucket.push(_this._newLinkedCell$2(key, value));
  23658. }
  23659. },
  23660. putIfAbsent$2: function(key, ifAbsent) {
  23661. var value;
  23662. if (this.containsKey$1(key))
  23663. return this.$index(0, key);
  23664. value = ifAbsent.call$0();
  23665. this.$indexSet(0, key, value);
  23666. return value;
  23667. },
  23668. remove$1: function(_, key) {
  23669. var _this = this;
  23670. if (typeof key == "string")
  23671. return _this.__js_helper$_removeHashTableEntry$2(_this._strings, key);
  23672. else if (typeof key == "number" && (key & 0x3ffffff) === key)
  23673. return _this.__js_helper$_removeHashTableEntry$2(_this._nums, key);
  23674. else
  23675. return _this.internalRemove$1(key);
  23676. },
  23677. internalRemove$1: function(key) {
  23678. var hash, bucket, index, cell, _this = this,
  23679. rest = _this.__js_helper$_rest;
  23680. if (rest == null)
  23681. return null;
  23682. hash = _this.internalComputeHashCode$1(key);
  23683. bucket = _this._getTableBucket$2(rest, hash);
  23684. index = _this.internalFindBucketIndex$2(bucket, key);
  23685. if (index < 0)
  23686. return null;
  23687. cell = bucket.splice(index, 1)[0];
  23688. _this.__js_helper$_unlinkCell$1(cell);
  23689. if (bucket.length === 0)
  23690. _this._deleteTableEntry$2(rest, hash);
  23691. return cell.hashMapCellValue;
  23692. },
  23693. clear$0: function(_) {
  23694. var _this = this;
  23695. if (_this.__js_helper$_length > 0) {
  23696. _this._strings = _this._nums = _this.__js_helper$_rest = _this._first = _this._last = null;
  23697. _this.__js_helper$_length = 0;
  23698. _this._modified$0();
  23699. }
  23700. },
  23701. forEach$1: function(_, action) {
  23702. var _this = this,
  23703. cell = _this._first,
  23704. modifications = _this._modifications;
  23705. for (; cell != null;) {
  23706. action.call$2(cell.hashMapCellKey, cell.hashMapCellValue);
  23707. if (modifications !== _this._modifications)
  23708. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23709. cell = cell._next;
  23710. }
  23711. },
  23712. _addHashTableEntry$3: function(table, key, value) {
  23713. var cell = this._getTableCell$2(table, key);
  23714. if (cell == null)
  23715. this._setTableEntry$3(table, key, this._newLinkedCell$2(key, value));
  23716. else
  23717. cell.hashMapCellValue = value;
  23718. },
  23719. __js_helper$_removeHashTableEntry$2: function(table, key) {
  23720. var cell;
  23721. if (table == null)
  23722. return null;
  23723. cell = this._getTableCell$2(table, key);
  23724. if (cell == null)
  23725. return null;
  23726. this.__js_helper$_unlinkCell$1(cell);
  23727. this._deleteTableEntry$2(table, key);
  23728. return cell.hashMapCellValue;
  23729. },
  23730. _modified$0: function() {
  23731. this._modifications = this._modifications + 1 & 67108863;
  23732. },
  23733. _newLinkedCell$2: function(key, value) {
  23734. var t1, _this = this,
  23735. cell = new H.LinkedHashMapCell(key, value);
  23736. if (_this._first == null)
  23737. _this._first = _this._last = cell;
  23738. else {
  23739. t1 = _this._last;
  23740. t1.toString;
  23741. cell._previous = t1;
  23742. _this._last = t1._next = cell;
  23743. }
  23744. ++_this.__js_helper$_length;
  23745. _this._modified$0();
  23746. return cell;
  23747. },
  23748. __js_helper$_unlinkCell$1: function(cell) {
  23749. var _this = this,
  23750. previous = cell._previous,
  23751. next = cell._next;
  23752. if (previous == null)
  23753. _this._first = next;
  23754. else
  23755. previous._next = next;
  23756. if (next == null)
  23757. _this._last = previous;
  23758. else
  23759. next._previous = previous;
  23760. --_this.__js_helper$_length;
  23761. _this._modified$0();
  23762. },
  23763. internalComputeHashCode$1: function(key) {
  23764. return J.get$hashCode$(key) & 0x3ffffff;
  23765. },
  23766. internalFindBucketIndex$2: function(bucket, key) {
  23767. var $length, i;
  23768. if (bucket == null)
  23769. return -1;
  23770. $length = bucket.length;
  23771. for (i = 0; i < $length; ++i)
  23772. if (J.$eq$(bucket[i].hashMapCellKey, key))
  23773. return i;
  23774. return -1;
  23775. },
  23776. toString$0: function(_) {
  23777. return P.MapBase_mapToString(this);
  23778. },
  23779. _getTableCell$2: function(table, key) {
  23780. return table[key];
  23781. },
  23782. _getTableBucket$2: function(table, key) {
  23783. return table[key];
  23784. },
  23785. _setTableEntry$3: function(table, key, value) {
  23786. table[key] = value;
  23787. },
  23788. _deleteTableEntry$2: function(table, key) {
  23789. delete table[key];
  23790. },
  23791. _containsTableEntry$2: function(table, key) {
  23792. return this._getTableCell$2(table, key) != null;
  23793. },
  23794. _newHashTable$0: function() {
  23795. var _s20_ = "<non-identifier-key>",
  23796. table = Object.create(null);
  23797. this._setTableEntry$3(table, _s20_, table);
  23798. this._deleteTableEntry$2(table, _s20_);
  23799. return table;
  23800. }
  23801. };
  23802. H.JsLinkedHashMap_values_closure.prototype = {
  23803. call$1: function(each) {
  23804. return this.$this.$index(0, each);
  23805. },
  23806. $signature: function() {
  23807. return H._instanceType(this.$this)._eval$1("2(1)");
  23808. }
  23809. };
  23810. H.JsLinkedHashMap_addAll_closure.prototype = {
  23811. call$2: function(key, value) {
  23812. this.$this.$indexSet(0, key, value);
  23813. },
  23814. $signature: function() {
  23815. return H._instanceType(this.$this)._eval$1("Null(1,2)");
  23816. }
  23817. };
  23818. H.LinkedHashMapCell.prototype = {};
  23819. H.LinkedHashMapKeyIterable.prototype = {
  23820. get$length: function(_) {
  23821. return this._map.__js_helper$_length;
  23822. },
  23823. get$isEmpty: function(_) {
  23824. return this._map.__js_helper$_length === 0;
  23825. },
  23826. get$iterator: function(_) {
  23827. var t1 = this._map,
  23828. t2 = new H.LinkedHashMapKeyIterator(t1, t1._modifications);
  23829. t2._cell = t1._first;
  23830. return t2;
  23831. },
  23832. contains$1: function(_, element) {
  23833. return this._map.containsKey$1(element);
  23834. }
  23835. };
  23836. H.LinkedHashMapKeyIterator.prototype = {
  23837. get$current: function(_) {
  23838. return this.__js_helper$_current;
  23839. },
  23840. moveNext$0: function() {
  23841. var cell, _this = this,
  23842. t1 = _this._map;
  23843. if (_this._modifications !== t1._modifications)
  23844. throw H.wrapException(P.ConcurrentModificationError$(t1));
  23845. cell = _this._cell;
  23846. if (cell == null) {
  23847. _this.__js_helper$_current = null;
  23848. return false;
  23849. } else {
  23850. _this.__js_helper$_current = cell.hashMapCellKey;
  23851. _this._cell = cell._next;
  23852. return true;
  23853. }
  23854. }
  23855. };
  23856. H.initHooks_closure.prototype = {
  23857. call$1: function(o) {
  23858. return this.getTag(o);
  23859. },
  23860. $signature: 30
  23861. };
  23862. H.initHooks_closure0.prototype = {
  23863. call$2: function(o, tag) {
  23864. return this.getUnknownTag(o, tag);
  23865. }
  23866. };
  23867. H.initHooks_closure1.prototype = {
  23868. call$1: function(tag) {
  23869. return this.prototypeForTag(tag);
  23870. }
  23871. };
  23872. H.JSSyntaxRegExp.prototype = {
  23873. toString$0: function(_) {
  23874. return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags;
  23875. },
  23876. get$_nativeGlobalVersion: function() {
  23877. var _this = this,
  23878. t1 = _this._nativeGlobalRegExp;
  23879. if (t1 != null)
  23880. return t1;
  23881. t1 = _this._nativeRegExp;
  23882. return _this._nativeGlobalRegExp = H.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  23883. },
  23884. get$_nativeAnchoredVersion: function() {
  23885. var _this = this,
  23886. t1 = _this._nativeAnchoredRegExp;
  23887. if (t1 != null)
  23888. return t1;
  23889. t1 = _this._nativeRegExp;
  23890. return _this._nativeAnchoredRegExp = H.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  23891. },
  23892. firstMatch$1: function(string) {
  23893. var m;
  23894. if (typeof string != "string")
  23895. H.throwExpression(H.argumentErrorValue(string));
  23896. m = this._nativeRegExp.exec(string);
  23897. if (m == null)
  23898. return null;
  23899. return new H._MatchImplementation(m);
  23900. },
  23901. allMatches$2: function(_, string, start) {
  23902. var t1 = string.length;
  23903. if (start > t1)
  23904. throw H.wrapException(P.RangeError$range(start, 0, t1, null, null));
  23905. return new H._AllMatchesIterable(this, string, start);
  23906. },
  23907. allMatches$1: function($receiver, string) {
  23908. return this.allMatches$2($receiver, string, 0);
  23909. },
  23910. _execGlobal$2: function(string, start) {
  23911. var match,
  23912. regexp = this.get$_nativeGlobalVersion();
  23913. regexp.lastIndex = start;
  23914. match = regexp.exec(string);
  23915. if (match == null)
  23916. return null;
  23917. return new H._MatchImplementation(match);
  23918. },
  23919. _execAnchored$2: function(string, start) {
  23920. var match,
  23921. regexp = this.get$_nativeAnchoredVersion();
  23922. regexp.lastIndex = start;
  23923. match = regexp.exec(string);
  23924. if (match == null)
  23925. return null;
  23926. if (match.pop() != null)
  23927. return null;
  23928. return new H._MatchImplementation(match);
  23929. },
  23930. matchAsPrefix$2: function(_, string, start) {
  23931. if (start < 0 || start > string.length)
  23932. throw H.wrapException(P.RangeError$range(start, 0, string.length, null, null));
  23933. return this._execAnchored$2(string, start);
  23934. }
  23935. };
  23936. H._MatchImplementation.prototype = {
  23937. get$start: function(_) {
  23938. return this._match.index;
  23939. },
  23940. get$end: function(_) {
  23941. var t1 = this._match;
  23942. return t1.index + t1[0].length;
  23943. },
  23944. $isMatch: 1,
  23945. $isRegExpMatch: 1
  23946. };
  23947. H._AllMatchesIterable.prototype = {
  23948. get$iterator: function(_) {
  23949. return new H._AllMatchesIterator(this._re, this.__js_helper$_string, this.__js_helper$_start);
  23950. }
  23951. };
  23952. H._AllMatchesIterator.prototype = {
  23953. get$current: function(_) {
  23954. var t1 = this.__js_helper$_current;
  23955. t1.toString;
  23956. return t1;
  23957. },
  23958. moveNext$0: function() {
  23959. var t1, t2, t3, match, nextIndex, _this = this,
  23960. string = _this.__js_helper$_string;
  23961. if (string == null)
  23962. return false;
  23963. t1 = _this._nextIndex;
  23964. t2 = string.length;
  23965. if (t1 <= t2) {
  23966. t3 = _this._regExp;
  23967. match = t3._execGlobal$2(string, t1);
  23968. if (match != null) {
  23969. _this.__js_helper$_current = match;
  23970. nextIndex = match.get$end(match);
  23971. if (match._match.index === nextIndex) {
  23972. if (t3._nativeRegExp.unicode) {
  23973. t1 = _this._nextIndex;
  23974. t3 = t1 + 1;
  23975. if (t3 < t2) {
  23976. t1 = C.JSString_methods.codeUnitAt$1(string, t1);
  23977. if (t1 >= 55296 && t1 <= 56319) {
  23978. t1 = C.JSString_methods.codeUnitAt$1(string, t3);
  23979. t1 = t1 >= 56320 && t1 <= 57343;
  23980. } else
  23981. t1 = false;
  23982. } else
  23983. t1 = false;
  23984. } else
  23985. t1 = false;
  23986. nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1;
  23987. }
  23988. _this._nextIndex = nextIndex;
  23989. return true;
  23990. }
  23991. }
  23992. _this.__js_helper$_string = _this.__js_helper$_current = null;
  23993. return false;
  23994. }
  23995. };
  23996. H.StringMatch.prototype = {
  23997. get$end: function(_) {
  23998. return this.start + this.pattern.length;
  23999. },
  24000. group$1: function(group_) {
  24001. if (group_ !== 0)
  24002. throw H.wrapException(P.RangeError$value(group_, null, null));
  24003. return this.pattern;
  24004. },
  24005. $isMatch: 1,
  24006. get$start: function(receiver) {
  24007. return this.start;
  24008. }
  24009. };
  24010. H._StringAllMatchesIterable.prototype = {
  24011. get$iterator: function(_) {
  24012. return new H._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index);
  24013. },
  24014. get$first: function(_) {
  24015. var t1 = this._pattern,
  24016. index = this._input.indexOf(t1, this.__js_helper$_index);
  24017. if (index >= 0)
  24018. return new H.StringMatch(index, t1);
  24019. throw H.wrapException(H.IterableElementError_noElement());
  24020. }
  24021. };
  24022. H._StringAllMatchesIterator.prototype = {
  24023. moveNext$0: function() {
  24024. var index, end, _this = this,
  24025. t1 = _this.__js_helper$_index,
  24026. t2 = _this._pattern,
  24027. t3 = t2.length,
  24028. t4 = _this._input,
  24029. t5 = t4.length;
  24030. if (t1 + t3 > t5) {
  24031. _this.__js_helper$_current = null;
  24032. return false;
  24033. }
  24034. index = t4.indexOf(t2, t1);
  24035. if (index < 0) {
  24036. _this.__js_helper$_index = t5 + 1;
  24037. _this.__js_helper$_current = null;
  24038. return false;
  24039. }
  24040. end = index + t3;
  24041. _this.__js_helper$_current = new H.StringMatch(index, t2);
  24042. _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end;
  24043. return true;
  24044. },
  24045. get$current: function(_) {
  24046. var t1 = this.__js_helper$_current;
  24047. t1.toString;
  24048. return t1;
  24049. }
  24050. };
  24051. H.NativeTypedData.prototype = {
  24052. _invalidPosition$3: function(receiver, position, $length, $name) {
  24053. if (!H._isInt(position))
  24054. throw H.wrapException(P.ArgumentError$value(position, $name, "Invalid list position"));
  24055. else
  24056. throw H.wrapException(P.RangeError$range(position, 0, $length, $name, null));
  24057. },
  24058. _checkPosition$3: function(receiver, position, $length, $name) {
  24059. if (position >>> 0 !== position || position > $length)
  24060. this._invalidPosition$3(receiver, position, $length, $name);
  24061. }
  24062. };
  24063. H.NativeTypedArray.prototype = {
  24064. get$length: function(receiver) {
  24065. return receiver.length;
  24066. },
  24067. _setRangeFast$4: function(receiver, start, end, source, skipCount) {
  24068. var count, sourceLength,
  24069. targetLength = receiver.length;
  24070. this._checkPosition$3(receiver, start, targetLength, "start");
  24071. this._checkPosition$3(receiver, end, targetLength, "end");
  24072. if (start > end)
  24073. throw H.wrapException(P.RangeError$range(start, 0, end, null, null));
  24074. count = end - start;
  24075. if (skipCount < 0)
  24076. throw H.wrapException(P.ArgumentError$(skipCount));
  24077. sourceLength = source.length;
  24078. if (sourceLength - skipCount < count)
  24079. throw H.wrapException(P.StateError$("Not enough elements"));
  24080. if (skipCount !== 0 || sourceLength !== count)
  24081. source = source.subarray(skipCount, skipCount + count);
  24082. receiver.set(source, start);
  24083. },
  24084. $isJavaScriptIndexingBehavior: 1
  24085. };
  24086. H.NativeTypedArrayOfDouble.prototype = {
  24087. $index: function(receiver, index) {
  24088. H._checkValidIndex(index, receiver, receiver.length);
  24089. return receiver[index];
  24090. },
  24091. $indexSet: function(receiver, index, value) {
  24092. H._checkValidIndex(index, receiver, receiver.length);
  24093. receiver[index] = value;
  24094. },
  24095. setRange$4: function(receiver, start, end, iterable, skipCount) {
  24096. if (type$.NativeTypedArrayOfDouble._is(iterable)) {
  24097. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  24098. return;
  24099. }
  24100. this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
  24101. },
  24102. $isEfficientLengthIterable: 1,
  24103. $isIterable: 1,
  24104. $isList: 1
  24105. };
  24106. H.NativeTypedArrayOfInt.prototype = {
  24107. $indexSet: function(receiver, index, value) {
  24108. H._checkValidIndex(index, receiver, receiver.length);
  24109. receiver[index] = value;
  24110. },
  24111. setRange$4: function(receiver, start, end, iterable, skipCount) {
  24112. if (type$.NativeTypedArrayOfInt._is(iterable)) {
  24113. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  24114. return;
  24115. }
  24116. this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
  24117. },
  24118. $isEfficientLengthIterable: 1,
  24119. $isIterable: 1,
  24120. $isList: 1
  24121. };
  24122. H.NativeFloat32List.prototype = {
  24123. sublist$2: function(receiver, start, end) {
  24124. return new Float32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24125. }
  24126. };
  24127. H.NativeFloat64List.prototype = {
  24128. sublist$2: function(receiver, start, end) {
  24129. return new Float64Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24130. }
  24131. };
  24132. H.NativeInt16List.prototype = {
  24133. $index: function(receiver, index) {
  24134. H._checkValidIndex(index, receiver, receiver.length);
  24135. return receiver[index];
  24136. },
  24137. sublist$2: function(receiver, start, end) {
  24138. return new Int16Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24139. }
  24140. };
  24141. H.NativeInt32List.prototype = {
  24142. $index: function(receiver, index) {
  24143. H._checkValidIndex(index, receiver, receiver.length);
  24144. return receiver[index];
  24145. },
  24146. sublist$2: function(receiver, start, end) {
  24147. return new Int32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24148. }
  24149. };
  24150. H.NativeInt8List.prototype = {
  24151. $index: function(receiver, index) {
  24152. H._checkValidIndex(index, receiver, receiver.length);
  24153. return receiver[index];
  24154. },
  24155. sublist$2: function(receiver, start, end) {
  24156. return new Int8Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24157. }
  24158. };
  24159. H.NativeUint16List.prototype = {
  24160. $index: function(receiver, index) {
  24161. H._checkValidIndex(index, receiver, receiver.length);
  24162. return receiver[index];
  24163. },
  24164. sublist$2: function(receiver, start, end) {
  24165. return new Uint16Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24166. }
  24167. };
  24168. H.NativeUint32List.prototype = {
  24169. $index: function(receiver, index) {
  24170. H._checkValidIndex(index, receiver, receiver.length);
  24171. return receiver[index];
  24172. },
  24173. sublist$2: function(receiver, start, end) {
  24174. return new Uint32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24175. }
  24176. };
  24177. H.NativeUint8ClampedList.prototype = {
  24178. get$length: function(receiver) {
  24179. return receiver.length;
  24180. },
  24181. $index: function(receiver, index) {
  24182. H._checkValidIndex(index, receiver, receiver.length);
  24183. return receiver[index];
  24184. },
  24185. sublist$2: function(receiver, start, end) {
  24186. return new Uint8ClampedArray(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24187. }
  24188. };
  24189. H.NativeUint8List.prototype = {
  24190. get$length: function(receiver) {
  24191. return receiver.length;
  24192. },
  24193. $index: function(receiver, index) {
  24194. H._checkValidIndex(index, receiver, receiver.length);
  24195. return receiver[index];
  24196. },
  24197. sublist$2: function(receiver, start, end) {
  24198. return new Uint8Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24199. },
  24200. $isNativeUint8List: 1,
  24201. $isUint8List: 1
  24202. };
  24203. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {};
  24204. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  24205. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {};
  24206. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  24207. H.Rti.prototype = {
  24208. _eval$1: function(recipe) {
  24209. return H._Universe_evalInEnvironment(init.typeUniverse, this, recipe);
  24210. },
  24211. _bind$1: function(typeOrTuple) {
  24212. return H._Universe_bind(init.typeUniverse, this, typeOrTuple);
  24213. }
  24214. };
  24215. H._FunctionParameters.prototype = {};
  24216. H._Type.prototype = {
  24217. toString$0: function(_) {
  24218. return H._rtiToString(this._rti, null);
  24219. }
  24220. };
  24221. H._Error.prototype = {
  24222. toString$0: function(_) {
  24223. return this._message;
  24224. }
  24225. };
  24226. H._TypeError.prototype = {
  24227. get$message: function(_) {
  24228. return this._message;
  24229. }
  24230. };
  24231. P._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = {
  24232. call$1: function(_) {
  24233. var t1 = this._box_0,
  24234. f = t1.storedCallback;
  24235. t1.storedCallback = null;
  24236. f.call$0();
  24237. },
  24238. $signature: 50
  24239. };
  24240. P._AsyncRun__initializeScheduleImmediate_closure.prototype = {
  24241. call$1: function(callback) {
  24242. var t1, t2;
  24243. this._box_0.storedCallback = callback;
  24244. t1 = this.div;
  24245. t2 = this.span;
  24246. t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2);
  24247. }
  24248. };
  24249. P._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = {
  24250. call$0: function() {
  24251. this.callback.call$0();
  24252. },
  24253. "call*": "call$0",
  24254. $requiredArgCount: 0,
  24255. $signature: 0
  24256. };
  24257. P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = {
  24258. call$0: function() {
  24259. this.callback.call$0();
  24260. },
  24261. "call*": "call$0",
  24262. $requiredArgCount: 0,
  24263. $signature: 0
  24264. };
  24265. P._TimerImpl.prototype = {
  24266. _TimerImpl$2: function(milliseconds, callback) {
  24267. if (self.setTimeout != null)
  24268. this._handle = self.setTimeout(H.convertDartClosureToJS(new P._TimerImpl_internalCallback(this, callback), 0), milliseconds);
  24269. else
  24270. throw H.wrapException(P.UnsupportedError$("`setTimeout()` not found."));
  24271. },
  24272. _TimerImpl$periodic$2: function(milliseconds, callback) {
  24273. if (self.setTimeout != null)
  24274. this._handle = self.setInterval(H.convertDartClosureToJS(new P._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds);
  24275. else
  24276. throw H.wrapException(P.UnsupportedError$("Periodic timer."));
  24277. },
  24278. cancel$0: function() {
  24279. if (self.setTimeout != null) {
  24280. var t1 = this._handle;
  24281. if (t1 == null)
  24282. return;
  24283. if (this._once)
  24284. self.clearTimeout(t1);
  24285. else
  24286. self.clearInterval(t1);
  24287. this._handle = null;
  24288. } else
  24289. throw H.wrapException(P.UnsupportedError$("Canceling a timer."));
  24290. }
  24291. };
  24292. P._TimerImpl_internalCallback.prototype = {
  24293. call$0: function() {
  24294. var t1 = this.$this;
  24295. t1._handle = null;
  24296. t1._tick = 1;
  24297. this.callback.call$0();
  24298. },
  24299. "call*": "call$0",
  24300. $requiredArgCount: 0,
  24301. $signature: 1
  24302. };
  24303. P._TimerImpl$periodic_closure.prototype = {
  24304. call$0: function() {
  24305. var duration, _this = this,
  24306. t1 = _this.$this,
  24307. tick = t1._tick + 1,
  24308. t2 = _this.milliseconds;
  24309. if (t2 > 0) {
  24310. duration = Date.now() - _this.start;
  24311. if (duration > (tick + 1) * t2)
  24312. tick = C.JSInt_methods.$tdiv(duration, t2);
  24313. }
  24314. t1._tick = tick;
  24315. _this.callback.call$1(t1);
  24316. },
  24317. "call*": "call$0",
  24318. $requiredArgCount: 0,
  24319. $signature: 0
  24320. };
  24321. P._AsyncAwaitCompleter.prototype = {
  24322. complete$1: function(value) {
  24323. var t1, _this = this;
  24324. if (!_this.isSync)
  24325. _this._future._asyncComplete$1(value);
  24326. else {
  24327. t1 = _this._future;
  24328. if (_this.$ti._eval$1("Future<1>")._is(value))
  24329. t1._chainFuture$1(value);
  24330. else
  24331. t1._completeWithValue$1(value);
  24332. }
  24333. },
  24334. completeError$2: function(e, st) {
  24335. var t1;
  24336. if (st == null)
  24337. st = P.AsyncError_defaultStackTrace(e);
  24338. t1 = this._future;
  24339. if (this.isSync)
  24340. t1._completeError$2(e, st);
  24341. else
  24342. t1._asyncCompleteError$2(e, st);
  24343. }
  24344. };
  24345. P._awaitOnObject_closure.prototype = {
  24346. call$1: function(result) {
  24347. return this.bodyFunction.call$2(0, result);
  24348. },
  24349. $signature: 78
  24350. };
  24351. P._awaitOnObject_closure0.prototype = {
  24352. call$2: function(error, stackTrace) {
  24353. this.bodyFunction.call$2(1, new H.ExceptionAndStackTrace(error, stackTrace));
  24354. },
  24355. "call*": "call$2",
  24356. $requiredArgCount: 2,
  24357. $signature: 107
  24358. };
  24359. P._wrapJsFunctionForAsync_closure.prototype = {
  24360. call$2: function(errorCode, result) {
  24361. this.$protected(errorCode, result);
  24362. },
  24363. "call*": "call$2",
  24364. $requiredArgCount: 2
  24365. };
  24366. P._asyncStarHelper_closure.prototype = {
  24367. call$0: function() {
  24368. var t1 = this.controller,
  24369. t2 = t1.get$controller(),
  24370. t3 = t2._state;
  24371. if ((t3 & 1) !== 0 ? (t2.get$_subscription()._state & 4) !== 0 : (t3 & 2) === 0) {
  24372. t1.isSuspended = true;
  24373. return;
  24374. }
  24375. this.bodyFunction.call$2(0, null);
  24376. },
  24377. "call*": "call$0",
  24378. $requiredArgCount: 0,
  24379. $signature: 0
  24380. };
  24381. P._asyncStarHelper_closure0.prototype = {
  24382. call$1: function(_) {
  24383. var errorCode = this.controller.cancelationFuture != null ? 2 : 0;
  24384. this.bodyFunction.call$2(errorCode, null);
  24385. },
  24386. $signature: 50
  24387. };
  24388. P._AsyncStarStreamController.prototype = {
  24389. get$controller: function() {
  24390. var t1 = this.___AsyncStarStreamController_controller;
  24391. return t1 == null ? H.throwExpression(H.LateInitializationErrorImpl$("Field 'controller' has not been initialized.")) : t1;
  24392. },
  24393. add$1: function(_, $event) {
  24394. return this.get$controller().add$1(0, $event);
  24395. },
  24396. _AsyncStarStreamController$1: function(body, $T) {
  24397. var t1 = new P._AsyncStarStreamController__resumeBody(body);
  24398. this.___AsyncStarStreamController_controller = P.StreamController_StreamController(new P._AsyncStarStreamController_closure(this, body), new P._AsyncStarStreamController_closure0(t1), null, new P._AsyncStarStreamController_closure1(this, t1), false, $T);
  24399. }
  24400. };
  24401. P._AsyncStarStreamController__resumeBody.prototype = {
  24402. call$0: function() {
  24403. P.scheduleMicrotask(new P._AsyncStarStreamController__resumeBody_closure(this.body));
  24404. },
  24405. $signature: 0
  24406. };
  24407. P._AsyncStarStreamController__resumeBody_closure.prototype = {
  24408. call$0: function() {
  24409. this.body.call$2(0, null);
  24410. },
  24411. "call*": "call$0",
  24412. $requiredArgCount: 0,
  24413. $signature: 0
  24414. };
  24415. P._AsyncStarStreamController_closure0.prototype = {
  24416. call$0: function() {
  24417. this._resumeBody.call$0();
  24418. },
  24419. $signature: 0
  24420. };
  24421. P._AsyncStarStreamController_closure1.prototype = {
  24422. call$0: function() {
  24423. var t1 = this.$this;
  24424. if (t1.isSuspended) {
  24425. t1.isSuspended = false;
  24426. this._resumeBody.call$0();
  24427. }
  24428. },
  24429. $signature: 0
  24430. };
  24431. P._AsyncStarStreamController_closure.prototype = {
  24432. call$0: function() {
  24433. var t1 = this.$this;
  24434. if ((t1.get$controller()._state & 4) === 0) {
  24435. t1.cancelationFuture = new P._Future($.Zone__current, type$._Future_dynamic);
  24436. if (t1.isSuspended) {
  24437. t1.isSuspended = false;
  24438. P.scheduleMicrotask(new P._AsyncStarStreamController__closure(this.body));
  24439. }
  24440. return t1.cancelationFuture;
  24441. }
  24442. },
  24443. "call*": "call$0",
  24444. $requiredArgCount: 0,
  24445. $signature: 129
  24446. };
  24447. P._AsyncStarStreamController__closure.prototype = {
  24448. call$0: function() {
  24449. this.body.call$2(2, null);
  24450. },
  24451. "call*": "call$0",
  24452. $requiredArgCount: 0,
  24453. $signature: 0
  24454. };
  24455. P._IterationMarker.prototype = {
  24456. toString$0: function(_) {
  24457. return "IterationMarker(" + this.state + ", " + H.S(this.value) + ")";
  24458. }
  24459. };
  24460. P._SyncStarIterator.prototype = {
  24461. get$current: function(_) {
  24462. var nested = this._nestedIterator;
  24463. if (nested == null)
  24464. return this._async$_current;
  24465. return nested.get$current(nested);
  24466. },
  24467. moveNext$0: function() {
  24468. var t1, value, state, suspendedBodies, inner, _this = this;
  24469. for (; true;) {
  24470. t1 = _this._nestedIterator;
  24471. if (t1 != null)
  24472. if (t1.moveNext$0())
  24473. return true;
  24474. else
  24475. _this._nestedIterator = null;
  24476. value = function(body, SUCCESS, ERROR) {
  24477. var errorValue,
  24478. errorCode = SUCCESS;
  24479. while (true)
  24480. try {
  24481. return body(errorCode, errorValue);
  24482. } catch (error) {
  24483. errorValue = error;
  24484. errorCode = ERROR;
  24485. }
  24486. }(_this._body, 0, 1);
  24487. if (value instanceof P._IterationMarker) {
  24488. state = value.state;
  24489. if (state === 2) {
  24490. suspendedBodies = _this._suspendedBodies;
  24491. if (suspendedBodies == null || suspendedBodies.length === 0) {
  24492. _this._async$_current = null;
  24493. return false;
  24494. }
  24495. _this._body = suspendedBodies.pop();
  24496. continue;
  24497. } else {
  24498. t1 = value.value;
  24499. if (state === 3)
  24500. throw t1;
  24501. else {
  24502. inner = J.get$iterator$ax(t1);
  24503. if (inner instanceof P._SyncStarIterator) {
  24504. t1 = _this._suspendedBodies;
  24505. if (t1 == null)
  24506. t1 = _this._suspendedBodies = [];
  24507. t1.push(_this._body);
  24508. _this._body = inner._body;
  24509. continue;
  24510. } else {
  24511. _this._nestedIterator = inner;
  24512. continue;
  24513. }
  24514. }
  24515. }
  24516. } else {
  24517. _this._async$_current = value;
  24518. return true;
  24519. }
  24520. }
  24521. return false;
  24522. }
  24523. };
  24524. P._SyncStarIterable.prototype = {
  24525. get$iterator: function(_) {
  24526. return new P._SyncStarIterator(this._outerHelper());
  24527. }
  24528. };
  24529. P._BroadcastStream.prototype = {
  24530. get$isBroadcast: function() {
  24531. return true;
  24532. }
  24533. };
  24534. P._BroadcastSubscription.prototype = {
  24535. _async$_onPause$0: function() {
  24536. },
  24537. _async$_onResume$0: function() {
  24538. }
  24539. };
  24540. P._BroadcastStreamController.prototype = {
  24541. set$onPause: function(onPauseHandler) {
  24542. throw H.wrapException(P.UnsupportedError$(string$.Broadc));
  24543. },
  24544. set$onResume: function(onResumeHandler) {
  24545. throw H.wrapException(P.UnsupportedError$(string$.Broadc));
  24546. },
  24547. get$stream: function() {
  24548. return new P._BroadcastStream(this, H._instanceType(this)._eval$1("_BroadcastStream<1>"));
  24549. },
  24550. get$_mayAddEvent: function() {
  24551. return this._state < 4;
  24552. },
  24553. _ensureDoneFuture$0: function() {
  24554. var t1 = this._doneFuture;
  24555. return t1 == null ? this._doneFuture = new P._Future($.Zone__current, type$._Future_void) : t1;
  24556. },
  24557. _removeListener$1: function(subscription) {
  24558. var previous = subscription._async$_previous,
  24559. next = subscription._async$_next;
  24560. if (previous == null)
  24561. this._firstSubscription = next;
  24562. else
  24563. previous._async$_next = next;
  24564. if (next == null)
  24565. this._lastSubscription = previous;
  24566. else
  24567. next._async$_previous = previous;
  24568. subscription._async$_previous = subscription;
  24569. subscription._async$_next = subscription;
  24570. },
  24571. _subscribe$4: function(onData, onError, onDone, cancelOnError) {
  24572. var t1, t2, t3, t4, subscription, oldLast, _this = this;
  24573. if ((_this._state & 4) !== 0) {
  24574. t1 = new P._DoneStreamSubscription($.Zone__current, onDone, H._instanceType(_this)._eval$1("_DoneStreamSubscription<1>"));
  24575. t1._schedule$0();
  24576. return t1;
  24577. }
  24578. t1 = $.Zone__current;
  24579. t2 = cancelOnError ? 1 : 0;
  24580. t3 = P._BufferingStreamSubscription__registerDataHandler(t1, onData);
  24581. t4 = P._BufferingStreamSubscription__registerErrorHandler(t1, onError);
  24582. subscription = new P._BroadcastSubscription(_this, t3, t4, t1.registerCallback$1(onDone == null ? P.async___nullDoneHandler$closure() : onDone), t1, t2, H._instanceType(_this)._eval$1("_BroadcastSubscription<1>"));
  24583. subscription._async$_previous = subscription;
  24584. subscription._async$_next = subscription;
  24585. subscription._eventState = _this._state & 1;
  24586. oldLast = _this._lastSubscription;
  24587. _this._lastSubscription = subscription;
  24588. subscription._async$_next = null;
  24589. subscription._async$_previous = oldLast;
  24590. if (oldLast == null)
  24591. _this._firstSubscription = subscription;
  24592. else
  24593. oldLast._async$_next = subscription;
  24594. if (_this._firstSubscription === subscription)
  24595. P._runGuarded(_this.onListen);
  24596. return subscription;
  24597. },
  24598. _recordCancel$1: function(sub) {
  24599. var t1, _this = this;
  24600. H._instanceType(_this)._eval$1("_BroadcastSubscription<1>")._as(sub);
  24601. if (sub._async$_next === sub)
  24602. return null;
  24603. t1 = sub._eventState;
  24604. if ((t1 & 2) !== 0)
  24605. sub._eventState = t1 | 4;
  24606. else {
  24607. _this._removeListener$1(sub);
  24608. if ((_this._state & 2) === 0 && _this._firstSubscription == null)
  24609. _this._callOnCancel$0();
  24610. }
  24611. return null;
  24612. },
  24613. _recordPause$1: function(subscription) {
  24614. },
  24615. _recordResume$1: function(subscription) {
  24616. },
  24617. _addEventError$0: function() {
  24618. if ((this._state & 4) !== 0)
  24619. return new P.StateError("Cannot add new events after calling close");
  24620. return new P.StateError("Cannot add new events while doing an addStream");
  24621. },
  24622. add$1: function(_, data) {
  24623. if (!this.get$_mayAddEvent())
  24624. throw H.wrapException(this._addEventError$0());
  24625. this._sendData$1(data);
  24626. },
  24627. addError$2: function(error, stackTrace) {
  24628. var replacement;
  24629. P.ArgumentError_checkNotNull(error, "error");
  24630. if (!this.get$_mayAddEvent())
  24631. throw H.wrapException(this._addEventError$0());
  24632. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  24633. if (replacement != null) {
  24634. error = replacement.error;
  24635. stackTrace = replacement.stackTrace;
  24636. } else if (stackTrace == null)
  24637. stackTrace = P.AsyncError_defaultStackTrace(error);
  24638. this._sendError$2(error, stackTrace);
  24639. },
  24640. close$0: function(_) {
  24641. var t1, doneFuture, _this = this;
  24642. if ((_this._state & 4) !== 0) {
  24643. t1 = _this._doneFuture;
  24644. t1.toString;
  24645. return t1;
  24646. }
  24647. if (!_this.get$_mayAddEvent())
  24648. throw H.wrapException(_this._addEventError$0());
  24649. _this._state |= 4;
  24650. doneFuture = _this._ensureDoneFuture$0();
  24651. _this._sendDone$0();
  24652. return doneFuture;
  24653. },
  24654. _forEachListener$1: function(action) {
  24655. var subscription, id, next, _this = this,
  24656. t1 = _this._state;
  24657. if ((t1 & 2) !== 0)
  24658. throw H.wrapException(P.StateError$(string$.Cannotf));
  24659. subscription = _this._firstSubscription;
  24660. if (subscription == null)
  24661. return;
  24662. id = t1 & 1;
  24663. _this._state = t1 ^ 3;
  24664. for (; subscription != null;) {
  24665. t1 = subscription._eventState;
  24666. if ((t1 & 1) === id) {
  24667. subscription._eventState = t1 | 2;
  24668. action.call$1(subscription);
  24669. t1 = subscription._eventState ^= 1;
  24670. next = subscription._async$_next;
  24671. if ((t1 & 4) !== 0)
  24672. _this._removeListener$1(subscription);
  24673. subscription._eventState &= 4294967293;
  24674. subscription = next;
  24675. } else
  24676. subscription = subscription._async$_next;
  24677. }
  24678. _this._state &= 4294967293;
  24679. if (_this._firstSubscription == null)
  24680. _this._callOnCancel$0();
  24681. },
  24682. _callOnCancel$0: function() {
  24683. if ((this._state & 4) !== 0) {
  24684. var doneFuture = this._doneFuture;
  24685. if (doneFuture._state === 0)
  24686. doneFuture._asyncComplete$1(null);
  24687. }
  24688. P._runGuarded(this.onCancel);
  24689. },
  24690. $isEventSink: 1,
  24691. set$onListen: function(val) {
  24692. return this.onListen = val;
  24693. },
  24694. set$onCancel: function(val) {
  24695. return this.onCancel = val;
  24696. }
  24697. };
  24698. P._SyncBroadcastStreamController.prototype = {
  24699. get$_mayAddEvent: function() {
  24700. return P._BroadcastStreamController.prototype.get$_mayAddEvent.call(this) && (this._state & 2) === 0;
  24701. },
  24702. _addEventError$0: function() {
  24703. if ((this._state & 2) !== 0)
  24704. return new P.StateError(string$.Cannotf);
  24705. return this.super$_BroadcastStreamController$_addEventError();
  24706. },
  24707. _sendData$1: function(data) {
  24708. var _this = this,
  24709. t1 = _this._firstSubscription;
  24710. if (t1 == null)
  24711. return;
  24712. if (t1 === _this._lastSubscription) {
  24713. _this._state |= 2;
  24714. t1._async$_add$1(data);
  24715. _this._state &= 4294967293;
  24716. if (_this._firstSubscription == null)
  24717. _this._callOnCancel$0();
  24718. return;
  24719. }
  24720. _this._forEachListener$1(new P._SyncBroadcastStreamController__sendData_closure(data));
  24721. },
  24722. _sendError$2: function(error, stackTrace) {
  24723. if (this._firstSubscription == null)
  24724. return;
  24725. this._forEachListener$1(new P._SyncBroadcastStreamController__sendError_closure(error, stackTrace));
  24726. },
  24727. _sendDone$0: function() {
  24728. if (this._firstSubscription != null)
  24729. this._forEachListener$1(new P._SyncBroadcastStreamController__sendDone_closure());
  24730. else
  24731. this._doneFuture._asyncComplete$1(null);
  24732. }
  24733. };
  24734. P._SyncBroadcastStreamController__sendData_closure.prototype = {
  24735. call$1: function(subscription) {
  24736. subscription._async$_add$1(this.data);
  24737. }
  24738. };
  24739. P._SyncBroadcastStreamController__sendError_closure.prototype = {
  24740. call$1: function(subscription) {
  24741. subscription._addError$2(this.error, this.stackTrace);
  24742. }
  24743. };
  24744. P._SyncBroadcastStreamController__sendDone_closure.prototype = {
  24745. call$1: function(subscription) {
  24746. subscription._close$0();
  24747. }
  24748. };
  24749. P.Future.prototype = {};
  24750. P.Future_wait__error_set.prototype = {
  24751. call$1: function(t1) {
  24752. return this._box_0.error = t1;
  24753. },
  24754. $signature: 106
  24755. };
  24756. P.Future_wait__stackTrace_set.prototype = {
  24757. call$1: function(t1) {
  24758. return this._box_0.stackTrace = t1;
  24759. }
  24760. };
  24761. P.Future_wait__error_get.prototype = {
  24762. call$0: function() {
  24763. var t1 = this._box_0.error;
  24764. return t1 == null ? H.throwExpression(H.LateInitializationErrorImpl$("Local 'error' has not been initialized.")) : t1;
  24765. },
  24766. $signature: 121
  24767. };
  24768. P.Future_wait__stackTrace_get.prototype = {
  24769. call$0: function() {
  24770. var t1 = this._box_0.stackTrace;
  24771. return t1 == null ? H.throwExpression(H.LateInitializationErrorImpl$("Local 'stackTrace' has not been initialized.")) : t1;
  24772. },
  24773. $signature: 128
  24774. };
  24775. P.Future_wait_handleError.prototype = {
  24776. call$2: function(theError, theStackTrace) {
  24777. var _this = this,
  24778. t1 = _this._box_0,
  24779. t2 = --t1.remaining;
  24780. if (t1.values != null) {
  24781. t1.values = null;
  24782. if (t1.remaining === 0 || _this.eagerError)
  24783. _this.result._completeError$2(theError, theStackTrace);
  24784. else {
  24785. _this._error_set.call$1(theError);
  24786. _this._stackTrace_set.call$1(theStackTrace);
  24787. }
  24788. } else if (t2 === 0 && !_this.eagerError)
  24789. _this.result._completeError$2(_this._error_get.call$0(), _this._stackTrace_get.call$0());
  24790. },
  24791. "call*": "call$2",
  24792. $requiredArgCount: 2,
  24793. $signature: 40
  24794. };
  24795. P.Future_wait_closure.prototype = {
  24796. call$1: function(value) {
  24797. var valueList, _this = this,
  24798. t1 = _this._box_0;
  24799. --t1.remaining;
  24800. valueList = t1.values;
  24801. if (valueList != null) {
  24802. J.$indexSet$ax(valueList, _this.pos, value);
  24803. if (t1.remaining === 0)
  24804. _this.result._completeWithValue$1(P.List_List$from(valueList, true, _this.T));
  24805. } else if (t1.remaining === 0 && !_this.eagerError)
  24806. _this.result._completeError$2(_this._error_get.call$0(), _this._stackTrace_get.call$0());
  24807. },
  24808. $signature: function() {
  24809. return this.T._eval$1("Null(0)");
  24810. }
  24811. };
  24812. P._Completer.prototype = {
  24813. completeError$2: function(error, stackTrace) {
  24814. var t1, replacement;
  24815. P.ArgumentError_checkNotNull(error, "error");
  24816. t1 = this.future;
  24817. if (t1._state !== 0)
  24818. throw H.wrapException(P.StateError$("Future already completed"));
  24819. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  24820. if (replacement != null) {
  24821. error = replacement.error;
  24822. stackTrace = replacement.stackTrace;
  24823. } else if (stackTrace == null)
  24824. stackTrace = P.AsyncError_defaultStackTrace(error);
  24825. t1._asyncCompleteError$2(error, stackTrace);
  24826. },
  24827. completeError$1: function(error) {
  24828. return this.completeError$2(error, null);
  24829. }
  24830. };
  24831. P._AsyncCompleter.prototype = {
  24832. complete$1: function(value) {
  24833. var t1 = this.future;
  24834. if (t1._state !== 0)
  24835. throw H.wrapException(P.StateError$("Future already completed"));
  24836. t1._asyncComplete$1(value);
  24837. },
  24838. complete$0: function() {
  24839. return this.complete$1(null);
  24840. }
  24841. };
  24842. P._FutureListener.prototype = {
  24843. matchesErrorTest$1: function(asyncError) {
  24844. if ((this.state & 15) !== 6)
  24845. return true;
  24846. return this.result._zone.runUnary$2(this.callback, asyncError.error);
  24847. },
  24848. handleError$1: function(asyncError) {
  24849. var errorCallback = this.errorCallback,
  24850. t1 = this.result._zone;
  24851. if (type$.dynamic_Function_Object_StackTrace._is(errorCallback))
  24852. return t1.runBinary$3(errorCallback, asyncError.error, asyncError.stackTrace);
  24853. else
  24854. return t1.runUnary$2(errorCallback, asyncError.error);
  24855. }
  24856. };
  24857. P._Future.prototype = {
  24858. then$1$2$onError: function(f, onError, $R) {
  24859. var result,
  24860. currentZone = $.Zone__current;
  24861. if (currentZone !== C.C__RootZone) {
  24862. f = currentZone.registerUnaryCallback$1(f);
  24863. if (onError != null)
  24864. onError = P._registerErrorHandler(onError, currentZone);
  24865. }
  24866. result = new P._Future($.Zone__current, $R._eval$1("_Future<0>"));
  24867. this._addListener$1(new P._FutureListener(result, onError == null ? 1 : 3, f, onError));
  24868. return result;
  24869. },
  24870. then$1$1: function(f, $R) {
  24871. return this.then$1$2$onError(f, null, $R);
  24872. },
  24873. then$1: function(f) {
  24874. return this.then$1$2$onError(f, null, type$.dynamic);
  24875. },
  24876. _thenAwait$1$2: function(f, onError, $E) {
  24877. var result = new P._Future($.Zone__current, $E._eval$1("_Future<0>"));
  24878. this._addListener$1(new P._FutureListener(result, 19, f, onError));
  24879. return result;
  24880. },
  24881. whenComplete$1: function(action) {
  24882. var t1 = $.Zone__current,
  24883. result = new P._Future(t1, this.$ti);
  24884. this._addListener$1(new P._FutureListener(result, 8, t1 !== C.C__RootZone ? t1.registerCallback$1(action) : action, null));
  24885. return result;
  24886. },
  24887. _addListener$1: function(listener) {
  24888. var t2, _this = this,
  24889. t1 = _this._state;
  24890. if (t1 <= 1) {
  24891. listener._nextListener = _this._resultOrListeners;
  24892. _this._resultOrListeners = listener;
  24893. } else {
  24894. if (t1 === 2) {
  24895. t1 = _this._resultOrListeners;
  24896. t2 = t1._state;
  24897. if (t2 < 4) {
  24898. t1._addListener$1(listener);
  24899. return;
  24900. }
  24901. _this._state = t2;
  24902. _this._resultOrListeners = t1._resultOrListeners;
  24903. }
  24904. _this._zone.scheduleMicrotask$1(new P._Future__addListener_closure(_this, listener));
  24905. }
  24906. },
  24907. _prependListeners$1: function(listeners) {
  24908. var t1, existingListeners, next, cursor, next0, t2, _this = this, _box_0 = {};
  24909. _box_0.listeners = listeners;
  24910. if (listeners == null)
  24911. return;
  24912. t1 = _this._state;
  24913. if (t1 <= 1) {
  24914. existingListeners = _this._resultOrListeners;
  24915. _this._resultOrListeners = listeners;
  24916. if (existingListeners != null) {
  24917. next = listeners._nextListener;
  24918. for (cursor = listeners; next != null; cursor = next, next = next0)
  24919. next0 = next._nextListener;
  24920. cursor._nextListener = existingListeners;
  24921. }
  24922. } else {
  24923. if (t1 === 2) {
  24924. t1 = _this._resultOrListeners;
  24925. t2 = t1._state;
  24926. if (t2 < 4) {
  24927. t1._prependListeners$1(listeners);
  24928. return;
  24929. }
  24930. _this._state = t2;
  24931. _this._resultOrListeners = t1._resultOrListeners;
  24932. }
  24933. _box_0.listeners = _this._reverseListeners$1(listeners);
  24934. _this._zone.scheduleMicrotask$1(new P._Future__prependListeners_closure(_box_0, _this));
  24935. }
  24936. },
  24937. _removeListeners$0: function() {
  24938. var current = this._resultOrListeners;
  24939. this._resultOrListeners = null;
  24940. return this._reverseListeners$1(current);
  24941. },
  24942. _reverseListeners$1: function(listeners) {
  24943. var current, prev, next;
  24944. for (current = listeners, prev = null; current != null; prev = current, current = next) {
  24945. next = current._nextListener;
  24946. current._nextListener = prev;
  24947. }
  24948. return prev;
  24949. },
  24950. _complete$1: function(value) {
  24951. var listeners, _this = this,
  24952. t1 = _this.$ti;
  24953. if (t1._eval$1("Future<1>")._is(value))
  24954. if (t1._is(value))
  24955. P._Future__chainCoreFuture(value, _this);
  24956. else
  24957. P._Future__chainForeignFuture(value, _this);
  24958. else {
  24959. listeners = _this._removeListeners$0();
  24960. _this._state = 4;
  24961. _this._resultOrListeners = value;
  24962. P._Future__propagateToListeners(_this, listeners);
  24963. }
  24964. },
  24965. _completeWithValue$1: function(value) {
  24966. var _this = this,
  24967. listeners = _this._removeListeners$0();
  24968. _this._state = 4;
  24969. _this._resultOrListeners = value;
  24970. P._Future__propagateToListeners(_this, listeners);
  24971. },
  24972. _completeError$2: function(error, stackTrace) {
  24973. var _this = this,
  24974. listeners = _this._removeListeners$0(),
  24975. t1 = P.AsyncError$(error, stackTrace);
  24976. _this._state = 8;
  24977. _this._resultOrListeners = t1;
  24978. P._Future__propagateToListeners(_this, listeners);
  24979. },
  24980. _asyncComplete$1: function(value) {
  24981. if (this.$ti._eval$1("Future<1>")._is(value)) {
  24982. this._chainFuture$1(value);
  24983. return;
  24984. }
  24985. this._asyncCompleteWithValue$1(value);
  24986. },
  24987. _asyncCompleteWithValue$1: function(value) {
  24988. this._state = 1;
  24989. this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteWithValue_closure(this, value));
  24990. },
  24991. _chainFuture$1: function(value) {
  24992. var _this = this;
  24993. if (_this.$ti._is(value)) {
  24994. if (value._state === 8) {
  24995. _this._state = 1;
  24996. _this._zone.scheduleMicrotask$1(new P._Future__chainFuture_closure(_this, value));
  24997. } else
  24998. P._Future__chainCoreFuture(value, _this);
  24999. return;
  25000. }
  25001. P._Future__chainForeignFuture(value, _this);
  25002. },
  25003. _asyncCompleteError$2: function(error, stackTrace) {
  25004. this._state = 1;
  25005. this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteError_closure(this, error, stackTrace));
  25006. },
  25007. $isFuture: 1
  25008. };
  25009. P._Future__addListener_closure.prototype = {
  25010. call$0: function() {
  25011. P._Future__propagateToListeners(this.$this, this.listener);
  25012. },
  25013. "call*": "call$0",
  25014. $requiredArgCount: 0,
  25015. $signature: 0
  25016. };
  25017. P._Future__prependListeners_closure.prototype = {
  25018. call$0: function() {
  25019. P._Future__propagateToListeners(this.$this, this._box_0.listeners);
  25020. },
  25021. "call*": "call$0",
  25022. $requiredArgCount: 0,
  25023. $signature: 0
  25024. };
  25025. P._Future__chainForeignFuture_closure.prototype = {
  25026. call$1: function(value) {
  25027. var t1 = this.target;
  25028. t1._state = 0;
  25029. t1._complete$1(value);
  25030. },
  25031. $signature: 50
  25032. };
  25033. P._Future__chainForeignFuture_closure0.prototype = {
  25034. call$2: function(error, stackTrace) {
  25035. this.target._completeError$2(error, stackTrace);
  25036. },
  25037. "call*": "call$2",
  25038. $requiredArgCount: 2,
  25039. $signature: 144
  25040. };
  25041. P._Future__chainForeignFuture_closure1.prototype = {
  25042. call$0: function() {
  25043. this.target._completeError$2(this.e, this.s);
  25044. },
  25045. "call*": "call$0",
  25046. $requiredArgCount: 0,
  25047. $signature: 0
  25048. };
  25049. P._Future__asyncCompleteWithValue_closure.prototype = {
  25050. call$0: function() {
  25051. this.$this._completeWithValue$1(this.value);
  25052. },
  25053. "call*": "call$0",
  25054. $requiredArgCount: 0,
  25055. $signature: 0
  25056. };
  25057. P._Future__chainFuture_closure.prototype = {
  25058. call$0: function() {
  25059. P._Future__chainCoreFuture(this.value, this.$this);
  25060. },
  25061. "call*": "call$0",
  25062. $requiredArgCount: 0,
  25063. $signature: 0
  25064. };
  25065. P._Future__asyncCompleteError_closure.prototype = {
  25066. call$0: function() {
  25067. this.$this._completeError$2(this.error, this.stackTrace);
  25068. },
  25069. "call*": "call$0",
  25070. $requiredArgCount: 0,
  25071. $signature: 0
  25072. };
  25073. P._Future__propagateToListeners_handleWhenCompleteCallback.prototype = {
  25074. call$0: function() {
  25075. var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null;
  25076. try {
  25077. t1 = _this._box_0.listener;
  25078. completeResult = t1.result._zone.run$1(0, t1.callback);
  25079. } catch (exception) {
  25080. e = H.unwrapException(exception);
  25081. s = H.getTraceFromException(exception);
  25082. if (_this.hasError) {
  25083. t1 = _this._box_1.source._resultOrListeners.error;
  25084. t2 = e;
  25085. t2 = t1 == null ? t2 == null : t1 === t2;
  25086. t1 = t2;
  25087. } else
  25088. t1 = false;
  25089. t2 = _this._box_0;
  25090. if (t1)
  25091. t2.listenerValueOrError = _this._box_1.source._resultOrListeners;
  25092. else
  25093. t2.listenerValueOrError = P.AsyncError$(e, s);
  25094. t2.listenerHasError = true;
  25095. return;
  25096. }
  25097. if (completeResult instanceof P._Future && completeResult._state >= 4) {
  25098. if (completeResult._state === 8) {
  25099. t1 = _this._box_0;
  25100. t1.listenerValueOrError = completeResult._resultOrListeners;
  25101. t1.listenerHasError = true;
  25102. }
  25103. return;
  25104. }
  25105. if (type$.Future_dynamic._is(completeResult)) {
  25106. originalSource = _this._box_1.source;
  25107. t1 = _this._box_0;
  25108. t1.listenerValueOrError = completeResult.then$1$1(new P._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic);
  25109. t1.listenerHasError = false;
  25110. }
  25111. },
  25112. $signature: 1
  25113. };
  25114. P._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = {
  25115. call$1: function(_) {
  25116. return this.originalSource;
  25117. },
  25118. $signature: 142
  25119. };
  25120. P._Future__propagateToListeners_handleValueCallback.prototype = {
  25121. call$0: function() {
  25122. var e, s, t1, t2, exception;
  25123. try {
  25124. t1 = this._box_0;
  25125. t2 = t1.listener;
  25126. t1.listenerValueOrError = t2.result._zone.runUnary$2(t2.callback, this.sourceResult);
  25127. } catch (exception) {
  25128. e = H.unwrapException(exception);
  25129. s = H.getTraceFromException(exception);
  25130. t1 = this._box_0;
  25131. t1.listenerValueOrError = P.AsyncError$(e, s);
  25132. t1.listenerHasError = true;
  25133. }
  25134. },
  25135. $signature: 1
  25136. };
  25137. P._Future__propagateToListeners_handleError.prototype = {
  25138. call$0: function() {
  25139. var asyncError, e, s, t1, exception, t2, t3, t4, _this = this;
  25140. try {
  25141. asyncError = _this._box_1.source._resultOrListeners;
  25142. t1 = _this._box_0;
  25143. if (t1.listener.matchesErrorTest$1(asyncError) && t1.listener.errorCallback != null) {
  25144. t1.listenerValueOrError = t1.listener.handleError$1(asyncError);
  25145. t1.listenerHasError = false;
  25146. }
  25147. } catch (exception) {
  25148. e = H.unwrapException(exception);
  25149. s = H.getTraceFromException(exception);
  25150. t1 = _this._box_1.source._resultOrListeners;
  25151. t2 = t1.error;
  25152. t3 = e;
  25153. t4 = _this._box_0;
  25154. if (t2 == null ? t3 == null : t2 === t3)
  25155. t4.listenerValueOrError = t1;
  25156. else
  25157. t4.listenerValueOrError = P.AsyncError$(e, s);
  25158. t4.listenerHasError = true;
  25159. }
  25160. },
  25161. $signature: 1
  25162. };
  25163. P._AsyncCallbackEntry.prototype = {};
  25164. P.Stream.prototype = {
  25165. get$isBroadcast: function() {
  25166. return false;
  25167. },
  25168. get$length: function(_) {
  25169. var t1 = {},
  25170. future = new P._Future($.Zone__current, type$._Future_int);
  25171. t1.count = 0;
  25172. this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1, this), true, new P.Stream_length_closure0(t1, future), future.get$_completeError());
  25173. return future;
  25174. }
  25175. };
  25176. P.Stream_Stream$fromFuture_closure.prototype = {
  25177. call$1: function(value) {
  25178. var t1 = this.controller;
  25179. t1._async$_add$1(value);
  25180. t1._closeUnchecked$0();
  25181. },
  25182. $signature: function() {
  25183. return this.T._eval$1("Null(0)");
  25184. }
  25185. };
  25186. P.Stream_Stream$fromFuture_closure0.prototype = {
  25187. call$2: function(error, stackTrace) {
  25188. var t1 = this.controller;
  25189. t1._addError$2(error, stackTrace);
  25190. t1._closeUnchecked$0();
  25191. },
  25192. "call*": "call$2",
  25193. $requiredArgCount: 2,
  25194. $signature: 51
  25195. };
  25196. P.Stream_length_closure.prototype = {
  25197. call$1: function(_) {
  25198. ++this._box_0.count;
  25199. },
  25200. $signature: function() {
  25201. return H._instanceType(this.$this)._eval$1("Null(Stream.T)");
  25202. }
  25203. };
  25204. P.Stream_length_closure0.prototype = {
  25205. call$0: function() {
  25206. this.future._complete$1(this._box_0.count);
  25207. },
  25208. "call*": "call$0",
  25209. $requiredArgCount: 0,
  25210. $signature: 0
  25211. };
  25212. P.StreamSubscription.prototype = {};
  25213. P.EventSink.prototype = {};
  25214. P.StreamTransformerBase.prototype = {};
  25215. P._StreamController.prototype = {
  25216. get$stream: function() {
  25217. return new P._ControllerStream(this, H._instanceType(this)._eval$1("_ControllerStream<1>"));
  25218. },
  25219. get$_pendingEvents: function() {
  25220. if ((this._state & 8) === 0)
  25221. return this._varData;
  25222. return this._varData.varData;
  25223. },
  25224. _ensurePendingEvents$0: function() {
  25225. var events, state, _this = this;
  25226. if ((_this._state & 8) === 0) {
  25227. events = _this._varData;
  25228. return events == null ? _this._varData = new P._StreamImplEvents() : events;
  25229. }
  25230. state = _this._varData;
  25231. events = state.varData;
  25232. return events == null ? state.varData = new P._StreamImplEvents() : events;
  25233. },
  25234. get$_subscription: function() {
  25235. var varData = this._varData;
  25236. return (this._state & 8) !== 0 ? varData.varData : varData;
  25237. },
  25238. _badEventState$0: function() {
  25239. if ((this._state & 4) !== 0)
  25240. return new P.StateError("Cannot add event after closing");
  25241. return new P.StateError("Cannot add event while adding a stream");
  25242. },
  25243. addStream$2$cancelOnError: function(source, cancelOnError) {
  25244. var t2, t3, t4, _this = this,
  25245. t1 = _this._state;
  25246. if (t1 >= 4)
  25247. throw H.wrapException(_this._badEventState$0());
  25248. if ((t1 & 2) !== 0) {
  25249. t1 = new P._Future($.Zone__current, type$._Future_dynamic);
  25250. t1._asyncComplete$1(null);
  25251. return t1;
  25252. }
  25253. t1 = _this._varData;
  25254. t2 = new P._Future($.Zone__current, type$._Future_dynamic);
  25255. t3 = source.listen$4$cancelOnError$onDone$onError(_this.get$_async$_add(), false, _this.get$_close(), _this.get$_addError());
  25256. t4 = _this._state;
  25257. if ((t4 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t4 & 2) === 0)
  25258. t3.pause$0(0);
  25259. _this._varData = new P._StreamControllerAddStreamState(t1, t2, t3);
  25260. _this._state |= 8;
  25261. return t2;
  25262. },
  25263. _ensureDoneFuture$0: function() {
  25264. var t1 = this._doneFuture;
  25265. if (t1 == null)
  25266. t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new P._Future($.Zone__current, type$._Future_void);
  25267. return t1;
  25268. },
  25269. add$1: function(_, value) {
  25270. if (this._state >= 4)
  25271. throw H.wrapException(this._badEventState$0());
  25272. this._async$_add$1(value);
  25273. },
  25274. addError$2: function(error, stackTrace) {
  25275. var replacement;
  25276. P.ArgumentError_checkNotNull(error, "error");
  25277. if (this._state >= 4)
  25278. throw H.wrapException(this._badEventState$0());
  25279. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  25280. if (replacement != null) {
  25281. error = replacement.error;
  25282. stackTrace = replacement.stackTrace;
  25283. } else if (stackTrace == null)
  25284. stackTrace = P.AsyncError_defaultStackTrace(error);
  25285. this._addError$2(error, stackTrace);
  25286. },
  25287. addError$1: function(error) {
  25288. return this.addError$2(error, null);
  25289. },
  25290. close$0: function(_) {
  25291. var _this = this,
  25292. t1 = _this._state;
  25293. if ((t1 & 4) !== 0)
  25294. return _this._ensureDoneFuture$0();
  25295. if (t1 >= 4)
  25296. throw H.wrapException(_this._badEventState$0());
  25297. _this._closeUnchecked$0();
  25298. return _this._ensureDoneFuture$0();
  25299. },
  25300. _closeUnchecked$0: function() {
  25301. var t1 = this._state |= 4;
  25302. if ((t1 & 1) !== 0)
  25303. this._sendDone$0();
  25304. else if ((t1 & 3) === 0)
  25305. this._ensurePendingEvents$0().add$1(0, C.C__DelayedDone);
  25306. },
  25307. _async$_add$1: function(value) {
  25308. var t1 = this._state;
  25309. if ((t1 & 1) !== 0)
  25310. this._sendData$1(value);
  25311. else if ((t1 & 3) === 0)
  25312. this._ensurePendingEvents$0().add$1(0, new P._DelayedData(value));
  25313. },
  25314. _addError$2: function(error, stackTrace) {
  25315. var t1 = this._state;
  25316. if ((t1 & 1) !== 0)
  25317. this._sendError$2(error, stackTrace);
  25318. else if ((t1 & 3) === 0)
  25319. this._ensurePendingEvents$0().add$1(0, new P._DelayedError(error, stackTrace));
  25320. },
  25321. _close$0: function() {
  25322. var addState = this._varData;
  25323. this._varData = addState.varData;
  25324. this._state &= 4294967287;
  25325. addState.addStreamFuture._asyncComplete$1(null);
  25326. },
  25327. _subscribe$4: function(onData, onError, onDone, cancelOnError) {
  25328. var t1, t2, subscription, pendingEvents, addState, _this = this;
  25329. if ((_this._state & 3) !== 0)
  25330. throw H.wrapException(P.StateError$("Stream has already been listened to."));
  25331. t1 = $.Zone__current;
  25332. t2 = cancelOnError ? 1 : 0;
  25333. subscription = new P._ControllerSubscription(_this, P._BufferingStreamSubscription__registerDataHandler(t1, onData), P._BufferingStreamSubscription__registerErrorHandler(t1, onError), P._BufferingStreamSubscription__registerDoneHandler(t1, onDone), t1, t2, H._instanceType(_this)._eval$1("_ControllerSubscription<1>"));
  25334. pendingEvents = _this.get$_pendingEvents();
  25335. t2 = _this._state |= 1;
  25336. if ((t2 & 8) !== 0) {
  25337. addState = _this._varData;
  25338. addState.varData = subscription;
  25339. addState.addSubscription.resume$0();
  25340. } else
  25341. _this._varData = subscription;
  25342. subscription._setPendingEvents$1(pendingEvents);
  25343. subscription._guardCallback$1(new P._StreamController__subscribe_closure(_this));
  25344. return subscription;
  25345. },
  25346. _recordCancel$1: function(subscription) {
  25347. var onCancel, cancelResult, e, s, exception, result0, t1, _this = this, result = null;
  25348. if ((_this._state & 8) !== 0)
  25349. result = _this._varData.cancel$0();
  25350. _this._varData = null;
  25351. _this._state = _this._state & 4294967286 | 2;
  25352. onCancel = _this.onCancel;
  25353. if (onCancel != null)
  25354. if (result == null)
  25355. try {
  25356. cancelResult = onCancel.call$0();
  25357. if (type$.Future_void._is(cancelResult))
  25358. result = cancelResult;
  25359. } catch (exception) {
  25360. e = H.unwrapException(exception);
  25361. s = H.getTraceFromException(exception);
  25362. result0 = new P._Future($.Zone__current, type$._Future_void);
  25363. result0._asyncCompleteError$2(e, s);
  25364. result = result0;
  25365. }
  25366. else
  25367. result = result.whenComplete$1(onCancel);
  25368. t1 = new P._StreamController__recordCancel_complete(_this);
  25369. if (result != null)
  25370. result = result.whenComplete$1(t1);
  25371. else
  25372. t1.call$0();
  25373. return result;
  25374. },
  25375. _recordPause$1: function(subscription) {
  25376. if ((this._state & 8) !== 0)
  25377. this._varData.addSubscription.pause$0(0);
  25378. P._runGuarded(this.onPause);
  25379. },
  25380. _recordResume$1: function(subscription) {
  25381. if ((this._state & 8) !== 0)
  25382. this._varData.addSubscription.resume$0();
  25383. P._runGuarded(this.onResume);
  25384. },
  25385. $isEventSink: 1,
  25386. set$onListen: function(val) {
  25387. return this.onListen = val;
  25388. },
  25389. set$onPause: function(val) {
  25390. return this.onPause = val;
  25391. },
  25392. set$onResume: function(val) {
  25393. return this.onResume = val;
  25394. },
  25395. set$onCancel: function(val) {
  25396. return this.onCancel = val;
  25397. }
  25398. };
  25399. P._StreamController__subscribe_closure.prototype = {
  25400. call$0: function() {
  25401. P._runGuarded(this.$this.onListen);
  25402. },
  25403. $signature: 0
  25404. };
  25405. P._StreamController__recordCancel_complete.prototype = {
  25406. call$0: function() {
  25407. var doneFuture = this.$this._doneFuture;
  25408. if (doneFuture != null && doneFuture._state === 0)
  25409. doneFuture._asyncComplete$1(null);
  25410. },
  25411. "call*": "call$0",
  25412. $requiredArgCount: 0,
  25413. $signature: 1
  25414. };
  25415. P._SyncStreamControllerDispatch.prototype = {
  25416. _sendData$1: function(data) {
  25417. this.get$_subscription()._async$_add$1(data);
  25418. },
  25419. _sendError$2: function(error, stackTrace) {
  25420. this.get$_subscription()._addError$2(error, stackTrace);
  25421. },
  25422. _sendDone$0: function() {
  25423. this.get$_subscription()._close$0();
  25424. }
  25425. };
  25426. P._AsyncStreamControllerDispatch.prototype = {
  25427. _sendData$1: function(data) {
  25428. this.get$_subscription()._addPending$1(new P._DelayedData(data));
  25429. },
  25430. _sendError$2: function(error, stackTrace) {
  25431. this.get$_subscription()._addPending$1(new P._DelayedError(error, stackTrace));
  25432. },
  25433. _sendDone$0: function() {
  25434. this.get$_subscription()._addPending$1(C.C__DelayedDone);
  25435. }
  25436. };
  25437. P._AsyncStreamController.prototype = {};
  25438. P._SyncStreamController.prototype = {};
  25439. P._ControllerStream.prototype = {
  25440. get$hashCode: function(_) {
  25441. return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>> 0;
  25442. },
  25443. $eq: function(_, other) {
  25444. if (other == null)
  25445. return false;
  25446. if (this === other)
  25447. return true;
  25448. return other instanceof P._ControllerStream && other._async$_controller === this._async$_controller;
  25449. }
  25450. };
  25451. P._ControllerSubscription.prototype = {
  25452. _async$_onCancel$0: function() {
  25453. return this._async$_controller._recordCancel$1(this);
  25454. },
  25455. _async$_onPause$0: function() {
  25456. this._async$_controller._recordPause$1(this);
  25457. },
  25458. _async$_onResume$0: function() {
  25459. this._async$_controller._recordResume$1(this);
  25460. }
  25461. };
  25462. P._AddStreamState.prototype = {
  25463. cancel$0: function() {
  25464. var cancel = this.addSubscription.cancel$0();
  25465. if (cancel == null) {
  25466. this.addStreamFuture._asyncComplete$1(null);
  25467. return $.$get$Future__nullFuture();
  25468. }
  25469. return cancel.whenComplete$1(new P._AddStreamState_cancel_closure(this));
  25470. }
  25471. };
  25472. P._AddStreamState_cancel_closure.prototype = {
  25473. call$0: function() {
  25474. this.$this.addStreamFuture._asyncComplete$1(null);
  25475. },
  25476. "call*": "call$0",
  25477. $requiredArgCount: 0,
  25478. $signature: 0
  25479. };
  25480. P._StreamControllerAddStreamState.prototype = {};
  25481. P._BufferingStreamSubscription.prototype = {
  25482. _setPendingEvents$1: function(pendingEvents) {
  25483. var _this = this;
  25484. if (pendingEvents == null)
  25485. return;
  25486. _this._pending = pendingEvents;
  25487. if (pendingEvents.lastPendingEvent != null) {
  25488. _this._state = (_this._state | 64) >>> 0;
  25489. pendingEvents.schedule$1(_this);
  25490. }
  25491. },
  25492. pause$1: function(_, resumeSignal) {
  25493. var t2, t3, _this = this,
  25494. t1 = _this._state;
  25495. if ((t1 & 8) !== 0)
  25496. return;
  25497. t2 = (t1 + 128 | 4) >>> 0;
  25498. _this._state = t2;
  25499. if (t1 < 128) {
  25500. t3 = _this._pending;
  25501. if (t3 != null)
  25502. if (t3._state === 1)
  25503. t3._state = 3;
  25504. }
  25505. if ((t1 & 4) === 0 && (t2 & 32) === 0)
  25506. _this._guardCallback$1(_this.get$_async$_onPause());
  25507. },
  25508. pause$0: function($receiver) {
  25509. return this.pause$1($receiver, null);
  25510. },
  25511. resume$0: function() {
  25512. var _this = this,
  25513. t1 = _this._state;
  25514. if ((t1 & 8) !== 0)
  25515. return;
  25516. if (t1 >= 128) {
  25517. t1 = _this._state = t1 - 128;
  25518. if (t1 < 128)
  25519. if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent != null)
  25520. _this._pending.schedule$1(_this);
  25521. else {
  25522. t1 = (t1 & 4294967291) >>> 0;
  25523. _this._state = t1;
  25524. if ((t1 & 32) === 0)
  25525. _this._guardCallback$1(_this.get$_async$_onResume());
  25526. }
  25527. }
  25528. },
  25529. cancel$0: function() {
  25530. var _this = this,
  25531. t1 = (_this._state & 4294967279) >>> 0;
  25532. _this._state = t1;
  25533. if ((t1 & 8) === 0)
  25534. _this._cancel$0();
  25535. t1 = _this._cancelFuture;
  25536. return t1 == null ? $.$get$Future__nullFuture() : t1;
  25537. },
  25538. _cancel$0: function() {
  25539. var t2, _this = this,
  25540. t1 = _this._state = (_this._state | 8) >>> 0;
  25541. if ((t1 & 64) !== 0) {
  25542. t2 = _this._pending;
  25543. if (t2._state === 1)
  25544. t2._state = 3;
  25545. }
  25546. if ((t1 & 32) === 0)
  25547. _this._pending = null;
  25548. _this._cancelFuture = _this._async$_onCancel$0();
  25549. },
  25550. _async$_add$1: function(data) {
  25551. var t1 = this._state;
  25552. if ((t1 & 8) !== 0)
  25553. return;
  25554. if (t1 < 32)
  25555. this._sendData$1(data);
  25556. else
  25557. this._addPending$1(new P._DelayedData(data));
  25558. },
  25559. _addError$2: function(error, stackTrace) {
  25560. var t1 = this._state;
  25561. if ((t1 & 8) !== 0)
  25562. return;
  25563. if (t1 < 32)
  25564. this._sendError$2(error, stackTrace);
  25565. else
  25566. this._addPending$1(new P._DelayedError(error, stackTrace));
  25567. },
  25568. _close$0: function() {
  25569. var _this = this,
  25570. t1 = _this._state;
  25571. if ((t1 & 8) !== 0)
  25572. return;
  25573. t1 = (t1 | 2) >>> 0;
  25574. _this._state = t1;
  25575. if (t1 < 32)
  25576. _this._sendDone$0();
  25577. else
  25578. _this._addPending$1(C.C__DelayedDone);
  25579. },
  25580. _async$_onPause$0: function() {
  25581. },
  25582. _async$_onResume$0: function() {
  25583. },
  25584. _async$_onCancel$0: function() {
  25585. return null;
  25586. },
  25587. _addPending$1: function($event) {
  25588. var t1, _this = this,
  25589. pending = _this._pending;
  25590. if (pending == null)
  25591. pending = new P._StreamImplEvents();
  25592. _this._pending = pending;
  25593. pending.add$1(0, $event);
  25594. t1 = _this._state;
  25595. if ((t1 & 64) === 0) {
  25596. t1 = (t1 | 64) >>> 0;
  25597. _this._state = t1;
  25598. if (t1 < 128)
  25599. pending.schedule$1(_this);
  25600. }
  25601. },
  25602. _sendData$1: function(data) {
  25603. var _this = this,
  25604. t1 = _this._state;
  25605. _this._state = (t1 | 32) >>> 0;
  25606. _this._zone.runUnaryGuarded$2(_this._onData, data);
  25607. _this._state = (_this._state & 4294967263) >>> 0;
  25608. _this._checkState$1((t1 & 4) !== 0);
  25609. },
  25610. _sendError$2: function(error, stackTrace) {
  25611. var cancelFuture, _this = this,
  25612. t1 = _this._state,
  25613. t2 = new P._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace);
  25614. if ((t1 & 1) !== 0) {
  25615. _this._state = (t1 | 16) >>> 0;
  25616. _this._cancel$0();
  25617. cancelFuture = _this._cancelFuture;
  25618. if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
  25619. cancelFuture.whenComplete$1(t2);
  25620. else
  25621. t2.call$0();
  25622. } else {
  25623. t2.call$0();
  25624. _this._checkState$1((t1 & 4) !== 0);
  25625. }
  25626. },
  25627. _sendDone$0: function() {
  25628. var cancelFuture, _this = this,
  25629. t1 = new P._BufferingStreamSubscription__sendDone_sendDone(_this);
  25630. _this._cancel$0();
  25631. _this._state = (_this._state | 16) >>> 0;
  25632. cancelFuture = _this._cancelFuture;
  25633. if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
  25634. cancelFuture.whenComplete$1(t1);
  25635. else
  25636. t1.call$0();
  25637. },
  25638. _guardCallback$1: function(callback) {
  25639. var _this = this,
  25640. t1 = _this._state;
  25641. _this._state = (t1 | 32) >>> 0;
  25642. callback.call$0();
  25643. _this._state = (_this._state & 4294967263) >>> 0;
  25644. _this._checkState$1((t1 & 4) !== 0);
  25645. },
  25646. _checkState$1: function(wasInputPaused) {
  25647. var t2, isInputPaused, _this = this,
  25648. t1 = _this._state;
  25649. if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent == null) {
  25650. t1 = _this._state = (t1 & 4294967231) >>> 0;
  25651. if ((t1 & 4) !== 0)
  25652. if (t1 < 128) {
  25653. t2 = _this._pending;
  25654. t2 = t2 == null ? null : t2.lastPendingEvent == null;
  25655. t2 = t2 !== false;
  25656. } else
  25657. t2 = false;
  25658. else
  25659. t2 = false;
  25660. if (t2) {
  25661. t1 = (t1 & 4294967291) >>> 0;
  25662. _this._state = t1;
  25663. }
  25664. }
  25665. for (; true; wasInputPaused = isInputPaused) {
  25666. if ((t1 & 8) !== 0) {
  25667. _this._pending = null;
  25668. return;
  25669. }
  25670. isInputPaused = (t1 & 4) !== 0;
  25671. if (wasInputPaused === isInputPaused)
  25672. break;
  25673. _this._state = (t1 ^ 32) >>> 0;
  25674. if (isInputPaused)
  25675. _this._async$_onPause$0();
  25676. else
  25677. _this._async$_onResume$0();
  25678. t1 = (_this._state & 4294967263) >>> 0;
  25679. _this._state = t1;
  25680. }
  25681. if ((t1 & 64) !== 0 && t1 < 128)
  25682. _this._pending.schedule$1(_this);
  25683. },
  25684. $isStreamSubscription: 1
  25685. };
  25686. P._BufferingStreamSubscription__sendError_sendError.prototype = {
  25687. call$0: function() {
  25688. var onError, t3,
  25689. t1 = this.$this,
  25690. t2 = t1._state;
  25691. if ((t2 & 8) !== 0 && (t2 & 16) === 0)
  25692. return;
  25693. t1._state = (t2 | 32) >>> 0;
  25694. onError = t1._onError;
  25695. t2 = this.error;
  25696. t3 = t1._zone;
  25697. if (type$.void_Function_Object_StackTrace._is(onError))
  25698. t3.runBinaryGuarded$3(onError, t2, this.stackTrace);
  25699. else
  25700. t3.runUnaryGuarded$2(onError, t2);
  25701. t1._state = (t1._state & 4294967263) >>> 0;
  25702. },
  25703. "call*": "call$0",
  25704. $requiredArgCount: 0,
  25705. $signature: 1
  25706. };
  25707. P._BufferingStreamSubscription__sendDone_sendDone.prototype = {
  25708. call$0: function() {
  25709. var t1 = this.$this,
  25710. t2 = t1._state;
  25711. if ((t2 & 16) === 0)
  25712. return;
  25713. t1._state = (t2 | 42) >>> 0;
  25714. t1._zone.runGuarded$1(t1._onDone);
  25715. t1._state = (t1._state & 4294967263) >>> 0;
  25716. },
  25717. "call*": "call$0",
  25718. $requiredArgCount: 0,
  25719. $signature: 1
  25720. };
  25721. P._StreamImpl.prototype = {
  25722. listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
  25723. return this._async$_controller._subscribe$4(onData, onError, onDone, cancelOnError === true);
  25724. },
  25725. listen$3$onDone$onError: function(onData, onDone, onError) {
  25726. return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
  25727. }
  25728. };
  25729. P._DelayedEvent.prototype = {
  25730. get$next: function() {
  25731. return this.next;
  25732. },
  25733. set$next: function(val) {
  25734. return this.next = val;
  25735. }
  25736. };
  25737. P._DelayedData.prototype = {
  25738. perform$1: function(dispatch) {
  25739. dispatch._sendData$1(this.value);
  25740. }
  25741. };
  25742. P._DelayedError.prototype = {
  25743. perform$1: function(dispatch) {
  25744. dispatch._sendError$2(this.error, this.stackTrace);
  25745. }
  25746. };
  25747. P._DelayedDone.prototype = {
  25748. perform$1: function(dispatch) {
  25749. dispatch._sendDone$0();
  25750. },
  25751. get$next: function() {
  25752. return null;
  25753. },
  25754. set$next: function(_) {
  25755. throw H.wrapException(P.StateError$("No events after a done."));
  25756. }
  25757. };
  25758. P._PendingEvents.prototype = {
  25759. schedule$1: function(dispatch) {
  25760. var _this = this,
  25761. t1 = _this._state;
  25762. if (t1 === 1)
  25763. return;
  25764. if (t1 >= 1) {
  25765. _this._state = 1;
  25766. return;
  25767. }
  25768. P.scheduleMicrotask(new P._PendingEvents_schedule_closure(_this, dispatch));
  25769. _this._state = 1;
  25770. }
  25771. };
  25772. P._PendingEvents_schedule_closure.prototype = {
  25773. call$0: function() {
  25774. var $event, nextEvent,
  25775. t1 = this.$this,
  25776. oldState = t1._state;
  25777. t1._state = 0;
  25778. if (oldState === 3)
  25779. return;
  25780. $event = t1.firstPendingEvent;
  25781. nextEvent = $event.get$next();
  25782. t1.firstPendingEvent = nextEvent;
  25783. if (nextEvent == null)
  25784. t1.lastPendingEvent = null;
  25785. $event.perform$1(this.dispatch);
  25786. },
  25787. "call*": "call$0",
  25788. $requiredArgCount: 0,
  25789. $signature: 0
  25790. };
  25791. P._StreamImplEvents.prototype = {
  25792. add$1: function(_, $event) {
  25793. var _this = this,
  25794. lastEvent = _this.lastPendingEvent;
  25795. if (lastEvent == null)
  25796. _this.firstPendingEvent = _this.lastPendingEvent = $event;
  25797. else {
  25798. lastEvent.set$next($event);
  25799. _this.lastPendingEvent = $event;
  25800. }
  25801. }
  25802. };
  25803. P._DoneStreamSubscription.prototype = {
  25804. _schedule$0: function() {
  25805. var _this = this;
  25806. if ((_this._state & 2) !== 0)
  25807. return;
  25808. _this._zone.scheduleMicrotask$1(_this.get$_sendDone());
  25809. _this._state = (_this._state | 2) >>> 0;
  25810. },
  25811. pause$1: function(_, resumeSignal) {
  25812. this._state += 4;
  25813. },
  25814. pause$0: function($receiver) {
  25815. return this.pause$1($receiver, null);
  25816. },
  25817. resume$0: function() {
  25818. var t1 = this._state;
  25819. if (t1 >= 4) {
  25820. t1 = this._state = t1 - 4;
  25821. if (t1 < 4 && (t1 & 1) === 0)
  25822. this._schedule$0();
  25823. }
  25824. },
  25825. cancel$0: function() {
  25826. return $.$get$Future__nullFuture();
  25827. },
  25828. _sendDone$0: function() {
  25829. var doneHandler, _this = this,
  25830. t1 = _this._state = (_this._state & 4294967293) >>> 0;
  25831. if (t1 >= 4)
  25832. return;
  25833. _this._state = (t1 | 1) >>> 0;
  25834. doneHandler = _this._onDone;
  25835. if (doneHandler != null)
  25836. _this._zone.runGuarded$1(doneHandler);
  25837. },
  25838. $isStreamSubscription: 1
  25839. };
  25840. P._StreamIterator.prototype = {
  25841. get$current: function(_) {
  25842. if (this._subscription != null && this._isPaused)
  25843. return this._stateData;
  25844. return null;
  25845. },
  25846. moveNext$0: function() {
  25847. var future, _this = this,
  25848. subscription = _this._subscription;
  25849. if (subscription != null) {
  25850. if (_this._isPaused) {
  25851. future = new P._Future($.Zone__current, type$._Future_bool);
  25852. _this._stateData = future;
  25853. _this._isPaused = false;
  25854. subscription.resume$0();
  25855. return future;
  25856. }
  25857. throw H.wrapException(P.StateError$("Already waiting for next."));
  25858. }
  25859. return _this._initializeOrDone$0();
  25860. },
  25861. _initializeOrDone$0: function() {
  25862. var _this = this,
  25863. stateData = _this._stateData;
  25864. if (stateData != null) {
  25865. _this._subscription = stateData.listen$4$cancelOnError$onDone$onError(_this.get$_onData(), true, _this.get$_onDone(), _this.get$_onError());
  25866. return _this._stateData = new P._Future($.Zone__current, type$._Future_bool);
  25867. }
  25868. return $.$get$Future__falseFuture();
  25869. },
  25870. cancel$0: function() {
  25871. var _this = this,
  25872. subscription = _this._subscription,
  25873. stateData = _this._stateData;
  25874. _this._stateData = null;
  25875. if (subscription != null) {
  25876. _this._subscription = null;
  25877. if (!_this._isPaused)
  25878. stateData._asyncComplete$1(false);
  25879. return subscription.cancel$0();
  25880. }
  25881. return $.$get$Future__nullFuture();
  25882. },
  25883. _onData$1: function(data) {
  25884. var t1, _this = this,
  25885. moveNextFuture = _this._stateData;
  25886. _this._stateData = data;
  25887. _this._isPaused = true;
  25888. moveNextFuture._complete$1(true);
  25889. if (_this._isPaused) {
  25890. t1 = _this._subscription;
  25891. if (t1 != null)
  25892. t1.pause$0(0);
  25893. }
  25894. },
  25895. _onError$2: function(error, stackTrace) {
  25896. var moveNextFuture = this._stateData;
  25897. this._stateData = this._subscription = null;
  25898. moveNextFuture._completeError$2(error, stackTrace);
  25899. },
  25900. _onDone$0: function() {
  25901. var moveNextFuture = this._stateData;
  25902. this._stateData = this._subscription = null;
  25903. moveNextFuture._complete$1(false);
  25904. }
  25905. };
  25906. P._ForwardingStream.prototype = {
  25907. get$isBroadcast: function() {
  25908. return this._async$_source.get$isBroadcast();
  25909. },
  25910. listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
  25911. var t1 = H._instanceType(this),
  25912. t2 = $.Zone__current,
  25913. t3 = cancelOnError === true ? 1 : 0,
  25914. t4 = P._BufferingStreamSubscription__registerDataHandler(t2, onData),
  25915. t5 = P._BufferingStreamSubscription__registerErrorHandler(t2, onError);
  25916. t1 = new P._ForwardingStreamSubscription(this, t4, t5, t2.registerCallback$1(onDone == null ? P.async___nullDoneHandler$closure() : onDone), t2, t3, t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("_ForwardingStreamSubscription<1,2>"));
  25917. t1._subscription = this._async$_source.listen$3$onDone$onError(t1.get$_handleData(), t1.get$_handleDone(), t1.get$_handleError());
  25918. return t1;
  25919. },
  25920. listen$3$onDone$onError: function(onData, onDone, onError) {
  25921. return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
  25922. }
  25923. };
  25924. P._ForwardingStreamSubscription.prototype = {
  25925. _async$_add$1: function(data) {
  25926. if ((this._state & 2) !== 0)
  25927. return;
  25928. this.super$_BufferingStreamSubscription$_add(data);
  25929. },
  25930. _addError$2: function(error, stackTrace) {
  25931. if ((this._state & 2) !== 0)
  25932. return;
  25933. this.super$_BufferingStreamSubscription$_addError(error, stackTrace);
  25934. },
  25935. _async$_onPause$0: function() {
  25936. var t1 = this._subscription;
  25937. if (t1 != null)
  25938. t1.pause$0(0);
  25939. },
  25940. _async$_onResume$0: function() {
  25941. var t1 = this._subscription;
  25942. if (t1 != null)
  25943. t1.resume$0();
  25944. },
  25945. _async$_onCancel$0: function() {
  25946. var subscription = this._subscription;
  25947. if (subscription != null) {
  25948. this._subscription = null;
  25949. return subscription.cancel$0();
  25950. }
  25951. return null;
  25952. },
  25953. _handleData$1: function(data) {
  25954. this._stream._handleData$2(data, this);
  25955. },
  25956. _handleError$2: function(error, stackTrace) {
  25957. this._addError$2(error, stackTrace);
  25958. },
  25959. _handleDone$0: function() {
  25960. this._close$0();
  25961. }
  25962. };
  25963. P._ExpandStream.prototype = {
  25964. _handleData$2: function(inputEvent, sink) {
  25965. var value, e, s, t1, exception;
  25966. try {
  25967. for (t1 = J.get$iterator$ax(this._expand.call$1(inputEvent)); t1.moveNext$0();) {
  25968. value = t1.get$current(t1);
  25969. sink._async$_add$1(value);
  25970. }
  25971. } catch (exception) {
  25972. e = H.unwrapException(exception);
  25973. s = H.getTraceFromException(exception);
  25974. P._addErrorWithReplacement(sink, e, s);
  25975. }
  25976. }
  25977. };
  25978. P.Timer.prototype = {};
  25979. P.AsyncError.prototype = {
  25980. toString$0: function(_) {
  25981. return H.S(this.error);
  25982. },
  25983. $isError: 1,
  25984. get$stackTrace: function() {
  25985. return this.stackTrace;
  25986. }
  25987. };
  25988. P._ZoneFunction.prototype = {};
  25989. P._RunNullaryZoneFunction.prototype = {};
  25990. P._RunUnaryZoneFunction.prototype = {};
  25991. P._RunBinaryZoneFunction.prototype = {};
  25992. P._RegisterNullaryZoneFunction.prototype = {};
  25993. P._RegisterUnaryZoneFunction.prototype = {};
  25994. P._RegisterBinaryZoneFunction.prototype = {};
  25995. P.ZoneSpecification.prototype = {};
  25996. P._ZoneSpecification.prototype = {$isZoneSpecification: 1};
  25997. P.ZoneDelegate.prototype = {};
  25998. P.Zone.prototype = {};
  25999. P._ZoneDelegate.prototype = {$isZoneDelegate: 1};
  26000. P._Zone.prototype = {$isZone: 1};
  26001. P._CustomZone.prototype = {
  26002. get$_delegate: function() {
  26003. var t1 = this._delegateCache;
  26004. return t1 == null ? this._delegateCache = new P._ZoneDelegate(this) : t1;
  26005. },
  26006. get$_parentDelegate: function() {
  26007. return this.parent.get$_delegate();
  26008. },
  26009. get$errorZone: function() {
  26010. return this._handleUncaughtError.zone;
  26011. },
  26012. runGuarded$1: function(f) {
  26013. var e, s, exception;
  26014. try {
  26015. this.run$1(0, f);
  26016. } catch (exception) {
  26017. e = H.unwrapException(exception);
  26018. s = H.getTraceFromException(exception);
  26019. this.handleUncaughtError$2(e, s);
  26020. }
  26021. },
  26022. runUnaryGuarded$1$2: function(f, arg) {
  26023. var e, s, exception;
  26024. try {
  26025. this.runUnary$2(f, arg);
  26026. } catch (exception) {
  26027. e = H.unwrapException(exception);
  26028. s = H.getTraceFromException(exception);
  26029. this.handleUncaughtError$2(e, s);
  26030. }
  26031. },
  26032. runUnaryGuarded$2: function(f, arg) {
  26033. return this.runUnaryGuarded$1$2(f, arg, type$.dynamic);
  26034. },
  26035. runBinaryGuarded$2$3: function(f, arg1, arg2) {
  26036. var e, s, exception;
  26037. try {
  26038. this.runBinary$3(f, arg1, arg2);
  26039. } catch (exception) {
  26040. e = H.unwrapException(exception);
  26041. s = H.getTraceFromException(exception);
  26042. this.handleUncaughtError$2(e, s);
  26043. }
  26044. },
  26045. runBinaryGuarded$3: function(f, arg1, arg2) {
  26046. return this.runBinaryGuarded$2$3(f, arg1, arg2, type$.dynamic, type$.dynamic);
  26047. },
  26048. bindCallback$1$1: function(f, $R) {
  26049. return new P._CustomZone_bindCallback_closure(this, this.registerCallback$1(f), $R);
  26050. },
  26051. bindUnaryCallback$2$1: function(f, $R, $T) {
  26052. return new P._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$1(f), $T, $R);
  26053. },
  26054. bindCallbackGuarded$1: function(f) {
  26055. return new P._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1(f));
  26056. },
  26057. $index: function(_, key) {
  26058. var value,
  26059. t1 = this._async$_map,
  26060. result = t1.$index(0, key);
  26061. if (result != null || t1.containsKey$1(key))
  26062. return result;
  26063. value = this.parent.$index(0, key);
  26064. if (value != null)
  26065. t1.$indexSet(0, key, value);
  26066. return value;
  26067. },
  26068. handleUncaughtError$2: function(error, stackTrace) {
  26069. var implementation = this._handleUncaughtError,
  26070. t1 = implementation.zone;
  26071. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, error, stackTrace);
  26072. },
  26073. fork$2$specification$zoneValues: function(specification, zoneValues) {
  26074. var implementation = this._fork,
  26075. t1 = implementation.zone;
  26076. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues);
  26077. },
  26078. run$1$1: function(_, f) {
  26079. var implementation = this._run,
  26080. t1 = implementation.zone;
  26081. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
  26082. },
  26083. run$1: function($receiver, f) {
  26084. return this.run$1$1($receiver, f, type$.dynamic);
  26085. },
  26086. runUnary$2$2: function(f, arg) {
  26087. var implementation = this._runUnary,
  26088. t1 = implementation.zone;
  26089. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, f, arg);
  26090. },
  26091. runUnary$2: function(f, arg) {
  26092. return this.runUnary$2$2(f, arg, type$.dynamic, type$.dynamic);
  26093. },
  26094. runBinary$3$3: function(f, arg1, arg2) {
  26095. var implementation = this._runBinary,
  26096. t1 = implementation.zone;
  26097. return implementation.$function.call$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2);
  26098. },
  26099. runBinary$3: function(f, arg1, arg2) {
  26100. return this.runBinary$3$3(f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
  26101. },
  26102. registerCallback$1$1: function(callback) {
  26103. var implementation = this._registerCallback,
  26104. t1 = implementation.zone;
  26105. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  26106. },
  26107. registerCallback$1: function(callback) {
  26108. return this.registerCallback$1$1(callback, type$.dynamic);
  26109. },
  26110. registerUnaryCallback$2$1: function(callback) {
  26111. var implementation = this._registerUnaryCallback,
  26112. t1 = implementation.zone;
  26113. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  26114. },
  26115. registerUnaryCallback$1: function(callback) {
  26116. return this.registerUnaryCallback$2$1(callback, type$.dynamic, type$.dynamic);
  26117. },
  26118. registerBinaryCallback$3$1: function(callback) {
  26119. var implementation = this._registerBinaryCallback,
  26120. t1 = implementation.zone;
  26121. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  26122. },
  26123. registerBinaryCallback$1: function(callback) {
  26124. return this.registerBinaryCallback$3$1(callback, type$.dynamic, type$.dynamic, type$.dynamic);
  26125. },
  26126. errorCallback$2: function(error, stackTrace) {
  26127. var implementation, implementationZone;
  26128. P.ArgumentError_checkNotNull(error, "error");
  26129. implementation = this._errorCallback;
  26130. implementationZone = implementation.zone;
  26131. if (implementationZone === C.C__RootZone)
  26132. return null;
  26133. return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace);
  26134. },
  26135. scheduleMicrotask$1: function(f) {
  26136. var implementation = this._scheduleMicrotask,
  26137. t1 = implementation.zone;
  26138. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
  26139. },
  26140. createTimer$2: function(duration, f) {
  26141. var implementation = this._createTimer,
  26142. t1 = implementation.zone;
  26143. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, duration, f);
  26144. },
  26145. print$1: function(line) {
  26146. var implementation = this._print,
  26147. t1 = implementation.zone;
  26148. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, line);
  26149. },
  26150. get$_run: function() {
  26151. return this._run;
  26152. },
  26153. get$_runUnary: function() {
  26154. return this._runUnary;
  26155. },
  26156. get$_runBinary: function() {
  26157. return this._runBinary;
  26158. },
  26159. get$_registerCallback: function() {
  26160. return this._registerCallback;
  26161. },
  26162. get$_registerUnaryCallback: function() {
  26163. return this._registerUnaryCallback;
  26164. },
  26165. get$_registerBinaryCallback: function() {
  26166. return this._registerBinaryCallback;
  26167. },
  26168. get$_errorCallback: function() {
  26169. return this._errorCallback;
  26170. },
  26171. get$_scheduleMicrotask: function() {
  26172. return this._scheduleMicrotask;
  26173. },
  26174. get$_createTimer: function() {
  26175. return this._createTimer;
  26176. },
  26177. get$_createPeriodicTimer: function() {
  26178. return this._createPeriodicTimer;
  26179. },
  26180. get$_print: function() {
  26181. return this._print;
  26182. },
  26183. get$_fork: function() {
  26184. return this._fork;
  26185. },
  26186. get$_handleUncaughtError: function() {
  26187. return this._handleUncaughtError;
  26188. },
  26189. get$_async$_map: function() {
  26190. return this._async$_map;
  26191. }
  26192. };
  26193. P._CustomZone_bindCallback_closure.prototype = {
  26194. call$0: function() {
  26195. return this.$this.run$1(0, this.registered);
  26196. },
  26197. $signature: function() {
  26198. return this.R._eval$1("0()");
  26199. }
  26200. };
  26201. P._CustomZone_bindUnaryCallback_closure.prototype = {
  26202. call$1: function(arg) {
  26203. return this.$this.runUnary$2(this.registered, arg);
  26204. },
  26205. $signature: function() {
  26206. return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
  26207. }
  26208. };
  26209. P._CustomZone_bindCallbackGuarded_closure.prototype = {
  26210. call$0: function() {
  26211. return this.$this.runGuarded$1(this.registered);
  26212. },
  26213. "call*": "call$0",
  26214. $requiredArgCount: 0,
  26215. $signature: 1
  26216. };
  26217. P._rootHandleUncaughtError_closure.prototype = {
  26218. call$0: function() {
  26219. var error = H.wrapException(this.error);
  26220. error.stack = J.toString$0$(this.stackTrace);
  26221. throw error;
  26222. },
  26223. $signature: 0
  26224. };
  26225. P._RootZone.prototype = {
  26226. get$_run: function() {
  26227. return C._RunNullaryZoneFunction__RootZone__rootRun;
  26228. },
  26229. get$_runUnary: function() {
  26230. return C._RunUnaryZoneFunction__RootZone__rootRunUnary;
  26231. },
  26232. get$_runBinary: function() {
  26233. return C._RunBinaryZoneFunction__RootZone__rootRunBinary;
  26234. },
  26235. get$_registerCallback: function() {
  26236. return C._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback;
  26237. },
  26238. get$_registerUnaryCallback: function() {
  26239. return C._RegisterUnaryZoneFunction_Bqo;
  26240. },
  26241. get$_registerBinaryCallback: function() {
  26242. return C._RegisterBinaryZoneFunction_kGu;
  26243. },
  26244. get$_errorCallback: function() {
  26245. return C._ZoneFunction__RootZone__rootErrorCallback;
  26246. },
  26247. get$_scheduleMicrotask: function() {
  26248. return C._ZoneFunction__RootZone__rootScheduleMicrotask;
  26249. },
  26250. get$_createTimer: function() {
  26251. return C._ZoneFunction__RootZone__rootCreateTimer;
  26252. },
  26253. get$_createPeriodicTimer: function() {
  26254. return C._ZoneFunction_3bB;
  26255. },
  26256. get$_print: function() {
  26257. return C._ZoneFunction__RootZone__rootPrint;
  26258. },
  26259. get$_fork: function() {
  26260. return C._ZoneFunction__RootZone__rootFork;
  26261. },
  26262. get$_handleUncaughtError: function() {
  26263. return C._ZoneFunction_NMc;
  26264. },
  26265. get$_async$_map: function() {
  26266. return $.$get$_RootZone__rootMap();
  26267. },
  26268. get$_delegate: function() {
  26269. var t1 = $._RootZone__rootDelegate;
  26270. return t1 == null ? $._RootZone__rootDelegate = new P._ZoneDelegate(this) : t1;
  26271. },
  26272. get$_parentDelegate: function() {
  26273. return this.get$_delegate();
  26274. },
  26275. get$errorZone: function() {
  26276. return this;
  26277. },
  26278. runGuarded$1: function(f) {
  26279. var e, s, exception, _null = null;
  26280. try {
  26281. if (C.C__RootZone === $.Zone__current) {
  26282. f.call$0();
  26283. return;
  26284. }
  26285. P._rootRun(_null, _null, this, f);
  26286. } catch (exception) {
  26287. e = H.unwrapException(exception);
  26288. s = H.getTraceFromException(exception);
  26289. P._rootHandleUncaughtError(_null, _null, this, e, s);
  26290. }
  26291. },
  26292. runUnaryGuarded$1$2: function(f, arg) {
  26293. var e, s, exception, _null = null;
  26294. try {
  26295. if (C.C__RootZone === $.Zone__current) {
  26296. f.call$1(arg);
  26297. return;
  26298. }
  26299. P._rootRunUnary(_null, _null, this, f, arg);
  26300. } catch (exception) {
  26301. e = H.unwrapException(exception);
  26302. s = H.getTraceFromException(exception);
  26303. P._rootHandleUncaughtError(_null, _null, this, e, s);
  26304. }
  26305. },
  26306. runUnaryGuarded$2: function(f, arg) {
  26307. return this.runUnaryGuarded$1$2(f, arg, type$.dynamic);
  26308. },
  26309. runBinaryGuarded$2$3: function(f, arg1, arg2) {
  26310. var e, s, exception, _null = null;
  26311. try {
  26312. if (C.C__RootZone === $.Zone__current) {
  26313. f.call$2(arg1, arg2);
  26314. return;
  26315. }
  26316. P._rootRunBinary(_null, _null, this, f, arg1, arg2);
  26317. } catch (exception) {
  26318. e = H.unwrapException(exception);
  26319. s = H.getTraceFromException(exception);
  26320. P._rootHandleUncaughtError(_null, _null, this, e, s);
  26321. }
  26322. },
  26323. runBinaryGuarded$3: function(f, arg1, arg2) {
  26324. return this.runBinaryGuarded$2$3(f, arg1, arg2, type$.dynamic, type$.dynamic);
  26325. },
  26326. bindCallback$1$1: function(f, $R) {
  26327. return new P._RootZone_bindCallback_closure(this, f, $R);
  26328. },
  26329. bindCallbackGuarded$1: function(f) {
  26330. return new P._RootZone_bindCallbackGuarded_closure(this, f);
  26331. },
  26332. $index: function(_, key) {
  26333. return null;
  26334. },
  26335. handleUncaughtError$2: function(error, stackTrace) {
  26336. P._rootHandleUncaughtError(null, null, this, error, stackTrace);
  26337. },
  26338. fork$2$specification$zoneValues: function(specification, zoneValues) {
  26339. return P._rootFork(null, null, this, specification, zoneValues);
  26340. },
  26341. run$1$1: function(_, f) {
  26342. if ($.Zone__current === C.C__RootZone)
  26343. return f.call$0();
  26344. return P._rootRun(null, null, this, f);
  26345. },
  26346. run$1: function($receiver, f) {
  26347. return this.run$1$1($receiver, f, type$.dynamic);
  26348. },
  26349. runUnary$2$2: function(f, arg) {
  26350. if ($.Zone__current === C.C__RootZone)
  26351. return f.call$1(arg);
  26352. return P._rootRunUnary(null, null, this, f, arg);
  26353. },
  26354. runUnary$2: function(f, arg) {
  26355. return this.runUnary$2$2(f, arg, type$.dynamic, type$.dynamic);
  26356. },
  26357. runBinary$3$3: function(f, arg1, arg2) {
  26358. if ($.Zone__current === C.C__RootZone)
  26359. return f.call$2(arg1, arg2);
  26360. return P._rootRunBinary(null, null, this, f, arg1, arg2);
  26361. },
  26362. runBinary$3: function(f, arg1, arg2) {
  26363. return this.runBinary$3$3(f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
  26364. },
  26365. registerCallback$1$1: function(f) {
  26366. return f;
  26367. },
  26368. registerCallback$1: function(f) {
  26369. return this.registerCallback$1$1(f, type$.dynamic);
  26370. },
  26371. registerUnaryCallback$2$1: function(f) {
  26372. return f;
  26373. },
  26374. registerUnaryCallback$1: function(f) {
  26375. return this.registerUnaryCallback$2$1(f, type$.dynamic, type$.dynamic);
  26376. },
  26377. registerBinaryCallback$3$1: function(f) {
  26378. return f;
  26379. },
  26380. registerBinaryCallback$1: function(f) {
  26381. return this.registerBinaryCallback$3$1(f, type$.dynamic, type$.dynamic, type$.dynamic);
  26382. },
  26383. errorCallback$2: function(error, stackTrace) {
  26384. return null;
  26385. },
  26386. scheduleMicrotask$1: function(f) {
  26387. P._rootScheduleMicrotask(null, null, this, f);
  26388. },
  26389. createTimer$2: function(duration, f) {
  26390. return P.Timer__createTimer(duration, f);
  26391. },
  26392. print$1: function(line) {
  26393. H.printString(H.S(line));
  26394. }
  26395. };
  26396. P._RootZone_bindCallback_closure.prototype = {
  26397. call$0: function() {
  26398. return this.$this.run$1(0, this.f);
  26399. },
  26400. $signature: function() {
  26401. return this.R._eval$1("0()");
  26402. }
  26403. };
  26404. P._RootZone_bindCallbackGuarded_closure.prototype = {
  26405. call$0: function() {
  26406. return this.$this.runGuarded$1(this.f);
  26407. },
  26408. "call*": "call$0",
  26409. $requiredArgCount: 0,
  26410. $signature: 1
  26411. };
  26412. P._HashMap.prototype = {
  26413. get$length: function(_) {
  26414. return this._collection$_length;
  26415. },
  26416. get$isEmpty: function(_) {
  26417. return this._collection$_length === 0;
  26418. },
  26419. get$isNotEmpty: function(_) {
  26420. return this._collection$_length !== 0;
  26421. },
  26422. get$keys: function() {
  26423. return new P._HashMapKeyIterable(this, H._instanceType(this)._eval$1("_HashMapKeyIterable<1>"));
  26424. },
  26425. get$values: function() {
  26426. var t1 = H._instanceType(this);
  26427. return H.MappedIterable_MappedIterable(new P._HashMapKeyIterable(this, t1._eval$1("_HashMapKeyIterable<1>")), new P._HashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  26428. },
  26429. containsKey$1: function(key) {
  26430. var strings, nums;
  26431. if (typeof key == "string" && key !== "__proto__") {
  26432. strings = this._collection$_strings;
  26433. return strings == null ? false : strings[key] != null;
  26434. } else if (typeof key == "number" && (key & 1073741823) === key) {
  26435. nums = this._collection$_nums;
  26436. return nums == null ? false : nums[key] != null;
  26437. } else
  26438. return this._containsKey$1(key);
  26439. },
  26440. _containsKey$1: function(key) {
  26441. var rest = this._collection$_rest;
  26442. if (rest == null)
  26443. return false;
  26444. return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0;
  26445. },
  26446. addAll$1: function(_, other) {
  26447. other.forEach$1(0, new P._HashMap_addAll_closure(this));
  26448. },
  26449. $index: function(_, key) {
  26450. var strings, t1, nums;
  26451. if (typeof key == "string" && key !== "__proto__") {
  26452. strings = this._collection$_strings;
  26453. t1 = strings == null ? null : P._HashMap__getTableEntry(strings, key);
  26454. return t1;
  26455. } else if (typeof key == "number" && (key & 1073741823) === key) {
  26456. nums = this._collection$_nums;
  26457. t1 = nums == null ? null : P._HashMap__getTableEntry(nums, key);
  26458. return t1;
  26459. } else
  26460. return this._get$1(key);
  26461. },
  26462. _get$1: function(key) {
  26463. var bucket, index,
  26464. rest = this._collection$_rest;
  26465. if (rest == null)
  26466. return null;
  26467. bucket = this._getBucket$2(rest, key);
  26468. index = this._findBucketIndex$2(bucket, key);
  26469. return index < 0 ? null : bucket[index + 1];
  26470. },
  26471. $indexSet: function(_, key, value) {
  26472. var strings, nums, _this = this;
  26473. if (typeof key == "string" && key !== "__proto__") {
  26474. strings = _this._collection$_strings;
  26475. _this._collection$_addHashTableEntry$3(strings == null ? _this._collection$_strings = P._HashMap__newHashTable() : strings, key, value);
  26476. } else if (typeof key == "number" && (key & 1073741823) === key) {
  26477. nums = _this._collection$_nums;
  26478. _this._collection$_addHashTableEntry$3(nums == null ? _this._collection$_nums = P._HashMap__newHashTable() : nums, key, value);
  26479. } else
  26480. _this._set$2(key, value);
  26481. },
  26482. _set$2: function(key, value) {
  26483. var hash, bucket, index, _this = this,
  26484. rest = _this._collection$_rest;
  26485. if (rest == null)
  26486. rest = _this._collection$_rest = P._HashMap__newHashTable();
  26487. hash = _this._computeHashCode$1(key);
  26488. bucket = rest[hash];
  26489. if (bucket == null) {
  26490. P._HashMap__setTableEntry(rest, hash, [key, value]);
  26491. ++_this._collection$_length;
  26492. _this._keys = null;
  26493. } else {
  26494. index = _this._findBucketIndex$2(bucket, key);
  26495. if (index >= 0)
  26496. bucket[index + 1] = value;
  26497. else {
  26498. bucket.push(key, value);
  26499. ++_this._collection$_length;
  26500. _this._keys = null;
  26501. }
  26502. }
  26503. },
  26504. putIfAbsent$2: function(key, ifAbsent) {
  26505. var value;
  26506. if (this.containsKey$1(key))
  26507. return this.$index(0, key);
  26508. value = ifAbsent.call$0();
  26509. this.$indexSet(0, key, value);
  26510. return value;
  26511. },
  26512. remove$1: function(_, key) {
  26513. var t1;
  26514. if (typeof key == "string" && key !== "__proto__")
  26515. return this._removeHashTableEntry$2(this._collection$_strings, key);
  26516. else {
  26517. t1 = this._remove$1(key);
  26518. return t1;
  26519. }
  26520. },
  26521. _remove$1: function(key) {
  26522. var hash, bucket, index, result, _this = this,
  26523. rest = _this._collection$_rest;
  26524. if (rest == null)
  26525. return null;
  26526. hash = _this._computeHashCode$1(key);
  26527. bucket = rest[hash];
  26528. index = _this._findBucketIndex$2(bucket, key);
  26529. if (index < 0)
  26530. return null;
  26531. --_this._collection$_length;
  26532. _this._keys = null;
  26533. result = bucket.splice(index, 2)[1];
  26534. if (0 === bucket.length)
  26535. delete rest[hash];
  26536. return result;
  26537. },
  26538. forEach$1: function(_, action) {
  26539. var $length, i, key, _this = this,
  26540. keys = _this._computeKeys$0();
  26541. for ($length = keys.length, i = 0; i < $length; ++i) {
  26542. key = keys[i];
  26543. action.call$2(key, _this.$index(0, key));
  26544. if (keys !== _this._keys)
  26545. throw H.wrapException(P.ConcurrentModificationError$(_this));
  26546. }
  26547. },
  26548. _computeKeys$0: function() {
  26549. var strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this,
  26550. result = _this._keys;
  26551. if (result != null)
  26552. return result;
  26553. result = P.List_List$filled(_this._collection$_length, null, false, type$.dynamic);
  26554. strings = _this._collection$_strings;
  26555. if (strings != null) {
  26556. names = Object.getOwnPropertyNames(strings);
  26557. entries = names.length;
  26558. for (index = 0, i = 0; i < entries; ++i) {
  26559. result[index] = names[i];
  26560. ++index;
  26561. }
  26562. } else
  26563. index = 0;
  26564. nums = _this._collection$_nums;
  26565. if (nums != null) {
  26566. names = Object.getOwnPropertyNames(nums);
  26567. entries = names.length;
  26568. for (i = 0; i < entries; ++i) {
  26569. result[index] = +names[i];
  26570. ++index;
  26571. }
  26572. }
  26573. rest = _this._collection$_rest;
  26574. if (rest != null) {
  26575. names = Object.getOwnPropertyNames(rest);
  26576. entries = names.length;
  26577. for (i = 0; i < entries; ++i) {
  26578. bucket = rest[names[i]];
  26579. $length = bucket.length;
  26580. for (i0 = 0; i0 < $length; i0 += 2) {
  26581. result[index] = bucket[i0];
  26582. ++index;
  26583. }
  26584. }
  26585. }
  26586. return _this._keys = result;
  26587. },
  26588. _collection$_addHashTableEntry$3: function(table, key, value) {
  26589. if (table[key] == null) {
  26590. ++this._collection$_length;
  26591. this._keys = null;
  26592. }
  26593. P._HashMap__setTableEntry(table, key, value);
  26594. },
  26595. _removeHashTableEntry$2: function(table, key) {
  26596. var value;
  26597. if (table != null && table[key] != null) {
  26598. value = P._HashMap__getTableEntry(table, key);
  26599. delete table[key];
  26600. --this._collection$_length;
  26601. this._keys = null;
  26602. return value;
  26603. } else
  26604. return null;
  26605. },
  26606. _computeHashCode$1: function(key) {
  26607. return J.get$hashCode$(key) & 1073741823;
  26608. },
  26609. _getBucket$2: function(table, key) {
  26610. return table[this._computeHashCode$1(key)];
  26611. },
  26612. _findBucketIndex$2: function(bucket, key) {
  26613. var $length, i;
  26614. if (bucket == null)
  26615. return -1;
  26616. $length = bucket.length;
  26617. for (i = 0; i < $length; i += 2)
  26618. if (J.$eq$(bucket[i], key))
  26619. return i;
  26620. return -1;
  26621. }
  26622. };
  26623. P._HashMap_values_closure.prototype = {
  26624. call$1: function(each) {
  26625. return this.$this.$index(0, each);
  26626. },
  26627. $signature: function() {
  26628. return H._instanceType(this.$this)._eval$1("2(1)");
  26629. }
  26630. };
  26631. P._HashMap_addAll_closure.prototype = {
  26632. call$2: function(key, value) {
  26633. this.$this.$indexSet(0, key, value);
  26634. },
  26635. $signature: function() {
  26636. return H._instanceType(this.$this)._eval$1("Null(1,2)");
  26637. }
  26638. };
  26639. P._HashMapKeyIterable.prototype = {
  26640. get$length: function(_) {
  26641. return this._collection$_map._collection$_length;
  26642. },
  26643. get$isEmpty: function(_) {
  26644. return this._collection$_map._collection$_length === 0;
  26645. },
  26646. get$iterator: function(_) {
  26647. var t1 = this._collection$_map;
  26648. return new P._HashMapKeyIterator(t1, t1._computeKeys$0());
  26649. },
  26650. contains$1: function(_, element) {
  26651. return this._collection$_map.containsKey$1(element);
  26652. }
  26653. };
  26654. P._HashMapKeyIterator.prototype = {
  26655. get$current: function(_) {
  26656. return this._collection$_current;
  26657. },
  26658. moveNext$0: function() {
  26659. var _this = this,
  26660. keys = _this._keys,
  26661. offset = _this._offset,
  26662. t1 = _this._collection$_map;
  26663. if (keys !== t1._keys)
  26664. throw H.wrapException(P.ConcurrentModificationError$(t1));
  26665. else if (offset >= keys.length) {
  26666. _this._collection$_current = null;
  26667. return false;
  26668. } else {
  26669. _this._collection$_current = keys[offset];
  26670. _this._offset = offset + 1;
  26671. return true;
  26672. }
  26673. }
  26674. };
  26675. P._LinkedIdentityHashMap.prototype = {
  26676. internalComputeHashCode$1: function(key) {
  26677. return H.objectHashCode(key) & 1073741823;
  26678. },
  26679. internalFindBucketIndex$2: function(bucket, key) {
  26680. var $length, i, t1;
  26681. if (bucket == null)
  26682. return -1;
  26683. $length = bucket.length;
  26684. for (i = 0; i < $length; ++i) {
  26685. t1 = bucket[i].hashMapCellKey;
  26686. if (t1 == null ? key == null : t1 === key)
  26687. return i;
  26688. }
  26689. return -1;
  26690. }
  26691. };
  26692. P._LinkedCustomHashMap.prototype = {
  26693. $index: function(_, key) {
  26694. if (!this._validKey.call$1(key))
  26695. return null;
  26696. return this.super$JsLinkedHashMap$internalGet(key);
  26697. },
  26698. $indexSet: function(_, key, value) {
  26699. this.super$JsLinkedHashMap$internalSet(key, value);
  26700. },
  26701. containsKey$1: function(key) {
  26702. if (!this._validKey.call$1(key))
  26703. return false;
  26704. return this.super$JsLinkedHashMap$internalContainsKey(key);
  26705. },
  26706. remove$1: function(_, key) {
  26707. if (!this._validKey.call$1(key))
  26708. return null;
  26709. return this.super$JsLinkedHashMap$internalRemove(key);
  26710. },
  26711. internalComputeHashCode$1: function(key) {
  26712. return this._hashCode.call$1(key) & 1073741823;
  26713. },
  26714. internalFindBucketIndex$2: function(bucket, key) {
  26715. var $length, t1, i;
  26716. if (bucket == null)
  26717. return -1;
  26718. $length = bucket.length;
  26719. for (t1 = this._equals, i = 0; i < $length; ++i)
  26720. if (t1.call$2(bucket[i].hashMapCellKey, key))
  26721. return i;
  26722. return -1;
  26723. }
  26724. };
  26725. P._LinkedCustomHashMap_closure.prototype = {
  26726. call$1: function(v) {
  26727. return this.K._is(v);
  26728. },
  26729. $signature: 131
  26730. };
  26731. P._LinkedHashSet.prototype = {
  26732. _newSet$0: function() {
  26733. return new P._LinkedHashSet(H._instanceType(this)._eval$1("_LinkedHashSet<1>"));
  26734. },
  26735. _newSimilarSet$1$0: function($R) {
  26736. return new P._LinkedHashSet($R._eval$1("_LinkedHashSet<0>"));
  26737. },
  26738. _newSimilarSet$0: function() {
  26739. return this._newSimilarSet$1$0(type$.dynamic);
  26740. },
  26741. get$iterator: function(_) {
  26742. var t1 = new P._LinkedHashSetIterator(this, this._collection$_modifications);
  26743. t1._collection$_cell = this._collection$_first;
  26744. return t1;
  26745. },
  26746. get$length: function(_) {
  26747. return this._collection$_length;
  26748. },
  26749. get$isEmpty: function(_) {
  26750. return this._collection$_length === 0;
  26751. },
  26752. get$isNotEmpty: function(_) {
  26753. return this._collection$_length !== 0;
  26754. },
  26755. contains$1: function(_, object) {
  26756. var strings, nums;
  26757. if (typeof object == "string" && object !== "__proto__") {
  26758. strings = this._collection$_strings;
  26759. if (strings == null)
  26760. return false;
  26761. return strings[object] != null;
  26762. } else if (typeof object == "number" && (object & 1073741823) === object) {
  26763. nums = this._collection$_nums;
  26764. if (nums == null)
  26765. return false;
  26766. return nums[object] != null;
  26767. } else
  26768. return this._contains$1(object);
  26769. },
  26770. _contains$1: function(object) {
  26771. var rest = this._collection$_rest;
  26772. if (rest == null)
  26773. return false;
  26774. return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0;
  26775. },
  26776. get$first: function(_) {
  26777. var first = this._collection$_first;
  26778. if (first == null)
  26779. throw H.wrapException(P.StateError$("No elements"));
  26780. return first._element;
  26781. },
  26782. get$last: function(_) {
  26783. var last = this._collection$_last;
  26784. if (last == null)
  26785. throw H.wrapException(P.StateError$("No elements"));
  26786. return last._element;
  26787. },
  26788. add$1: function(_, element) {
  26789. var strings, nums, _this = this;
  26790. if (typeof element == "string" && element !== "__proto__") {
  26791. strings = _this._collection$_strings;
  26792. return _this._collection$_addHashTableEntry$2(strings == null ? _this._collection$_strings = P._LinkedHashSet__newHashTable() : strings, element);
  26793. } else if (typeof element == "number" && (element & 1073741823) === element) {
  26794. nums = _this._collection$_nums;
  26795. return _this._collection$_addHashTableEntry$2(nums == null ? _this._collection$_nums = P._LinkedHashSet__newHashTable() : nums, element);
  26796. } else
  26797. return _this._add$1(element);
  26798. },
  26799. _add$1: function(element) {
  26800. var hash, bucket, _this = this,
  26801. rest = _this._collection$_rest;
  26802. if (rest == null)
  26803. rest = _this._collection$_rest = P._LinkedHashSet__newHashTable();
  26804. hash = _this._computeHashCode$1(element);
  26805. bucket = rest[hash];
  26806. if (bucket == null)
  26807. rest[hash] = [_this._collection$_newLinkedCell$1(element)];
  26808. else {
  26809. if (_this._findBucketIndex$2(bucket, element) >= 0)
  26810. return false;
  26811. bucket.push(_this._collection$_newLinkedCell$1(element));
  26812. }
  26813. return true;
  26814. },
  26815. remove$1: function(_, object) {
  26816. var _this = this;
  26817. if (typeof object == "string" && object !== "__proto__")
  26818. return _this._removeHashTableEntry$2(_this._collection$_strings, object);
  26819. else if (typeof object == "number" && (object & 1073741823) === object)
  26820. return _this._removeHashTableEntry$2(_this._collection$_nums, object);
  26821. else
  26822. return _this._remove$1(object);
  26823. },
  26824. _remove$1: function(object) {
  26825. var hash, bucket, index, cell, _this = this,
  26826. rest = _this._collection$_rest;
  26827. if (rest == null)
  26828. return false;
  26829. hash = _this._computeHashCode$1(object);
  26830. bucket = rest[hash];
  26831. index = _this._findBucketIndex$2(bucket, object);
  26832. if (index < 0)
  26833. return false;
  26834. cell = bucket.splice(index, 1)[0];
  26835. if (0 === bucket.length)
  26836. delete rest[hash];
  26837. _this._unlinkCell$1(cell);
  26838. return true;
  26839. },
  26840. _collection$_addHashTableEntry$2: function(table, element) {
  26841. if (table[element] != null)
  26842. return false;
  26843. table[element] = this._collection$_newLinkedCell$1(element);
  26844. return true;
  26845. },
  26846. _removeHashTableEntry$2: function(table, element) {
  26847. var cell;
  26848. if (table == null)
  26849. return false;
  26850. cell = table[element];
  26851. if (cell == null)
  26852. return false;
  26853. this._unlinkCell$1(cell);
  26854. delete table[element];
  26855. return true;
  26856. },
  26857. _collection$_modified$0: function() {
  26858. this._collection$_modifications = 1073741823 & this._collection$_modifications + 1;
  26859. },
  26860. _collection$_newLinkedCell$1: function(element) {
  26861. var t1, _this = this,
  26862. cell = new P._LinkedHashSetCell(element);
  26863. if (_this._collection$_first == null)
  26864. _this._collection$_first = _this._collection$_last = cell;
  26865. else {
  26866. t1 = _this._collection$_last;
  26867. t1.toString;
  26868. cell._collection$_previous = t1;
  26869. _this._collection$_last = t1._collection$_next = cell;
  26870. }
  26871. ++_this._collection$_length;
  26872. _this._collection$_modified$0();
  26873. return cell;
  26874. },
  26875. _unlinkCell$1: function(cell) {
  26876. var _this = this,
  26877. previous = cell._collection$_previous,
  26878. next = cell._collection$_next;
  26879. if (previous == null)
  26880. _this._collection$_first = next;
  26881. else
  26882. previous._collection$_next = next;
  26883. if (next == null)
  26884. _this._collection$_last = previous;
  26885. else
  26886. next._collection$_previous = previous;
  26887. --_this._collection$_length;
  26888. _this._collection$_modified$0();
  26889. },
  26890. _computeHashCode$1: function(element) {
  26891. return J.get$hashCode$(element) & 1073741823;
  26892. },
  26893. _findBucketIndex$2: function(bucket, element) {
  26894. var $length, i;
  26895. if (bucket == null)
  26896. return -1;
  26897. $length = bucket.length;
  26898. for (i = 0; i < $length; ++i)
  26899. if (J.$eq$(bucket[i]._element, element))
  26900. return i;
  26901. return -1;
  26902. }
  26903. };
  26904. P._LinkedIdentityHashSet.prototype = {
  26905. _newSet$0: function() {
  26906. return new P._LinkedIdentityHashSet(this.$ti);
  26907. },
  26908. _newSimilarSet$1$0: function($R) {
  26909. return new P._LinkedIdentityHashSet($R._eval$1("_LinkedIdentityHashSet<0>"));
  26910. },
  26911. _newSimilarSet$0: function() {
  26912. return this._newSimilarSet$1$0(type$.dynamic);
  26913. },
  26914. _computeHashCode$1: function(key) {
  26915. return H.objectHashCode(key) & 1073741823;
  26916. },
  26917. _findBucketIndex$2: function(bucket, element) {
  26918. var $length, i, t1;
  26919. if (bucket == null)
  26920. return -1;
  26921. $length = bucket.length;
  26922. for (i = 0; i < $length; ++i) {
  26923. t1 = bucket[i]._element;
  26924. if (t1 == null ? element == null : t1 === element)
  26925. return i;
  26926. }
  26927. return -1;
  26928. }
  26929. };
  26930. P._LinkedHashSetCell.prototype = {};
  26931. P._LinkedHashSetIterator.prototype = {
  26932. get$current: function(_) {
  26933. return this._collection$_current;
  26934. },
  26935. moveNext$0: function() {
  26936. var _this = this,
  26937. cell = _this._collection$_cell,
  26938. t1 = _this._set;
  26939. if (_this._collection$_modifications !== t1._collection$_modifications)
  26940. throw H.wrapException(P.ConcurrentModificationError$(t1));
  26941. else if (cell == null) {
  26942. _this._collection$_current = null;
  26943. return false;
  26944. } else {
  26945. _this._collection$_current = cell._element;
  26946. _this._collection$_cell = cell._collection$_next;
  26947. return true;
  26948. }
  26949. }
  26950. };
  26951. P.UnmodifiableListView.prototype = {
  26952. cast$1$0: function(_, $R) {
  26953. return new P.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>"));
  26954. },
  26955. get$length: function(_) {
  26956. return J.get$length$asx(this._collection$_source);
  26957. },
  26958. $index: function(_, index) {
  26959. return J.elementAt$1$ax(this._collection$_source, index);
  26960. }
  26961. };
  26962. P.HashMap_HashMap$from_closure.prototype = {
  26963. call$2: function(k, v) {
  26964. this.result.$indexSet(0, this.K._as(k), this.V._as(v));
  26965. },
  26966. $signature: 51
  26967. };
  26968. P.IterableBase.prototype = {};
  26969. P.LinkedHashMap_LinkedHashMap$from_closure.prototype = {
  26970. call$2: function(k, v) {
  26971. this.result.$indexSet(0, this.K._as(k), this.V._as(v));
  26972. },
  26973. $signature: 51
  26974. };
  26975. P.ListBase.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1};
  26976. P.ListMixin.prototype = {
  26977. get$iterator: function(receiver) {
  26978. return new H.ListIterator(receiver, this.get$length(receiver));
  26979. },
  26980. elementAt$1: function(receiver, index) {
  26981. return this.$index(receiver, index);
  26982. },
  26983. get$isEmpty: function(receiver) {
  26984. return this.get$length(receiver) === 0;
  26985. },
  26986. get$isNotEmpty: function(receiver) {
  26987. return !this.get$isEmpty(receiver);
  26988. },
  26989. get$first: function(receiver) {
  26990. if (this.get$length(receiver) === 0)
  26991. throw H.wrapException(H.IterableElementError_noElement());
  26992. return this.$index(receiver, 0);
  26993. },
  26994. get$last: function(receiver) {
  26995. if (this.get$length(receiver) === 0)
  26996. throw H.wrapException(H.IterableElementError_noElement());
  26997. return this.$index(receiver, this.get$length(receiver) - 1);
  26998. },
  26999. get$single: function(receiver) {
  27000. if (this.get$length(receiver) === 0)
  27001. throw H.wrapException(H.IterableElementError_noElement());
  27002. if (this.get$length(receiver) > 1)
  27003. throw H.wrapException(H.IterableElementError_tooMany());
  27004. return this.$index(receiver, 0);
  27005. },
  27006. contains$1: function(receiver, element) {
  27007. var i,
  27008. $length = this.get$length(receiver);
  27009. for (i = 0; i < $length; ++i) {
  27010. if (J.$eq$(this.$index(receiver, i), element))
  27011. return true;
  27012. if ($length !== this.get$length(receiver))
  27013. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  27014. }
  27015. return false;
  27016. },
  27017. every$1: function(receiver, test) {
  27018. var i,
  27019. $length = this.get$length(receiver);
  27020. for (i = 0; i < $length; ++i) {
  27021. if (!test.call$1(this.$index(receiver, i)))
  27022. return false;
  27023. if ($length !== this.get$length(receiver))
  27024. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  27025. }
  27026. return true;
  27027. },
  27028. any$1: function(receiver, test) {
  27029. var i,
  27030. $length = this.get$length(receiver);
  27031. for (i = 0; i < $length; ++i) {
  27032. if (test.call$1(this.$index(receiver, i)))
  27033. return true;
  27034. if ($length !== this.get$length(receiver))
  27035. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  27036. }
  27037. return false;
  27038. },
  27039. join$1: function(receiver, separator) {
  27040. var t1;
  27041. if (this.get$length(receiver) === 0)
  27042. return "";
  27043. t1 = P.StringBuffer__writeAll("", receiver, separator);
  27044. return t1.charCodeAt(0) == 0 ? t1 : t1;
  27045. },
  27046. join$0: function($receiver) {
  27047. return this.join$1($receiver, "");
  27048. },
  27049. where$1: function(receiver, test) {
  27050. return new H.WhereIterable(receiver, test, H.instanceType(receiver)._eval$1("WhereIterable<ListMixin.E>"));
  27051. },
  27052. map$1$1: function(receiver, f, $T) {
  27053. return new H.MappedListIterable(receiver, f, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  27054. },
  27055. expand$1$1: function(receiver, f, $T) {
  27056. return new H.ExpandIterable(receiver, f, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  27057. },
  27058. skip$1: function(receiver, count) {
  27059. return H.SubListIterable$(receiver, count, null, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27060. },
  27061. take$1: function(receiver, count) {
  27062. return H.SubListIterable$(receiver, 0, count, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27063. },
  27064. toList$1$growable: function(receiver, growable) {
  27065. var t1, first, result, i, _this = this;
  27066. if (_this.get$isEmpty(receiver)) {
  27067. t1 = H.instanceType(receiver)._eval$1("ListMixin.E");
  27068. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  27069. }
  27070. first = _this.$index(receiver, 0);
  27071. result = P.List_List$filled(_this.get$length(receiver), first, growable, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27072. for (i = 1; i < _this.get$length(receiver); ++i)
  27073. result[i] = _this.$index(receiver, i);
  27074. return result;
  27075. },
  27076. toList$0: function($receiver) {
  27077. return this.toList$1$growable($receiver, true);
  27078. },
  27079. toSet$0: function(receiver) {
  27080. var i,
  27081. result = P.LinkedHashSet_LinkedHashSet(H.instanceType(receiver)._eval$1("ListMixin.E"));
  27082. for (i = 0; i < this.get$length(receiver); ++i)
  27083. result.add$1(0, this.$index(receiver, i));
  27084. return result;
  27085. },
  27086. add$1: function(receiver, element) {
  27087. var t1 = this.get$length(receiver);
  27088. this.set$length(receiver, t1 + 1);
  27089. this.$indexSet(receiver, t1, element);
  27090. },
  27091. addAll$1: function(receiver, iterable) {
  27092. var t1,
  27093. i = this.get$length(receiver);
  27094. for (t1 = iterable.get$iterator(iterable); t1.moveNext$0();) {
  27095. this.add$1(receiver, t1.get$current(t1));
  27096. ++i;
  27097. }
  27098. },
  27099. cast$1$0: function(receiver, $R) {
  27100. return new H.CastList(receiver, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($R)._eval$1("CastList<1,2>"));
  27101. },
  27102. sort$1: function(receiver, compare) {
  27103. H.Sort_sort(receiver, compare == null ? P.collection_ListMixin__compareAny$closure() : compare);
  27104. },
  27105. sublist$2: function(receiver, start, end) {
  27106. var listLength = this.get$length(receiver);
  27107. P.RangeError_checkValidRange(start, end, listLength);
  27108. return P.List_List$from(this.getRange$2(receiver, start, end), true, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27109. },
  27110. getRange$2: function(receiver, start, end) {
  27111. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27112. return H.SubListIterable$(receiver, start, end, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27113. },
  27114. fillRange$3: function(receiver, start, end, fill) {
  27115. var i;
  27116. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27117. for (i = start; i < end; ++i)
  27118. this.$indexSet(receiver, i, fill);
  27119. },
  27120. setRange$4: function(receiver, start, end, iterable, skipCount) {
  27121. var $length, otherStart, otherList, t1, i;
  27122. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27123. $length = end - start;
  27124. if ($length === 0)
  27125. return;
  27126. P.RangeError_checkNotNegative(skipCount, "skipCount");
  27127. if (H.instanceType(receiver)._eval$1("List<ListMixin.E>")._is(iterable)) {
  27128. otherStart = skipCount;
  27129. otherList = iterable;
  27130. } else {
  27131. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  27132. otherStart = 0;
  27133. }
  27134. t1 = J.getInterceptor$asx(otherList);
  27135. if (otherStart + $length > t1.get$length(otherList))
  27136. throw H.wrapException(H.IterableElementError_tooFew());
  27137. if (otherStart < start)
  27138. for (i = $length - 1; i >= 0; --i)
  27139. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  27140. else
  27141. for (i = 0; i < $length; ++i)
  27142. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  27143. },
  27144. get$reversed: function(receiver) {
  27145. return new H.ReversedListIterable(receiver, H.instanceType(receiver)._eval$1("ReversedListIterable<ListMixin.E>"));
  27146. },
  27147. toString$0: function(receiver) {
  27148. return P.IterableBase_iterableToFullString(receiver, "[", "]");
  27149. }
  27150. };
  27151. P.MapBase.prototype = {};
  27152. P.MapBase_mapToString_closure.prototype = {
  27153. call$2: function(k, v) {
  27154. var t2,
  27155. t1 = this._box_0;
  27156. if (!t1.first)
  27157. this.result._contents += ", ";
  27158. t1.first = false;
  27159. t1 = this.result;
  27160. t2 = t1._contents += H.S(k);
  27161. t1._contents = t2 + ": ";
  27162. t1._contents += H.S(v);
  27163. },
  27164. $signature: 82
  27165. };
  27166. P.MapMixin.prototype = {
  27167. forEach$1: function(_, action) {
  27168. var t1, key;
  27169. for (t1 = J.get$iterator$ax(this.get$keys()); t1.moveNext$0();) {
  27170. key = t1.get$current(t1);
  27171. action.call$2(key, this.$index(0, key));
  27172. }
  27173. },
  27174. addAll$1: function(_, other) {
  27175. var t1, key;
  27176. for (t1 = J.get$iterator$ax(other.get$keys()); t1.moveNext$0();) {
  27177. key = t1.get$current(t1);
  27178. this.$indexSet(0, key, other.$index(0, key));
  27179. }
  27180. },
  27181. putIfAbsent$2: function(key, ifAbsent) {
  27182. var t1;
  27183. if (this.containsKey$1(key))
  27184. return this.$index(0, key);
  27185. t1 = ifAbsent.call$0();
  27186. this.$indexSet(0, key, t1);
  27187. return t1;
  27188. },
  27189. get$entries: function() {
  27190. return J.map$1$1$ax(this.get$keys(), new P.MapMixin_entries_closure(this), H._instanceType(this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>"));
  27191. },
  27192. containsKey$1: function(key) {
  27193. return J.contains$1$asx(this.get$keys(), key);
  27194. },
  27195. get$length: function(_) {
  27196. return J.get$length$asx(this.get$keys());
  27197. },
  27198. get$isEmpty: function(_) {
  27199. return J.get$isEmpty$asx(this.get$keys());
  27200. },
  27201. get$isNotEmpty: function(_) {
  27202. return J.get$isNotEmpty$asx(this.get$keys());
  27203. },
  27204. get$values: function() {
  27205. var t1 = H._instanceType(this);
  27206. return new P._MapBaseValueIterable(this, t1._eval$1("@<MapMixin.K>")._bind$1(t1._eval$1("MapMixin.V"))._eval$1("_MapBaseValueIterable<1,2>"));
  27207. },
  27208. toString$0: function(_) {
  27209. return P.MapBase_mapToString(this);
  27210. },
  27211. $isMap: 1
  27212. };
  27213. P.MapMixin_entries_closure.prototype = {
  27214. call$1: function(key) {
  27215. var t1 = this.$this,
  27216. t2 = H._instanceType(t1);
  27217. return new P.MapEntry(key, t1.$index(0, key), t2._eval$1("@<MapMixin.K>")._bind$1(t2._eval$1("MapMixin.V"))._eval$1("MapEntry<1,2>"));
  27218. },
  27219. $signature: function() {
  27220. return H._instanceType(this.$this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>(MapMixin.K)");
  27221. }
  27222. };
  27223. P.UnmodifiableMapBase.prototype = {};
  27224. P._MapBaseValueIterable.prototype = {
  27225. get$length: function(_) {
  27226. var t1 = this._collection$_map;
  27227. return t1.get$length(t1);
  27228. },
  27229. get$isEmpty: function(_) {
  27230. var t1 = this._collection$_map;
  27231. return t1.get$isEmpty(t1);
  27232. },
  27233. get$isNotEmpty: function(_) {
  27234. var t1 = this._collection$_map;
  27235. return t1.get$isNotEmpty(t1);
  27236. },
  27237. get$first: function(_) {
  27238. var t1 = this._collection$_map;
  27239. return t1.$index(0, J.get$first$ax(t1.get$keys()));
  27240. },
  27241. get$single: function(_) {
  27242. var t1 = this._collection$_map;
  27243. return t1.$index(0, J.get$single$ax(t1.get$keys()));
  27244. },
  27245. get$last: function(_) {
  27246. var t1 = this._collection$_map;
  27247. return t1.$index(0, J.get$last$ax(t1.get$keys()));
  27248. },
  27249. get$iterator: function(_) {
  27250. var t1 = this._collection$_map;
  27251. return new P._MapBaseValueIterator(J.get$iterator$ax(t1.get$keys()), t1);
  27252. }
  27253. };
  27254. P._MapBaseValueIterator.prototype = {
  27255. moveNext$0: function() {
  27256. var _this = this,
  27257. t1 = _this._keys;
  27258. if (t1.moveNext$0()) {
  27259. _this._collection$_current = _this._collection$_map.$index(0, t1.get$current(t1));
  27260. return true;
  27261. }
  27262. _this._collection$_current = null;
  27263. return false;
  27264. },
  27265. get$current: function(_) {
  27266. var cur = this._collection$_current;
  27267. return cur;
  27268. }
  27269. };
  27270. P._UnmodifiableMapMixin.prototype = {
  27271. $indexSet: function(_, key, value) {
  27272. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  27273. },
  27274. addAll$1: function(_, other) {
  27275. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  27276. },
  27277. remove$1: function(_, key) {
  27278. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  27279. },
  27280. putIfAbsent$2: function(key, ifAbsent) {
  27281. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  27282. }
  27283. };
  27284. P.MapView.prototype = {
  27285. $index: function(_, key) {
  27286. return this._collection$_map.$index(0, key);
  27287. },
  27288. $indexSet: function(_, key, value) {
  27289. this._collection$_map.$indexSet(0, key, value);
  27290. },
  27291. addAll$1: function(_, other) {
  27292. this._collection$_map.addAll$1(0, other);
  27293. },
  27294. putIfAbsent$2: function(key, ifAbsent) {
  27295. return this._collection$_map.putIfAbsent$2(key, ifAbsent);
  27296. },
  27297. containsKey$1: function(key) {
  27298. return this._collection$_map.containsKey$1(key);
  27299. },
  27300. forEach$1: function(_, action) {
  27301. this._collection$_map.forEach$1(0, action);
  27302. },
  27303. get$isEmpty: function(_) {
  27304. var t1 = this._collection$_map;
  27305. return t1.get$isEmpty(t1);
  27306. },
  27307. get$isNotEmpty: function(_) {
  27308. var t1 = this._collection$_map;
  27309. return t1.get$isNotEmpty(t1);
  27310. },
  27311. get$length: function(_) {
  27312. var t1 = this._collection$_map;
  27313. return t1.get$length(t1);
  27314. },
  27315. get$keys: function() {
  27316. return this._collection$_map.get$keys();
  27317. },
  27318. remove$1: function(_, key) {
  27319. return this._collection$_map.remove$1(0, key);
  27320. },
  27321. toString$0: function(_) {
  27322. return J.toString$0$(this._collection$_map);
  27323. },
  27324. get$values: function() {
  27325. return this._collection$_map.get$values();
  27326. },
  27327. get$entries: function() {
  27328. return this._collection$_map.get$entries();
  27329. },
  27330. $isMap: 1
  27331. };
  27332. P.UnmodifiableMapView.prototype = {};
  27333. P.Queue.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1};
  27334. P.ListQueue.prototype = {
  27335. cast$1$0: function(_, $R) {
  27336. return new H.CastQueue(this, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastQueue<1,2>"));
  27337. },
  27338. get$iterator: function(_) {
  27339. var _this = this;
  27340. return new P._ListQueueIterator(_this, _this._collection$_tail, _this._modificationCount, _this._collection$_head);
  27341. },
  27342. get$isEmpty: function(_) {
  27343. return this._collection$_head === this._collection$_tail;
  27344. },
  27345. get$length: function(_) {
  27346. return (this._collection$_tail - this._collection$_head & this._collection$_table.length - 1) >>> 0;
  27347. },
  27348. get$first: function(_) {
  27349. var t1 = this._collection$_head;
  27350. if (t1 === this._collection$_tail)
  27351. throw H.wrapException(H.IterableElementError_noElement());
  27352. return this._collection$_table[t1];
  27353. },
  27354. get$last: function(_) {
  27355. var t1 = this._collection$_head,
  27356. t2 = this._collection$_tail;
  27357. if (t1 === t2)
  27358. throw H.wrapException(H.IterableElementError_noElement());
  27359. t1 = this._collection$_table;
  27360. return t1[(t2 - 1 & t1.length - 1) >>> 0];
  27361. },
  27362. get$single: function(_) {
  27363. var _this = this;
  27364. if (_this._collection$_head === _this._collection$_tail)
  27365. throw H.wrapException(H.IterableElementError_noElement());
  27366. if (_this.get$length(_this) > 1)
  27367. throw H.wrapException(H.IterableElementError_tooMany());
  27368. return _this._collection$_table[_this._collection$_head];
  27369. },
  27370. elementAt$1: function(_, index) {
  27371. var t1;
  27372. P.RangeError_checkValidIndex(index, this, null);
  27373. t1 = this._collection$_table;
  27374. return t1[(this._collection$_head + index & t1.length - 1) >>> 0];
  27375. },
  27376. toList$1$growable: function(_, growable) {
  27377. var t1, list, t2, i, _this = this,
  27378. mask = _this._collection$_table.length - 1,
  27379. $length = (_this._collection$_tail - _this._collection$_head & mask) >>> 0;
  27380. if ($length === 0) {
  27381. t1 = _this.$ti._precomputed1;
  27382. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  27383. }
  27384. list = P.List_List$filled($length, _this.get$first(_this), growable, _this.$ti._precomputed1);
  27385. for (t1 = _this._collection$_table, t2 = _this._collection$_head, i = 0; i < $length; ++i)
  27386. list[i] = t1[(t2 + i & mask) >>> 0];
  27387. return list;
  27388. },
  27389. toList$0: function($receiver) {
  27390. return this.toList$1$growable($receiver, true);
  27391. },
  27392. add$1: function(_, value) {
  27393. this._add$1(value);
  27394. },
  27395. addAll$1: function(_, elements) {
  27396. var addCount, $length, t2, t3, t4, newTable, endSpace, preSpace, _this = this,
  27397. t1 = _this.$ti;
  27398. if (t1._eval$1("List<1>")._is(elements)) {
  27399. addCount = J.get$length$asx(elements);
  27400. $length = _this.get$length(_this);
  27401. t2 = $length + addCount;
  27402. t3 = _this._collection$_table;
  27403. t4 = t3.length;
  27404. if (t2 >= t4) {
  27405. newTable = P.List_List$filled(P.ListQueue__nextPowerOf2(t2 + C.JSInt_methods._shrOtherPositive$1(t2, 1)), null, false, t1._eval$1("1?"));
  27406. _this._collection$_tail = _this._collection$_writeToList$1(newTable);
  27407. _this._collection$_table = newTable;
  27408. _this._collection$_head = 0;
  27409. C.JSArray_methods.setRange$4(newTable, $length, t2, elements, 0);
  27410. _this._collection$_tail += addCount;
  27411. } else {
  27412. t1 = _this._collection$_tail;
  27413. endSpace = t4 - t1;
  27414. if (addCount < endSpace) {
  27415. C.JSArray_methods.setRange$4(t3, t1, t1 + addCount, elements, 0);
  27416. _this._collection$_tail += addCount;
  27417. } else {
  27418. preSpace = addCount - endSpace;
  27419. C.JSArray_methods.setRange$4(t3, t1, t1 + endSpace, elements, 0);
  27420. C.JSArray_methods.setRange$4(_this._collection$_table, 0, preSpace, elements, endSpace);
  27421. _this._collection$_tail = preSpace;
  27422. }
  27423. }
  27424. ++_this._modificationCount;
  27425. } else
  27426. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  27427. _this._add$1(t1.get$current(t1));
  27428. },
  27429. clear$0: function(_) {
  27430. var t2, t3, _this = this,
  27431. i = _this._collection$_head,
  27432. t1 = _this._collection$_tail;
  27433. if (i !== t1) {
  27434. for (t2 = _this._collection$_table, t3 = t2.length - 1; i !== t1; i = (i + 1 & t3) >>> 0)
  27435. t2[i] = null;
  27436. _this._collection$_head = _this._collection$_tail = 0;
  27437. ++_this._modificationCount;
  27438. }
  27439. },
  27440. toString$0: function(_) {
  27441. return P.IterableBase_iterableToFullString(this, "{", "}");
  27442. },
  27443. addFirst$1: function(value) {
  27444. var _this = this,
  27445. t1 = _this._collection$_head,
  27446. t2 = _this._collection$_table;
  27447. t1 = _this._collection$_head = (t1 - 1 & t2.length - 1) >>> 0;
  27448. t2[t1] = value;
  27449. if (t1 === _this._collection$_tail)
  27450. _this._collection$_grow$0();
  27451. ++_this._modificationCount;
  27452. },
  27453. removeFirst$0: function() {
  27454. var t2, result, _this = this,
  27455. t1 = _this._collection$_head;
  27456. if (t1 === _this._collection$_tail)
  27457. throw H.wrapException(H.IterableElementError_noElement());
  27458. ++_this._modificationCount;
  27459. t2 = _this._collection$_table;
  27460. result = t2[t1];
  27461. t2[t1] = null;
  27462. _this._collection$_head = (t1 + 1 & t2.length - 1) >>> 0;
  27463. return result;
  27464. },
  27465. removeLast$0: function(_) {
  27466. var result, _this = this,
  27467. t1 = _this._collection$_head,
  27468. t2 = _this._collection$_tail;
  27469. if (t1 === t2)
  27470. throw H.wrapException(H.IterableElementError_noElement());
  27471. ++_this._modificationCount;
  27472. t1 = _this._collection$_table;
  27473. t2 = _this._collection$_tail = (t2 - 1 & t1.length - 1) >>> 0;
  27474. result = t1[t2];
  27475. t1[t2] = null;
  27476. return result;
  27477. },
  27478. _add$1: function(element) {
  27479. var _this = this,
  27480. t1 = _this._collection$_table,
  27481. t2 = _this._collection$_tail;
  27482. t1[t2] = element;
  27483. t1 = (t2 + 1 & t1.length - 1) >>> 0;
  27484. _this._collection$_tail = t1;
  27485. if (_this._collection$_head === t1)
  27486. _this._collection$_grow$0();
  27487. ++_this._modificationCount;
  27488. },
  27489. _collection$_grow$0: function() {
  27490. var _this = this,
  27491. newTable = P.List_List$filled(_this._collection$_table.length * 2, null, false, _this.$ti._eval$1("1?")),
  27492. t1 = _this._collection$_table,
  27493. t2 = _this._collection$_head,
  27494. split = t1.length - t2;
  27495. C.JSArray_methods.setRange$4(newTable, 0, split, t1, t2);
  27496. C.JSArray_methods.setRange$4(newTable, split, split + _this._collection$_head, _this._collection$_table, 0);
  27497. _this._collection$_head = 0;
  27498. _this._collection$_tail = _this._collection$_table.length;
  27499. _this._collection$_table = newTable;
  27500. },
  27501. _collection$_writeToList$1: function(target) {
  27502. var $length, firstPartSize, _this = this,
  27503. t1 = _this._collection$_head,
  27504. t2 = _this._collection$_tail,
  27505. t3 = _this._collection$_table;
  27506. if (t1 <= t2) {
  27507. $length = t2 - t1;
  27508. C.JSArray_methods.setRange$4(target, 0, $length, t3, t1);
  27509. return $length;
  27510. } else {
  27511. firstPartSize = t3.length - t1;
  27512. C.JSArray_methods.setRange$4(target, 0, firstPartSize, t3, t1);
  27513. C.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this._collection$_tail, _this._collection$_table, 0);
  27514. return _this._collection$_tail + firstPartSize;
  27515. }
  27516. },
  27517. $isQueue: 1
  27518. };
  27519. P._ListQueueIterator.prototype = {
  27520. get$current: function(_) {
  27521. var cur = this._collection$_current;
  27522. return cur;
  27523. },
  27524. moveNext$0: function() {
  27525. var t2, _this = this,
  27526. t1 = _this._queue;
  27527. if (_this._modificationCount !== t1._modificationCount)
  27528. H.throwExpression(P.ConcurrentModificationError$(t1));
  27529. t2 = _this._collection$_position;
  27530. if (t2 === _this._collection$_end) {
  27531. _this._collection$_current = null;
  27532. return false;
  27533. }
  27534. t1 = t1._collection$_table;
  27535. _this._collection$_current = t1[t2];
  27536. _this._collection$_position = (t2 + 1 & t1.length - 1) >>> 0;
  27537. return true;
  27538. }
  27539. };
  27540. P._SetBase.prototype = {
  27541. cast$1$0: function(_, $R) {
  27542. return P.Set_castFrom(this, this.get$_newSimilarSet(), H._instanceType(this)._precomputed1, $R);
  27543. },
  27544. difference$1: function(other) {
  27545. var t1, element,
  27546. result = this._newSet$0();
  27547. for (t1 = this.get$iterator(this); t1.moveNext$0();) {
  27548. element = t1.get$current(t1);
  27549. if (!other.contains$1(0, element))
  27550. result.add$1(0, element);
  27551. }
  27552. return result;
  27553. },
  27554. intersection$1: function(other) {
  27555. var t1, t2, element,
  27556. result = this._newSet$0();
  27557. for (t1 = this.get$iterator(this), t2 = other._baseMap; t1.moveNext$0();) {
  27558. element = t1.get$current(t1);
  27559. if (t2.containsKey$1(element))
  27560. result.add$1(0, element);
  27561. }
  27562. return result;
  27563. },
  27564. toSet$0: function(_) {
  27565. var t1 = this._newSet$0();
  27566. t1.addAll$1(0, this);
  27567. return t1;
  27568. },
  27569. get$isEmpty: function(_) {
  27570. return this.get$length(this) === 0;
  27571. },
  27572. get$isNotEmpty: function(_) {
  27573. return this.get$length(this) !== 0;
  27574. },
  27575. addAll$1: function(_, elements) {
  27576. var t1;
  27577. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  27578. this.add$1(0, t1.get$current(t1));
  27579. },
  27580. removeAll$1: function(elements) {
  27581. var t1;
  27582. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  27583. this.remove$1(0, t1.get$current(t1));
  27584. },
  27585. toList$1$growable: function(_, growable) {
  27586. return P.List_List$from(this, growable, H._instanceType(this)._precomputed1);
  27587. },
  27588. toList$0: function($receiver) {
  27589. return this.toList$1$growable($receiver, true);
  27590. },
  27591. map$1$1: function(_, f, $T) {
  27592. return new H.EfficientLengthMappedIterable(this, f, H._instanceType(this)._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  27593. },
  27594. get$single: function(_) {
  27595. var it, _this = this;
  27596. if (_this.get$length(_this) > 1)
  27597. throw H.wrapException(H.IterableElementError_tooMany());
  27598. it = _this.get$iterator(_this);
  27599. if (!it.moveNext$0())
  27600. throw H.wrapException(H.IterableElementError_noElement());
  27601. return it.get$current(it);
  27602. },
  27603. toString$0: function(_) {
  27604. return P.IterableBase_iterableToFullString(this, "{", "}");
  27605. },
  27606. where$1: function(_, f) {
  27607. return new H.WhereIterable(this, f, H._instanceType(this)._eval$1("WhereIterable<1>"));
  27608. },
  27609. join$1: function(_, separator) {
  27610. var t1,
  27611. iterator = this.get$iterator(this);
  27612. if (!iterator.moveNext$0())
  27613. return "";
  27614. if (separator === "") {
  27615. t1 = "";
  27616. do
  27617. t1 += H.S(iterator.get$current(iterator));
  27618. while (iterator.moveNext$0());
  27619. } else {
  27620. t1 = H.S(iterator.get$current(iterator));
  27621. for (; iterator.moveNext$0();)
  27622. t1 = t1 + separator + H.S(iterator.get$current(iterator));
  27623. }
  27624. return t1.charCodeAt(0) == 0 ? t1 : t1;
  27625. },
  27626. join$0: function($receiver) {
  27627. return this.join$1($receiver, "");
  27628. },
  27629. any$1: function(_, test) {
  27630. var t1;
  27631. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  27632. if (test.call$1(t1.get$current(t1)))
  27633. return true;
  27634. return false;
  27635. },
  27636. take$1: function(_, n) {
  27637. return H.TakeIterable_TakeIterable(this, n, H._instanceType(this)._precomputed1);
  27638. },
  27639. skip$1: function(_, n) {
  27640. return H.SkipIterable_SkipIterable(this, n, H._instanceType(this)._precomputed1);
  27641. },
  27642. get$first: function(_) {
  27643. var it = this.get$iterator(this);
  27644. if (!it.moveNext$0())
  27645. throw H.wrapException(H.IterableElementError_noElement());
  27646. return it.get$current(it);
  27647. },
  27648. get$last: function(_) {
  27649. var result,
  27650. it = this.get$iterator(this);
  27651. if (!it.moveNext$0())
  27652. throw H.wrapException(H.IterableElementError_noElement());
  27653. do
  27654. result = it.get$current(it);
  27655. while (it.moveNext$0());
  27656. return result;
  27657. },
  27658. elementAt$1: function(_, index) {
  27659. var t1, elementIndex, element, _s5_ = "index";
  27660. P.ArgumentError_checkNotNull(index, _s5_);
  27661. P.RangeError_checkNotNegative(index, _s5_);
  27662. for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
  27663. element = t1.get$current(t1);
  27664. if (index === elementIndex)
  27665. return element;
  27666. ++elementIndex;
  27667. }
  27668. throw H.wrapException(P.IndexError$(index, this, _s5_, null, elementIndex));
  27669. },
  27670. $isEfficientLengthIterable: 1,
  27671. $isIterable: 1,
  27672. $isSet: 1
  27673. };
  27674. P._UnmodifiableSet.prototype = {
  27675. _newSet$0: function() {
  27676. return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  27677. },
  27678. _newSimilarSet$1$0: function($R) {
  27679. return P.LinkedHashSet_LinkedHashSet($R);
  27680. },
  27681. _newSimilarSet$0: function() {
  27682. return this._newSimilarSet$1$0(type$.dynamic);
  27683. },
  27684. contains$1: function(_, element) {
  27685. return this._collection$_map.containsKey$1(element);
  27686. },
  27687. get$iterator: function(_) {
  27688. return J.get$iterator$ax(this._collection$_map.get$keys());
  27689. },
  27690. get$length: function(_) {
  27691. var t1 = this._collection$_map;
  27692. return t1.get$length(t1);
  27693. },
  27694. add$1: function(_, value) {
  27695. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  27696. },
  27697. addAll$1: function(_, elements) {
  27698. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  27699. },
  27700. remove$1: function(_, value) {
  27701. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  27702. }
  27703. };
  27704. P._ListBase_Object_ListMixin.prototype = {};
  27705. P._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {};
  27706. P.Utf8Decoder_closure.prototype = {
  27707. call$0: function() {
  27708. var t1, exception;
  27709. try {
  27710. t1 = new TextDecoder("utf-8", {fatal: true});
  27711. return t1;
  27712. } catch (exception) {
  27713. H.unwrapException(exception);
  27714. }
  27715. return null;
  27716. },
  27717. $signature: 76
  27718. };
  27719. P.Utf8Decoder_closure0.prototype = {
  27720. call$0: function() {
  27721. var t1, exception;
  27722. try {
  27723. t1 = new TextDecoder("utf-8", {fatal: false});
  27724. return t1;
  27725. } catch (exception) {
  27726. H.unwrapException(exception);
  27727. }
  27728. return null;
  27729. },
  27730. $signature: 76
  27731. };
  27732. P.AsciiCodec.prototype = {
  27733. encode$1: function(source) {
  27734. return C.AsciiEncoder_127.convert$1(source);
  27735. },
  27736. get$encoder: function() {
  27737. return C.AsciiEncoder_127;
  27738. }
  27739. };
  27740. P._UnicodeSubsetEncoder.prototype = {
  27741. convert$1: function(string) {
  27742. var t1, t2, i, codeUnit,
  27743. end = P.RangeError_checkValidRange(0, null, string.length),
  27744. $length = end - 0,
  27745. result = new Uint8Array($length);
  27746. for (t1 = ~this._subsetMask, t2 = J.getInterceptor$s(string), i = 0; i < $length; ++i) {
  27747. codeUnit = t2._codeUnitAt$1(string, i);
  27748. if ((codeUnit & t1) !== 0)
  27749. throw H.wrapException(P.ArgumentError$value(string, "string", "Contains invalid characters."));
  27750. result[i] = codeUnit;
  27751. }
  27752. return result;
  27753. }
  27754. };
  27755. P.AsciiEncoder.prototype = {};
  27756. P.Base64Codec.prototype = {
  27757. get$encoder: function() {
  27758. return C.C_Base64Encoder;
  27759. },
  27760. normalize$3: function(source, start, end) {
  27761. var inverseAlphabet, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, digit2, char0, value, t1, t2, endLength, $length,
  27762. _s31_ = "Invalid base64 encoding length ";
  27763. end = P.RangeError_checkValidRange(start, end, source.length);
  27764. inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet();
  27765. for (i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) {
  27766. i0 = i + 1;
  27767. char = C.JSString_methods._codeUnitAt$1(source, i);
  27768. if (char === 37) {
  27769. i1 = i0 + 2;
  27770. if (i1 <= end) {
  27771. digit1 = H.hexDigitValue(C.JSString_methods._codeUnitAt$1(source, i0));
  27772. digit2 = H.hexDigitValue(C.JSString_methods._codeUnitAt$1(source, i0 + 1));
  27773. char0 = digit1 * 16 + digit2 - (digit2 & 256);
  27774. if (char0 === 37)
  27775. char0 = -1;
  27776. i0 = i1;
  27777. } else
  27778. char0 = -1;
  27779. } else
  27780. char0 = char;
  27781. if (0 <= char0 && char0 <= 127) {
  27782. value = inverseAlphabet[char0];
  27783. if (value >= 0) {
  27784. char0 = C.JSString_methods.codeUnitAt$1(string$.ABCDEF, value);
  27785. if (char0 === char)
  27786. continue;
  27787. char = char0;
  27788. } else {
  27789. if (value === -1) {
  27790. if (firstPadding < 0) {
  27791. t1 = buffer == null ? null : buffer._contents.length;
  27792. if (t1 == null)
  27793. t1 = 0;
  27794. firstPadding = t1 + (i - sliceStart);
  27795. firstPaddingSourceIndex = i;
  27796. }
  27797. ++paddingCount;
  27798. if (char === 61)
  27799. continue;
  27800. }
  27801. char = char0;
  27802. }
  27803. if (value !== -2) {
  27804. if (buffer == null) {
  27805. buffer = new P.StringBuffer("");
  27806. t1 = buffer;
  27807. } else
  27808. t1 = buffer;
  27809. t1._contents += C.JSString_methods.substring$2(source, sliceStart, i);
  27810. t1._contents += H.Primitives_stringFromCharCode(char);
  27811. sliceStart = i0;
  27812. continue;
  27813. }
  27814. }
  27815. throw H.wrapException(P.FormatException$("Invalid base64 data", source, i));
  27816. }
  27817. if (buffer != null) {
  27818. t1 = buffer._contents += C.JSString_methods.substring$2(source, sliceStart, end);
  27819. t2 = t1.length;
  27820. if (firstPadding >= 0)
  27821. P.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2);
  27822. else {
  27823. endLength = C.JSInt_methods.$mod(t2 - 1, 4) + 1;
  27824. if (endLength === 1)
  27825. throw H.wrapException(P.FormatException$(_s31_, source, end));
  27826. for (; endLength < 4;) {
  27827. t1 += "=";
  27828. buffer._contents = t1;
  27829. ++endLength;
  27830. }
  27831. }
  27832. t1 = buffer._contents;
  27833. return C.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1);
  27834. }
  27835. $length = end - start;
  27836. if (firstPadding >= 0)
  27837. P.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length);
  27838. else {
  27839. endLength = C.JSInt_methods.$mod($length, 4);
  27840. if (endLength === 1)
  27841. throw H.wrapException(P.FormatException$(_s31_, source, end));
  27842. if (endLength > 1)
  27843. source = C.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "=");
  27844. }
  27845. return source;
  27846. }
  27847. };
  27848. P.Base64Encoder.prototype = {
  27849. convert$1: function(input) {
  27850. var t1 = J.getInterceptor$asx(input);
  27851. if (t1.get$isEmpty(input))
  27852. return "";
  27853. t1 = new P._Base64Encoder(string$.ABCDEF).encode$4(input, 0, t1.get$length(input), true);
  27854. t1.toString;
  27855. return P.String_String$fromCharCodes(t1, 0, null);
  27856. },
  27857. startChunkedConversion$1: function(sink) {
  27858. var t1,
  27859. _s64_ = string$.ABCDEF;
  27860. if (type$.StringConversionSink._is(sink)) {
  27861. t1 = sink.asUtf8Sink$1(false);
  27862. return new P._Utf8Base64EncoderSink(t1, new P._Base64Encoder(_s64_));
  27863. }
  27864. return new P._AsciiBase64EncoderSink(sink, new P._BufferCachingBase64Encoder(_s64_));
  27865. }
  27866. };
  27867. P._Base64Encoder.prototype = {
  27868. createBuffer$1: function(bufferLength) {
  27869. return new Uint8Array(bufferLength);
  27870. },
  27871. encode$4: function(bytes, start, end, isLast) {
  27872. var output, _this = this,
  27873. byteCount = (_this._convert$_state & 3) + (end - start),
  27874. fullChunks = C.JSInt_methods._tdivFast$1(byteCount, 3),
  27875. bufferLength = fullChunks * 4;
  27876. if (isLast && byteCount - fullChunks * 3 > 0)
  27877. bufferLength += 4;
  27878. output = _this.createBuffer$1(bufferLength);
  27879. _this._convert$_state = P._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state);
  27880. if (bufferLength > 0)
  27881. return output;
  27882. return null;
  27883. }
  27884. };
  27885. P._BufferCachingBase64Encoder.prototype = {
  27886. createBuffer$1: function(bufferLength) {
  27887. var buffer = this.bufferCache;
  27888. if (buffer == null || buffer.length < bufferLength)
  27889. buffer = this.bufferCache = new Uint8Array(bufferLength);
  27890. if (buffer == null)
  27891. throw H.wrapException("unreachable");
  27892. return H.NativeUint8List_NativeUint8List$view(buffer.buffer, buffer.byteOffset, bufferLength);
  27893. }
  27894. };
  27895. P._Base64EncoderSink.prototype = {
  27896. add$1: function(_, source) {
  27897. this._convert$_add$4(source, 0, J.get$length$asx(source), false);
  27898. },
  27899. close$0: function(_) {
  27900. this._convert$_add$4(C.List_empty1, 0, 0, true);
  27901. },
  27902. addSlice$4: function(source, start, end, isLast) {
  27903. P.RangeError_checkValidRange(start, end, source.length);
  27904. this._convert$_add$4(source, start, end, isLast);
  27905. }
  27906. };
  27907. P._AsciiBase64EncoderSink.prototype = {
  27908. _convert$_add$4: function(source, start, end, isLast) {
  27909. var buffer = this._encoder.encode$4(source, start, end, isLast);
  27910. if (buffer != null)
  27911. this._sink.add$1(0, P.String_String$fromCharCodes(buffer, 0, null));
  27912. if (isLast)
  27913. this._sink.close$0(0);
  27914. }
  27915. };
  27916. P._Utf8Base64EncoderSink.prototype = {
  27917. _convert$_add$4: function(source, start, end, isLast) {
  27918. var buffer = this._encoder.encode$4(source, start, end, isLast);
  27919. if (buffer != null)
  27920. this._sink.addSlice$4(buffer, 0, buffer.length, isLast);
  27921. }
  27922. };
  27923. P.ByteConversionSink.prototype = {};
  27924. P.ByteConversionSinkBase.prototype = {};
  27925. P.ChunkedConversionSink.prototype = {};
  27926. P.Codec.prototype = {
  27927. encode$1: function(input) {
  27928. return this.get$encoder().convert$1(input);
  27929. }
  27930. };
  27931. P.Converter.prototype = {};
  27932. P.Encoding.prototype = {};
  27933. P.JsonUnsupportedObjectError.prototype = {
  27934. toString$0: function(_) {
  27935. var safeString = P.Error_safeToString(this.unsupportedObject);
  27936. return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString;
  27937. }
  27938. };
  27939. P.JsonCyclicError.prototype = {
  27940. toString$0: function(_) {
  27941. return "Cyclic error in JSON stringify";
  27942. }
  27943. };
  27944. P.JsonCodec.prototype = {
  27945. encode$2$toEncodable: function(value, toEncodable) {
  27946. var t1 = P._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null);
  27947. return t1;
  27948. },
  27949. get$encoder: function() {
  27950. return C.JsonEncoder_null;
  27951. }
  27952. };
  27953. P.JsonEncoder.prototype = {
  27954. convert$1: function(object) {
  27955. var t1,
  27956. output = new P.StringBuffer("");
  27957. P._JsonStringStringifier_printOn(object, output, this._toEncodable, null);
  27958. t1 = output._contents;
  27959. return t1.charCodeAt(0) == 0 ? t1 : t1;
  27960. }
  27961. };
  27962. P._JsonStringifier.prototype = {
  27963. writeStringContent$1: function(s) {
  27964. var t1, offset, i, charCode, t2, t3, _this = this,
  27965. $length = s.length;
  27966. for (t1 = J.getInterceptor$s(s), offset = 0, i = 0; i < $length; ++i) {
  27967. charCode = t1._codeUnitAt$1(s, i);
  27968. if (charCode > 92) {
  27969. if (charCode >= 55296) {
  27970. t2 = charCode & 64512;
  27971. if (t2 === 55296) {
  27972. t3 = i + 1;
  27973. t3 = !(t3 < $length && (C.JSString_methods._codeUnitAt$1(s, t3) & 64512) === 56320);
  27974. } else
  27975. t3 = false;
  27976. if (!t3)
  27977. if (t2 === 56320) {
  27978. t2 = i - 1;
  27979. t2 = !(t2 >= 0 && (C.JSString_methods.codeUnitAt$1(s, t2) & 64512) === 55296);
  27980. } else
  27981. t2 = false;
  27982. else
  27983. t2 = true;
  27984. if (t2) {
  27985. if (i > offset)
  27986. _this.writeStringSlice$3(s, offset, i);
  27987. offset = i + 1;
  27988. _this.writeCharCode$1(92);
  27989. _this.writeCharCode$1(117);
  27990. _this.writeCharCode$1(100);
  27991. t2 = charCode >>> 8 & 15;
  27992. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  27993. t2 = charCode >>> 4 & 15;
  27994. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  27995. t2 = charCode & 15;
  27996. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  27997. }
  27998. }
  27999. continue;
  28000. }
  28001. if (charCode < 32) {
  28002. if (i > offset)
  28003. _this.writeStringSlice$3(s, offset, i);
  28004. offset = i + 1;
  28005. _this.writeCharCode$1(92);
  28006. switch (charCode) {
  28007. case 8:
  28008. _this.writeCharCode$1(98);
  28009. break;
  28010. case 9:
  28011. _this.writeCharCode$1(116);
  28012. break;
  28013. case 10:
  28014. _this.writeCharCode$1(110);
  28015. break;
  28016. case 12:
  28017. _this.writeCharCode$1(102);
  28018. break;
  28019. case 13:
  28020. _this.writeCharCode$1(114);
  28021. break;
  28022. default:
  28023. _this.writeCharCode$1(117);
  28024. _this.writeCharCode$1(48);
  28025. _this.writeCharCode$1(48);
  28026. t2 = charCode >>> 4 & 15;
  28027. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  28028. t2 = charCode & 15;
  28029. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  28030. break;
  28031. }
  28032. } else if (charCode === 34 || charCode === 92) {
  28033. if (i > offset)
  28034. _this.writeStringSlice$3(s, offset, i);
  28035. offset = i + 1;
  28036. _this.writeCharCode$1(92);
  28037. _this.writeCharCode$1(charCode);
  28038. }
  28039. }
  28040. if (offset === 0)
  28041. _this.writeString$1(s);
  28042. else if (offset < $length)
  28043. _this.writeStringSlice$3(s, offset, $length);
  28044. },
  28045. _checkCycle$1: function(object) {
  28046. var t1, t2, i, t3;
  28047. for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) {
  28048. t3 = t1[i];
  28049. if (object == null ? t3 == null : object === t3)
  28050. throw H.wrapException(new P.JsonCyclicError(object, null));
  28051. }
  28052. t1.push(object);
  28053. },
  28054. writeObject$1: function(object) {
  28055. var customJson, e, t1, exception, _this = this;
  28056. if (_this.writeJsonValue$1(object))
  28057. return;
  28058. _this._checkCycle$1(object);
  28059. try {
  28060. customJson = _this._toEncodable.call$1(object);
  28061. if (!_this.writeJsonValue$1(customJson)) {
  28062. t1 = P.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult());
  28063. throw H.wrapException(t1);
  28064. }
  28065. _this._seen.pop();
  28066. } catch (exception) {
  28067. e = H.unwrapException(exception);
  28068. t1 = P.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult());
  28069. throw H.wrapException(t1);
  28070. }
  28071. },
  28072. writeJsonValue$1: function(object) {
  28073. var success, _this = this;
  28074. if (typeof object == "number") {
  28075. if (!isFinite(object))
  28076. return false;
  28077. _this.writeNumber$1(object);
  28078. return true;
  28079. } else if (object === true) {
  28080. _this.writeString$1("true");
  28081. return true;
  28082. } else if (object === false) {
  28083. _this.writeString$1("false");
  28084. return true;
  28085. } else if (object == null) {
  28086. _this.writeString$1("null");
  28087. return true;
  28088. } else if (typeof object == "string") {
  28089. _this.writeString$1('"');
  28090. _this.writeStringContent$1(object);
  28091. _this.writeString$1('"');
  28092. return true;
  28093. } else if (type$.List_dynamic._is(object)) {
  28094. _this._checkCycle$1(object);
  28095. _this.writeList$1(object);
  28096. _this._seen.pop();
  28097. return true;
  28098. } else if (type$.Map_dynamic_dynamic._is(object)) {
  28099. _this._checkCycle$1(object);
  28100. success = _this.writeMap$1(object);
  28101. _this._seen.pop();
  28102. return success;
  28103. } else
  28104. return false;
  28105. },
  28106. writeList$1: function(list) {
  28107. var t1, i, _this = this;
  28108. _this.writeString$1("[");
  28109. t1 = J.getInterceptor$asx(list);
  28110. if (t1.get$isNotEmpty(list)) {
  28111. _this.writeObject$1(t1.$index(list, 0));
  28112. for (i = 1; i < t1.get$length(list); ++i) {
  28113. _this.writeString$1(",");
  28114. _this.writeObject$1(t1.$index(list, i));
  28115. }
  28116. }
  28117. _this.writeString$1("]");
  28118. },
  28119. writeMap$1: function(map) {
  28120. var keyValueList, i, separator, _this = this, _box_0 = {};
  28121. if (map.get$isEmpty(map)) {
  28122. _this.writeString$1("{}");
  28123. return true;
  28124. }
  28125. keyValueList = P.List_List$filled(map.get$length(map) * 2, null, false, type$.nullable_Object);
  28126. i = _box_0.i = 0;
  28127. _box_0.allStringKeys = true;
  28128. map.forEach$1(0, new P._JsonStringifier_writeMap_closure(_box_0, keyValueList));
  28129. if (!_box_0.allStringKeys)
  28130. return false;
  28131. _this.writeString$1("{");
  28132. for (separator = '"'; i < keyValueList.length; i += 2, separator = ',"') {
  28133. _this.writeString$1(separator);
  28134. _this.writeStringContent$1(H._asStringS(keyValueList[i]));
  28135. _this.writeString$1('":');
  28136. _this.writeObject$1(keyValueList[i + 1]);
  28137. }
  28138. _this.writeString$1("}");
  28139. return true;
  28140. }
  28141. };
  28142. P._JsonStringifier_writeMap_closure.prototype = {
  28143. call$2: function(key, value) {
  28144. var t1, t2, t3, i;
  28145. if (typeof key != "string")
  28146. this._box_0.allStringKeys = false;
  28147. t1 = this.keyValueList;
  28148. t2 = this._box_0;
  28149. t3 = t2.i;
  28150. i = t2.i = t3 + 1;
  28151. t1[t3] = key;
  28152. t2.i = i + 1;
  28153. t1[i] = value;
  28154. },
  28155. $signature: 82
  28156. };
  28157. P._JsonStringStringifier.prototype = {
  28158. get$_partialResult: function() {
  28159. var t1 = this._sink;
  28160. return type$.StringBuffer._is(t1) ? t1.toString$0(0) : null;
  28161. },
  28162. writeNumber$1: function(number) {
  28163. this._sink.write$1(0, C.JSNumber_methods.toString$0(number));
  28164. },
  28165. writeString$1: function(string) {
  28166. this._sink.write$1(0, string);
  28167. },
  28168. writeStringSlice$3: function(string, start, end) {
  28169. this._sink.write$1(0, C.JSString_methods.substring$2(string, start, end));
  28170. },
  28171. writeCharCode$1: function(charCode) {
  28172. this._sink.writeCharCode$1(charCode);
  28173. }
  28174. };
  28175. P.StringConversionSinkBase.prototype = {};
  28176. P.StringConversionSinkMixin.prototype = {
  28177. add$1: function(_, str) {
  28178. this.addSlice$4(str, 0, str.length, false);
  28179. },
  28180. asUtf8Sink$1: function(allowMalformed) {
  28181. return new P._Utf8ConversionSink(new P._Utf8Decoder(allowMalformed), this, new P.StringBuffer(""));
  28182. },
  28183. $isStringConversionSink: 1
  28184. };
  28185. P._StringSinkConversionSink.prototype = {
  28186. close$0: function(_) {
  28187. },
  28188. addSlice$4: function(str, start, end, isLast) {
  28189. var t1, t2, i;
  28190. if (start !== 0 || end !== str.length)
  28191. for (t1 = this._stringSink, t2 = J.getInterceptor$s(str), i = start; i < end; ++i)
  28192. t1._contents += H.Primitives_stringFromCharCode(t2._codeUnitAt$1(str, i));
  28193. else
  28194. this._stringSink._contents += H.S(str);
  28195. if (isLast)
  28196. this.close$0(0);
  28197. },
  28198. add$1: function(_, str) {
  28199. this._stringSink._contents += H.S(str);
  28200. },
  28201. asUtf8Sink$1: function(allowMalformed) {
  28202. return new P._Utf8StringSinkAdapter(new P._Utf8Decoder(allowMalformed), this, this._stringSink);
  28203. }
  28204. };
  28205. P._StringCallbackSink.prototype = {
  28206. close$0: function(_) {
  28207. var t1 = this._stringSink,
  28208. t2 = t1._contents;
  28209. t1._contents = "";
  28210. this._convert$_callback.call$1(t2.charCodeAt(0) == 0 ? t2 : t2);
  28211. },
  28212. asUtf8Sink$1: function(allowMalformed) {
  28213. return new P._Utf8StringSinkAdapter(new P._Utf8Decoder(allowMalformed), this, this._stringSink);
  28214. }
  28215. };
  28216. P._StringAdapterSink.prototype = {
  28217. add$1: function(_, str) {
  28218. this._sink.add$1(0, str);
  28219. },
  28220. addSlice$4: function(str, start, end, isLast) {
  28221. var t1 = start === 0 && end === str.length,
  28222. t2 = this._sink;
  28223. if (t1)
  28224. t2.add$1(0, str);
  28225. else
  28226. t2.add$1(0, J.substring$2$s(str, start, end));
  28227. if (isLast)
  28228. t2.close$0(0);
  28229. },
  28230. close$0: function(_) {
  28231. this._sink.close$0(0);
  28232. }
  28233. };
  28234. P._Utf8StringSinkAdapter.prototype = {
  28235. close$0: function(_) {
  28236. this._decoder.flush$1(this._stringSink);
  28237. this._sink.close$0(0);
  28238. },
  28239. add$1: function(_, chunk) {
  28240. this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
  28241. },
  28242. addSlice$4: function(codeUnits, startIndex, endIndex, isLast) {
  28243. this._stringSink._contents += this._decoder.convertGeneral$4(codeUnits, startIndex, endIndex, false);
  28244. if (isLast)
  28245. this.close$0(0);
  28246. }
  28247. };
  28248. P._Utf8ConversionSink.prototype = {
  28249. close$0: function(_) {
  28250. var t2, t3, accumulated,
  28251. t1 = this._convert$_buffer;
  28252. this._decoder.flush$1(t1);
  28253. t2 = t1._contents;
  28254. t3 = this._chunkedSink;
  28255. if (t2.length !== 0) {
  28256. accumulated = t2.charCodeAt(0) == 0 ? t2 : t2;
  28257. t1._contents = "";
  28258. t3.addSlice$4(accumulated, 0, accumulated.length, true);
  28259. } else
  28260. t3.close$0(0);
  28261. },
  28262. add$1: function(_, chunk) {
  28263. this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
  28264. },
  28265. addSlice$4: function(chunk, startIndex, endIndex, isLast) {
  28266. var accumulated, _this = this,
  28267. t1 = _this._convert$_buffer,
  28268. t2 = t1._contents += _this._decoder.convertGeneral$4(chunk, startIndex, endIndex, false);
  28269. if (t2.length !== 0) {
  28270. accumulated = t2.charCodeAt(0) == 0 ? t2 : t2;
  28271. _this._chunkedSink.addSlice$4(accumulated, 0, accumulated.length, isLast);
  28272. t1._contents = "";
  28273. return;
  28274. }
  28275. if (isLast)
  28276. _this.close$0(0);
  28277. }
  28278. };
  28279. P.Utf8Codec.prototype = {
  28280. get$encoder: function() {
  28281. return C.C_Utf8Encoder;
  28282. }
  28283. };
  28284. P.Utf8Encoder.prototype = {
  28285. convert$1: function(string) {
  28286. var t1, encoder,
  28287. end = P.RangeError_checkValidRange(0, null, string.length),
  28288. $length = end - 0;
  28289. if ($length === 0)
  28290. return new Uint8Array(0);
  28291. t1 = new Uint8Array($length * 3);
  28292. encoder = new P._Utf8Encoder(t1);
  28293. if (encoder._fillBuffer$3(string, 0, end) !== end) {
  28294. J.codeUnitAt$1$s(string, end - 1);
  28295. encoder._writeReplacementCharacter$0();
  28296. }
  28297. return C.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex);
  28298. }
  28299. };
  28300. P._Utf8Encoder.prototype = {
  28301. _writeReplacementCharacter$0: function() {
  28302. var _this = this,
  28303. t1 = _this._convert$_buffer,
  28304. t2 = _this._bufferIndex,
  28305. t3 = _this._bufferIndex = t2 + 1;
  28306. t1[t2] = 239;
  28307. t2 = _this._bufferIndex = t3 + 1;
  28308. t1[t3] = 191;
  28309. _this._bufferIndex = t2 + 1;
  28310. t1[t2] = 189;
  28311. },
  28312. _writeSurrogate$2: function(leadingSurrogate, nextCodeUnit) {
  28313. var rune, t1, t2, t3, _this = this;
  28314. if ((nextCodeUnit & 64512) === 56320) {
  28315. rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023;
  28316. t1 = _this._convert$_buffer;
  28317. t2 = _this._bufferIndex;
  28318. t3 = _this._bufferIndex = t2 + 1;
  28319. t1[t2] = 240 | rune >>> 18;
  28320. t2 = _this._bufferIndex = t3 + 1;
  28321. t1[t3] = 128 | rune >>> 12 & 63;
  28322. t3 = _this._bufferIndex = t2 + 1;
  28323. t1[t2] = 128 | rune >>> 6 & 63;
  28324. _this._bufferIndex = t3 + 1;
  28325. t1[t3] = 128 | rune & 63;
  28326. return true;
  28327. } else {
  28328. _this._writeReplacementCharacter$0();
  28329. return false;
  28330. }
  28331. },
  28332. _fillBuffer$3: function(str, start, end) {
  28333. var t1, t2, t3, stringIndex, codeUnit, t4, stringIndex0, t5, _this = this;
  28334. if (start !== end && (J.codeUnitAt$1$s(str, end - 1) & 64512) === 55296)
  28335. --end;
  28336. for (t1 = _this._convert$_buffer, t2 = t1.length, t3 = J.getInterceptor$s(str), stringIndex = start; stringIndex < end; ++stringIndex) {
  28337. codeUnit = t3._codeUnitAt$1(str, stringIndex);
  28338. if (codeUnit <= 127) {
  28339. t4 = _this._bufferIndex;
  28340. if (t4 >= t2)
  28341. break;
  28342. _this._bufferIndex = t4 + 1;
  28343. t1[t4] = codeUnit;
  28344. } else {
  28345. t4 = codeUnit & 64512;
  28346. if (t4 === 55296) {
  28347. if (_this._bufferIndex + 4 > t2)
  28348. break;
  28349. stringIndex0 = stringIndex + 1;
  28350. if (_this._writeSurrogate$2(codeUnit, C.JSString_methods._codeUnitAt$1(str, stringIndex0)))
  28351. stringIndex = stringIndex0;
  28352. } else if (t4 === 56320) {
  28353. if (_this._bufferIndex + 3 > t2)
  28354. break;
  28355. _this._writeReplacementCharacter$0();
  28356. } else if (codeUnit <= 2047) {
  28357. t4 = _this._bufferIndex;
  28358. t5 = t4 + 1;
  28359. if (t5 >= t2)
  28360. break;
  28361. _this._bufferIndex = t5;
  28362. t1[t4] = 192 | codeUnit >>> 6;
  28363. _this._bufferIndex = t5 + 1;
  28364. t1[t5] = 128 | codeUnit & 63;
  28365. } else {
  28366. t4 = _this._bufferIndex;
  28367. if (t4 + 2 >= t2)
  28368. break;
  28369. t5 = _this._bufferIndex = t4 + 1;
  28370. t1[t4] = 224 | codeUnit >>> 12;
  28371. t4 = _this._bufferIndex = t5 + 1;
  28372. t1[t5] = 128 | codeUnit >>> 6 & 63;
  28373. _this._bufferIndex = t4 + 1;
  28374. t1[t4] = 128 | codeUnit & 63;
  28375. }
  28376. }
  28377. }
  28378. return stringIndex;
  28379. }
  28380. };
  28381. P.Utf8Decoder.prototype = {
  28382. convert$1: function(codeUnits) {
  28383. var t1 = this._allowMalformed,
  28384. result = P.Utf8Decoder__convertIntercepted(t1, codeUnits, 0, null);
  28385. if (result != null)
  28386. return result;
  28387. return new P._Utf8Decoder(t1).convertGeneral$4(codeUnits, 0, null, true);
  28388. },
  28389. startChunkedConversion$1: function(sink) {
  28390. var stringSink = type$.StringConversionSink._is(sink) ? sink : new P._StringAdapterSink(sink);
  28391. return stringSink.asUtf8Sink$1(this._allowMalformed);
  28392. }
  28393. };
  28394. P._Utf8Decoder.prototype = {
  28395. convertGeneral$4: function(codeUnits, start, maybeEnd, single) {
  28396. var bytes, errorOffset, result, t1, message, _this = this,
  28397. end = P.RangeError_checkValidRange(start, maybeEnd, J.get$length$asx(codeUnits));
  28398. if (start === end)
  28399. return "";
  28400. if (type$.Uint8List._is(codeUnits)) {
  28401. bytes = codeUnits;
  28402. errorOffset = 0;
  28403. } else {
  28404. bytes = P._Utf8Decoder__makeUint8List(codeUnits, start, end);
  28405. end -= start;
  28406. errorOffset = start;
  28407. start = 0;
  28408. }
  28409. result = _this._convertRecursive$4(bytes, start, end, single);
  28410. t1 = _this._convert$_state;
  28411. if ((t1 & 1) !== 0) {
  28412. message = P._Utf8Decoder_errorDescription(t1);
  28413. _this._convert$_state = 0;
  28414. throw H.wrapException(P.FormatException$(message, codeUnits, errorOffset + _this._charOrIndex));
  28415. }
  28416. return result;
  28417. },
  28418. _convertRecursive$4: function(bytes, start, end, single) {
  28419. var mid, s1, _this = this;
  28420. if (end - start > 1000) {
  28421. mid = C.JSInt_methods._tdivFast$1(start + end, 2);
  28422. s1 = _this._convertRecursive$4(bytes, start, mid, false);
  28423. if ((_this._convert$_state & 1) !== 0)
  28424. return s1;
  28425. return s1 + _this._convertRecursive$4(bytes, mid, end, single);
  28426. }
  28427. return _this.decodeGeneral$4(bytes, start, end, single);
  28428. },
  28429. flush$1: function(sink) {
  28430. var state = this._convert$_state;
  28431. this._convert$_state = 0;
  28432. if (state <= 32)
  28433. return;
  28434. if (this.allowMalformed)
  28435. sink._contents += H.Primitives_stringFromCharCode(65533);
  28436. else
  28437. throw H.wrapException(P.FormatException$(P._Utf8Decoder_errorDescription(77), null, null));
  28438. },
  28439. decodeGeneral$4: function(bytes, start, end, single) {
  28440. var t1, type, t2, i0, markEnd, i1, m, _this = this, _65533 = 65533,
  28441. state = _this._convert$_state,
  28442. char = _this._charOrIndex,
  28443. buffer = new P.StringBuffer(""),
  28444. i = start + 1,
  28445. byte = bytes[start];
  28446. $label0$0:
  28447. for (t1 = _this.allowMalformed; true;) {
  28448. for (; true; i = i0) {
  28449. type = C.JSString_methods._codeUnitAt$1("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE", byte) & 31;
  28450. char = state <= 32 ? byte & 61694 >>> type : (byte & 63 | char << 6) >>> 0;
  28451. state = C.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);
  28452. if (state === 0) {
  28453. buffer._contents += H.Primitives_stringFromCharCode(char);
  28454. if (i === end)
  28455. break $label0$0;
  28456. break;
  28457. } else if ((state & 1) !== 0) {
  28458. if (t1)
  28459. switch (state) {
  28460. case 69:
  28461. case 67:
  28462. buffer._contents += H.Primitives_stringFromCharCode(_65533);
  28463. break;
  28464. case 65:
  28465. buffer._contents += H.Primitives_stringFromCharCode(_65533);
  28466. --i;
  28467. break;
  28468. default:
  28469. t2 = buffer._contents += H.Primitives_stringFromCharCode(_65533);
  28470. buffer._contents = t2 + H.Primitives_stringFromCharCode(_65533);
  28471. break;
  28472. }
  28473. else {
  28474. _this._convert$_state = state;
  28475. _this._charOrIndex = i - 1;
  28476. return "";
  28477. }
  28478. state = 0;
  28479. }
  28480. if (i === end)
  28481. break $label0$0;
  28482. i0 = i + 1;
  28483. byte = bytes[i];
  28484. }
  28485. i0 = i + 1;
  28486. byte = bytes[i];
  28487. if (byte < 128) {
  28488. while (true) {
  28489. if (!(i0 < end)) {
  28490. markEnd = end;
  28491. break;
  28492. }
  28493. i1 = i0 + 1;
  28494. byte = bytes[i0];
  28495. if (byte >= 128) {
  28496. markEnd = i1 - 1;
  28497. i0 = i1;
  28498. break;
  28499. }
  28500. i0 = i1;
  28501. }
  28502. if (markEnd - i < 20)
  28503. for (m = i; m < markEnd; ++m)
  28504. buffer._contents += H.Primitives_stringFromCharCode(bytes[m]);
  28505. else
  28506. buffer._contents += P.String_String$fromCharCodes(bytes, i, markEnd);
  28507. if (markEnd === end)
  28508. break $label0$0;
  28509. i = i0;
  28510. } else
  28511. i = i0;
  28512. }
  28513. if (single && state > 32)
  28514. if (t1)
  28515. buffer._contents += H.Primitives_stringFromCharCode(_65533);
  28516. else {
  28517. _this._convert$_state = 77;
  28518. _this._charOrIndex = end;
  28519. return "";
  28520. }
  28521. _this._convert$_state = state;
  28522. _this._charOrIndex = char;
  28523. t1 = buffer._contents;
  28524. return t1.charCodeAt(0) == 0 ? t1 : t1;
  28525. }
  28526. };
  28527. P.NoSuchMethodError_toString_closure.prototype = {
  28528. call$2: function(key, value) {
  28529. var t3,
  28530. t1 = this.sb,
  28531. t2 = this._box_0;
  28532. t1._contents += t2.comma;
  28533. t3 = t1._contents += H.S(key.__internal$_name);
  28534. t1._contents = t3 + ": ";
  28535. t1._contents += P.Error_safeToString(value);
  28536. t2.comma = ", ";
  28537. }
  28538. };
  28539. P.bool.prototype = {};
  28540. P.DateTime.prototype = {
  28541. add$1: function(_, duration) {
  28542. return P.DateTime$_withValue(C.JSInt_methods.$add(this._value, duration.get$inMilliseconds()), false);
  28543. },
  28544. $eq: function(_, other) {
  28545. if (other == null)
  28546. return false;
  28547. return other instanceof P.DateTime && this._value === other._value && true;
  28548. },
  28549. compareTo$1: function(_, other) {
  28550. return C.JSInt_methods.compareTo$1(this._value, other._value);
  28551. },
  28552. get$hashCode: function(_) {
  28553. var t1 = this._value;
  28554. return (t1 ^ C.JSInt_methods._shrOtherPositive$1(t1, 30)) & 1073741823;
  28555. },
  28556. toString$0: function(_) {
  28557. var _this = this,
  28558. y = P.DateTime__fourDigits(H.Primitives_getYear(_this)),
  28559. m = P.DateTime__twoDigits(H.Primitives_getMonth(_this)),
  28560. d = P.DateTime__twoDigits(H.Primitives_getDay(_this)),
  28561. h = P.DateTime__twoDigits(H.Primitives_getHours(_this)),
  28562. min = P.DateTime__twoDigits(H.Primitives_getMinutes(_this)),
  28563. sec = P.DateTime__twoDigits(H.Primitives_getSeconds(_this)),
  28564. ms = P.DateTime__threeDigits(H.Primitives_getMilliseconds(_this)),
  28565. t1 = y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms;
  28566. return t1;
  28567. },
  28568. $isComparable: 1
  28569. };
  28570. P.double.prototype = {};
  28571. P.Duration.prototype = {
  28572. $eq: function(_, other) {
  28573. if (other == null)
  28574. return false;
  28575. return other instanceof P.Duration && this._duration === other._duration;
  28576. },
  28577. get$hashCode: function(_) {
  28578. return C.JSInt_methods.get$hashCode(this._duration);
  28579. },
  28580. compareTo$1: function(_, other) {
  28581. return C.JSInt_methods.compareTo$1(this._duration, other._duration);
  28582. },
  28583. toString$0: function(_) {
  28584. var twoDigitMinutes, twoDigitSeconds, sixDigitUs,
  28585. t1 = new P.Duration_toString_twoDigits(),
  28586. t2 = this._duration;
  28587. if (t2 < 0)
  28588. return "-" + new P.Duration(0 - t2).toString$0(0);
  28589. twoDigitMinutes = t1.call$1(C.JSInt_methods._tdivFast$1(t2, 60000000) % 60);
  28590. twoDigitSeconds = t1.call$1(C.JSInt_methods._tdivFast$1(t2, 1000000) % 60);
  28591. sixDigitUs = new P.Duration_toString_sixDigits().call$1(t2 % 1000000);
  28592. return "" + C.JSInt_methods._tdivFast$1(t2, 3600000000) + ":" + H.S(twoDigitMinutes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs);
  28593. },
  28594. $isComparable: 1
  28595. };
  28596. P.Duration_toString_sixDigits.prototype = {
  28597. call$1: function(n) {
  28598. if (n >= 100000)
  28599. return "" + n;
  28600. if (n >= 10000)
  28601. return "0" + n;
  28602. if (n >= 1000)
  28603. return "00" + n;
  28604. if (n >= 100)
  28605. return "000" + n;
  28606. if (n >= 10)
  28607. return "0000" + n;
  28608. return "00000" + n;
  28609. },
  28610. $signature: 77
  28611. };
  28612. P.Duration_toString_twoDigits.prototype = {
  28613. call$1: function(n) {
  28614. if (n >= 10)
  28615. return "" + n;
  28616. return "0" + n;
  28617. },
  28618. $signature: 77
  28619. };
  28620. P.Error.prototype = {
  28621. get$stackTrace: function() {
  28622. return H.getTraceFromException(this.$thrownJsError);
  28623. }
  28624. };
  28625. P.AssertionError.prototype = {
  28626. toString$0: function(_) {
  28627. var t1 = this.message;
  28628. if (t1 != null)
  28629. return "Assertion failed: " + P.Error_safeToString(t1);
  28630. return "Assertion failed";
  28631. },
  28632. get$message: function(receiver) {
  28633. return this.message;
  28634. }
  28635. };
  28636. P.NullThrownError.prototype = {
  28637. toString$0: function(_) {
  28638. return "Throw of null.";
  28639. }
  28640. };
  28641. P.ArgumentError.prototype = {
  28642. get$_errorName: function() {
  28643. return "Invalid argument" + (!this._hasValue ? "(s)" : "");
  28644. },
  28645. get$_errorExplanation: function() {
  28646. return "";
  28647. },
  28648. toString$0: function(_) {
  28649. var explanation, errorValue, _this = this,
  28650. $name = _this.name,
  28651. nameString = $name == null ? "" : " (" + $name + ")",
  28652. message = _this.message,
  28653. messageString = message == null ? "" : ": " + H.S(message),
  28654. prefix = _this.get$_errorName() + nameString + messageString;
  28655. if (!_this._hasValue)
  28656. return prefix;
  28657. explanation = _this.get$_errorExplanation();
  28658. errorValue = P.Error_safeToString(_this.invalidValue);
  28659. return prefix + explanation + ": " + errorValue;
  28660. },
  28661. get$message: function(receiver) {
  28662. return this.message;
  28663. }
  28664. };
  28665. P.RangeError.prototype = {
  28666. get$_errorName: function() {
  28667. return "RangeError";
  28668. },
  28669. get$_errorExplanation: function() {
  28670. var explanation,
  28671. start = this.start,
  28672. end = this.end;
  28673. if (start == null)
  28674. explanation = end != null ? ": Not less than or equal to " + H.S(end) : "";
  28675. else if (end == null)
  28676. explanation = ": Not greater than or equal to " + H.S(start);
  28677. else if (end > start)
  28678. explanation = ": Not in inclusive range " + H.S(start) + ".." + H.S(end);
  28679. else
  28680. explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + H.S(start);
  28681. return explanation;
  28682. }
  28683. };
  28684. P.IndexError.prototype = {
  28685. get$_errorName: function() {
  28686. return "RangeError";
  28687. },
  28688. get$_errorExplanation: function() {
  28689. if (this.invalidValue < 0)
  28690. return ": index must not be negative";
  28691. var t1 = this.length;
  28692. if (t1 === 0)
  28693. return ": no indices are valid";
  28694. return ": index should be less than " + t1;
  28695. },
  28696. $isRangeError: 1,
  28697. get$length: function(receiver) {
  28698. return this.length;
  28699. }
  28700. };
  28701. P.NoSuchMethodError.prototype = {
  28702. toString$0: function(_) {
  28703. var $arguments, t1, _i, t2, t3, argument, receiverText, actualParameters, _this = this, _box_0 = {},
  28704. sb = new P.StringBuffer("");
  28705. _box_0.comma = "";
  28706. $arguments = _this._core$_arguments;
  28707. for (t1 = $arguments.length, _i = 0, t2 = "", t3 = ""; _i < t1; ++_i, t3 = ", ") {
  28708. argument = $arguments[_i];
  28709. sb._contents = t2 + t3;
  28710. t2 = sb._contents += P.Error_safeToString(argument);
  28711. _box_0.comma = ", ";
  28712. }
  28713. _this._namedArguments.forEach$1(0, new P.NoSuchMethodError_toString_closure(_box_0, sb));
  28714. receiverText = P.Error_safeToString(_this._core$_receiver);
  28715. actualParameters = sb.toString$0(0);
  28716. t1 = "NoSuchMethodError: method not found: '" + H.S(_this._memberName.__internal$_name) + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]";
  28717. return t1;
  28718. }
  28719. };
  28720. P.UnsupportedError.prototype = {
  28721. toString$0: function(_) {
  28722. return "Unsupported operation: " + this.message;
  28723. },
  28724. get$message: function(receiver) {
  28725. return this.message;
  28726. }
  28727. };
  28728. P.UnimplementedError.prototype = {
  28729. toString$0: function(_) {
  28730. var message = this.message;
  28731. return message != null ? "UnimplementedError: " + message : "UnimplementedError";
  28732. },
  28733. get$message: function(receiver) {
  28734. return this.message;
  28735. }
  28736. };
  28737. P.StateError.prototype = {
  28738. toString$0: function(_) {
  28739. return "Bad state: " + this.message;
  28740. },
  28741. get$message: function(receiver) {
  28742. return this.message;
  28743. }
  28744. };
  28745. P.ConcurrentModificationError.prototype = {
  28746. toString$0: function(_) {
  28747. var t1 = this.modifiedObject;
  28748. if (t1 == null)
  28749. return "Concurrent modification during iteration.";
  28750. return "Concurrent modification during iteration: " + P.Error_safeToString(t1) + ".";
  28751. }
  28752. };
  28753. P.OutOfMemoryError.prototype = {
  28754. toString$0: function(_) {
  28755. return "Out of Memory";
  28756. },
  28757. get$stackTrace: function() {
  28758. return null;
  28759. },
  28760. $isError: 1
  28761. };
  28762. P.StackOverflowError.prototype = {
  28763. toString$0: function(_) {
  28764. return "Stack Overflow";
  28765. },
  28766. get$stackTrace: function() {
  28767. return null;
  28768. },
  28769. $isError: 1
  28770. };
  28771. P.CyclicInitializationError.prototype = {
  28772. toString$0: function(_) {
  28773. var variableName = this.variableName;
  28774. return variableName == null ? "Reading static variable during its initialization" : "Reading static variable '" + variableName + "' during its initialization";
  28775. }
  28776. };
  28777. P._Exception.prototype = {
  28778. toString$0: function(_) {
  28779. return "Exception: " + this.message;
  28780. },
  28781. $isException: 1,
  28782. get$message: function(receiver) {
  28783. return this.message;
  28784. }
  28785. };
  28786. P.FormatException.prototype = {
  28787. toString$0: function(_) {
  28788. var t1, lineNum, lineStart, previousCharWasCR, i, char, lineEnd, end, start, prefix, postfix, slice,
  28789. message = this.message,
  28790. report = message != null && "" !== message ? "FormatException: " + H.S(message) : "FormatException",
  28791. offset = this.offset,
  28792. source = this.source;
  28793. if (typeof source == "string") {
  28794. if (offset != null)
  28795. t1 = offset < 0 || offset > source.length;
  28796. else
  28797. t1 = false;
  28798. if (t1)
  28799. offset = null;
  28800. if (offset == null) {
  28801. if (source.length > 78)
  28802. source = C.JSString_methods.substring$2(source, 0, 75) + "...";
  28803. return report + "\n" + source;
  28804. }
  28805. for (lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) {
  28806. char = C.JSString_methods._codeUnitAt$1(source, i);
  28807. if (char === 10) {
  28808. if (lineStart !== i || !previousCharWasCR)
  28809. ++lineNum;
  28810. lineStart = i + 1;
  28811. previousCharWasCR = false;
  28812. } else if (char === 13) {
  28813. ++lineNum;
  28814. lineStart = i + 1;
  28815. previousCharWasCR = true;
  28816. }
  28817. }
  28818. report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n");
  28819. lineEnd = source.length;
  28820. for (i = offset; i < lineEnd; ++i) {
  28821. char = C.JSString_methods.codeUnitAt$1(source, i);
  28822. if (char === 10 || char === 13) {
  28823. lineEnd = i;
  28824. break;
  28825. }
  28826. }
  28827. if (lineEnd - lineStart > 78)
  28828. if (offset - lineStart < 75) {
  28829. end = lineStart + 75;
  28830. start = lineStart;
  28831. prefix = "";
  28832. postfix = "...";
  28833. } else {
  28834. if (lineEnd - offset < 75) {
  28835. start = lineEnd - 75;
  28836. end = lineEnd;
  28837. postfix = "";
  28838. } else {
  28839. start = offset - 36;
  28840. end = offset + 36;
  28841. postfix = "...";
  28842. }
  28843. prefix = "...";
  28844. }
  28845. else {
  28846. end = lineEnd;
  28847. start = lineStart;
  28848. prefix = "";
  28849. postfix = "";
  28850. }
  28851. slice = C.JSString_methods.substring$2(source, start, end);
  28852. return report + prefix + slice + postfix + "\n" + C.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n";
  28853. } else
  28854. return offset != null ? report + (" (at offset " + H.S(offset) + ")") : report;
  28855. },
  28856. $isException: 1,
  28857. get$message: function(receiver) {
  28858. return this.message;
  28859. },
  28860. get$source: function() {
  28861. return this.source;
  28862. }
  28863. };
  28864. P.Function.prototype = {};
  28865. P.int.prototype = {};
  28866. P.Iterable.prototype = {
  28867. cast$1$0: function(_, $R) {
  28868. return H.CastIterable_CastIterable(this, H._instanceType(this)._eval$1("Iterable.E"), $R);
  28869. },
  28870. followedBy$1: function(_, other) {
  28871. var _this = this,
  28872. t1 = H._instanceType(_this);
  28873. if (t1._eval$1("EfficientLengthIterable<Iterable.E>")._is(_this))
  28874. return H.FollowedByIterable_FollowedByIterable$firstEfficient(_this, other, t1._eval$1("Iterable.E"));
  28875. return new H.FollowedByIterable(_this, other, t1._eval$1("FollowedByIterable<Iterable.E>"));
  28876. },
  28877. map$1$1: function(_, f, $T) {
  28878. return H.MappedIterable_MappedIterable(this, f, H._instanceType(this)._eval$1("Iterable.E"), $T);
  28879. },
  28880. where$1: function(_, test) {
  28881. return new H.WhereIterable(this, test, H._instanceType(this)._eval$1("WhereIterable<Iterable.E>"));
  28882. },
  28883. expand$1$1: function(_, f, $T) {
  28884. return new H.ExpandIterable(this, f, H._instanceType(this)._eval$1("@<Iterable.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  28885. },
  28886. contains$1: function(_, element) {
  28887. var t1;
  28888. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  28889. if (J.$eq$(t1.get$current(t1), element))
  28890. return true;
  28891. return false;
  28892. },
  28893. fold$1$2: function(_, initialValue, combine) {
  28894. var t1, value;
  28895. for (t1 = this.get$iterator(this), value = initialValue; t1.moveNext$0();)
  28896. value = combine.call$2(value, t1.get$current(t1));
  28897. return value;
  28898. },
  28899. fold$2: function($receiver, initialValue, combine) {
  28900. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  28901. },
  28902. join$1: function(_, separator) {
  28903. var t1,
  28904. iterator = this.get$iterator(this);
  28905. if (!iterator.moveNext$0())
  28906. return "";
  28907. if (separator === "") {
  28908. t1 = "";
  28909. do
  28910. t1 += H.S(J.toString$0$(iterator.get$current(iterator)));
  28911. while (iterator.moveNext$0());
  28912. } else {
  28913. t1 = H.S(J.toString$0$(iterator.get$current(iterator)));
  28914. for (; iterator.moveNext$0();)
  28915. t1 = t1 + separator + H.S(J.toString$0$(iterator.get$current(iterator)));
  28916. }
  28917. return t1.charCodeAt(0) == 0 ? t1 : t1;
  28918. },
  28919. join$0: function($receiver) {
  28920. return this.join$1($receiver, "");
  28921. },
  28922. any$1: function(_, test) {
  28923. var t1;
  28924. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  28925. if (test.call$1(t1.get$current(t1)))
  28926. return true;
  28927. return false;
  28928. },
  28929. toList$1$growable: function(_, growable) {
  28930. return P.List_List$from(this, growable, H._instanceType(this)._eval$1("Iterable.E"));
  28931. },
  28932. toList$0: function($receiver) {
  28933. return this.toList$1$growable($receiver, true);
  28934. },
  28935. toSet$0: function(_) {
  28936. return P.LinkedHashSet_LinkedHashSet$of(this, H._instanceType(this)._eval$1("Iterable.E"));
  28937. },
  28938. get$length: function(_) {
  28939. var count,
  28940. it = this.get$iterator(this);
  28941. for (count = 0; it.moveNext$0();)
  28942. ++count;
  28943. return count;
  28944. },
  28945. get$isEmpty: function(_) {
  28946. return !this.get$iterator(this).moveNext$0();
  28947. },
  28948. get$isNotEmpty: function(_) {
  28949. return !this.get$isEmpty(this);
  28950. },
  28951. take$1: function(_, count) {
  28952. return H.TakeIterable_TakeIterable(this, count, H._instanceType(this)._eval$1("Iterable.E"));
  28953. },
  28954. skip$1: function(_, count) {
  28955. return H.SkipIterable_SkipIterable(this, count, H._instanceType(this)._eval$1("Iterable.E"));
  28956. },
  28957. skipWhile$1: function(_, test) {
  28958. return new H.SkipWhileIterable(this, test, H._instanceType(this)._eval$1("SkipWhileIterable<Iterable.E>"));
  28959. },
  28960. get$first: function(_) {
  28961. var it = this.get$iterator(this);
  28962. if (!it.moveNext$0())
  28963. throw H.wrapException(H.IterableElementError_noElement());
  28964. return it.get$current(it);
  28965. },
  28966. get$last: function(_) {
  28967. var result,
  28968. it = this.get$iterator(this);
  28969. if (!it.moveNext$0())
  28970. throw H.wrapException(H.IterableElementError_noElement());
  28971. do
  28972. result = it.get$current(it);
  28973. while (it.moveNext$0());
  28974. return result;
  28975. },
  28976. get$single: function(_) {
  28977. var result,
  28978. it = this.get$iterator(this);
  28979. if (!it.moveNext$0())
  28980. throw H.wrapException(H.IterableElementError_noElement());
  28981. result = it.get$current(it);
  28982. if (it.moveNext$0())
  28983. throw H.wrapException(H.IterableElementError_tooMany());
  28984. return result;
  28985. },
  28986. firstWhere$2$orElse: function(_, test, orElse) {
  28987. var t1, element;
  28988. for (t1 = this.get$iterator(this); t1.moveNext$0();) {
  28989. element = t1.get$current(t1);
  28990. if (test.call$1(element))
  28991. return element;
  28992. }
  28993. return orElse.call$0();
  28994. },
  28995. elementAt$1: function(_, index) {
  28996. var t1, elementIndex, element;
  28997. P.RangeError_checkNotNegative(index, "index");
  28998. for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
  28999. element = t1.get$current(t1);
  29000. if (index === elementIndex)
  29001. return element;
  29002. ++elementIndex;
  29003. }
  29004. throw H.wrapException(P.IndexError$(index, this, "index", null, elementIndex));
  29005. },
  29006. toString$0: function(_) {
  29007. return P.IterableBase_iterableToShortString(this, "(", ")");
  29008. }
  29009. };
  29010. P._GeneratorIterable.prototype = {
  29011. elementAt$1: function(_, index) {
  29012. P.RangeError_checkValidIndex(index, this, null);
  29013. return this._generator.call$1(index);
  29014. },
  29015. get$length: function(receiver) {
  29016. return this.length;
  29017. }
  29018. };
  29019. P.Iterator.prototype = {};
  29020. P.List.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1};
  29021. P.Map.prototype = {};
  29022. P.MapEntry.prototype = {
  29023. toString$0: function(_) {
  29024. return "MapEntry(" + H.S(J.toString$0$(this.key)) + ": " + H.S(J.toString$0$(this.value)) + ")";
  29025. }
  29026. };
  29027. P.Null.prototype = {
  29028. get$hashCode: function(_) {
  29029. return P.Object.prototype.get$hashCode.call(C.JSNull_methods, this);
  29030. },
  29031. toString$0: function(_) {
  29032. return "null";
  29033. }
  29034. };
  29035. P.num.prototype = {$isComparable: 1};
  29036. P.Object.prototype = {constructor: P.Object, $isObject: 1,
  29037. $eq: function(_, other) {
  29038. return this === other;
  29039. },
  29040. get$hashCode: function(_) {
  29041. return H.Primitives_objectHashCode(this);
  29042. },
  29043. toString$0: function(_) {
  29044. return "Instance of '" + H.S(H.Primitives_objectTypeName(this)) + "'";
  29045. },
  29046. noSuchMethod$1: function(_, invocation) {
  29047. throw H.wrapException(P.NoSuchMethodError$(this, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
  29048. },
  29049. toString: function() {
  29050. return this.toString$0(this);
  29051. }
  29052. };
  29053. P.Match.prototype = {};
  29054. P.RegExpMatch.prototype = {$isMatch: 1};
  29055. P.Set.prototype = {};
  29056. P.StackTrace.prototype = {};
  29057. P._StringStackTrace.prototype = {
  29058. toString$0: function(_) {
  29059. return this._stackTrace;
  29060. },
  29061. $isStackTrace: 1
  29062. };
  29063. P.String.prototype = {$isComparable: 1};
  29064. P.Runes.prototype = {
  29065. get$iterator: function(_) {
  29066. return new P.RuneIterator(this.string);
  29067. },
  29068. get$last: function(_) {
  29069. var code, previousCode,
  29070. t1 = this.string,
  29071. t2 = t1.length;
  29072. if (t2 === 0)
  29073. throw H.wrapException(P.StateError$("No elements."));
  29074. code = C.JSString_methods.codeUnitAt$1(t1, t2 - 1);
  29075. if ((code & 64512) === 56320 && t2 > 1) {
  29076. previousCode = C.JSString_methods.codeUnitAt$1(t1, t2 - 2);
  29077. if ((previousCode & 64512) === 55296)
  29078. return P._combineSurrogatePair(previousCode, code);
  29079. }
  29080. return code;
  29081. }
  29082. };
  29083. P.RuneIterator.prototype = {
  29084. get$current: function(_) {
  29085. return this._currentCodePoint;
  29086. },
  29087. moveNext$0: function() {
  29088. var codeUnit, nextPosition, nextCodeUnit, _this = this,
  29089. t1 = _this._position = _this._nextPosition,
  29090. t2 = _this.string,
  29091. t3 = t2.length;
  29092. if (t1 === t3) {
  29093. _this._currentCodePoint = -1;
  29094. return false;
  29095. }
  29096. codeUnit = C.JSString_methods._codeUnitAt$1(t2, t1);
  29097. nextPosition = t1 + 1;
  29098. if ((codeUnit & 64512) === 55296 && nextPosition < t3) {
  29099. nextCodeUnit = C.JSString_methods._codeUnitAt$1(t2, nextPosition);
  29100. if ((nextCodeUnit & 64512) === 56320) {
  29101. _this._nextPosition = nextPosition + 1;
  29102. _this._currentCodePoint = P._combineSurrogatePair(codeUnit, nextCodeUnit);
  29103. return true;
  29104. }
  29105. }
  29106. _this._nextPosition = nextPosition;
  29107. _this._currentCodePoint = codeUnit;
  29108. return true;
  29109. }
  29110. };
  29111. P.StringBuffer.prototype = {
  29112. get$length: function(_) {
  29113. return this._contents.length;
  29114. },
  29115. write$1: function(_, obj) {
  29116. this._contents += H.S(obj);
  29117. },
  29118. writeCharCode$1: function(charCode) {
  29119. this._contents += H.Primitives_stringFromCharCode(charCode);
  29120. },
  29121. toString$0: function(_) {
  29122. var t1 = this._contents;
  29123. return t1.charCodeAt(0) == 0 ? t1 : t1;
  29124. }
  29125. };
  29126. P.StringSink.prototype = {};
  29127. P.Symbol0.prototype = {};
  29128. P.Uri.prototype = {};
  29129. P.Uri__parseIPv4Address_error.prototype = {
  29130. call$2: function(msg, position) {
  29131. throw H.wrapException(P.FormatException$("Illegal IPv4 address, " + msg, this.host, position));
  29132. }
  29133. };
  29134. P.Uri_parseIPv6Address_error.prototype = {
  29135. call$2: function(msg, position) {
  29136. throw H.wrapException(P.FormatException$("Illegal IPv6 address, " + msg, this.host, position));
  29137. },
  29138. call$1: function(msg) {
  29139. return this.call$2(msg, null);
  29140. }
  29141. };
  29142. P.Uri_parseIPv6Address_parseHex.prototype = {
  29143. call$2: function(start, end) {
  29144. var value;
  29145. if (end - start > 4)
  29146. this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
  29147. value = P.int_parse(C.JSString_methods.substring$2(this.host, start, end), 16);
  29148. if (value < 0 || value > 65535)
  29149. this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start);
  29150. return value;
  29151. }
  29152. };
  29153. P._Uri.prototype = {
  29154. get$_text: function() {
  29155. var t2, t3, t4, _this = this,
  29156. t1 = _this.___Uri__text;
  29157. if (t1 == null) {
  29158. t1 = _this.scheme;
  29159. t2 = t1.length !== 0 ? t1 + ":" : "";
  29160. t3 = _this._host;
  29161. t4 = t3 == null;
  29162. if (!t4 || t1 === "file") {
  29163. t1 = t2 + "//";
  29164. t2 = _this._userInfo;
  29165. if (t2.length !== 0)
  29166. t1 = t1 + t2 + "@";
  29167. if (!t4)
  29168. t1 += t3;
  29169. t2 = _this._port;
  29170. if (t2 != null)
  29171. t1 = t1 + ":" + H.S(t2);
  29172. } else
  29173. t1 = t2;
  29174. t1 += _this.path;
  29175. t2 = _this._query;
  29176. if (t2 != null)
  29177. t1 = t1 + "?" + t2;
  29178. t2 = _this._fragment;
  29179. if (t2 != null)
  29180. t1 = t1 + "#" + t2;
  29181. t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
  29182. if (_this.___Uri__text == null)
  29183. _this.___Uri__text = t1;
  29184. else
  29185. t1 = H.throwExpression(H.LateInitializationErrorImpl$("Field '_text' has been assigned during initialization."));
  29186. }
  29187. return t1;
  29188. },
  29189. get$pathSegments: function() {
  29190. var pathToSplit, _this = this,
  29191. t1 = _this.___Uri_pathSegments;
  29192. if (t1 == null) {
  29193. pathToSplit = _this.path;
  29194. if (pathToSplit.length !== 0 && C.JSString_methods._codeUnitAt$1(pathToSplit, 0) === 47)
  29195. pathToSplit = C.JSString_methods.substring$1(pathToSplit, 1);
  29196. t1 = pathToSplit.length === 0 ? C.List_empty : P.List_List$unmodifiable(new H.MappedListIterable(H.setRuntimeTypeInfo(pathToSplit.split("/"), type$.JSArray_String), P.core_Uri_decodeComponent$closure(), type$.MappedListIterable_String_dynamic), type$.String);
  29197. if (_this.___Uri_pathSegments == null)
  29198. _this.___Uri_pathSegments = t1;
  29199. else
  29200. t1 = H.throwExpression(H.LateInitializationErrorImpl$("Field 'pathSegments' has been assigned during initialization."));
  29201. }
  29202. return t1;
  29203. },
  29204. get$hashCode: function(_) {
  29205. var _this = this,
  29206. t1 = _this.___Uri_hashCode;
  29207. if (t1 == null) {
  29208. t1 = C.JSString_methods.get$hashCode(_this.get$_text());
  29209. if (_this.___Uri_hashCode == null)
  29210. _this.___Uri_hashCode = t1;
  29211. else
  29212. t1 = H.throwExpression(H.LateInitializationErrorImpl$("Field 'hashCode' has been assigned during initialization."));
  29213. }
  29214. return t1;
  29215. },
  29216. get$userInfo: function() {
  29217. return this._userInfo;
  29218. },
  29219. get$host: function() {
  29220. var host = this._host;
  29221. if (host == null)
  29222. return "";
  29223. if (C.JSString_methods.startsWith$1(host, "["))
  29224. return C.JSString_methods.substring$2(host, 1, host.length - 1);
  29225. return host;
  29226. },
  29227. get$port: function() {
  29228. var t1 = this._port;
  29229. return t1 == null ? P._Uri__defaultPort(this.scheme) : t1;
  29230. },
  29231. get$query: function() {
  29232. var t1 = this._query;
  29233. return t1 == null ? "" : t1;
  29234. },
  29235. get$fragment: function() {
  29236. var t1 = this._fragment;
  29237. return t1 == null ? "" : t1;
  29238. },
  29239. _mergePaths$2: function(base, reference) {
  29240. var backCount, refStart, baseEnd, newEnd, delta, t1;
  29241. for (backCount = 0, refStart = 0; C.JSString_methods.startsWith$2(reference, "../", refStart);) {
  29242. refStart += 3;
  29243. ++backCount;
  29244. }
  29245. baseEnd = C.JSString_methods.lastIndexOf$1(base, "/");
  29246. while (true) {
  29247. if (!(baseEnd > 0 && backCount > 0))
  29248. break;
  29249. newEnd = C.JSString_methods.lastIndexOf$2(base, "/", baseEnd - 1);
  29250. if (newEnd < 0)
  29251. break;
  29252. delta = baseEnd - newEnd;
  29253. t1 = delta !== 2;
  29254. if (!t1 || delta === 3)
  29255. if (C.JSString_methods.codeUnitAt$1(base, newEnd + 1) === 46)
  29256. t1 = !t1 || C.JSString_methods.codeUnitAt$1(base, newEnd + 2) === 46;
  29257. else
  29258. t1 = false;
  29259. else
  29260. t1 = false;
  29261. if (t1)
  29262. break;
  29263. --backCount;
  29264. baseEnd = newEnd;
  29265. }
  29266. return C.JSString_methods.replaceRange$3(base, baseEnd + 1, null, C.JSString_methods.substring$1(reference, refStart - 3 * backCount));
  29267. },
  29268. resolve$1: function(reference) {
  29269. return this.resolveUri$1(P.Uri_parse(reference));
  29270. },
  29271. resolveUri$1: function(reference) {
  29272. var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, t1, mergedPath, t2, _this = this, _null = null;
  29273. if (reference.get$scheme().length !== 0) {
  29274. targetScheme = reference.get$scheme();
  29275. if (reference.get$hasAuthority()) {
  29276. targetUserInfo = reference.get$userInfo();
  29277. targetHost = reference.get$host();
  29278. targetPort = reference.get$hasPort() ? reference.get$port() : _null;
  29279. } else {
  29280. targetPort = _null;
  29281. targetHost = targetPort;
  29282. targetUserInfo = "";
  29283. }
  29284. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  29285. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  29286. } else {
  29287. targetScheme = _this.scheme;
  29288. if (reference.get$hasAuthority()) {
  29289. targetUserInfo = reference.get$userInfo();
  29290. targetHost = reference.get$host();
  29291. targetPort = P._Uri__makePort(reference.get$hasPort() ? reference.get$port() : _null, targetScheme);
  29292. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  29293. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  29294. } else {
  29295. targetUserInfo = _this._userInfo;
  29296. targetHost = _this._host;
  29297. targetPort = _this._port;
  29298. if (reference.get$path(reference) === "") {
  29299. targetPath = _this.path;
  29300. targetQuery = reference.get$hasQuery() ? reference.get$query() : _this._query;
  29301. } else {
  29302. if (reference.get$hasAbsolutePath())
  29303. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  29304. else {
  29305. t1 = _this.path;
  29306. if (t1.length === 0)
  29307. if (targetHost == null)
  29308. targetPath = targetScheme.length === 0 ? reference.get$path(reference) : P._Uri__removeDotSegments(reference.get$path(reference));
  29309. else
  29310. targetPath = P._Uri__removeDotSegments("/" + reference.get$path(reference));
  29311. else {
  29312. mergedPath = _this._mergePaths$2(t1, reference.get$path(reference));
  29313. t2 = targetScheme.length === 0;
  29314. if (!t2 || targetHost != null || C.JSString_methods.startsWith$1(t1, "/"))
  29315. targetPath = P._Uri__removeDotSegments(mergedPath);
  29316. else
  29317. targetPath = P._Uri__normalizeRelativePath(mergedPath, !t2 || targetHost != null);
  29318. }
  29319. }
  29320. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  29321. }
  29322. }
  29323. }
  29324. return new P._Uri(targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, reference.get$hasFragment() ? reference.get$fragment() : _null);
  29325. },
  29326. get$hasAuthority: function() {
  29327. return this._host != null;
  29328. },
  29329. get$hasPort: function() {
  29330. return this._port != null;
  29331. },
  29332. get$hasQuery: function() {
  29333. return this._query != null;
  29334. },
  29335. get$hasFragment: function() {
  29336. return this._fragment != null;
  29337. },
  29338. get$hasAbsolutePath: function() {
  29339. return C.JSString_methods.startsWith$1(this.path, "/");
  29340. },
  29341. toFilePath$0: function() {
  29342. var pathSegments, _this = this,
  29343. t1 = _this.scheme;
  29344. if (t1 !== "" && t1 !== "file")
  29345. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a " + t1 + " URI"));
  29346. if (_this.get$query() !== "")
  29347. throw H.wrapException(P.UnsupportedError$(string$.Cannotefq));
  29348. if (_this.get$fragment() !== "")
  29349. throw H.wrapException(P.UnsupportedError$(string$.Cannoteff));
  29350. t1 = $.$get$_Uri__isWindowsCached();
  29351. if (t1)
  29352. t1 = P._Uri__toWindowsFilePath(_this);
  29353. else {
  29354. if (_this._host != null && _this.get$host() !== "")
  29355. H.throwExpression(P.UnsupportedError$(string$.Cannoten));
  29356. pathSegments = _this.get$pathSegments();
  29357. P._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false);
  29358. t1 = P.StringBuffer__writeAll(C.JSString_methods.startsWith$1(_this.path, "/") ? "/" : "", pathSegments, "/");
  29359. t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
  29360. }
  29361. return t1;
  29362. },
  29363. toString$0: function(_) {
  29364. return this.get$_text();
  29365. },
  29366. $eq: function(_, other) {
  29367. var _this = this;
  29368. if (other == null)
  29369. return false;
  29370. if (_this === other)
  29371. return true;
  29372. return type$.Uri._is(other) && _this.scheme === other.get$scheme() && _this._host != null === other.get$hasAuthority() && _this._userInfo === other.get$userInfo() && _this.get$host() === other.get$host() && _this.get$port() === other.get$port() && _this.path === other.get$path(other) && _this._query != null === other.get$hasQuery() && _this.get$query() === other.get$query() && _this._fragment != null === other.get$hasFragment() && _this.get$fragment() === other.get$fragment();
  29373. },
  29374. $isUri: 1,
  29375. get$scheme: function() {
  29376. return this.scheme;
  29377. },
  29378. get$path: function(receiver) {
  29379. return this.path;
  29380. }
  29381. };
  29382. P._Uri__makePath_closure.prototype = {
  29383. call$1: function(s) {
  29384. return P._Uri__uriEncode(C.List_qg40, s, C.C_Utf8Codec, false);
  29385. }
  29386. };
  29387. P.UriData.prototype = {
  29388. get$uri: function() {
  29389. var t2, queryIndex, end, query, _this = this, _null = null,
  29390. t1 = _this._uriCache;
  29391. if (t1 == null) {
  29392. t1 = _this._text;
  29393. t2 = _this._separatorIndices[0] + 1;
  29394. queryIndex = C.JSString_methods.indexOf$2(t1, "?", t2);
  29395. end = t1.length;
  29396. if (queryIndex >= 0) {
  29397. query = P._Uri__normalizeOrSubstring(t1, queryIndex + 1, end, C.List_CVk, false);
  29398. end = queryIndex;
  29399. } else
  29400. query = _null;
  29401. t1 = _this._uriCache = new P._DataUri("data", "", _null, _null, P._Uri__normalizeOrSubstring(t1, t2, end, C.List_qg4, false), query, _null);
  29402. }
  29403. return t1;
  29404. },
  29405. toString$0: function(_) {
  29406. var t1 = this._text;
  29407. return this._separatorIndices[0] === -1 ? "data:" + t1 : t1;
  29408. }
  29409. };
  29410. P._createTables_closure.prototype = {
  29411. call$1: function(_) {
  29412. return new Uint8Array(96);
  29413. },
  29414. $signature: 118
  29415. };
  29416. P._createTables_build.prototype = {
  29417. call$2: function(state, defaultTransition) {
  29418. var t1 = this.tables[state];
  29419. J.fillRange$3$ax(t1, 0, 96, defaultTransition);
  29420. return t1;
  29421. },
  29422. $signature: 112
  29423. };
  29424. P._createTables_setChars.prototype = {
  29425. call$3: function(target, chars, transition) {
  29426. var t1, i;
  29427. for (t1 = chars.length, i = 0; i < t1; ++i)
  29428. target[C.JSString_methods._codeUnitAt$1(chars, i) ^ 96] = transition;
  29429. }
  29430. };
  29431. P._createTables_setRange.prototype = {
  29432. call$3: function(target, range, transition) {
  29433. var i, n;
  29434. for (i = C.JSString_methods._codeUnitAt$1(range, 0), n = C.JSString_methods._codeUnitAt$1(range, 1); i <= n; ++i)
  29435. target[(i ^ 96) >>> 0] = transition;
  29436. }
  29437. };
  29438. P._SimpleUri.prototype = {
  29439. get$hasAuthority: function() {
  29440. return this._hostStart > 0;
  29441. },
  29442. get$hasPort: function() {
  29443. return this._hostStart > 0 && this._portStart + 1 < this._pathStart;
  29444. },
  29445. get$hasQuery: function() {
  29446. return this._queryStart < this._fragmentStart;
  29447. },
  29448. get$hasFragment: function() {
  29449. return this._fragmentStart < this._uri.length;
  29450. },
  29451. get$_isFile: function() {
  29452. return this._schemeEnd === 4 && C.JSString_methods.startsWith$1(this._uri, "file");
  29453. },
  29454. get$_isHttp: function() {
  29455. return this._schemeEnd === 4 && C.JSString_methods.startsWith$1(this._uri, "http");
  29456. },
  29457. get$_isHttps: function() {
  29458. return this._schemeEnd === 5 && C.JSString_methods.startsWith$1(this._uri, "https");
  29459. },
  29460. get$hasAbsolutePath: function() {
  29461. return C.JSString_methods.startsWith$2(this._uri, "/", this._pathStart);
  29462. },
  29463. get$scheme: function() {
  29464. var t1 = this._schemeCache;
  29465. return t1 == null ? this._schemeCache = this._computeScheme$0() : t1;
  29466. },
  29467. _computeScheme$0: function() {
  29468. var _this = this,
  29469. t1 = _this._schemeEnd;
  29470. if (t1 <= 0)
  29471. return "";
  29472. if (_this.get$_isHttp())
  29473. return "http";
  29474. if (_this.get$_isHttps())
  29475. return "https";
  29476. if (_this.get$_isFile())
  29477. return "file";
  29478. if (t1 === 7 && C.JSString_methods.startsWith$1(_this._uri, "package"))
  29479. return "package";
  29480. return C.JSString_methods.substring$2(_this._uri, 0, t1);
  29481. },
  29482. get$userInfo: function() {
  29483. var t1 = this._hostStart,
  29484. t2 = this._schemeEnd + 3;
  29485. return t1 > t2 ? C.JSString_methods.substring$2(this._uri, t2, t1 - 1) : "";
  29486. },
  29487. get$host: function() {
  29488. var t1 = this._hostStart;
  29489. return t1 > 0 ? C.JSString_methods.substring$2(this._uri, t1, this._portStart) : "";
  29490. },
  29491. get$port: function() {
  29492. var _this = this;
  29493. if (_this.get$hasPort())
  29494. return P.int_parse(C.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null);
  29495. if (_this.get$_isHttp())
  29496. return 80;
  29497. if (_this.get$_isHttps())
  29498. return 443;
  29499. return 0;
  29500. },
  29501. get$path: function(_) {
  29502. return C.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart);
  29503. },
  29504. get$query: function() {
  29505. var t1 = this._queryStart,
  29506. t2 = this._fragmentStart;
  29507. return t1 < t2 ? C.JSString_methods.substring$2(this._uri, t1 + 1, t2) : "";
  29508. },
  29509. get$fragment: function() {
  29510. var t1 = this._fragmentStart,
  29511. t2 = this._uri;
  29512. return t1 < t2.length ? C.JSString_methods.substring$1(t2, t1 + 1) : "";
  29513. },
  29514. get$pathSegments: function() {
  29515. var parts, i,
  29516. start = this._pathStart,
  29517. end = this._queryStart,
  29518. t1 = this._uri;
  29519. if (C.JSString_methods.startsWith$2(t1, "/", start))
  29520. ++start;
  29521. if (start === end)
  29522. return C.List_empty;
  29523. parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
  29524. for (i = start; i < end; ++i)
  29525. if (C.JSString_methods.codeUnitAt$1(t1, i) === 47) {
  29526. parts.push(C.JSString_methods.substring$2(t1, start, i));
  29527. start = i + 1;
  29528. }
  29529. parts.push(C.JSString_methods.substring$2(t1, start, end));
  29530. return P.List_List$unmodifiable(parts, type$.String);
  29531. },
  29532. _isPort$1: function(port) {
  29533. var portDigitStart = this._portStart + 1;
  29534. return portDigitStart + port.length === this._pathStart && C.JSString_methods.startsWith$2(this._uri, port, portDigitStart);
  29535. },
  29536. removeFragment$0: function() {
  29537. var _this = this,
  29538. t1 = _this._fragmentStart,
  29539. t2 = _this._uri;
  29540. if (t1 >= t2.length)
  29541. return _this;
  29542. return new P._SimpleUri(C.JSString_methods.substring$2(t2, 0, t1), _this._schemeEnd, _this._hostStart, _this._portStart, _this._pathStart, _this._queryStart, t1, _this._schemeCache);
  29543. },
  29544. resolve$1: function(reference) {
  29545. return this.resolveUri$1(P.Uri_parse(reference));
  29546. },
  29547. resolveUri$1: function(reference) {
  29548. if (reference instanceof P._SimpleUri)
  29549. return this._simpleMerge$2(this, reference);
  29550. return this._toNonSimple$0().resolveUri$1(reference);
  29551. },
  29552. _simpleMerge$2: function(base, ref) {
  29553. var t2, t3, isSimple, delta, refStart, baseStart, baseEnd, baseUri, baseStart0, backCount, refStart0, insert,
  29554. t1 = ref._schemeEnd;
  29555. if (t1 > 0)
  29556. return ref;
  29557. t2 = ref._hostStart;
  29558. if (t2 > 0) {
  29559. t3 = base._schemeEnd;
  29560. if (t3 <= 0)
  29561. return ref;
  29562. if (base.get$_isFile())
  29563. isSimple = ref._pathStart !== ref._queryStart;
  29564. else if (base.get$_isHttp())
  29565. isSimple = !ref._isPort$1("80");
  29566. else
  29567. isSimple = !base.get$_isHttps() || !ref._isPort$1("443");
  29568. if (isSimple) {
  29569. delta = t3 + 1;
  29570. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, delta) + C.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);
  29571. } else
  29572. return this._toNonSimple$0().resolveUri$1(ref);
  29573. }
  29574. refStart = ref._pathStart;
  29575. t1 = ref._queryStart;
  29576. if (refStart === t1) {
  29577. t2 = ref._fragmentStart;
  29578. if (t1 < t2) {
  29579. t3 = base._queryStart;
  29580. delta = t3 - t1;
  29581. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(ref._uri, t1), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, t1 + delta, t2 + delta, base._schemeCache);
  29582. }
  29583. t1 = ref._uri;
  29584. if (t2 < t1.length) {
  29585. t3 = base._fragmentStart;
  29586. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(t1, t2), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, base._queryStart, t2 + (t3 - t2), base._schemeCache);
  29587. }
  29588. return base.removeFragment$0();
  29589. }
  29590. t2 = ref._uri;
  29591. if (C.JSString_methods.startsWith$2(t2, "/", refStart)) {
  29592. t3 = base._pathStart;
  29593. delta = t3 - refStart;
  29594. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, t3, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  29595. }
  29596. baseStart = base._pathStart;
  29597. baseEnd = base._queryStart;
  29598. if (baseStart === baseEnd && base._hostStart > 0) {
  29599. for (; C.JSString_methods.startsWith$2(t2, "../", refStart);)
  29600. refStart += 3;
  29601. delta = baseStart - refStart + 1;
  29602. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, baseStart) + "/" + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  29603. }
  29604. baseUri = base._uri;
  29605. for (baseStart0 = baseStart; C.JSString_methods.startsWith$2(baseUri, "../", baseStart0);)
  29606. baseStart0 += 3;
  29607. backCount = 0;
  29608. while (true) {
  29609. refStart0 = refStart + 3;
  29610. if (!(refStart0 <= t1 && C.JSString_methods.startsWith$2(t2, "../", refStart)))
  29611. break;
  29612. ++backCount;
  29613. refStart = refStart0;
  29614. }
  29615. for (insert = ""; baseEnd > baseStart0;) {
  29616. --baseEnd;
  29617. if (C.JSString_methods.codeUnitAt$1(baseUri, baseEnd) === 47) {
  29618. if (backCount === 0) {
  29619. insert = "/";
  29620. break;
  29621. }
  29622. --backCount;
  29623. insert = "/";
  29624. }
  29625. }
  29626. if (baseEnd === baseStart0 && base._schemeEnd <= 0 && !C.JSString_methods.startsWith$2(baseUri, "/", baseStart)) {
  29627. refStart -= backCount * 3;
  29628. insert = "";
  29629. }
  29630. delta = baseEnd - refStart + insert.length;
  29631. return new P._SimpleUri(C.JSString_methods.substring$2(baseUri, 0, baseEnd) + insert + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  29632. },
  29633. toFilePath$0: function() {
  29634. var t1, t2, t3, _this = this;
  29635. if (_this._schemeEnd >= 0 && !_this.get$_isFile())
  29636. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a " + _this.get$scheme() + " URI"));
  29637. t1 = _this._queryStart;
  29638. t2 = _this._uri;
  29639. if (t1 < t2.length) {
  29640. if (t1 < _this._fragmentStart)
  29641. throw H.wrapException(P.UnsupportedError$(string$.Cannotefq));
  29642. throw H.wrapException(P.UnsupportedError$(string$.Cannoteff));
  29643. }
  29644. t3 = $.$get$_Uri__isWindowsCached();
  29645. if (t3)
  29646. t1 = P._Uri__toWindowsFilePath(_this);
  29647. else {
  29648. if (_this._hostStart < _this._portStart)
  29649. H.throwExpression(P.UnsupportedError$(string$.Cannoten));
  29650. t1 = C.JSString_methods.substring$2(t2, _this._pathStart, t1);
  29651. }
  29652. return t1;
  29653. },
  29654. get$hashCode: function(_) {
  29655. var t1 = this._hashCodeCache;
  29656. return t1 == null ? this._hashCodeCache = C.JSString_methods.get$hashCode(this._uri) : t1;
  29657. },
  29658. $eq: function(_, other) {
  29659. if (other == null)
  29660. return false;
  29661. if (this === other)
  29662. return true;
  29663. return type$.Uri._is(other) && this._uri === other.toString$0(0);
  29664. },
  29665. _toNonSimple$0: function() {
  29666. var _this = this, _null = null,
  29667. t1 = _this.get$scheme(),
  29668. t2 = _this.get$userInfo(),
  29669. t3 = _this._hostStart > 0 ? _this.get$host() : _null,
  29670. t4 = _this.get$hasPort() ? _this.get$port() : _null,
  29671. t5 = _this._uri,
  29672. t6 = _this._queryStart,
  29673. t7 = C.JSString_methods.substring$2(t5, _this._pathStart, t6),
  29674. t8 = _this._fragmentStart;
  29675. t6 = t6 < t8 ? _this.get$query() : _null;
  29676. return new P._Uri(t1, t2, t3, t4, t7, t6, t8 < t5.length ? _this.get$fragment() : _null);
  29677. },
  29678. toString$0: function(_) {
  29679. return this._uri;
  29680. },
  29681. $isUri: 1
  29682. };
  29683. P._DataUri.prototype = {};
  29684. P._JSRandom.prototype = {
  29685. nextInt$1: function(max) {
  29686. if (max <= 0 || max > 4294967296)
  29687. throw H.wrapException(P.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max));
  29688. return Math.random() * max >>> 0;
  29689. },
  29690. nextDouble$0: function() {
  29691. return Math.random();
  29692. }
  29693. };
  29694. P.Uint8List.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1};
  29695. N.ArgParser.prototype = {
  29696. addFlag$6$abbr$defaultsTo$help$hide$negatable: function($name, abbr, defaultsTo, help, hide, negatable) {
  29697. var _null = null;
  29698. this._addOption$11$hide$negatable($name, abbr, help, _null, _null, _null, defaultsTo, _null, C.OptionType_nMZ, hide, negatable);
  29699. },
  29700. addFlag$2$hide: function($name, hide) {
  29701. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, null, hide, true);
  29702. },
  29703. addFlag$2$help: function($name, help) {
  29704. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, true);
  29705. },
  29706. addFlag$3$defaultsTo$help: function($name, defaultsTo, help) {
  29707. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, defaultsTo, help, false, true);
  29708. },
  29709. addFlag$3$help$negatable: function($name, help, negatable) {
  29710. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, negatable);
  29711. },
  29712. addFlag$4$abbr$help$negatable: function($name, abbr, help, negatable) {
  29713. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, negatable);
  29714. },
  29715. addFlag$3$abbr$help: function($name, abbr, help) {
  29716. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, true);
  29717. },
  29718. addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp: function($name, abbr, allowed, defaultsTo, help, hide, valueHelp) {
  29719. this._addOption$11$hide$splitCommas($name, abbr, help, valueHelp, allowed, null, defaultsTo, null, C.OptionType_YwU, hide, null);
  29720. },
  29721. addOption$2$hide: function($name, hide) {
  29722. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, null, null, null, hide, null);
  29723. },
  29724. addOption$6$abbr$allowed$defaultsTo$help$valueHelp: function($name, abbr, allowed, defaultsTo, help, valueHelp) {
  29725. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, false, valueHelp);
  29726. },
  29727. addOption$4$allowed$defaultsTo$help: function($name, allowed, defaultsTo, help) {
  29728. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, allowed, defaultsTo, help, false, null);
  29729. },
  29730. addMultiOption$5$abbr$help$splitCommas$valueHelp: function($name, abbr, help, splitCommas, valueHelp) {
  29731. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  29732. this._addOption$11$hide$splitCommas($name, abbr, help, valueHelp, null, null, t1, null, C.OptionType_qyr, false, false);
  29733. },
  29734. _addOption$12$hide$negatable$splitCommas: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable, splitCommas) {
  29735. var t2, existing, t3, option,
  29736. t1 = this._arg_parser$_options;
  29737. if (t1.containsKey$1($name))
  29738. throw H.wrapException(P.ArgumentError$('Duplicate option "' + $name + '".'));
  29739. t2 = abbr != null;
  29740. if (t2) {
  29741. existing = this.findByAbbreviation$1(abbr);
  29742. if (existing != null)
  29743. throw H.wrapException(P.ArgumentError$('Abbreviation "' + abbr + '" is already used by "' + existing.name + '".'));
  29744. }
  29745. t3 = allowed == null ? null : P.List_List$unmodifiable(allowed, type$.legacy_String);
  29746. option = new G.Option($name, abbr, help, valueHelp, t3, null, defaultsTo, negatable, callback, type, splitCommas == null ? type === C.OptionType_qyr : splitCommas, hide);
  29747. if ($name.length === 0)
  29748. H.throwExpression(P.ArgumentError$("Name cannot be empty."));
  29749. else if (C.JSString_methods.startsWith$1($name, "-"))
  29750. H.throwExpression(P.ArgumentError$("Name " + $name + ' cannot start with "-".'));
  29751. t3 = $.$get$Option__invalidChars()._nativeRegExp;
  29752. if (t3.test($name))
  29753. H.throwExpression(P.ArgumentError$('Name "' + $name + '" contains invalid characters.'));
  29754. if (t2) {
  29755. if (abbr.length !== 1)
  29756. H.throwExpression(P.ArgumentError$("Abbreviation must be null or have length 1."));
  29757. else if (abbr === "-")
  29758. H.throwExpression(P.ArgumentError$('Abbreviation cannot be "-".'));
  29759. if (t3.test(abbr))
  29760. H.throwExpression(P.ArgumentError$("Abbreviation is an invalid character."));
  29761. }
  29762. t1.$indexSet(0, $name, option);
  29763. this._optionsAndSeparators.push(option);
  29764. },
  29765. _addOption$11$hide$splitCommas: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, splitCommas) {
  29766. return this._addOption$12$hide$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, false, splitCommas);
  29767. },
  29768. _addOption$11$hide$negatable: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable) {
  29769. return this._addOption$12$hide$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable, null);
  29770. },
  29771. findByAbbreviation$1: function(abbr) {
  29772. return this.options._collection$_map.get$values().firstWhere$2$orElse(0, new N.ArgParser_findByAbbreviation_closure(abbr), new N.ArgParser_findByAbbreviation_closure0());
  29773. }
  29774. };
  29775. N.ArgParser_findByAbbreviation_closure.prototype = {
  29776. call$1: function(option) {
  29777. return option.abbr === this.abbr;
  29778. }
  29779. };
  29780. N.ArgParser_findByAbbreviation_closure0.prototype = {
  29781. call$0: function() {
  29782. return null;
  29783. },
  29784. $signature: 0
  29785. };
  29786. Z.ArgParserException.prototype = {};
  29787. V.ArgResults.prototype = {
  29788. $index: function(_, $name) {
  29789. var t1 = this._parser.options._collection$_map;
  29790. if (!t1.containsKey$1($name))
  29791. throw H.wrapException(P.ArgumentError$('Could not find an option named "' + $name + '".'));
  29792. return t1.$index(0, $name).getOrDefault$1(this._parsed.$index(0, $name));
  29793. },
  29794. wasParsed$1: function($name) {
  29795. if (this._parser.options._collection$_map.$index(0, $name) == null)
  29796. throw H.wrapException(P.ArgumentError$('Could not find an option named "' + H.S($name) + '".'));
  29797. return this._parsed.containsKey$1($name);
  29798. }
  29799. };
  29800. G.Option.prototype = {
  29801. getOrDefault$1: function(value) {
  29802. var t1;
  29803. if (value != null)
  29804. return value;
  29805. if (this.type === C.OptionType_qyr) {
  29806. t1 = this.defaultsTo;
  29807. return t1 == null ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_String) : t1;
  29808. }
  29809. return this.defaultsTo;
  29810. }
  29811. };
  29812. G.OptionType.prototype = {};
  29813. G.Parser0.prototype = {
  29814. parse$0: function() {
  29815. var commandName, commandParser, error, t1, t2, t4, t5, t6, t7, t8, t9, command, exception, _i, _this = this,
  29816. t3 = _this.args,
  29817. $arguments = t3.toList$0(0),
  29818. commandResults = null;
  29819. for (t4 = _this.rest, t5 = _this.grammar, t6 = !t5.allowTrailingOptions, t7 = t5.commands; !t3.get$isEmpty(t3);) {
  29820. t8 = t3._collection$_head;
  29821. t9 = t8 === t3._collection$_tail;
  29822. if (t9)
  29823. H.throwExpression(H.IterableElementError_noElement());
  29824. t8 = t3._collection$_table[t8];
  29825. if (t8 === "--") {
  29826. t3.removeFirst$0();
  29827. break;
  29828. }
  29829. if (t9)
  29830. H.throwExpression(H.IterableElementError_noElement());
  29831. command = t7._collection$_map.$index(0, t8);
  29832. if (command != null) {
  29833. if (t4.length !== 0)
  29834. H.throwExpression(Z.ArgParserException$("Cannot specify arguments before a command.", null));
  29835. commandName = t3.removeFirst$0();
  29836. t6 = type$.JSArray_legacy_String;
  29837. t7 = H.setRuntimeTypeInfo([], t6);
  29838. C.JSArray_methods.addAll$1(t7, t4);
  29839. commandParser = new G.Parser0(commandName, _this, command, t3, t7, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.dynamic));
  29840. try {
  29841. commandResults = commandParser.parse$0();
  29842. } catch (exception) {
  29843. t3 = H.unwrapException(exception);
  29844. if (t3 instanceof Z.ArgParserException) {
  29845. error = t3;
  29846. if (commandName == null)
  29847. throw exception;
  29848. t3 = error.message;
  29849. t1 = H.setRuntimeTypeInfo([], t6);
  29850. J.add$1$ax(t1, commandName);
  29851. for (t4 = error.commands, t5 = t4.length, _i = 0; _i < t5; ++_i) {
  29852. t2 = t4[_i];
  29853. J.add$1$ax(t1, t2);
  29854. }
  29855. throw H.wrapException(Z.ArgParserException$(t3, t1));
  29856. } else
  29857. throw exception;
  29858. }
  29859. C.JSArray_methods.set$length(t4, 0);
  29860. break;
  29861. }
  29862. if (_this.parseSoloOption$0())
  29863. continue;
  29864. if (_this.parseAbbreviation$1(_this))
  29865. continue;
  29866. if (_this.parseLongOption$0())
  29867. continue;
  29868. if (t6)
  29869. break;
  29870. t4.push(t3.removeFirst$0());
  29871. }
  29872. t5.options._collection$_map.forEach$1(0, new G.Parser_parse_closure(_this));
  29873. C.JSArray_methods.addAll$1(t4, t3);
  29874. t3.clear$0(0);
  29875. return V.ArgResults$_(t5, _this.results, _this.commandName, commandResults, t4, $arguments);
  29876. },
  29877. readNextArgAsValue$1: function(option) {
  29878. var t1 = this.args,
  29879. t2 = t1.get$isEmpty(t1),
  29880. t3 = 'Missing argument for "' + option.name + '".';
  29881. if (t2)
  29882. H.throwExpression(Z.ArgParserException$(t3, null));
  29883. this.setOption$3(this.results, option, t1.get$first(t1));
  29884. t1.removeFirst$0();
  29885. },
  29886. parseSoloOption$0: function() {
  29887. var opt, option, t2, _this = this,
  29888. t1 = _this.args;
  29889. if (t1.get$first(t1).length !== 2)
  29890. return false;
  29891. if (!J.startsWith$1$s(t1.get$first(t1), "-"))
  29892. return false;
  29893. opt = t1.get$first(t1)[1];
  29894. if (!G._isLetterOrDigit(C.JSString_methods._codeUnitAt$1(opt, 0)))
  29895. return false;
  29896. option = _this.grammar.findByAbbreviation$1(opt);
  29897. if (option == null) {
  29898. t1 = _this.parent;
  29899. t2 = 'Could not find an option or flag "-' + opt + '".';
  29900. if (t1 == null)
  29901. H.throwExpression(Z.ArgParserException$(t2, null));
  29902. return t1.parseSoloOption$0();
  29903. }
  29904. t1.removeFirst$0();
  29905. if (option.type === C.OptionType_nMZ)
  29906. _this.results.$indexSet(0, option.name, true);
  29907. else
  29908. _this.readNextArgAsValue$1(option);
  29909. return true;
  29910. },
  29911. parseAbbreviation$1: function(innermostCommand) {
  29912. var index, t2, t3, lettersAndDigits, rest, c, first, i, i0, _this = this,
  29913. t1 = _this.args;
  29914. if (t1.get$first(t1).length < 2)
  29915. return false;
  29916. if (!J.startsWith$1$s(t1.get$first(t1), "-"))
  29917. return false;
  29918. index = 1;
  29919. while (true) {
  29920. t2 = t1._collection$_head;
  29921. t3 = t2 === t1._collection$_tail;
  29922. if (t3)
  29923. H.throwExpression(H.IterableElementError_noElement());
  29924. t2 = t1._collection$_table[t2];
  29925. if (index < t2.length) {
  29926. if (t3)
  29927. H.throwExpression(H.IterableElementError_noElement());
  29928. t2 = J._codeUnitAt$1$s(t2, index);
  29929. if (!(t2 >= 65 && t2 <= 90))
  29930. if (!(t2 >= 97 && t2 <= 122))
  29931. t2 = t2 >= 48 && t2 <= 57;
  29932. else
  29933. t2 = true;
  29934. else
  29935. t2 = true;
  29936. } else
  29937. t2 = false;
  29938. if (!t2)
  29939. break;
  29940. ++index;
  29941. }
  29942. if (index === 1)
  29943. return false;
  29944. lettersAndDigits = J.substring$2$s(t1.get$first(t1), 1, index);
  29945. rest = J.substring$1$s(t1.get$first(t1), index);
  29946. if (C.JSString_methods.contains$1(rest, "\n") || C.JSString_methods.contains$1(rest, "\r"))
  29947. return false;
  29948. c = C.JSString_methods.substring$2(lettersAndDigits, 0, 1);
  29949. first = _this.grammar.findByAbbreviation$1(c);
  29950. if (first == null) {
  29951. t1 = _this.parent;
  29952. t2 = string$.Could_ + c + '".';
  29953. if (t1 == null)
  29954. H.throwExpression(Z.ArgParserException$(t2, null));
  29955. return t1.parseAbbreviation$1(innermostCommand);
  29956. } else if (first.type !== C.OptionType_nMZ)
  29957. _this.setOption$3(_this.results, first, C.JSString_methods.substring$1(lettersAndDigits, 1) + rest);
  29958. else {
  29959. t2 = 'Option "-' + c + '" is a flag and cannot handle value "' + C.JSString_methods.substring$1(lettersAndDigits, 1) + rest + '".';
  29960. if (rest !== "")
  29961. H.throwExpression(Z.ArgParserException$(t2, null));
  29962. for (t2 = lettersAndDigits.length, i = 0; i < t2; i = i0) {
  29963. i0 = i + 1;
  29964. innermostCommand.parseShortFlag$1(C.JSString_methods.substring$2(lettersAndDigits, i, i0));
  29965. }
  29966. }
  29967. t1.removeFirst$0();
  29968. return true;
  29969. },
  29970. parseShortFlag$1: function(c) {
  29971. var t1, t2,
  29972. option = this.grammar.findByAbbreviation$1(c);
  29973. if (option == null) {
  29974. t1 = this.parent;
  29975. t2 = string$.Could_ + c + '".';
  29976. if (t1 == null)
  29977. H.throwExpression(Z.ArgParserException$(t2, null));
  29978. t1.parseShortFlag$1(c);
  29979. return;
  29980. }
  29981. t1 = option.type;
  29982. t2 = 'Option "-' + c + '" must be a flag to be in a collapsed "-".';
  29983. if (t1 !== C.OptionType_nMZ)
  29984. H.throwExpression(Z.ArgParserException$(t2, null));
  29985. this.results.$indexSet(0, option.name, true);
  29986. },
  29987. parseLongOption$0: function() {
  29988. var index, t2, $name, t3, i, t4, t5, value, option, _this = this, _null = null,
  29989. _s32_ = 'Could not find an option named "',
  29990. t1 = _this.args;
  29991. if (!J.startsWith$1$s(t1.get$first(t1), "--"))
  29992. return false;
  29993. index = J.indexOf$1$asx(t1.get$first(t1), "=");
  29994. t2 = index === -1;
  29995. $name = t2 ? J.substring$1$s(t1.get$first(t1), 2) : J.substring$2$s(t1.get$first(t1), 2, index);
  29996. for (t3 = $name.length, i = 0; i !== t3; ++i) {
  29997. t4 = C.JSString_methods._codeUnitAt$1($name, i);
  29998. if (!(t4 >= 65 && t4 <= 90))
  29999. if (!(t4 >= 97 && t4 <= 122))
  30000. t5 = t4 >= 48 && t4 <= 57;
  30001. else
  30002. t5 = true;
  30003. else
  30004. t5 = true;
  30005. if (!(t5 || t4 === 45 || t4 === 95))
  30006. return false;
  30007. }
  30008. value = t2 ? _null : J.substring$1$s(t1.get$first(t1), index + 1);
  30009. t2 = value != null;
  30010. if (t2)
  30011. t3 = C.JSString_methods.contains$1(value, "\n") || C.JSString_methods.contains$1(value, "\r");
  30012. else
  30013. t3 = false;
  30014. if (t3)
  30015. return false;
  30016. t3 = _this.grammar.options._collection$_map;
  30017. option = t3.$index(0, $name);
  30018. if (option != null) {
  30019. t1.removeFirst$0();
  30020. if (option.type === C.OptionType_nMZ) {
  30021. t1 = 'Flag option "' + $name + '" should not be given a value.';
  30022. if (t2)
  30023. H.throwExpression(Z.ArgParserException$(t1, _null));
  30024. _this.results.$indexSet(0, option.name, true);
  30025. } else if (t2)
  30026. _this.setOption$3(_this.results, option, value);
  30027. else
  30028. _this.readNextArgAsValue$1(option);
  30029. } else if (C.JSString_methods.startsWith$1($name, "no-")) {
  30030. $name = C.JSString_methods.substring$1($name, 3);
  30031. option = t3.$index(0, $name);
  30032. if (option == null) {
  30033. t1 = _this.parent;
  30034. t2 = _s32_ + $name + '".';
  30035. if (t1 == null)
  30036. H.throwExpression(Z.ArgParserException$(t2, _null));
  30037. return t1.parseLongOption$0();
  30038. }
  30039. t1.removeFirst$0();
  30040. t1 = option.type;
  30041. t2 = 'Cannot negate non-flag option "' + $name + '".';
  30042. if (t1 !== C.OptionType_nMZ)
  30043. H.throwExpression(Z.ArgParserException$(t2, _null));
  30044. t1 = option.negatable;
  30045. t2 = 'Cannot negate option "' + $name + '".';
  30046. if (!t1)
  30047. H.throwExpression(Z.ArgParserException$(t2, _null));
  30048. _this.results.$indexSet(0, option.name, false);
  30049. } else {
  30050. t1 = _this.parent;
  30051. t2 = _s32_ + $name + '".';
  30052. if (t1 == null)
  30053. H.throwExpression(Z.ArgParserException$(t2, _null));
  30054. return t1.parseLongOption$0();
  30055. }
  30056. return true;
  30057. },
  30058. setOption$3: function(results, option, value) {
  30059. var list, t1, t2, t3, _i, element;
  30060. if (option.type !== C.OptionType_qyr) {
  30061. this._validateAllowed$2(option, value);
  30062. results.$indexSet(0, option.name, value);
  30063. return;
  30064. }
  30065. list = results.putIfAbsent$2(option.name, new G.Parser_setOption_closure());
  30066. if (option.splitCommas)
  30067. for (t1 = value.split(","), t2 = t1.length, t3 = J.getInterceptor$ax(list), _i = 0; _i < t2; ++_i) {
  30068. element = t1[_i];
  30069. this._validateAllowed$2(option, element);
  30070. t3.add$1(list, element);
  30071. }
  30072. else {
  30073. this._validateAllowed$2(option, value);
  30074. J.add$1$ax(list, value);
  30075. }
  30076. },
  30077. _validateAllowed$2: function(option, value) {
  30078. var t2,
  30079. t1 = option.allowed;
  30080. if (t1 == null)
  30081. return;
  30082. t1 = C.JSArray_methods.contains$1(t1, value);
  30083. t2 = '"' + H.S(value) + '" is not an allowed value for option "' + option.name + '".';
  30084. if (!t1)
  30085. H.throwExpression(Z.ArgParserException$(t2, null));
  30086. }
  30087. };
  30088. G.Parser_parse_closure.prototype = {
  30089. call$2: function($name, option) {
  30090. var t1 = option.callback;
  30091. if (t1 == null)
  30092. return;
  30093. t1.call$1(option.getOrDefault$1(this.$this.results.$index(0, $name)));
  30094. }
  30095. };
  30096. G.Parser_setOption_closure.prototype = {
  30097. call$0: function() {
  30098. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  30099. },
  30100. $signature: 33
  30101. };
  30102. G.Usage.prototype = {
  30103. generate$0: function() {
  30104. var t1, t2, t3, t4, _i, optionOrSeparator, t5, t6, allowedNames, t7, t8, _i0, $name, isDefault, t9, _this = this;
  30105. _this.buffer = new P.StringBuffer("");
  30106. _this.calculateColumnWidths$0();
  30107. for (t1 = _this.optionsAndSeparators, t2 = t1.length, t3 = type$.legacy_Option, t4 = type$.legacy_List_dynamic, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  30108. optionOrSeparator = t1[_i];
  30109. if (typeof optionOrSeparator == "string") {
  30110. t5 = _this.buffer;
  30111. t6 = t5._contents;
  30112. t5._contents = (t6.length !== 0 ? t5._contents = t6 + "\n\n" : t6) + optionOrSeparator;
  30113. _this.newlinesNeeded = 1;
  30114. continue;
  30115. }
  30116. t3._as(optionOrSeparator);
  30117. if (optionOrSeparator.hide)
  30118. continue;
  30119. t5 = optionOrSeparator.abbr;
  30120. _this.write$2(0, 0, t5 == null ? "" : "-" + t5 + ", ");
  30121. _this.write$2(0, 1, _this.getLongOption$1(optionOrSeparator));
  30122. t5 = optionOrSeparator.help;
  30123. if (t5 != null)
  30124. _this.write$2(0, 2, t5);
  30125. t5 = optionOrSeparator.allowedHelp;
  30126. if (t5 != null) {
  30127. allowedNames = J.toList$1$growable$ax(t5.get$keys(), false);
  30128. if (!!allowedNames.immutable$list)
  30129. H.throwExpression(P.UnsupportedError$("sort"));
  30130. t6 = allowedNames.length - 1;
  30131. if (t6 - 0 <= 32)
  30132. H.Sort__insertionSort(allowedNames, 0, t6, J._interceptors_JSArray__compareAny$closure());
  30133. else
  30134. H.Sort__dualPivotQuicksort(allowedNames, 0, t6, J._interceptors_JSArray__compareAny$closure());
  30135. ++_this.newlinesNeeded;
  30136. _this.numHelpLines = _this.currentColumn = 0;
  30137. for (t6 = allowedNames.length, t7 = optionOrSeparator.defaultsTo, t8 = t4._is(t7), _i0 = 0; _i0 < allowedNames.length; allowedNames.length === t6 || (0, H.throwConcurrentModificationError)(allowedNames), ++_i0) {
  30138. $name = allowedNames[_i0];
  30139. isDefault = t8 ? C.JSArray_methods.contains$1(t7, $name) : t7 == null ? $name == null : t7 === $name;
  30140. t9 = " [" + H.S($name) + "]";
  30141. _this.write$2(0, 1, t9 + (isDefault ? " (default)" : ""));
  30142. _this.write$2(0, 2, t5.$index(0, $name));
  30143. }
  30144. ++_this.newlinesNeeded;
  30145. _this.numHelpLines = _this.currentColumn = 0;
  30146. } else if (optionOrSeparator.allowed != null)
  30147. _this.write$2(0, 2, _this.buildAllowedList$1(optionOrSeparator));
  30148. else {
  30149. t5 = optionOrSeparator.type;
  30150. if (t5 === C.OptionType_nMZ) {
  30151. if (optionOrSeparator.defaultsTo === true)
  30152. _this.write$2(0, 2, "(defaults to on)");
  30153. } else if (t5 === C.OptionType_qyr) {
  30154. t5 = optionOrSeparator.defaultsTo;
  30155. if (t5 != null && J.get$isNotEmpty$asx(t5))
  30156. _this.write$2(0, 2, "(defaults to " + J.map$1$ax(t5, new G.Usage_generate_closure()).join$1(0, ", ") + ")");
  30157. } else {
  30158. t5 = optionOrSeparator.defaultsTo;
  30159. if (t5 != null)
  30160. _this.write$2(0, 2, '(defaults to "' + H.S(t5) + '")');
  30161. }
  30162. }
  30163. }
  30164. return J.toString$0$(_this.buffer);
  30165. },
  30166. getLongOption$1: function(option) {
  30167. var t1 = option.name,
  30168. result = option.negatable ? "--[no-]" + t1 : "--" + t1;
  30169. t1 = option.valueHelp;
  30170. return t1 != null ? result + ("=<" + t1 + ">") : result;
  30171. },
  30172. calculateColumnWidths$0: function() {
  30173. var t1, t2, t3, abbr, title, _i, option, t4, t5, t6, allowed, isDefault, t7;
  30174. for (t1 = this.optionsAndSeparators, t2 = t1.length, t3 = type$.legacy_List_dynamic, abbr = 0, title = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  30175. option = t1[_i];
  30176. if (!(option instanceof G.Option))
  30177. continue;
  30178. if (option.hide)
  30179. continue;
  30180. t4 = option.abbr;
  30181. abbr = Math.max(abbr, (t4 == null ? "" : "-" + t4 + ", ").length);
  30182. title = Math.max(title, this.getLongOption$1(option).length);
  30183. t4 = option.allowedHelp;
  30184. if (t4 != null)
  30185. for (t4 = J.get$iterator$ax(t4.get$keys()), t5 = option.defaultsTo, t6 = t3._is(t5); t4.moveNext$0();) {
  30186. allowed = t4.get$current(t4);
  30187. isDefault = t6 ? C.JSArray_methods.contains$1(t5, allowed) : t5 == null ? allowed == null : t5 === allowed;
  30188. t7 = " [" + H.S(allowed) + "]";
  30189. title = Math.max(title, (t7 + (isDefault ? " (default)" : "")).length);
  30190. }
  30191. }
  30192. this.columnWidths = H.setRuntimeTypeInfo([abbr, title + 4], type$.JSArray_legacy_int);
  30193. },
  30194. write$2: function(_, column, text) {
  30195. var t1, _i,
  30196. lines = H.setRuntimeTypeInfo(text.split("\n"), type$.JSArray_String);
  30197. this.columnWidths.length;
  30198. while (true) {
  30199. if (!(lines.length !== 0 && J.trim$0$s(lines[0]) === ""))
  30200. break;
  30201. if (!!lines.fixed$length)
  30202. H.throwExpression(P.UnsupportedError$("removeRange"));
  30203. P.RangeError_checkValidRange(0, 1, lines.length);
  30204. lines.splice(0, 1);
  30205. }
  30206. while (true) {
  30207. t1 = lines.length;
  30208. if (!(t1 !== 0 && J.trim$0$s(lines[t1 - 1]) === ""))
  30209. break;
  30210. lines.pop();
  30211. }
  30212. for (t1 = lines.length, _i = 0; _i < lines.length; lines.length === t1 || (0, H.throwConcurrentModificationError)(lines), ++_i)
  30213. this.writeLine$2(column, lines[_i]);
  30214. },
  30215. writeLine$2: function(column, text) {
  30216. var t1, t2, _this = this;
  30217. for (; t1 = _this.newlinesNeeded, t1 > 0;) {
  30218. _this.buffer._contents += "\n";
  30219. _this.newlinesNeeded = t1 - 1;
  30220. }
  30221. for (; t1 = _this.currentColumn, t1 !== column;) {
  30222. t2 = _this.buffer;
  30223. if (t1 < 2)
  30224. t2._contents += C.JSString_methods.$mul(" ", _this.columnWidths[t1]);
  30225. else
  30226. t2._contents += "\n";
  30227. _this.currentColumn = (_this.currentColumn + 1) % 3;
  30228. }
  30229. t1 = _this.columnWidths;
  30230. t1.length;
  30231. t2 = _this.buffer;
  30232. if (column < 2)
  30233. t2._contents += J.padRight$1$s(text, t1[column]);
  30234. else {
  30235. t2.toString;
  30236. t2._contents += H.S(text);
  30237. }
  30238. _this.currentColumn = (_this.currentColumn + 1) % 3;
  30239. t1 = column === 2;
  30240. if (t1)
  30241. ++_this.newlinesNeeded;
  30242. if (t1)
  30243. ++_this.numHelpLines;
  30244. else
  30245. _this.numHelpLines = 0;
  30246. },
  30247. buildAllowedList$1: function(option) {
  30248. var t2, first, _i, t3, allowed,
  30249. t1 = option.defaultsTo,
  30250. isDefault = type$.legacy_List_dynamic._is(t1) ? C.JSArray_methods.get$contains(t1) : new G.Usage_buildAllowedList_closure(option);
  30251. for (t1 = option.allowed, t2 = t1.length, first = true, _i = 0, t3 = "["; _i < t2; ++_i, first = false) {
  30252. allowed = t1[_i];
  30253. if (!first)
  30254. t3 += ", ";
  30255. t3 += H.S(allowed);
  30256. if (isDefault.call$1(allowed))
  30257. t3 += " (default)";
  30258. }
  30259. t1 = t3 + "]";
  30260. return t1.charCodeAt(0) == 0 ? t1 : t1;
  30261. }
  30262. };
  30263. G.Usage_generate_closure.prototype = {
  30264. call$1: function(value) {
  30265. return '"' + H.S(value) + '"';
  30266. },
  30267. $signature: 188
  30268. };
  30269. G.Usage_buildAllowedList_closure.prototype = {
  30270. call$1: function(value) {
  30271. var t1 = this.option.defaultsTo;
  30272. return value == null ? t1 == null : value === t1;
  30273. },
  30274. $signature: 97
  30275. };
  30276. V.ErrorResult.prototype = {
  30277. complete$1: function(completer) {
  30278. completer.completeError$2(this.error, this.stackTrace);
  30279. },
  30280. get$hashCode: function(_) {
  30281. return (J.get$hashCode$(this.error) ^ J.get$hashCode$(this.stackTrace) ^ 492929599) >>> 0;
  30282. },
  30283. $eq: function(_, other) {
  30284. if (other == null)
  30285. return false;
  30286. return other instanceof V.ErrorResult && J.$eq$(this.error, other.error) && this.stackTrace == other.stackTrace;
  30287. },
  30288. $isResult: 1
  30289. };
  30290. E.Result.prototype = {};
  30291. F.ValueResult.prototype = {
  30292. complete$1: function(completer) {
  30293. completer.complete$1(this.value);
  30294. },
  30295. get$hashCode: function(_) {
  30296. return (J.get$hashCode$(this.value) ^ 842997089) >>> 0;
  30297. },
  30298. $eq: function(_, other) {
  30299. if (other == null)
  30300. return false;
  30301. return other instanceof F.ValueResult && J.$eq$(this.value, other.value);
  30302. },
  30303. $isResult: 1
  30304. };
  30305. Y.StreamCompleter.prototype = {
  30306. setSourceStream$1: function(sourceStream) {
  30307. var t1 = this._stream_completer$_stream;
  30308. if (t1._sourceStream != null)
  30309. throw H.wrapException(P.StateError$("Source stream already set"));
  30310. t1._sourceStream = sourceStream;
  30311. if (t1._stream_completer$_controller != null)
  30312. t1._linkStreamToController$0();
  30313. },
  30314. setError$2: function(error, stackTrace) {
  30315. var t1 = this.$ti._eval$1("1*");
  30316. this.setSourceStream$1(P.Stream_Stream$fromFuture(P.Future_Future$error(error, stackTrace, t1), t1));
  30317. },
  30318. setError$1: function(error) {
  30319. return this.setError$2(error, null);
  30320. }
  30321. };
  30322. Y._CompleterStream.prototype = {
  30323. listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
  30324. var t1, _this = this, _null = null;
  30325. if (_this._stream_completer$_controller == null) {
  30326. t1 = _this._sourceStream;
  30327. if (t1 != null && !t1.get$isBroadcast())
  30328. return _this._sourceStream.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError);
  30329. _this._stream_completer$_controller = P.StreamController_StreamController(_null, _null, _null, _null, true, _this.$ti._eval$1("1*"));
  30330. if (_this._sourceStream != null)
  30331. _this._linkStreamToController$0();
  30332. }
  30333. t1 = _this._stream_completer$_controller;
  30334. t1.toString;
  30335. return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError);
  30336. },
  30337. listen$3$onDone$onError: function(onData, onDone, onError) {
  30338. return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
  30339. },
  30340. listen$1: function(onData) {
  30341. return this.listen$4$cancelOnError$onDone$onError(onData, null, null, null);
  30342. },
  30343. _linkStreamToController$0: function() {
  30344. var t1 = this._stream_completer$_controller.addStream$2$cancelOnError(this._sourceStream, false),
  30345. t2 = this._stream_completer$_controller;
  30346. t1.whenComplete$1(t2.get$close(t2));
  30347. }
  30348. };
  30349. L.StreamGroup.prototype = {
  30350. add$1: function(_, stream) {
  30351. var t1, _this = this;
  30352. if (_this._closed)
  30353. throw H.wrapException(P.StateError$("Can't add a Stream to a closed StreamGroup."));
  30354. t1 = _this._stream_group$_state;
  30355. if (t1 === C._StreamGroupState_dormant)
  30356. _this._subscriptions.putIfAbsent$2(stream, new L.StreamGroup_add_closure());
  30357. else if (t1 === C._StreamGroupState_canceled)
  30358. return stream.listen$1(null).cancel$0();
  30359. else
  30360. _this._subscriptions.putIfAbsent$2(stream, new L.StreamGroup_add_closure0(_this, stream));
  30361. return null;
  30362. },
  30363. remove$1: function(_, stream) {
  30364. var t1 = this._subscriptions,
  30365. subscription = t1.remove$1(0, stream),
  30366. future = subscription == null ? null : subscription.cancel$0();
  30367. if (this._closed && t1.get$isEmpty(t1))
  30368. this._controller.close$0(0);
  30369. return future;
  30370. },
  30371. _onListen$0: function() {
  30372. this._stream_group$_state = C._StreamGroupState_listening;
  30373. this._subscriptions.forEach$1(0, new L.StreamGroup__onListen_closure(this));
  30374. },
  30375. _onPause$0: function() {
  30376. this._stream_group$_state = C._StreamGroupState_paused;
  30377. for (var t1 = this._subscriptions.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  30378. t1.get$current(t1).pause$0(0);
  30379. },
  30380. _onResume$0: function() {
  30381. this._stream_group$_state = C._StreamGroupState_listening;
  30382. for (var t1 = this._subscriptions.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  30383. t1.get$current(t1).resume$0();
  30384. },
  30385. _onCancel$0: function() {
  30386. var t1, t2, t3, futures;
  30387. this._stream_group$_state = C._StreamGroupState_canceled;
  30388. t1 = this._subscriptions;
  30389. t2 = t1.get$values();
  30390. t2 = H.MappedIterable_MappedIterable(t2, new L.StreamGroup__onCancel_closure(), H._instanceType(t2)._eval$1("Iterable.E"), type$.legacy_Future_void);
  30391. t3 = H._instanceType(t2)._eval$1("WhereIterable<Iterable.E>");
  30392. futures = P.List_List$from(new H.WhereIterable(t2, new L.StreamGroup__onCancel_closure0(), t3), true, t3._eval$1("Iterable.E"));
  30393. t1.clear$0(0);
  30394. return futures.length === 0 ? null : P.Future_wait(futures, type$.void);
  30395. },
  30396. _listenToStream$1: function(stream) {
  30397. var t1 = this._controller,
  30398. subscription = stream.listen$3$onDone$onError(t1.get$add(t1), new L.StreamGroup__listenToStream_closure(this, stream), t1.get$addError());
  30399. if (this._stream_group$_state === C._StreamGroupState_paused)
  30400. subscription.pause$0(0);
  30401. return subscription;
  30402. }
  30403. };
  30404. L.StreamGroup_add_closure.prototype = {
  30405. call$0: function() {
  30406. return null;
  30407. },
  30408. $signature: 0
  30409. };
  30410. L.StreamGroup_add_closure0.prototype = {
  30411. call$0: function() {
  30412. return this.$this._listenToStream$1(this.stream);
  30413. },
  30414. $signature: function() {
  30415. return this.$this.$ti._eval$1("StreamSubscription<1*>*()");
  30416. }
  30417. };
  30418. L.StreamGroup__onListen_closure.prototype = {
  30419. call$2: function(stream, subscription) {
  30420. var t1;
  30421. if (subscription != null)
  30422. return;
  30423. t1 = this.$this;
  30424. t1._subscriptions.$indexSet(0, stream, t1._listenToStream$1(stream));
  30425. }
  30426. };
  30427. L.StreamGroup__onCancel_closure.prototype = {
  30428. call$1: function(subscription) {
  30429. return subscription.cancel$0();
  30430. }
  30431. };
  30432. L.StreamGroup__onCancel_closure0.prototype = {
  30433. call$1: function(future) {
  30434. return future != null;
  30435. }
  30436. };
  30437. L.StreamGroup__listenToStream_closure.prototype = {
  30438. call$0: function() {
  30439. return this.$this.remove$1(0, this.stream);
  30440. },
  30441. "call*": "call$0",
  30442. $requiredArgCount: 0,
  30443. $signature: 91
  30444. };
  30445. L._StreamGroupState.prototype = {
  30446. toString$0: function(_) {
  30447. return this.name;
  30448. }
  30449. };
  30450. G.StreamQueue.prototype = {
  30451. get$next: function() {
  30452. var t1 = this.$ti,
  30453. t2 = new P._Future($.Zone__current, t1._eval$1("_Future<1*>"));
  30454. this._addRequest$1(new G._NextRequest(new P._AsyncCompleter(t2, t1._eval$1("_AsyncCompleter<1*>")), t1._eval$1("_NextRequest<1*>")));
  30455. return t2;
  30456. },
  30457. _updateRequests$0: function() {
  30458. var t1, t2, t3, _this = this;
  30459. for (t1 = _this._requestQueue, t2 = _this._eventQueue; !t1.get$isEmpty(t1);) {
  30460. t3 = t1._collection$_head;
  30461. if (t3 === t1._collection$_tail)
  30462. H.throwExpression(H.IterableElementError_noElement());
  30463. if (t1._collection$_table[t3].update$2(t2, _this._isDone))
  30464. t1.removeFirst$0();
  30465. else
  30466. return;
  30467. }
  30468. if (!_this._isDone)
  30469. _this._stream_queue$_subscription.pause$0(0);
  30470. },
  30471. _ensureListening$0: function() {
  30472. var t1, _this = this;
  30473. if (_this._isDone)
  30474. return;
  30475. t1 = _this._stream_queue$_subscription;
  30476. if (t1 == null)
  30477. _this._stream_queue$_subscription = _this._stream_queue$_source.listen$3$onDone$onError(new G.StreamQueue__ensureListening_closure(_this), new G.StreamQueue__ensureListening_closure0(_this), new G.StreamQueue__ensureListening_closure1(_this));
  30478. else
  30479. t1.resume$0();
  30480. },
  30481. _addResult$1: function(result) {
  30482. ++this._eventsReceived;
  30483. this._eventQueue._queue_list$_add$1(result);
  30484. this._updateRequests$0();
  30485. },
  30486. _addRequest$1: function(request) {
  30487. var _this = this,
  30488. t1 = _this._requestQueue;
  30489. if (t1._collection$_head === t1._collection$_tail) {
  30490. if (request.update$2(_this._eventQueue, _this._isDone))
  30491. return;
  30492. _this._ensureListening$0();
  30493. }
  30494. t1._add$1(request);
  30495. }
  30496. };
  30497. G.StreamQueue__ensureListening_closure.prototype = {
  30498. call$1: function(data) {
  30499. var t1 = this.$this;
  30500. t1._addResult$1(new F.ValueResult(data, t1.$ti._eval$1("ValueResult<1*>")));
  30501. },
  30502. $signature: function() {
  30503. return this.$this.$ti._eval$1("Null(1*)");
  30504. }
  30505. };
  30506. G.StreamQueue__ensureListening_closure1.prototype = {
  30507. call$2: function(error, stackTrace) {
  30508. this.$this._addResult$1(new V.ErrorResult(error, stackTrace));
  30509. },
  30510. "call*": "call$2",
  30511. $requiredArgCount: 2,
  30512. $signature: 81
  30513. };
  30514. G.StreamQueue__ensureListening_closure0.prototype = {
  30515. call$0: function() {
  30516. var t1 = this.$this;
  30517. t1._stream_queue$_subscription = null;
  30518. t1._isDone = true;
  30519. t1._updateRequests$0();
  30520. },
  30521. "call*": "call$0",
  30522. $requiredArgCount: 0,
  30523. $signature: 0
  30524. };
  30525. G._EventRequest.prototype = {};
  30526. G._NextRequest.prototype = {
  30527. update$2: function(events, isDone) {
  30528. if (!events.get$isEmpty(events)) {
  30529. events.removeFirst$0().complete$1(this._completer);
  30530. return true;
  30531. }
  30532. if (isDone) {
  30533. this._completer.completeError$2(new P.StateError("No elements"), P.StackTrace_current());
  30534. return true;
  30535. }
  30536. return false;
  30537. },
  30538. $is_EventRequest: 1
  30539. };
  30540. Q.Repl.prototype = {};
  30541. Q.closure104.prototype = {
  30542. call$1: function(text) {
  30543. return true;
  30544. }
  30545. };
  30546. B.ReplAdapter.prototype = {
  30547. runAsync$0: function() {
  30548. var $async$runAsync$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  30549. switch ($async$errorCode) {
  30550. case 2:
  30551. $async$next = $async$nextWhenCanceled;
  30552. $async$goto = $async$next.pop();
  30553. break;
  30554. case 1:
  30555. $async$currentError = $async$result;
  30556. $async$goto = $async$handler;
  30557. }
  30558. while (true)
  30559. switch ($async$goto) {
  30560. case 0:
  30561. // Function start
  30562. t1 = J.get$isTTY$x(self.process.stdin);
  30563. output = (t1 == null ? false : t1) ? self.process.stdout : null;
  30564. t1 = $async$self.repl;
  30565. $prompt = t1.prompt;
  30566. $async$self.rl = J.createInterface$1$x($.$get$readline(), {input: self.process.stdin, output: output, prompt: $prompt});
  30567. controller = P.StreamController_StreamController(null, null, null, null, false, type$.legacy_String);
  30568. queue = new G.StreamQueue(new P._ControllerStream(controller, H._instanceType(controller)._eval$1("_ControllerStream<1>")), Q.QueueList$(null, type$.legacy_Result_legacy_String), P.ListQueue$(type$.legacy__EventRequest_dynamic), type$.StreamQueue_legacy_String);
  30569. J.on$2$x($async$self.rl, "line", P.allowInterop(new B.ReplAdapter_runAsync_closure(controller)));
  30570. prompt0 = t1.continuation, prompt1 = $prompt, statement = "";
  30571. case 3:
  30572. // for condition
  30573. // trivial condition
  30574. t2 = J.get$isTTY$x(self.process.stdin);
  30575. if (t2 == null ? false : t2)
  30576. J.write$1$x(self.process.stdout, prompt1);
  30577. $async$goto = 5;
  30578. return P._asyncStarHelper(queue.get$next(), $async$runAsync$0, $async$controller);
  30579. case 5:
  30580. // returning from await.
  30581. line = $async$result;
  30582. t2 = J.get$isTTY$x(self.process.stdin);
  30583. if (!(t2 == null ? false : t2)) {
  30584. line0 = prompt1 + H.S(line);
  30585. toZone = $.printToZone;
  30586. if (toZone == null)
  30587. H.printString(line0);
  30588. else
  30589. toZone.call$1(line0);
  30590. }
  30591. statement = C.JSString_methods.$add(statement, line);
  30592. $async$goto = t1.validator.call$1(statement) ? 6 : 8;
  30593. break;
  30594. case 6:
  30595. // then
  30596. $async$goto = 9;
  30597. $async$nextWhenCanceled = [1];
  30598. return P._asyncStarHelper(P._IterationMarker_yieldSingle(statement), $async$runAsync$0, $async$controller);
  30599. case 9:
  30600. // after yield
  30601. J.setPrompt$1$x($async$self.rl, $prompt);
  30602. prompt1 = $prompt;
  30603. statement = "";
  30604. // goto join
  30605. $async$goto = 7;
  30606. break;
  30607. case 8:
  30608. // else
  30609. statement += "\n";
  30610. J.setPrompt$1$x($async$self.rl, prompt0);
  30611. prompt1 = prompt0;
  30612. case 7:
  30613. // join
  30614. // goto for condition
  30615. $async$goto = 3;
  30616. break;
  30617. case 4:
  30618. // after for
  30619. case 1:
  30620. // return
  30621. return P._asyncStarHelper(null, 0, $async$controller);
  30622. case 2:
  30623. // rethrow
  30624. return P._asyncStarHelper($async$currentError, 1, $async$controller);
  30625. }
  30626. });
  30627. var $async$goto = 0,
  30628. $async$controller = P._makeAsyncStarStreamController($async$runAsync$0, type$.legacy_String),
  30629. $async$nextWhenCanceled, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $prompt, controller, queue, prompt0, prompt1, statement, t2, line, line0, toZone, t1, output;
  30630. return P._streamOfController($async$controller);
  30631. }
  30632. };
  30633. B.ReplAdapter_runAsync_closure.prototype = {
  30634. call$1: function(value) {
  30635. this.controller.add$1(0, value);
  30636. },
  30637. call$0: function() {
  30638. return this.call$1(null);
  30639. },
  30640. "call*": "call$1",
  30641. $requiredArgCount: 0,
  30642. $defaultValues: function() {
  30643. return [null];
  30644. },
  30645. $signature: 60
  30646. };
  30647. B.Stdin.prototype = {};
  30648. B.Stdout.prototype = {};
  30649. B.ReadlineModule.prototype = {};
  30650. B.ReadlineOptions.prototype = {};
  30651. B.ReadlineInterface.prototype = {};
  30652. O.EmptyUnmodifiableSet.prototype = {
  30653. get$iterator: function(_) {
  30654. return C.C_EmptyIterator;
  30655. },
  30656. get$length: function(_) {
  30657. return 0;
  30658. },
  30659. cast$1$0: function(_, $T) {
  30660. return new O.EmptyUnmodifiableSet($T._eval$1("EmptyUnmodifiableSet<0*>"));
  30661. },
  30662. contains$1: function(_, element) {
  30663. return false;
  30664. },
  30665. toSet$0: function(_) {
  30666. return P.LinkedHashSet_LinkedHashSet$_empty(this.$ti._eval$1("1*"));
  30667. },
  30668. add$1: function(_, value) {
  30669. return O.EmptyUnmodifiableSet__throw();
  30670. },
  30671. addAll$1: function(_, elements) {
  30672. return O.EmptyUnmodifiableSet__throw();
  30673. },
  30674. $isEfficientLengthIterable: 1,
  30675. $isSet: 1
  30676. };
  30677. U.DefaultEquality.prototype = {};
  30678. U.IterableEquality.prototype = {
  30679. equals$2: function(elements1, elements2) {
  30680. var it1, it2, hasNext;
  30681. if (elements1 === elements2)
  30682. return true;
  30683. it1 = J.get$iterator$ax(elements1);
  30684. it2 = J.get$iterator$ax(elements2);
  30685. for (; true;) {
  30686. hasNext = it1.moveNext$0();
  30687. if (hasNext !== it2.moveNext$0())
  30688. return false;
  30689. if (!hasNext)
  30690. return true;
  30691. if (!J.$eq$(it1.get$current(it1), it2.get$current(it2)))
  30692. return false;
  30693. }
  30694. }
  30695. };
  30696. U.ListEquality.prototype = {
  30697. equals$2: function(list1, list2) {
  30698. var t1, $length, t2, i;
  30699. if (list1 == null ? list2 == null : list1 === list2)
  30700. return true;
  30701. if (list1 == null || list2 == null)
  30702. return false;
  30703. t1 = J.getInterceptor$asx(list1);
  30704. $length = t1.get$length(list1);
  30705. t2 = J.getInterceptor$asx(list2);
  30706. if ($length !== t2.get$length(list2))
  30707. return false;
  30708. for (i = 0; i < $length; ++i)
  30709. if (!J.$eq$(t1.$index(list1, i), t2.$index(list2, i)))
  30710. return false;
  30711. return true;
  30712. },
  30713. hash$1: function(list) {
  30714. var t1, hash, i;
  30715. for (t1 = list.length, hash = 0, i = 0; i < t1; ++i) {
  30716. hash = hash + J.get$hashCode$(list[i]) & 2147483647;
  30717. hash = hash + (hash << 10 >>> 0) & 2147483647;
  30718. hash ^= hash >>> 6;
  30719. }
  30720. hash = hash + (hash << 3 >>> 0) & 2147483647;
  30721. hash ^= hash >>> 11;
  30722. return hash + (hash << 15 >>> 0) & 2147483647;
  30723. }
  30724. };
  30725. U._MapEntry.prototype = {
  30726. get$hashCode: function(_) {
  30727. return 3 * J.get$hashCode$(this.key) + 7 * J.get$hashCode$(this.value) & 2147483647;
  30728. },
  30729. $eq: function(_, other) {
  30730. if (other == null)
  30731. return false;
  30732. return other instanceof U._MapEntry && J.$eq$(this.key, other.key) && J.$eq$(this.value, other.value);
  30733. }
  30734. };
  30735. U.MapEquality.prototype = {
  30736. equals$2: function(map1, map2) {
  30737. var equalElementCounts, t1, key, entry, count;
  30738. if (map1 === map2)
  30739. return true;
  30740. if (map1.get$length(map1) !== map2.get$length(map2))
  30741. return false;
  30742. equalElementCounts = P.HashMap_HashMap(type$.legacy__MapEntry, type$.legacy_int);
  30743. for (t1 = J.get$iterator$ax(map1.get$keys()); t1.moveNext$0();) {
  30744. key = t1.get$current(t1);
  30745. entry = new U._MapEntry(this, key, map1.$index(0, key));
  30746. count = equalElementCounts.$index(0, entry);
  30747. equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1);
  30748. }
  30749. for (t1 = J.get$iterator$ax(map2.get$keys()); t1.moveNext$0();) {
  30750. key = t1.get$current(t1);
  30751. entry = new U._MapEntry(this, key, map2.$index(0, key));
  30752. count = equalElementCounts.$index(0, entry);
  30753. if (count == null || count === 0)
  30754. return false;
  30755. equalElementCounts.$indexSet(0, entry, count - 1);
  30756. }
  30757. return true;
  30758. },
  30759. hash$1: function(map) {
  30760. var t1, hash, key;
  30761. for (t1 = J.get$iterator$ax(map.get$keys()), hash = 0; t1.moveNext$0();) {
  30762. key = t1.get$current(t1);
  30763. hash = hash + 3 * J.get$hashCode$(key) + 7 * J.get$hashCode$(map.$index(0, key)) & 2147483647;
  30764. }
  30765. hash = hash + (hash << 3 >>> 0) & 2147483647;
  30766. hash ^= hash >>> 11;
  30767. return hash + (hash << 15 >>> 0) & 2147483647;
  30768. }
  30769. };
  30770. Q.QueueList.prototype = {
  30771. QueueList$1: function(initialCapacity, $E) {
  30772. var t1;
  30773. if (initialCapacity == null || initialCapacity < 8)
  30774. initialCapacity = 8;
  30775. else if ((initialCapacity & initialCapacity - 1) >>> 0 !== 0)
  30776. initialCapacity = Q.QueueList__nextPowerOf2(initialCapacity);
  30777. t1 = new Array(initialCapacity);
  30778. t1.fixed$length = Array;
  30779. this._table = H.setRuntimeTypeInfo(t1, $E._eval$1("JSArray<0*>"));
  30780. },
  30781. add$1: function(_, element) {
  30782. this._queue_list$_add$1(element);
  30783. },
  30784. addAll$1: function(_, iterable) {
  30785. var addCount, $length, t1, endSpace, preSpace, _this = this;
  30786. if (type$.legacy_List_dynamic._is(iterable)) {
  30787. addCount = J.get$length$asx(iterable);
  30788. $length = _this.get$length(_this);
  30789. t1 = $length + addCount;
  30790. if (t1 >= J.get$length$asx(_this._table)) {
  30791. _this._preGrow$1(t1);
  30792. J.setRange$4$ax(_this._table, $length, t1, iterable, 0);
  30793. _this.set$_tail(_this.get$_tail() + addCount);
  30794. } else {
  30795. endSpace = J.get$length$asx(_this._table) - _this.get$_tail();
  30796. t1 = _this._table;
  30797. if (addCount < endSpace) {
  30798. J.setRange$4$ax(t1, _this.get$_tail(), _this.get$_tail() + addCount, iterable, 0);
  30799. _this.set$_tail(_this.get$_tail() + addCount);
  30800. } else {
  30801. preSpace = addCount - endSpace;
  30802. J.setRange$4$ax(t1, _this.get$_tail(), _this.get$_tail() + endSpace, iterable, 0);
  30803. J.setRange$4$ax(_this._table, 0, preSpace, iterable, endSpace);
  30804. _this.set$_tail(preSpace);
  30805. }
  30806. }
  30807. } else
  30808. for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0();)
  30809. _this._queue_list$_add$1(t1.get$current(t1));
  30810. },
  30811. cast$1$0: function(_, $T) {
  30812. var t1 = $T._eval$1("0*"),
  30813. t2 = new Q._CastQueueList(this, null, null, H._instanceType(this)._eval$1("@<QueueList.E*>")._bind$1(t1)._eval$1("_CastQueueList<1,2>"));
  30814. t2._table = J.cast$1$0$ax(this._table, t1);
  30815. return t2;
  30816. },
  30817. toString$0: function(_) {
  30818. return P.IterableBase_iterableToFullString(this, "{", "}");
  30819. },
  30820. addFirst$1: function(element) {
  30821. var _this = this;
  30822. _this.set$_head((_this.get$_head() - 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  30823. J.$indexSet$ax(_this._table, _this.get$_head(), element);
  30824. if (_this.get$_head() == _this.get$_tail())
  30825. _this._grow$0();
  30826. },
  30827. removeFirst$0: function() {
  30828. var result, _this = this;
  30829. if (_this.get$_head() == _this.get$_tail())
  30830. throw H.wrapException(P.StateError$("No element"));
  30831. result = J.$index$asx(_this._table, _this.get$_head());
  30832. J.$indexSet$ax(_this._table, _this.get$_head(), null);
  30833. _this.set$_head((_this.get$_head() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  30834. return result;
  30835. },
  30836. get$length: function(_) {
  30837. return (this.get$_tail() - this.get$_head() & J.get$length$asx(this._table) - 1) >>> 0;
  30838. },
  30839. set$length: function(_, value) {
  30840. var delta, newTail, t1, t2, _this = this;
  30841. if (value < 0)
  30842. throw H.wrapException(P.RangeError$("Length " + value + " may not be negative."));
  30843. delta = value - _this.get$length(_this);
  30844. if (delta >= 0) {
  30845. if (J.get$length$asx(_this._table) <= value)
  30846. _this._preGrow$1(value);
  30847. _this.set$_tail((_this.get$_tail() + delta & J.get$length$asx(_this._table) - 1) >>> 0);
  30848. return;
  30849. }
  30850. newTail = _this.get$_tail() + delta;
  30851. t1 = _this._table;
  30852. if (newTail >= 0)
  30853. J.fillRange$3$ax(t1, newTail, _this.get$_tail(), null);
  30854. else {
  30855. newTail += J.get$length$asx(t1);
  30856. J.fillRange$3$ax(_this._table, 0, _this.get$_tail(), null);
  30857. t1 = _this._table;
  30858. t2 = J.getInterceptor$asx(t1);
  30859. t2.fillRange$3(t1, newTail, t2.get$length(t1), null);
  30860. }
  30861. _this.set$_tail(newTail);
  30862. },
  30863. $index: function(_, index) {
  30864. var _this = this;
  30865. if (index < 0 || index >= _this.get$length(_this))
  30866. throw H.wrapException(P.RangeError$("Index " + H.S(index) + " must be in the range [0.." + _this.get$length(_this) + ")."));
  30867. return J.$index$asx(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0);
  30868. },
  30869. $indexSet: function(_, index, value) {
  30870. var _this = this;
  30871. if (index < 0 || index >= _this.get$length(_this))
  30872. throw H.wrapException(P.RangeError$("Index " + H.S(index) + " must be in the range [0.." + _this.get$length(_this) + ")."));
  30873. J.$indexSet$ax(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0, value);
  30874. },
  30875. _queue_list$_add$1: function(element) {
  30876. var _this = this;
  30877. J.$indexSet$ax(_this._table, _this.get$_tail(), element);
  30878. _this.set$_tail((_this.get$_tail() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  30879. if (_this.get$_head() == _this.get$_tail())
  30880. _this._grow$0();
  30881. },
  30882. _grow$0: function() {
  30883. var newTable, split, _this = this,
  30884. t1 = new Array(J.get$length$asx(_this._table) * 2);
  30885. t1.fixed$length = Array;
  30886. newTable = H.setRuntimeTypeInfo(t1, H._instanceType(_this)._eval$1("JSArray<QueueList.E*>"));
  30887. split = J.get$length$asx(_this._table) - _this.get$_head();
  30888. C.JSArray_methods.setRange$4(newTable, 0, split, _this._table, _this.get$_head());
  30889. C.JSArray_methods.setRange$4(newTable, split, split + _this.get$_head(), _this._table, 0);
  30890. _this.set$_head(0);
  30891. _this.set$_tail(J.get$length$asx(_this._table));
  30892. _this._table = newTable;
  30893. },
  30894. _writeToList$1: function(target) {
  30895. var $length, firstPartSize, _this = this;
  30896. if (_this.get$_head() <= _this.get$_tail()) {
  30897. $length = _this.get$_tail() - _this.get$_head();
  30898. C.JSArray_methods.setRange$4(target, 0, $length, _this._table, _this.get$_head());
  30899. return $length;
  30900. } else {
  30901. firstPartSize = J.get$length$asx(_this._table) - _this.get$_head();
  30902. C.JSArray_methods.setRange$4(target, 0, firstPartSize, _this._table, _this.get$_head());
  30903. C.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this.get$_tail(), _this._table, 0);
  30904. return _this.get$_tail() + firstPartSize;
  30905. }
  30906. },
  30907. _preGrow$1: function(newElementCount) {
  30908. var newTable, _this = this,
  30909. t1 = new Array(Q.QueueList__nextPowerOf2(newElementCount + C.JSInt_methods._shrOtherPositive$1(newElementCount, 1)));
  30910. t1.fixed$length = Array;
  30911. newTable = H.setRuntimeTypeInfo(t1, H._instanceType(_this)._eval$1("JSArray<QueueList.E*>"));
  30912. _this.set$_tail(_this._writeToList$1(newTable));
  30913. _this._table = newTable;
  30914. _this.set$_head(0);
  30915. },
  30916. $isEfficientLengthIterable: 1,
  30917. $isQueue: 1,
  30918. $isIterable: 1,
  30919. $isList: 1,
  30920. get$_head: function() {
  30921. return this._head;
  30922. },
  30923. get$_tail: function() {
  30924. return this._tail;
  30925. },
  30926. set$_head: function(val) {
  30927. return this._head = val;
  30928. },
  30929. set$_tail: function(val) {
  30930. return this._tail = val;
  30931. }
  30932. };
  30933. Q._CastQueueList.prototype = {
  30934. get$_head: function() {
  30935. return this._queue_list$_delegate.get$_head();
  30936. },
  30937. set$_head: function(value) {
  30938. this._queue_list$_delegate.set$_head(value);
  30939. },
  30940. get$_tail: function() {
  30941. return this._queue_list$_delegate.get$_tail();
  30942. },
  30943. set$_tail: function(value) {
  30944. this._queue_list$_delegate.set$_tail(value);
  30945. }
  30946. };
  30947. Q._QueueList_Object_ListMixin.prototype = {};
  30948. L.UnmodifiableSetView.prototype = {};
  30949. L.UnmodifiableSetMixin.prototype = {
  30950. add$1: function(_, value) {
  30951. return L.UnmodifiableSetMixin__throw();
  30952. },
  30953. addAll$1: function(_, elements) {
  30954. return L.UnmodifiableSetMixin__throw();
  30955. }
  30956. };
  30957. L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin.prototype = {};
  30958. B.defaultCompare_closure.prototype = {
  30959. call$2: function(value1, value2) {
  30960. return J.compareTo$1$ns(type$.legacy_Comparable_dynamic._as(value1), value2);
  30961. },
  30962. $signature: function() {
  30963. return this.T._eval$1("int*(0*,0*)");
  30964. }
  30965. };
  30966. M._DelegatingIterableBase.prototype = {
  30967. cast$1$0: function(_, $T) {
  30968. return J.cast$1$0$ax(this.get$_base(), $T._eval$1("0*"));
  30969. },
  30970. contains$1: function(_, element) {
  30971. return J.contains$1$asx(this.get$_base(), element);
  30972. },
  30973. elementAt$1: function(_, index) {
  30974. return J.elementAt$1$ax(this.get$_base(), index);
  30975. },
  30976. get$first: function(_) {
  30977. return J.get$first$ax(this.get$_base());
  30978. },
  30979. get$isEmpty: function(_) {
  30980. return J.get$isEmpty$asx(this.get$_base());
  30981. },
  30982. get$isNotEmpty: function(_) {
  30983. return J.get$isNotEmpty$asx(this.get$_base());
  30984. },
  30985. get$iterator: function(_) {
  30986. return J.get$iterator$ax(this.get$_base());
  30987. },
  30988. join$1: function(_, separator) {
  30989. return J.join$1$ax(this.get$_base(), separator);
  30990. },
  30991. join$0: function($receiver) {
  30992. return this.join$1($receiver, "");
  30993. },
  30994. get$last: function(_) {
  30995. return J.get$last$ax(this.get$_base());
  30996. },
  30997. get$length: function(_) {
  30998. return J.get$length$asx(this.get$_base());
  30999. },
  31000. map$1$1: function(_, f, $T) {
  31001. return J.map$1$1$ax(this.get$_base(), f, $T._eval$1("0*"));
  31002. },
  31003. get$single: function(_) {
  31004. return J.get$single$ax(this.get$_base());
  31005. },
  31006. skip$1: function(_, n) {
  31007. return J.skip$1$ax(this.get$_base(), n);
  31008. },
  31009. take$1: function(_, n) {
  31010. return J.take$1$ax(this.get$_base(), n);
  31011. },
  31012. toList$1$growable: function(_, growable) {
  31013. return J.toList$1$growable$ax(this.get$_base(), growable);
  31014. },
  31015. toList$0: function($receiver) {
  31016. return this.toList$1$growable($receiver, true);
  31017. },
  31018. toSet$0: function(_) {
  31019. return J.toSet$0$ax(this.get$_base());
  31020. },
  31021. where$1: function(_, test) {
  31022. return J.where$1$ax(this.get$_base(), test);
  31023. },
  31024. toString$0: function(_) {
  31025. return J.toString$0$(this.get$_base());
  31026. },
  31027. $isIterable: 1
  31028. };
  31029. M.DelegatingIterable.prototype = {
  31030. get$_base: function() {
  31031. return this._base;
  31032. }
  31033. };
  31034. M.DelegatingSet.prototype = {
  31035. add$1: function(_, value) {
  31036. return this._base.add$1(0, value);
  31037. },
  31038. addAll$1: function(_, elements) {
  31039. this._base.addAll$1(0, elements);
  31040. },
  31041. cast$1$0: function(_, $T) {
  31042. var t1 = this._base;
  31043. return P.Set_castFrom(t1, t1.get$_newSimilarSet(), H._instanceType(t1)._precomputed1, $T._eval$1("0*"));
  31044. },
  31045. toSet$0: function(_) {
  31046. return new M.DelegatingSet(this._base.toSet$0(0), H._instanceType(this)._eval$1("DelegatingSet<DelegatingSet.E*>"));
  31047. },
  31048. $isEfficientLengthIterable: 1,
  31049. $isSet: 1
  31050. };
  31051. M.MapKeySet.prototype = {
  31052. get$_base: function() {
  31053. return this._baseMap.get$keys();
  31054. },
  31055. cast$1$0: function(_, $T) {
  31056. var _this = this,
  31057. t1 = $T._eval$1("MapKeySet<0*>*");
  31058. if (t1._is(_this))
  31059. return t1._as(_this);
  31060. return P.Set_castFrom(_this, null, _this.$ti._eval$1("1*"), $T._eval$1("0*"));
  31061. },
  31062. contains$1: function(_, element) {
  31063. return this._baseMap.containsKey$1(element);
  31064. },
  31065. get$isEmpty: function(_) {
  31066. var t1 = this._baseMap;
  31067. return t1.get$isEmpty(t1);
  31068. },
  31069. get$isNotEmpty: function(_) {
  31070. var t1 = this._baseMap;
  31071. return t1.get$isNotEmpty(t1);
  31072. },
  31073. get$length: function(_) {
  31074. var t1 = this._baseMap;
  31075. return t1.get$length(t1);
  31076. },
  31077. toString$0: function(_) {
  31078. return "{" + J.join$1$ax(this._baseMap.get$keys(), ", ") + "}";
  31079. },
  31080. $isEfficientLengthIterable: 1,
  31081. $isSet: 1
  31082. };
  31083. M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin.prototype = {};
  31084. M.Context.prototype = {
  31085. absolute$7: function(part1, part2, part3, part4, part5, part6, part7) {
  31086. var t1;
  31087. M._validateArgList("absolute", H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7], type$.JSArray_legacy_String));
  31088. t1 = this.style;
  31089. t1 = t1.rootLength$1(part1) > 0 && !t1.isRootRelative$1(part1);
  31090. if (t1)
  31091. return part1;
  31092. t1 = this._context$_current;
  31093. return this.join$8(0, t1 == null ? D.current() : t1, part1, part2, part3, part4, part5, part6, part7);
  31094. },
  31095. absolute$1: function(part1) {
  31096. return this.absolute$7(part1, null, null, null, null, null, null);
  31097. },
  31098. dirname$1: function(path) {
  31099. var t1, t2,
  31100. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  31101. parsed.removeTrailingSeparators$0();
  31102. t1 = parsed.parts;
  31103. t2 = t1.length;
  31104. if (t2 === 0) {
  31105. t1 = parsed.root;
  31106. return t1 == null ? "." : t1;
  31107. }
  31108. if (t2 === 1) {
  31109. t1 = parsed.root;
  31110. return t1 == null ? "." : t1;
  31111. }
  31112. C.JSArray_methods.removeLast$0(t1);
  31113. C.JSArray_methods.removeLast$0(parsed.separators);
  31114. parsed.removeTrailingSeparators$0();
  31115. return parsed.toString$0(0);
  31116. },
  31117. join$8: function(_, part1, part2, part3, part4, part5, part6, part7, part8) {
  31118. var parts = H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7, part8], type$.JSArray_legacy_String);
  31119. M._validateArgList("join", parts);
  31120. return this.joinAll$1(new H.WhereIterable(parts, new M.Context_join_closure(), type$.WhereIterable_legacy_String));
  31121. },
  31122. join$2: function($receiver, part1, part2) {
  31123. return this.join$8($receiver, part1, part2, null, null, null, null, null, null);
  31124. },
  31125. joinAll$1: function(parts) {
  31126. var t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, t4, t5, parsed, path;
  31127. for (t1 = parts.get$iterator(parts), t2 = new H.WhereIterator(t1, new M.Context_joinAll_closure()), t3 = this.style, needsSeparator = false, isAbsoluteAndNotRootRelative = false, t4 = ""; t2.moveNext$0();) {
  31128. t5 = t1.get$current(t1);
  31129. if (t3.isRootRelative$1(t5) && isAbsoluteAndNotRootRelative) {
  31130. parsed = X.ParsedPath_ParsedPath$parse(t5, t3);
  31131. path = t4.charCodeAt(0) == 0 ? t4 : t4;
  31132. t4 = C.JSString_methods.substring$2(path, 0, t3.rootLength$2$withDrive(path, true));
  31133. parsed.root = t4;
  31134. if (t3.needsSeparator$1(t4))
  31135. parsed.separators[0] = t3.get$separator();
  31136. t4 = parsed.toString$0(0);
  31137. } else if (t3.rootLength$1(t5) > 0) {
  31138. isAbsoluteAndNotRootRelative = !t3.isRootRelative$1(t5);
  31139. t4 = H.S(t5);
  31140. } else {
  31141. if (!(t5.length !== 0 && t3.containsSeparator$1(t5[0])))
  31142. if (needsSeparator)
  31143. t4 += t3.get$separator();
  31144. t4 += t5;
  31145. }
  31146. needsSeparator = t3.needsSeparator$1(t5);
  31147. }
  31148. return t4.charCodeAt(0) == 0 ? t4 : t4;
  31149. },
  31150. split$1: function(_, path) {
  31151. var parsed = X.ParsedPath_ParsedPath$parse(path, this.style),
  31152. t1 = parsed.parts,
  31153. t2 = H._arrayInstanceType(t1)._eval$1("WhereIterable<1>");
  31154. t2 = P.List_List$from(new H.WhereIterable(t1, new M.Context_split_closure(), t2), true, t2._eval$1("Iterable.E"));
  31155. parsed.parts = t2;
  31156. t1 = parsed.root;
  31157. if (t1 != null)
  31158. C.JSArray_methods.insert$2(t2, 0, t1);
  31159. return parsed.parts;
  31160. },
  31161. canonicalize$1: function(path) {
  31162. var t1, parsed;
  31163. path = this.absolute$1(path);
  31164. t1 = this.style;
  31165. if (t1 != $.$get$Style_windows() && !this._needsNormalization$1(path))
  31166. return path;
  31167. parsed = X.ParsedPath_ParsedPath$parse(path, t1);
  31168. parsed.normalize$1$canonicalize(true);
  31169. return parsed.toString$0(0);
  31170. },
  31171. normalize$1: function(path) {
  31172. var parsed;
  31173. if (!this._needsNormalization$1(path))
  31174. return path;
  31175. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  31176. parsed.normalize$0();
  31177. return parsed.toString$0(0);
  31178. },
  31179. _needsNormalization$1: function(path) {
  31180. var t1, root, i, start, previous, t2, t3, previousPrevious, codeUnit, t4;
  31181. path.toString;
  31182. t1 = this.style;
  31183. root = t1.rootLength$1(path);
  31184. if (root !== 0) {
  31185. if (t1 === $.$get$Style_windows())
  31186. for (i = 0; i < root; ++i)
  31187. if (C.JSString_methods._codeUnitAt$1(path, i) === 47)
  31188. return true;
  31189. start = root;
  31190. previous = 47;
  31191. } else {
  31192. start = 0;
  31193. previous = null;
  31194. }
  31195. for (t2 = new H.CodeUnits(path)._string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) {
  31196. codeUnit = C.JSString_methods.codeUnitAt$1(t2, i);
  31197. if (t1.isSeparator$1(codeUnit)) {
  31198. if (t1 === $.$get$Style_windows() && codeUnit === 47)
  31199. return true;
  31200. if (previous != null && t1.isSeparator$1(previous))
  31201. return true;
  31202. if (previous === 46)
  31203. t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious);
  31204. else
  31205. t4 = false;
  31206. if (t4)
  31207. return true;
  31208. }
  31209. }
  31210. if (previous == null)
  31211. return true;
  31212. if (t1.isSeparator$1(previous))
  31213. return true;
  31214. if (previous === 46)
  31215. t1 = previousPrevious == null || t1.isSeparator$1(previousPrevious) || previousPrevious === 46;
  31216. else
  31217. t1 = false;
  31218. if (t1)
  31219. return true;
  31220. return false;
  31221. },
  31222. relative$2$from: function(path, from) {
  31223. var fromParsed, pathParsed, t2, t3, _this = this,
  31224. _s26_ = 'Unable to find a path to "',
  31225. t1 = from == null;
  31226. if (t1 && _this.style.rootLength$1(path) <= 0)
  31227. return _this.normalize$1(path);
  31228. if (t1) {
  31229. t1 = _this._context$_current;
  31230. from = t1 == null ? D.current() : t1;
  31231. } else
  31232. from = _this.absolute$1(from);
  31233. t1 = _this.style;
  31234. if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0)
  31235. return _this.normalize$1(path);
  31236. if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path))
  31237. path = _this.absolute$1(path);
  31238. if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0)
  31239. throw H.wrapException(X.PathException$(_s26_ + H.S(path) + '" from "' + H.S(from) + '".'));
  31240. fromParsed = X.ParsedPath_ParsedPath$parse(from, t1);
  31241. fromParsed.normalize$0();
  31242. pathParsed = X.ParsedPath_ParsedPath$parse(path, t1);
  31243. pathParsed.normalize$0();
  31244. t2 = fromParsed.parts;
  31245. if (t2.length !== 0 && J.$eq$(t2[0], "."))
  31246. return pathParsed.toString$0(0);
  31247. t2 = fromParsed.root;
  31248. t3 = pathParsed.root;
  31249. if (t2 != t3)
  31250. t2 = t2 == null || t3 == null || !t1.pathsEqual$2(t2, t3);
  31251. else
  31252. t2 = false;
  31253. if (t2)
  31254. return pathParsed.toString$0(0);
  31255. while (true) {
  31256. t2 = fromParsed.parts;
  31257. if (t2.length !== 0) {
  31258. t3 = pathParsed.parts;
  31259. t2 = t3.length !== 0 && t1.pathsEqual$2(t2[0], t3[0]);
  31260. } else
  31261. t2 = false;
  31262. if (!t2)
  31263. break;
  31264. C.JSArray_methods.removeAt$1(fromParsed.parts, 0);
  31265. C.JSArray_methods.removeAt$1(fromParsed.separators, 1);
  31266. C.JSArray_methods.removeAt$1(pathParsed.parts, 0);
  31267. C.JSArray_methods.removeAt$1(pathParsed.separators, 1);
  31268. }
  31269. t2 = fromParsed.parts;
  31270. if (t2.length !== 0 && J.$eq$(t2[0], ".."))
  31271. throw H.wrapException(X.PathException$(_s26_ + H.S(path) + '" from "' + H.S(from) + '".'));
  31272. t2 = type$.legacy_String;
  31273. C.JSArray_methods.insertAll$2(pathParsed.parts, 0, P.List_List$filled(fromParsed.parts.length, "..", false, t2));
  31274. t3 = pathParsed.separators;
  31275. t3[0] = "";
  31276. C.JSArray_methods.insertAll$2(t3, 1, P.List_List$filled(fromParsed.parts.length, t1.get$separator(), false, t2));
  31277. t1 = pathParsed.parts;
  31278. t2 = t1.length;
  31279. if (t2 === 0)
  31280. return ".";
  31281. if (t2 > 1 && J.$eq$(C.JSArray_methods.get$last(t1), ".")) {
  31282. C.JSArray_methods.removeLast$0(pathParsed.parts);
  31283. t1 = pathParsed.separators;
  31284. C.JSArray_methods.removeLast$0(t1);
  31285. C.JSArray_methods.removeLast$0(t1);
  31286. C.JSArray_methods.add$1(t1, "");
  31287. }
  31288. pathParsed.root = "";
  31289. pathParsed.removeTrailingSeparators$0();
  31290. return pathParsed.toString$0(0);
  31291. },
  31292. relative$1: function(path) {
  31293. return this.relative$2$from(path, null);
  31294. },
  31295. _isWithinOrEquals$2: function($parent, child) {
  31296. var relative, t1, parentIsAbsolute, childIsAbsolute, childIsRootRelative, parentIsRootRelative, result, exception, _this = this;
  31297. $parent = $parent;
  31298. child = child;
  31299. t1 = _this.style;
  31300. parentIsAbsolute = t1.rootLength$1($parent) > 0;
  31301. childIsAbsolute = t1.rootLength$1(child) > 0;
  31302. if (parentIsAbsolute && !childIsAbsolute) {
  31303. child = _this.absolute$1(child);
  31304. if (t1.isRootRelative$1($parent))
  31305. $parent = _this.absolute$1($parent);
  31306. } else if (childIsAbsolute && !parentIsAbsolute) {
  31307. $parent = _this.absolute$1($parent);
  31308. if (t1.isRootRelative$1(child))
  31309. child = _this.absolute$1(child);
  31310. } else if (childIsAbsolute && parentIsAbsolute) {
  31311. childIsRootRelative = t1.isRootRelative$1(child);
  31312. parentIsRootRelative = t1.isRootRelative$1($parent);
  31313. if (childIsRootRelative && !parentIsRootRelative)
  31314. child = _this.absolute$1(child);
  31315. else if (parentIsRootRelative && !childIsRootRelative)
  31316. $parent = _this.absolute$1($parent);
  31317. }
  31318. result = _this._isWithinOrEqualsFast$2($parent, child);
  31319. if (result !== C._PathRelation_inconclusive)
  31320. return result;
  31321. relative = null;
  31322. try {
  31323. relative = _this.relative$2$from(child, $parent);
  31324. } catch (exception) {
  31325. if (H.unwrapException(exception) instanceof X.PathException)
  31326. return C._PathRelation_different;
  31327. else
  31328. throw exception;
  31329. }
  31330. if (t1.rootLength$1(relative) > 0)
  31331. return C._PathRelation_different;
  31332. if (J.$eq$(relative, "."))
  31333. return C._PathRelation_equal;
  31334. if (J.$eq$(relative, ".."))
  31335. return C._PathRelation_different;
  31336. return J.get$length$asx(relative) >= 3 && J.startsWith$1$s(relative, "..") && t1.isSeparator$1(J.codeUnitAt$1$s(relative, 2)) ? C._PathRelation_different : C._PathRelation_within;
  31337. },
  31338. _isWithinOrEqualsFast$2: function($parent, child) {
  31339. var t1, parentRootLength, childRootLength, t2, t3, i, childIndex, parentIndex, lastCodeUnit, lastParentSeparator, parentCodeUnit, childCodeUnit, parentIndex0, t4, direction, _this = this;
  31340. if ($parent === ".")
  31341. $parent = "";
  31342. t1 = _this.style;
  31343. parentRootLength = t1.rootLength$1($parent);
  31344. childRootLength = t1.rootLength$1(child);
  31345. if (parentRootLength !== childRootLength)
  31346. return C._PathRelation_different;
  31347. for (t2 = J.getInterceptor$s($parent), t3 = J.getInterceptor$s(child), i = 0; i < parentRootLength; ++i)
  31348. if (!t1.codeUnitsEqual$2(t2._codeUnitAt$1($parent, i), t3._codeUnitAt$1(child, i)))
  31349. return C._PathRelation_different;
  31350. t2 = $parent.length;
  31351. childIndex = childRootLength;
  31352. parentIndex = parentRootLength;
  31353. lastCodeUnit = 47;
  31354. lastParentSeparator = null;
  31355. while (true) {
  31356. if (!(parentIndex < t2 && childIndex < child.length))
  31357. break;
  31358. c$0: {
  31359. parentCodeUnit = C.JSString_methods.codeUnitAt$1($parent, parentIndex);
  31360. childCodeUnit = t3.codeUnitAt$1(child, childIndex);
  31361. if (t1.codeUnitsEqual$2(parentCodeUnit, childCodeUnit)) {
  31362. if (t1.isSeparator$1(parentCodeUnit))
  31363. lastParentSeparator = parentIndex;
  31364. ++parentIndex;
  31365. ++childIndex;
  31366. lastCodeUnit = parentCodeUnit;
  31367. break c$0;
  31368. }
  31369. if (t1.isSeparator$1(parentCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  31370. parentIndex0 = parentIndex + 1;
  31371. lastParentSeparator = parentIndex;
  31372. parentIndex = parentIndex0;
  31373. break c$0;
  31374. } else if (t1.isSeparator$1(childCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  31375. ++childIndex;
  31376. break c$0;
  31377. }
  31378. if (parentCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  31379. ++parentIndex;
  31380. if (parentIndex === t2)
  31381. break;
  31382. parentCodeUnit = C.JSString_methods.codeUnitAt$1($parent, parentIndex);
  31383. if (t1.isSeparator$1(parentCodeUnit)) {
  31384. parentIndex0 = parentIndex + 1;
  31385. lastParentSeparator = parentIndex;
  31386. parentIndex = parentIndex0;
  31387. break c$0;
  31388. }
  31389. if (parentCodeUnit === 46) {
  31390. ++parentIndex;
  31391. if (parentIndex === t2 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1($parent, parentIndex)))
  31392. return C._PathRelation_inconclusive;
  31393. }
  31394. }
  31395. if (childCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  31396. ++childIndex;
  31397. t4 = child.length;
  31398. if (childIndex === t4)
  31399. break;
  31400. childCodeUnit = C.JSString_methods.codeUnitAt$1(child, childIndex);
  31401. if (t1.isSeparator$1(childCodeUnit)) {
  31402. ++childIndex;
  31403. break c$0;
  31404. }
  31405. if (childCodeUnit === 46) {
  31406. ++childIndex;
  31407. if (childIndex === t4 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1(child, childIndex)))
  31408. return C._PathRelation_inconclusive;
  31409. }
  31410. }
  31411. if (_this._pathDirection$2(child, childIndex) !== C._PathDirection_988)
  31412. return C._PathRelation_inconclusive;
  31413. if (_this._pathDirection$2($parent, parentIndex) !== C._PathDirection_988)
  31414. return C._PathRelation_inconclusive;
  31415. return C._PathRelation_different;
  31416. }
  31417. }
  31418. if (childIndex === child.length) {
  31419. if (parentIndex === t2 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1($parent, parentIndex)))
  31420. lastParentSeparator = parentIndex;
  31421. else if (lastParentSeparator == null)
  31422. lastParentSeparator = Math.max(0, parentRootLength - 1);
  31423. direction = _this._pathDirection$2($parent, lastParentSeparator);
  31424. if (direction === C._PathDirection_8Gl)
  31425. return C._PathRelation_equal;
  31426. return direction === C._PathDirection_ZGD ? C._PathRelation_inconclusive : C._PathRelation_different;
  31427. }
  31428. direction = _this._pathDirection$2(child, childIndex);
  31429. if (direction === C._PathDirection_8Gl)
  31430. return C._PathRelation_equal;
  31431. if (direction === C._PathDirection_ZGD)
  31432. return C._PathRelation_inconclusive;
  31433. return t1.isSeparator$1(C.JSString_methods.codeUnitAt$1(child, childIndex)) || t1.isSeparator$1(lastCodeUnit) ? C._PathRelation_within : C._PathRelation_different;
  31434. },
  31435. _pathDirection$2: function(path, index) {
  31436. var t1, t2, i, depth, reachedRoot, i0, t3;
  31437. for (t1 = path.length, t2 = this.style, i = index, depth = 0, reachedRoot = false; i < t1;) {
  31438. while (true) {
  31439. if (!(i < t1 && t2.isSeparator$1(C.JSString_methods.codeUnitAt$1(path, i))))
  31440. break;
  31441. ++i;
  31442. }
  31443. if (i === t1)
  31444. break;
  31445. i0 = i;
  31446. while (true) {
  31447. if (!(i0 < t1 && !t2.isSeparator$1(C.JSString_methods.codeUnitAt$1(path, i0))))
  31448. break;
  31449. ++i0;
  31450. }
  31451. t3 = i0 - i;
  31452. if (!(t3 === 1 && C.JSString_methods.codeUnitAt$1(path, i) === 46))
  31453. if (t3 === 2 && C.JSString_methods.codeUnitAt$1(path, i) === 46 && C.JSString_methods.codeUnitAt$1(path, i + 1) === 46) {
  31454. --depth;
  31455. if (depth < 0)
  31456. break;
  31457. if (depth === 0)
  31458. reachedRoot = true;
  31459. } else
  31460. ++depth;
  31461. if (i0 === t1)
  31462. break;
  31463. i = i0 + 1;
  31464. }
  31465. if (depth < 0)
  31466. return C._PathDirection_ZGD;
  31467. if (depth === 0)
  31468. return C._PathDirection_8Gl;
  31469. if (reachedRoot)
  31470. return C._PathDirection_FIw;
  31471. return C._PathDirection_988;
  31472. },
  31473. hash$1: function(path) {
  31474. var result, parsed, _this = this;
  31475. path = _this.absolute$1(path);
  31476. result = _this._hashFast$1(path);
  31477. if (result != null)
  31478. return result;
  31479. parsed = X.ParsedPath_ParsedPath$parse(path, _this.style);
  31480. parsed.normalize$0();
  31481. return _this._hashFast$1(parsed.toString$0(0));
  31482. },
  31483. _hashFast$1: function(path) {
  31484. var t1, t2, hash, beginning, wasSeparator, i, codeUnit, t3, next;
  31485. for (t1 = path.length, t2 = this.style, hash = 4603, beginning = true, wasSeparator = true, i = 0; i < t1; ++i) {
  31486. codeUnit = t2.canonicalizeCodeUnit$1(C.JSString_methods._codeUnitAt$1(path, i));
  31487. if (t2.isSeparator$1(codeUnit)) {
  31488. wasSeparator = true;
  31489. continue;
  31490. }
  31491. if (codeUnit === 46 && wasSeparator) {
  31492. t3 = i + 1;
  31493. if (t3 === t1)
  31494. break;
  31495. next = C.JSString_methods._codeUnitAt$1(path, t3);
  31496. if (t2.isSeparator$1(next))
  31497. continue;
  31498. if (!beginning)
  31499. if (next === 46) {
  31500. t3 = i + 2;
  31501. t3 = t3 === t1 || t2.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, t3));
  31502. } else
  31503. t3 = false;
  31504. else
  31505. t3 = false;
  31506. if (t3)
  31507. return null;
  31508. }
  31509. hash = ((hash & 67108863) * 33 ^ codeUnit) >>> 0;
  31510. beginning = false;
  31511. wasSeparator = false;
  31512. }
  31513. return hash;
  31514. },
  31515. withoutExtension$1: function(path) {
  31516. var i, t1,
  31517. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  31518. for (i = parsed.parts.length - 1; i >= 0; --i) {
  31519. t1 = parsed.parts[i];
  31520. t1.toString;
  31521. if (J.get$length$asx(t1) !== 0) {
  31522. parsed.parts[i] = parsed._splitExtension$0()[0];
  31523. break;
  31524. }
  31525. }
  31526. return parsed.toString$0(0);
  31527. },
  31528. toUri$1: function(path) {
  31529. var t2,
  31530. t1 = this.style;
  31531. if (t1.rootLength$1(path) <= 0)
  31532. return t1.relativePathToUri$1(path);
  31533. else {
  31534. t2 = this._context$_current;
  31535. return t1.absolutePathToUri$1(this.join$2(0, t2 == null ? D.current() : t2, path));
  31536. }
  31537. },
  31538. prettyUri$1: function(uri) {
  31539. var path, rel, _this = this,
  31540. typedUri = M._parseUri(uri);
  31541. if (typedUri.get$scheme() === "file" && _this.style == $.$get$Style_url())
  31542. return typedUri.toString$0(0);
  31543. else if (typedUri.get$scheme() !== "file" && typedUri.get$scheme() !== "" && _this.style != $.$get$Style_url())
  31544. return typedUri.toString$0(0);
  31545. path = _this.normalize$1(_this.style.pathFromUri$1(M._parseUri(typedUri)));
  31546. rel = _this.relative$1(path);
  31547. return _this.split$1(0, rel).length > _this.split$1(0, path).length ? path : rel;
  31548. }
  31549. };
  31550. M.Context_join_closure.prototype = {
  31551. call$1: function(part) {
  31552. return part != null;
  31553. }
  31554. };
  31555. M.Context_joinAll_closure.prototype = {
  31556. call$1: function(part) {
  31557. return part !== "";
  31558. }
  31559. };
  31560. M.Context_split_closure.prototype = {
  31561. call$1: function(part) {
  31562. return part.length !== 0;
  31563. }
  31564. };
  31565. M._validateArgList_closure.prototype = {
  31566. call$1: function(arg) {
  31567. return arg == null ? "null" : '"' + arg + '"';
  31568. }
  31569. };
  31570. M._PathDirection.prototype = {
  31571. toString$0: function(_) {
  31572. return this.name;
  31573. }
  31574. };
  31575. M._PathRelation.prototype = {
  31576. toString$0: function(_) {
  31577. return this.name;
  31578. }
  31579. };
  31580. B.InternalStyle.prototype = {
  31581. getRoot$1: function(path) {
  31582. var $length = this.rootLength$1(path);
  31583. if ($length > 0)
  31584. return J.substring$2$s(path, 0, $length);
  31585. return this.isRootRelative$1(path) ? path[0] : null;
  31586. },
  31587. relativePathToUri$1: function(path) {
  31588. var segments = M.Context_Context(this).split$1(0, path);
  31589. if (this.isSeparator$1(J.codeUnitAt$1$s(path, path.length - 1)))
  31590. C.JSArray_methods.add$1(segments, "");
  31591. return P._Uri__Uri(null, null, segments, null);
  31592. },
  31593. codeUnitsEqual$2: function(codeUnit1, codeUnit2) {
  31594. return codeUnit1 === codeUnit2;
  31595. },
  31596. pathsEqual$2: function(path1, path2) {
  31597. return path1 == path2;
  31598. },
  31599. canonicalizeCodeUnit$1: function(codeUnit) {
  31600. return codeUnit;
  31601. },
  31602. canonicalizePart$1: function(part) {
  31603. return part;
  31604. }
  31605. };
  31606. X.ParsedPath.prototype = {
  31607. get$basename: function() {
  31608. var _this = this,
  31609. t1 = type$.legacy_String,
  31610. copy = new X.ParsedPath(_this.style, _this.root, _this.isRootRelative, P.List_List$from(_this.parts, true, t1), P.List_List$from(_this.separators, true, t1));
  31611. copy.removeTrailingSeparators$0();
  31612. t1 = copy.parts;
  31613. if (t1.length === 0) {
  31614. t1 = _this.root;
  31615. return t1 == null ? "" : t1;
  31616. }
  31617. return C.JSArray_methods.get$last(t1);
  31618. },
  31619. get$hasTrailingSeparator: function() {
  31620. var t1 = this.parts;
  31621. if (t1.length !== 0)
  31622. t1 = J.$eq$(C.JSArray_methods.get$last(t1), "") || !J.$eq$(C.JSArray_methods.get$last(this.separators), "");
  31623. else
  31624. t1 = false;
  31625. return t1;
  31626. },
  31627. removeTrailingSeparators$0: function() {
  31628. var t1, t2, _this = this;
  31629. while (true) {
  31630. t1 = _this.parts;
  31631. if (!(t1.length !== 0 && J.$eq$(C.JSArray_methods.get$last(t1), "")))
  31632. break;
  31633. C.JSArray_methods.removeLast$0(_this.parts);
  31634. C.JSArray_methods.removeLast$0(_this.separators);
  31635. }
  31636. t1 = _this.separators;
  31637. t2 = t1.length;
  31638. if (t2 !== 0)
  31639. t1[t2 - 1] = "";
  31640. },
  31641. normalize$1$canonicalize: function(canonicalize) {
  31642. var t1, t2, t3, leadingDoubles, _i, part, t4, newSeparators, _this = this,
  31643. newParts = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  31644. for (t1 = _this.parts, t2 = t1.length, t3 = _this.style, leadingDoubles = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  31645. part = t1[_i];
  31646. t4 = J.getInterceptor$(part);
  31647. if (!(t4.$eq(part, ".") || t4.$eq(part, "")))
  31648. if (t4.$eq(part, ".."))
  31649. if (newParts.length !== 0)
  31650. newParts.pop();
  31651. else
  31652. ++leadingDoubles;
  31653. else
  31654. newParts.push(canonicalize ? t3.canonicalizePart$1(part) : part);
  31655. }
  31656. if (_this.root == null)
  31657. C.JSArray_methods.insertAll$2(newParts, 0, P.List_List$filled(leadingDoubles, "..", false, type$.legacy_String));
  31658. if (newParts.length === 0 && _this.root == null)
  31659. newParts.push(".");
  31660. newSeparators = P.List_List$generate(newParts.length, new X.ParsedPath_normalize_closure(_this), true, type$.legacy_String);
  31661. t1 = _this.root;
  31662. C.JSArray_methods.insert$2(newSeparators, 0, t1 != null && newParts.length !== 0 && t3.needsSeparator$1(t1) ? t3.get$separator() : "");
  31663. _this.parts = newParts;
  31664. _this.separators = newSeparators;
  31665. t1 = _this.root;
  31666. if (t1 != null && t3 === $.$get$Style_windows()) {
  31667. if (canonicalize)
  31668. t1 = _this.root = t1.toLowerCase();
  31669. t1.toString;
  31670. _this.root = H.stringReplaceAllUnchecked(t1, "/", "\\");
  31671. }
  31672. _this.removeTrailingSeparators$0();
  31673. },
  31674. normalize$0: function() {
  31675. return this.normalize$1$canonicalize(false);
  31676. },
  31677. toString$0: function(_) {
  31678. var i, _this = this,
  31679. t1 = _this.root;
  31680. t1 = t1 != null ? t1 : "";
  31681. for (i = 0; i < _this.parts.length; ++i)
  31682. t1 = t1 + H.S(_this.separators[i]) + H.S(_this.parts[i]);
  31683. t1 += H.S(C.JSArray_methods.get$last(_this.separators));
  31684. return t1.charCodeAt(0) == 0 ? t1 : t1;
  31685. },
  31686. _kthLastIndexOf$3: function(path, character, k) {
  31687. var index, count, leftMostIndexedCharacter;
  31688. for (index = path.length - 1, count = 0, leftMostIndexedCharacter = 0; index >= 0; --index)
  31689. if (path[index] === character) {
  31690. ++count;
  31691. if (count === k)
  31692. return index;
  31693. leftMostIndexedCharacter = index;
  31694. }
  31695. return leftMostIndexedCharacter;
  31696. },
  31697. _splitExtension$1: function(level) {
  31698. var file, lastDot;
  31699. if (level <= 0)
  31700. throw H.wrapException(P.RangeError$value(level, "level", "level's value must be greater than 0"));
  31701. file = C.JSArray_methods.lastWhere$2$orElse(this.parts, new X.ParsedPath__splitExtension_closure(), new X.ParsedPath__splitExtension_closure0());
  31702. if (file == null)
  31703. return H.setRuntimeTypeInfo(["", ""], type$.JSArray_legacy_String);
  31704. if (file === "..")
  31705. return H.setRuntimeTypeInfo(["..", ""], type$.JSArray_legacy_String);
  31706. lastDot = this._kthLastIndexOf$3(file, ".", level);
  31707. if (lastDot <= 0)
  31708. return H.setRuntimeTypeInfo([file, ""], type$.JSArray_legacy_String);
  31709. return H.setRuntimeTypeInfo([C.JSString_methods.substring$2(file, 0, lastDot), C.JSString_methods.substring$1(file, lastDot)], type$.JSArray_legacy_String);
  31710. },
  31711. _splitExtension$0: function() {
  31712. return this._splitExtension$1(1);
  31713. }
  31714. };
  31715. X.ParsedPath_normalize_closure.prototype = {
  31716. call$1: function(_) {
  31717. return this.$this.style.get$separator();
  31718. },
  31719. $signature: 55
  31720. };
  31721. X.ParsedPath__splitExtension_closure.prototype = {
  31722. call$1: function(p) {
  31723. return p !== "";
  31724. }
  31725. };
  31726. X.ParsedPath__splitExtension_closure0.prototype = {
  31727. call$0: function() {
  31728. return null;
  31729. },
  31730. $signature: 0
  31731. };
  31732. X.PathException.prototype = {
  31733. toString$0: function(_) {
  31734. return "PathException: " + this.message;
  31735. },
  31736. $isException: 1,
  31737. get$message: function(receiver) {
  31738. return this.message;
  31739. }
  31740. };
  31741. K.PathMap.prototype = {};
  31742. K.PathMap__create_closure.prototype = {
  31743. call$2: function(path1, path2) {
  31744. if (path1 == null)
  31745. return path2 == null;
  31746. if (path2 == null)
  31747. return false;
  31748. return this._box_0.context._isWithinOrEquals$2(path1, path2) === C._PathRelation_equal;
  31749. },
  31750. "call*": "call$2",
  31751. $requiredArgCount: 2
  31752. };
  31753. K.PathMap__create_closure0.prototype = {
  31754. call$1: function(path) {
  31755. return path == null ? 0 : this._box_0.context.hash$1(path);
  31756. }
  31757. };
  31758. K.PathMap__create_closure1.prototype = {
  31759. call$1: function(path) {
  31760. return typeof path == "string" || path == null;
  31761. },
  31762. $signature: 97
  31763. };
  31764. O.Style.prototype = {
  31765. toString$0: function(_) {
  31766. return this.get$name();
  31767. }
  31768. };
  31769. E.PosixStyle.prototype = {
  31770. containsSeparator$1: function(path) {
  31771. return C.JSString_methods.contains$1(path, "/");
  31772. },
  31773. isSeparator$1: function(codeUnit) {
  31774. return codeUnit === 47;
  31775. },
  31776. needsSeparator$1: function(path) {
  31777. var t1 = path.length;
  31778. return t1 !== 0 && C.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47;
  31779. },
  31780. rootLength$2$withDrive: function(path, withDrive) {
  31781. if (path.length !== 0 && C.JSString_methods._codeUnitAt$1(path, 0) === 47)
  31782. return 1;
  31783. return 0;
  31784. },
  31785. rootLength$1: function(path) {
  31786. return this.rootLength$2$withDrive(path, false);
  31787. },
  31788. isRootRelative$1: function(path) {
  31789. return false;
  31790. },
  31791. pathFromUri$1: function(uri) {
  31792. var t1;
  31793. if (uri.get$scheme() === "" || uri.get$scheme() === "file") {
  31794. t1 = uri.get$path(uri);
  31795. return P._Uri__uriDecode(t1, 0, t1.length, C.C_Utf8Codec, false);
  31796. }
  31797. throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'."));
  31798. },
  31799. absolutePathToUri$1: function(path) {
  31800. var parsed = X.ParsedPath_ParsedPath$parse(path, this),
  31801. t1 = parsed.parts;
  31802. if (t1.length === 0)
  31803. C.JSArray_methods.addAll$1(t1, H.setRuntimeTypeInfo(["", ""], type$.JSArray_legacy_String));
  31804. else if (parsed.get$hasTrailingSeparator())
  31805. C.JSArray_methods.add$1(parsed.parts, "");
  31806. return P._Uri__Uri(null, null, parsed.parts, "file");
  31807. },
  31808. get$name: function() {
  31809. return "posix";
  31810. },
  31811. get$separator: function() {
  31812. return "/";
  31813. }
  31814. };
  31815. F.UrlStyle.prototype = {
  31816. containsSeparator$1: function(path) {
  31817. return C.JSString_methods.contains$1(path, "/");
  31818. },
  31819. isSeparator$1: function(codeUnit) {
  31820. return codeUnit === 47;
  31821. },
  31822. needsSeparator$1: function(path) {
  31823. var t1 = path.length;
  31824. if (t1 === 0)
  31825. return false;
  31826. if (C.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47)
  31827. return true;
  31828. return C.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === t1;
  31829. },
  31830. rootLength$2$withDrive: function(path, withDrive) {
  31831. var i, codeUnit, index, t2,
  31832. t1 = path.length;
  31833. if (t1 === 0)
  31834. return 0;
  31835. if (C.JSString_methods._codeUnitAt$1(path, 0) === 47)
  31836. return 1;
  31837. for (i = 0; i < t1; ++i) {
  31838. codeUnit = C.JSString_methods._codeUnitAt$1(path, i);
  31839. if (codeUnit === 47)
  31840. return 0;
  31841. if (codeUnit === 58) {
  31842. if (i === 0)
  31843. return 0;
  31844. index = C.JSString_methods.indexOf$2(path, "/", C.JSString_methods.startsWith$2(path, "//", i + 1) ? i + 3 : i);
  31845. if (index <= 0)
  31846. return t1;
  31847. if (!withDrive || t1 < index + 3)
  31848. return index;
  31849. if (!C.JSString_methods.startsWith$1(path, "file://"))
  31850. return index;
  31851. if (!B.isDriveLetter(path, index + 1))
  31852. return index;
  31853. t2 = index + 3;
  31854. return t1 === t2 ? t2 : index + 4;
  31855. }
  31856. }
  31857. return 0;
  31858. },
  31859. rootLength$1: function(path) {
  31860. return this.rootLength$2$withDrive(path, false);
  31861. },
  31862. isRootRelative$1: function(path) {
  31863. return path.length !== 0 && C.JSString_methods._codeUnitAt$1(path, 0) === 47;
  31864. },
  31865. pathFromUri$1: function(uri) {
  31866. return uri.toString$0(0);
  31867. },
  31868. relativePathToUri$1: function(path) {
  31869. return P.Uri_parse(path);
  31870. },
  31871. absolutePathToUri$1: function(path) {
  31872. return P.Uri_parse(path);
  31873. },
  31874. get$name: function() {
  31875. return "url";
  31876. },
  31877. get$separator: function() {
  31878. return "/";
  31879. }
  31880. };
  31881. L.WindowsStyle.prototype = {
  31882. containsSeparator$1: function(path) {
  31883. return C.JSString_methods.contains$1(path, "/");
  31884. },
  31885. isSeparator$1: function(codeUnit) {
  31886. return codeUnit === 47 || codeUnit === 92;
  31887. },
  31888. needsSeparator$1: function(path) {
  31889. var t1 = path.length;
  31890. if (t1 === 0)
  31891. return false;
  31892. t1 = C.JSString_methods.codeUnitAt$1(path, t1 - 1);
  31893. return !(t1 === 47 || t1 === 92);
  31894. },
  31895. rootLength$2$withDrive: function(path, withDrive) {
  31896. var t2, index,
  31897. t1 = path.length;
  31898. if (t1 === 0)
  31899. return 0;
  31900. t2 = C.JSString_methods._codeUnitAt$1(path, 0);
  31901. if (t2 === 47)
  31902. return 1;
  31903. if (t2 === 92) {
  31904. if (t1 < 2 || C.JSString_methods._codeUnitAt$1(path, 1) !== 92)
  31905. return 1;
  31906. index = C.JSString_methods.indexOf$2(path, "\\", 2);
  31907. if (index > 0) {
  31908. index = C.JSString_methods.indexOf$2(path, "\\", index + 1);
  31909. if (index > 0)
  31910. return index;
  31911. }
  31912. return t1;
  31913. }
  31914. if (t1 < 3)
  31915. return 0;
  31916. if (!B.isAlphabetic(t2))
  31917. return 0;
  31918. if (C.JSString_methods._codeUnitAt$1(path, 1) !== 58)
  31919. return 0;
  31920. t1 = C.JSString_methods._codeUnitAt$1(path, 2);
  31921. if (!(t1 === 47 || t1 === 92))
  31922. return 0;
  31923. return 3;
  31924. },
  31925. rootLength$1: function(path) {
  31926. return this.rootLength$2$withDrive(path, false);
  31927. },
  31928. isRootRelative$1: function(path) {
  31929. return this.rootLength$1(path) === 1;
  31930. },
  31931. pathFromUri$1: function(uri) {
  31932. var path, t1;
  31933. if (uri.get$scheme() !== "" && uri.get$scheme() !== "file")
  31934. throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'."));
  31935. path = uri.get$path(uri);
  31936. if (uri.get$host() === "") {
  31937. if (path.length >= 3 && C.JSString_methods.startsWith$1(path, "/") && B.isDriveLetter(path, 1))
  31938. path = C.JSString_methods.replaceFirst$2(path, "/", "");
  31939. } else
  31940. path = "\\\\" + uri.get$host() + path;
  31941. t1 = H.stringReplaceAllUnchecked(path, "/", "\\");
  31942. return P._Uri__uriDecode(t1, 0, t1.length, C.C_Utf8Codec, false);
  31943. },
  31944. absolutePathToUri$1: function(path) {
  31945. var rootParts, t2,
  31946. parsed = X.ParsedPath_ParsedPath$parse(path, this),
  31947. t1 = parsed.root;
  31948. if (J.startsWith$1$s(t1, "\\\\")) {
  31949. rootParts = new H.WhereIterable(H.setRuntimeTypeInfo(t1.split("\\"), type$.JSArray_String), new L.WindowsStyle_absolutePathToUri_closure(), type$.WhereIterable_String);
  31950. C.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootParts));
  31951. if (parsed.get$hasTrailingSeparator())
  31952. C.JSArray_methods.add$1(parsed.parts, "");
  31953. return P._Uri__Uri(rootParts.get$first(rootParts), null, parsed.parts, "file");
  31954. } else {
  31955. if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator())
  31956. C.JSArray_methods.add$1(parsed.parts, "");
  31957. t1 = parsed.parts;
  31958. t2 = parsed.root;
  31959. t2.toString;
  31960. t2 = H.stringReplaceAllUnchecked(t2, "/", "");
  31961. C.JSArray_methods.insert$2(t1, 0, H.stringReplaceAllUnchecked(t2, "\\", ""));
  31962. return P._Uri__Uri(null, null, parsed.parts, "file");
  31963. }
  31964. },
  31965. codeUnitsEqual$2: function(codeUnit1, codeUnit2) {
  31966. var upperCase1;
  31967. if (codeUnit1 === codeUnit2)
  31968. return true;
  31969. if (codeUnit1 === 47)
  31970. return codeUnit2 === 92;
  31971. if (codeUnit1 === 92)
  31972. return codeUnit2 === 47;
  31973. if ((codeUnit1 ^ codeUnit2) !== 32)
  31974. return false;
  31975. upperCase1 = codeUnit1 | 32;
  31976. return upperCase1 >= 97 && upperCase1 <= 122;
  31977. },
  31978. pathsEqual$2: function(path1, path2) {
  31979. var t1, t2, i;
  31980. if (path1 == path2)
  31981. return true;
  31982. t1 = path1.length;
  31983. if (t1 !== path2.length)
  31984. return false;
  31985. for (t2 = J.getInterceptor$s(path2), i = 0; i < t1; ++i)
  31986. if (!this.codeUnitsEqual$2(C.JSString_methods._codeUnitAt$1(path1, i), t2._codeUnitAt$1(path2, i)))
  31987. return false;
  31988. return true;
  31989. },
  31990. canonicalizeCodeUnit$1: function(codeUnit) {
  31991. if (codeUnit === 47)
  31992. return 92;
  31993. if (codeUnit < 65)
  31994. return codeUnit;
  31995. if (codeUnit > 90)
  31996. return codeUnit;
  31997. return codeUnit | 32;
  31998. },
  31999. canonicalizePart$1: function(part) {
  32000. return part.toLowerCase();
  32001. },
  32002. get$name: function() {
  32003. return "windows";
  32004. },
  32005. get$separator: function() {
  32006. return "\\";
  32007. }
  32008. };
  32009. L.WindowsStyle_absolutePathToUri_closure.prototype = {
  32010. call$1: function(part) {
  32011. return part !== "";
  32012. }
  32013. };
  32014. F.CssMediaQuery.prototype = {
  32015. merge$1: function(other) {
  32016. var _i, t8, negativeFeatures, features, type, modifier, fewerFeatures, fewerFeatures0, moreFeatures, _this = this, _null = null, _s3_ = "all",
  32017. t1 = _this.modifier,
  32018. ourModifier = t1 == null ? _null : t1.toLowerCase(),
  32019. t2 = _this.type,
  32020. t3 = t2 == null,
  32021. ourType = t3 ? _null : t2.toLowerCase(),
  32022. t4 = other.modifier,
  32023. theirModifier = t4 == null ? _null : t4.toLowerCase(),
  32024. t5 = other.type,
  32025. t6 = t5 == null,
  32026. theirType = t6 ? _null : t5.toLowerCase(),
  32027. t7 = ourType == null;
  32028. if (t7 && theirType == null) {
  32029. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32030. for (t2 = _this.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  32031. t1.push(t2[_i]);
  32032. for (t2 = other.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  32033. t1.push(t2[_i]);
  32034. return new F.MediaQuerySuccessfulMergeResult(new F.CssMediaQuery(_null, _null, P.List_List$unmodifiable(t1, type$.legacy_String)));
  32035. }
  32036. t8 = ourModifier === "not";
  32037. if (t8 !== (theirModifier === "not")) {
  32038. if (ourType == theirType) {
  32039. negativeFeatures = t8 ? _this.features : other.features;
  32040. if (C.JSArray_methods.every$1(negativeFeatures, C.JSArray_methods.get$contains(t8 ? other.features : _this.features)))
  32041. return C._SingletonCssMediaQueryMergeResult_empty;
  32042. else
  32043. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32044. } else if (t3 || B.equalsIgnoreCase(t2, _s3_) || t6 || B.equalsIgnoreCase(t5, _s3_))
  32045. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32046. if (t8) {
  32047. features = other.features;
  32048. type = theirType;
  32049. modifier = theirModifier;
  32050. } else {
  32051. features = _this.features;
  32052. type = ourType;
  32053. modifier = ourModifier;
  32054. }
  32055. } else if (t8) {
  32056. if (ourType != theirType)
  32057. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32058. fewerFeatures = _this.features;
  32059. fewerFeatures0 = other.features;
  32060. t3 = fewerFeatures.length > fewerFeatures0.length;
  32061. moreFeatures = t3 ? fewerFeatures : fewerFeatures0;
  32062. if (t3)
  32063. fewerFeatures = fewerFeatures0;
  32064. if (!C.JSArray_methods.every$1(fewerFeatures, C.JSArray_methods.get$contains(moreFeatures)))
  32065. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32066. features = moreFeatures;
  32067. type = ourType;
  32068. modifier = ourModifier;
  32069. } else if (t3 || B.equalsIgnoreCase(t2, _s3_)) {
  32070. type = (t6 || B.equalsIgnoreCase(t5, _s3_)) && t7 ? _null : theirType;
  32071. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32072. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32073. t3.push(t6[_i]);
  32074. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32075. t3.push(t6[_i]);
  32076. features = t3;
  32077. modifier = theirModifier;
  32078. } else {
  32079. if (t6 || B.equalsIgnoreCase(t5, _s3_)) {
  32080. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32081. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32082. t3.push(t6[_i]);
  32083. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32084. t3.push(t6[_i]);
  32085. features = t3;
  32086. modifier = ourModifier;
  32087. } else {
  32088. if (ourType != theirType)
  32089. return C._SingletonCssMediaQueryMergeResult_empty;
  32090. else {
  32091. modifier = ourModifier == null ? theirModifier : ourModifier;
  32092. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32093. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32094. t3.push(t6[_i]);
  32095. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32096. t3.push(t6[_i]);
  32097. }
  32098. features = t3;
  32099. }
  32100. type = ourType;
  32101. }
  32102. t2 = type == ourType ? t2 : t5;
  32103. return new F.MediaQuerySuccessfulMergeResult(F.CssMediaQuery$(t2, features, modifier == ourModifier ? t1 : t4));
  32104. },
  32105. $eq: function(_, other) {
  32106. if (other == null)
  32107. return false;
  32108. return other instanceof F.CssMediaQuery && other.modifier == this.modifier && other.type == this.type && C.C_ListEquality.equals$2(other.features, this.features);
  32109. },
  32110. get$hashCode: function(_) {
  32111. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ C.C_ListEquality.hash$1(this.features);
  32112. },
  32113. toString$0: function(_) {
  32114. var t2, _this = this,
  32115. t1 = _this.modifier;
  32116. t1 = t1 != null ? t1 + " " : "";
  32117. t2 = _this.type;
  32118. if (t2 != null) {
  32119. t1 += t2;
  32120. if (_this.features.length !== 0)
  32121. t1 += " and ";
  32122. }
  32123. t1 += C.JSArray_methods.join$1(_this.features, " and ");
  32124. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32125. }
  32126. };
  32127. F._SingletonCssMediaQueryMergeResult.prototype = {
  32128. toString$0: function(_) {
  32129. return this._media_query$_name;
  32130. }
  32131. };
  32132. F.MediaQuerySuccessfulMergeResult.prototype = {};
  32133. U.ModifiableCssAtRule.prototype = {
  32134. accept$1$1: function(visitor) {
  32135. return visitor.visitCssAtRule$1(this);
  32136. },
  32137. accept$1: function(visitor) {
  32138. return this.accept$1$1(visitor, type$.dynamic);
  32139. },
  32140. copyWithoutChildren$0: function() {
  32141. var _this = this,
  32142. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  32143. return new U.ModifiableCssAtRule(_this.name, _this.value, _this.isChildless, _this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
  32144. },
  32145. addChild$1: function(child) {
  32146. this.super$ModifiableCssParentNode$addChild(child);
  32147. },
  32148. $isCssAtRule: 1,
  32149. get$isChildless: function() {
  32150. return this.isChildless;
  32151. },
  32152. get$span: function() {
  32153. return this.span;
  32154. }
  32155. };
  32156. R.ModifiableCssComment.prototype = {
  32157. accept$1$1: function(visitor) {
  32158. return visitor.visitCssComment$1(this);
  32159. },
  32160. accept$1: function(visitor) {
  32161. return this.accept$1$1(visitor, type$.dynamic);
  32162. },
  32163. $isCssComment: 1,
  32164. get$span: function() {
  32165. return this.span;
  32166. }
  32167. };
  32168. L.ModifiableCssDeclaration.prototype = {
  32169. accept$1$1: function(visitor) {
  32170. return visitor.visitCssDeclaration$1(this);
  32171. },
  32172. accept$1: function(visitor) {
  32173. return this.accept$1$1(visitor, type$.dynamic);
  32174. },
  32175. get$span: function() {
  32176. return this.span;
  32177. }
  32178. };
  32179. F.ModifiableCssImport.prototype = {
  32180. accept$1$1: function(visitor) {
  32181. return visitor.visitCssImport$1(this);
  32182. },
  32183. accept$1: function(visitor) {
  32184. return this.accept$1$1(visitor, type$.dynamic);
  32185. },
  32186. $isCssImport: 1,
  32187. get$span: function() {
  32188. return this.span;
  32189. }
  32190. };
  32191. U.ModifiableCssKeyframeBlock.prototype = {
  32192. accept$1$1: function(visitor) {
  32193. return visitor.visitCssKeyframeBlock$1(this);
  32194. },
  32195. accept$1: function(visitor) {
  32196. return this.accept$1$1(visitor, type$.dynamic);
  32197. },
  32198. copyWithoutChildren$0: function() {
  32199. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  32200. return new U.ModifiableCssKeyframeBlock(this.selector, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
  32201. },
  32202. get$span: function() {
  32203. return this.span;
  32204. }
  32205. };
  32206. G.ModifiableCssMediaRule.prototype = {
  32207. accept$1$1: function(visitor) {
  32208. return visitor.visitCssMediaRule$1(this);
  32209. },
  32210. accept$1: function(visitor) {
  32211. return this.accept$1$1(visitor, type$.dynamic);
  32212. },
  32213. copyWithoutChildren$0: function() {
  32214. return G.ModifiableCssMediaRule$(this.queries, this.span);
  32215. },
  32216. $isCssMediaRule: 1,
  32217. get$span: function() {
  32218. return this.span;
  32219. }
  32220. };
  32221. B.ModifiableCssNode.prototype = {
  32222. get$hasFollowingSibling: function() {
  32223. var siblings, i, t2,
  32224. t1 = this._parent;
  32225. if (t1 == null)
  32226. return false;
  32227. siblings = t1.children;
  32228. for (i = this._indexInParent + 1, t1 = siblings._collection$_source, t2 = J.getInterceptor$asx(t1); i < t2.get$length(t1); ++i)
  32229. if (!this._node0$_isInvisible$1(t2.elementAt$1(t1, i)))
  32230. return true;
  32231. return false;
  32232. },
  32233. _node0$_isInvisible$1: function(node) {
  32234. if (type$.legacy_CssParentNode._is(node)) {
  32235. if (type$.legacy_CssAtRule._is(node))
  32236. return false;
  32237. if (type$.legacy_CssStyleRule._is(node) && node.selector.value.get$isInvisible())
  32238. return true;
  32239. return J.every$1$ax(node.get$children(), this.get$_node0$_isInvisible());
  32240. } else
  32241. return false;
  32242. },
  32243. get$isGroupEnd: function() {
  32244. return this.isGroupEnd;
  32245. }
  32246. };
  32247. B.ModifiableCssParentNode.prototype = {
  32248. get$isChildless: function() {
  32249. return false;
  32250. },
  32251. addChild$1: function(child) {
  32252. var t1;
  32253. child._parent = this;
  32254. t1 = this._children;
  32255. child._indexInParent = t1.length;
  32256. t1.push(child);
  32257. },
  32258. $isCssParentNode: 1,
  32259. get$children: function() {
  32260. return this.children;
  32261. }
  32262. };
  32263. X.ModifiableCssStyleRule.prototype = {
  32264. accept$1$1: function(visitor) {
  32265. return visitor.visitCssStyleRule$1(this);
  32266. },
  32267. accept$1: function(visitor) {
  32268. return this.accept$1$1(visitor, type$.dynamic);
  32269. },
  32270. copyWithoutChildren$0: function() {
  32271. return X.ModifiableCssStyleRule$(this.selector, this.span, this.originalSelector);
  32272. },
  32273. $isCssStyleRule: 1,
  32274. get$span: function() {
  32275. return this.span;
  32276. }
  32277. };
  32278. V.ModifiableCssStylesheet.prototype = {
  32279. accept$1$1: function(visitor) {
  32280. return visitor.visitCssStylesheet$1(this);
  32281. },
  32282. accept$1: function(visitor) {
  32283. return this.accept$1$1(visitor, type$.dynamic);
  32284. },
  32285. copyWithoutChildren$0: function() {
  32286. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  32287. return new V.ModifiableCssStylesheet(this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
  32288. },
  32289. $isCssStylesheet: 1,
  32290. get$span: function() {
  32291. return this.span;
  32292. }
  32293. };
  32294. B.ModifiableCssSupportsRule.prototype = {
  32295. accept$1$1: function(visitor) {
  32296. return visitor.visitCssSupportsRule$1(this);
  32297. },
  32298. accept$1: function(visitor) {
  32299. return this.accept$1$1(visitor, type$.dynamic);
  32300. },
  32301. copyWithoutChildren$0: function() {
  32302. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  32303. return new B.ModifiableCssSupportsRule(this.condition, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
  32304. },
  32305. $isCssSupportsRule: 1,
  32306. get$span: function() {
  32307. return this.span;
  32308. }
  32309. };
  32310. F.ModifiableCssValue.prototype = {
  32311. toString$0: function(_) {
  32312. return J.toString$0$(this.value);
  32313. },
  32314. $isCssValue: 1,
  32315. $isAstNode: 1,
  32316. get$value: function(receiver) {
  32317. return this.value;
  32318. },
  32319. get$span: function() {
  32320. return this.span;
  32321. }
  32322. };
  32323. B.CssNode.prototype = {
  32324. toString$0: function(_) {
  32325. return N.serialize(this, true, null, true, null, false, null, true).css;
  32326. }
  32327. };
  32328. B.CssParentNode.prototype = {};
  32329. V.CssStylesheet.prototype = {
  32330. get$isGroupEnd: function() {
  32331. return false;
  32332. },
  32333. get$isChildless: function() {
  32334. return false;
  32335. },
  32336. accept$1$1: function(visitor) {
  32337. return visitor.visitCssStylesheet$1(this);
  32338. },
  32339. accept$1: function(visitor) {
  32340. return this.accept$1$1(visitor, type$.dynamic);
  32341. },
  32342. get$children: function() {
  32343. return this.children;
  32344. },
  32345. get$span: function() {
  32346. return this.span;
  32347. }
  32348. };
  32349. F.CssValue.prototype = {
  32350. toString$0: function(_) {
  32351. return J.toString$0$(this.value);
  32352. },
  32353. $isAstNode: 1,
  32354. get$value: function(receiver) {
  32355. return this.value;
  32356. },
  32357. get$span: function() {
  32358. return this.span;
  32359. }
  32360. };
  32361. B.AstNode.prototype = {};
  32362. B._FakeAstNode.prototype = {
  32363. get$span: function() {
  32364. return this._callback.call$0();
  32365. },
  32366. $isAstNode: 1
  32367. };
  32368. Z.Argument.prototype = {
  32369. toString$0: function(_) {
  32370. var t1 = this.defaultValue,
  32371. t2 = this.name;
  32372. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  32373. },
  32374. $isAstNode: 1,
  32375. get$span: function() {
  32376. return this.span;
  32377. }
  32378. };
  32379. B.ArgumentDeclaration.prototype = {
  32380. get$spanWithName: function() {
  32381. var t3, t4,
  32382. t1 = this.span,
  32383. t2 = t1.file,
  32384. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  32385. i = Y.FileLocation$_(t2, t1._file$_start).offset - 1;
  32386. while (true) {
  32387. if (i > 0) {
  32388. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  32389. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  32390. } else
  32391. t3 = false;
  32392. if (!t3)
  32393. break;
  32394. --i;
  32395. }
  32396. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  32397. if (!(t3 === 95 || T.isAlphabetic0(t3) || t3 >= 128 || T.isDigit(t3) || t3 === 45))
  32398. return t1;
  32399. --i;
  32400. while (true) {
  32401. if (i >= 0) {
  32402. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  32403. if (t3 !== 95) {
  32404. if (!(t3 >= 97 && t3 <= 122))
  32405. t4 = t3 >= 65 && t3 <= 90;
  32406. else
  32407. t4 = true;
  32408. t4 = t4 || t3 >= 128;
  32409. } else
  32410. t4 = true;
  32411. if (!t4) {
  32412. t4 = t3 >= 48 && t3 <= 57;
  32413. t3 = t4 || t3 === 45;
  32414. } else
  32415. t3 = true;
  32416. } else
  32417. t3 = false;
  32418. if (!t3)
  32419. break;
  32420. --i;
  32421. }
  32422. t3 = i + 1;
  32423. t4 = C.JSString_methods.codeUnitAt$1(text, t3);
  32424. if (!(t4 === 95 || T.isAlphabetic0(t4) || t4 >= 128))
  32425. return t1;
  32426. return B.SpanExtensions_trim(t2.span$2(t3, Y.FileLocation$_(t2, t1._end).offset));
  32427. },
  32428. get$originalRestArgument: function() {
  32429. var t1, text;
  32430. if (this.restArgument == null)
  32431. return null;
  32432. t1 = this.span;
  32433. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  32434. return C.JSString_methods.substring$2(C.JSString_methods.substring$1(text, C.JSString_methods.lastIndexOf$1(text, "$")), 0, C.JSString_methods.indexOf$1(text, "."));
  32435. },
  32436. verify$2: function(positional, names) {
  32437. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  32438. _s10_ = "invocation",
  32439. _s8_ = "argument";
  32440. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  32441. argument = t1[i];
  32442. if (i < positional) {
  32443. t4 = argument.name;
  32444. if (t3.containsKey$1(t4))
  32445. throw H.wrapException(E.SassScriptException$("Argument " + H.S(_this._originalArgumentName$1(t4)) + string$.x20was_p));
  32446. } else {
  32447. t4 = argument.name;
  32448. if (t3.containsKey$1(t4))
  32449. ++namedUsed;
  32450. else if (argument.defaultValue == null)
  32451. throw H.wrapException(E.MultiSpanSassScriptException$("Missing argument " + H.S(_this._originalArgumentName$1(t4)) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String)));
  32452. }
  32453. }
  32454. if (_this.restArgument != null)
  32455. return;
  32456. if (positional > t2) {
  32457. t1 = "Only " + t2 + " ";
  32458. throw H.wrapException(E.MultiSpanSassScriptException$(t1 + (names.get$isEmpty(names) ? "" : "positional ") + B.pluralize(_s8_, t2, null) + " allowed, but " + positional + " " + B.pluralize("was", positional, "were") + " passed.", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String)));
  32459. }
  32460. if (namedUsed < t3.get$length(t3)) {
  32461. t2 = type$.legacy_String;
  32462. unknownNames = P.LinkedHashSet_LinkedHashSet$of(names, t2);
  32463. unknownNames.removeAll$1(new H.MappedListIterable(t1, new B.ArgumentDeclaration_verify_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object*>")));
  32464. throw H.wrapException(E.MultiSpanSassScriptException$("No " + B.pluralize(_s8_, unknownNames._collection$_length, null) + " named " + H.S(B.toSentence(unknownNames.map$1$1(0, new B.ArgumentDeclaration_verify_closure0(), type$.legacy_Object), "or")) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, t2)));
  32465. }
  32466. },
  32467. _originalArgumentName$1: function($name) {
  32468. var t1, t2, _i, argument, t3, t4, text, end;
  32469. if ($name === this.restArgument)
  32470. return this.get$originalRestArgument();
  32471. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  32472. argument = t1[_i];
  32473. if (argument.name === $name) {
  32474. t1 = argument.defaultValue;
  32475. t2 = argument.span;
  32476. t3 = t2.file;
  32477. t4 = t2._file$_start;
  32478. t2 = t2._end;
  32479. if (t1 == null) {
  32480. t1 = t3._decodedChars;
  32481. t1 = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  32482. } else {
  32483. t1 = t3._decodedChars;
  32484. text = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  32485. t1 = C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":"));
  32486. end = B._lastNonWhitespace(t1, false);
  32487. t1 = end == null ? "" : C.JSString_methods.substring$2(t1, 0, end + 1);
  32488. }
  32489. return t1;
  32490. }
  32491. }
  32492. throw H.wrapException(P.ArgumentError$(string$.This_d + $name + '".'));
  32493. },
  32494. matches$2: function(positional, names) {
  32495. var t1, t2, t3, namedUsed, i, argument;
  32496. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  32497. argument = t1[i];
  32498. if (i < positional) {
  32499. if (t3.containsKey$1(argument.name))
  32500. return false;
  32501. } else if (t3.containsKey$1(argument.name))
  32502. ++namedUsed;
  32503. else if (argument.defaultValue == null)
  32504. return false;
  32505. }
  32506. if (this.restArgument != null)
  32507. return true;
  32508. if (positional > t2)
  32509. return false;
  32510. if (namedUsed < t3.get$length(t3))
  32511. return false;
  32512. return true;
  32513. },
  32514. toString$0: function(_) {
  32515. var t2, t3, _i,
  32516. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32517. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  32518. t1.push(J.toString$0$(t2[_i]));
  32519. t2 = this.restArgument;
  32520. if (t2 != null)
  32521. t1.push(t2 + "...");
  32522. return C.JSArray_methods.join$1(t1, ", ");
  32523. },
  32524. $isAstNode: 1,
  32525. get$span: function() {
  32526. return this.span;
  32527. }
  32528. };
  32529. B.ArgumentDeclaration_verify_closure.prototype = {
  32530. call$1: function(argument) {
  32531. return argument.name;
  32532. }
  32533. };
  32534. B.ArgumentDeclaration_verify_closure0.prototype = {
  32535. call$1: function($name) {
  32536. return "$" + H.S($name);
  32537. }
  32538. };
  32539. X.ArgumentInvocation.prototype = {
  32540. get$isEmpty: function(_) {
  32541. var t1;
  32542. if (this.positional.length === 0) {
  32543. t1 = this.named;
  32544. t1 = t1.get$isEmpty(t1) && this.rest == null;
  32545. } else
  32546. t1 = false;
  32547. return t1;
  32548. },
  32549. toString$0: function(_) {
  32550. var t2, t3, _i, t4, _this = this,
  32551. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  32552. for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  32553. t1.push(t2[_i]);
  32554. for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys()); t3.moveNext$0();) {
  32555. t4 = t3.get$current(t3);
  32556. t1.push(H.S(t4) + ": " + H.S(t2.$index(0, t4)));
  32557. }
  32558. t2 = _this.rest;
  32559. if (t2 != null)
  32560. t1.push(t2.toString$0(0) + "...");
  32561. t2 = _this.keywordRest;
  32562. if (t2 != null)
  32563. t1.push(t2.toString$0(0) + "...");
  32564. return "(" + C.JSArray_methods.join$1(t1, ", ") + ")";
  32565. },
  32566. $isAstNode: 1,
  32567. get$span: function() {
  32568. return this.span;
  32569. }
  32570. };
  32571. V.AtRootQuery.prototype = {
  32572. excludes$1: function(node) {
  32573. var _this = this;
  32574. if (_this._all)
  32575. return !_this.include;
  32576. if (_this._at_root_query$_rule && type$.legacy_CssStyleRule._is(node))
  32577. return !_this.include;
  32578. return _this.names.contains$1(0, _this._nameFor$1(node)) !== _this.include;
  32579. },
  32580. _nameFor$1: function(node) {
  32581. var t1;
  32582. if (type$.legacy_CssMediaRule._is(node))
  32583. return "media";
  32584. if (type$.legacy_CssSupportsRule._is(node))
  32585. return "supports";
  32586. if (type$.legacy_CssAtRule._is(node)) {
  32587. t1 = node.name;
  32588. return t1.get$value(t1).toLowerCase();
  32589. }
  32590. return null;
  32591. }
  32592. };
  32593. Z.ConfiguredVariable.prototype = {
  32594. toString$0: function(_) {
  32595. var t1 = "$" + this.name + ": " + H.S(this.expression);
  32596. return t1 + (this.isGuarded ? " !default" : "");
  32597. },
  32598. $isAstNode: 1,
  32599. get$span: function() {
  32600. return this.span;
  32601. }
  32602. };
  32603. T.Expression.prototype = {$isAstNode: 1};
  32604. V.BinaryOperationExpression.prototype = {
  32605. get$span: function() {
  32606. var right,
  32607. left = this.left;
  32608. for (; left instanceof V.BinaryOperationExpression;)
  32609. left = left.left;
  32610. right = this.right;
  32611. for (; right instanceof V.BinaryOperationExpression;)
  32612. right = right.right;
  32613. return B.spanForList(H.setRuntimeTypeInfo([left, right], type$.JSArray_legacy_AstNode));
  32614. },
  32615. accept$1$1: function(visitor) {
  32616. return visitor.visitBinaryOperationExpression$1(this);
  32617. },
  32618. accept$1: function(visitor) {
  32619. return this.accept$1$1(visitor, type$.dynamic);
  32620. },
  32621. toString$0: function(_) {
  32622. var t2, right, rightNeedsParens, _this = this,
  32623. left = _this.left,
  32624. leftNeedsParens = left instanceof V.BinaryOperationExpression && left.operator.precedence < _this.operator.precedence,
  32625. t1 = leftNeedsParens ? H.Primitives_stringFromCharCode(40) : "";
  32626. t1 += H.S(left);
  32627. if (leftNeedsParens)
  32628. t1 += H.Primitives_stringFromCharCode(41);
  32629. t2 = _this.operator;
  32630. t1 = t1 + H.Primitives_stringFromCharCode(32) + t2.operator + H.Primitives_stringFromCharCode(32);
  32631. right = _this.right;
  32632. rightNeedsParens = right instanceof V.BinaryOperationExpression && right.operator.precedence <= t2.precedence;
  32633. if (rightNeedsParens)
  32634. t1 += H.Primitives_stringFromCharCode(40);
  32635. t1 += H.S(right);
  32636. if (rightNeedsParens)
  32637. t1 += H.Primitives_stringFromCharCode(41);
  32638. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32639. },
  32640. $isAstNode: 1,
  32641. $isExpression: 1
  32642. };
  32643. V.BinaryOperator.prototype = {
  32644. toString$0: function(_) {
  32645. return this.name;
  32646. }
  32647. };
  32648. Z.BooleanExpression.prototype = {
  32649. accept$1$1: function(visitor) {
  32650. return visitor.visitBooleanExpression$1(this);
  32651. },
  32652. accept$1: function(visitor) {
  32653. return this.accept$1$1(visitor, type$.dynamic);
  32654. },
  32655. toString$0: function(_) {
  32656. return String(this.value);
  32657. },
  32658. $isAstNode: 1,
  32659. $isExpression: 1,
  32660. get$span: function() {
  32661. return this.span;
  32662. }
  32663. };
  32664. K.ColorExpression.prototype = {
  32665. get$span: function() {
  32666. return this.value.originalSpan;
  32667. },
  32668. accept$1$1: function(visitor) {
  32669. return visitor.visitColorExpression$1(this);
  32670. },
  32671. accept$1: function(visitor) {
  32672. return this.accept$1$1(visitor, type$.dynamic);
  32673. },
  32674. toString$0: function(_) {
  32675. return N.serializeValue0(this.value, true, true);
  32676. },
  32677. $isAstNode: 1,
  32678. $isExpression: 1
  32679. };
  32680. F.FunctionExpression.prototype = {
  32681. accept$1$1: function(visitor) {
  32682. return visitor.visitFunctionExpression$1(this);
  32683. },
  32684. accept$1: function(visitor) {
  32685. return this.accept$1$1(visitor, type$.dynamic);
  32686. },
  32687. toString$0: function(_) {
  32688. var t1 = this.namespace;
  32689. t1 = t1 != null ? t1 + "." : "";
  32690. t1 += this.name.toString$0(0) + this.$arguments.toString$0(0);
  32691. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32692. },
  32693. $isAstNode: 1,
  32694. $isExpression: 1,
  32695. get$span: function() {
  32696. return this.span;
  32697. }
  32698. };
  32699. L.IfExpression.prototype = {
  32700. accept$1$1: function(visitor) {
  32701. return visitor.visitIfExpression$1(this);
  32702. },
  32703. accept$1: function(visitor) {
  32704. return this.accept$1$1(visitor, type$.dynamic);
  32705. },
  32706. toString$0: function(_) {
  32707. return "if" + this.$arguments.toString$0(0);
  32708. },
  32709. $isAstNode: 1,
  32710. $isExpression: 1,
  32711. get$span: function() {
  32712. return this.span;
  32713. }
  32714. };
  32715. D.ListExpression.prototype = {
  32716. accept$1$1: function(visitor) {
  32717. return visitor.visitListExpression$1(this);
  32718. },
  32719. accept$1: function(visitor) {
  32720. return this.accept$1$1(visitor, type$.dynamic);
  32721. },
  32722. toString$0: function(_) {
  32723. var _this = this,
  32724. t1 = _this.hasBrackets,
  32725. t2 = t1 ? H.Primitives_stringFromCharCode(91) : "",
  32726. t3 = _this.contents,
  32727. t4 = _this.separator === C.ListSeparator_comma ? ", " : " ";
  32728. t4 = t2 + new H.MappedListIterable(t3, new D.ListExpression_toString_closure(_this), H._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String*>")).join$1(0, t4);
  32729. t1 = t1 ? t4 + H.Primitives_stringFromCharCode(93) : t4;
  32730. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32731. },
  32732. _list0$_elementNeedsParens$1: function(expression) {
  32733. var t1, t2;
  32734. if (expression instanceof D.ListExpression) {
  32735. if (expression.contents.length < 2)
  32736. return false;
  32737. if (expression.hasBrackets)
  32738. return false;
  32739. t1 = this.separator;
  32740. t2 = t1 === C.ListSeparator_comma;
  32741. return t2 ? t2 : t1 !== C.ListSeparator_undecided;
  32742. }
  32743. if (this.separator !== C.ListSeparator_space)
  32744. return false;
  32745. if (expression instanceof X.UnaryOperationExpression) {
  32746. t1 = expression.operator;
  32747. return t1 === C.UnaryOperator_j2w || t1 === C.UnaryOperator_U4G;
  32748. }
  32749. return false;
  32750. },
  32751. $isAstNode: 1,
  32752. $isExpression: 1,
  32753. get$span: function() {
  32754. return this.span;
  32755. }
  32756. };
  32757. D.ListExpression_toString_closure.prototype = {
  32758. call$1: function(element) {
  32759. return this.$this._list0$_elementNeedsParens$1(element) ? "(" + H.S(element) + ")" : J.toString$0$(element);
  32760. }
  32761. };
  32762. A.MapExpression.prototype = {
  32763. accept$1$1: function(visitor) {
  32764. return visitor.visitMapExpression$1(this);
  32765. },
  32766. accept$1: function(visitor) {
  32767. return this.accept$1$1(visitor, type$.dynamic);
  32768. },
  32769. toString$0: function(_) {
  32770. var t1 = this.pairs;
  32771. return "(" + new H.MappedListIterable(t1, new A.MapExpression_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$1(0, ", ") + ")";
  32772. },
  32773. $isAstNode: 1,
  32774. $isExpression: 1,
  32775. get$span: function() {
  32776. return this.span;
  32777. }
  32778. };
  32779. A.MapExpression_toString_closure.prototype = {
  32780. call$1: function(pair) {
  32781. return H.S(pair.item1) + ": " + H.S(pair.item2);
  32782. }
  32783. };
  32784. O.NullExpression.prototype = {
  32785. accept$1$1: function(visitor) {
  32786. return visitor.visitNullExpression$1(this);
  32787. },
  32788. accept$1: function(visitor) {
  32789. return this.accept$1$1(visitor, type$.dynamic);
  32790. },
  32791. toString$0: function(_) {
  32792. return "null";
  32793. },
  32794. $isAstNode: 1,
  32795. $isExpression: 1,
  32796. get$span: function() {
  32797. return this.span;
  32798. }
  32799. };
  32800. T.NumberExpression.prototype = {
  32801. accept$1$1: function(visitor) {
  32802. return visitor.visitNumberExpression$1(this);
  32803. },
  32804. accept$1: function(visitor) {
  32805. return this.accept$1$1(visitor, type$.dynamic);
  32806. },
  32807. toString$0: function(_) {
  32808. var t1 = H.S(this.value),
  32809. t2 = this.unit;
  32810. return t1 + (t2 == null ? "" : t2);
  32811. },
  32812. $isAstNode: 1,
  32813. $isExpression: 1,
  32814. get$span: function() {
  32815. return this.span;
  32816. }
  32817. };
  32818. T.ParenthesizedExpression.prototype = {
  32819. accept$1$1: function(visitor) {
  32820. return visitor.visitParenthesizedExpression$1(this);
  32821. },
  32822. accept$1: function(visitor) {
  32823. return this.accept$1$1(visitor, type$.dynamic);
  32824. },
  32825. toString$0: function(_) {
  32826. return J.toString$0$(this.expression);
  32827. },
  32828. $isAstNode: 1,
  32829. $isExpression: 1,
  32830. get$span: function() {
  32831. return this.span;
  32832. }
  32833. };
  32834. T.SelectorExpression.prototype = {
  32835. accept$1$1: function(visitor) {
  32836. return visitor.visitSelectorExpression$1(this);
  32837. },
  32838. accept$1: function(visitor) {
  32839. return this.accept$1$1(visitor, type$.dynamic);
  32840. },
  32841. toString$0: function(_) {
  32842. return "&";
  32843. },
  32844. $isAstNode: 1,
  32845. $isExpression: 1,
  32846. get$span: function() {
  32847. return this.span;
  32848. }
  32849. };
  32850. D.StringExpression.prototype = {
  32851. get$span: function() {
  32852. return this.text.span;
  32853. },
  32854. accept$1$1: function(visitor) {
  32855. return visitor.visitStringExpression$1(this);
  32856. },
  32857. accept$1: function(visitor) {
  32858. return this.accept$1$1(visitor, type$.dynamic);
  32859. },
  32860. asInterpolation$1$static: function($static) {
  32861. var quote, t1, t2, buffer, t3, t4, t5, t6, _i, value, t7, t8, i, codeUnit, next, t9, _this = this;
  32862. if (!_this.hasQuotes)
  32863. return _this.text;
  32864. quote = _this._bestQuote$0();
  32865. t1 = new P.StringBuffer("");
  32866. t2 = [];
  32867. buffer = new Z.InterpolationBuffer(t1, t2);
  32868. t1._contents += H.Primitives_stringFromCharCode(quote);
  32869. for (t3 = _this.text, t4 = t3.contents, t5 = t4.length, t6 = type$.legacy_Expression, _i = 0; _i < t5; ++_i) {
  32870. value = t4[_i];
  32871. if (t6._is(value)) {
  32872. buffer._flushText$0();
  32873. t2.push(value);
  32874. } else if (typeof value == "string")
  32875. for (t7 = value.length, t8 = t7 - 1, i = 0; i < t7; ++i) {
  32876. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  32877. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
  32878. t1._contents += H.Primitives_stringFromCharCode(92);
  32879. t1._contents += H.Primitives_stringFromCharCode(97);
  32880. if (i !== t8) {
  32881. next = C.JSString_methods._codeUnitAt$1(value, i + 1);
  32882. if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || T.isHex(next))
  32883. t1._contents += H.Primitives_stringFromCharCode(32);
  32884. }
  32885. } else {
  32886. if (codeUnit !== quote)
  32887. if (codeUnit !== 92)
  32888. t9 = $static && codeUnit === 35 && i < t8 && C.JSString_methods._codeUnitAt$1(value, i + 1) === 123;
  32889. else
  32890. t9 = true;
  32891. else
  32892. t9 = true;
  32893. if (t9)
  32894. t1._contents += H.Primitives_stringFromCharCode(92);
  32895. t1._contents += H.Primitives_stringFromCharCode(codeUnit);
  32896. }
  32897. }
  32898. }
  32899. t1._contents += H.Primitives_stringFromCharCode(quote);
  32900. return buffer.interpolation$1(t3.span);
  32901. },
  32902. asInterpolation$0: function() {
  32903. return this.asInterpolation$1$static(false);
  32904. },
  32905. _bestQuote$0: function() {
  32906. var t1, t2, containsDoubleQuote, _i, value, t3, i, codeUnit;
  32907. for (t1 = this.text.contents, t2 = t1.length, containsDoubleQuote = false, _i = 0; _i < t2; ++_i) {
  32908. value = t1[_i];
  32909. if (typeof value == "string")
  32910. for (t3 = value.length, i = 0; i < t3; ++i) {
  32911. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  32912. if (codeUnit === 39)
  32913. return 34;
  32914. if (codeUnit === 34)
  32915. containsDoubleQuote = true;
  32916. }
  32917. }
  32918. return containsDoubleQuote ? 39 : 34;
  32919. },
  32920. toString$0: function(_) {
  32921. return this.asInterpolation$0().toString$0(0);
  32922. },
  32923. $isAstNode: 1,
  32924. $isExpression: 1
  32925. };
  32926. X.UnaryOperationExpression.prototype = {
  32927. accept$1$1: function(visitor) {
  32928. return visitor.visitUnaryOperationExpression$1(this);
  32929. },
  32930. accept$1: function(visitor) {
  32931. return this.accept$1$1(visitor, type$.dynamic);
  32932. },
  32933. toString$0: function(_) {
  32934. var t1 = this.operator,
  32935. t2 = t1.operator;
  32936. t1 = t1 === C.UnaryOperator_not_not ? t2 + H.Primitives_stringFromCharCode(32) : t2;
  32937. t1 += H.S(this.operand);
  32938. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32939. },
  32940. $isAstNode: 1,
  32941. $isExpression: 1,
  32942. get$span: function() {
  32943. return this.span;
  32944. }
  32945. };
  32946. X.UnaryOperator.prototype = {
  32947. toString$0: function(_) {
  32948. return this.name;
  32949. }
  32950. };
  32951. F.ValueExpression.prototype = {
  32952. accept$1$1: function(visitor) {
  32953. return visitor.visitValueExpression$1(this);
  32954. },
  32955. accept$1: function(visitor) {
  32956. return this.accept$1$1(visitor, type$.dynamic);
  32957. },
  32958. toString$0: function(_) {
  32959. return J.toString$0$(this.value);
  32960. },
  32961. $isAstNode: 1,
  32962. $isExpression: 1,
  32963. get$span: function() {
  32964. return this.span;
  32965. }
  32966. };
  32967. S.VariableExpression.prototype = {
  32968. accept$1$1: function(visitor) {
  32969. return visitor.visitVariableExpression$1(this);
  32970. },
  32971. accept$1: function(visitor) {
  32972. return this.accept$1$1(visitor, type$.dynamic);
  32973. },
  32974. toString$0: function(_) {
  32975. var t1 = this.namespace;
  32976. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  32977. t1 += this.name;
  32978. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32979. },
  32980. $isAstNode: 1,
  32981. $isExpression: 1,
  32982. get$span: function() {
  32983. return this.span;
  32984. }
  32985. };
  32986. F.Import.prototype = {$isAstNode: 1};
  32987. B.DynamicImport.prototype = {
  32988. toString$0: function(_) {
  32989. return new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([this.url], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain();
  32990. },
  32991. $isAstNode: 1,
  32992. $isImport: 1,
  32993. get$span: function() {
  32994. return this.span;
  32995. }
  32996. };
  32997. Q.StaticImport.prototype = {
  32998. toString$0: function(_) {
  32999. var t1 = this.url.toString$0(0),
  33000. t2 = this.supports;
  33001. if (t2 != null)
  33002. t1 += " supports(" + t2.toString$0(0) + ")";
  33003. t2 = this.media;
  33004. if (t2 != null)
  33005. t1 += " " + t2.toString$0(0);
  33006. t1 += H.Primitives_stringFromCharCode(59);
  33007. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33008. },
  33009. $isAstNode: 1,
  33010. $isImport: 1,
  33011. get$span: function() {
  33012. return this.span;
  33013. }
  33014. };
  33015. X.Interpolation.prototype = {
  33016. get$asPlain: function() {
  33017. var first,
  33018. t1 = this.contents,
  33019. t2 = t1.length;
  33020. if (t2 === 0)
  33021. return "";
  33022. if (t2 > 1)
  33023. return null;
  33024. first = C.JSArray_methods.get$first(t1);
  33025. return typeof first == "string" ? first : null;
  33026. },
  33027. Interpolation$2: function(contents, span) {
  33028. var t1, t2, t3, i, t4, t5,
  33029. _s8_ = "contents";
  33030. for (t1 = this.contents, t2 = t1.length, t3 = type$.legacy_Expression, i = 0; i < t2; ++i) {
  33031. t4 = t1[i];
  33032. t5 = typeof t4 == "string";
  33033. if (!t5 && !t3._is(t4))
  33034. throw H.wrapException(P.ArgumentError$value(t1, _s8_, string$.May_on));
  33035. if (i !== 0 && typeof t1[i - 1] == "string" && t5)
  33036. throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  33037. }
  33038. },
  33039. toString$0: function(_) {
  33040. var t1 = this.contents;
  33041. return new H.MappedListIterable(t1, new X.Interpolation_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  33042. },
  33043. $isAstNode: 1,
  33044. get$span: function() {
  33045. return this.span;
  33046. }
  33047. };
  33048. X.Interpolation_toString_closure.prototype = {
  33049. call$1: function(value) {
  33050. return typeof value == "string" ? value : "#{" + H.S(value) + "}";
  33051. },
  33052. $signature: 27
  33053. };
  33054. B.SassNode.prototype = {};
  33055. O.Statement.prototype = {$isAstNode: 1};
  33056. V.AtRootRule.prototype = {
  33057. accept$1$1: function(visitor) {
  33058. return visitor.visitAtRootRule$1(this);
  33059. },
  33060. accept$1: function(visitor) {
  33061. return this.accept$1$1(visitor, type$.dynamic);
  33062. },
  33063. toString$0: function(_) {
  33064. var buffer = new P.StringBuffer("@at-root "),
  33065. t1 = this.query;
  33066. if (t1 != null)
  33067. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  33068. t1 = this.children;
  33069. return buffer.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33070. },
  33071. get$span: function() {
  33072. return this.span;
  33073. }
  33074. };
  33075. U.AtRule.prototype = {
  33076. accept$1$1: function(visitor) {
  33077. return visitor.visitAtRule$1(this);
  33078. },
  33079. accept$1: function(visitor) {
  33080. return this.accept$1$1(visitor, type$.dynamic);
  33081. },
  33082. toString$0: function(_) {
  33083. var t1 = "@" + this.name.toString$0(0),
  33084. buffer = new P.StringBuffer(t1),
  33085. t2 = this.value;
  33086. if (t2 != null)
  33087. buffer._contents = t1 + (" " + t2.toString$0(0));
  33088. t1 = this.children;
  33089. return t1 == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + C.JSArray_methods.join$1(t1, " ") + "}";
  33090. },
  33091. get$span: function() {
  33092. return this.span;
  33093. }
  33094. };
  33095. M.CallableDeclaration.prototype = {
  33096. get$span: function() {
  33097. return this.span;
  33098. }
  33099. };
  33100. Y.ContentBlock.prototype = {
  33101. accept$1$1: function(visitor) {
  33102. return visitor.visitContentBlock$1(this);
  33103. },
  33104. accept$1: function(visitor) {
  33105. return this.accept$1$1(visitor, type$.dynamic);
  33106. },
  33107. toString$0: function(_) {
  33108. var t2,
  33109. t1 = this.$arguments;
  33110. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  33111. t2 = this.children;
  33112. return t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  33113. }
  33114. };
  33115. Q.ContentRule.prototype = {
  33116. accept$1$1: function(visitor) {
  33117. return visitor.visitContentRule$1(this);
  33118. },
  33119. accept$1: function(visitor) {
  33120. return this.accept$1$1(visitor, type$.dynamic);
  33121. },
  33122. toString$0: function(_) {
  33123. var t1 = this.$arguments;
  33124. return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  33125. },
  33126. $isAstNode: 1,
  33127. $isStatement: 1,
  33128. get$span: function() {
  33129. return this.span;
  33130. }
  33131. };
  33132. Q.DebugRule.prototype = {
  33133. accept$1$1: function(visitor) {
  33134. return visitor.visitDebugRule$1(this);
  33135. },
  33136. accept$1: function(visitor) {
  33137. return this.accept$1$1(visitor, type$.dynamic);
  33138. },
  33139. toString$0: function(_) {
  33140. return "@debug " + H.S(this.expression) + ";";
  33141. },
  33142. $isAstNode: 1,
  33143. $isStatement: 1,
  33144. get$span: function() {
  33145. return this.span;
  33146. }
  33147. };
  33148. L.Declaration.prototype = {
  33149. accept$1$1: function(visitor) {
  33150. return visitor.visitDeclaration$1(this);
  33151. },
  33152. accept$1: function(visitor) {
  33153. return this.accept$1$1(visitor, type$.dynamic);
  33154. },
  33155. toString$0: function(_) {
  33156. return H.S(this.name) + ": " + H.S(this.value) + ";";
  33157. },
  33158. get$span: function() {
  33159. return this.span;
  33160. }
  33161. };
  33162. V.EachRule.prototype = {
  33163. accept$1$1: function(visitor) {
  33164. return visitor.visitEachRule$1(this);
  33165. },
  33166. accept$1: function(visitor) {
  33167. return this.accept$1$1(visitor, type$.dynamic);
  33168. },
  33169. toString$0: function(_) {
  33170. var t1 = this.variables,
  33171. t2 = this.children;
  33172. return "@each " + new H.MappedListIterable(t1, new V.EachRule_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$1(0, ", ") + " in " + H.S(this.list) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  33173. },
  33174. get$span: function() {
  33175. return this.span;
  33176. }
  33177. };
  33178. V.EachRule_toString_closure.prototype = {
  33179. call$1: function(variable) {
  33180. return C.JSString_methods.$add("$", variable);
  33181. }
  33182. };
  33183. D.ErrorRule.prototype = {
  33184. accept$1$1: function(visitor) {
  33185. return visitor.visitErrorRule$1(this);
  33186. },
  33187. accept$1: function(visitor) {
  33188. return this.accept$1$1(visitor, type$.dynamic);
  33189. },
  33190. toString$0: function(_) {
  33191. return "@error " + H.S(this.expression) + ";";
  33192. },
  33193. $isAstNode: 1,
  33194. $isStatement: 1,
  33195. get$span: function() {
  33196. return this.span;
  33197. }
  33198. };
  33199. X.ExtendRule.prototype = {
  33200. accept$1$1: function(visitor) {
  33201. return visitor.visitExtendRule$1(this);
  33202. },
  33203. accept$1: function(visitor) {
  33204. return this.accept$1$1(visitor, type$.dynamic);
  33205. },
  33206. toString$0: function(_) {
  33207. return "@extend " + this.selector.toString$0(0);
  33208. },
  33209. $isAstNode: 1,
  33210. $isStatement: 1,
  33211. get$span: function() {
  33212. return this.span;
  33213. }
  33214. };
  33215. B.ForRule.prototype = {
  33216. accept$1$1: function(visitor) {
  33217. return visitor.visitForRule$1(this);
  33218. },
  33219. accept$1: function(visitor) {
  33220. return this.accept$1$1(visitor, type$.dynamic);
  33221. },
  33222. toString$0: function(_) {
  33223. var _this = this,
  33224. t1 = "@for $" + _this.variable + " from " + H.S(_this.from) + " ",
  33225. t2 = _this.children;
  33226. return t1 + (_this.isExclusive ? "to" : "through") + " " + H.S(_this.to) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  33227. },
  33228. get$span: function() {
  33229. return this.span;
  33230. }
  33231. };
  33232. L.ForwardRule.prototype = {
  33233. accept$1$1: function(visitor) {
  33234. return visitor.visitForwardRule$1(this);
  33235. },
  33236. accept$1: function(visitor) {
  33237. return this.accept$1$1(visitor, type$.dynamic);
  33238. },
  33239. toString$0: function(_) {
  33240. var t3, _this = this,
  33241. t1 = "@forward " + H.S(new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([J.toString$0$(_this.url)], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain()),
  33242. t2 = _this.shownMixinsAndFunctions;
  33243. if (t2 != null)
  33244. t1 = t1 + " show " + _this._forward_rule$_memberList$2(t2, _this.shownVariables);
  33245. else {
  33246. t2 = _this.hiddenMixinsAndFunctions;
  33247. if (t2 != null) {
  33248. t3 = t2._base;
  33249. t3 = t3.get$isNotEmpty(t3);
  33250. } else
  33251. t3 = false;
  33252. if (t3)
  33253. t1 = t1 + " hide " + _this._forward_rule$_memberList$2(t2, _this.hiddenVariables);
  33254. }
  33255. t2 = _this.prefix;
  33256. if (t2 != null)
  33257. t1 += " as " + t2 + "*";
  33258. t2 = _this.configuration;
  33259. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  33260. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33261. },
  33262. _forward_rule$_memberList$2: function(mixinsAndFunctions, variables) {
  33263. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String),
  33264. t2 = this.shownMixinsAndFunctions;
  33265. if (t2 != null)
  33266. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  33267. t1.push(t2.get$current(t2));
  33268. t2 = this.shownVariables;
  33269. if (t2 != null)
  33270. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  33271. t1.push("$" + H.S(t2.get$current(t2)));
  33272. return C.JSArray_methods.join$1(t1, ", ");
  33273. },
  33274. $isAstNode: 1,
  33275. $isStatement: 1,
  33276. get$span: function() {
  33277. return this.span;
  33278. }
  33279. };
  33280. M.FunctionRule.prototype = {
  33281. accept$1$1: function(visitor) {
  33282. return visitor.visitFunctionRule$1(this);
  33283. },
  33284. accept$1: function(visitor) {
  33285. return this.accept$1$1(visitor, type$.dynamic);
  33286. },
  33287. toString$0: function(_) {
  33288. var t1 = this.children;
  33289. return "@function " + H.S(this.name) + "(" + H.S(this.$arguments) + ") {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33290. }
  33291. };
  33292. V.IfRule.prototype = {
  33293. accept$1$1: function(visitor) {
  33294. return visitor.visitIfRule$1(this);
  33295. },
  33296. accept$1: function(visitor) {
  33297. return this.accept$1$1(visitor, type$.dynamic);
  33298. },
  33299. toString$0: function(_) {
  33300. var t2, t1 = {};
  33301. t1.first = true;
  33302. t2 = this.clauses;
  33303. return new H.MappedListIterable(t2, new V.IfRule_toString_closure(t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String*>")).join$1(0, " ");
  33304. },
  33305. $isAstNode: 1,
  33306. $isStatement: 1,
  33307. get$span: function() {
  33308. return this.span;
  33309. }
  33310. };
  33311. V.IfRule_toString_closure.prototype = {
  33312. call$1: function(clause) {
  33313. var t1 = this._box_0,
  33314. $name = t1.first ? "if" : "else";
  33315. t1.first = false;
  33316. return "@" + $name + " " + H.S(clause.expression) + " {" + C.JSArray_methods.join$1(clause.children, " ") + "}";
  33317. }
  33318. };
  33319. V.IfClause.prototype = {
  33320. toString$0: function(_) {
  33321. var t1 = this.expression;
  33322. t1 = t1 == null ? "@else" : "@if " + t1.toString$0(0);
  33323. return t1 + (" {" + C.JSArray_methods.join$1(this.children, " ") + "}");
  33324. }
  33325. };
  33326. V.IfClause$__closure.prototype = {
  33327. call$1: function(child) {
  33328. var t1;
  33329. if (!(child instanceof Z.VariableDeclaration))
  33330. if (!(child instanceof M.FunctionRule))
  33331. if (!(child instanceof T.MixinRule))
  33332. t1 = child instanceof B.ImportRule && C.JSArray_methods.any$1(child.imports, new V.IfClause$___closure());
  33333. else
  33334. t1 = true;
  33335. else
  33336. t1 = true;
  33337. else
  33338. t1 = true;
  33339. return t1;
  33340. }
  33341. };
  33342. V.IfClause$___closure.prototype = {
  33343. call$1: function($import) {
  33344. return $import instanceof B.DynamicImport;
  33345. }
  33346. };
  33347. B.ImportRule.prototype = {
  33348. accept$1$1: function(visitor) {
  33349. return visitor.visitImportRule$1(this);
  33350. },
  33351. accept$1: function(visitor) {
  33352. return this.accept$1$1(visitor, type$.dynamic);
  33353. },
  33354. toString$0: function(_) {
  33355. return "@import " + C.JSArray_methods.join$1(this.imports, ", ") + ";";
  33356. },
  33357. $isAstNode: 1,
  33358. $isStatement: 1,
  33359. get$span: function() {
  33360. return this.span;
  33361. }
  33362. };
  33363. A.IncludeRule.prototype = {
  33364. get$spanWithoutContent: function() {
  33365. var t2, t3,
  33366. t1 = this.span;
  33367. if (!(this.content == null)) {
  33368. t2 = t1.file;
  33369. t3 = this.$arguments.span;
  33370. t3 = B.SpanExtensions_trim(t2.span$2(Y.FileLocation$_(t2, t1._file$_start).offset, Y.FileLocation$_(t3.file, t3._end).offset));
  33371. t1 = t3;
  33372. }
  33373. return t1;
  33374. },
  33375. accept$1$1: function(visitor) {
  33376. return visitor.visitIncludeRule$1(this);
  33377. },
  33378. accept$1: function(visitor) {
  33379. return this.accept$1$1(visitor, type$.dynamic);
  33380. },
  33381. toString$0: function(_) {
  33382. var t2, _this = this,
  33383. t1 = _this.namespace;
  33384. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  33385. t1 += _this.name;
  33386. t2 = _this.$arguments;
  33387. if (!t2.get$isEmpty(t2))
  33388. t1 += "(" + t2.toString$0(0) + ")";
  33389. t2 = _this.content;
  33390. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  33391. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33392. },
  33393. $isAstNode: 1,
  33394. $isStatement: 1,
  33395. get$span: function() {
  33396. return this.span;
  33397. }
  33398. };
  33399. L.LoudComment.prototype = {
  33400. get$span: function() {
  33401. return this.text.span;
  33402. },
  33403. accept$1$1: function(visitor) {
  33404. return visitor.visitLoudComment$1(this);
  33405. },
  33406. accept$1: function(visitor) {
  33407. return this.accept$1$1(visitor, type$.dynamic);
  33408. },
  33409. toString$0: function(_) {
  33410. return this.text.toString$0(0);
  33411. },
  33412. $isAstNode: 1,
  33413. $isStatement: 1
  33414. };
  33415. G.MediaRule.prototype = {
  33416. accept$1$1: function(visitor) {
  33417. return visitor.visitMediaRule$1(this);
  33418. },
  33419. accept$1: function(visitor) {
  33420. return this.accept$1$1(visitor, type$.dynamic);
  33421. },
  33422. toString$0: function(_) {
  33423. var t1 = this.children;
  33424. return "@media " + this.query.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33425. },
  33426. get$span: function() {
  33427. return this.span;
  33428. }
  33429. };
  33430. T.MixinRule.prototype = {
  33431. accept$1$1: function(visitor) {
  33432. return visitor.visitMixinRule$1(this);
  33433. },
  33434. accept$1: function(visitor) {
  33435. return this.accept$1$1(visitor, type$.dynamic);
  33436. },
  33437. toString$0: function(_) {
  33438. var t1 = "@mixin " + H.S(this.name),
  33439. t2 = this.$arguments;
  33440. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  33441. t1 += "(" + t2.toString$0(0) + ")";
  33442. t2 = this.children;
  33443. t2 = t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  33444. return t2.charCodeAt(0) == 0 ? t2 : t2;
  33445. }
  33446. };
  33447. M.ParentStatement.prototype = {$isAstNode: 1, $isStatement: 1};
  33448. M.ParentStatement_closure.prototype = {
  33449. call$1: function(child) {
  33450. var t1;
  33451. if (!(child instanceof Z.VariableDeclaration))
  33452. if (!(child instanceof M.FunctionRule))
  33453. if (!(child instanceof T.MixinRule))
  33454. t1 = child instanceof B.ImportRule && C.JSArray_methods.any$1(child.imports, new M.ParentStatement__closure());
  33455. else
  33456. t1 = true;
  33457. else
  33458. t1 = true;
  33459. else
  33460. t1 = true;
  33461. return t1;
  33462. }
  33463. };
  33464. M.ParentStatement__closure.prototype = {
  33465. call$1: function($import) {
  33466. return $import instanceof B.DynamicImport;
  33467. }
  33468. };
  33469. B.ReturnRule.prototype = {
  33470. accept$1$1: function(visitor) {
  33471. return visitor.visitReturnRule$1(this);
  33472. },
  33473. accept$1: function(visitor) {
  33474. return this.accept$1$1(visitor, type$.dynamic);
  33475. },
  33476. toString$0: function(_) {
  33477. return "@return " + H.S(this.expression) + ";";
  33478. },
  33479. $isAstNode: 1,
  33480. $isStatement: 1,
  33481. get$span: function() {
  33482. return this.span;
  33483. }
  33484. };
  33485. B.SilentComment.prototype = {
  33486. accept$1$1: function(visitor) {
  33487. return visitor.visitSilentComment$1(this);
  33488. },
  33489. accept$1: function(visitor) {
  33490. return this.accept$1$1(visitor, type$.dynamic);
  33491. },
  33492. toString$0: function(_) {
  33493. return this.text;
  33494. },
  33495. $isAstNode: 1,
  33496. $isStatement: 1,
  33497. get$span: function() {
  33498. return this.span;
  33499. }
  33500. };
  33501. X.StyleRule.prototype = {
  33502. accept$1$1: function(visitor) {
  33503. return visitor.visitStyleRule$1(this);
  33504. },
  33505. accept$1: function(visitor) {
  33506. return this.accept$1$1(visitor, type$.dynamic);
  33507. },
  33508. toString$0: function(_) {
  33509. var t1 = this.children;
  33510. return this.selector.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33511. },
  33512. get$span: function() {
  33513. return this.span;
  33514. }
  33515. };
  33516. V.Stylesheet.prototype = {
  33517. Stylesheet$3$plainCss: function(children, span, plainCss) {
  33518. var t1, t2, t3, t4, _i, child;
  33519. for (t1 = this.children, t2 = t1.length, t3 = this._forwards, t4 = this._uses, _i = 0; _i < t2; ++_i) {
  33520. child = t1[_i];
  33521. if (child instanceof T.UseRule)
  33522. t4.push(child);
  33523. else if (child instanceof L.ForwardRule)
  33524. t3.push(child);
  33525. else if (!(child instanceof B.SilentComment) && !(child instanceof L.LoudComment) && !(child instanceof Z.VariableDeclaration))
  33526. break;
  33527. }
  33528. },
  33529. accept$1$1: function(visitor) {
  33530. return visitor.visitStylesheet$1(this);
  33531. },
  33532. accept$1: function(visitor) {
  33533. return this.accept$1$1(visitor, type$.dynamic);
  33534. },
  33535. toString$0: function(_) {
  33536. var t1 = this.children;
  33537. return (t1 && C.JSArray_methods).join$1(t1, " ");
  33538. },
  33539. get$span: function() {
  33540. return this.span;
  33541. }
  33542. };
  33543. B.SupportsRule.prototype = {
  33544. accept$1$1: function(visitor) {
  33545. return visitor.visitSupportsRule$1(this);
  33546. },
  33547. accept$1: function(visitor) {
  33548. return this.accept$1$1(visitor, type$.dynamic);
  33549. },
  33550. toString$0: function(_) {
  33551. var t1 = this.children;
  33552. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33553. },
  33554. get$span: function() {
  33555. return this.span;
  33556. }
  33557. };
  33558. T.UseRule.prototype = {
  33559. UseRule$4$configuration: function(url, namespace, span, configuration) {
  33560. var t1, t2, _i, variable;
  33561. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  33562. variable = t1[_i];
  33563. if (variable.isGuarded)
  33564. throw H.wrapException(P.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  33565. }
  33566. },
  33567. accept$1$1: function(visitor) {
  33568. return visitor.visitUseRule$1(this);
  33569. },
  33570. accept$1: function(visitor) {
  33571. return this.accept$1$1(visitor, type$.dynamic);
  33572. },
  33573. toString$0: function(_) {
  33574. var t1 = this.url,
  33575. t2 = "@use " + H.S(new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([J.toString$0$(t1)], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain()),
  33576. basename = t1.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(t1.get$pathSegments()),
  33577. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  33578. t1 = this.namespace;
  33579. if (t1 !== C.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  33580. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  33581. else
  33582. t1 = t2;
  33583. t2 = this.configuration;
  33584. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  33585. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33586. },
  33587. $isAstNode: 1,
  33588. $isStatement: 1,
  33589. get$span: function() {
  33590. return this.span;
  33591. }
  33592. };
  33593. Z.VariableDeclaration.prototype = {
  33594. accept$1$1: function(visitor) {
  33595. return visitor.visitVariableDeclaration$1(this);
  33596. },
  33597. accept$1: function(visitor) {
  33598. return this.accept$1$1(visitor, type$.dynamic);
  33599. },
  33600. toString$0: function(_) {
  33601. var t1 = this.namespace;
  33602. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  33603. t1 += this.name + ": " + H.S(this.expression) + ";";
  33604. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33605. },
  33606. $isAstNode: 1,
  33607. $isStatement: 1,
  33608. get$span: function() {
  33609. return this.span;
  33610. }
  33611. };
  33612. Y.WarnRule.prototype = {
  33613. accept$1$1: function(visitor) {
  33614. return visitor.visitWarnRule$1(this);
  33615. },
  33616. accept$1: function(visitor) {
  33617. return this.accept$1$1(visitor, type$.dynamic);
  33618. },
  33619. toString$0: function(_) {
  33620. return "@warn " + H.S(this.expression) + ";";
  33621. },
  33622. $isAstNode: 1,
  33623. $isStatement: 1,
  33624. get$span: function() {
  33625. return this.span;
  33626. }
  33627. };
  33628. G.WhileRule.prototype = {
  33629. accept$1$1: function(visitor) {
  33630. return visitor.visitWhileRule$1(this);
  33631. },
  33632. accept$1: function(visitor) {
  33633. return this.accept$1$1(visitor, type$.dynamic);
  33634. },
  33635. toString$0: function(_) {
  33636. var t1 = this.children;
  33637. return "@while " + H.S(this.condition) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33638. },
  33639. get$span: function() {
  33640. return this.span;
  33641. }
  33642. };
  33643. N.SupportsCondition.prototype = {};
  33644. L.SupportsDeclaration.prototype = {
  33645. toString$0: function(_) {
  33646. return "(" + H.S(this.name) + ": " + H.S(this.value) + ")";
  33647. },
  33648. $isAstNode: 1,
  33649. get$span: function() {
  33650. return this.span;
  33651. }
  33652. };
  33653. X.SupportsInterpolation.prototype = {
  33654. toString$0: function(_) {
  33655. return "#{" + H.S(this.expression) + "}";
  33656. },
  33657. $isAstNode: 1,
  33658. get$span: function() {
  33659. return this.span;
  33660. }
  33661. };
  33662. M.SupportsNegation.prototype = {
  33663. toString$0: function(_) {
  33664. var t1 = this.condition;
  33665. if (t1 instanceof M.SupportsNegation || t1 instanceof U.SupportsOperation)
  33666. return "not (" + t1.toString$0(0) + ")";
  33667. else
  33668. return "not " + t1.toString$0(0);
  33669. },
  33670. $isAstNode: 1,
  33671. get$span: function() {
  33672. return this.span;
  33673. }
  33674. };
  33675. U.SupportsOperation.prototype = {
  33676. toString$0: function(_) {
  33677. var _this = this;
  33678. return _this._operation$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation$_parenthesize$1(_this.right);
  33679. },
  33680. _operation$_parenthesize$1: function(condition) {
  33681. var t1;
  33682. if (!(condition instanceof M.SupportsNegation))
  33683. t1 = condition instanceof U.SupportsOperation && condition.operator === this.operator;
  33684. else
  33685. t1 = true;
  33686. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  33687. },
  33688. $isAstNode: 1,
  33689. get$span: function() {
  33690. return this.span;
  33691. }
  33692. };
  33693. T.Selector.prototype = {
  33694. get$isInvisible: function() {
  33695. return false;
  33696. },
  33697. toString$0: function(_) {
  33698. var visitor = N._SerializeVisitor$0(null, true, null, true, false, null, true);
  33699. this.accept$1(visitor);
  33700. return visitor._serialize$_buffer.toString$0(0);
  33701. }
  33702. };
  33703. N.AttributeSelector.prototype = {
  33704. accept$1$1: function(visitor) {
  33705. var t2, _this = this,
  33706. t1 = visitor._serialize$_buffer;
  33707. t1.writeCharCode$1(91);
  33708. t1.write$1(0, _this.name);
  33709. t2 = _this.op;
  33710. if (t2 != null) {
  33711. t1.write$1(0, t2);
  33712. t2 = _this.value;
  33713. if (G.Parser_isIdentifier(t2) && !J.startsWith$1$s(t2, "--")) {
  33714. t1.write$1(0, t2);
  33715. t2 = _this.modifier;
  33716. if (t2 != null)
  33717. t1.writeCharCode$1(32);
  33718. } else {
  33719. visitor._visitQuotedString$1(t2);
  33720. t2 = _this.modifier;
  33721. if (t2 != null)
  33722. if (visitor._style !== C.OutputStyle_compressed)
  33723. t1.writeCharCode$1(32);
  33724. }
  33725. if (t2 != null)
  33726. t1.write$1(0, t2);
  33727. }
  33728. t1.writeCharCode$1(93);
  33729. return null;
  33730. },
  33731. accept$1: function(visitor) {
  33732. return this.accept$1$1(visitor, type$.dynamic);
  33733. },
  33734. $eq: function(_, other) {
  33735. var _this = this;
  33736. if (other == null)
  33737. return false;
  33738. return other instanceof N.AttributeSelector && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  33739. },
  33740. get$hashCode: function(_) {
  33741. var _this = this,
  33742. t1 = _this.name;
  33743. return (C.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;
  33744. }
  33745. };
  33746. N.AttributeOperator.prototype = {
  33747. toString$0: function(_) {
  33748. return this._attribute$_text;
  33749. }
  33750. };
  33751. X.ClassSelector.prototype = {
  33752. $eq: function(_, other) {
  33753. if (other == null)
  33754. return false;
  33755. return other instanceof X.ClassSelector && other.name === this.name;
  33756. },
  33757. accept$1$1: function(visitor) {
  33758. var t1 = visitor._serialize$_buffer;
  33759. t1.writeCharCode$1(46);
  33760. t1.write$1(0, this.name);
  33761. return null;
  33762. },
  33763. accept$1: function(visitor) {
  33764. return this.accept$1$1(visitor, type$.dynamic);
  33765. },
  33766. addSuffix$1: function(suffix) {
  33767. return new X.ClassSelector(this.name + suffix);
  33768. },
  33769. get$hashCode: function(_) {
  33770. return C.JSString_methods.get$hashCode(this.name);
  33771. }
  33772. };
  33773. S.ComplexSelector.prototype = {
  33774. get$minSpecificity: function() {
  33775. if (this._minSpecificity == null)
  33776. this._computeSpecificity$0();
  33777. return this._minSpecificity;
  33778. },
  33779. get$maxSpecificity: function() {
  33780. if (this._maxSpecificity == null)
  33781. this._computeSpecificity$0();
  33782. return this._maxSpecificity;
  33783. },
  33784. get$isInvisible: function() {
  33785. var t1 = this._complex$_isInvisible;
  33786. if (t1 != null)
  33787. return t1;
  33788. return this._complex$_isInvisible = C.JSArray_methods.any$1(this.components, new S.ComplexSelector_isInvisible_closure());
  33789. },
  33790. accept$1$1: function(visitor) {
  33791. return visitor.visitComplexSelector$1(this);
  33792. },
  33793. accept$1: function(visitor) {
  33794. return this.accept$1$1(visitor, type$.dynamic);
  33795. },
  33796. _computeSpecificity$0: function() {
  33797. var t1, t2, component, t3, _this = this,
  33798. _i = _this._maxSpecificity = _this._minSpecificity = 0;
  33799. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  33800. component = t1[_i];
  33801. if (component instanceof X.CompoundSelector) {
  33802. t3 = _this._minSpecificity;
  33803. if (component._compound$_minSpecificity == null)
  33804. component._compound$_computeSpecificity$0();
  33805. _this._minSpecificity = t3 + component._compound$_minSpecificity;
  33806. t3 = _this._maxSpecificity;
  33807. if (component._compound$_maxSpecificity == null)
  33808. component._compound$_computeSpecificity$0();
  33809. _this._maxSpecificity = t3 + component._compound$_maxSpecificity;
  33810. }
  33811. }
  33812. },
  33813. get$hashCode: function(_) {
  33814. return C.C_ListEquality.hash$1(this.components);
  33815. },
  33816. $eq: function(_, other) {
  33817. if (other == null)
  33818. return false;
  33819. return other instanceof S.ComplexSelector && C.C_ListEquality.equals$2(this.components, other.components);
  33820. }
  33821. };
  33822. S.ComplexSelector_isInvisible_closure.prototype = {
  33823. call$1: function(component) {
  33824. return component instanceof X.CompoundSelector && component.get$isInvisible();
  33825. }
  33826. };
  33827. S.ComplexSelectorComponent.prototype = {};
  33828. S.Combinator.prototype = {
  33829. toString$0: function(_) {
  33830. return this._complex$_text;
  33831. },
  33832. $isComplexSelectorComponent: 1
  33833. };
  33834. X.CompoundSelector.prototype = {
  33835. get$isInvisible: function() {
  33836. return C.JSArray_methods.any$1(this.components, new X.CompoundSelector_isInvisible_closure());
  33837. },
  33838. accept$1$1: function(visitor) {
  33839. return visitor.visitCompoundSelector$1(this);
  33840. },
  33841. accept$1: function(visitor) {
  33842. return this.accept$1$1(visitor, type$.dynamic);
  33843. },
  33844. _compound$_computeSpecificity$0: function() {
  33845. var t1, t2, simple, _this = this,
  33846. _i = _this._compound$_maxSpecificity = _this._compound$_minSpecificity = 0;
  33847. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  33848. simple = t1[_i];
  33849. _this._compound$_minSpecificity = _this._compound$_minSpecificity + simple.get$minSpecificity();
  33850. _this._compound$_maxSpecificity = _this._compound$_maxSpecificity + simple.get$maxSpecificity();
  33851. }
  33852. },
  33853. get$hashCode: function(_) {
  33854. return C.C_ListEquality.hash$1(this.components);
  33855. },
  33856. $eq: function(_, other) {
  33857. if (other == null)
  33858. return false;
  33859. return other instanceof X.CompoundSelector && C.C_ListEquality.equals$2(this.components, other.components);
  33860. },
  33861. $isComplexSelectorComponent: 1
  33862. };
  33863. X.CompoundSelector_isInvisible_closure.prototype = {
  33864. call$1: function(component) {
  33865. return component.get$isInvisible();
  33866. }
  33867. };
  33868. N.IDSelector.prototype = {
  33869. get$minSpecificity: function() {
  33870. return H._asIntS(Math.pow(M.SimpleSelector.prototype.get$minSpecificity.call(this), 2));
  33871. },
  33872. accept$1$1: function(visitor) {
  33873. var t1 = visitor._serialize$_buffer;
  33874. t1.writeCharCode$1(35);
  33875. t1.write$1(0, this.name);
  33876. return null;
  33877. },
  33878. accept$1: function(visitor) {
  33879. return this.accept$1$1(visitor, type$.dynamic);
  33880. },
  33881. addSuffix$1: function(suffix) {
  33882. return new N.IDSelector(this.name + suffix);
  33883. },
  33884. unify$1: function(compound) {
  33885. if (C.JSArray_methods.any$1(compound, new N.IDSelector_unify_closure(this)))
  33886. return null;
  33887. return this.super$SimpleSelector$unify(compound);
  33888. },
  33889. $eq: function(_, other) {
  33890. if (other == null)
  33891. return false;
  33892. return other instanceof N.IDSelector && other.name === this.name;
  33893. },
  33894. get$hashCode: function(_) {
  33895. return C.JSString_methods.get$hashCode(this.name);
  33896. }
  33897. };
  33898. N.IDSelector_unify_closure.prototype = {
  33899. call$1: function(simple) {
  33900. var t1;
  33901. if (simple instanceof N.IDSelector) {
  33902. t1 = simple.name;
  33903. t1 = this.$this.name !== t1;
  33904. } else
  33905. t1 = false;
  33906. return t1;
  33907. }
  33908. };
  33909. D.SelectorList.prototype = {
  33910. get$isInvisible: function() {
  33911. return C.JSArray_methods.every$1(this.components, new D.SelectorList_isInvisible_closure());
  33912. },
  33913. get$asSassList: function() {
  33914. var t1 = this.components;
  33915. return D.SassList$(new H.MappedListIterable(t1, new D.SelectorList_asSassList_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value*>")), C.ListSeparator_comma, false);
  33916. },
  33917. accept$1$1: function(visitor) {
  33918. return visitor.visitSelectorList$1(this);
  33919. },
  33920. accept$1: function(visitor) {
  33921. return this.accept$1$1(visitor, type$.dynamic);
  33922. },
  33923. unify$1: function(other) {
  33924. var t1 = this.components,
  33925. t2 = H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector*>"),
  33926. contents = P.List_List$from(new H.ExpandIterable(t1, new D.SelectorList_unify_closure(other), t2), true, t2._eval$1("Iterable.E"));
  33927. return contents.length === 0 ? null : D.SelectorList$(contents);
  33928. },
  33929. resolveParentSelectors$2$implicitParent: function($parent, implicitParent) {
  33930. var t1, _this = this;
  33931. if ($parent == null) {
  33932. if (!C.JSArray_methods.any$1(_this.components, _this.get$_complexContainsParentSelector()))
  33933. return _this;
  33934. throw H.wrapException(E.SassScriptException$(string$.Top_le));
  33935. }
  33936. t1 = _this.components;
  33937. return D.SelectorList$(B.flattenVertically(new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors_closure(_this, implicitParent, $parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector*>*>")), type$.legacy_ComplexSelector));
  33938. },
  33939. resolveParentSelectors$1: function($parent) {
  33940. return this.resolveParentSelectors$2$implicitParent($parent, true);
  33941. },
  33942. _complexContainsParentSelector$1: function(complex) {
  33943. return C.JSArray_methods.any$1(complex.components, new D.SelectorList__complexContainsParentSelector_closure());
  33944. },
  33945. _resolveParentSelectorsCompound$2: function(compound, $parent) {
  33946. var resolvedMembers0, parentSelector, t1,
  33947. resolvedMembers = compound.components,
  33948. containsSelectorPseudo = C.JSArray_methods.any$1(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure());
  33949. if (!containsSelectorPseudo && !(C.JSArray_methods.get$first(resolvedMembers) instanceof M.ParentSelector))
  33950. return null;
  33951. resolvedMembers0 = containsSelectorPseudo ? new H.MappedListIterable(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure0($parent), H._arrayInstanceType(resolvedMembers)._eval$1("MappedListIterable<1,SimpleSelector*>")) : resolvedMembers;
  33952. parentSelector = C.JSArray_methods.get$first(resolvedMembers);
  33953. if (parentSelector instanceof M.ParentSelector) {
  33954. if (resolvedMembers.length === 1 && parentSelector.suffix == null)
  33955. return $parent.components;
  33956. } else
  33957. return H.setRuntimeTypeInfo([S.ComplexSelector$(H.setRuntimeTypeInfo([X.CompoundSelector$(resolvedMembers0)], type$.JSArray_legacy_ComplexSelectorComponent), false)], type$.JSArray_legacy_ComplexSelector);
  33958. t1 = $parent.components;
  33959. return new H.MappedListIterable(t1, new D.SelectorList__resolveParentSelectorsCompound_closure1(compound, resolvedMembers0), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector*>"));
  33960. },
  33961. get$hashCode: function(_) {
  33962. return C.C_ListEquality.hash$1(this.components);
  33963. },
  33964. $eq: function(_, other) {
  33965. if (other == null)
  33966. return false;
  33967. return other instanceof D.SelectorList && C.C_ListEquality.equals$2(this.components, other.components);
  33968. }
  33969. };
  33970. D.SelectorList_isInvisible_closure.prototype = {
  33971. call$1: function(complex) {
  33972. return complex.get$isInvisible();
  33973. }
  33974. };
  33975. D.SelectorList_asSassList_closure.prototype = {
  33976. call$1: function(complex) {
  33977. var t1 = complex.components;
  33978. return D.SassList$(new H.MappedListIterable(t1, new D.SelectorList_asSassList__closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value*>")), C.ListSeparator_space, false);
  33979. }
  33980. };
  33981. D.SelectorList_asSassList__closure.prototype = {
  33982. call$1: function(component) {
  33983. return new D.SassString(J.toString$0$(component), false);
  33984. }
  33985. };
  33986. D.SelectorList_unify_closure.prototype = {
  33987. call$1: function(complex1) {
  33988. var t1 = this.other.components;
  33989. return new H.ExpandIterable(t1, new D.SelectorList_unify__closure(complex1), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector*>"));
  33990. }
  33991. };
  33992. D.SelectorList_unify__closure.prototype = {
  33993. call$1: function(complex2) {
  33994. var unified = Y.unifyComplex(H.setRuntimeTypeInfo([this.complex1.components, complex2.components], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  33995. if (unified == null)
  33996. return C.List_empty4;
  33997. return J.map$1$1$ax(unified, new D.SelectorList_unify___closure(), type$.legacy_ComplexSelector);
  33998. }
  33999. };
  34000. D.SelectorList_unify___closure.prototype = {
  34001. call$1: function(complex) {
  34002. return S.ComplexSelector$(complex, false);
  34003. }
  34004. };
  34005. D.SelectorList_resolveParentSelectors_closure.prototype = {
  34006. call$1: function(complex) {
  34007. var t2, t3, newComplexes, t4, t5, t6, t7, _i, component, resolved, t8, _i0, previousLineBreaks, newComplexes0, t9, i, newComplex, i0, lineBreak, t10, t11, t12, t13, t14, t15, _i1, _this = this, _box_0 = {},
  34008. t1 = _this.$this;
  34009. if (!t1._complexContainsParentSelector$1(complex)) {
  34010. if (!_this.implicitParent)
  34011. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  34012. t1 = _this.parent.components;
  34013. return new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors__closure(complex), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector*>"));
  34014. }
  34015. t2 = type$.JSArray_legacy_ComplexSelectorComponent;
  34016. t3 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent;
  34017. newComplexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], t2)], t3);
  34018. t4 = type$.JSArray_legacy_bool;
  34019. _box_0.lineBreaks = H.setRuntimeTypeInfo([false], t4);
  34020. for (t5 = complex.components, t6 = t5.length, t7 = _this.parent, _i = 0; _i < t6; ++_i) {
  34021. component = t5[_i];
  34022. if (component instanceof X.CompoundSelector) {
  34023. resolved = t1._resolveParentSelectorsCompound$2(component, t7);
  34024. if (resolved == null) {
  34025. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  34026. newComplexes[_i0].push(component);
  34027. continue;
  34028. }
  34029. previousLineBreaks = _box_0.lineBreaks;
  34030. newComplexes0 = H.setRuntimeTypeInfo([], t3);
  34031. _box_0.lineBreaks = H.setRuntimeTypeInfo([], t4);
  34032. for (t8 = newComplexes.length, t9 = J.getInterceptor$ax(resolved), i = 0, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0, i = i0) {
  34033. newComplex = newComplexes[_i0];
  34034. i0 = i + 1;
  34035. lineBreak = previousLineBreaks[i];
  34036. for (t10 = t9.get$iterator(resolved), t11 = !lineBreak; t10.moveNext$0();) {
  34037. t12 = t10.get$current(t10);
  34038. t13 = H.setRuntimeTypeInfo([], t2);
  34039. for (t14 = C.JSArray_methods.get$iterator(newComplex); t14.moveNext$0();)
  34040. t13.push(t14.get$current(t14));
  34041. for (t14 = t12.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1)
  34042. t13.push(t14[_i1]);
  34043. newComplexes0.push(t13);
  34044. t13 = _box_0.lineBreaks;
  34045. t13.push(!t11 || t12.lineBreak);
  34046. }
  34047. }
  34048. newComplexes = newComplexes0;
  34049. } else
  34050. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  34051. newComplexes[_i0].push(component);
  34052. }
  34053. _box_0.i = 0;
  34054. return new H.MappedListIterable(newComplexes, new D.SelectorList_resolveParentSelectors__closure0(_box_0), H._arrayInstanceType(newComplexes)._eval$1("MappedListIterable<1,ComplexSelector*>"));
  34055. }
  34056. };
  34057. D.SelectorList_resolveParentSelectors__closure.prototype = {
  34058. call$1: function(parentComplex) {
  34059. var t2, t3, _i, t4,
  34060. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent);
  34061. for (t2 = parentComplex.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  34062. t1.push(t2[_i]);
  34063. for (t2 = this.complex, t3 = t2.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  34064. t1.push(t3[_i]);
  34065. return S.ComplexSelector$(t1, t2.lineBreak || parentComplex.lineBreak);
  34066. }
  34067. };
  34068. D.SelectorList_resolveParentSelectors__closure0.prototype = {
  34069. call$1: function(newComplex) {
  34070. var t1 = this._box_0;
  34071. return S.ComplexSelector$(newComplex, t1.lineBreaks[t1.i++]);
  34072. }
  34073. };
  34074. D.SelectorList__complexContainsParentSelector_closure.prototype = {
  34075. call$1: function(component) {
  34076. return component instanceof X.CompoundSelector && C.JSArray_methods.any$1(component.components, new D.SelectorList__complexContainsParentSelector__closure());
  34077. }
  34078. };
  34079. D.SelectorList__complexContainsParentSelector__closure.prototype = {
  34080. call$1: function(simple) {
  34081. var t1;
  34082. if (!(simple instanceof M.ParentSelector))
  34083. if (simple instanceof D.PseudoSelector) {
  34084. t1 = simple.selector;
  34085. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector());
  34086. } else
  34087. t1 = false;
  34088. else
  34089. t1 = true;
  34090. return t1;
  34091. }
  34092. };
  34093. D.SelectorList__resolveParentSelectorsCompound_closure.prototype = {
  34094. call$1: function(simple) {
  34095. var t1;
  34096. if (simple instanceof D.PseudoSelector) {
  34097. t1 = simple.selector;
  34098. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector());
  34099. } else
  34100. t1 = false;
  34101. return t1;
  34102. }
  34103. };
  34104. D.SelectorList__resolveParentSelectorsCompound_closure0.prototype = {
  34105. call$1: function(simple) {
  34106. var t1, t2, t3;
  34107. if (simple instanceof D.PseudoSelector) {
  34108. t1 = simple.selector;
  34109. if (t1 == null)
  34110. return simple;
  34111. if (!C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector()))
  34112. return simple;
  34113. t1 = t1.resolveParentSelectors$2$implicitParent(this.parent, false);
  34114. t2 = simple.name;
  34115. t3 = simple.isClass;
  34116. return D.PseudoSelector$(t2, simple.argument, !t3, t1);
  34117. } else
  34118. return simple;
  34119. }
  34120. };
  34121. D.SelectorList__resolveParentSelectorsCompound_closure1.prototype = {
  34122. call$1: function(complex) {
  34123. var suffix, t2, t3, t4, cur, last, _i,
  34124. t1 = complex.components,
  34125. lastComponent = C.JSArray_methods.get$last(t1);
  34126. if (!(lastComponent instanceof X.CompoundSelector))
  34127. throw H.wrapException(E.SassScriptException$('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.'));
  34128. suffix = type$.legacy_ParentSelector._as(C.JSArray_methods.get$first(this.compound.components)).suffix;
  34129. t2 = type$.JSArray_legacy_SimpleSelector;
  34130. if (suffix != null) {
  34131. t2 = H.setRuntimeTypeInfo([], t2);
  34132. for (t3 = lastComponent.components, t4 = H.SubListIterable$(t3, 0, t3.length - 1, H._arrayInstanceType(t3)._precomputed1), t4 = new H.ListIterator(t4, t4.get$length(t4)); t4.moveNext$0();) {
  34133. cur = t4.__internal$_current;
  34134. t2.push(cur);
  34135. }
  34136. t2.push(C.JSArray_methods.get$last(t3).addSuffix$1(suffix));
  34137. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();) {
  34138. cur = t3.__internal$_current;
  34139. t2.push(cur);
  34140. }
  34141. last = X.CompoundSelector$(t2);
  34142. } else {
  34143. t2 = H.setRuntimeTypeInfo([], t2);
  34144. for (t3 = lastComponent.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  34145. t2.push(t3[_i]);
  34146. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();) {
  34147. cur = t3.__internal$_current;
  34148. t2.push(cur);
  34149. }
  34150. last = X.CompoundSelector$(t2);
  34151. }
  34152. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent);
  34153. for (t1 = H.SubListIterable$(t1, 0, t1.length - 1, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  34154. cur = t1.__internal$_current;
  34155. t2.push(cur);
  34156. }
  34157. t2.push(last);
  34158. return S.ComplexSelector$(t2, complex.lineBreak);
  34159. }
  34160. };
  34161. M.ParentSelector.prototype = {
  34162. accept$1$1: function(visitor) {
  34163. var t2,
  34164. t1 = visitor._serialize$_buffer;
  34165. t1.writeCharCode$1(38);
  34166. t2 = this.suffix;
  34167. if (t2 != null)
  34168. t1.write$1(0, t2);
  34169. return null;
  34170. },
  34171. accept$1: function(visitor) {
  34172. return this.accept$1$1(visitor, type$.dynamic);
  34173. },
  34174. unify$1: function(compound) {
  34175. return H.throwExpression(P.UnsupportedError$("& doesn't support unification."));
  34176. }
  34177. };
  34178. N.PlaceholderSelector.prototype = {
  34179. get$isInvisible: function() {
  34180. return true;
  34181. },
  34182. accept$1$1: function(visitor) {
  34183. var t1 = visitor._serialize$_buffer;
  34184. t1.writeCharCode$1(37);
  34185. t1.write$1(0, this.name);
  34186. return null;
  34187. },
  34188. accept$1: function(visitor) {
  34189. return this.accept$1$1(visitor, type$.dynamic);
  34190. },
  34191. addSuffix$1: function(suffix) {
  34192. return new N.PlaceholderSelector(this.name + suffix);
  34193. },
  34194. $eq: function(_, other) {
  34195. if (other == null)
  34196. return false;
  34197. return other instanceof N.PlaceholderSelector && other.name === this.name;
  34198. },
  34199. get$hashCode: function(_) {
  34200. return C.JSString_methods.get$hashCode(this.name);
  34201. }
  34202. };
  34203. D.PseudoSelector.prototype = {
  34204. get$minSpecificity: function() {
  34205. if (this._pseudo$_minSpecificity == null)
  34206. this._pseudo$_computeSpecificity$0();
  34207. return this._pseudo$_minSpecificity;
  34208. },
  34209. get$maxSpecificity: function() {
  34210. if (this._pseudo$_maxSpecificity == null)
  34211. this._pseudo$_computeSpecificity$0();
  34212. return this._pseudo$_maxSpecificity;
  34213. },
  34214. get$isInvisible: function() {
  34215. var t1 = this.selector;
  34216. if (t1 == null)
  34217. return false;
  34218. return this.name !== "not" && t1.get$isInvisible();
  34219. },
  34220. addSuffix$1: function(suffix) {
  34221. var _this = this;
  34222. if (_this.argument != null || _this.selector != null)
  34223. _this.super$SimpleSelector$addSuffix(suffix);
  34224. return D.PseudoSelector$(_this.name + suffix, null, !_this.isClass, null);
  34225. },
  34226. unify$1: function(compound) {
  34227. var result, t1, t2, addedThis, _i, simple, _this = this;
  34228. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector)
  34229. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector));
  34230. if (C.JSArray_methods.contains$1(compound, _this))
  34231. return compound;
  34232. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  34233. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  34234. simple = compound[_i];
  34235. if (simple instanceof D.PseudoSelector && !simple.isClass) {
  34236. if (t2)
  34237. return null;
  34238. result.push(_this);
  34239. addedThis = true;
  34240. }
  34241. result.push(simple);
  34242. }
  34243. if (!addedThis)
  34244. result.push(_this);
  34245. return result;
  34246. },
  34247. _pseudo$_computeSpecificity$0: function() {
  34248. var t1, _i, t2, complex, t3, t4, _this = this;
  34249. if (!_this.isClass) {
  34250. _this._pseudo$_maxSpecificity = _this._pseudo$_minSpecificity = 1;
  34251. return;
  34252. }
  34253. t1 = _this.selector;
  34254. if (t1 == null) {
  34255. _this._pseudo$_minSpecificity = M.SimpleSelector.prototype.get$minSpecificity.call(_this);
  34256. _this._pseudo$_maxSpecificity = M.SimpleSelector.prototype.get$maxSpecificity.call(_this);
  34257. return;
  34258. }
  34259. if (_this.name === "not") {
  34260. _i = _this._pseudo$_maxSpecificity = _this._pseudo$_minSpecificity = 0;
  34261. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  34262. complex = t1[_i];
  34263. t3 = _this._pseudo$_minSpecificity;
  34264. if (complex._minSpecificity == null)
  34265. complex._computeSpecificity$0();
  34266. t4 = complex._minSpecificity;
  34267. _this._pseudo$_minSpecificity = Math.max(H.checkNum(t3), H.checkNum(t4));
  34268. t4 = _this._pseudo$_maxSpecificity;
  34269. if (complex._maxSpecificity == null)
  34270. complex._computeSpecificity$0();
  34271. t3 = complex._maxSpecificity;
  34272. _this._pseudo$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  34273. }
  34274. } else {
  34275. _this._pseudo$_minSpecificity = H._asIntS(Math.pow(M.SimpleSelector.prototype.get$minSpecificity.call(_this), 3));
  34276. _i = _this._pseudo$_maxSpecificity = 0;
  34277. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  34278. complex = t1[_i];
  34279. t3 = _this._pseudo$_minSpecificity;
  34280. if (complex._minSpecificity == null)
  34281. complex._computeSpecificity$0();
  34282. t4 = complex._minSpecificity;
  34283. _this._pseudo$_minSpecificity = Math.min(H.checkNum(t3), H.checkNum(t4));
  34284. t4 = _this._pseudo$_maxSpecificity;
  34285. if (complex._maxSpecificity == null)
  34286. complex._computeSpecificity$0();
  34287. t3 = complex._maxSpecificity;
  34288. _this._pseudo$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  34289. }
  34290. }
  34291. },
  34292. accept$1$1: function(visitor) {
  34293. return visitor.visitPseudoSelector$1(this);
  34294. },
  34295. accept$1: function(visitor) {
  34296. return this.accept$1$1(visitor, type$.dynamic);
  34297. },
  34298. $eq: function(_, other) {
  34299. var _this = this;
  34300. if (other == null)
  34301. return false;
  34302. return other instanceof D.PseudoSelector && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  34303. },
  34304. get$hashCode: function(_) {
  34305. var _this = this;
  34306. return (C.JSString_methods.get$hashCode(_this.name) ^ C.JSBool_methods.get$hashCode(!_this.isClass) ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector)) >>> 0;
  34307. }
  34308. };
  34309. D.QualifiedName.prototype = {
  34310. $eq: function(_, other) {
  34311. if (other == null)
  34312. return false;
  34313. return other instanceof D.QualifiedName && other.name === this.name && other.namespace == this.namespace;
  34314. },
  34315. get$hashCode: function(_) {
  34316. return C.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  34317. },
  34318. toString$0: function(_) {
  34319. var t1 = this.namespace,
  34320. t2 = this.name;
  34321. return t1 == null ? t2 : t1 + "|" + t2;
  34322. }
  34323. };
  34324. M.SimpleSelector.prototype = {
  34325. get$minSpecificity: function() {
  34326. return 1000;
  34327. },
  34328. get$maxSpecificity: function() {
  34329. return this.get$minSpecificity();
  34330. },
  34331. addSuffix$1: function(suffix) {
  34332. return H.throwExpression(E.SassScriptException$('Invalid parent selector "' + this.toString$0(0) + '"'));
  34333. },
  34334. unify$1: function(compound) {
  34335. var result, t1, addedThis, _i, simple, _this = this;
  34336. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector)
  34337. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector));
  34338. if (C.JSArray_methods.contains$1(compound, _this))
  34339. return compound;
  34340. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  34341. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  34342. simple = compound[_i];
  34343. if (!addedThis && simple instanceof D.PseudoSelector) {
  34344. result.push(_this);
  34345. addedThis = true;
  34346. }
  34347. result.push(simple);
  34348. }
  34349. if (!addedThis)
  34350. result.push(_this);
  34351. return result;
  34352. }
  34353. };
  34354. F.TypeSelector.prototype = {
  34355. get$minSpecificity: function() {
  34356. return 1;
  34357. },
  34358. accept$1$1: function(visitor) {
  34359. visitor._serialize$_buffer.write$1(0, this.name);
  34360. return null;
  34361. },
  34362. accept$1: function(visitor) {
  34363. return this.accept$1$1(visitor, type$.dynamic);
  34364. },
  34365. addSuffix$1: function(suffix) {
  34366. var t1 = this.name;
  34367. return new F.TypeSelector(new D.QualifiedName(t1.name + suffix, t1.namespace));
  34368. },
  34369. unify$1: function(compound) {
  34370. var unified, t1, t2, cur, _i;
  34371. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector) {
  34372. unified = Y.unifyUniversalAndElement(this, C.JSArray_methods.get$first(compound));
  34373. if (unified == null)
  34374. return null;
  34375. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  34376. t1.push(unified);
  34377. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  34378. cur = t2.__internal$_current;
  34379. t1.push(cur);
  34380. }
  34381. return t1;
  34382. } else {
  34383. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  34384. t1.push(this);
  34385. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  34386. t1.push(compound[_i]);
  34387. return t1;
  34388. }
  34389. },
  34390. $eq: function(_, other) {
  34391. if (other == null)
  34392. return false;
  34393. return other instanceof F.TypeSelector && other.name.$eq(0, this.name);
  34394. },
  34395. get$hashCode: function(_) {
  34396. var t1 = this.name;
  34397. return C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  34398. }
  34399. };
  34400. N.UniversalSelector.prototype = {
  34401. get$minSpecificity: function() {
  34402. return 0;
  34403. },
  34404. accept$1$1: function(visitor) {
  34405. var t2,
  34406. t1 = this.namespace;
  34407. if (t1 != null) {
  34408. t2 = visitor._serialize$_buffer;
  34409. t2.write$1(0, t1);
  34410. t2.writeCharCode$1(124);
  34411. }
  34412. visitor._serialize$_buffer.writeCharCode$1(42);
  34413. return null;
  34414. },
  34415. accept$1: function(visitor) {
  34416. return this.accept$1$1(visitor, type$.dynamic);
  34417. },
  34418. unify$1: function(compound) {
  34419. var unified, t1, t2, cur, _i, _this = this;
  34420. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector) {
  34421. unified = Y.unifyUniversalAndElement(_this, C.JSArray_methods.get$first(compound));
  34422. if (unified == null)
  34423. return null;
  34424. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  34425. t1.push(unified);
  34426. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  34427. cur = t2.__internal$_current;
  34428. t1.push(cur);
  34429. }
  34430. return t1;
  34431. }
  34432. t1 = _this.namespace;
  34433. if (t1 != null && t1 !== "*") {
  34434. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  34435. t1.push(_this);
  34436. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  34437. t1.push(compound[_i]);
  34438. return t1;
  34439. }
  34440. if (compound.length !== 0)
  34441. return compound;
  34442. return H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector);
  34443. },
  34444. $eq: function(_, other) {
  34445. if (other == null)
  34446. return false;
  34447. return other instanceof N.UniversalSelector && other.namespace == this.namespace;
  34448. },
  34449. get$hashCode: function(_) {
  34450. return J.get$hashCode$(this.namespace);
  34451. }
  34452. };
  34453. X._compileStylesheet_closure0.prototype = {
  34454. call$1: function(url) {
  34455. var t1, t2, _null = null;
  34456. if (url === "")
  34457. t1 = P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null).get$_text();
  34458. else {
  34459. t1 = P.Uri_parse(url);
  34460. t2 = this.importCache._async_import_cache$_resultsCache.$index(0, t1);
  34461. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  34462. t1 = (t2 == null ? t1 : t2).toString$0(0);
  34463. }
  34464. return t1;
  34465. }
  34466. };
  34467. X.CompileResult.prototype = {};
  34468. Q.AsyncEnvironment.prototype = {
  34469. closure$0: function() {
  34470. var t5, t6, t7, _this = this,
  34471. t1 = _this._async_environment$_forwardedModules,
  34472. t2 = _this._async_environment$_forwardedModuleNodes,
  34473. t3 = _this._async_environment$_nestedForwardedModules,
  34474. t4 = _this._async_environment$_variables;
  34475. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  34476. t5 = _this._async_environment$_variableNodes;
  34477. if (t5 == null)
  34478. t5 = null;
  34479. else
  34480. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  34481. t6 = _this._async_environment$_functions;
  34482. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  34483. t7 = _this._async_environment$_mixins;
  34484. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  34485. return Q.AsyncEnvironment$_(_this._async_environment$_modules, _this._async_environment$_namespaceNodes, _this._async_environment$_globalModules, _this._async_environment$_globalModuleNodes, t1, t2, t3, _this._async_environment$_allModules, t4, t5, t6, t7, _this._async_environment$_content);
  34486. },
  34487. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  34488. var t1, t2, _this = this;
  34489. if (namespace == null) {
  34490. _this._async_environment$_globalModules.add$1(0, module);
  34491. _this._async_environment$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  34492. _this._async_environment$_allModules.push(module);
  34493. for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._async_environment$_variables).get$keys()); t1.moveNext$0();) {
  34494. t2 = t1.get$current(t1);
  34495. if (module.get$variables().containsKey$1(t2))
  34496. throw H.wrapException(E.SassScriptException$(string$.This_ma + H.S(t2) + '".'));
  34497. }
  34498. } else {
  34499. t1 = _this._async_environment$_modules;
  34500. if (t1.containsKey$1(namespace))
  34501. throw H.wrapException(E.MultiSpanSassScriptException$(string$.There_ + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._async_environment$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.legacy_FileSpan, type$.legacy_String)));
  34502. t1.$indexSet(0, namespace, module);
  34503. _this._async_environment$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  34504. _this._async_environment$_allModules.push(module);
  34505. }
  34506. },
  34507. forwardModule$2: function(module, rule) {
  34508. var view, t1, t2, _this = this;
  34509. if (_this._async_environment$_forwardedModules == null)
  34510. _this._async_environment$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_AsyncCallable);
  34511. if (_this._async_environment$_forwardedModuleNodes == null)
  34512. _this._async_environment$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_AsyncCallable, type$.legacy_AstNode);
  34513. view = R.ForwardedModuleView_ifNecessary(module, rule, type$.legacy_AsyncCallable);
  34514. for (t1 = _this._async_environment$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  34515. t2 = t1._collection$_current;
  34516. _this._async_environment$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  34517. _this._async_environment$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  34518. _this._async_environment$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  34519. }
  34520. _this._async_environment$_allModules.push(module);
  34521. _this._async_environment$_forwardedModules.add$1(0, view);
  34522. _this._async_environment$_forwardedModuleNodes.$indexSet(0, view, rule);
  34523. },
  34524. _async_environment$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  34525. var larger, smaller, t1, t2, $name;
  34526. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  34527. larger = oldMembers;
  34528. smaller = newMembers;
  34529. } else {
  34530. larger = newMembers;
  34531. smaller = oldMembers;
  34532. }
  34533. for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
  34534. $name = t1.get$current(t1);
  34535. if (!larger.containsKey$1($name))
  34536. continue;
  34537. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  34538. continue;
  34539. if (t2)
  34540. $name = "$" + H.S($name);
  34541. throw H.wrapException(E.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._async_environment$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.legacy_FileSpan, type$.legacy_String)));
  34542. }
  34543. },
  34544. importForwards$1: function(module) {
  34545. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  34546. t1 = module._async_environment$_environment,
  34547. forwarded = t1._async_environment$_forwardedModules;
  34548. if (forwarded == null)
  34549. return;
  34550. if (_this._async_environment$_forwardedModules != null) {
  34551. t2 = P.LinkedHashSet_LinkedHashSet(type$.legacy_Module_legacy_AsyncCallable);
  34552. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._async_environment$_globalModules; t3.moveNext$0();) {
  34553. t5 = t3._collection$_current;
  34554. if (!_this._async_environment$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  34555. t2.add$1(0, t5);
  34556. }
  34557. forwarded = t2;
  34558. }
  34559. if (_this._async_environment$_forwardedModules == null)
  34560. _this._async_environment$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_AsyncCallable);
  34561. if (_this._async_environment$_forwardedModuleNodes == null)
  34562. _this._async_environment$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_AsyncCallable, type$.legacy_AstNode);
  34563. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String*>");
  34564. t3 = t2._eval$1("Iterable.E");
  34565. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure(), t2), t3);
  34566. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure0(), t2), t3);
  34567. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure1(), t2), t3);
  34568. t2 = _this._async_environment$_variables;
  34569. t3 = t2.length;
  34570. if (t3 === 1) {
  34571. for (t3 = _this._async_environment$_globalModules, t4 = P.List_List$from(t3, true, H._instanceType(t3)._precomputed1), t5 = t4.length, t6 = type$.legacy_AsyncCallable, t7 = _this._async_environment$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  34572. module = t4[_i];
  34573. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  34574. if (shadowed != null) {
  34575. t3.remove$1(0, module);
  34576. t8 = shadowed.variables;
  34577. if (t8.get$isEmpty(t8)) {
  34578. t8 = shadowed.functions;
  34579. if (t8.get$isEmpty(t8)) {
  34580. t8 = shadowed.mixins;
  34581. if (t8.get$isEmpty(t8)) {
  34582. t8 = shadowed._shadowed_view$_inner;
  34583. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  34584. } else
  34585. t8 = false;
  34586. } else
  34587. t8 = false;
  34588. } else
  34589. t8 = false;
  34590. if (!t8) {
  34591. t3.add$1(0, shadowed);
  34592. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  34593. }
  34594. }
  34595. }
  34596. t4 = _this._async_environment$_forwardedModules;
  34597. t4.toString;
  34598. t4 = P.List_List$from(t4, true, H._instanceType(t4)._precomputed1);
  34599. t5 = t4.length;
  34600. _i = 0;
  34601. for (; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  34602. module = t4[_i];
  34603. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  34604. if (shadowed != null) {
  34605. _this._async_environment$_forwardedModules.remove$1(0, module);
  34606. t8 = shadowed.variables;
  34607. if (t8.get$isEmpty(t8)) {
  34608. t8 = shadowed.functions;
  34609. if (t8.get$isEmpty(t8)) {
  34610. t8 = shadowed.mixins;
  34611. if (t8.get$isEmpty(t8)) {
  34612. t8 = shadowed._shadowed_view$_inner;
  34613. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  34614. } else
  34615. t8 = false;
  34616. } else
  34617. t8 = false;
  34618. } else
  34619. t8 = false;
  34620. if (!t8) {
  34621. _this._async_environment$_forwardedModules.add$1(0, shadowed);
  34622. t8 = _this._async_environment$_forwardedModuleNodes;
  34623. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  34624. }
  34625. }
  34626. }
  34627. t3.addAll$1(0, forwarded);
  34628. t7.addAll$1(0, t1._async_environment$_forwardedModuleNodes);
  34629. _this._async_environment$_forwardedModules.addAll$1(0, forwarded);
  34630. _this._async_environment$_forwardedModuleNodes.addAll$1(0, t1._async_environment$_forwardedModuleNodes);
  34631. } else {
  34632. t1 = _this._async_environment$_nestedForwardedModules;
  34633. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._async_environment$_nestedForwardedModules = P.List_List$generate(t3 - 1, new Q.AsyncEnvironment_importForwards_closure2(), true, type$.legacy_List_legacy_Module_legacy_AsyncCallable) : t1), forwarded);
  34634. }
  34635. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment$_variableNodes, t4 = t3 != null, t5 = _this._async_environment$_variableIndices; t1.moveNext$0();) {
  34636. t6 = t1._collection$_current;
  34637. t5.remove$1(0, t6);
  34638. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  34639. if (t4)
  34640. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  34641. }
  34642. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment$_functionIndices, t3 = _this._async_environment$_functions; t1.moveNext$0();) {
  34643. t4 = t1._collection$_current;
  34644. t2.remove$1(0, t4);
  34645. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  34646. }
  34647. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment$_mixinIndices, t3 = _this._async_environment$_mixins; t1.moveNext$0();) {
  34648. t4 = t1._collection$_current;
  34649. t2.remove$1(0, t4);
  34650. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  34651. }
  34652. },
  34653. getVariable$2$namespace: function($name, namespace) {
  34654. var t1, index, _this = this;
  34655. if (namespace != null)
  34656. return _this._async_environment$_getModule$1(namespace).get$variables().$index(0, $name);
  34657. if (_this._async_environment$_lastVariableName === $name) {
  34658. t1 = J.$index$asx(_this._async_environment$_variables[_this._async_environment$_lastVariableIndex], $name);
  34659. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  34660. }
  34661. t1 = _this._async_environment$_variableIndices;
  34662. index = t1.$index(0, $name);
  34663. if (index != null) {
  34664. _this._async_environment$_lastVariableName = $name;
  34665. _this._async_environment$_lastVariableIndex = index;
  34666. t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
  34667. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  34668. }
  34669. index = _this._async_environment$_variableIndex$1($name);
  34670. if (index == null)
  34671. return _this._async_environment$_getVariableFromGlobalModule$1($name);
  34672. _this._async_environment$_lastVariableName = $name;
  34673. _this._async_environment$_lastVariableIndex = index;
  34674. t1.$indexSet(0, $name, index);
  34675. t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
  34676. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  34677. },
  34678. getVariable$1: function($name) {
  34679. return this.getVariable$2$namespace($name, null);
  34680. },
  34681. _async_environment$_getVariableFromGlobalModule$1: function($name) {
  34682. return this._async_environment$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment__getVariableFromGlobalModule_closure($name));
  34683. },
  34684. getVariableNode$2$namespace: function($name, namespace) {
  34685. var t1, index, _this = this;
  34686. if (namespace != null)
  34687. return _this._async_environment$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  34688. if (_this._async_environment$_lastVariableName === $name) {
  34689. t1 = J.$index$asx(_this._async_environment$_variableNodes[_this._async_environment$_lastVariableIndex], $name);
  34690. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  34691. }
  34692. t1 = _this._async_environment$_variableIndices;
  34693. index = t1.$index(0, $name);
  34694. if (index != null) {
  34695. _this._async_environment$_lastVariableName = $name;
  34696. _this._async_environment$_lastVariableIndex = index;
  34697. t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
  34698. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  34699. }
  34700. index = _this._async_environment$_variableIndex$1($name);
  34701. if (index == null)
  34702. return _this._async_environment$_getVariableNodeFromGlobalModule$1($name);
  34703. _this._async_environment$_lastVariableName = $name;
  34704. _this._async_environment$_lastVariableIndex = index;
  34705. t1.$indexSet(0, $name, index);
  34706. t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
  34707. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  34708. },
  34709. _async_environment$_getVariableNodeFromGlobalModule$1: function($name) {
  34710. var t1, value;
  34711. for (t1 = this._async_environment$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  34712. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  34713. if (value != null)
  34714. return value;
  34715. }
  34716. return null;
  34717. },
  34718. globalVariableExists$2$namespace: function($name, namespace) {
  34719. if (namespace != null)
  34720. return this._async_environment$_getModule$1(namespace).get$variables().containsKey$1($name);
  34721. if (C.JSArray_methods.get$first(this._async_environment$_variables).containsKey$1($name))
  34722. return true;
  34723. return this._async_environment$_getVariableFromGlobalModule$1($name) != null;
  34724. },
  34725. globalVariableExists$1: function($name) {
  34726. return this.globalVariableExists$2$namespace($name, null);
  34727. },
  34728. _async_environment$_variableIndex$1: function($name) {
  34729. var t1, i;
  34730. for (t1 = this._async_environment$_variables, i = t1.length - 1; i >= 0; --i)
  34731. if (t1[i].containsKey$1($name))
  34732. return i;
  34733. return null;
  34734. },
  34735. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  34736. var t1, moduleWithName, cur, t2, index, _this = this;
  34737. if (namespace != null) {
  34738. _this._async_environment$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  34739. return;
  34740. }
  34741. if (global || _this._async_environment$_variables.length === 1) {
  34742. _this._async_environment$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure(_this, $name));
  34743. t1 = _this._async_environment$_variables;
  34744. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  34745. moduleWithName = _this._async_environment$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment_setVariable_closure0($name));
  34746. if (moduleWithName != null) {
  34747. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  34748. return;
  34749. }
  34750. }
  34751. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  34752. t1 = _this._async_environment$_variableNodes;
  34753. if (t1 != null)
  34754. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  34755. return;
  34756. }
  34757. if (_this._async_environment$_nestedForwardedModules != null && !_this._async_environment$_variableIndices.containsKey$1($name) && _this._async_environment$_variableIndex$1($name) == null) {
  34758. t1 = _this._async_environment$_nestedForwardedModules;
  34759. t1.toString;
  34760. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  34761. t1 = new H.ListIterator(t1, t1.get$length(t1));
  34762. for (; t1.moveNext$0();) {
  34763. cur = t1.__internal$_current;
  34764. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  34765. cur = t2.__internal$_current;
  34766. if (cur.get$variables().containsKey$1($name)) {
  34767. cur.setVariable$3($name, value, nodeWithSpan);
  34768. return;
  34769. }
  34770. }
  34771. }
  34772. }
  34773. index = _this._async_environment$_lastVariableName === $name ? _this._async_environment$_lastVariableIndex : _this._async_environment$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure1(_this, $name));
  34774. if (!_this._async_environment$_inSemiGlobalScope && index === 0) {
  34775. index = _this._async_environment$_variables.length - 1;
  34776. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  34777. }
  34778. _this._async_environment$_lastVariableName = $name;
  34779. _this._async_environment$_lastVariableIndex = index;
  34780. J.$indexSet$ax(_this._async_environment$_variables[index], $name, value);
  34781. t1 = _this._async_environment$_variableNodes;
  34782. if (t1 != null)
  34783. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  34784. },
  34785. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  34786. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  34787. },
  34788. setLocalVariable$3: function($name, value, nodeWithSpan) {
  34789. var index, _this = this,
  34790. t1 = _this._async_environment$_variables,
  34791. t2 = t1.length;
  34792. _this._async_environment$_lastVariableName = $name;
  34793. index = _this._async_environment$_lastVariableIndex = t2 - 1;
  34794. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  34795. J.$indexSet$ax(t1[index], $name, value);
  34796. t1 = _this._async_environment$_variableNodes;
  34797. if (t1 != null)
  34798. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  34799. },
  34800. getFunction$2$namespace: function($name, namespace) {
  34801. var t1, index, _this = this;
  34802. if (namespace != null) {
  34803. t1 = _this._async_environment$_getModule$1(namespace);
  34804. return t1.get$functions(t1).$index(0, $name);
  34805. }
  34806. t1 = _this._async_environment$_functionIndices;
  34807. index = t1.$index(0, $name);
  34808. if (index != null) {
  34809. t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
  34810. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  34811. }
  34812. index = _this._async_environment$_functionIndex$1($name);
  34813. if (index == null)
  34814. return _this._async_environment$_getFunctionFromGlobalModule$1($name);
  34815. t1.$indexSet(0, $name, index);
  34816. t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
  34817. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  34818. },
  34819. _async_environment$_getFunctionFromGlobalModule$1: function($name) {
  34820. return this._async_environment$_fromOneModule$3($name, "function", new Q.AsyncEnvironment__getFunctionFromGlobalModule_closure($name));
  34821. },
  34822. _async_environment$_functionIndex$1: function($name) {
  34823. var t1, i;
  34824. for (t1 = this._async_environment$_functions, i = t1.length - 1; i >= 0; --i)
  34825. if (t1[i].containsKey$1($name))
  34826. return i;
  34827. return null;
  34828. },
  34829. getMixin$2$namespace: function($name, namespace) {
  34830. var t1, index, _this = this;
  34831. if (namespace != null)
  34832. return _this._async_environment$_getModule$1(namespace).get$mixins().$index(0, $name);
  34833. t1 = _this._async_environment$_mixinIndices;
  34834. index = t1.$index(0, $name);
  34835. if (index != null) {
  34836. t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
  34837. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  34838. }
  34839. index = _this._async_environment$_mixinIndex$1($name);
  34840. if (index == null)
  34841. return _this._async_environment$_getMixinFromGlobalModule$1($name);
  34842. t1.$indexSet(0, $name, index);
  34843. t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
  34844. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  34845. },
  34846. _async_environment$_getMixinFromGlobalModule$1: function($name) {
  34847. return this._async_environment$_fromOneModule$3($name, "mixin", new Q.AsyncEnvironment__getMixinFromGlobalModule_closure($name));
  34848. },
  34849. _async_environment$_mixinIndex$1: function($name) {
  34850. var t1, i;
  34851. for (t1 = this._async_environment$_mixins, i = t1.length - 1; i >= 0; --i)
  34852. if (t1[i].containsKey$1($name))
  34853. return i;
  34854. return null;
  34855. },
  34856. withContent$2: function($content, callback) {
  34857. return this.withContent$body$AsyncEnvironment($content, callback);
  34858. },
  34859. withContent$body$AsyncEnvironment: function($content, callback) {
  34860. var $async$goto = 0,
  34861. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  34862. $async$self = this, oldContent;
  34863. var $async$withContent$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  34864. if ($async$errorCode === 1)
  34865. return P._asyncRethrow($async$result, $async$completer);
  34866. while (true)
  34867. switch ($async$goto) {
  34868. case 0:
  34869. // Function start
  34870. oldContent = $async$self._async_environment$_content;
  34871. $async$self._async_environment$_content = $content;
  34872. $async$goto = 2;
  34873. return P._asyncAwait(callback.call$0(), $async$withContent$2);
  34874. case 2:
  34875. // returning from await.
  34876. $async$self._async_environment$_content = oldContent;
  34877. // implicit return
  34878. return P._asyncReturn(null, $async$completer);
  34879. }
  34880. });
  34881. return P._asyncStartSync($async$withContent$2, $async$completer);
  34882. },
  34883. asMixin$1: function(callback) {
  34884. var $async$goto = 0,
  34885. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  34886. $async$self = this, oldInMixin;
  34887. var $async$asMixin$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  34888. if ($async$errorCode === 1)
  34889. return P._asyncRethrow($async$result, $async$completer);
  34890. while (true)
  34891. switch ($async$goto) {
  34892. case 0:
  34893. // Function start
  34894. oldInMixin = $async$self._async_environment$_inMixin;
  34895. $async$self._async_environment$_inMixin = true;
  34896. $async$goto = 2;
  34897. return P._asyncAwait(callback.call$0(), $async$asMixin$1);
  34898. case 2:
  34899. // returning from await.
  34900. $async$self._async_environment$_inMixin = oldInMixin;
  34901. // implicit return
  34902. return P._asyncReturn(null, $async$completer);
  34903. }
  34904. });
  34905. return P._asyncStartSync($async$asMixin$1, $async$completer);
  34906. },
  34907. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when, $T) {
  34908. return this.scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $T._eval$1("0*"));
  34909. },
  34910. scope$1$1: function(callback, $T) {
  34911. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  34912. },
  34913. scope$1$2$when: function(callback, when, $T) {
  34914. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  34915. },
  34916. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  34917. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  34918. },
  34919. scope$body$AsyncEnvironment: function(callback, semiGlobal, when, $T, $async$type) {
  34920. var $async$goto = 0,
  34921. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  34922. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5;
  34923. var $async$scope$1$3$semiGlobal$when = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  34924. if ($async$errorCode === 1) {
  34925. $async$currentError = $async$result;
  34926. $async$goto = $async$handler;
  34927. }
  34928. while (true)
  34929. switch ($async$goto) {
  34930. case 0:
  34931. // Function start
  34932. $async$goto = !when ? 3 : 4;
  34933. break;
  34934. case 3:
  34935. // then
  34936. wasInSemiGlobalScope = $async$self._async_environment$_inSemiGlobalScope;
  34937. $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
  34938. $async$handler = 5;
  34939. $async$goto = 8;
  34940. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  34941. case 8:
  34942. // returning from await.
  34943. t1 = $async$result;
  34944. $async$returnValue = t1;
  34945. $async$next = [1];
  34946. // goto finally
  34947. $async$goto = 6;
  34948. break;
  34949. $async$next.push(7);
  34950. // goto finally
  34951. $async$goto = 6;
  34952. break;
  34953. case 5:
  34954. // uncaught
  34955. $async$next = [2];
  34956. case 6:
  34957. // finally
  34958. $async$handler = 2;
  34959. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
  34960. // goto the next finally handler
  34961. $async$goto = $async$next.pop();
  34962. break;
  34963. case 7:
  34964. // after finally
  34965. case 4:
  34966. // join
  34967. semiGlobal = semiGlobal && $async$self._async_environment$_inSemiGlobalScope;
  34968. wasInSemiGlobalScope0 = $async$self._async_environment$_inSemiGlobalScope;
  34969. $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
  34970. t1 = $async$self._async_environment$_variables;
  34971. t2 = type$.legacy_String;
  34972. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_Value));
  34973. t3 = $async$self._async_environment$_variableNodes;
  34974. if (t3 != null)
  34975. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_AstNode));
  34976. t3 = $async$self._async_environment$_functions;
  34977. t4 = type$.legacy_AsyncCallable;
  34978. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  34979. t5 = $async$self._async_environment$_mixins;
  34980. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  34981. t4 = $async$self._async_environment$_nestedForwardedModules;
  34982. if (t4 != null)
  34983. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable));
  34984. $async$handler = 9;
  34985. $async$goto = 12;
  34986. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  34987. case 12:
  34988. // returning from await.
  34989. t2 = $async$result;
  34990. $async$returnValue = t2;
  34991. $async$next = [1];
  34992. // goto finally
  34993. $async$goto = 10;
  34994. break;
  34995. $async$next.push(11);
  34996. // goto finally
  34997. $async$goto = 10;
  34998. break;
  34999. case 9:
  35000. // uncaught
  35001. $async$next = [2];
  35002. case 10:
  35003. // finally
  35004. $async$handler = 2;
  35005. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope0;
  35006. $async$self._async_environment$_lastVariableIndex = $async$self._async_environment$_lastVariableName = null;
  35007. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = $async$self._async_environment$_variableIndices; t1.moveNext$0();) {
  35008. $name = t1.get$current(t1);
  35009. t2.remove$1(0, $name);
  35010. }
  35011. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = $async$self._async_environment$_functionIndices; t1.moveNext$0();) {
  35012. name0 = t1.get$current(t1);
  35013. t2.remove$1(0, name0);
  35014. }
  35015. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = $async$self._async_environment$_mixinIndices; t1.moveNext$0();) {
  35016. name1 = t1.get$current(t1);
  35017. t2.remove$1(0, name1);
  35018. }
  35019. t1 = $async$self._async_environment$_nestedForwardedModules;
  35020. if (t1 != null)
  35021. C.JSArray_methods.removeLast$0(t1);
  35022. // goto the next finally handler
  35023. $async$goto = $async$next.pop();
  35024. break;
  35025. case 11:
  35026. // after finally
  35027. case 1:
  35028. // return
  35029. return P._asyncReturn($async$returnValue, $async$completer);
  35030. case 2:
  35031. // rethrow
  35032. return P._asyncRethrow($async$currentError, $async$completer);
  35033. }
  35034. });
  35035. return P._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  35036. },
  35037. toImplicitConfiguration$0: function() {
  35038. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  35039. t1 = type$.legacy_String,
  35040. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ConfiguredValue);
  35041. for (t2 = this._async_environment$_variables, t3 = this._async_environment$_variableNodes, t4 = t3 == null, t5 = type$.legacy_AstNode, i = 0; i < t2.length; ++i) {
  35042. values = t2[i];
  35043. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  35044. for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
  35045. t7 = t6.get$current(t6);
  35046. configuration.$indexSet(0, t7, new Z.ConfiguredValue(values.$index(0, t7), null, nodes.$index(0, t7)));
  35047. }
  35048. }
  35049. return new A.Configuration(configuration, null, true);
  35050. },
  35051. _async_environment$_getModule$1: function(namespace) {
  35052. var module = this._async_environment$_modules.$index(0, namespace);
  35053. if (module != null)
  35054. return module;
  35055. throw H.wrapException(E.SassScriptException$('There is no module with the namespace "' + namespace + '".'));
  35056. },
  35057. _async_environment$_fromOneModule$1$3: function($name, type, callback) {
  35058. var cur, t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  35059. t1 = this._async_environment$_nestedForwardedModules;
  35060. if (t1 != null)
  35061. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  35062. cur = t1.__internal$_current;
  35063. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  35064. cur = t2.__internal$_current;
  35065. value = callback.call$1(cur);
  35066. if (value != null)
  35067. return value;
  35068. }
  35069. }
  35070. for (t1 = this._async_environment$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.legacy_AsyncCallable, value = null, identity = null; t1.moveNext$0();) {
  35071. t3 = t1._collection$_current;
  35072. valueInModule = callback.call$1(t3);
  35073. if (valueInModule == null)
  35074. continue;
  35075. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  35076. if (identityFromModule.$eq(0, identity))
  35077. continue;
  35078. if (value != null) {
  35079. t1 = "This " + type + string$.x20is_av;
  35080. t2 = type + " use";
  35081. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  35082. for (t4 = this._async_environment$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  35083. t5 = t4.get$current(t4);
  35084. if (callback.call$1(t5.key) != null)
  35085. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  35086. }
  35087. throw H.wrapException(E.MultiSpanSassScriptException$(t1, t2, t3));
  35088. }
  35089. identity = identityFromModule;
  35090. value = valueInModule;
  35091. }
  35092. return value;
  35093. },
  35094. _async_environment$_fromOneModule$3: function($name, type, callback) {
  35095. return this._async_environment$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  35096. }
  35097. };
  35098. Q.AsyncEnvironment_importForwards_closure.prototype = {
  35099. call$1: function(module) {
  35100. return module.get$variables().get$keys();
  35101. }
  35102. };
  35103. Q.AsyncEnvironment_importForwards_closure0.prototype = {
  35104. call$1: function(module) {
  35105. return module.get$functions(module).get$keys();
  35106. }
  35107. };
  35108. Q.AsyncEnvironment_importForwards_closure1.prototype = {
  35109. call$1: function(module) {
  35110. return module.get$mixins().get$keys();
  35111. }
  35112. };
  35113. Q.AsyncEnvironment_importForwards_closure2.prototype = {
  35114. call$1: function(_) {
  35115. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable);
  35116. },
  35117. $signature: 140
  35118. };
  35119. Q.AsyncEnvironment__getVariableFromGlobalModule_closure.prototype = {
  35120. call$1: function(module) {
  35121. return module.get$variables().$index(0, this.name);
  35122. }
  35123. };
  35124. Q.AsyncEnvironment_setVariable_closure.prototype = {
  35125. call$0: function() {
  35126. var t1 = this.$this;
  35127. t1._async_environment$_lastVariableName = this.name;
  35128. return t1._async_environment$_lastVariableIndex = 0;
  35129. },
  35130. $signature: 7
  35131. };
  35132. Q.AsyncEnvironment_setVariable_closure0.prototype = {
  35133. call$1: function(module) {
  35134. return module.get$variables().containsKey$1(this.name) ? module : null;
  35135. }
  35136. };
  35137. Q.AsyncEnvironment_setVariable_closure1.prototype = {
  35138. call$0: function() {
  35139. var t1 = this.$this,
  35140. t2 = t1._async_environment$_variableIndex$1(this.name);
  35141. return t2 == null ? t1._async_environment$_variables.length - 1 : t2;
  35142. },
  35143. $signature: 7
  35144. };
  35145. Q.AsyncEnvironment__getFunctionFromGlobalModule_closure.prototype = {
  35146. call$1: function(module) {
  35147. return module.get$functions(module).$index(0, this.name);
  35148. }
  35149. };
  35150. Q.AsyncEnvironment__getMixinFromGlobalModule_closure.prototype = {
  35151. call$1: function(module) {
  35152. return module.get$mixins().$index(0, this.name);
  35153. }
  35154. };
  35155. Q._EnvironmentModule0.prototype = {
  35156. get$url: function() {
  35157. return this.css.get$span().file.url;
  35158. },
  35159. setVariable$3: function($name, value, nodeWithSpan) {
  35160. var t1, t2,
  35161. module = this._async_environment$_modulesByVariable.$index(0, $name);
  35162. if (module != null) {
  35163. module.setVariable$3($name, value, nodeWithSpan);
  35164. return;
  35165. }
  35166. t1 = this._async_environment$_environment;
  35167. t2 = t1._async_environment$_variables;
  35168. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  35169. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  35170. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  35171. t1 = t1._async_environment$_variableNodes;
  35172. if (t1 != null)
  35173. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  35174. return;
  35175. },
  35176. variableIdentity$1: function($name) {
  35177. var module = this._async_environment$_modulesByVariable.$index(0, $name);
  35178. return module == null ? this : module.variableIdentity$1($name);
  35179. },
  35180. cloneCss$0: function() {
  35181. var newCssAndExtender, _this = this,
  35182. t1 = _this.css;
  35183. if (J.get$isEmpty$asx(t1.get$children()))
  35184. return _this;
  35185. newCssAndExtender = V.cloneCssStylesheet(t1, _this.extender);
  35186. return Q._EnvironmentModule$_0(_this._async_environment$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._async_environment$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  35187. },
  35188. toString$0: function(_) {
  35189. var t1 = this.css;
  35190. if (t1.get$span().file.url == null)
  35191. t1 = "<unknown url>";
  35192. else {
  35193. t1 = t1.get$span().file;
  35194. t1 = $.$get$context().prettyUri$1(t1.url);
  35195. }
  35196. return t1;
  35197. },
  35198. $isModule: 1,
  35199. get$upstream: function() {
  35200. return this.upstream;
  35201. },
  35202. get$variables: function() {
  35203. return this.variables;
  35204. },
  35205. get$variableNodes: function() {
  35206. return this.variableNodes;
  35207. },
  35208. get$functions: function(receiver) {
  35209. return this.functions;
  35210. },
  35211. get$mixins: function() {
  35212. return this.mixins;
  35213. },
  35214. get$extender: function() {
  35215. return this.extender;
  35216. },
  35217. get$css: function(receiver) {
  35218. return this.css;
  35219. },
  35220. get$transitivelyContainsCss: function() {
  35221. return this.transitivelyContainsCss;
  35222. },
  35223. get$transitivelyContainsExtensions: function() {
  35224. return this.transitivelyContainsExtensions;
  35225. }
  35226. };
  35227. Q._EnvironmentModule__EnvironmentModule_closure5.prototype = {
  35228. call$1: function(module) {
  35229. return module.get$variables();
  35230. }
  35231. };
  35232. Q._EnvironmentModule__EnvironmentModule_closure6.prototype = {
  35233. call$1: function(module) {
  35234. return module.get$variableNodes();
  35235. }
  35236. };
  35237. Q._EnvironmentModule__EnvironmentModule_closure7.prototype = {
  35238. call$1: function(module) {
  35239. return module.get$functions(module);
  35240. }
  35241. };
  35242. Q._EnvironmentModule__EnvironmentModule_closure8.prototype = {
  35243. call$1: function(module) {
  35244. return module.get$mixins();
  35245. }
  35246. };
  35247. Q._EnvironmentModule__EnvironmentModule_closure9.prototype = {
  35248. call$1: function(module) {
  35249. return module.get$transitivelyContainsCss();
  35250. }
  35251. };
  35252. Q._EnvironmentModule__EnvironmentModule_closure10.prototype = {
  35253. call$1: function(module) {
  35254. return module.get$transitivelyContainsExtensions();
  35255. }
  35256. };
  35257. O.AsyncImportCache.prototype = {
  35258. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  35259. return this.canonicalize$body$AsyncImportCache(url, baseImporter, baseUrl, forImport);
  35260. },
  35261. canonicalize$body$AsyncImportCache: function(url, baseImporter, baseUrl, forImport) {
  35262. var $async$goto = 0,
  35263. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2),
  35264. $async$returnValue, $async$self = this, resolvedUrl, canonicalUrl;
  35265. var $async$canonicalize$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35266. if ($async$errorCode === 1)
  35267. return P._asyncRethrow($async$result, $async$completer);
  35268. while (true)
  35269. switch ($async$goto) {
  35270. case 0:
  35271. // Function start
  35272. $async$goto = baseImporter != null ? 3 : 4;
  35273. break;
  35274. case 3:
  35275. // then
  35276. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  35277. $async$goto = 5;
  35278. return P._asyncAwait($async$self._async_import_cache$_canonicalize$3(baseImporter, resolvedUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  35279. case 5:
  35280. // returning from await.
  35281. canonicalUrl = $async$result;
  35282. if (canonicalUrl != null) {
  35283. $async$returnValue = new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri);
  35284. // goto return
  35285. $async$goto = 1;
  35286. break;
  35287. }
  35288. case 4:
  35289. // join
  35290. $async$goto = 6;
  35291. return P._asyncAwait(B.putIfAbsentAsync($async$self._async_import_cache$_canonicalizeCache, new S.Tuple2(url, forImport, type$.Tuple2_of_legacy_Uri_and_legacy_bool), new O.AsyncImportCache_canonicalize_closure($async$self, url, forImport), type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  35292. case 6:
  35293. // returning from await.
  35294. $async$returnValue = $async$result;
  35295. // goto return
  35296. $async$goto = 1;
  35297. break;
  35298. case 1:
  35299. // return
  35300. return P._asyncReturn($async$returnValue, $async$completer);
  35301. }
  35302. });
  35303. return P._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  35304. },
  35305. _async_import_cache$_canonicalize$3: function(importer, url, forImport) {
  35306. return this._canonicalize$body$AsyncImportCache(importer, url, forImport);
  35307. },
  35308. _canonicalize$body$AsyncImportCache: function(importer, url, forImport) {
  35309. var $async$goto = 0,
  35310. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Uri),
  35311. $async$returnValue, $async$self = this, result;
  35312. var $async$_async_import_cache$_canonicalize$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35313. if ($async$errorCode === 1)
  35314. return P._asyncRethrow($async$result, $async$completer);
  35315. while (true)
  35316. switch ($async$goto) {
  35317. case 0:
  35318. // Function start
  35319. $async$goto = 3;
  35320. return P._asyncAwait(forImport ? B.inImportRule(new O.AsyncImportCache__canonicalize_closure(importer, url)) : importer.canonicalize$1(url), $async$_async_import_cache$_canonicalize$3);
  35321. case 3:
  35322. // returning from await.
  35323. result = $async$result;
  35324. if ((result == null ? null : result.get$scheme()) === "")
  35325. $async$self._async_import_cache$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + url.toString$0(0) + " to " + H.S(result) + string$.x2ex0aRela, true);
  35326. $async$returnValue = result;
  35327. // goto return
  35328. $async$goto = 1;
  35329. break;
  35330. case 1:
  35331. // return
  35332. return P._asyncReturn($async$returnValue, $async$completer);
  35333. }
  35334. });
  35335. return P._asyncStartSync($async$_async_import_cache$_canonicalize$3, $async$completer);
  35336. },
  35337. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  35338. return this.import$body$AsyncImportCache(url, baseImporter, baseUrl, forImport);
  35339. },
  35340. import$body$AsyncImportCache: function(url, baseImporter, baseUrl, forImport) {
  35341. var $async$goto = 0,
  35342. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet),
  35343. $async$returnValue, $async$self = this, t1, tuple, $async$temp1, $async$temp2;
  35344. var $async$import$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35345. if ($async$errorCode === 1)
  35346. return P._asyncRethrow($async$result, $async$completer);
  35347. while (true)
  35348. switch ($async$goto) {
  35349. case 0:
  35350. // Function start
  35351. $async$goto = 3;
  35352. return P._asyncAwait($async$self.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport), $async$import$4$baseImporter$baseUrl$forImport);
  35353. case 3:
  35354. // returning from await.
  35355. tuple = $async$result;
  35356. if (tuple == null) {
  35357. $async$returnValue = null;
  35358. // goto return
  35359. $async$goto = 1;
  35360. break;
  35361. }
  35362. t1 = tuple.item1;
  35363. $async$temp1 = S;
  35364. $async$temp2 = t1;
  35365. $async$goto = 4;
  35366. return P._asyncAwait($async$self.importCanonical$3(t1, tuple.item2, tuple.item3), $async$import$4$baseImporter$baseUrl$forImport);
  35367. case 4:
  35368. // returning from await.
  35369. $async$returnValue = new $async$temp1.Tuple2($async$temp2, $async$result, type$.Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet);
  35370. // goto return
  35371. $async$goto = 1;
  35372. break;
  35373. case 1:
  35374. // return
  35375. return P._asyncReturn($async$returnValue, $async$completer);
  35376. }
  35377. });
  35378. return P._asyncStartSync($async$import$4$baseImporter$baseUrl$forImport, $async$completer);
  35379. },
  35380. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  35381. return this.importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl);
  35382. },
  35383. importCanonical$body$AsyncImportCache: function(importer, canonicalUrl, originalUrl) {
  35384. var $async$goto = 0,
  35385. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet_2),
  35386. $async$returnValue, $async$self = this;
  35387. var $async$importCanonical$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35388. if ($async$errorCode === 1)
  35389. return P._asyncRethrow($async$result, $async$completer);
  35390. while (true)
  35391. switch ($async$goto) {
  35392. case 0:
  35393. // Function start
  35394. $async$goto = 3;
  35395. return P._asyncAwait(B.putIfAbsentAsync($async$self._async_import_cache$_importCache, canonicalUrl, new O.AsyncImportCache_importCanonical_closure($async$self, importer, canonicalUrl, originalUrl), type$.legacy_Uri, type$.legacy_Stylesheet_2), $async$importCanonical$3);
  35396. case 3:
  35397. // returning from await.
  35398. $async$returnValue = $async$result;
  35399. // goto return
  35400. $async$goto = 1;
  35401. break;
  35402. case 1:
  35403. // return
  35404. return P._asyncReturn($async$returnValue, $async$completer);
  35405. }
  35406. });
  35407. return P._asyncStartSync($async$importCanonical$3, $async$completer);
  35408. },
  35409. humanize$1: function(canonicalUrl) {
  35410. var t1 = this._async_import_cache$_canonicalizeCache.get$values(),
  35411. t2 = H._instanceType(t1),
  35412. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new O.AsyncImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new O.AsyncImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri*>")), new O.AsyncImportCache_humanize_closure1(), type$.legacy_Uri, type$.dynamic);
  35413. if (url == null)
  35414. return canonicalUrl;
  35415. t1 = $.$get$url();
  35416. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  35417. }
  35418. };
  35419. O.AsyncImportCache_canonicalize_closure.prototype = {
  35420. call$0: function() {
  35421. var $async$goto = 0,
  35422. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2),
  35423. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  35424. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35425. if ($async$errorCode === 1)
  35426. return P._asyncRethrow($async$result, $async$completer);
  35427. while (true)
  35428. switch ($async$goto) {
  35429. case 0:
  35430. // Function start
  35431. t1 = $async$self.$this, t2 = t1._async_import_cache$_importers, t3 = t2.length, t4 = $async$self.url, t5 = $async$self.forImport, _i = 0;
  35432. case 3:
  35433. // for condition
  35434. if (!(_i < t2.length)) {
  35435. // goto after for
  35436. $async$goto = 5;
  35437. break;
  35438. }
  35439. importer = t2[_i];
  35440. $async$goto = 6;
  35441. return P._asyncAwait(t1._async_import_cache$_canonicalize$3(importer, t4, t5), $async$call$0);
  35442. case 6:
  35443. // returning from await.
  35444. canonicalUrl = $async$result;
  35445. if (canonicalUrl != null) {
  35446. $async$returnValue = new S.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri);
  35447. // goto return
  35448. $async$goto = 1;
  35449. break;
  35450. }
  35451. case 4:
  35452. // for update
  35453. t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i;
  35454. // goto for condition
  35455. $async$goto = 3;
  35456. break;
  35457. case 5:
  35458. // after for
  35459. $async$returnValue = null;
  35460. // goto return
  35461. $async$goto = 1;
  35462. break;
  35463. case 1:
  35464. // return
  35465. return P._asyncReturn($async$returnValue, $async$completer);
  35466. }
  35467. });
  35468. return P._asyncStartSync($async$call$0, $async$completer);
  35469. },
  35470. $signature: 139
  35471. };
  35472. O.AsyncImportCache__canonicalize_closure.prototype = {
  35473. call$0: function() {
  35474. return this.importer.canonicalize$1(this.url);
  35475. },
  35476. $signature: 93
  35477. };
  35478. O.AsyncImportCache_importCanonical_closure.prototype = {
  35479. call$0: function() {
  35480. var $async$goto = 0,
  35481. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet_2),
  35482. $async$returnValue, $async$self = this, t2, t3, t4, t5, t1, result;
  35483. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35484. if ($async$errorCode === 1)
  35485. return P._asyncRethrow($async$result, $async$completer);
  35486. while (true)
  35487. switch ($async$goto) {
  35488. case 0:
  35489. // Function start
  35490. t1 = $async$self.canonicalUrl;
  35491. $async$goto = 3;
  35492. return P._asyncAwait($async$self.importer.load$1(t1), $async$call$0);
  35493. case 3:
  35494. // returning from await.
  35495. result = $async$result;
  35496. if (result == null) {
  35497. $async$returnValue = null;
  35498. // goto return
  35499. $async$goto = 1;
  35500. break;
  35501. }
  35502. t2 = $async$self.$this;
  35503. t2._async_import_cache$_resultsCache.$indexSet(0, t1, result);
  35504. t3 = result.contents;
  35505. t4 = result.syntax;
  35506. t5 = $async$self.originalUrl;
  35507. t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
  35508. $async$returnValue = V.Stylesheet_Stylesheet$parse(t3, t4, t2._async_import_cache$_logger, t1);
  35509. // goto return
  35510. $async$goto = 1;
  35511. break;
  35512. case 1:
  35513. // return
  35514. return P._asyncReturn($async$returnValue, $async$completer);
  35515. }
  35516. });
  35517. return P._asyncStartSync($async$call$0, $async$completer);
  35518. },
  35519. $signature: 179
  35520. };
  35521. O.AsyncImportCache_humanize_closure.prototype = {
  35522. call$1: function(tuple) {
  35523. var t1 = tuple == null ? null : tuple.item2;
  35524. return J.$eq$(t1, this.canonicalUrl);
  35525. }
  35526. };
  35527. O.AsyncImportCache_humanize_closure0.prototype = {
  35528. call$1: function(tuple) {
  35529. return tuple.item3;
  35530. }
  35531. };
  35532. O.AsyncImportCache_humanize_closure1.prototype = {
  35533. call$1: function(url) {
  35534. return J.get$length$asx(J.get$path$x(url));
  35535. },
  35536. $signature: 30
  35537. };
  35538. D.Callable.prototype = {};
  35539. B.AsyncCallable.prototype = {};
  35540. S.AsyncBuiltInCallable.prototype = {
  35541. callbackFor$2: function(positional, names) {
  35542. return new S.Tuple2(this._async_built_in$_arguments, this._async_built_in$_callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_FutureOr_legacy_Value_Function_legacy_List_legacy_Value);
  35543. },
  35544. $isAsyncCallable: 1,
  35545. get$name: function() {
  35546. return this.name;
  35547. }
  35548. };
  35549. S.AsyncBuiltInCallable$mixin_closure.prototype = {
  35550. call$1: function($arguments) {
  35551. return this.$call$body$AsyncBuiltInCallable$mixin_closure($arguments);
  35552. },
  35553. $call$body$AsyncBuiltInCallable$mixin_closure: function($arguments) {
  35554. var $async$goto = 0,
  35555. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  35556. $async$returnValue, $async$self = this;
  35557. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35558. if ($async$errorCode === 1)
  35559. return P._asyncRethrow($async$result, $async$completer);
  35560. while (true)
  35561. switch ($async$goto) {
  35562. case 0:
  35563. // Function start
  35564. $async$goto = 3;
  35565. return P._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
  35566. case 3:
  35567. // returning from await.
  35568. $async$returnValue = null;
  35569. // goto return
  35570. $async$goto = 1;
  35571. break;
  35572. case 1:
  35573. // return
  35574. return P._asyncReturn($async$returnValue, $async$completer);
  35575. }
  35576. });
  35577. return P._asyncStartSync($async$call$1, $async$completer);
  35578. }
  35579. };
  35580. Q.BuiltInCallable.prototype = {
  35581. callbackFor$2: function(positional, names) {
  35582. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  35583. for (t1 = this._overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  35584. overload = t1[_i];
  35585. t3 = overload.item1;
  35586. if (t3.matches$2(positional, names))
  35587. return overload;
  35588. mismatchDistance = t3.$arguments.length - positional;
  35589. if (minMismatchDistance != null) {
  35590. t3 = Math.abs(mismatchDistance);
  35591. t4 = Math.abs(minMismatchDistance);
  35592. if (t3 > t4)
  35593. continue;
  35594. if (t3 === t4 && mismatchDistance < 0)
  35595. continue;
  35596. }
  35597. minMismatchDistance = mismatchDistance;
  35598. fuzzyMatch = overload;
  35599. }
  35600. return fuzzyMatch;
  35601. },
  35602. withName$1: function($name) {
  35603. return new Q.BuiltInCallable($name, this._overloads);
  35604. },
  35605. $isCallable: 1,
  35606. $isAsyncCallable: 1,
  35607. $isAsyncBuiltInCallable: 1,
  35608. get$name: function() {
  35609. return this.name;
  35610. }
  35611. };
  35612. Q.BuiltInCallable$mixin_closure.prototype = {
  35613. call$1: function($arguments) {
  35614. this.callback.call$1($arguments);
  35615. return null;
  35616. },
  35617. $signature: 47
  35618. };
  35619. L.PlainCssCallable.prototype = {
  35620. $eq: function(_, other) {
  35621. if (other == null)
  35622. return false;
  35623. return other instanceof L.PlainCssCallable && this.name == other.name;
  35624. },
  35625. get$hashCode: function(_) {
  35626. return J.get$hashCode$(this.name);
  35627. },
  35628. $isCallable: 1,
  35629. $isAsyncCallable: 1,
  35630. get$name: function() {
  35631. return this.name;
  35632. }
  35633. };
  35634. E.UserDefinedCallable.prototype = {
  35635. get$name: function() {
  35636. return this.declaration.name;
  35637. },
  35638. $isCallable: 1,
  35639. $isAsyncCallable: 1
  35640. };
  35641. U._compileStylesheet_closure.prototype = {
  35642. call$1: function(url) {
  35643. var t1, t2, _null = null;
  35644. if (url === "")
  35645. t1 = P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null).get$_text();
  35646. else {
  35647. t1 = P.Uri_parse(url);
  35648. t2 = this.importCache._resultsCache.$index(0, t1);
  35649. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  35650. t1 = (t2 == null ? t1 : t2).toString$0(0);
  35651. }
  35652. return t1;
  35653. }
  35654. };
  35655. A.Configuration.prototype = {
  35656. throughForward$1: function($forward) {
  35657. var t1, t2,
  35658. newValues = this._values;
  35659. if (newValues.get$isEmpty(newValues))
  35660. return C.Configuration_Map_empty_null_true;
  35661. t1 = $forward.prefix;
  35662. if (t1 != null)
  35663. newValues = new R.UnprefixedMapView(newValues, t1, type$.UnprefixedMapView_legacy_ConfiguredValue);
  35664. t1 = $forward.shownVariables;
  35665. if (t1 != null)
  35666. newValues = K.LimitedMapView$safelist(newValues, t1, type$.legacy_String, type$.legacy_ConfiguredValue);
  35667. else {
  35668. t1 = $forward.hiddenVariables;
  35669. if (t1 == null)
  35670. t2 = null;
  35671. else {
  35672. t2 = t1._base;
  35673. t2 = t2.get$isNotEmpty(t2);
  35674. }
  35675. if (t2 === true)
  35676. newValues = K.LimitedMapView$blocklist(newValues, t1, type$.legacy_String, type$.legacy_ConfiguredValue);
  35677. }
  35678. return this.isImplicit ? new A.Configuration(newValues, null, true) : new A.Configuration(newValues, this.nodeWithSpan, false);
  35679. }
  35680. };
  35681. Z.ConfiguredValue.prototype = {};
  35682. O.Environment.prototype = {
  35683. closure$0: function() {
  35684. var t5, t6, t7, _this = this,
  35685. t1 = _this._forwardedModules,
  35686. t2 = _this._forwardedModuleNodes,
  35687. t3 = _this._nestedForwardedModules,
  35688. t4 = _this._variables;
  35689. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  35690. t5 = _this._variableNodes;
  35691. if (t5 == null)
  35692. t5 = null;
  35693. else
  35694. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  35695. t6 = _this._functions;
  35696. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  35697. t7 = _this._mixins;
  35698. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  35699. return O.Environment$_(_this._environment$_modules, _this._namespaceNodes, _this._globalModules, _this._globalModuleNodes, t1, t2, t3, _this._allModules, t4, t5, t6, t7, _this._content);
  35700. },
  35701. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  35702. var t1, t2, _this = this;
  35703. if (namespace == null) {
  35704. _this._globalModules.add$1(0, module);
  35705. _this._globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  35706. _this._allModules.push(module);
  35707. for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._variables).get$keys()); t1.moveNext$0();) {
  35708. t2 = t1.get$current(t1);
  35709. if (module.get$variables().containsKey$1(t2))
  35710. throw H.wrapException(E.SassScriptException$(string$.This_ma + H.S(t2) + '".'));
  35711. }
  35712. } else {
  35713. t1 = _this._environment$_modules;
  35714. if (t1.containsKey$1(namespace))
  35715. throw H.wrapException(E.MultiSpanSassScriptException$(string$.There_ + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.legacy_FileSpan, type$.legacy_String)));
  35716. t1.$indexSet(0, namespace, module);
  35717. _this._namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  35718. _this._allModules.push(module);
  35719. }
  35720. },
  35721. forwardModule$2: function(module, rule) {
  35722. var view, t1, t2, _this = this;
  35723. if (_this._forwardedModules == null)
  35724. _this._forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_Callable);
  35725. if (_this._forwardedModuleNodes == null)
  35726. _this._forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_Callable, type$.legacy_AstNode);
  35727. view = R.ForwardedModuleView_ifNecessary(module, rule, type$.legacy_Callable);
  35728. for (t1 = _this._forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  35729. t2 = t1._collection$_current;
  35730. _this._assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  35731. _this._assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  35732. _this._assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  35733. }
  35734. _this._allModules.push(module);
  35735. _this._forwardedModules.add$1(0, view);
  35736. _this._forwardedModuleNodes.$indexSet(0, view, rule);
  35737. },
  35738. _assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  35739. var larger, smaller, t1, t2, $name;
  35740. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  35741. larger = oldMembers;
  35742. smaller = newMembers;
  35743. } else {
  35744. larger = newMembers;
  35745. smaller = oldMembers;
  35746. }
  35747. for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
  35748. $name = t1.get$current(t1);
  35749. if (!larger.containsKey$1($name))
  35750. continue;
  35751. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  35752. continue;
  35753. if (t2)
  35754. $name = "$" + H.S($name);
  35755. throw H.wrapException(E.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.legacy_FileSpan, type$.legacy_String)));
  35756. }
  35757. },
  35758. importForwards$1: function(module) {
  35759. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  35760. t1 = module._environment,
  35761. forwarded = t1._forwardedModules;
  35762. if (forwarded == null)
  35763. return;
  35764. if (_this._forwardedModules != null) {
  35765. t2 = P.LinkedHashSet_LinkedHashSet(type$.legacy_Module_legacy_Callable);
  35766. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._globalModules; t3.moveNext$0();) {
  35767. t5 = t3._collection$_current;
  35768. if (!_this._forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  35769. t2.add$1(0, t5);
  35770. }
  35771. forwarded = t2;
  35772. }
  35773. if (_this._forwardedModules == null)
  35774. _this._forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_Callable);
  35775. if (_this._forwardedModuleNodes == null)
  35776. _this._forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_Callable, type$.legacy_AstNode);
  35777. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String*>");
  35778. t3 = t2._eval$1("Iterable.E");
  35779. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure(), t2), t3);
  35780. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure0(), t2), t3);
  35781. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure1(), t2), t3);
  35782. t2 = _this._variables;
  35783. t3 = t2.length;
  35784. if (t3 === 1) {
  35785. for (t3 = _this._globalModules, t4 = P.List_List$from(t3, true, H._instanceType(t3)._precomputed1), t5 = t4.length, t6 = type$.legacy_Callable, t7 = _this._globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  35786. module = t4[_i];
  35787. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  35788. if (shadowed != null) {
  35789. t3.remove$1(0, module);
  35790. t8 = shadowed.variables;
  35791. if (t8.get$isEmpty(t8)) {
  35792. t8 = shadowed.functions;
  35793. if (t8.get$isEmpty(t8)) {
  35794. t8 = shadowed.mixins;
  35795. if (t8.get$isEmpty(t8)) {
  35796. t8 = shadowed._shadowed_view$_inner;
  35797. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  35798. } else
  35799. t8 = false;
  35800. } else
  35801. t8 = false;
  35802. } else
  35803. t8 = false;
  35804. if (!t8) {
  35805. t3.add$1(0, shadowed);
  35806. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  35807. }
  35808. }
  35809. }
  35810. t4 = _this._forwardedModules;
  35811. t4.toString;
  35812. t4 = P.List_List$from(t4, true, H._instanceType(t4)._precomputed1);
  35813. t5 = t4.length;
  35814. _i = 0;
  35815. for (; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  35816. module = t4[_i];
  35817. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  35818. if (shadowed != null) {
  35819. _this._forwardedModules.remove$1(0, module);
  35820. t8 = shadowed.variables;
  35821. if (t8.get$isEmpty(t8)) {
  35822. t8 = shadowed.functions;
  35823. if (t8.get$isEmpty(t8)) {
  35824. t8 = shadowed.mixins;
  35825. if (t8.get$isEmpty(t8)) {
  35826. t8 = shadowed._shadowed_view$_inner;
  35827. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  35828. } else
  35829. t8 = false;
  35830. } else
  35831. t8 = false;
  35832. } else
  35833. t8 = false;
  35834. if (!t8) {
  35835. _this._forwardedModules.add$1(0, shadowed);
  35836. t8 = _this._forwardedModuleNodes;
  35837. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  35838. }
  35839. }
  35840. }
  35841. t3.addAll$1(0, forwarded);
  35842. t7.addAll$1(0, t1._forwardedModuleNodes);
  35843. _this._forwardedModules.addAll$1(0, forwarded);
  35844. _this._forwardedModuleNodes.addAll$1(0, t1._forwardedModuleNodes);
  35845. } else {
  35846. t1 = _this._nestedForwardedModules;
  35847. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._nestedForwardedModules = P.List_List$generate(t3 - 1, new O.Environment_importForwards_closure2(), true, type$.legacy_List_legacy_Module_legacy_Callable) : t1), forwarded);
  35848. }
  35849. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._variableNodes, t4 = t3 != null, t5 = _this._variableIndices; t1.moveNext$0();) {
  35850. t6 = t1._collection$_current;
  35851. t5.remove$1(0, t6);
  35852. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  35853. if (t4)
  35854. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  35855. }
  35856. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._functionIndices, t3 = _this._functions; t1.moveNext$0();) {
  35857. t4 = t1._collection$_current;
  35858. t2.remove$1(0, t4);
  35859. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  35860. }
  35861. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._mixinIndices, t3 = _this._mixins; t1.moveNext$0();) {
  35862. t4 = t1._collection$_current;
  35863. t2.remove$1(0, t4);
  35864. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  35865. }
  35866. },
  35867. getVariable$2$namespace: function($name, namespace) {
  35868. var t1, index, _this = this;
  35869. if (namespace != null)
  35870. return _this._getModule$1(namespace).get$variables().$index(0, $name);
  35871. if (_this._lastVariableName === $name) {
  35872. t1 = J.$index$asx(_this._variables[_this._lastVariableIndex], $name);
  35873. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  35874. }
  35875. t1 = _this._variableIndices;
  35876. index = t1.$index(0, $name);
  35877. if (index != null) {
  35878. _this._lastVariableName = $name;
  35879. _this._lastVariableIndex = index;
  35880. t1 = J.$index$asx(_this._variables[index], $name);
  35881. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  35882. }
  35883. index = _this._variableIndex$1($name);
  35884. if (index == null)
  35885. return _this._getVariableFromGlobalModule$1($name);
  35886. _this._lastVariableName = $name;
  35887. _this._lastVariableIndex = index;
  35888. t1.$indexSet(0, $name, index);
  35889. t1 = J.$index$asx(_this._variables[index], $name);
  35890. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  35891. },
  35892. getVariable$1: function($name) {
  35893. return this.getVariable$2$namespace($name, null);
  35894. },
  35895. _getVariableFromGlobalModule$1: function($name) {
  35896. return this._fromOneModule$3($name, "variable", new O.Environment__getVariableFromGlobalModule_closure($name));
  35897. },
  35898. getVariableNode$2$namespace: function($name, namespace) {
  35899. var t1, index, _this = this;
  35900. if (namespace != null)
  35901. return _this._getModule$1(namespace).get$variableNodes().$index(0, $name);
  35902. if (_this._lastVariableName === $name) {
  35903. t1 = J.$index$asx(_this._variableNodes[_this._lastVariableIndex], $name);
  35904. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  35905. }
  35906. t1 = _this._variableIndices;
  35907. index = t1.$index(0, $name);
  35908. if (index != null) {
  35909. _this._lastVariableName = $name;
  35910. _this._lastVariableIndex = index;
  35911. t1 = J.$index$asx(_this._variableNodes[index], $name);
  35912. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  35913. }
  35914. index = _this._variableIndex$1($name);
  35915. if (index == null)
  35916. return _this._getVariableNodeFromGlobalModule$1($name);
  35917. _this._lastVariableName = $name;
  35918. _this._lastVariableIndex = index;
  35919. t1.$indexSet(0, $name, index);
  35920. t1 = J.$index$asx(_this._variableNodes[index], $name);
  35921. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  35922. },
  35923. _getVariableNodeFromGlobalModule$1: function($name) {
  35924. var t1, value;
  35925. for (t1 = this._globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  35926. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  35927. if (value != null)
  35928. return value;
  35929. }
  35930. return null;
  35931. },
  35932. globalVariableExists$2$namespace: function($name, namespace) {
  35933. if (namespace != null)
  35934. return this._getModule$1(namespace).get$variables().containsKey$1($name);
  35935. if (C.JSArray_methods.get$first(this._variables).containsKey$1($name))
  35936. return true;
  35937. return this._getVariableFromGlobalModule$1($name) != null;
  35938. },
  35939. globalVariableExists$1: function($name) {
  35940. return this.globalVariableExists$2$namespace($name, null);
  35941. },
  35942. _variableIndex$1: function($name) {
  35943. var t1, i;
  35944. for (t1 = this._variables, i = t1.length - 1; i >= 0; --i)
  35945. if (t1[i].containsKey$1($name))
  35946. return i;
  35947. return null;
  35948. },
  35949. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  35950. var t1, moduleWithName, cur, t2, index, _this = this;
  35951. if (namespace != null) {
  35952. _this._getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  35953. return;
  35954. }
  35955. if (global || _this._variables.length === 1) {
  35956. _this._variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure(_this, $name));
  35957. t1 = _this._variables;
  35958. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  35959. moduleWithName = _this._fromOneModule$3($name, "variable", new O.Environment_setVariable_closure0($name));
  35960. if (moduleWithName != null) {
  35961. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  35962. return;
  35963. }
  35964. }
  35965. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  35966. t1 = _this._variableNodes;
  35967. if (t1 != null)
  35968. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  35969. return;
  35970. }
  35971. if (_this._nestedForwardedModules != null && !_this._variableIndices.containsKey$1($name) && _this._variableIndex$1($name) == null) {
  35972. t1 = _this._nestedForwardedModules;
  35973. t1.toString;
  35974. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  35975. t1 = new H.ListIterator(t1, t1.get$length(t1));
  35976. for (; t1.moveNext$0();) {
  35977. cur = t1.__internal$_current;
  35978. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  35979. cur = t2.__internal$_current;
  35980. if (cur.get$variables().containsKey$1($name)) {
  35981. cur.setVariable$3($name, value, nodeWithSpan);
  35982. return;
  35983. }
  35984. }
  35985. }
  35986. }
  35987. index = _this._lastVariableName === $name ? _this._lastVariableIndex : _this._variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure1(_this, $name));
  35988. if (!_this._inSemiGlobalScope && index === 0) {
  35989. index = _this._variables.length - 1;
  35990. _this._variableIndices.$indexSet(0, $name, index);
  35991. }
  35992. _this._lastVariableName = $name;
  35993. _this._lastVariableIndex = index;
  35994. J.$indexSet$ax(_this._variables[index], $name, value);
  35995. t1 = _this._variableNodes;
  35996. if (t1 != null)
  35997. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  35998. },
  35999. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  36000. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  36001. },
  36002. setLocalVariable$3: function($name, value, nodeWithSpan) {
  36003. var index, _this = this,
  36004. t1 = _this._variables,
  36005. t2 = t1.length;
  36006. _this._lastVariableName = $name;
  36007. index = _this._lastVariableIndex = t2 - 1;
  36008. _this._variableIndices.$indexSet(0, $name, index);
  36009. J.$indexSet$ax(t1[index], $name, value);
  36010. t1 = _this._variableNodes;
  36011. if (t1 != null)
  36012. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  36013. },
  36014. getFunction$2$namespace: function($name, namespace) {
  36015. var t1, index, _this = this;
  36016. if (namespace != null) {
  36017. t1 = _this._getModule$1(namespace);
  36018. return t1.get$functions(t1).$index(0, $name);
  36019. }
  36020. t1 = _this._functionIndices;
  36021. index = t1.$index(0, $name);
  36022. if (index != null) {
  36023. t1 = J.$index$asx(_this._functions[index], $name);
  36024. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  36025. }
  36026. index = _this._functionIndex$1($name);
  36027. if (index == null)
  36028. return _this._getFunctionFromGlobalModule$1($name);
  36029. t1.$indexSet(0, $name, index);
  36030. t1 = J.$index$asx(_this._functions[index], $name);
  36031. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  36032. },
  36033. _getFunctionFromGlobalModule$1: function($name) {
  36034. return this._fromOneModule$3($name, "function", new O.Environment__getFunctionFromGlobalModule_closure($name));
  36035. },
  36036. _functionIndex$1: function($name) {
  36037. var t1, i;
  36038. for (t1 = this._functions, i = t1.length - 1; i >= 0; --i)
  36039. if (t1[i].containsKey$1($name))
  36040. return i;
  36041. return null;
  36042. },
  36043. getMixin$2$namespace: function($name, namespace) {
  36044. var t1, index, _this = this;
  36045. if (namespace != null)
  36046. return _this._getModule$1(namespace).get$mixins().$index(0, $name);
  36047. t1 = _this._mixinIndices;
  36048. index = t1.$index(0, $name);
  36049. if (index != null) {
  36050. t1 = J.$index$asx(_this._mixins[index], $name);
  36051. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  36052. }
  36053. index = _this._mixinIndex$1($name);
  36054. if (index == null)
  36055. return _this._getMixinFromGlobalModule$1($name);
  36056. t1.$indexSet(0, $name, index);
  36057. t1 = J.$index$asx(_this._mixins[index], $name);
  36058. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  36059. },
  36060. _getMixinFromGlobalModule$1: function($name) {
  36061. return this._fromOneModule$3($name, "mixin", new O.Environment__getMixinFromGlobalModule_closure($name));
  36062. },
  36063. _mixinIndex$1: function($name) {
  36064. var t1, i;
  36065. for (t1 = this._mixins, i = t1.length - 1; i >= 0; --i)
  36066. if (t1[i].containsKey$1($name))
  36067. return i;
  36068. return null;
  36069. },
  36070. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when) {
  36071. var wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5, _this = this;
  36072. if (!when) {
  36073. wasInSemiGlobalScope = _this._inSemiGlobalScope;
  36074. _this._inSemiGlobalScope = semiGlobal;
  36075. try {
  36076. t1 = callback.call$0();
  36077. return t1;
  36078. } finally {
  36079. _this._inSemiGlobalScope = wasInSemiGlobalScope;
  36080. }
  36081. }
  36082. semiGlobal = semiGlobal && _this._inSemiGlobalScope;
  36083. wasInSemiGlobalScope0 = _this._inSemiGlobalScope;
  36084. _this._inSemiGlobalScope = semiGlobal;
  36085. t1 = _this._variables;
  36086. t2 = type$.legacy_String;
  36087. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_Value));
  36088. t3 = _this._variableNodes;
  36089. if (t3 != null)
  36090. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_AstNode));
  36091. t3 = _this._functions;
  36092. t4 = type$.legacy_Callable;
  36093. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  36094. t5 = _this._mixins;
  36095. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  36096. t4 = _this._nestedForwardedModules;
  36097. if (t4 != null)
  36098. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable));
  36099. try {
  36100. t2 = callback.call$0();
  36101. return t2;
  36102. } finally {
  36103. _this._inSemiGlobalScope = wasInSemiGlobalScope0;
  36104. _this._lastVariableIndex = _this._lastVariableName = null;
  36105. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = _this._variableIndices; t1.moveNext$0();) {
  36106. $name = t1.get$current(t1);
  36107. t2.remove$1(0, $name);
  36108. }
  36109. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = _this._functionIndices; t1.moveNext$0();) {
  36110. name0 = t1.get$current(t1);
  36111. t2.remove$1(0, name0);
  36112. }
  36113. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = _this._mixinIndices; t1.moveNext$0();) {
  36114. name1 = t1.get$current(t1);
  36115. t2.remove$1(0, name1);
  36116. }
  36117. t1 = _this._nestedForwardedModules;
  36118. if (t1 != null)
  36119. C.JSArray_methods.removeLast$0(t1);
  36120. }
  36121. },
  36122. scope$1$1: function(callback, $T) {
  36123. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  36124. },
  36125. scope$1$2$when: function(callback, when, $T) {
  36126. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  36127. },
  36128. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  36129. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  36130. },
  36131. toImplicitConfiguration$0: function() {
  36132. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  36133. t1 = type$.legacy_String,
  36134. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ConfiguredValue);
  36135. for (t2 = this._variables, t3 = this._variableNodes, t4 = t3 == null, t5 = type$.legacy_AstNode, i = 0; i < t2.length; ++i) {
  36136. values = t2[i];
  36137. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  36138. for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
  36139. t7 = t6.get$current(t6);
  36140. configuration.$indexSet(0, t7, new Z.ConfiguredValue(values.$index(0, t7), null, nodes.$index(0, t7)));
  36141. }
  36142. }
  36143. return new A.Configuration(configuration, null, true);
  36144. },
  36145. _getModule$1: function(namespace) {
  36146. var module = this._environment$_modules.$index(0, namespace);
  36147. if (module != null)
  36148. return module;
  36149. throw H.wrapException(E.SassScriptException$('There is no module with the namespace "' + namespace + '".'));
  36150. },
  36151. _fromOneModule$1$3: function($name, type, callback) {
  36152. var cur, t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  36153. t1 = this._nestedForwardedModules;
  36154. if (t1 != null)
  36155. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  36156. cur = t1.__internal$_current;
  36157. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  36158. cur = t2.__internal$_current;
  36159. value = callback.call$1(cur);
  36160. if (value != null)
  36161. return value;
  36162. }
  36163. }
  36164. for (t1 = this._globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.legacy_Callable, value = null, identity = null; t1.moveNext$0();) {
  36165. t3 = t1._collection$_current;
  36166. valueInModule = callback.call$1(t3);
  36167. if (valueInModule == null)
  36168. continue;
  36169. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  36170. if (identityFromModule.$eq(0, identity))
  36171. continue;
  36172. if (value != null) {
  36173. t1 = "This " + type + string$.x20is_av;
  36174. t2 = type + " use";
  36175. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  36176. for (t4 = this._globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  36177. t5 = t4.get$current(t4);
  36178. if (callback.call$1(t5.key) != null)
  36179. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  36180. }
  36181. throw H.wrapException(E.MultiSpanSassScriptException$(t1, t2, t3));
  36182. }
  36183. identity = identityFromModule;
  36184. value = valueInModule;
  36185. }
  36186. return value;
  36187. },
  36188. _fromOneModule$3: function($name, type, callback) {
  36189. return this._fromOneModule$1$3($name, type, callback, type$.dynamic);
  36190. }
  36191. };
  36192. O.Environment_importForwards_closure.prototype = {
  36193. call$1: function(module) {
  36194. return module.get$variables().get$keys();
  36195. }
  36196. };
  36197. O.Environment_importForwards_closure0.prototype = {
  36198. call$1: function(module) {
  36199. return module.get$functions(module).get$keys();
  36200. }
  36201. };
  36202. O.Environment_importForwards_closure1.prototype = {
  36203. call$1: function(module) {
  36204. return module.get$mixins().get$keys();
  36205. }
  36206. };
  36207. O.Environment_importForwards_closure2.prototype = {
  36208. call$1: function(_) {
  36209. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable);
  36210. },
  36211. $signature: 175
  36212. };
  36213. O.Environment__getVariableFromGlobalModule_closure.prototype = {
  36214. call$1: function(module) {
  36215. return module.get$variables().$index(0, this.name);
  36216. }
  36217. };
  36218. O.Environment_setVariable_closure.prototype = {
  36219. call$0: function() {
  36220. var t1 = this.$this;
  36221. t1._lastVariableName = this.name;
  36222. return t1._lastVariableIndex = 0;
  36223. },
  36224. $signature: 7
  36225. };
  36226. O.Environment_setVariable_closure0.prototype = {
  36227. call$1: function(module) {
  36228. return module.get$variables().containsKey$1(this.name) ? module : null;
  36229. }
  36230. };
  36231. O.Environment_setVariable_closure1.prototype = {
  36232. call$0: function() {
  36233. var t1 = this.$this,
  36234. t2 = t1._variableIndex$1(this.name);
  36235. return t2 == null ? t1._variables.length - 1 : t2;
  36236. },
  36237. $signature: 7
  36238. };
  36239. O.Environment__getFunctionFromGlobalModule_closure.prototype = {
  36240. call$1: function(module) {
  36241. return module.get$functions(module).$index(0, this.name);
  36242. }
  36243. };
  36244. O.Environment__getMixinFromGlobalModule_closure.prototype = {
  36245. call$1: function(module) {
  36246. return module.get$mixins().$index(0, this.name);
  36247. }
  36248. };
  36249. O._EnvironmentModule.prototype = {
  36250. get$url: function() {
  36251. return this.css.get$span().file.url;
  36252. },
  36253. setVariable$3: function($name, value, nodeWithSpan) {
  36254. var t1, t2,
  36255. module = this._modulesByVariable.$index(0, $name);
  36256. if (module != null) {
  36257. module.setVariable$3($name, value, nodeWithSpan);
  36258. return;
  36259. }
  36260. t1 = this._environment;
  36261. t2 = t1._variables;
  36262. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  36263. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  36264. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  36265. t1 = t1._variableNodes;
  36266. if (t1 != null)
  36267. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  36268. return;
  36269. },
  36270. variableIdentity$1: function($name) {
  36271. var module = this._modulesByVariable.$index(0, $name);
  36272. return module == null ? this : module.variableIdentity$1($name);
  36273. },
  36274. cloneCss$0: function() {
  36275. var newCssAndExtender, _this = this,
  36276. t1 = _this.css;
  36277. if (J.get$isEmpty$asx(t1.get$children()))
  36278. return _this;
  36279. newCssAndExtender = V.cloneCssStylesheet(t1, _this.extender);
  36280. return O._EnvironmentModule$_(_this._environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  36281. },
  36282. toString$0: function(_) {
  36283. var t1 = this.css;
  36284. if (t1.get$span().file.url == null)
  36285. t1 = "<unknown url>";
  36286. else {
  36287. t1 = t1.get$span().file;
  36288. t1 = $.$get$context().prettyUri$1(t1.url);
  36289. }
  36290. return t1;
  36291. },
  36292. $isModule: 1,
  36293. get$upstream: function() {
  36294. return this.upstream;
  36295. },
  36296. get$variables: function() {
  36297. return this.variables;
  36298. },
  36299. get$variableNodes: function() {
  36300. return this.variableNodes;
  36301. },
  36302. get$functions: function(receiver) {
  36303. return this.functions;
  36304. },
  36305. get$mixins: function() {
  36306. return this.mixins;
  36307. },
  36308. get$extender: function() {
  36309. return this.extender;
  36310. },
  36311. get$css: function(receiver) {
  36312. return this.css;
  36313. },
  36314. get$transitivelyContainsCss: function() {
  36315. return this.transitivelyContainsCss;
  36316. },
  36317. get$transitivelyContainsExtensions: function() {
  36318. return this.transitivelyContainsExtensions;
  36319. }
  36320. };
  36321. O._EnvironmentModule__EnvironmentModule_closure.prototype = {
  36322. call$1: function(module) {
  36323. return module.get$variables();
  36324. }
  36325. };
  36326. O._EnvironmentModule__EnvironmentModule_closure0.prototype = {
  36327. call$1: function(module) {
  36328. return module.get$variableNodes();
  36329. }
  36330. };
  36331. O._EnvironmentModule__EnvironmentModule_closure1.prototype = {
  36332. call$1: function(module) {
  36333. return module.get$functions(module);
  36334. }
  36335. };
  36336. O._EnvironmentModule__EnvironmentModule_closure2.prototype = {
  36337. call$1: function(module) {
  36338. return module.get$mixins();
  36339. }
  36340. };
  36341. O._EnvironmentModule__EnvironmentModule_closure3.prototype = {
  36342. call$1: function(module) {
  36343. return module.get$transitivelyContainsCss();
  36344. }
  36345. };
  36346. O._EnvironmentModule__EnvironmentModule_closure4.prototype = {
  36347. call$1: function(module) {
  36348. return module.get$transitivelyContainsExtensions();
  36349. }
  36350. };
  36351. E.SassException.prototype = {
  36352. get$trace: function() {
  36353. return new Y.Trace(P.List_List$unmodifiable(H.setRuntimeTypeInfo([B.frameForSpan(G.SourceSpanException.prototype.get$span.call(this), "root stylesheet", null)], type$.JSArray_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  36354. },
  36355. get$span: function() {
  36356. return G.SourceSpanException.prototype.get$span.call(this);
  36357. },
  36358. toString$1$color: function(_, color) {
  36359. var t2, _i, frame, t3,
  36360. buffer = new P.StringBuffer(""),
  36361. t1 = "Error: " + H.S(this._span_exception$_message) + "\n";
  36362. buffer._contents = t1;
  36363. buffer._contents = t1 + G.SourceSpanException.prototype.get$span.call(this).highlight$1$color(color);
  36364. for (t1 = this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  36365. frame = t1[_i];
  36366. frame.toString;
  36367. if (J.get$length$asx(frame) === 0)
  36368. continue;
  36369. t3 = buffer._contents += "\n";
  36370. buffer._contents = t3 + (" " + H.S(frame));
  36371. }
  36372. t1 = buffer._contents;
  36373. return t1.charCodeAt(0) == 0 ? t1 : t1;
  36374. },
  36375. toString$0: function($receiver) {
  36376. return this.toString$1$color($receiver, null);
  36377. },
  36378. toCssString$0: function() {
  36379. var stringMessage, rune,
  36380. t1 = $._glyphs,
  36381. t2 = $._glyphs = C.C_AsciiGlyphSet,
  36382. t3 = this.toString$1$color(0, false),
  36383. commentMessage = H.stringReplaceAllUnchecked(t3, "*/", "*\u2215");
  36384. $._glyphs = t1 === C.C_AsciiGlyphSet ? t2 : C.C_UnicodeGlyphSet;
  36385. stringMessage = new P.StringBuffer("");
  36386. for (t1 = new P.RuneIterator(N.serializeValue0(new D.SassString(this.toString$1$color(0, false), true), true, true)); t1.moveNext$0();) {
  36387. rune = t1._currentCodePoint;
  36388. if (rune > 255) {
  36389. stringMessage._contents += H.Primitives_stringFromCharCode(92);
  36390. stringMessage._contents += C.JSInt_methods.toRadixString$1(rune, 16);
  36391. t2 = stringMessage._contents += H.Primitives_stringFromCharCode(32);
  36392. } else
  36393. t2 = stringMessage._contents += H.Primitives_stringFromCharCode(rune);
  36394. }
  36395. return "/* " + C.JSArray_methods.join$1(H.setRuntimeTypeInfo(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}";
  36396. }
  36397. };
  36398. E.MultiSpanSassException.prototype = {
  36399. toString$1$color: function(_, color) {
  36400. var t2, _i, frame, t3, _this = this,
  36401. useColor = color === true && true,
  36402. buffer = new P.StringBuffer(""),
  36403. t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
  36404. buffer._contents = t1;
  36405. buffer._contents = t1 + U.Highlighter$multiple(G.SourceSpanException.prototype.get$span.call(_this), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0();
  36406. for (t1 = _this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  36407. frame = t1[_i];
  36408. frame.toString;
  36409. if (J.get$length$asx(frame) === 0)
  36410. continue;
  36411. t3 = buffer._contents += "\n";
  36412. buffer._contents = t3 + (" " + H.S(frame));
  36413. }
  36414. t1 = buffer._contents;
  36415. return t1.charCodeAt(0) == 0 ? t1 : t1;
  36416. },
  36417. toString$0: function($receiver) {
  36418. return this.toString$1$color($receiver, null);
  36419. }
  36420. };
  36421. E.SassRuntimeException.prototype = {
  36422. get$trace: function() {
  36423. return this.trace;
  36424. }
  36425. };
  36426. E.MultiSpanSassRuntimeException.prototype = {$isSassRuntimeException: 1,
  36427. get$trace: function() {
  36428. return this.trace;
  36429. }
  36430. };
  36431. E.SassFormatException.prototype = {
  36432. get$source: function() {
  36433. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(this).file._decodedChars, 0, null), 0, null);
  36434. },
  36435. $isFormatException: 1,
  36436. $isSourceSpanFormatException: 1
  36437. };
  36438. E.SassScriptException.prototype = {
  36439. toString$0: function(_) {
  36440. return this.message + string$.x0a_BUG_;
  36441. },
  36442. get$message: function(receiver) {
  36443. return this.message;
  36444. }
  36445. };
  36446. E.MultiSpanSassScriptException.prototype = {};
  36447. D._writeSourceMap_closure.prototype = {
  36448. call$1: function(url) {
  36449. return this.options.sourceMapUrl$2(P.Uri_parse(url), this.destination).toString$0(0);
  36450. }
  36451. };
  36452. B.ExecutableOptions.prototype = {
  36453. get$interactive: function() {
  36454. var t2, invalidOptions, _i, option,
  36455. t1 = this._interactive;
  36456. if (t1 != null)
  36457. return t1;
  36458. t1 = this._options;
  36459. t2 = H._asBoolS(t1.$index(0, "interactive"));
  36460. this._interactive = t2;
  36461. if (!t2)
  36462. return false;
  36463. invalidOptions = ["stdin", "indented", "style", "source-map", "source-map-urls", "embed-sources", "embed-source-map", "update", "watch"];
  36464. for (t2 = t1._parser.options._collection$_map, _i = 0; _i < 9; ++_i) {
  36465. option = invalidOptions[_i];
  36466. if (t2.$index(0, option) == null)
  36467. H.throwExpression(P.ArgumentError$('Could not find an option named "' + option + '".'));
  36468. if (t1._parsed.containsKey$1(option))
  36469. throw H.wrapException(B.UsageException$("--" + option + " isn't allowed with --interactive."));
  36470. }
  36471. return true;
  36472. },
  36473. get$color: function() {
  36474. var t1 = this._options;
  36475. if (t1.wasParsed$1("color"))
  36476. t1 = H._asBoolS(t1.$index(0, "color"));
  36477. else {
  36478. t1 = self.process.stdout.isTTY;
  36479. if (t1 == null)
  36480. t1 = false;
  36481. }
  36482. return t1;
  36483. },
  36484. get$emitErrorCss: function() {
  36485. var t1 = H._asBoolS(this._options.$index(0, "error-css"));
  36486. if (t1 == null) {
  36487. this._ensureSources$0();
  36488. t1 = this._sourcesToDestinations.get$values().any$1(0, new B.ExecutableOptions_emitErrorCss_closure());
  36489. }
  36490. return t1;
  36491. },
  36492. _ensureSources$0: function() {
  36493. var t1, stdin, t2, t3, $directories, t4, colonArgs, positionalArgs, cur, t5, t6, message, target, source, destination, seen, i, t7, _this = this, _null = null,
  36494. _s18_ = 'Duplicate source "';
  36495. if (_this._sourcesToDestinations != null)
  36496. return;
  36497. t1 = _this._options;
  36498. stdin = H._asBoolS(t1.$index(0, "stdin"));
  36499. t2 = t1.rest;
  36500. if (t2.get$length(t2) === 0 && !stdin)
  36501. B.ExecutableOptions__fail("Compile Sass to CSS.");
  36502. t3 = type$.legacy_String;
  36503. $directories = P.LinkedHashSet_LinkedHashSet$_empty(t3);
  36504. for (t4 = new H.ListIterator(t2, t2.get$length(t2)), colonArgs = false, positionalArgs = false; t4.moveNext$0();) {
  36505. cur = t4.__internal$_current;
  36506. t5 = cur.length;
  36507. if (t5 === 0)
  36508. B.ExecutableOptions__fail('Invalid argument "".');
  36509. if (H.stringContainsUnchecked(cur, ":", 0)) {
  36510. if (t5 > 2) {
  36511. t6 = C.JSString_methods._codeUnitAt$1(cur, 0);
  36512. if (!(t6 >= 97 && t6 <= 122))
  36513. t6 = t6 >= 65 && t6 <= 90;
  36514. else
  36515. t6 = true;
  36516. t6 = t6 && C.JSString_methods._codeUnitAt$1(cur, 1) === 58;
  36517. } else
  36518. t6 = false;
  36519. if (t6) {
  36520. if (2 > t5)
  36521. H.throwExpression(P.RangeError$range(2, 0, t5, _null, _null));
  36522. t5 = H.stringContainsUnchecked(cur, ":", 2);
  36523. } else
  36524. t5 = true;
  36525. } else
  36526. t5 = false;
  36527. if (t5)
  36528. colonArgs = true;
  36529. else if (B.dirExists(cur))
  36530. $directories.add$1(0, cur);
  36531. else
  36532. positionalArgs = true;
  36533. }
  36534. if (positionalArgs || t2.get$length(t2) === 0) {
  36535. if (colonArgs)
  36536. B.ExecutableOptions__fail('Positional and ":" arguments may not both be used.');
  36537. else if (stdin) {
  36538. if (J.get$length$asx(t2._collection$_source) > 1)
  36539. B.ExecutableOptions__fail("Only one argument is allowed with --stdin.");
  36540. else if (H._asBoolS(t1.$index(0, "update")))
  36541. B.ExecutableOptions__fail("--update is not allowed with --stdin.");
  36542. else if (H._asBoolS(t1.$index(0, "watch")))
  36543. B.ExecutableOptions__fail("--watch is not allowed with --stdin.");
  36544. t1 = t2.get$length(t2) === 0 ? _null : t2.get$first(t2);
  36545. t2 = type$.dynamic;
  36546. _this._sourcesToDestinations = H.ConstantMap_ConstantMap$from(P.LinkedHashMap_LinkedHashMap$_literal([null, t1], t2, t2), t3, t3);
  36547. } else {
  36548. t4 = t2._collection$_source;
  36549. t5 = J.getInterceptor$asx(t4);
  36550. if (t5.get$length(t4) > 2)
  36551. B.ExecutableOptions__fail("Only two positional args may be passed.");
  36552. else if ($directories._collection$_length !== 0) {
  36553. message = 'Directory "' + H.S($directories.get$first($directories)) + '" may not be a positional arg.';
  36554. target = t2.get$last(t2);
  36555. B.ExecutableOptions__fail(J.$eq$($directories.get$first($directories), t2.get$first(t2)) && !B.fileExists(target) ? message + ('\nTo compile all CSS in "' + H.S($directories.get$first($directories)) + '" to "' + H.S(target) + '", use `sass ' + H.S($directories.get$first($directories)) + ":" + H.S(target) + "`.") : message);
  36556. } else {
  36557. source = J.$eq$(t2.get$first(t2), "-") ? _null : t2.get$first(t2);
  36558. destination = t5.get$length(t4) === 1 ? _null : t2.get$last(t2);
  36559. if (destination == null)
  36560. if (H._asBoolS(t1.$index(0, "update")))
  36561. B.ExecutableOptions__fail("--update is not allowed when printing to stdout.");
  36562. else if (H._asBoolS(t1.$index(0, "watch")))
  36563. B.ExecutableOptions__fail("--watch is not allowed when printing to stdout.");
  36564. t1 = P.LinkedHashMap_LinkedHashMap$_literal([source, destination], t3, t3);
  36565. t3 = K.PathMap__create(_null, t3);
  36566. t3.addAll$1(0, t1);
  36567. _this._sourcesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t3, type$.PathMap_legacy_String), type$.UnmodifiableMapView_of_legacy_String_and_legacy_String);
  36568. }
  36569. }
  36570. _this._sourceDirectoriesToDestinations = C.Map_empty5;
  36571. return;
  36572. }
  36573. if (stdin)
  36574. B.ExecutableOptions__fail('--stdin may not be used with ":" arguments.');
  36575. seen = P.LinkedHashSet_LinkedHashSet$_empty(t3);
  36576. t1 = K.PathMap__create(_null, t3);
  36577. t4 = type$.PathMap_legacy_String;
  36578. t3 = K.PathMap__create(_null, t3);
  36579. for (t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  36580. cur = t2.__internal$_current;
  36581. if ($directories.contains$1(0, cur)) {
  36582. if (!seen.add$1(0, cur))
  36583. B.ExecutableOptions__fail(_s18_ + H.S(cur) + '".');
  36584. t3.$indexSet(0, cur, cur);
  36585. t1.addAll$1(0, _this._listSourceDirectory$2(cur, cur));
  36586. continue;
  36587. }
  36588. for (t5 = cur.length, destination = _null, source = destination, i = 0; i < t5; ++i) {
  36589. if (i === 1) {
  36590. t6 = i - 1;
  36591. if (t5 > t6 + 2) {
  36592. t7 = C.JSString_methods.codeUnitAt$1(cur, t6);
  36593. if (!(t7 >= 97 && t7 <= 122))
  36594. t7 = t7 >= 65 && t7 <= 90;
  36595. else
  36596. t7 = true;
  36597. t6 = t7 && C.JSString_methods.codeUnitAt$1(cur, t6 + 1) === 58;
  36598. } else
  36599. t6 = false;
  36600. } else
  36601. t6 = false;
  36602. if (t6)
  36603. continue;
  36604. if (C.JSString_methods._codeUnitAt$1(cur, i) === 58)
  36605. if (source == null) {
  36606. source = C.JSString_methods.substring$2(cur, 0, i);
  36607. destination = C.JSString_methods.substring$1(cur, i + 1);
  36608. } else {
  36609. if (i === source.length + 2) {
  36610. t6 = i - 1;
  36611. if (t5 > t6 + 2) {
  36612. t7 = C.JSString_methods.codeUnitAt$1(cur, t6);
  36613. if (!(t7 >= 97 && t7 <= 122))
  36614. t7 = t7 >= 65 && t7 <= 90;
  36615. else
  36616. t7 = true;
  36617. t6 = t7 && C.JSString_methods.codeUnitAt$1(cur, t6 + 1) === 58;
  36618. } else
  36619. t6 = false;
  36620. t6 = !t6;
  36621. } else
  36622. t6 = true;
  36623. if (t6)
  36624. B.ExecutableOptions__fail('"' + cur + '" may only contain one ":".');
  36625. }
  36626. }
  36627. if (!seen.add$1(0, source))
  36628. B.ExecutableOptions__fail(_s18_ + H.S(source) + '".');
  36629. if (source === "-")
  36630. t1.$indexSet(0, _null, destination);
  36631. else if (B.dirExists(source)) {
  36632. t3.$indexSet(0, source, destination);
  36633. t1.addAll$1(0, _this._listSourceDirectory$2(source, destination));
  36634. } else
  36635. t1.$indexSet(0, source, destination);
  36636. }
  36637. t2 = type$.UnmodifiableMapView_of_legacy_String_and_legacy_String;
  36638. _this._sourcesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t1, t4), t2);
  36639. _this._sourceDirectoriesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t3, t4), t2);
  36640. },
  36641. _listSourceDirectory$2: function(source, destination) {
  36642. var t2, t3, t4, t5, _null = null,
  36643. t1 = type$.legacy_String;
  36644. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  36645. for (t2 = J.get$iterator$ax(B.listDir(source, true)), t3 = source == destination; t2.moveNext$0();) {
  36646. t4 = t2.get$current(t2);
  36647. if (this._isEntrypoint$1(t4))
  36648. t5 = !(t3 && X.ParsedPath_ParsedPath$parse(t4, $.$get$context().style)._splitExtension$1(1)[1] === ".css");
  36649. else
  36650. t5 = false;
  36651. if (t5) {
  36652. t5 = $.$get$context();
  36653. t1.$indexSet(0, t4, t5.join$8(0, destination, t5.withoutExtension$1(t5.relative$2$from(t4, source)) + ".css", _null, _null, _null, _null, _null, _null));
  36654. }
  36655. }
  36656. return t1;
  36657. },
  36658. _isEntrypoint$1: function(path) {
  36659. var extension,
  36660. t1 = $.$get$context().style;
  36661. if (J.startsWith$1$s(X.ParsedPath_ParsedPath$parse(path, t1).get$basename(), "_"))
  36662. return false;
  36663. extension = X.ParsedPath_ParsedPath$parse(path, t1)._splitExtension$1(1)[1];
  36664. return extension === ".scss" || extension === ".sass" || extension === ".css";
  36665. },
  36666. get$_writeToStdout: function() {
  36667. var t1, _this = this;
  36668. _this._ensureSources$0();
  36669. t1 = _this._sourcesToDestinations;
  36670. if (t1.get$length(t1) === 1) {
  36671. _this._ensureSources$0();
  36672. t1 = _this._sourcesToDestinations.get$values();
  36673. t1 = t1.get$single(t1) == null;
  36674. } else
  36675. t1 = false;
  36676. return t1;
  36677. },
  36678. get$emitSourceMap: function() {
  36679. var _this = this,
  36680. _s10_ = "source-map",
  36681. _s15_ = "source-map-urls",
  36682. _s13_ = "embed-sources",
  36683. _s16_ = "embed-source-map",
  36684. t1 = _this._options;
  36685. if (!H._asBoolS(t1.$index(0, _s10_)))
  36686. if (t1.wasParsed$1(_s15_))
  36687. B.ExecutableOptions__fail("--source-map-urls isn't allowed with --no-source-map.");
  36688. else if (t1.wasParsed$1(_s13_))
  36689. B.ExecutableOptions__fail("--embed-sources isn't allowed with --no-source-map.");
  36690. else if (t1.wasParsed$1(_s16_))
  36691. B.ExecutableOptions__fail("--embed-source-map isn't allowed with --no-source-map.");
  36692. if (!_this.get$_writeToStdout())
  36693. return H._asBoolS(t1.$index(0, _s10_));
  36694. if (J.$eq$(_this._ifParsed$1(_s15_), "relative"))
  36695. B.ExecutableOptions__fail("--source-map-urls=relative isn't allowed when printing to stdout.");
  36696. if (H._asBoolS(t1.$index(0, _s16_)))
  36697. return H._asBoolS(t1.$index(0, _s10_));
  36698. else if (J.$eq$(_this._ifParsed$1(_s10_), true))
  36699. B.ExecutableOptions__fail("When printing to stdout, --source-map requires --embed-source-map.");
  36700. else if (t1.wasParsed$1(_s15_))
  36701. B.ExecutableOptions__fail("When printing to stdout, --source-map-urls requires --embed-source-map.");
  36702. else if (H._asBoolS(t1.$index(0, _s13_)))
  36703. B.ExecutableOptions__fail("When printing to stdout, --embed-sources requires --embed-source-map.");
  36704. else
  36705. return false;
  36706. },
  36707. sourceMapUrl$2: function(url, destination) {
  36708. var t1, path;
  36709. if (url.get$scheme().length !== 0 && url.get$scheme() !== "file")
  36710. return url;
  36711. t1 = $.$get$context();
  36712. path = t1.style.pathFromUri$1(M._parseUri(url));
  36713. return t1.toUri$1(J.$eq$(this._options.$index(0, "source-map-urls"), "relative") && !this.get$_writeToStdout() ? t1.relative$2$from(path, t1.dirname$1(destination)) : D.absolute(path));
  36714. },
  36715. _ifParsed$1: function($name) {
  36716. var t1 = this._options;
  36717. return t1.wasParsed$1($name) ? t1.$index(0, $name) : null;
  36718. }
  36719. };
  36720. B.ExecutableOptions_closure.prototype = {
  36721. call$0: function() {
  36722. var t1 = type$.legacy_String,
  36723. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Option),
  36724. t3 = [],
  36725. parser = new N.ArgParser(t2, new P.UnmodifiableMapView(t2, type$.UnmodifiableMapView_of_legacy_String_and_legacy_Option), new P.UnmodifiableMapView(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ArgParser), type$.UnmodifiableMapView_of_legacy_String_and_legacy_ArgParser), t3, true, null);
  36726. parser.addOption$2$hide("precision", true);
  36727. parser.addFlag$2$hide("async", true);
  36728. t3.push(B.ExecutableOptions__separator("Input and Output"));
  36729. parser.addFlag$2$help("stdin", "Read the stylesheet from stdin.");
  36730. parser.addFlag$2$help("indented", "Use the indented syntax for input from stdin.");
  36731. parser.addMultiOption$5$abbr$help$splitCommas$valueHelp("load-path", "I", "A path to use when resolving imports.\nMay be passed multiple times.", false, "PATH");
  36732. t1 = type$.JSArray_legacy_String;
  36733. parser.addOption$6$abbr$allowed$defaultsTo$help$valueHelp("style", "s", H.setRuntimeTypeInfo(["expanded", "compressed"], t1), "expanded", "Output style.", "NAME");
  36734. parser.addFlag$3$defaultsTo$help("charset", true, "Emit a @charset or BOM for CSS with non-ASCII characters.");
  36735. 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.");
  36736. parser.addFlag$3$help$negatable("update", "Only compile out-of-date stylesheets.", false);
  36737. t3.push(B.ExecutableOptions__separator("Source Maps"));
  36738. parser.addFlag$3$defaultsTo$help("source-map", true, "Whether to generate source maps.");
  36739. parser.addOption$4$allowed$defaultsTo$help("source-map-urls", H.setRuntimeTypeInfo(["relative", "absolute"], t1), "relative", "How to link from source maps to source files.");
  36740. parser.addFlag$3$defaultsTo$help("embed-sources", false, "Embed source file contents in source maps.");
  36741. parser.addFlag$3$defaultsTo$help("embed-source-map", false, "Embed source map contents in CSS.");
  36742. t3.push(B.ExecutableOptions__separator("Other"));
  36743. parser.addFlag$3$help$negatable("watch", "Watch stylesheets and recompile when they change.", false);
  36744. parser.addFlag$2$help("poll", "Manually check for changes rather than using a native watcher.\nOnly valid with --watch.");
  36745. parser.addFlag$2$help("stop-on-error", "Don't compile more files once an error is encountered.");
  36746. parser.addFlag$4$abbr$help$negatable("interactive", "i", "Run an interactive SassScript shell.", false);
  36747. parser.addFlag$3$abbr$help("color", "c", "Whether to use terminal colors for messages.");
  36748. parser.addFlag$2$help("unicode", "Whether to use Unicode characters for messages.");
  36749. parser.addFlag$3$abbr$help("quiet", "q", "Don't print warnings.");
  36750. parser.addFlag$2$help("trace", "Print full Dart stack traces for exceptions.");
  36751. parser.addFlag$4$abbr$help$negatable("help", "h", "Print this usage information.", false);
  36752. parser.addFlag$3$help$negatable("version", "Print the version of Dart Sass.", false);
  36753. return parser;
  36754. },
  36755. $signature: 174
  36756. };
  36757. B.ExecutableOptions_emitErrorCss_closure.prototype = {
  36758. call$1: function(destination) {
  36759. return destination != null;
  36760. }
  36761. };
  36762. B.UsageException.prototype = {$isException: 1,
  36763. get$message: function(receiver) {
  36764. return this.message;
  36765. }
  36766. };
  36767. A.watch_closure.prototype = {
  36768. call$1: function(dir) {
  36769. for (; !B.dirExists(dir);)
  36770. dir = $.$get$context().dirname$1(dir);
  36771. return this.dirWatcher.watch$1(0, dir);
  36772. }
  36773. };
  36774. A._Watcher.prototype = {
  36775. compile$3$ifModified: function(source, destination, ifModified) {
  36776. return this.compile$body$_Watcher(source, destination, ifModified);
  36777. },
  36778. compile$2: function(source, destination) {
  36779. return this.compile$3$ifModified(source, destination, false);
  36780. },
  36781. compile$body$_Watcher: function(source, destination, ifModified) {
  36782. var $async$goto = 0,
  36783. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  36784. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, stackTrace, error0, stackTrace0, exception, t1, $async$exception;
  36785. var $async$compile$3$ifModified = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36786. if ($async$errorCode === 1) {
  36787. $async$currentError = $async$result;
  36788. $async$goto = $async$handler;
  36789. }
  36790. while (true)
  36791. switch ($async$goto) {
  36792. case 0:
  36793. // Function start
  36794. $async$handler = 4;
  36795. $async$goto = 7;
  36796. return P._asyncAwait(D.compileStylesheet($async$self._watch$_options, $async$self._graph, source, destination, ifModified), $async$compile$3$ifModified);
  36797. case 7:
  36798. // returning from await.
  36799. $async$returnValue = true;
  36800. // goto return
  36801. $async$goto = 1;
  36802. break;
  36803. $async$handler = 2;
  36804. // goto after finally
  36805. $async$goto = 6;
  36806. break;
  36807. case 4:
  36808. // catch
  36809. $async$handler = 3;
  36810. $async$exception = $async$currentError;
  36811. t1 = H.unwrapException($async$exception);
  36812. if (t1 instanceof E.SassException) {
  36813. error = t1;
  36814. stackTrace = H.getTraceFromException($async$exception);
  36815. t1 = $async$self._watch$_options;
  36816. if (!t1.get$emitErrorCss())
  36817. $async$self._delete$1(destination);
  36818. $async$self._printError$2(J.toString$1$color$(error, t1.get$color()), stackTrace);
  36819. self.process.exitCode = 65;
  36820. $async$returnValue = false;
  36821. // goto return
  36822. $async$goto = 1;
  36823. break;
  36824. } else if (t1 instanceof B.FileSystemException) {
  36825. error0 = t1;
  36826. stackTrace0 = H.getTraceFromException($async$exception);
  36827. t1 = error0.path;
  36828. $async$self._printError$2("Error reading " + H.S($.$get$context().relative$2$from(t1, null)) + ": " + error0.message + ".", stackTrace0);
  36829. self.process.exitCode = 66;
  36830. $async$returnValue = false;
  36831. // goto return
  36832. $async$goto = 1;
  36833. break;
  36834. } else
  36835. throw $async$exception;
  36836. // goto after finally
  36837. $async$goto = 6;
  36838. break;
  36839. case 3:
  36840. // uncaught
  36841. // goto rethrow
  36842. $async$goto = 2;
  36843. break;
  36844. case 6:
  36845. // after finally
  36846. case 1:
  36847. // return
  36848. return P._asyncReturn($async$returnValue, $async$completer);
  36849. case 2:
  36850. // rethrow
  36851. return P._asyncRethrow($async$currentError, $async$completer);
  36852. }
  36853. });
  36854. return P._asyncStartSync($async$compile$3$ifModified, $async$completer);
  36855. },
  36856. _delete$1: function(path) {
  36857. var buffer, t1, exception;
  36858. try {
  36859. B.deleteFile(path);
  36860. buffer = new P.StringBuffer("");
  36861. t1 = this._watch$_options;
  36862. if (t1.get$color())
  36863. buffer._contents += "\x1b[33m";
  36864. buffer._contents += "Deleted " + H.S(path) + ".";
  36865. if (t1.get$color())
  36866. buffer._contents += "\x1b[0m";
  36867. P.print(buffer);
  36868. } catch (exception) {
  36869. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  36870. throw exception;
  36871. }
  36872. },
  36873. _printError$2: function(message, stackTrace) {
  36874. var t2,
  36875. t1 = $.$get$stderr();
  36876. t1.writeln$1(message);
  36877. t2 = this._watch$_options._options;
  36878. if (H._asBoolS(t2.$index(0, "trace"))) {
  36879. t1.writeln$0();
  36880. t1.writeln$1(C.JSString_methods.trimRight$0(Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
  36881. }
  36882. if (!H._asBoolS(t2.$index(0, "stop-on-error")))
  36883. t1.writeln$0();
  36884. },
  36885. watch$1: function(_, watcher) {
  36886. return this.watch$body$_Watcher(_, watcher);
  36887. },
  36888. watch$body$_Watcher: function(_, watcher) {
  36889. var $async$goto = 0,
  36890. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  36891. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $event, extension, success, success0, success1, t2, t1;
  36892. var $async$watch$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36893. if ($async$errorCode === 1) {
  36894. $async$currentError = $async$result;
  36895. $async$goto = $async$handler;
  36896. }
  36897. while (true)
  36898. switch ($async$goto) {
  36899. case 0:
  36900. // Function start
  36901. t1 = watcher._group._controller;
  36902. t1.toString;
  36903. t1 = $async$self._debounceEvents$1(new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>")));
  36904. t2 = new P._StreamIterator(t1);
  36905. P.ArgumentError_checkNotNull(t1, "stream");
  36906. $async$handler = 3;
  36907. t1 = $async$self._watch$_options._options;
  36908. case 6:
  36909. // for condition
  36910. $async$goto = 8;
  36911. return P._asyncAwait(t2.moveNext$0(), $async$watch$1);
  36912. case 8:
  36913. // returning from await.
  36914. if (!$async$result) {
  36915. // goto after for
  36916. $async$goto = 7;
  36917. break;
  36918. }
  36919. $event = t2.get$current(t2);
  36920. extension = X.ParsedPath_ParsedPath$parse($event.path, $.$get$context().style)._splitExtension$1(1)[1];
  36921. if (!J.$eq$(extension, ".sass") && !J.$eq$(extension, ".scss") && !J.$eq$(extension, ".css")) {
  36922. // goto for condition
  36923. $async$goto = 6;
  36924. break;
  36925. }
  36926. case 9:
  36927. // switch
  36928. switch ($event.type) {
  36929. case C.ChangeType_modify:
  36930. // goto case
  36931. $async$goto = 11;
  36932. break;
  36933. case C.ChangeType_add:
  36934. // goto case
  36935. $async$goto = 12;
  36936. break;
  36937. case C.ChangeType_remove:
  36938. // goto case
  36939. $async$goto = 13;
  36940. break;
  36941. default:
  36942. // goto after switch
  36943. $async$goto = 10;
  36944. break;
  36945. }
  36946. break;
  36947. case 11:
  36948. // case
  36949. $async$goto = 14;
  36950. return P._asyncAwait($async$self._handleModify$1($event.path), $async$watch$1);
  36951. case 14:
  36952. // returning from await.
  36953. success = $async$result;
  36954. if (!success && H._asBoolS(t1.$index(0, "stop-on-error"))) {
  36955. $async$next = [1];
  36956. // goto finally
  36957. $async$goto = 4;
  36958. break;
  36959. }
  36960. // goto after switch
  36961. $async$goto = 10;
  36962. break;
  36963. case 12:
  36964. // case
  36965. $async$goto = 15;
  36966. return P._asyncAwait($async$self._handleAdd$1($event.path), $async$watch$1);
  36967. case 15:
  36968. // returning from await.
  36969. success0 = $async$result;
  36970. if (!success0 && H._asBoolS(t1.$index(0, "stop-on-error"))) {
  36971. $async$next = [1];
  36972. // goto finally
  36973. $async$goto = 4;
  36974. break;
  36975. }
  36976. // goto after switch
  36977. $async$goto = 10;
  36978. break;
  36979. case 13:
  36980. // case
  36981. $async$goto = 16;
  36982. return P._asyncAwait($async$self._handleRemove$1($event.path), $async$watch$1);
  36983. case 16:
  36984. // returning from await.
  36985. success1 = $async$result;
  36986. if (!success1 && H._asBoolS(t1.$index(0, "stop-on-error"))) {
  36987. $async$next = [1];
  36988. // goto finally
  36989. $async$goto = 4;
  36990. break;
  36991. }
  36992. // goto after switch
  36993. $async$goto = 10;
  36994. break;
  36995. case 10:
  36996. // after switch
  36997. // goto for condition
  36998. $async$goto = 6;
  36999. break;
  37000. case 7:
  37001. // after for
  37002. $async$next.push(5);
  37003. // goto finally
  37004. $async$goto = 4;
  37005. break;
  37006. case 3:
  37007. // uncaught
  37008. $async$next = [2];
  37009. case 4:
  37010. // finally
  37011. $async$handler = 2;
  37012. $async$goto = 17;
  37013. return P._asyncAwait(t2.cancel$0(), $async$watch$1);
  37014. case 17:
  37015. // returning from await.
  37016. // goto the next finally handler
  37017. $async$goto = $async$next.pop();
  37018. break;
  37019. case 5:
  37020. // after finally
  37021. case 1:
  37022. // return
  37023. return P._asyncReturn($async$returnValue, $async$completer);
  37024. case 2:
  37025. // rethrow
  37026. return P._asyncRethrow($async$currentError, $async$completer);
  37027. }
  37028. });
  37029. return P._asyncStartSync($async$watch$1, $async$completer);
  37030. },
  37031. _handleModify$1: function(path) {
  37032. return this._handleModify$body$_Watcher(path);
  37033. },
  37034. _handleModify$body$_Watcher: function(path) {
  37035. var $async$goto = 0,
  37036. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  37037. $async$returnValue, $async$self = this, t2, node, t1, url;
  37038. var $async$_handleModify$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37039. if ($async$errorCode === 1)
  37040. return P._asyncRethrow($async$result, $async$completer);
  37041. while (true)
  37042. switch ($async$goto) {
  37043. case 0:
  37044. // Function start
  37045. t1 = $.$get$context();
  37046. url = t1.toUri$1(t1.canonicalize$1(path));
  37047. t1 = $async$self._graph;
  37048. t2 = t1._nodes;
  37049. if (!t2.containsKey$1(url)) {
  37050. $async$returnValue = $async$self._handleAdd$1(path);
  37051. // goto return
  37052. $async$goto = 1;
  37053. break;
  37054. }
  37055. node = t2.$index(0, url);
  37056. t1.reload$1(url);
  37057. $async$goto = 3;
  37058. return P._asyncAwait($async$self._recompileDownstream$1(H.setRuntimeTypeInfo([node], type$.JSArray_legacy_StylesheetNode)), $async$_handleModify$1);
  37059. case 3:
  37060. // returning from await.
  37061. $async$returnValue = $async$result;
  37062. // goto return
  37063. $async$goto = 1;
  37064. break;
  37065. case 1:
  37066. // return
  37067. return P._asyncReturn($async$returnValue, $async$completer);
  37068. }
  37069. });
  37070. return P._asyncStartSync($async$_handleModify$1, $async$completer);
  37071. },
  37072. _handleAdd$1: function(path) {
  37073. return this._handleAdd$body$_Watcher(path);
  37074. },
  37075. _handleAdd$body$_Watcher: function(path) {
  37076. var $async$goto = 0,
  37077. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  37078. $async$returnValue, $async$self = this, destination, success, t1, t2, $async$temp1;
  37079. var $async$_handleAdd$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37080. if ($async$errorCode === 1)
  37081. return P._asyncRethrow($async$result, $async$completer);
  37082. while (true)
  37083. switch ($async$goto) {
  37084. case 0:
  37085. // Function start
  37086. destination = $async$self._destinationFor$1(path);
  37087. $async$temp1 = destination == null;
  37088. if ($async$temp1)
  37089. $async$result = $async$temp1;
  37090. else {
  37091. // goto then
  37092. $async$goto = 3;
  37093. break;
  37094. }
  37095. // goto join
  37096. $async$goto = 4;
  37097. break;
  37098. case 3:
  37099. // then
  37100. $async$goto = 5;
  37101. return P._asyncAwait($async$self.compile$2(path, destination), $async$_handleAdd$1);
  37102. case 5:
  37103. // returning from await.
  37104. case 4:
  37105. // join
  37106. success = $async$result;
  37107. t1 = D.absolute(".");
  37108. t2 = $.$get$context();
  37109. $async$goto = 6;
  37110. return P._asyncAwait($async$self._recompileDownstream$1($async$self._graph.addCanonical$3(new F.FilesystemImporter(t1), t2.toUri$1(t2.canonicalize$1(path)), t2.toUri$1(path))), $async$_handleAdd$1);
  37111. case 6:
  37112. // returning from await.
  37113. $async$returnValue = $async$result && success;
  37114. // goto return
  37115. $async$goto = 1;
  37116. break;
  37117. case 1:
  37118. // return
  37119. return P._asyncReturn($async$returnValue, $async$completer);
  37120. }
  37121. });
  37122. return P._asyncStartSync($async$_handleAdd$1, $async$completer);
  37123. },
  37124. _handleRemove$1: function(path) {
  37125. return this._handleRemove$body$_Watcher(path);
  37126. },
  37127. _handleRemove$body$_Watcher: function(path) {
  37128. var $async$goto = 0,
  37129. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  37130. $async$returnValue, $async$self = this, t2, destination, t3, node, toRecompile, t1, url;
  37131. var $async$_handleRemove$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37132. if ($async$errorCode === 1)
  37133. return P._asyncRethrow($async$result, $async$completer);
  37134. while (true)
  37135. switch ($async$goto) {
  37136. case 0:
  37137. // Function start
  37138. t1 = $.$get$context();
  37139. url = t1.toUri$1(t1.canonicalize$1(path));
  37140. t1 = $async$self._graph;
  37141. t2 = t1._nodes;
  37142. if (t2.containsKey$1(url)) {
  37143. destination = $async$self._destinationFor$1(path);
  37144. if (destination != null)
  37145. $async$self._delete$1(destination);
  37146. }
  37147. t3 = D.absolute(".");
  37148. node = t2.remove$1(0, url);
  37149. t2 = node != null;
  37150. if (t2) {
  37151. t1._transitiveModificationTimes.clear$0(0);
  37152. t1.importCache.clearImport$1(url);
  37153. node._stylesheet_graph$_remove$0();
  37154. }
  37155. toRecompile = t1._recanonicalizeImports$2(new F.FilesystemImporter(t3), url);
  37156. if (t2)
  37157. toRecompile.addAll$1(0, node._downstream);
  37158. $async$goto = 3;
  37159. return P._asyncAwait($async$self._recompileDownstream$1(toRecompile), $async$_handleRemove$1);
  37160. case 3:
  37161. // returning from await.
  37162. $async$returnValue = $async$result;
  37163. // goto return
  37164. $async$goto = 1;
  37165. break;
  37166. case 1:
  37167. // return
  37168. return P._asyncReturn($async$returnValue, $async$completer);
  37169. }
  37170. });
  37171. return P._asyncStartSync($async$_handleRemove$1, $async$completer);
  37172. },
  37173. _debounceEvents$1: function(events) {
  37174. var t1 = type$.legacy_WatchEvent;
  37175. t1 = R._debounceAggregate(P.Duration$(25), H.instantiate1(R.rate_limit___collectToList$closure(), t1), false, true, t1, type$.legacy_List_legacy_WatchEvent).bind$1(events);
  37176. return new P._ExpandStream(new A._Watcher__debounceEvents_closure(), t1, H._instanceType(t1)._eval$1("_ExpandStream<Stream.T,WatchEvent*>"));
  37177. },
  37178. _recompileDownstream$1: function(nodes) {
  37179. return this._recompileDownstream$body$_Watcher(nodes);
  37180. },
  37181. _recompileDownstream$body$_Watcher: function(nodes) {
  37182. var $async$goto = 0,
  37183. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  37184. $async$returnValue, $async$self = this, t2, allSucceeded, node, success, t1, seen, toRecompile;
  37185. var $async$_recompileDownstream$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37186. if ($async$errorCode === 1)
  37187. return P._asyncRethrow($async$result, $async$completer);
  37188. while (true)
  37189. switch ($async$goto) {
  37190. case 0:
  37191. // Function start
  37192. t1 = type$.legacy_StylesheetNode;
  37193. seen = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  37194. toRecompile = P.ListQueue_ListQueue$of(nodes, t1);
  37195. t1 = type$.UnmodifiableSetView_legacy_StylesheetNode, t2 = $async$self._watch$_options._options, allSucceeded = true;
  37196. case 3:
  37197. // for condition
  37198. if (!!toRecompile.get$isEmpty(toRecompile)) {
  37199. // goto after for
  37200. $async$goto = 4;
  37201. break;
  37202. }
  37203. node = toRecompile.removeFirst$0();
  37204. if (!seen.add$1(0, node)) {
  37205. // goto for condition
  37206. $async$goto = 3;
  37207. break;
  37208. }
  37209. $async$goto = 5;
  37210. return P._asyncAwait($async$self._compileIfEntrypoint$1(node.canonicalUrl), $async$_recompileDownstream$1);
  37211. case 5:
  37212. // returning from await.
  37213. success = $async$result;
  37214. allSucceeded = allSucceeded && success;
  37215. if (!success && H._asBoolS(t2.$index(0, "stop-on-error"))) {
  37216. $async$returnValue = false;
  37217. // goto return
  37218. $async$goto = 1;
  37219. break;
  37220. }
  37221. toRecompile.addAll$1(0, new L.UnmodifiableSetView(node._downstream, t1));
  37222. // goto for condition
  37223. $async$goto = 3;
  37224. break;
  37225. case 4:
  37226. // after for
  37227. $async$returnValue = allSucceeded;
  37228. // goto return
  37229. $async$goto = 1;
  37230. break;
  37231. case 1:
  37232. // return
  37233. return P._asyncReturn($async$returnValue, $async$completer);
  37234. }
  37235. });
  37236. return P._asyncStartSync($async$_recompileDownstream$1, $async$completer);
  37237. },
  37238. _compileIfEntrypoint$1: function(url) {
  37239. return this._compileIfEntrypoint$body$_Watcher(url);
  37240. },
  37241. _compileIfEntrypoint$body$_Watcher: function(url) {
  37242. var $async$goto = 0,
  37243. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  37244. $async$returnValue, $async$self = this, source, destination;
  37245. var $async$_compileIfEntrypoint$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37246. if ($async$errorCode === 1)
  37247. return P._asyncRethrow($async$result, $async$completer);
  37248. while (true)
  37249. switch ($async$goto) {
  37250. case 0:
  37251. // Function start
  37252. if (url.get$scheme() !== "file") {
  37253. $async$returnValue = true;
  37254. // goto return
  37255. $async$goto = 1;
  37256. break;
  37257. }
  37258. source = $.$get$context().style.pathFromUri$1(M._parseUri(url));
  37259. destination = $async$self._destinationFor$1(source);
  37260. if (destination == null) {
  37261. $async$returnValue = true;
  37262. // goto return
  37263. $async$goto = 1;
  37264. break;
  37265. }
  37266. $async$goto = 3;
  37267. return P._asyncAwait($async$self.compile$2(source, destination), $async$_compileIfEntrypoint$1);
  37268. case 3:
  37269. // returning from await.
  37270. $async$returnValue = $async$result;
  37271. // goto return
  37272. $async$goto = 1;
  37273. break;
  37274. case 1:
  37275. // return
  37276. return P._asyncReturn($async$returnValue, $async$completer);
  37277. }
  37278. });
  37279. return P._asyncStartSync($async$_compileIfEntrypoint$1, $async$completer);
  37280. },
  37281. _destinationFor$1: function(source) {
  37282. var destination, t2, t3, t4, _null = null,
  37283. t1 = this._watch$_options;
  37284. t1._ensureSources$0();
  37285. destination = t1._sourcesToDestinations.$index(0, source);
  37286. if (destination != null)
  37287. return destination;
  37288. t2 = $.$get$context();
  37289. if (J.startsWith$1$s(X.ParsedPath_ParsedPath$parse(source, t2.style).get$basename(), "_"))
  37290. return _null;
  37291. for (t1._ensureSources$0(), t3 = J.get$iterator$ax(t1._sourceDirectoriesToDestinations.get$keys()); t3.moveNext$0();) {
  37292. t4 = t3.get$current(t3);
  37293. if (t2._isWithinOrEquals$2(t4, source) !== C._PathRelation_within)
  37294. continue;
  37295. t1._ensureSources$0();
  37296. destination = t2.join$8(0, t1._sourceDirectoriesToDestinations.$index(0, t4), t2.withoutExtension$1(t2.relative$2$from(source, t4)) + ".css", _null, _null, _null, _null, _null, _null);
  37297. if (t2._isWithinOrEquals$2(destination, source) !== C._PathRelation_equal)
  37298. return destination;
  37299. }
  37300. return _null;
  37301. }
  37302. };
  37303. A._Watcher__debounceEvents_closure.prototype = {
  37304. call$1: function(buffer) {
  37305. var t2, t3, t4, oldType,
  37306. t1 = K.PathMap__create(null, type$.legacy_ChangeType);
  37307. for (t2 = J.get$iterator$ax(buffer); t2.moveNext$0();) {
  37308. t3 = t2.get$current(t2);
  37309. t4 = t3.path;
  37310. oldType = t1.$index(0, t4);
  37311. if (oldType == null)
  37312. t1.$indexSet(0, t4, t3.type);
  37313. else if (t3.type === C.ChangeType_remove)
  37314. t1.$indexSet(0, t4, C.ChangeType_remove);
  37315. else if (oldType !== C.ChangeType_add)
  37316. t1.$indexSet(0, t4, C.ChangeType_modify);
  37317. }
  37318. return t1.get$keys().map$1$1(0, new A._Watcher__debounceEvents__closure(new K.PathMap(t1, type$.PathMap_legacy_ChangeType)), type$.legacy_WatchEvent);
  37319. }
  37320. };
  37321. A._Watcher__debounceEvents__closure.prototype = {
  37322. call$1: function(path) {
  37323. return new E.WatchEvent(this.typeForPath._collection$_map.$index(0, path), path);
  37324. }
  37325. };
  37326. T.EmptyExtender.prototype = {
  37327. get$isEmpty: function(_) {
  37328. return true;
  37329. },
  37330. get$simpleSelectors: function() {
  37331. return C.C_EmptyUnmodifiableSet;
  37332. },
  37333. extensionsWhereTarget$1: function(callback) {
  37334. return C.List_empty2;
  37335. },
  37336. addExtensions$1: function(extenders) {
  37337. throw H.wrapException(P.UnsupportedError$(string$.addExt));
  37338. },
  37339. clone$0: function() {
  37340. return C.Tuple2_EmptyExtender_Map_empty;
  37341. },
  37342. $isExtender: 1
  37343. };
  37344. F.Extender.prototype = {
  37345. get$isEmpty: function(_) {
  37346. var t1 = this._extensions;
  37347. return t1.get$isEmpty(t1);
  37348. },
  37349. get$simpleSelectors: function() {
  37350. return new M.MapKeySet(this._selectors, type$.MapKeySet_legacy_SimpleSelector);
  37351. },
  37352. extensionsWhereTarget$1: function($async$callback) {
  37353. var $async$self = this;
  37354. return P._makeSyncStarIterable(function() {
  37355. var callback = $async$callback;
  37356. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4;
  37357. return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
  37358. if ($async$errorCode === 1) {
  37359. $async$currentError = $async$result;
  37360. $async$goto = $async$handler;
  37361. }
  37362. while (true)
  37363. switch ($async$goto) {
  37364. case 0:
  37365. // Function start
  37366. t1 = $async$self._extensions, t2 = t1.get$keys(), t2 = t2.get$iterator(t2);
  37367. case 2:
  37368. // for condition
  37369. if (!t2.moveNext$0()) {
  37370. // goto after for
  37371. $async$goto = 3;
  37372. break;
  37373. }
  37374. t3 = t2.get$current(t2);
  37375. if (!callback.call$1(t3)) {
  37376. // goto for condition
  37377. $async$goto = 2;
  37378. break;
  37379. }
  37380. t3 = t1.$index(0, t3).get$values(), t3 = t3.get$iterator(t3);
  37381. case 4:
  37382. // for condition
  37383. if (!t3.moveNext$0()) {
  37384. // goto after for
  37385. $async$goto = 5;
  37386. break;
  37387. }
  37388. t4 = t3.get$current(t3);
  37389. $async$goto = t4 instanceof A.MergedExtension ? 6 : 8;
  37390. break;
  37391. case 6:
  37392. // then
  37393. t4 = t4.unmerge$0();
  37394. $async$goto = 9;
  37395. return P._IterationMarker_yieldStar(new H.WhereIterable(t4, new F.Extender_extensionsWhereTarget_closure(), t4.$ti._eval$1("WhereIterable<Iterable.E>")));
  37396. case 9:
  37397. // after yield
  37398. // goto join
  37399. $async$goto = 7;
  37400. break;
  37401. case 8:
  37402. // else
  37403. $async$goto = !t4.isOptional ? 10 : 11;
  37404. break;
  37405. case 10:
  37406. // then
  37407. $async$goto = 12;
  37408. return t4;
  37409. case 12:
  37410. // after yield
  37411. case 11:
  37412. // join
  37413. case 7:
  37414. // join
  37415. // goto for condition
  37416. $async$goto = 4;
  37417. break;
  37418. case 5:
  37419. // after for
  37420. // goto for condition
  37421. $async$goto = 2;
  37422. break;
  37423. case 3:
  37424. // after for
  37425. // implicit return
  37426. return P._IterationMarker_endOfIteration();
  37427. case 1:
  37428. // rethrow
  37429. return P._IterationMarker_uncaughtError($async$currentError);
  37430. }
  37431. };
  37432. }, type$.legacy_Extension);
  37433. },
  37434. addSelector$3: function(selector, span, mediaContext) {
  37435. var originalSelector, error, t1, t2, t3, _i, exception, modifiableSelector, _this = this;
  37436. selector = selector;
  37437. originalSelector = selector;
  37438. if (!originalSelector.get$isInvisible())
  37439. for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._originals, _i = 0; _i < t2; ++_i)
  37440. t3.add$1(0, t1[_i]);
  37441. t1 = _this._extensions;
  37442. if (t1.get$isNotEmpty(t1))
  37443. try {
  37444. selector = _this._extendList$3(originalSelector, t1, mediaContext);
  37445. } catch (exception) {
  37446. t1 = H.unwrapException(exception);
  37447. if (t1 instanceof E.SassException) {
  37448. error = t1;
  37449. throw H.wrapException(E.SassException$("From " + error.get$span().message$1(0, "") + "\n" + H.S(error._span_exception$_message), span));
  37450. } else
  37451. throw exception;
  37452. }
  37453. modifiableSelector = new F.ModifiableCssValue(selector, span, type$.ModifiableCssValue_legacy_SelectorList);
  37454. if (mediaContext != null)
  37455. _this._mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  37456. _this._registerSelector$2(selector, modifiableSelector);
  37457. return modifiableSelector;
  37458. },
  37459. _registerSelector$2: function(list, selector) {
  37460. var t1, t2, t3, _i, t4, t5, _i0, component, t6, t7, _i1, simple;
  37461. for (t1 = list.components, t2 = t1.length, t3 = this._selectors, _i = 0; _i < t2; ++_i)
  37462. for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) {
  37463. component = t4[_i0];
  37464. if (component instanceof X.CompoundSelector)
  37465. for (t6 = component.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
  37466. simple = t6[_i1];
  37467. J.add$1$ax(t3.putIfAbsent$2(simple, new F.Extender__registerSelector_closure()), selector);
  37468. if (simple instanceof D.PseudoSelector && simple.selector != null)
  37469. this._registerSelector$2(simple.selector, selector);
  37470. }
  37471. }
  37472. },
  37473. addExtension$4: function(extender, target, extend, mediaContext) {
  37474. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, _i, complex, t12, state, existingState, t13, _i0, component, t14, t15, _i1, simple, newExtensionsByTarget, additionalExtensions, _this = this,
  37475. selectors = _this._selectors.$index(0, target),
  37476. t1 = _this._extensionsByExtender,
  37477. existingExtensions = t1.$index(0, target),
  37478. sources = _this._extensions.putIfAbsent$2(target, new F.Extender_addExtension_closure());
  37479. 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$.legacy_ComplexSelector, t11 = type$.legacy_Extension, newExtensions = null, _i = 0; _i < t3; ++_i) {
  37480. complex = t2[_i];
  37481. if (complex._maxSpecificity == null)
  37482. complex._computeSpecificity$0();
  37483. t12 = complex._maxSpecificity;
  37484. state = new S.Extension(complex, target, t12, t8, false, mediaContext, t6, t7);
  37485. existingState = sources.$index(0, complex);
  37486. if (existingState != null) {
  37487. sources.$indexSet(0, complex, A.MergedExtension_merge(existingState, state));
  37488. continue;
  37489. }
  37490. sources.$indexSet(0, complex, state);
  37491. for (t12 = complex.components, t13 = t12.length, _i0 = 0; _i0 < t13; ++_i0) {
  37492. component = t12[_i0];
  37493. if (component instanceof X.CompoundSelector)
  37494. for (t14 = component.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1) {
  37495. simple = t14[_i1];
  37496. J.add$1$ax(t1.putIfAbsent$2(simple, new F.Extender_addExtension_closure0()), state);
  37497. t5.putIfAbsent$2(simple, new F.Extender_addExtension_closure1(complex));
  37498. }
  37499. }
  37500. if (!t4 || t9) {
  37501. if (newExtensions == null)
  37502. newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
  37503. newExtensions.$indexSet(0, complex, state);
  37504. }
  37505. }
  37506. if (newExtensions == null)
  37507. return;
  37508. newExtensionsByTarget = P.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], type$.legacy_SimpleSelector, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension);
  37509. if (t9) {
  37510. additionalExtensions = _this._extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  37511. if (additionalExtensions != null)
  37512. B.mapAddAll2(newExtensionsByTarget, additionalExtensions);
  37513. }
  37514. if (!t4)
  37515. _this._extendExistingSelectors$2(selectors, newExtensionsByTarget);
  37516. },
  37517. _extendExistingExtensions$2: function(extensions, newExtensions) {
  37518. var extension, selectors, error, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, sources, exception, containsExtension, t7, t8, first, _i0, complex, t9, t10, t11, t12, t13, t14, withExtender, existingExtension, _i1, component, _i2;
  37519. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extensionsByExtender, t4 = type$.legacy_SimpleSelector, t5 = type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension, t6 = this._extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  37520. extension = t1[_i];
  37521. sources = t6.$index(0, extension.target);
  37522. selectors = null;
  37523. try {
  37524. selectors = this._extendComplex$3(extension.extender, newExtensions, extension.mediaContext);
  37525. if (selectors == null)
  37526. continue;
  37527. } catch (exception) {
  37528. t1 = H.unwrapException(exception);
  37529. if (t1 instanceof E.SassException) {
  37530. error = t1;
  37531. throw H.wrapException(E.SassException$("From " + extension.extenderSpan.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  37532. } else
  37533. throw exception;
  37534. }
  37535. containsExtension = J.$eq$(J.get$first$ax(selectors), extension.extender);
  37536. for (t7 = selectors, t8 = t7.length, first = false, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, H.throwConcurrentModificationError)(t7), ++_i0) {
  37537. complex = t7[_i0];
  37538. if (containsExtension && first) {
  37539. first = false;
  37540. continue;
  37541. }
  37542. t9 = extension;
  37543. t10 = t9.target;
  37544. t11 = t9.extenderSpan;
  37545. t12 = t9.span;
  37546. t13 = t9.mediaContext;
  37547. t14 = t9.specificity;
  37548. t9 = t9.isOptional;
  37549. if (t14 == null) {
  37550. if (complex._maxSpecificity == null)
  37551. complex._computeSpecificity$0();
  37552. t14 = complex._maxSpecificity;
  37553. }
  37554. withExtender = new S.Extension(complex, t10, t14, t9, false, t13, t11, t12);
  37555. existingExtension = sources.$index(0, complex);
  37556. if (existingExtension != null)
  37557. sources.$indexSet(0, complex, A.MergedExtension_merge(existingExtension, withExtender));
  37558. else {
  37559. sources.$indexSet(0, complex, withExtender);
  37560. for (t9 = complex.components, t10 = t9.length, _i1 = 0; _i1 < t10; ++_i1) {
  37561. component = t9[_i1];
  37562. if (component instanceof X.CompoundSelector)
  37563. for (t11 = component.components, t12 = t11.length, _i2 = 0; _i2 < t12; ++_i2)
  37564. J.add$1$ax(t3.putIfAbsent$2(t11[_i2], new F.Extender__extendExistingExtensions_closure()), withExtender);
  37565. }
  37566. if (newExtensions.containsKey$1(extension.target)) {
  37567. if (additionalExtensions == null)
  37568. additionalExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  37569. additionalExtensions.putIfAbsent$2(extension.target, new F.Extender__extendExistingExtensions_closure0()).$indexSet(0, complex, withExtender);
  37570. }
  37571. }
  37572. }
  37573. if (!containsExtension)
  37574. sources.remove$1(0, extension.extender);
  37575. }
  37576. return additionalExtensions;
  37577. },
  37578. _extendExistingSelectors$2: function(selectors, newExtensions) {
  37579. var selector, error, t1, t2, oldValue, exception;
  37580. for (t1 = selectors.get$iterator(selectors), t2 = this._mediaContexts; t1.moveNext$0();) {
  37581. selector = t1.get$current(t1);
  37582. oldValue = selector.value;
  37583. try {
  37584. selector.value = this._extendList$3(selector.value, newExtensions, t2.$index(0, selector));
  37585. } catch (exception) {
  37586. t1 = H.unwrapException(exception);
  37587. if (t1 instanceof E.SassException) {
  37588. error = t1;
  37589. throw H.wrapException(E.SassException$("From " + selector.span.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  37590. } else
  37591. throw exception;
  37592. }
  37593. if (oldValue == selector.value)
  37594. continue;
  37595. this._registerSelector$2(selector.value, selector);
  37596. }
  37597. },
  37598. addExtensions$1: function(extenders) {
  37599. var t1, t2, t3, _this = this, _box_0 = {};
  37600. _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
  37601. for (t1 = J.get$iterator$ax(extenders), t2 = _this._sourceSpecificity; t1.moveNext$0();) {
  37602. t3 = t1.get$current(t1);
  37603. if (t3.get$isEmpty(t3))
  37604. continue;
  37605. t2.addAll$1(0, t3.get$_sourceSpecificity());
  37606. t3.get$_extensions().forEach$1(0, new F.Extender_addExtensions_closure(_box_0, _this, t3));
  37607. }
  37608. t1 = _box_0.newExtensions;
  37609. if (t1 == null)
  37610. return;
  37611. t2 = _box_0.extensionsToExtend;
  37612. if (t2 != null)
  37613. _this._extendExistingExtensions$2(t2, t1);
  37614. t1 = _box_0.selectorsToExtend;
  37615. if (t1 != null)
  37616. _this._extendExistingSelectors$2(t1, _box_0.newExtensions);
  37617. },
  37618. _extendList$3: function(list, extensions, mediaQueryContext) {
  37619. var t1, t2, t3, extended, i, complex, result, t4;
  37620. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_legacy_ComplexSelector, extended = null, i = 0; i < t2; ++i) {
  37621. complex = t1[i];
  37622. result = this._extendComplex$3(complex, extensions, mediaQueryContext);
  37623. if (result == null) {
  37624. if (extended != null)
  37625. extended.push(complex);
  37626. } else {
  37627. if (extended == null)
  37628. if (i === 0)
  37629. extended = H.setRuntimeTypeInfo([], t3);
  37630. else {
  37631. t4 = C.JSArray_methods.sublist$2(t1, 0, i);
  37632. extended = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4)._eval$1("JSArray<1>"));
  37633. }
  37634. C.JSArray_methods.addAll$1(extended, result);
  37635. }
  37636. }
  37637. if (extended == null)
  37638. return list;
  37639. t1 = this._originals;
  37640. return D.SelectorList$(J.where$1$ax(this._trim$2(extended, t1.get$contains(t1)), new F.Extender__extendList_closure()));
  37641. },
  37642. _extendComplex$3: function(complex, extensions, mediaQueryContext) {
  37643. var t1, t2, t3, t4, t5, t6, extendedNotExpanded, i, component, extended, result, t7, t8,
  37644. _s28_ = "components may not be empty.",
  37645. _box_0 = {},
  37646. isOriginal = this._originals.contains$1(0, complex);
  37647. for (t1 = complex.components, t2 = t1.length, t3 = type$.JSArray_legacy_ComplexSelector, t4 = type$.JSArray_legacy_ComplexSelectorComponent, t5 = type$.legacy_ComplexSelectorComponent, t6 = H._arrayInstanceType(t1)._precomputed1, extendedNotExpanded = null, i = 0; i < t2; ++i) {
  37648. component = t1[i];
  37649. if (component instanceof X.CompoundSelector) {
  37650. extended = this._extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
  37651. if (extended == null) {
  37652. if (extendedNotExpanded != null) {
  37653. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  37654. result.fixed$length = Array;
  37655. result.immutable$list = Array;
  37656. t7 = result;
  37657. if (t7.length === 0)
  37658. H.throwExpression(P.ArgumentError$(_s28_));
  37659. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector(t7, false)], t3));
  37660. }
  37661. } else {
  37662. if (extendedNotExpanded == null) {
  37663. t7 = H.SubListIterable$(t1, 0, i, t6);
  37664. t8 = t7.$ti._eval$1("MappedListIterable<ListIterable.E,List<ComplexSelector*>*>");
  37665. extendedNotExpanded = P.List_List$from(new H.MappedListIterable(t7, new F.Extender__extendComplex_closure(complex), t8), true, t8._eval$1("ListIterable.E"));
  37666. }
  37667. C.JSArray_methods.add$1(extendedNotExpanded, extended);
  37668. }
  37669. } else if (extendedNotExpanded != null) {
  37670. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  37671. result.fixed$length = Array;
  37672. result.immutable$list = Array;
  37673. t7 = result;
  37674. if (t7.length === 0)
  37675. H.throwExpression(P.ArgumentError$(_s28_));
  37676. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector(t7, false)], t3));
  37677. }
  37678. }
  37679. if (extendedNotExpanded == null)
  37680. return null;
  37681. _box_0.first = true;
  37682. t1 = type$.legacy_ComplexSelector;
  37683. t1 = J.expand$1$1$ax(Y.paths(extendedNotExpanded, t1), new F.Extender__extendComplex_closure0(_box_0, this, complex), t1);
  37684. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  37685. },
  37686. _extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
  37687. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, result, t12, t13, _this = this, _null = null,
  37688. _s28_ = "components may not be empty.",
  37689. _box_1 = {},
  37690. t1 = _this._mode,
  37691. targetsUsed = t1 === C.ExtendMode_normal || extensions.get$length(extensions) < 2 ? _null : P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_SimpleSelector);
  37692. for (t2 = compound.components, t3 = t2.length, t4 = type$.JSArray_legacy_List_legacy_Extension, t5 = type$.JSArray_legacy_Extension, t6 = type$.JSArray_legacy_ComplexSelectorComponent, t7 = type$.legacy_ComplexSelectorComponent, t8 = H._arrayInstanceType(t2)._precomputed1, t9 = type$.legacy_SimpleSelector, t10 = _this._sourceSpecificity, t11 = type$.JSArray_legacy_SimpleSelector, options = _null, i = 0; i < t3; ++i) {
  37693. simple = t2[i];
  37694. extended = _this._extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
  37695. if (extended == null) {
  37696. if (options != null) {
  37697. result = P.List_List$from(H.setRuntimeTypeInfo([simple], t11), false, t9);
  37698. result.fixed$length = Array;
  37699. result.immutable$list = Array;
  37700. t12 = result;
  37701. if (t12.length === 0)
  37702. H.throwExpression(P.ArgumentError$(_s28_));
  37703. result = P.List_List$from(H.setRuntimeTypeInfo([new X.CompoundSelector(t12)], t6), false, t7);
  37704. result.fixed$length = Array;
  37705. result.immutable$list = Array;
  37706. t12 = result;
  37707. if (t12.length === 0)
  37708. H.throwExpression(P.ArgumentError$(_s28_));
  37709. t13 = t10.$index(0, simple);
  37710. if (t13 == null)
  37711. t13 = 0;
  37712. options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
  37713. }
  37714. } else {
  37715. if (options == null) {
  37716. options = H.setRuntimeTypeInfo([], t4);
  37717. if (i !== 0) {
  37718. result = P.List_List$from(H.SubListIterable$(t2, 0, i, t8), false, t9);
  37719. result.fixed$length = Array;
  37720. result.immutable$list = Array;
  37721. t12 = result;
  37722. compound = new X.CompoundSelector(t12);
  37723. if (t12.length === 0)
  37724. H.throwExpression(P.ArgumentError$(_s28_));
  37725. result = P.List_List$from(H.setRuntimeTypeInfo([compound], t6), false, t7);
  37726. result.fixed$length = Array;
  37727. result.immutable$list = Array;
  37728. t12 = result;
  37729. if (t12.length === 0)
  37730. H.throwExpression(P.ArgumentError$(_s28_));
  37731. t13 = _this._sourceSpecificityFor$1(compound);
  37732. options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
  37733. }
  37734. }
  37735. C.JSArray_methods.addAll$1(options, extended);
  37736. }
  37737. }
  37738. if (options == null)
  37739. return _null;
  37740. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
  37741. return _null;
  37742. if (options.length === 1)
  37743. return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure(mediaQueryContext), type$.legacy_ComplexSelector).toList$0(0);
  37744. _box_1.first = t1 !== C.ExtendMode_replace;
  37745. t1 = J.map$1$1$ax(Y.paths(options, type$.legacy_Extension), new F.Extender__extendCompound_closure0(_box_1, mediaQueryContext), type$.legacy_List_legacy_ComplexSelector).where$1(0, new F.Extender__extendCompound_closure1());
  37746. t2 = t1.$ti._eval$1("ExpandIterable<Iterable.E,ComplexSelector*>");
  37747. return P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure2(), t2), true, t2._eval$1("Iterable.E"));
  37748. },
  37749. _extendSimple$4: function(simple, extensions, mediaQueryContext, targetsUsed) {
  37750. var extended, result,
  37751. t1 = new F.Extender__extendSimple_withoutPseudo(this, extensions, targetsUsed);
  37752. if (simple instanceof D.PseudoSelector && simple.selector != null) {
  37753. extended = this._extendPseudo$3(simple, extensions, mediaQueryContext);
  37754. if (extended != null)
  37755. return new H.MappedListIterable(extended, new F.Extender__extendSimple_closure(this, t1), H._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extension*>*>"));
  37756. }
  37757. result = t1.call$1(simple);
  37758. return result == null ? null : H.setRuntimeTypeInfo([result], type$.JSArray_legacy_List_legacy_Extension);
  37759. },
  37760. _extensionForSimple$1: function(simple) {
  37761. var t1 = S.ComplexSelector$(H.setRuntimeTypeInfo([X.CompoundSelector$(H.setRuntimeTypeInfo([simple], type$.JSArray_legacy_SimpleSelector))], type$.JSArray_legacy_ComplexSelectorComponent), false),
  37762. t2 = this._sourceSpecificity.$index(0, simple);
  37763. return S.Extension$oneOff(t1, true, t2 == null ? 0 : t2);
  37764. },
  37765. _extendPseudo$3: function(pseudo, extensions, mediaQueryContext) {
  37766. var complexes, t2, result,
  37767. t1 = pseudo.selector,
  37768. extended = this._extendList$3(t1, extensions, mediaQueryContext);
  37769. if (extended == t1)
  37770. return null;
  37771. complexes = extended.components;
  37772. t2 = pseudo.normalizedName === "not";
  37773. if (t2 && !C.JSArray_methods.any$1(t1.components, new F.Extender__extendPseudo_closure()) && C.JSArray_methods.any$1(complexes, new F.Extender__extendPseudo_closure0()))
  37774. complexes = new H.WhereIterable(complexes, new F.Extender__extendPseudo_closure1(), H._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  37775. complexes = J.expand$1$1$ax(complexes, new F.Extender__extendPseudo_closure2(pseudo), type$.legacy_ComplexSelector);
  37776. if (t2 && t1.components.length === 1) {
  37777. t1 = H.MappedIterable_MappedIterable(complexes, new F.Extender__extendPseudo_closure3(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.legacy_PseudoSelector);
  37778. result = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  37779. return result.length === 0 ? null : result;
  37780. } else
  37781. return H.setRuntimeTypeInfo([D.PseudoSelector$(pseudo.name, pseudo.argument, !pseudo.isClass, D.SelectorList$(complexes))], type$.JSArray_legacy_PseudoSelector);
  37782. },
  37783. _trim$2: function(selectors, isOriginal) {
  37784. var result, i, t1, numOriginals, _box_0, complex1, j, t2, t3, _i, component;
  37785. if (selectors.length > 100)
  37786. return selectors;
  37787. result = Q.QueueList$(null, type$.legacy_ComplexSelector);
  37788. $label0$0:
  37789. for (i = selectors.length - 1, t1 = H._arrayInstanceType(selectors)._precomputed1, numOriginals = 0; i >= 0; --i) {
  37790. _box_0 = {};
  37791. complex1 = selectors[i];
  37792. if (isOriginal.call$1(complex1)) {
  37793. for (j = 0; j < numOriginals; ++j)
  37794. if (J.$eq$(result.$index(0, j), complex1)) {
  37795. B.rotateSlice(result, 0, j + 1);
  37796. continue $label0$0;
  37797. }
  37798. ++numOriginals;
  37799. result.addFirst$1(complex1);
  37800. continue $label0$0;
  37801. }
  37802. _box_0.maxSpecificity = 0;
  37803. for (t2 = complex1.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  37804. component = t2[_i];
  37805. if (component instanceof X.CompoundSelector)
  37806. _box_0.maxSpecificity = Math.max(_box_0.maxSpecificity, this._sourceSpecificityFor$1(component));
  37807. }
  37808. if (result.any$1(result, new F.Extender__trim_closure(_box_0, complex1)))
  37809. continue $label0$0;
  37810. if (H.SubListIterable$(selectors, 0, i, t1).any$1(0, new F.Extender__trim_closure0(_box_0, complex1)))
  37811. continue $label0$0;
  37812. result.addFirst$1(complex1);
  37813. }
  37814. return result;
  37815. },
  37816. _sourceSpecificityFor$1: function(compound) {
  37817. var t1, t2, t3, specificity, _i, t4;
  37818. for (t1 = compound.components, t2 = t1.length, t3 = this._sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  37819. t4 = t3.$index(0, t1[_i]);
  37820. specificity = Math.max(specificity, H.checkNum(t4 == null ? 0 : t4));
  37821. }
  37822. return specificity;
  37823. },
  37824. clone$0: function() {
  37825. var t3, t4, _this = this,
  37826. t1 = type$.legacy_SimpleSelector,
  37827. newSelectors = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList),
  37828. t2 = type$.legacy_ModifiableCssValue_legacy_SelectorList,
  37829. newMediaContexts = P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_List_legacy_CssMediaQuery),
  37830. oldToNewSelectors = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_CssValue_legacy_SelectorList, t2);
  37831. _this._selectors.forEach$1(0, new F.Extender_clone_closure(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  37832. t2 = type$.legacy_Extension;
  37833. t3 = B.copyMapOfMap(_this._extensions, t1, type$.legacy_ComplexSelector, t2);
  37834. t2 = B.copyMapOfList(_this._extensionsByExtender, t1, t2);
  37835. t1 = P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int);
  37836. t1.addAll$1(0, _this._sourceSpecificity);
  37837. t4 = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector);
  37838. t4.addAll$1(0, _this._originals);
  37839. return new S.Tuple2(new F.Extender(newSelectors, t3, t2, newMediaContexts, t1, t4, C.ExtendMode_normal), oldToNewSelectors, type$.Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList);
  37840. },
  37841. get$_extensions: function() {
  37842. return this._extensions;
  37843. },
  37844. get$_sourceSpecificity: function() {
  37845. return this._sourceSpecificity;
  37846. }
  37847. };
  37848. F.Extender_extensionsWhereTarget_closure.prototype = {
  37849. call$1: function(extension) {
  37850. return !extension.isOptional;
  37851. }
  37852. };
  37853. F.Extender__registerSelector_closure.prototype = {
  37854. call$0: function() {
  37855. return P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList);
  37856. },
  37857. $signature: 159
  37858. };
  37859. F.Extender_addExtension_closure.prototype = {
  37860. call$0: function() {
  37861. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
  37862. },
  37863. $signature: 49
  37864. };
  37865. F.Extender_addExtension_closure0.prototype = {
  37866. call$0: function() {
  37867. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension);
  37868. },
  37869. $signature: 99
  37870. };
  37871. F.Extender_addExtension_closure1.prototype = {
  37872. call$0: function() {
  37873. return this.complex.get$maxSpecificity();
  37874. },
  37875. $signature: 7
  37876. };
  37877. F.Extender__extendExistingExtensions_closure.prototype = {
  37878. call$0: function() {
  37879. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension);
  37880. },
  37881. $signature: 99
  37882. };
  37883. F.Extender__extendExistingExtensions_closure0.prototype = {
  37884. call$0: function() {
  37885. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
  37886. },
  37887. $signature: 49
  37888. };
  37889. F.Extender_addExtensions_closure.prototype = {
  37890. call$2: function(target, newSources) {
  37891. var t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
  37892. if (target instanceof N.PlaceholderSelector && T.isPrivate(target.name))
  37893. return;
  37894. t1 = _this.$this;
  37895. extensionsForTarget = t1._extensionsByExtender.$index(0, target);
  37896. t2 = extensionsForTarget == null;
  37897. if (!t2) {
  37898. t3 = _this._box_0;
  37899. t4 = t3.extensionsToExtend;
  37900. C.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension) : t4, extensionsForTarget);
  37901. }
  37902. selectorsForTarget = t1._selectors.$index(0, target);
  37903. t3 = selectorsForTarget != null;
  37904. if (t3) {
  37905. t4 = _this._box_0;
  37906. t5 = t4.selectorsToExtend;
  37907. (t5 == null ? t4.selectorsToExtend = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList) : t5).addAll$1(0, selectorsForTarget);
  37908. }
  37909. t1 = t1._extensions;
  37910. existingSources = t1.$index(0, target);
  37911. if (existingSources == null) {
  37912. t4 = _this.extender;
  37913. t1.$indexSet(0, target, t4.get$_extensions().$index(0, target));
  37914. if (!t2 || t3) {
  37915. t1 = _this._box_0;
  37916. t2 = t1.newExtensions;
  37917. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension) : t2;
  37918. t1.$indexSet(0, target, t4.get$_extensions().$index(0, target));
  37919. }
  37920. } else
  37921. newSources.forEach$1(0, new F.Extender_addExtensions__closure(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
  37922. }
  37923. };
  37924. F.Extender_addExtensions__closure.prototype = {
  37925. call$2: function(extender, extension) {
  37926. var t2, _this = this,
  37927. t1 = _this.existingSources;
  37928. if (t1.containsKey$1(extender))
  37929. return;
  37930. t1.$indexSet(0, extender, extension);
  37931. if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
  37932. t1 = _this._box_0;
  37933. t2 = t1.newExtensions;
  37934. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension) : t2;
  37935. t1.putIfAbsent$2(_this.target, new F.Extender_addExtensions___closure()).putIfAbsent$2(extender, new F.Extender_addExtensions___closure0(extension));
  37936. }
  37937. }
  37938. };
  37939. F.Extender_addExtensions___closure.prototype = {
  37940. call$0: function() {
  37941. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
  37942. },
  37943. $signature: 49
  37944. };
  37945. F.Extender_addExtensions___closure0.prototype = {
  37946. call$0: function() {
  37947. return this.extension;
  37948. },
  37949. $signature: 158
  37950. };
  37951. F.Extender__extendList_closure.prototype = {
  37952. call$1: function(complex) {
  37953. return complex != null;
  37954. }
  37955. };
  37956. F.Extender__extendComplex_closure.prototype = {
  37957. call$1: function(component) {
  37958. return H.setRuntimeTypeInfo([S.ComplexSelector$(H.setRuntimeTypeInfo([component], type$.JSArray_legacy_ComplexSelectorComponent), this.complex.lineBreak)], type$.JSArray_legacy_ComplexSelector);
  37959. }
  37960. };
  37961. F.Extender__extendComplex_closure0.prototype = {
  37962. call$1: function(path) {
  37963. var t1 = Y.weave(J.map$1$1$ax(path, new F.Extender__extendComplex__closure(), type$.legacy_List_legacy_ComplexSelectorComponent).toList$0(0));
  37964. return new H.MappedListIterable(t1, new F.Extender__extendComplex__closure0(this._box_0, this.$this, this.complex, path), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector*>"));
  37965. }
  37966. };
  37967. F.Extender__extendComplex__closure.prototype = {
  37968. call$1: function(complex) {
  37969. return complex.components;
  37970. }
  37971. };
  37972. F.Extender__extendComplex__closure0.prototype = {
  37973. call$1: function(components) {
  37974. var _this = this,
  37975. t1 = _this.complex,
  37976. outputComplex = S.ComplexSelector$(components, t1.lineBreak || J.any$1$ax(_this.path, new F.Extender__extendComplex___closure())),
  37977. t2 = _this._box_0;
  37978. if (t2.first && _this.$this._originals.contains$1(0, t1))
  37979. _this.$this._originals.add$1(0, outputComplex);
  37980. t2.first = false;
  37981. return outputComplex;
  37982. }
  37983. };
  37984. F.Extender__extendComplex___closure.prototype = {
  37985. call$1: function(inputComplex) {
  37986. return inputComplex.lineBreak;
  37987. }
  37988. };
  37989. F.Extender__extendCompound_closure.prototype = {
  37990. call$1: function(state) {
  37991. state.assertCompatibleMediaContext$1(this.mediaQueryContext);
  37992. return state.extender;
  37993. }
  37994. };
  37995. F.Extender__extendCompound_closure0.prototype = {
  37996. call$1: function(path) {
  37997. var complexes, toUnify, t2, t3, originals, t4, _box_0 = {},
  37998. t1 = this._box_1;
  37999. if (t1.first) {
  38000. t1.first = false;
  38001. complexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([X.CompoundSelector$(J.expand$1$1$ax(path, new F.Extender__extendCompound__closure(), type$.legacy_SimpleSelector))], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent);
  38002. } else {
  38003. toUnify = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent);
  38004. for (t1 = J.get$iterator$ax(path), t2 = type$.legacy_CompoundSelector, t3 = type$.JSArray_legacy_SimpleSelector, originals = null; t1.moveNext$0();) {
  38005. t4 = t1.get$current(t1);
  38006. if (t4.isOriginal) {
  38007. if (originals == null)
  38008. originals = H.setRuntimeTypeInfo([], t3);
  38009. C.JSArray_methods.addAll$1(originals, t2._as(C.JSArray_methods.get$last(t4.extender.components)).components);
  38010. } else
  38011. toUnify._queue_list$_add$1(t4.extender.components);
  38012. }
  38013. if (originals != null)
  38014. toUnify.addFirst$1(H.setRuntimeTypeInfo([X.CompoundSelector$(originals)], type$.JSArray_legacy_ComplexSelectorComponent));
  38015. complexes = Y.unifyComplex(toUnify);
  38016. if (complexes == null)
  38017. return null;
  38018. }
  38019. _box_0.lineBreak = false;
  38020. for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
  38021. t3 = t1.get$current(t1);
  38022. t3.assertCompatibleMediaContext$1(t2);
  38023. _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
  38024. }
  38025. t1 = J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure0(_box_0), type$.legacy_ComplexSelector);
  38026. return P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  38027. }
  38028. };
  38029. F.Extender__extendCompound__closure.prototype = {
  38030. call$1: function(state) {
  38031. return type$.legacy_CompoundSelector._as(C.JSArray_methods.get$last(state.extender.components)).components;
  38032. }
  38033. };
  38034. F.Extender__extendCompound__closure0.prototype = {
  38035. call$1: function(components) {
  38036. return S.ComplexSelector$(components, this._box_0.lineBreak);
  38037. }
  38038. };
  38039. F.Extender__extendCompound_closure1.prototype = {
  38040. call$1: function(complexes) {
  38041. return complexes != null;
  38042. }
  38043. };
  38044. F.Extender__extendCompound_closure2.prototype = {
  38045. call$1: function(l) {
  38046. return l;
  38047. }
  38048. };
  38049. F.Extender__extendSimple_withoutPseudo.prototype = {
  38050. call$1: function(simple) {
  38051. var t1, t2,
  38052. extenders = this.extensions.$index(0, simple);
  38053. if (extenders == null)
  38054. return null;
  38055. t1 = this.targetsUsed;
  38056. if (t1 != null)
  38057. t1.add$1(0, simple);
  38058. t1 = this.$this;
  38059. if (t1._mode === C.ExtendMode_replace) {
  38060. t1 = extenders.get$values();
  38061. return P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  38062. }
  38063. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension);
  38064. t2.push(t1._extensionForSimple$1(simple));
  38065. for (t1 = extenders.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  38066. t2.push(t1.get$current(t1));
  38067. return t2;
  38068. }
  38069. };
  38070. F.Extender__extendSimple_closure.prototype = {
  38071. call$1: function(pseudo) {
  38072. var t1 = this.withoutPseudo.call$1(pseudo);
  38073. return t1 == null ? H.setRuntimeTypeInfo([this.$this._extensionForSimple$1(pseudo)], type$.JSArray_legacy_Extension) : t1;
  38074. }
  38075. };
  38076. F.Extender__extendPseudo_closure.prototype = {
  38077. call$1: function(complex) {
  38078. return complex.components.length > 1;
  38079. }
  38080. };
  38081. F.Extender__extendPseudo_closure0.prototype = {
  38082. call$1: function(complex) {
  38083. return complex.components.length === 1;
  38084. }
  38085. };
  38086. F.Extender__extendPseudo_closure1.prototype = {
  38087. call$1: function(complex) {
  38088. return complex.components.length <= 1;
  38089. }
  38090. };
  38091. F.Extender__extendPseudo_closure2.prototype = {
  38092. call$1: function(complex) {
  38093. var innerPseudo, t2,
  38094. t1 = complex.components;
  38095. if (t1.length !== 1)
  38096. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  38097. if (!(C.JSArray_methods.get$first(t1) instanceof X.CompoundSelector))
  38098. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  38099. t1 = type$.legacy_CompoundSelector._as(C.JSArray_methods.get$first(t1)).components;
  38100. if (t1.length !== 1)
  38101. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  38102. if (!(C.JSArray_methods.get$first(t1) instanceof D.PseudoSelector))
  38103. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  38104. innerPseudo = type$.legacy_PseudoSelector._as(C.JSArray_methods.get$first(t1));
  38105. t1 = innerPseudo.selector;
  38106. if (t1 == null)
  38107. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  38108. t2 = this.pseudo;
  38109. switch (t2.normalizedName) {
  38110. case "not":
  38111. if (innerPseudo.normalizedName !== "matches")
  38112. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector);
  38113. return t1.components;
  38114. case "matches":
  38115. case "any":
  38116. case "current":
  38117. case "nth-child":
  38118. case "nth-last-child":
  38119. if (innerPseudo.name !== t2.name)
  38120. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector);
  38121. if (innerPseudo.argument != t2.argument)
  38122. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector);
  38123. return t1.components;
  38124. case "has":
  38125. case "host":
  38126. case "host-context":
  38127. case "slotted":
  38128. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  38129. default:
  38130. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector);
  38131. }
  38132. }
  38133. };
  38134. F.Extender__extendPseudo_closure3.prototype = {
  38135. call$1: function(complex) {
  38136. var t1 = this.pseudo;
  38137. return D.PseudoSelector$(t1.name, t1.argument, !t1.isClass, D.SelectorList$(H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector)));
  38138. }
  38139. };
  38140. F.Extender__trim_closure.prototype = {
  38141. call$1: function(complex2) {
  38142. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector(complex2.components, this.complex1.components);
  38143. }
  38144. };
  38145. F.Extender__trim_closure0.prototype = {
  38146. call$1: function(complex2) {
  38147. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector(complex2.components, this.complex1.components);
  38148. }
  38149. };
  38150. F.Extender_clone_closure.prototype = {
  38151. call$2: function(simple, selectors) {
  38152. var t1, t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
  38153. newSelectorSet = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList);
  38154. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  38155. for (t1 = selectors.get$iterator(selectors), t2 = type$.ModifiableCssValue_legacy_SelectorList, t3 = _this.oldToNewSelectors, t4 = _this.$this._mediaContexts, t5 = _this.newMediaContexts; t1.moveNext$0();) {
  38156. t6 = t1.get$current(t1);
  38157. newSelector = new F.ModifiableCssValue(t6.value, t6.span, t2);
  38158. newSelectorSet.add$1(0, newSelector);
  38159. t3.$indexSet(0, t6, newSelector);
  38160. mediaContext = t4.$index(0, t6);
  38161. if (mediaContext != null)
  38162. t5.$indexSet(0, newSelector, mediaContext);
  38163. }
  38164. }
  38165. };
  38166. S.Extension.prototype = {
  38167. assertCompatibleMediaContext$1: function(mediaContext) {
  38168. var t1 = this.mediaContext;
  38169. if (t1 == null)
  38170. return;
  38171. if (mediaContext != null && C.C_ListEquality.equals$2(t1, mediaContext))
  38172. return;
  38173. throw H.wrapException(E.SassException$(string$.You_ma, this.span));
  38174. },
  38175. toString$0: function(_) {
  38176. var t1 = H.S(this.extender) + " {@extend " + H.S(this.target);
  38177. return t1 + (this.isOptional ? " !optional" : "") + "}";
  38178. },
  38179. get$target: function() {
  38180. return this.target;
  38181. },
  38182. get$span: function() {
  38183. return this.span;
  38184. }
  38185. };
  38186. Y.unifyComplex_closure.prototype = {
  38187. call$1: function(complex) {
  38188. var t1 = J.getInterceptor$asx(complex);
  38189. return t1.sublist$2(complex, 0, t1.get$length(complex) - 1);
  38190. }
  38191. };
  38192. Y._weaveParents_closure.prototype = {
  38193. call$2: function(group1, group2) {
  38194. var unified, t1, _null = null;
  38195. if (C.C_ListEquality.equals$2(group1, group2))
  38196. return group1;
  38197. if (!(J.get$first$ax(group1) instanceof X.CompoundSelector) || !(J.get$first$ax(group2) instanceof X.CompoundSelector))
  38198. return _null;
  38199. if (Y.complexIsParentSuperselector(group1, group2))
  38200. return group2;
  38201. if (Y.complexIsParentSuperselector(group2, group1))
  38202. return group1;
  38203. if (!Y._mustUnify(group1, group2))
  38204. return _null;
  38205. unified = Y.unifyComplex(H.setRuntimeTypeInfo([group1, group2], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  38206. if (unified == null)
  38207. return _null;
  38208. t1 = J.getInterceptor$asx(unified);
  38209. if (t1.get$length(unified) > 1)
  38210. return _null;
  38211. return t1.get$first(unified);
  38212. }
  38213. };
  38214. Y._weaveParents_closure0.prototype = {
  38215. call$1: function(sequence) {
  38216. return Y.complexIsParentSuperselector(sequence.get$first(sequence), this.group);
  38217. }
  38218. };
  38219. Y._weaveParents_closure1.prototype = {
  38220. call$1: function(chunk) {
  38221. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure1(), type$.legacy_ComplexSelectorComponent);
  38222. }
  38223. };
  38224. Y._weaveParents__closure1.prototype = {
  38225. call$1: function(group) {
  38226. return group;
  38227. }
  38228. };
  38229. Y._weaveParents_closure2.prototype = {
  38230. call$1: function(sequence) {
  38231. return sequence.get$length(sequence) === 0;
  38232. }
  38233. };
  38234. Y._weaveParents_closure3.prototype = {
  38235. call$1: function(chunk) {
  38236. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure0(), type$.legacy_ComplexSelectorComponent);
  38237. }
  38238. };
  38239. Y._weaveParents__closure0.prototype = {
  38240. call$1: function(group) {
  38241. return group;
  38242. }
  38243. };
  38244. Y._weaveParents_closure4.prototype = {
  38245. call$1: function(choice) {
  38246. return J.get$isNotEmpty$asx(choice);
  38247. }
  38248. };
  38249. Y._weaveParents_closure5.prototype = {
  38250. call$1: function(path) {
  38251. var t1 = J.expand$1$1$ax(path, new Y._weaveParents__closure(), type$.legacy_ComplexSelectorComponent);
  38252. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  38253. }
  38254. };
  38255. Y._weaveParents__closure.prototype = {
  38256. call$1: function(group) {
  38257. return group;
  38258. }
  38259. };
  38260. Y._mustUnify_closure.prototype = {
  38261. call$1: function(component) {
  38262. return component instanceof X.CompoundSelector && C.JSArray_methods.any$1(component.components, new Y._mustUnify__closure(this.uniqueSelectors));
  38263. }
  38264. };
  38265. Y._mustUnify__closure.prototype = {
  38266. call$1: function(simple) {
  38267. var t1;
  38268. if (!(simple instanceof N.IDSelector))
  38269. t1 = simple instanceof D.PseudoSelector && !simple.isClass;
  38270. else
  38271. t1 = true;
  38272. return t1 && this.uniqueSelectors.contains$1(0, simple);
  38273. }
  38274. };
  38275. Y.paths_closure.prototype = {
  38276. call$2: function(paths, choice) {
  38277. var t1 = this.T;
  38278. t1 = J.expand$1$1$ax(choice, new Y.paths__closure(paths, t1), t1._eval$1("List<0*>*"));
  38279. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  38280. }
  38281. };
  38282. Y.paths__closure.prototype = {
  38283. call$1: function(option) {
  38284. var t1 = this.T;
  38285. return J.map$1$1$ax(this.paths, new Y.paths___closure(option, t1), t1._eval$1("List<0*>*"));
  38286. },
  38287. $signature: function() {
  38288. return this.T._eval$1("Iterable<List<0*>*>*(0*)");
  38289. }
  38290. };
  38291. Y.paths___closure.prototype = {
  38292. call$1: function(path) {
  38293. var t2,
  38294. t1 = H.setRuntimeTypeInfo([], this.T._eval$1("JSArray<0*>"));
  38295. for (t2 = J.get$iterator$ax(path); t2.moveNext$0();)
  38296. t1.push(t2.get$current(t2));
  38297. t1.push(this.option);
  38298. return t1;
  38299. }
  38300. };
  38301. Y._hasRoot_closure.prototype = {
  38302. call$1: function(simple) {
  38303. return simple instanceof D.PseudoSelector && simple.isClass && simple.normalizedName === "root";
  38304. }
  38305. };
  38306. Y.listIsSuperselector_closure.prototype = {
  38307. call$1: function(complex1) {
  38308. return C.JSArray_methods.any$1(this.list1, new Y.listIsSuperselector__closure(complex1));
  38309. }
  38310. };
  38311. Y.listIsSuperselector__closure.prototype = {
  38312. call$1: function(complex2) {
  38313. return Y.complexIsSuperselector(complex2.components, this.complex1.components);
  38314. }
  38315. };
  38316. Y._simpleIsSuperselectorOfCompound_closure.prototype = {
  38317. call$1: function(theirSimple) {
  38318. var t1 = this.simple;
  38319. if (J.$eq$(t1, theirSimple))
  38320. return true;
  38321. if (theirSimple instanceof D.PseudoSelector && theirSimple.selector != null && $._subselectorPseudos.contains$1(0, theirSimple.normalizedName))
  38322. return C.JSArray_methods.every$1(theirSimple.selector.components, new Y._simpleIsSuperselectorOfCompound__closure(t1));
  38323. else
  38324. return false;
  38325. }
  38326. };
  38327. Y._simpleIsSuperselectorOfCompound__closure.prototype = {
  38328. call$1: function(complex) {
  38329. var t1 = complex.components;
  38330. if (t1.length !== 1)
  38331. return false;
  38332. return C.JSArray_methods.contains$1(type$.legacy_CompoundSelector._as(C.JSArray_methods.get$single(t1)).components, this.simple);
  38333. }
  38334. };
  38335. Y._selectorPseudoIsSuperselector_closure.prototype = {
  38336. call$1: function(pseudo2) {
  38337. var t1 = pseudo2.selector;
  38338. return Y.listIsSuperselector(this.pseudo1.selector.components, t1.components);
  38339. }
  38340. };
  38341. Y._selectorPseudoIsSuperselector_closure0.prototype = {
  38342. call$1: function(complex1) {
  38343. var t1 = complex1.components,
  38344. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent),
  38345. t3 = this.parents;
  38346. if (t3 != null)
  38347. for (t3 = t3.get$iterator(t3); t3.moveNext$0();)
  38348. t2.push(t3.get$current(t3));
  38349. t2.push(this.compound2);
  38350. return Y.complexIsSuperselector(t1, t2);
  38351. }
  38352. };
  38353. Y._selectorPseudoIsSuperselector_closure1.prototype = {
  38354. call$1: function(pseudo2) {
  38355. var t1 = pseudo2.selector;
  38356. return Y.listIsSuperselector(this.pseudo1.selector.components, t1.components);
  38357. }
  38358. };
  38359. Y._selectorPseudoIsSuperselector_closure2.prototype = {
  38360. call$1: function(pseudo2) {
  38361. var t1 = pseudo2.selector;
  38362. return Y.listIsSuperselector(this.pseudo1.selector.components, t1.components);
  38363. }
  38364. };
  38365. Y._selectorPseudoIsSuperselector_closure3.prototype = {
  38366. call$1: function(complex) {
  38367. return C.JSArray_methods.any$1(this.compound2.components, new Y._selectorPseudoIsSuperselector__closure(complex, this.pseudo1));
  38368. }
  38369. };
  38370. Y._selectorPseudoIsSuperselector__closure.prototype = {
  38371. call$1: function(simple2) {
  38372. var compound1, _this = this;
  38373. if (simple2 instanceof F.TypeSelector) {
  38374. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  38375. return compound1 instanceof X.CompoundSelector && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure(simple2));
  38376. } else if (simple2 instanceof N.IDSelector) {
  38377. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  38378. return compound1 instanceof X.CompoundSelector && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure0(simple2));
  38379. } else if (simple2 instanceof D.PseudoSelector && simple2.name === _this.pseudo1.name && simple2.selector != null)
  38380. return Y.listIsSuperselector(simple2.selector.components, H.setRuntimeTypeInfo([_this.complex], type$.JSArray_legacy_ComplexSelector));
  38381. else
  38382. return false;
  38383. }
  38384. };
  38385. Y._selectorPseudoIsSuperselector___closure.prototype = {
  38386. call$1: function(simple1) {
  38387. var t1;
  38388. if (simple1 instanceof F.TypeSelector) {
  38389. t1 = this.simple2.name.$eq(0, simple1.name);
  38390. t1 = !t1;
  38391. } else
  38392. t1 = false;
  38393. return t1;
  38394. }
  38395. };
  38396. Y._selectorPseudoIsSuperselector___closure0.prototype = {
  38397. call$1: function(simple1) {
  38398. var t1;
  38399. if (simple1 instanceof N.IDSelector) {
  38400. t1 = simple1.name;
  38401. t1 = this.simple2.name !== t1;
  38402. } else
  38403. t1 = false;
  38404. return t1;
  38405. }
  38406. };
  38407. Y._selectorPseudoIsSuperselector_closure4.prototype = {
  38408. call$1: function(pseudo2) {
  38409. return J.$eq$(this.pseudo1.selector, pseudo2.selector);
  38410. }
  38411. };
  38412. Y._selectorPseudoIsSuperselector_closure5.prototype = {
  38413. call$1: function(pseudo2) {
  38414. var t1, t2;
  38415. if (pseudo2 instanceof D.PseudoSelector) {
  38416. t1 = this.pseudo1;
  38417. if (pseudo2.name === t1.name)
  38418. if (pseudo2.argument == t1.argument) {
  38419. t2 = pseudo2.selector;
  38420. t2 = Y.listIsSuperselector(t1.selector.components, t2.components);
  38421. t1 = t2;
  38422. } else
  38423. t1 = false;
  38424. else
  38425. t1 = false;
  38426. } else
  38427. t1 = false;
  38428. return t1;
  38429. }
  38430. };
  38431. Y._selectorPseudosNamed_closure.prototype = {
  38432. call$1: function(pseudo) {
  38433. return pseudo.isClass === this.isClass && pseudo.selector != null && pseudo.name === this.name;
  38434. }
  38435. };
  38436. A.MergedExtension.prototype = {
  38437. unmerge$0: function() {
  38438. var $async$self = this;
  38439. return P._makeSyncStarIterable(function() {
  38440. var $async$goto = 0, $async$handler = 1, $async$currentError, t1;
  38441. return function $async$unmerge$0($async$errorCode, $async$result) {
  38442. if ($async$errorCode === 1) {
  38443. $async$currentError = $async$result;
  38444. $async$goto = $async$handler;
  38445. }
  38446. while (true)
  38447. switch ($async$goto) {
  38448. case 0:
  38449. // Function start
  38450. t1 = $async$self.left;
  38451. $async$goto = t1 instanceof A.MergedExtension ? 2 : 4;
  38452. break;
  38453. case 2:
  38454. // then
  38455. $async$goto = 5;
  38456. return P._IterationMarker_yieldStar(t1.unmerge$0());
  38457. case 5:
  38458. // after yield
  38459. // goto join
  38460. $async$goto = 3;
  38461. break;
  38462. case 4:
  38463. // else
  38464. $async$goto = 6;
  38465. return t1;
  38466. case 6:
  38467. // after yield
  38468. case 3:
  38469. // join
  38470. $async$goto = 7;
  38471. return $async$self.right;
  38472. case 7:
  38473. // after yield
  38474. // implicit return
  38475. return P._IterationMarker_endOfIteration();
  38476. case 1:
  38477. // rethrow
  38478. return P._IterationMarker_uncaughtError($async$currentError);
  38479. }
  38480. };
  38481. }, type$.legacy_Extension);
  38482. }
  38483. };
  38484. L.ExtendMode.prototype = {
  38485. toString$0: function(_) {
  38486. return this.name;
  38487. }
  38488. };
  38489. Y.closure.prototype = {
  38490. call$1: function($arguments) {
  38491. var t1 = J.getInterceptor$asx($arguments);
  38492. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  38493. },
  38494. $signature: 4
  38495. };
  38496. K.closure43.prototype = {
  38497. call$1: function($arguments) {
  38498. return K._rgb("rgb", $arguments);
  38499. },
  38500. $signature: 4
  38501. };
  38502. K.closure44.prototype = {
  38503. call$1: function($arguments) {
  38504. return K._rgb("rgb", $arguments);
  38505. },
  38506. $signature: 4
  38507. };
  38508. K.closure45.prototype = {
  38509. call$1: function($arguments) {
  38510. return K._rgbTwoArg("rgb", $arguments);
  38511. },
  38512. $signature: 4
  38513. };
  38514. K.closure46.prototype = {
  38515. call$1: function($arguments) {
  38516. var parsed = K._parseChannels("rgb", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  38517. return parsed instanceof D.SassString ? parsed : K._rgb("rgb", type$.legacy_List_legacy_Value._as(parsed));
  38518. },
  38519. $signature: 4
  38520. };
  38521. K.closure47.prototype = {
  38522. call$1: function($arguments) {
  38523. return K._rgb("rgba", $arguments);
  38524. },
  38525. $signature: 4
  38526. };
  38527. K.closure48.prototype = {
  38528. call$1: function($arguments) {
  38529. return K._rgb("rgba", $arguments);
  38530. },
  38531. $signature: 4
  38532. };
  38533. K.closure49.prototype = {
  38534. call$1: function($arguments) {
  38535. return K._rgbTwoArg("rgba", $arguments);
  38536. },
  38537. $signature: 4
  38538. };
  38539. K.closure50.prototype = {
  38540. call$1: function($arguments) {
  38541. var parsed = K._parseChannels("rgba", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  38542. return parsed instanceof D.SassString ? parsed : K._rgb("rgba", type$.legacy_List_legacy_Value._as(parsed));
  38543. },
  38544. $signature: 4
  38545. };
  38546. K.closure51.prototype = {
  38547. call$1: function($arguments) {
  38548. var color, t2,
  38549. t1 = J.getInterceptor$asx($arguments),
  38550. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  38551. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  38552. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  38553. throw H.wrapException(string$.Only_oa);
  38554. return K._functionString("invert", t1.take$1($arguments, 1));
  38555. }
  38556. color = t1.$index($arguments, 0).assertColor$1("color");
  38557. t1 = color.get$red();
  38558. t2 = color.get$green();
  38559. return K._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  38560. },
  38561. $signature: 4
  38562. };
  38563. K.closure52.prototype = {
  38564. call$1: function($arguments) {
  38565. return K._hsl("hsl", $arguments);
  38566. },
  38567. $signature: 4
  38568. };
  38569. K.closure53.prototype = {
  38570. call$1: function($arguments) {
  38571. return K._hsl("hsl", $arguments);
  38572. },
  38573. $signature: 4
  38574. };
  38575. K.closure54.prototype = {
  38576. call$1: function($arguments) {
  38577. var t1 = J.getInterceptor$asx($arguments);
  38578. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  38579. return K._functionString("hsl", $arguments);
  38580. else
  38581. throw H.wrapException(E.SassScriptException$("Missing argument $lightness."));
  38582. },
  38583. $signature: 11
  38584. };
  38585. K.closure55.prototype = {
  38586. call$1: function($arguments) {
  38587. var parsed = K._parseChannels("hsl", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  38588. return parsed instanceof D.SassString ? parsed : K._hsl("hsl", type$.legacy_List_legacy_Value._as(parsed));
  38589. },
  38590. $signature: 4
  38591. };
  38592. K.closure56.prototype = {
  38593. call$1: function($arguments) {
  38594. return K._hsl("hsla", $arguments);
  38595. },
  38596. $signature: 4
  38597. };
  38598. K.closure57.prototype = {
  38599. call$1: function($arguments) {
  38600. return K._hsl("hsla", $arguments);
  38601. },
  38602. $signature: 4
  38603. };
  38604. K.closure58.prototype = {
  38605. call$1: function($arguments) {
  38606. var t1 = J.getInterceptor$asx($arguments);
  38607. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  38608. return K._functionString("hsla", $arguments);
  38609. else
  38610. throw H.wrapException(E.SassScriptException$("Missing argument $lightness."));
  38611. },
  38612. $signature: 11
  38613. };
  38614. K.closure59.prototype = {
  38615. call$1: function($arguments) {
  38616. var parsed = K._parseChannels("hsla", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  38617. return parsed instanceof D.SassString ? parsed : K._hsl("hsla", type$.legacy_List_legacy_Value._as(parsed));
  38618. },
  38619. $signature: 4
  38620. };
  38621. K.closure60.prototype = {
  38622. call$1: function($arguments) {
  38623. var t1 = J.getInterceptor$asx($arguments);
  38624. if (t1.$index($arguments, 0) instanceof T.SassNumber)
  38625. return K._functionString("grayscale", $arguments);
  38626. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  38627. },
  38628. $signature: 4
  38629. };
  38630. K.closure61.prototype = {
  38631. call$1: function($arguments) {
  38632. var t1 = J.getInterceptor$asx($arguments),
  38633. color = t1.$index($arguments, 0).assertColor$1("color"),
  38634. degrees = t1.$index($arguments, 1).assertNumber$1("degrees");
  38635. return color.changeHsl$1$hue(color.get$hue() + degrees.value);
  38636. },
  38637. $signature: 18
  38638. };
  38639. K.closure62.prototype = {
  38640. call$1: function($arguments) {
  38641. var t1 = J.getInterceptor$asx($arguments),
  38642. color = t1.$index($arguments, 0).assertColor$1("color"),
  38643. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  38644. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  38645. },
  38646. $signature: 18
  38647. };
  38648. K.closure63.prototype = {
  38649. call$1: function($arguments) {
  38650. var t1 = J.getInterceptor$asx($arguments),
  38651. color = t1.$index($arguments, 0).assertColor$1("color"),
  38652. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  38653. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  38654. },
  38655. $signature: 18
  38656. };
  38657. K.closure64.prototype = {
  38658. call$1: function($arguments) {
  38659. return new D.SassString("saturate(" + N.serializeValue0(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  38660. },
  38661. $signature: 11
  38662. };
  38663. K.closure65.prototype = {
  38664. call$1: function($arguments) {
  38665. var t1 = J.getInterceptor$asx($arguments),
  38666. color = t1.$index($arguments, 0).assertColor$1("color"),
  38667. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  38668. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  38669. },
  38670. $signature: 18
  38671. };
  38672. K.closure66.prototype = {
  38673. call$1: function($arguments) {
  38674. var t1 = J.getInterceptor$asx($arguments),
  38675. color = t1.$index($arguments, 0).assertColor$1("color"),
  38676. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  38677. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  38678. },
  38679. $signature: 18
  38680. };
  38681. K.closure67.prototype = {
  38682. call$1: function($arguments) {
  38683. var color,
  38684. argument = J.$index$asx($arguments, 0);
  38685. if (argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart()))
  38686. return K._functionString("alpha", $arguments);
  38687. color = argument.assertColor$1("color");
  38688. return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
  38689. },
  38690. $signature: 4
  38691. };
  38692. K.closure68.prototype = {
  38693. call$1: function($arguments) {
  38694. var t1,
  38695. argList = J.$index$asx($arguments, 0).get$asList();
  38696. if (argList.length !== 0 && C.JSArray_methods.every$1(argList, new K._closure10()))
  38697. return K._functionString("alpha", $arguments);
  38698. t1 = argList.length;
  38699. if (t1 === 0)
  38700. throw H.wrapException(E.SassScriptException$("Missing argument $color."));
  38701. else
  38702. throw H.wrapException(E.SassScriptException$("Only 1 argument allowed, but " + t1 + " were passed."));
  38703. },
  38704. $signature: 11
  38705. };
  38706. K._closure10.prototype = {
  38707. call$1: function(argument) {
  38708. return argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart());
  38709. }
  38710. };
  38711. K.closure69.prototype = {
  38712. call$1: function($arguments) {
  38713. var color,
  38714. t1 = J.getInterceptor$asx($arguments);
  38715. if (t1.$index($arguments, 0) instanceof T.SassNumber)
  38716. return K._functionString("opacity", $arguments);
  38717. color = t1.$index($arguments, 0).assertColor$1("color");
  38718. return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
  38719. },
  38720. $signature: 4
  38721. };
  38722. K.closure94.prototype = {
  38723. call$1: function($arguments) {
  38724. var result, color, t2,
  38725. t1 = J.getInterceptor$asx($arguments),
  38726. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  38727. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  38728. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  38729. throw H.wrapException(string$.Only_oa);
  38730. result = K._functionString("invert", t1.take$1($arguments, 1));
  38731. N.warn(string$.Passinni + result.toString$0(0), false);
  38732. return result;
  38733. }
  38734. color = t1.$index($arguments, 0).assertColor$1("color");
  38735. t1 = color.get$red();
  38736. t2 = color.get$green();
  38737. return K._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  38738. },
  38739. $signature: 4
  38740. };
  38741. K.closure95.prototype = {
  38742. call$1: function($arguments) {
  38743. var result,
  38744. t1 = J.getInterceptor$asx($arguments);
  38745. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  38746. result = K._functionString("grayscale", t1.take$1($arguments, 1));
  38747. N.warn(string$.Passinng + result.toString$0(0), false);
  38748. return result;
  38749. }
  38750. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  38751. },
  38752. $signature: 4
  38753. };
  38754. K.closure96.prototype = {
  38755. call$1: function($arguments) {
  38756. var result, color,
  38757. argument = J.$index$asx($arguments, 0);
  38758. if (argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart())) {
  38759. result = K._functionString("alpha", $arguments);
  38760. N.warn(string$.Using_ + result.toString$0(0), false);
  38761. return result;
  38762. }
  38763. color = argument.assertColor$1("color");
  38764. return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
  38765. },
  38766. $signature: 4
  38767. };
  38768. K.closure97.prototype = {
  38769. call$1: function($arguments) {
  38770. var result,
  38771. t1 = J.getInterceptor$asx($arguments);
  38772. if (C.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new K._closure12())) {
  38773. result = K._functionString("alpha", $arguments);
  38774. N.warn(string$.Using_ + result.toString$0(0), false);
  38775. return result;
  38776. }
  38777. throw H.wrapException(E.SassScriptException$("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed."));
  38778. },
  38779. $signature: 11
  38780. };
  38781. K._closure12.prototype = {
  38782. call$1: function(argument) {
  38783. return argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart());
  38784. }
  38785. };
  38786. K.closure98.prototype = {
  38787. call$1: function($arguments) {
  38788. var result, color,
  38789. t1 = J.getInterceptor$asx($arguments);
  38790. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  38791. result = K._functionString("opacity", $arguments);
  38792. N.warn(string$.Passinno + result.toString$0(0), false);
  38793. return result;
  38794. }
  38795. color = t1.$index($arguments, 0).assertColor$1("color");
  38796. return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
  38797. },
  38798. $signature: 4
  38799. };
  38800. K.closure81.prototype = {
  38801. call$1: function($arguments) {
  38802. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$red();
  38803. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  38804. },
  38805. $signature: 6
  38806. };
  38807. K.closure80.prototype = {
  38808. call$1: function($arguments) {
  38809. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$green();
  38810. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  38811. },
  38812. $signature: 6
  38813. };
  38814. K.closure79.prototype = {
  38815. call$1: function($arguments) {
  38816. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$blue();
  38817. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  38818. },
  38819. $signature: 6
  38820. };
  38821. K.closure78.prototype = {
  38822. call$1: function($arguments) {
  38823. var t1 = J.getInterceptor$asx($arguments);
  38824. return K._mixColors(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
  38825. },
  38826. $signature: 18
  38827. };
  38828. K.closure77.prototype = {
  38829. call$1: function($arguments) {
  38830. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$hue(),
  38831. t2 = H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String);
  38832. t2 = P.List_List$unmodifiable(t2, type$.legacy_String);
  38833. return new T.SassNumber(t1, t2, C.List_empty, null);
  38834. },
  38835. $signature: 6
  38836. };
  38837. K.closure76.prototype = {
  38838. call$1: function($arguments) {
  38839. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$saturation(),
  38840. t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_legacy_String);
  38841. t2 = P.List_List$unmodifiable(t2, type$.legacy_String);
  38842. return new T.SassNumber(t1, t2, C.List_empty, null);
  38843. },
  38844. $signature: 6
  38845. };
  38846. K.closure75.prototype = {
  38847. call$1: function($arguments) {
  38848. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$lightness(),
  38849. t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_legacy_String);
  38850. t2 = P.List_List$unmodifiable(t2, type$.legacy_String);
  38851. return new T.SassNumber(t1, t2, C.List_empty, null);
  38852. },
  38853. $signature: 6
  38854. };
  38855. K.closure74.prototype = {
  38856. call$1: function($arguments) {
  38857. var color = J.$index$asx($arguments, 0).assertColor$1("color");
  38858. return color.changeHsl$1$hue(color.get$hue() + 180);
  38859. },
  38860. $signature: 18
  38861. };
  38862. K.closure72.prototype = {
  38863. call$1: function($arguments) {
  38864. var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4, t5, _null = null,
  38865. t1 = J.getInterceptor$asx($arguments),
  38866. color = t1.$index($arguments, 0).assertColor$1("color"),
  38867. argumentList = type$.legacy_SassArgumentList._as(t1.$index($arguments, 1));
  38868. if (argumentList._list$_contents.length !== 0)
  38869. throw H.wrapException(E.SassScriptException$(string$.Only_op));
  38870. argumentList._wereKeywordsAccessed = true;
  38871. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.legacy_String, type$.legacy_Value);
  38872. t1 = new K.closure_getInRange0(keywords);
  38873. t2 = t1.call$3("red", -255, 255);
  38874. red = t2 == null ? _null : T.fuzzyRound(t2);
  38875. t2 = t1.call$3("green", -255, 255);
  38876. green = t2 == null ? _null : T.fuzzyRound(t2);
  38877. t2 = t1.call$3("blue", -255, 255);
  38878. blue = t2 == null ? _null : T.fuzzyRound(t2);
  38879. t2 = keywords.remove$1(0, "hue");
  38880. t2 = t2 == null ? _null : t2.assertNumber$1("hue");
  38881. hue = t2 == null ? _null : t2.value;
  38882. saturation = t1.call$3("saturation", -100, 100);
  38883. lightness = t1.call$3("lightness", -100, 100);
  38884. alpha = t1.call$3("alpha", -1, 1);
  38885. if (keywords.get$isNotEmpty(keywords))
  38886. throw H.wrapException(E.SassScriptException$("No " + B.pluralize("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence(keywords.get$keys().map$1$1(0, new K._closure9(), type$.legacy_Object), "or")) + "."));
  38887. t1 = red == null;
  38888. hasRgb = !t1 || green != null || blue != null;
  38889. t2 = hue == null;
  38890. hasHsl = !t2 || saturation != null || lightness != null;
  38891. if (hasRgb) {
  38892. if (hasHsl)
  38893. throw H.wrapException(E.SassScriptException$(string$.RGB_pa));
  38894. t2 = color.get$red();
  38895. t2 = H._asIntS(C.JSInt_methods.clamp$2(t2 + (t1 ? 0 : red), 0, 255));
  38896. t3 = color.get$green();
  38897. t1 = H._asIntS(C.JSInt_methods.clamp$2(t3 + (green == null ? 0 : green), 0, 255));
  38898. t3 = color.get$blue();
  38899. t3 = H._asIntS(C.JSInt_methods.clamp$2(t3 + (blue == null ? 0 : blue), 0, 255));
  38900. t4 = alpha == null ? 0 : alpha;
  38901. return color.changeRgb$4$alpha$blue$green$red(C.JSNumber_methods.clamp$2(color.alpha + t4, 0, 1), t3, t1, t2);
  38902. } else if (hasHsl) {
  38903. t1 = color.get$hue();
  38904. t2 = t2 ? 0 : hue;
  38905. t3 = color.get$saturation();
  38906. t3 = C.JSNumber_methods.clamp$2(t3 + (saturation == null ? 0 : saturation), 0, 100);
  38907. t4 = color.get$lightness();
  38908. t4 = C.JSNumber_methods.clamp$2(t4 + (lightness == null ? 0 : lightness), 0, 100);
  38909. t5 = alpha == null ? 0 : alpha;
  38910. return color.changeHsl$4$alpha$hue$lightness$saturation(C.JSNumber_methods.clamp$2(color.alpha + t5, 0, 1), t1 + t2, t4, t3);
  38911. } else if (alpha != null)
  38912. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + alpha, 0, 1));
  38913. else
  38914. return color;
  38915. },
  38916. $signature: 18
  38917. };
  38918. K.closure_getInRange0.prototype = {
  38919. call$3: function($name, min, max) {
  38920. var t1 = this.keywords.remove$1(0, $name);
  38921. t1 = t1 == null ? null : t1.assertNumber$1($name);
  38922. return t1 == null ? null : t1.valueInRange$3(min, max, $name);
  38923. }
  38924. };
  38925. K._closure9.prototype = {
  38926. call$1: function($name) {
  38927. return "$" + H.S($name);
  38928. }
  38929. };
  38930. K.closure71.prototype = {
  38931. call$1: function($arguments) {
  38932. var keywords, t2, red, green, blue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4,
  38933. t1 = J.getInterceptor$asx($arguments),
  38934. color = t1.$index($arguments, 0).assertColor$1("color"),
  38935. argumentList = type$.legacy_SassArgumentList._as(t1.$index($arguments, 1));
  38936. if (argumentList._list$_contents.length !== 0)
  38937. throw H.wrapException(E.SassScriptException$(string$.Only_op));
  38938. argumentList._wereKeywordsAccessed = true;
  38939. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.legacy_String, type$.legacy_Value);
  38940. t1 = new K.closure_getScale(keywords);
  38941. t2 = new K.closure_scaleValue();
  38942. red = t1.call$1("red");
  38943. green = t1.call$1("green");
  38944. blue = t1.call$1("blue");
  38945. saturation = t1.call$1("saturation");
  38946. lightness = t1.call$1("lightness");
  38947. alpha = t1.call$1("alpha");
  38948. if (keywords.get$isNotEmpty(keywords))
  38949. throw H.wrapException(E.SassScriptException$("No " + B.pluralize("argument", keywords.get$length(keywords), null) + " named " + H.S(B.toSentence(keywords.get$keys().map$1$1(0, new K._closure8(), type$.legacy_Object), "or")) + "."));
  38950. hasRgb = red != null || green != null || blue != null;
  38951. hasHsl = saturation != null || lightness != null;
  38952. if (hasRgb) {
  38953. if (hasHsl)
  38954. throw H.wrapException(E.SassScriptException$(string$.RGB_pa));
  38955. t1 = T.fuzzyRound(t2.call$3(color.get$red(), red, 255));
  38956. t3 = T.fuzzyRound(t2.call$3(color.get$green(), green, 255));
  38957. t4 = T.fuzzyRound(t2.call$3(color.get$blue(), blue, 255));
  38958. return color.changeRgb$4$alpha$blue$green$red(t2.call$3(color.alpha, alpha, 1), t4, t3, t1);
  38959. } else if (hasHsl) {
  38960. t1 = t2.call$3(color.get$saturation(), saturation, 100);
  38961. t3 = t2.call$3(color.get$lightness(), lightness, 100);
  38962. return color.changeHsl$3$alpha$lightness$saturation(t2.call$3(color.alpha, alpha, 1), t3, t1);
  38963. } else if (alpha != null)
  38964. return color.changeAlpha$1(t2.call$3(color.alpha, alpha, 1));
  38965. else
  38966. return color;
  38967. },
  38968. $signature: 18
  38969. };
  38970. K.closure_getScale.prototype = {
  38971. call$1: function($name) {
  38972. var number,
  38973. value = this.keywords.remove$1(0, $name);
  38974. if (value == null)
  38975. return null;
  38976. number = value.assertNumber$1($name);
  38977. number.assertUnit$2("%", $name);
  38978. return number.valueInRange$3(-100, 100, $name) / 100;
  38979. }
  38980. };
  38981. K.closure_scaleValue.prototype = {
  38982. call$3: function(current, scale, max) {
  38983. if (scale == null)
  38984. return current;
  38985. return current + (scale > 0 ? max - current : current) * scale;
  38986. }
  38987. };
  38988. K._closure8.prototype = {
  38989. call$1: function($name) {
  38990. return "$" + H.S($name);
  38991. }
  38992. };
  38993. K.closure70.prototype = {
  38994. call$1: function($arguments) {
  38995. var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, _null = null,
  38996. t1 = J.getInterceptor$asx($arguments),
  38997. color = t1.$index($arguments, 0).assertColor$1("color"),
  38998. argumentList = type$.legacy_SassArgumentList._as(t1.$index($arguments, 1));
  38999. if (argumentList._list$_contents.length !== 0)
  39000. throw H.wrapException(E.SassScriptException$(string$.Only_op));
  39001. argumentList._wereKeywordsAccessed = true;
  39002. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.legacy_String, type$.legacy_Value);
  39003. t1 = new K.closure_getInRange(keywords);
  39004. t2 = t1.call$3("red", 0, 255);
  39005. red = t2 == null ? _null : T.fuzzyRound(t2);
  39006. t2 = t1.call$3("green", 0, 255);
  39007. green = t2 == null ? _null : T.fuzzyRound(t2);
  39008. t2 = t1.call$3("blue", 0, 255);
  39009. blue = t2 == null ? _null : T.fuzzyRound(t2);
  39010. t2 = keywords.remove$1(0, "hue");
  39011. t2 = t2 == null ? _null : t2.assertNumber$1("hue");
  39012. hue = t2 == null ? _null : t2.value;
  39013. saturation = t1.call$3("saturation", 0, 100);
  39014. lightness = t1.call$3("lightness", 0, 100);
  39015. alpha = t1.call$3("alpha", 0, 1);
  39016. if (keywords.get$isNotEmpty(keywords))
  39017. throw H.wrapException(E.SassScriptException$("No " + B.pluralize("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence(keywords.get$keys().map$1$1(0, new K._closure7(), type$.legacy_Object), "or")) + "."));
  39018. hasRgb = red != null || green != null || blue != null;
  39019. hasHsl = hue != null || saturation != null || lightness != null;
  39020. if (hasRgb) {
  39021. if (hasHsl)
  39022. throw H.wrapException(E.SassScriptException$(string$.RGB_pa));
  39023. return color.changeRgb$4$alpha$blue$green$red(alpha, blue, green, red);
  39024. } else if (hasHsl)
  39025. return color.changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation);
  39026. else if (alpha != null)
  39027. return color.changeAlpha$1(alpha);
  39028. else
  39029. return color;
  39030. },
  39031. $signature: 18
  39032. };
  39033. K.closure_getInRange.prototype = {
  39034. call$3: function($name, min, max) {
  39035. var t1 = this.keywords.remove$1(0, $name);
  39036. t1 = t1 == null ? null : t1.assertNumber$1($name);
  39037. return t1 == null ? null : t1.valueInRange$3(min, max, $name);
  39038. }
  39039. };
  39040. K._closure7.prototype = {
  39041. call$1: function($name) {
  39042. return "$" + H.S($name);
  39043. }
  39044. };
  39045. K.closure73.prototype = {
  39046. call$1: function($arguments) {
  39047. var color = J.$index$asx($arguments, 0).assertColor$1("color"),
  39048. t1 = new K.closure_hexString();
  39049. return new D.SassString("#" + H.S(t1.call$1(T.fuzzyRound(color.alpha * 255))) + H.S(t1.call$1(color.get$red())) + H.S(t1.call$1(color.get$green())) + H.S(t1.call$1(color.get$blue())), false);
  39050. },
  39051. $signature: 11
  39052. };
  39053. K.closure_hexString.prototype = {
  39054. call$1: function(component) {
  39055. return C.JSString_methods.padLeft$2(J.toRadixString$1$n(component, 16), 2, "0").toUpperCase();
  39056. },
  39057. $signature: 55
  39058. };
  39059. K._functionString_closure.prototype = {
  39060. call$1: function(argument) {
  39061. argument.toString;
  39062. return N.serializeValue0(argument, false, true);
  39063. }
  39064. };
  39065. K._removedColorFunction_closure.prototype = {
  39066. call$1: function($arguments) {
  39067. var t1 = this.name,
  39068. t2 = J.getInterceptor$asx($arguments),
  39069. t3 = "The function " + t1 + string$.x28__isn + H.S(t2.$index($arguments, 0)) + ", $" + this.argument + ": ";
  39070. throw H.wrapException(E.SassScriptException$(t3 + (this.negative ? "-" : "") + H.S(t2.$index($arguments, 1)) + string$.x29__Mor + t1));
  39071. },
  39072. $signature: 47
  39073. };
  39074. K._parseChannels_closure.prototype = {
  39075. call$1: function(value) {
  39076. return value.get$isVar();
  39077. }
  39078. };
  39079. D.closure42.prototype = {
  39080. call$1: function($arguments) {
  39081. var t1 = J.$index$asx($arguments, 0).get$asList().length;
  39082. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39083. },
  39084. $signature: 6
  39085. };
  39086. D.closure41.prototype = {
  39087. call$1: function($arguments) {
  39088. var t1 = J.getInterceptor$asx($arguments),
  39089. list = t1.$index($arguments, 0),
  39090. index = t1.$index($arguments, 1);
  39091. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  39092. },
  39093. $signature: 4
  39094. };
  39095. D.closure40.prototype = {
  39096. call$1: function($arguments) {
  39097. var t1 = J.getInterceptor$asx($arguments),
  39098. list = t1.$index($arguments, 0),
  39099. index = t1.$index($arguments, 1),
  39100. value = t1.$index($arguments, 2),
  39101. t2 = list.get$asList(),
  39102. newList = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2));
  39103. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  39104. return t1.$index($arguments, 0).changeListContents$1(newList);
  39105. },
  39106. $signature: 19
  39107. };
  39108. D.closure39.prototype = {
  39109. call$1: function($arguments) {
  39110. var separator, bracketed, t2, t3, _i,
  39111. t1 = J.getInterceptor$asx($arguments),
  39112. list1 = t1.$index($arguments, 0),
  39113. list2 = t1.$index($arguments, 1),
  39114. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  39115. bracketedParam = t1.$index($arguments, 3);
  39116. t1 = separatorParam.text;
  39117. if (t1 === "auto")
  39118. if (list1.get$separator() !== C.ListSeparator_undecided)
  39119. separator = list1.get$separator();
  39120. else
  39121. separator = list2.get$separator() !== C.ListSeparator_undecided ? list2.get$separator() : C.ListSeparator_space;
  39122. else if (t1 === "space")
  39123. separator = C.ListSeparator_space;
  39124. else {
  39125. if (t1 !== "comma")
  39126. throw H.wrapException(E.SassScriptException$(string$.x24separ));
  39127. separator = C.ListSeparator_comma;
  39128. }
  39129. bracketed = bracketedParam instanceof D.SassString && bracketedParam.text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  39130. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  39131. for (t2 = list1.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  39132. t1.push(t2[_i]);
  39133. for (t2 = list2.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  39134. t1.push(t2[_i]);
  39135. return D.SassList$(t1, separator, bracketed);
  39136. },
  39137. $signature: 19
  39138. };
  39139. D.closure38.prototype = {
  39140. call$1: function($arguments) {
  39141. var separator, t2, t3, _i,
  39142. t1 = J.getInterceptor$asx($arguments),
  39143. list = t1.$index($arguments, 0),
  39144. value = t1.$index($arguments, 1);
  39145. t1 = t1.$index($arguments, 2).assertString$1("separator").text;
  39146. if (t1 === "auto")
  39147. separator = list.get$separator() === C.ListSeparator_undecided ? C.ListSeparator_space : list.get$separator();
  39148. else if (t1 === "space")
  39149. separator = C.ListSeparator_space;
  39150. else {
  39151. if (t1 !== "comma")
  39152. throw H.wrapException(E.SassScriptException$(string$.x24separ));
  39153. separator = C.ListSeparator_comma;
  39154. }
  39155. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  39156. for (t2 = list.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  39157. t1.push(t2[_i]);
  39158. t1.push(value);
  39159. return list.changeListContents$2$separator(t1, separator);
  39160. },
  39161. $signature: 19
  39162. };
  39163. D.closure37.prototype = {
  39164. call$1: function($arguments) {
  39165. var results, result, _box_0 = {},
  39166. t1 = J.$index$asx($arguments, 0).get$asList(),
  39167. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value*>*>"),
  39168. lists = P.List_List$from(new H.MappedListIterable(t1, new D._closure4(), t2), true, t2._eval$1("ListIterable.E"));
  39169. if (lists.length === 0)
  39170. return C.SassList_lmy;
  39171. _box_0.i = 0;
  39172. results = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SassList);
  39173. for (t1 = H._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value*>"), t2 = type$.legacy_Value; C.JSArray_methods.every$1(lists, new D._closure5(_box_0));) {
  39174. result = P.List_List$from(new H.MappedListIterable(lists, new D._closure6(_box_0), t1), false, t2);
  39175. result.fixed$length = Array;
  39176. result.immutable$list = Array;
  39177. results.push(new D.SassList(result, C.ListSeparator_space, false));
  39178. ++_box_0.i;
  39179. }
  39180. return D.SassList$(results, C.ListSeparator_comma, false);
  39181. },
  39182. $signature: 19
  39183. };
  39184. D._closure4.prototype = {
  39185. call$1: function(list) {
  39186. return list.get$asList();
  39187. }
  39188. };
  39189. D._closure5.prototype = {
  39190. call$1: function(list) {
  39191. return this._box_0.i !== J.get$length$asx(list);
  39192. }
  39193. };
  39194. D._closure6.prototype = {
  39195. call$1: function(list) {
  39196. return J.$index$asx(list, this._box_0.i);
  39197. },
  39198. $signature: 4
  39199. };
  39200. D.closure36.prototype = {
  39201. call$1: function($arguments) {
  39202. var t1 = J.getInterceptor$asx($arguments),
  39203. index = C.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  39204. if (index === -1)
  39205. t1 = C.C_SassNull0;
  39206. else
  39207. t1 = new T.SassNumber(index + 1, C.List_empty, C.List_empty, null);
  39208. return t1;
  39209. },
  39210. $signature: 4
  39211. };
  39212. D.closure34.prototype = {
  39213. call$1: function($arguments) {
  39214. return J.$index$asx($arguments, 0).get$separator() === C.ListSeparator_comma ? new D.SassString("comma", false) : new D.SassString("space", false);
  39215. },
  39216. $signature: 11
  39217. };
  39218. D.closure35.prototype = {
  39219. call$1: function($arguments) {
  39220. return J.$index$asx($arguments, 0).get$hasBrackets() ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39221. },
  39222. $signature: 13
  39223. };
  39224. A.closure33.prototype = {
  39225. call$1: function($arguments) {
  39226. var t1 = J.getInterceptor$asx($arguments);
  39227. t1 = t1.$index($arguments, 0).assertMap$1("map").contents.$index(0, t1.$index($arguments, 1));
  39228. return t1 == null ? C.C_SassNull0 : t1;
  39229. },
  39230. $signature: 4
  39231. };
  39232. A.closure32.prototype = {
  39233. call$1: function($arguments) {
  39234. var t2, t3, t4,
  39235. t1 = J.getInterceptor$asx($arguments),
  39236. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  39237. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  39238. t1 = type$.legacy_Value;
  39239. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  39240. for (t3 = map1.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  39241. t4 = t3.get$current(t3);
  39242. t2.$indexSet(0, t4.key, t4.value);
  39243. }
  39244. for (t3 = map2.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  39245. t4 = t3.get$current(t3);
  39246. t2.$indexSet(0, t4.key, t4.value);
  39247. }
  39248. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  39249. },
  39250. $signature: 29
  39251. };
  39252. A.closure30.prototype = {
  39253. call$1: function($arguments) {
  39254. return J.$index$asx($arguments, 0).assertMap$1("map");
  39255. },
  39256. $signature: 29
  39257. };
  39258. A.closure31.prototype = {
  39259. call$1: function($arguments) {
  39260. var t3, _i, mutableMap,
  39261. t1 = J.getInterceptor$asx($arguments),
  39262. map = t1.$index($arguments, 0).assertMap$1("map"),
  39263. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  39264. t2.push(t1.$index($arguments, 1));
  39265. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  39266. t2.push(t1[_i]);
  39267. t1 = type$.legacy_Value;
  39268. mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1);
  39269. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  39270. mutableMap.remove$1(0, t2[_i]);
  39271. return new A.SassMap(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  39272. },
  39273. $signature: 29
  39274. };
  39275. A.closure29.prototype = {
  39276. call$1: function($arguments) {
  39277. return D.SassList$(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$keys(), C.ListSeparator_comma, false);
  39278. },
  39279. $signature: 19
  39280. };
  39281. A.closure28.prototype = {
  39282. call$1: function($arguments) {
  39283. return D.SassList$(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$values(), C.ListSeparator_comma, false);
  39284. },
  39285. $signature: 19
  39286. };
  39287. A.closure27.prototype = {
  39288. call$1: function($arguments) {
  39289. var t1 = J.getInterceptor$asx($arguments);
  39290. return t1.$index($arguments, 0).assertMap$1("map").contents.containsKey$1(t1.$index($arguments, 1)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39291. },
  39292. $signature: 13
  39293. };
  39294. K.closure25.prototype = {
  39295. call$1: function(value) {
  39296. return J.ceil$0$n(value);
  39297. },
  39298. $signature: 34
  39299. };
  39300. K.closure89.prototype = {
  39301. call$1: function($arguments) {
  39302. var t2, t3, arg2, arg2Name, unit1, unit2,
  39303. _s11_ = "is unitless",
  39304. t1 = J.getInterceptor$asx($arguments),
  39305. min = t1.$index($arguments, 0).assertNumber$1("min"),
  39306. number = t1.$index($arguments, 1).assertNumber$1("number"),
  39307. max = t1.$index($arguments, 2).assertNumber$1("max");
  39308. t1 = min.numeratorUnits.length === 0;
  39309. t2 = !t1 || min.denominatorUnits.length !== 0;
  39310. t3 = number.numeratorUnits.length === 0;
  39311. if (t2 === (!t3 || number.denominatorUnits.length !== 0)) {
  39312. t2 = !t3 || number.denominatorUnits.length !== 0;
  39313. t2 = t2 === (max.numeratorUnits.length !== 0 || max.denominatorUnits.length !== 0);
  39314. } else
  39315. t2 = false;
  39316. if (t2) {
  39317. if (min.greaterThanOrEquals$1(max).value)
  39318. return min;
  39319. if (min.greaterThanOrEquals$1(number).value)
  39320. return min;
  39321. if (number.greaterThanOrEquals$1(max).value)
  39322. return max;
  39323. return number;
  39324. }
  39325. t2 = !t1 || min.denominatorUnits.length !== 0;
  39326. arg2 = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? number : max;
  39327. t2 = !t1 || min.denominatorUnits.length !== 0;
  39328. arg2Name = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? "$number" : "$max";
  39329. unit1 = !t1 || min.denominatorUnits.length !== 0 ? "has unit " + min.get$unitString() : _s11_;
  39330. unit2 = arg2.numeratorUnits.length !== 0 || arg2.denominatorUnits.length !== 0 ? "has unit " + arg2.get$unitString() : _s11_;
  39331. throw H.wrapException(E.SassScriptException$("$min " + unit1 + " but " + arg2Name + " " + unit2 + string$.x2ex20Argu));
  39332. },
  39333. $signature: 6
  39334. };
  39335. K.closure24.prototype = {
  39336. call$1: function(value) {
  39337. return J.floor$0$n(value);
  39338. },
  39339. $signature: 34
  39340. };
  39341. K.closure23.prototype = {
  39342. call$1: function($arguments) {
  39343. var t1, t2, max, _i, number;
  39344. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  39345. number = t1[_i].assertNumber$0();
  39346. if (max == null || max.lessThan$1(number).value)
  39347. max = number;
  39348. }
  39349. if (max != null)
  39350. return max;
  39351. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  39352. },
  39353. $signature: 6
  39354. };
  39355. K.closure22.prototype = {
  39356. call$1: function($arguments) {
  39357. var t1, t2, min, _i, number;
  39358. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  39359. number = t1[_i].assertNumber$0();
  39360. if (min == null || min.greaterThan$1(number).value)
  39361. min = number;
  39362. }
  39363. if (min != null)
  39364. return min;
  39365. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  39366. },
  39367. $signature: 6
  39368. };
  39369. K.closure26.prototype = {
  39370. call$1: function(value) {
  39371. return Math.abs(value);
  39372. },
  39373. $signature: 94
  39374. };
  39375. K.closure87.prototype = {
  39376. call$1: function($arguments) {
  39377. var numeratorUnits, denominatorUnits, subtotal, i, number, t3, t4, t5, t6, t7, result, unit1, unit2,
  39378. _s11_ = "is unitless",
  39379. t1 = J.$index$asx($arguments, 0).get$asList(),
  39380. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber*>"),
  39381. numbers = P.List_List$from(new H.MappedListIterable(t1, new K._closure11(), t2), true, t2._eval$1("ListIterable.E"));
  39382. if (numbers.length === 0)
  39383. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  39384. t1 = numbers[0];
  39385. numeratorUnits = t1.numeratorUnits;
  39386. denominatorUnits = t1.denominatorUnits;
  39387. for (t1 = type$.legacy_String, subtotal = 0, i = 0; i < numbers.length; ++i) {
  39388. number = numbers[i];
  39389. t2 = number.numeratorUnits;
  39390. t3 = t2.length === 0;
  39391. t4 = !t3 || number.denominatorUnits.length !== 0;
  39392. t5 = numbers[0];
  39393. t6 = t5.numeratorUnits;
  39394. t7 = t6.length === 0;
  39395. if (t4 === (!t7 || t5.denominatorUnits.length !== 0)) {
  39396. t2 = number.valueInUnits$2(numeratorUnits, denominatorUnits);
  39397. result = P.List_List$from(numeratorUnits, false, t1);
  39398. result.fixed$length = Array;
  39399. result.immutable$list = Array;
  39400. result = P.List_List$from(denominatorUnits, false, t1);
  39401. result.fixed$length = Array;
  39402. result.immutable$list = Array;
  39403. H.checkNum(t2);
  39404. subtotal += Math.pow(t2, 2);
  39405. } else {
  39406. if (!t7 || t5.denominatorUnits.length !== 0)
  39407. unit1 = "has unit " + (!t7 || t5.denominatorUnits.length !== 0 ? t5._unitString$2(t6, t5.denominatorUnits) : "");
  39408. else
  39409. unit1 = _s11_;
  39410. if (!t3 || number.denominatorUnits.length !== 0)
  39411. unit2 = "has unit " + (!t3 || number.denominatorUnits.length !== 0 ? number._unitString$2(t2, number.denominatorUnits) : "");
  39412. else
  39413. unit2 = _s11_;
  39414. throw H.wrapException(E.SassScriptException$("Argument 1 " + unit1 + " but argument " + (i + 1) + " " + unit2 + string$.x2ex20Argu));
  39415. }
  39416. }
  39417. return T.SassNumber$withUnits(Math.sqrt(subtotal), denominatorUnits, numeratorUnits);
  39418. },
  39419. $signature: 6
  39420. };
  39421. K._closure11.prototype = {
  39422. call$1: function(argument) {
  39423. return argument.assertNumber$0();
  39424. }
  39425. };
  39426. K.closure86.prototype = {
  39427. call$1: function($arguments) {
  39428. var numberValue, base, baseValue, t2,
  39429. _s18_ = " to have no units.",
  39430. t1 = J.getInterceptor$asx($arguments),
  39431. number = t1.$index($arguments, 0).assertNumber$1("number");
  39432. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39433. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + _s18_));
  39434. numberValue = K._fuzzyRoundIfZero(number.value);
  39435. if (J.$eq$(t1.$index($arguments, 1), C.C_SassNull0)) {
  39436. t1 = Math.log(H.checkNum(numberValue));
  39437. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39438. }
  39439. base = t1.$index($arguments, 1).assertNumber$1("base");
  39440. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  39441. throw H.wrapException(E.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_));
  39442. t1 = base.value;
  39443. baseValue = Math.abs(t1 - 1) < $.$get$epsilon() ? T.fuzzyRound(t1) : K._fuzzyRoundIfZero(t1);
  39444. t1 = Math.log(H.checkNum(numberValue));
  39445. t2 = Math.log(H.checkNum(baseValue));
  39446. return new T.SassNumber(t1 / t2, C.List_empty, C.List_empty, null);
  39447. },
  39448. $signature: 6
  39449. };
  39450. K.closure85.prototype = {
  39451. call$1: function($arguments) {
  39452. var baseValue, exponentValue, t2, _null = null,
  39453. _s18_ = " to have no units.",
  39454. t1 = J.getInterceptor$asx($arguments),
  39455. base = t1.$index($arguments, 0).assertNumber$1("base"),
  39456. exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
  39457. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  39458. throw H.wrapException(E.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_));
  39459. else if (exponent.numeratorUnits.length !== 0 || exponent.denominatorUnits.length !== 0)
  39460. throw H.wrapException(E.SassScriptException$("$exponent: Expected " + exponent.toString$0(0) + _s18_));
  39461. baseValue = K._fuzzyRoundIfZero(base.value);
  39462. exponentValue = K._fuzzyRoundIfZero(exponent.value);
  39463. t1 = $.$get$epsilon();
  39464. if (Math.abs(Math.abs(baseValue) - 1) < t1) {
  39465. exponentValue.toString;
  39466. t2 = exponentValue == 1 / 0 || exponentValue == -1 / 0;
  39467. } else
  39468. t2 = false;
  39469. if (t2)
  39470. return new T.SassNumber(0 / 0, C.List_empty, C.List_empty, _null);
  39471. else if (Math.abs(baseValue - 0) < t1) {
  39472. exponentValue.toString;
  39473. if (isFinite(exponentValue))
  39474. if (T.fuzzyIsInt(exponentValue))
  39475. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  39476. else
  39477. t1 = false;
  39478. else
  39479. t1 = false;
  39480. if (t1)
  39481. exponentValue = T.fuzzyRound(exponentValue);
  39482. } else {
  39483. if (isFinite(baseValue))
  39484. if (baseValue < 0 && true) {
  39485. exponentValue.toString;
  39486. t1 = isFinite(exponentValue) && T.fuzzyIsInt(exponentValue);
  39487. } else
  39488. t1 = false;
  39489. else
  39490. t1 = false;
  39491. if (t1)
  39492. exponentValue = T.fuzzyRound(exponentValue);
  39493. else {
  39494. if (baseValue == 1 / 0 || baseValue == -1 / 0)
  39495. if (baseValue < 0 && true) {
  39496. exponentValue.toString;
  39497. if (isFinite(exponentValue))
  39498. if (T.fuzzyIsInt(exponentValue))
  39499. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  39500. else
  39501. t1 = false;
  39502. else
  39503. t1 = false;
  39504. } else
  39505. t1 = false;
  39506. else
  39507. t1 = false;
  39508. if (t1)
  39509. exponentValue = T.fuzzyRound(exponentValue);
  39510. }
  39511. }
  39512. H.checkNum(exponentValue);
  39513. t1 = Math.pow(baseValue, exponentValue);
  39514. return new T.SassNumber(t1, C.List_empty, C.List_empty, _null);
  39515. },
  39516. $signature: 6
  39517. };
  39518. K.closure83.prototype = {
  39519. call$1: function($arguments) {
  39520. var t1,
  39521. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39522. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39523. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  39524. t1 = Math.sqrt(H.checkNum(K._fuzzyRoundIfZero(number.value)));
  39525. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39526. },
  39527. $signature: 6
  39528. };
  39529. K.closure93.prototype = {
  39530. call$1: function($arguments) {
  39531. var numberValue,
  39532. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39533. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39534. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  39535. numberValue = number.value;
  39536. if (Math.abs(Math.abs(numberValue) - 1) < $.$get$epsilon())
  39537. numberValue = T.fuzzyRound(numberValue);
  39538. return T.SassNumber$withUnits(Math.acos(numberValue) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  39539. },
  39540. $signature: 6
  39541. };
  39542. K.closure92.prototype = {
  39543. call$1: function($arguments) {
  39544. var t1,
  39545. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39546. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39547. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  39548. t1 = number.value;
  39549. return T.SassNumber$withUnits(Math.asin(H.checkNum(Math.abs(Math.abs(t1) - 1) < $.$get$epsilon() ? T.fuzzyRound(t1) : K._fuzzyRoundIfZero(t1))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  39550. },
  39551. $signature: 6
  39552. };
  39553. K.closure91.prototype = {
  39554. call$1: function($arguments) {
  39555. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39556. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  39557. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  39558. return T.SassNumber$withUnits(Math.atan(H.checkNum(K._fuzzyRoundIfZero(number.value))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  39559. },
  39560. $signature: 6
  39561. };
  39562. K.closure90.prototype = {
  39563. call$1: function($arguments) {
  39564. var t2, t3, t4, unit1, unit2, xValue,
  39565. _s11_ = "is unitless",
  39566. t1 = J.getInterceptor$asx($arguments),
  39567. y = t1.$index($arguments, 0).assertNumber$1("y"),
  39568. x = t1.$index($arguments, 1).assertNumber$1("x");
  39569. t1 = y.numeratorUnits;
  39570. t2 = t1.length === 0;
  39571. t3 = !t2 || y.denominatorUnits.length !== 0;
  39572. t4 = x.numeratorUnits.length === 0;
  39573. if (t3 !== (!t4 || x.denominatorUnits.length !== 0)) {
  39574. unit1 = !t2 || y.denominatorUnits.length !== 0 ? "has unit " + y.get$unitString() : _s11_;
  39575. unit2 = !t4 || x.denominatorUnits.length !== 0 ? "has unit " + x.get$unitString() : _s11_;
  39576. throw H.wrapException(E.SassScriptException$("$y " + unit1 + " but $x " + unit2 + string$.x2ex20Argu));
  39577. }
  39578. t2 = y.denominatorUnits;
  39579. xValue = K._fuzzyRoundIfZero(T.SassNumber$withUnits(x.valueInUnits$2(t1, t2), t2, t1).value);
  39580. return T.SassNumber$withUnits(Math.atan2(H.checkNum(K._fuzzyRoundIfZero(y.value)), H.checkNum(xValue)) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  39581. },
  39582. $signature: 6
  39583. };
  39584. K.closure88.prototype = {
  39585. call$1: function($arguments) {
  39586. var t1 = Math.cos(H.checkNum(K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value));
  39587. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39588. },
  39589. $signature: 6
  39590. };
  39591. K.closure84.prototype = {
  39592. call$1: function($arguments) {
  39593. var t1 = Math.sin(H.checkNum(K._fuzzyRoundIfZero(K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value)));
  39594. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39595. },
  39596. $signature: 6
  39597. };
  39598. K.closure82.prototype = {
  39599. call$1: function($arguments) {
  39600. var t1 = K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value,
  39601. t2 = C.JSNumber_methods.$mod(t1 - 1.5707963267948966, 6.283185307179586),
  39602. t3 = $.$get$epsilon();
  39603. if (Math.abs(t2 - 0) < t3)
  39604. return new T.SassNumber(1 / 0, C.List_empty, C.List_empty, null);
  39605. else if (Math.abs(C.JSNumber_methods.$mod(t1 + 1.5707963267948966, 6.283185307179586) - 0) < t3)
  39606. return new T.SassNumber(-1 / 0, C.List_empty, C.List_empty, null);
  39607. else {
  39608. t1 = Math.tan(H.checkNum(K._fuzzyRoundIfZero(t1)));
  39609. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39610. }
  39611. },
  39612. $signature: 6
  39613. };
  39614. K.closure18.prototype = {
  39615. call$1: function($arguments) {
  39616. var t1 = J.getInterceptor$asx($arguments);
  39617. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39618. },
  39619. $signature: 13
  39620. };
  39621. K.closure17.prototype = {
  39622. call$1: function($arguments) {
  39623. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39624. return !(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39625. },
  39626. $signature: 13
  39627. };
  39628. K.closure19.prototype = {
  39629. call$1: function($arguments) {
  39630. return new D.SassString(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  39631. },
  39632. $signature: 11
  39633. };
  39634. K.closure21.prototype = {
  39635. call$1: function($arguments) {
  39636. var t1,
  39637. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39638. number.assertNoUnits$1("number");
  39639. t1 = H.setRuntimeTypeInfo(["%"], type$.JSArray_legacy_String);
  39640. t1 = P.List_List$unmodifiable(t1, type$.legacy_String);
  39641. return new T.SassNumber(number.value * 100, t1, C.List_empty, null);
  39642. },
  39643. $signature: 6
  39644. };
  39645. K.closure20.prototype = {
  39646. call$1: function($arguments) {
  39647. var limit,
  39648. t1 = J.getInterceptor$asx($arguments);
  39649. if (J.$eq$(t1.$index($arguments, 0), C.C_SassNull0)) {
  39650. t1 = $.$get$_random0().nextDouble$0();
  39651. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39652. }
  39653. limit = t1.$index($arguments, 0).assertNumber$1("limit").assertInt$1("limit");
  39654. if (limit < 1)
  39655. throw H.wrapException(E.SassScriptException$("$limit: Must be greater than 0, was " + limit + "."));
  39656. t1 = $.$get$_random0().nextInt$1(limit);
  39657. return new T.SassNumber(t1 + 1, C.List_empty, C.List_empty, null);
  39658. },
  39659. $signature: 6
  39660. };
  39661. K._numberFunction_closure.prototype = {
  39662. call$1: function($arguments) {
  39663. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  39664. return T.SassNumber$withUnits(this.transform.call$1(number.value), number.denominatorUnits, number.numeratorUnits);
  39665. },
  39666. $signature: 6
  39667. };
  39668. Q.closure99.prototype = {
  39669. call$1: function($arguments) {
  39670. return $._features.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature").text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39671. },
  39672. $signature: 13
  39673. };
  39674. Q.closure100.prototype = {
  39675. call$1: function($arguments) {
  39676. return new D.SassString(J.toString$0$(J.get$first$ax($arguments)), false);
  39677. },
  39678. $signature: 11
  39679. };
  39680. Q.closure101.prototype = {
  39681. call$1: function($arguments) {
  39682. var value = J.$index$asx($arguments, 0);
  39683. if (value instanceof D.SassArgumentList)
  39684. return new D.SassString("arglist", false);
  39685. if (value instanceof Z.SassBoolean)
  39686. return new D.SassString("bool", false);
  39687. if (value instanceof K.SassColor)
  39688. return new D.SassString("color", false);
  39689. if (value instanceof D.SassList)
  39690. return new D.SassString("list", false);
  39691. if (value instanceof A.SassMap)
  39692. return new D.SassString("map", false);
  39693. if (value instanceof O.SassNull)
  39694. return new D.SassString("null", false);
  39695. if (value instanceof T.SassNumber)
  39696. return new D.SassString("number", false);
  39697. if (value instanceof F.SassFunction)
  39698. return new D.SassString("function", false);
  39699. return new D.SassString("string", false);
  39700. },
  39701. $signature: 11
  39702. };
  39703. Q.closure102.prototype = {
  39704. call$1: function($arguments) {
  39705. var t1, t2, t3, t4,
  39706. argumentList = J.$index$asx($arguments, 0);
  39707. if (argumentList instanceof D.SassArgumentList) {
  39708. t1 = type$.legacy_Value;
  39709. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  39710. for (argumentList._wereKeywordsAccessed = true, t3 = argumentList._keywords.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  39711. t4 = t3.get$current(t3);
  39712. t2.$indexSet(0, new D.SassString(t4.key, false), t4.value);
  39713. }
  39714. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  39715. } else
  39716. throw H.wrapException("$args: " + H.S(argumentList) + " is not an argument list.");
  39717. },
  39718. $signature: 29
  39719. };
  39720. T.closure13.prototype = {
  39721. call$1: function($arguments) {
  39722. var t1 = {},
  39723. selectors = J.$index$asx($arguments, 0).get$asList();
  39724. if (selectors.length === 0)
  39725. throw H.wrapException(E.SassScriptException$(string$.x24selec));
  39726. t1.first = true;
  39727. return new H.MappedListIterable(selectors, new T._closure1(t1), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList*>")).reduce$1(0, new T._closure2()).get$asSassList();
  39728. },
  39729. $signature: 19
  39730. };
  39731. T._closure1.prototype = {
  39732. call$1: function(selector) {
  39733. var t1 = this._box_0,
  39734. result = selector.assertSelector$1$allowParent(!t1.first);
  39735. t1.first = false;
  39736. return result;
  39737. }
  39738. };
  39739. T._closure2.prototype = {
  39740. call$2: function($parent, child) {
  39741. return child.resolveParentSelectors$1($parent);
  39742. }
  39743. };
  39744. T.closure12.prototype = {
  39745. call$1: function($arguments) {
  39746. var selectors = J.$index$asx($arguments, 0).get$asList();
  39747. if (selectors.length === 0)
  39748. throw H.wrapException(E.SassScriptException$(string$.x24selec));
  39749. return new H.MappedListIterable(selectors, new T._closure(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList*>")).reduce$1(0, new T._closure0()).get$asSassList();
  39750. },
  39751. $signature: 19
  39752. };
  39753. T._closure.prototype = {
  39754. call$1: function(selector) {
  39755. return selector.assertSelector$0();
  39756. }
  39757. };
  39758. T._closure0.prototype = {
  39759. call$2: function($parent, child) {
  39760. var t1 = child.components;
  39761. return D.SelectorList$(new H.MappedListIterable(t1, new T.__closure($parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector*>"))).resolveParentSelectors$1($parent);
  39762. }
  39763. };
  39764. T.__closure.prototype = {
  39765. call$1: function(complex) {
  39766. var newCompound, t2, cur,
  39767. t1 = complex.components,
  39768. compound = C.JSArray_methods.get$first(t1);
  39769. if (compound instanceof X.CompoundSelector) {
  39770. newCompound = T._prependParent(compound);
  39771. if (newCompound == null)
  39772. throw H.wrapException(E.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  39773. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent);
  39774. t2.push(newCompound);
  39775. for (t1 = H.SubListIterable$(t1, 1, null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  39776. cur = t1.__internal$_current;
  39777. t2.push(cur);
  39778. }
  39779. return S.ComplexSelector$(t2, false);
  39780. } else
  39781. throw H.wrapException(E.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  39782. }
  39783. };
  39784. T.closure11.prototype = {
  39785. call$1: function($arguments) {
  39786. var t1 = J.getInterceptor$asx($arguments),
  39787. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  39788. target = t1.$index($arguments, 1).assertSelector$1$name("extendee");
  39789. return F.Extender__extendOrReplace(selector, t1.$index($arguments, 2).assertSelector$1$name("extender"), target, C.ExtendMode_allTargets).get$asSassList();
  39790. },
  39791. $signature: 19
  39792. };
  39793. T.closure10.prototype = {
  39794. call$1: function($arguments) {
  39795. var t1 = J.getInterceptor$asx($arguments),
  39796. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  39797. target = t1.$index($arguments, 1).assertSelector$1$name("original");
  39798. return F.Extender__extendOrReplace(selector, t1.$index($arguments, 2).assertSelector$1$name("replacement"), target, C.ExtendMode_replace).get$asSassList();
  39799. },
  39800. $signature: 19
  39801. };
  39802. T.closure9.prototype = {
  39803. call$1: function($arguments) {
  39804. var t1 = J.getInterceptor$asx($arguments),
  39805. result = t1.$index($arguments, 0).assertSelector$1$name("selector1").unify$1(t1.$index($arguments, 1).assertSelector$1$name("selector2"));
  39806. return result == null ? C.C_SassNull0 : result.get$asSassList();
  39807. },
  39808. $signature: 4
  39809. };
  39810. T.closure16.prototype = {
  39811. call$1: function($arguments) {
  39812. var t1 = J.getInterceptor$asx($arguments),
  39813. selector1 = t1.$index($arguments, 0).assertSelector$1$name("super"),
  39814. selector2 = t1.$index($arguments, 1).assertSelector$1$name("sub");
  39815. return Y.listIsSuperselector(selector1.components, selector2.components) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  39816. },
  39817. $signature: 13
  39818. };
  39819. T.closure15.prototype = {
  39820. call$1: function($arguments) {
  39821. var t1 = J.$index$asx($arguments, 0).assertCompoundSelector$1$name("selector").components;
  39822. return D.SassList$(new H.MappedListIterable(t1, new T._closure3(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value*>")), C.ListSeparator_comma, false);
  39823. },
  39824. $signature: 19
  39825. };
  39826. T._closure3.prototype = {
  39827. call$1: function(simple) {
  39828. return new D.SassString(J.toString$0$(simple), false);
  39829. }
  39830. };
  39831. T.closure14.prototype = {
  39832. call$1: function($arguments) {
  39833. return J.$index$asx($arguments, 0).assertSelector$1$name("selector").get$asSassList();
  39834. },
  39835. $signature: 19
  39836. };
  39837. D.closure8.prototype = {
  39838. call$1: function($arguments) {
  39839. var string = J.$index$asx($arguments, 0).assertString$1("string");
  39840. if (!string.hasQuotes)
  39841. return string;
  39842. return new D.SassString(string.text, false);
  39843. },
  39844. $signature: 11
  39845. };
  39846. D.closure7.prototype = {
  39847. call$1: function($arguments) {
  39848. var string = J.$index$asx($arguments, 0).assertString$1("string");
  39849. if (string.hasQuotes)
  39850. return string;
  39851. return new D.SassString(string.text, true);
  39852. },
  39853. $signature: 11
  39854. };
  39855. D.closure3.prototype = {
  39856. call$1: function($arguments) {
  39857. var t1 = J.$index$asx($arguments, 0).assertString$1("string").get$sassLength();
  39858. return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
  39859. },
  39860. $signature: 6
  39861. };
  39862. D.closure2.prototype = {
  39863. call$1: function($arguments) {
  39864. var indexInt, codeUnitIndex, _s5_ = "index",
  39865. t1 = J.getInterceptor$asx($arguments),
  39866. string = t1.$index($arguments, 0).assertString$1("string"),
  39867. insert = t1.$index($arguments, 1).assertString$1("insert"),
  39868. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  39869. index.assertNoUnits$1(_s5_);
  39870. indexInt = index.assertInt$1(_s5_);
  39871. if (indexInt < 0)
  39872. indexInt = string.get$sassLength() + indexInt + 2;
  39873. t1 = string.text;
  39874. codeUnitIndex = B.codepointIndexToCodeUnitIndex(t1, D._codepointForIndex(indexInt, string.get$sassLength(), false));
  39875. return new D.SassString(J.replaceRange$3$asx(t1, codeUnitIndex, codeUnitIndex, insert.text), string.hasQuotes);
  39876. },
  39877. $signature: 11
  39878. };
  39879. D.closure1.prototype = {
  39880. call$1: function($arguments) {
  39881. var codepointIndex,
  39882. t1 = J.getInterceptor$asx($arguments),
  39883. t2 = t1.$index($arguments, 0).assertString$1("string").text,
  39884. codeUnitIndex = J.indexOf$1$asx(t2, t1.$index($arguments, 1).assertString$1("substring").text);
  39885. if (codeUnitIndex === -1)
  39886. return C.C_SassNull0;
  39887. codepointIndex = B.codeUnitIndexToCodepointIndex(t2, codeUnitIndex);
  39888. return new T.SassNumber(codepointIndex + 1, C.List_empty, C.List_empty, null);
  39889. },
  39890. $signature: 4
  39891. };
  39892. D.closure0.prototype = {
  39893. call$1: function($arguments) {
  39894. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  39895. t1 = J.getInterceptor$asx($arguments),
  39896. string = t1.$index($arguments, 0).assertString$1("string"),
  39897. start = t1.$index($arguments, 1).assertNumber$1("start-at"),
  39898. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  39899. start.assertNoUnits$1("start");
  39900. end.assertNoUnits$1("end");
  39901. lengthInCodepoints = string.get$sassLength();
  39902. endInt = end.assertInt$0();
  39903. if (endInt === 0)
  39904. return string.hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  39905. startCodepoint = D._codepointForIndex(start.assertInt$0(), lengthInCodepoints, false);
  39906. endCodepoint = D._codepointForIndex(endInt, lengthInCodepoints, true);
  39907. if (endCodepoint === lengthInCodepoints)
  39908. --endCodepoint;
  39909. if (endCodepoint < startCodepoint)
  39910. return string.hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  39911. t1 = string.text;
  39912. return new D.SassString(J.substring$2$s(t1, B.codepointIndexToCodeUnitIndex(t1, startCodepoint), B.codepointIndexToCodeUnitIndex(t1, endCodepoint + 1)), string.hasQuotes);
  39913. },
  39914. $signature: 11
  39915. };
  39916. D.closure6.prototype = {
  39917. call$1: function($arguments) {
  39918. var t1, t2, t3, i, t4, t5,
  39919. string = J.$index$asx($arguments, 0).assertString$1("string");
  39920. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  39921. t5 = t3._codeUnitAt$1(t1, i);
  39922. t4 += H.Primitives_stringFromCharCode(t5 >= 97 && t5 <= 122 ? t5 & 4294967263 : t5);
  39923. }
  39924. return new D.SassString(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  39925. },
  39926. $signature: 11
  39927. };
  39928. D.closure5.prototype = {
  39929. call$1: function($arguments) {
  39930. var t1, t2, t3, i, t4, t5,
  39931. string = J.$index$asx($arguments, 0).assertString$1("string");
  39932. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  39933. t5 = t3._codeUnitAt$1(t1, i);
  39934. t4 += H.Primitives_stringFromCharCode(t5 >= 65 && t5 <= 90 ? t5 | 32 : t5);
  39935. }
  39936. return new D.SassString(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  39937. },
  39938. $signature: 11
  39939. };
  39940. D.closure4.prototype = {
  39941. call$1: function($arguments) {
  39942. var t1 = $.$get$_previousUniqueId() + ($.$get$_random().nextInt$1(36) + 1);
  39943. $._previousUniqueId = t1;
  39944. if (t1 > Math.pow(36, 6))
  39945. $._previousUniqueId = C.JSInt_methods.$mod($.$get$_previousUniqueId(), H._asIntS(Math.pow(36, 6)));
  39946. return new D.SassString("u" + C.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId(), 36), 6, "0"), false);
  39947. },
  39948. $signature: 11
  39949. };
  39950. R.ImportCache.prototype = {
  39951. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  39952. var resolvedUrl, canonicalUrl;
  39953. if (baseImporter != null) {
  39954. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  39955. canonicalUrl = this._canonicalize$3(baseImporter, resolvedUrl, forImport);
  39956. if (canonicalUrl != null)
  39957. return new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri);
  39958. }
  39959. return this._canonicalizeCache.putIfAbsent$2(new S.Tuple2(url, forImport, type$.Tuple2_of_legacy_Uri_and_legacy_bool), new R.ImportCache_canonicalize_closure(this, url, forImport));
  39960. },
  39961. canonicalize$3$baseImporter$baseUrl: function(url, baseImporter, baseUrl) {
  39962. return this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, false);
  39963. },
  39964. _canonicalize$3: function(importer, url, forImport) {
  39965. var result = forImport ? B.inImportRule(new R.ImportCache__canonicalize_closure(importer, url)) : importer.canonicalize$1(url);
  39966. if ((result == null ? null : result.get$scheme()) === "")
  39967. this._logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + string$.x2ex0aRela, true);
  39968. return result;
  39969. },
  39970. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  39971. var t1,
  39972. tuple = this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport);
  39973. if (tuple == null)
  39974. return null;
  39975. t1 = tuple.item1;
  39976. return new S.Tuple2(t1, this.importCanonical$3(t1, tuple.item2, tuple.item3), type$.Tuple2_of_legacy_Importer_and_legacy_Stylesheet);
  39977. },
  39978. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  39979. return this._importCache.putIfAbsent$2(canonicalUrl, new R.ImportCache_importCanonical_closure(this, importer, canonicalUrl, originalUrl));
  39980. },
  39981. importCanonical$2: function(importer, canonicalUrl) {
  39982. return this.importCanonical$3(importer, canonicalUrl, null);
  39983. },
  39984. humanize$1: function(canonicalUrl) {
  39985. var t1 = this._canonicalizeCache.get$values(),
  39986. t2 = H._instanceType(t1),
  39987. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new R.ImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new R.ImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri*>")), new R.ImportCache_humanize_closure1(), type$.legacy_Uri, type$.dynamic);
  39988. if (url == null)
  39989. return canonicalUrl;
  39990. t1 = $.$get$url();
  39991. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  39992. },
  39993. clearImport$1: function(canonicalUrl) {
  39994. this._resultsCache.remove$1(0, canonicalUrl);
  39995. this._importCache.remove$1(0, canonicalUrl);
  39996. }
  39997. };
  39998. R.ImportCache_canonicalize_closure.prototype = {
  39999. call$0: function() {
  40000. var t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  40001. 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, H.throwConcurrentModificationError)(t2), ++_i) {
  40002. importer = t2[_i];
  40003. canonicalUrl = t1._canonicalize$3(importer, t4, t5);
  40004. if (canonicalUrl != null)
  40005. return new S.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri);
  40006. }
  40007. return null;
  40008. },
  40009. $signature: 53
  40010. };
  40011. R.ImportCache__canonicalize_closure.prototype = {
  40012. call$0: function() {
  40013. return this.importer.canonicalize$1(this.url);
  40014. },
  40015. $signature: 65
  40016. };
  40017. R.ImportCache_importCanonical_closure.prototype = {
  40018. call$0: function() {
  40019. var t3, _this = this,
  40020. t1 = _this.canonicalUrl,
  40021. result = _this.importer.load$1(t1),
  40022. t2 = _this.$this;
  40023. t2._resultsCache.$indexSet(0, t1, result);
  40024. t3 = _this.originalUrl;
  40025. t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
  40026. return V.Stylesheet_Stylesheet$parse(result.contents, result.syntax, t2._logger, t1);
  40027. },
  40028. $signature: 38
  40029. };
  40030. R.ImportCache_humanize_closure.prototype = {
  40031. call$1: function(tuple) {
  40032. var t1 = tuple == null ? null : tuple.item2;
  40033. return J.$eq$(t1, this.canonicalUrl);
  40034. }
  40035. };
  40036. R.ImportCache_humanize_closure0.prototype = {
  40037. call$1: function(tuple) {
  40038. return tuple.item3;
  40039. }
  40040. };
  40041. R.ImportCache_humanize_closure1.prototype = {
  40042. call$1: function(url) {
  40043. return J.get$length$asx(J.get$path$x(url));
  40044. },
  40045. $signature: 30
  40046. };
  40047. M.Importer.prototype = {
  40048. modificationTime$1: function(url) {
  40049. return new P.DateTime(Date.now(), false);
  40050. },
  40051. couldCanonicalize$2: function(url, canonicalUrl) {
  40052. return true;
  40053. }
  40054. };
  40055. B.AsyncImporter.prototype = {};
  40056. F.FilesystemImporter.prototype = {
  40057. canonicalize$1: function(url) {
  40058. var t1, resolved;
  40059. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  40060. return null;
  40061. t1 = $.$get$context();
  40062. resolved = B.resolveImportPath(D.join(this._loadPath, t1.style.pathFromUri$1(M._parseUri(url)), null));
  40063. return resolved == null ? null : t1.toUri$1(t1.canonicalize$1(resolved));
  40064. },
  40065. load$1: function(url) {
  40066. var t3, t4,
  40067. t1 = $.$get$context(),
  40068. path = t1.style.pathFromUri$1(M._parseUri(url)),
  40069. t2 = B.readFile(path);
  40070. t1 = J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin") ? t1.toUri$1(F.realCasePath(path)) : url;
  40071. t3 = M.Syntax_forPath(path);
  40072. t4 = t1.get$scheme();
  40073. if (t4 === "")
  40074. H.throwExpression(P.ArgumentError$value(t1, "sourceMapUrl", "must be absolute"));
  40075. return new E.ImporterResult(t2, t1, t3);
  40076. },
  40077. modificationTime$1: function(url) {
  40078. return B.modificationTime($.$get$context().style.pathFromUri$1(M._parseUri(url)));
  40079. },
  40080. couldCanonicalize$2: function(url, canonicalUrl) {
  40081. var t1, t2, t3, basename, canonicalBasename;
  40082. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  40083. return false;
  40084. if (canonicalUrl.get$scheme() !== "file")
  40085. return false;
  40086. t1 = $.$get$url();
  40087. t2 = url.get$path(url);
  40088. t3 = t1.style;
  40089. basename = X.ParsedPath_ParsedPath$parse(t2, t3).get$basename();
  40090. canonicalBasename = X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t3).get$basename();
  40091. if (!J.startsWith$1$s(basename, "_") && J.startsWith$1$s(canonicalBasename, "_"))
  40092. canonicalBasename = J.substring$1$s(canonicalBasename, 1);
  40093. return basename === canonicalBasename || basename === t1.withoutExtension$1(canonicalBasename);
  40094. },
  40095. toString$0: function(_) {
  40096. return this._loadPath;
  40097. }
  40098. };
  40099. E.ImporterResult.prototype = {
  40100. get$sourceMapUrl: function() {
  40101. return this._sourceMapUrl;
  40102. }
  40103. };
  40104. B.resolveImportPath_closure.prototype = {
  40105. call$0: function() {
  40106. return B._exactlyOne(B._tryPath($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  40107. },
  40108. $signature: 9
  40109. };
  40110. B.resolveImportPath_closure0.prototype = {
  40111. call$0: function() {
  40112. return B._exactlyOne(B._tryPathWithExtensions(this.path + ".import"));
  40113. },
  40114. $signature: 9
  40115. };
  40116. B._tryPathAsDirectory_closure.prototype = {
  40117. call$0: function() {
  40118. return B._exactlyOne(B._tryPathWithExtensions(D.join(this.path, "index.import", null)));
  40119. },
  40120. $signature: 9
  40121. };
  40122. B._exactlyOne_closure.prototype = {
  40123. call$1: function(path) {
  40124. var t1 = $.$get$context();
  40125. return C.JSString_methods.$add(" ", t1.prettyUri$1(t1.toUri$1(path)));
  40126. }
  40127. };
  40128. Z.InterpolationBuffer.prototype = {
  40129. add$1: function(_, expression) {
  40130. this._flushText$0();
  40131. this._interpolation_buffer$_contents.push(expression);
  40132. },
  40133. addInterpolation$1: function(interpolation) {
  40134. var first, t1, _this = this,
  40135. toAdd = interpolation.contents;
  40136. if (toAdd.length === 0)
  40137. return;
  40138. first = C.JSArray_methods.get$first(toAdd);
  40139. if (typeof first == "string") {
  40140. _this._interpolation_buffer$_text._contents += first;
  40141. toAdd = H.SubListIterable$(toAdd, 1, null, H._arrayInstanceType(toAdd)._precomputed1);
  40142. }
  40143. _this._flushText$0();
  40144. t1 = _this._interpolation_buffer$_contents;
  40145. C.JSArray_methods.addAll$1(t1, toAdd);
  40146. if (typeof C.JSArray_methods.get$last(t1) == "string")
  40147. _this._interpolation_buffer$_text._contents += H.S(t1.pop());
  40148. },
  40149. _flushText$0: function() {
  40150. var t1 = this._interpolation_buffer$_text,
  40151. t2 = t1._contents;
  40152. if (t2.length === 0)
  40153. return;
  40154. this._interpolation_buffer$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  40155. t1._contents = "";
  40156. },
  40157. interpolation$1: function(span) {
  40158. var t2, t3, _i,
  40159. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  40160. for (t2 = this._interpolation_buffer$_contents, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  40161. t1.push(t2[_i]);
  40162. t2 = this._interpolation_buffer$_text._contents;
  40163. if (t2.length !== 0)
  40164. t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  40165. return X.Interpolation$(t1, span);
  40166. },
  40167. toString$0: function(_) {
  40168. var t1, t2, _i, t3, element;
  40169. for (t1 = this._interpolation_buffer$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  40170. element = t1[_i];
  40171. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + H.S(element) + H.Primitives_stringFromCharCode(125);
  40172. }
  40173. t1 = t3 + this._interpolation_buffer$_text.toString$0(0);
  40174. return t1.charCodeAt(0) == 0 ? t1 : t1;
  40175. }
  40176. };
  40177. F.realCasePath_closure.prototype = {
  40178. call$1: function(realPath) {
  40179. return B.equalsIgnoreCase(X.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
  40180. }
  40181. };
  40182. B._FS.prototype = {};
  40183. B._Stat.prototype = {};
  40184. B._Date.prototype = {};
  40185. B._Stderr.prototype = {};
  40186. B._Stdin.prototype = {};
  40187. B._SystemError.prototype = {};
  40188. B._Process.prototype = {};
  40189. B.FileSystemException.prototype = {
  40190. toString$0: function(_) {
  40191. var t1 = $.$get$context();
  40192. return H.S(t1.prettyUri$1(t1.toUri$1(this.path))) + ": " + this.message;
  40193. },
  40194. get$message: function(receiver) {
  40195. return this.message;
  40196. },
  40197. get$path: function(receiver) {
  40198. return this.path;
  40199. }
  40200. };
  40201. B.Stderr.prototype = {
  40202. writeln$1: function(object) {
  40203. J.write$1$x(this._stderr, H.S(object == null ? "" : object) + "\n");
  40204. },
  40205. writeln$0: function() {
  40206. return this.writeln$1(null);
  40207. }
  40208. };
  40209. B._readFile_closure.prototype = {
  40210. call$0: function() {
  40211. return J.readFileSync$2$x(self.fs, this.path, this.encoding);
  40212. },
  40213. $signature: 41
  40214. };
  40215. B.writeFile_closure.prototype = {
  40216. call$0: function() {
  40217. return J.writeFileSync$2$x(self.fs, this.path, this.contents);
  40218. },
  40219. $signature: 1
  40220. };
  40221. B.deleteFile_closure.prototype = {
  40222. call$0: function() {
  40223. return J.unlinkSync$1$x(self.fs, this.path);
  40224. },
  40225. $signature: 1
  40226. };
  40227. B.readStdin_closure.prototype = {
  40228. call$1: function(result) {
  40229. this._box_0.contents = result;
  40230. this.completer.complete$1(result);
  40231. }
  40232. };
  40233. B.readStdin_closure0.prototype = {
  40234. call$1: function(chunk) {
  40235. this.sink.add$1(0, type$.legacy_List_legacy_int._as(chunk));
  40236. },
  40237. call$0: function() {
  40238. return this.call$1(null);
  40239. },
  40240. "call*": "call$1",
  40241. $requiredArgCount: 0,
  40242. $defaultValues: function() {
  40243. return [null];
  40244. },
  40245. $signature: 44
  40246. };
  40247. B.readStdin_closure1.prototype = {
  40248. call$1: function(_) {
  40249. this.sink.close$0(0);
  40250. },
  40251. call$0: function() {
  40252. return this.call$1(null);
  40253. },
  40254. "call*": "call$1",
  40255. $requiredArgCount: 0,
  40256. $defaultValues: function() {
  40257. return [null];
  40258. },
  40259. $signature: 44
  40260. };
  40261. B.readStdin_closure2.prototype = {
  40262. call$1: function(e) {
  40263. var t1 = $.$get$stderr();
  40264. t1.writeln$1("Failed to read from stdin");
  40265. t1.writeln$1(e);
  40266. this.completer.completeError$1(e);
  40267. },
  40268. call$0: function() {
  40269. return this.call$1(null);
  40270. },
  40271. "call*": "call$1",
  40272. $requiredArgCount: 0,
  40273. $defaultValues: function() {
  40274. return [null];
  40275. },
  40276. $signature: 44
  40277. };
  40278. B.fileExists_closure.prototype = {
  40279. call$0: function() {
  40280. var error, systemError, exception,
  40281. t1 = this.path;
  40282. if (!J.existsSync$1$x(self.fs, t1))
  40283. return false;
  40284. try {
  40285. t1 = J.isFile$0$x(J.statSync$1$x(self.fs, t1));
  40286. return t1;
  40287. } catch (exception) {
  40288. error = H.unwrapException(exception);
  40289. systemError = type$.legacy__SystemError._as(error);
  40290. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  40291. return false;
  40292. throw exception;
  40293. }
  40294. },
  40295. $signature: 25
  40296. };
  40297. B.dirExists_closure.prototype = {
  40298. call$0: function() {
  40299. var error, systemError, exception,
  40300. t1 = this.path;
  40301. if (!J.existsSync$1$x(self.fs, t1))
  40302. return false;
  40303. try {
  40304. t1 = J.isDirectory$0$x(J.statSync$1$x(self.fs, t1));
  40305. return t1;
  40306. } catch (exception) {
  40307. error = H.unwrapException(exception);
  40308. systemError = type$.legacy__SystemError._as(error);
  40309. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  40310. return false;
  40311. throw exception;
  40312. }
  40313. },
  40314. $signature: 25
  40315. };
  40316. B.ensureDir_closure.prototype = {
  40317. call$0: function() {
  40318. var error, systemError, exception, t1;
  40319. try {
  40320. J.mkdirSync$1$x(self.fs, this.path);
  40321. } catch (exception) {
  40322. error = H.unwrapException(exception);
  40323. systemError = type$.legacy__SystemError._as(error);
  40324. if (J.$eq$(J.get$code$x(systemError), "EEXIST"))
  40325. return;
  40326. if (!J.$eq$(J.get$code$x(systemError), "ENOENT"))
  40327. throw exception;
  40328. t1 = this.path;
  40329. B.ensureDir($.$get$context().dirname$1(t1));
  40330. J.mkdirSync$1$x(self.fs, t1);
  40331. }
  40332. },
  40333. $signature: 0
  40334. };
  40335. B.listDir_closure.prototype = {
  40336. call$0: function() {
  40337. var t1 = this.path;
  40338. if (!this.recursive)
  40339. return J.map$1$1$ax(J.readdirSync$1$x(self.fs, t1), new B.listDir__closure(t1), type$.legacy_String).where$1(0, new B.listDir__closure0());
  40340. else
  40341. return new B.listDir_closure_list().call$1(t1);
  40342. },
  40343. $signature: 71
  40344. };
  40345. B.listDir__closure.prototype = {
  40346. call$1: function(child) {
  40347. return D.join(this.path, H._asStringS(child), null);
  40348. },
  40349. $signature: 27
  40350. };
  40351. B.listDir__closure0.prototype = {
  40352. call$1: function(child) {
  40353. return !B.dirExists(child);
  40354. }
  40355. };
  40356. B.listDir_closure_list.prototype = {
  40357. call$1: function($parent) {
  40358. return J.expand$1$1$ax(J.readdirSync$1$x(self.fs, $parent), new B.listDir__list_closure($parent, this), type$.legacy_String);
  40359. }
  40360. };
  40361. B.listDir__list_closure.prototype = {
  40362. call$1: function(child) {
  40363. var path = D.join(this.parent, H._asStringS(child), null);
  40364. return B.dirExists(path) ? this.list.call$1(path) : H.setRuntimeTypeInfo([path], type$.JSArray_legacy_String);
  40365. },
  40366. $signature: 72
  40367. };
  40368. B.modificationTime_closure.prototype = {
  40369. call$0: function() {
  40370. var t2,
  40371. t1 = J.getTime$0$x(J.get$mtime$x(J.statSync$1$x(self.fs, this.path)));
  40372. if (Math.abs(t1) <= 864e13)
  40373. t2 = false;
  40374. else
  40375. t2 = true;
  40376. if (t2)
  40377. H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + H.S(t1)));
  40378. P.ArgumentError_checkNotNull(false, "isUtc");
  40379. return new P.DateTime(t1, false);
  40380. },
  40381. $signature: 73
  40382. };
  40383. B.watchDir_closure.prototype = {
  40384. call$2: function(path, _) {
  40385. var t1 = this._box_0.controller;
  40386. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_add, path));
  40387. },
  40388. call$1: function(path) {
  40389. return this.call$2(path, null);
  40390. },
  40391. "call*": "call$2",
  40392. $defaultValues: function() {
  40393. return [null];
  40394. }
  40395. };
  40396. B.watchDir_closure0.prototype = {
  40397. call$2: function(path, _) {
  40398. var t1 = this._box_0.controller;
  40399. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_modify, path));
  40400. },
  40401. call$1: function(path) {
  40402. return this.call$2(path, null);
  40403. },
  40404. "call*": "call$2",
  40405. $defaultValues: function() {
  40406. return [null];
  40407. }
  40408. };
  40409. B.watchDir_closure1.prototype = {
  40410. call$1: function(path) {
  40411. var t1 = this._box_0.controller;
  40412. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_remove, path));
  40413. }
  40414. };
  40415. B.watchDir_closure2.prototype = {
  40416. call$1: function(error) {
  40417. var t1 = this._box_0.controller;
  40418. return t1 == null ? null : t1.addError$1(error);
  40419. },
  40420. $signature: 35
  40421. };
  40422. B.watchDir_closure3.prototype = {
  40423. call$0: function() {
  40424. var controller = P.StreamController_StreamController(new B.watchDir__closure(this.watcher), null, null, null, false, type$.legacy_WatchEvent);
  40425. this._box_0.controller = controller;
  40426. this.completer.complete$1(new P._ControllerStream(controller, H._instanceType(controller)._eval$1("_ControllerStream<1>")));
  40427. },
  40428. "call*": "call$0",
  40429. $requiredArgCount: 0,
  40430. $signature: 0
  40431. };
  40432. B.watchDir__closure.prototype = {
  40433. call$0: function() {
  40434. J.close$0$x(this.watcher);
  40435. },
  40436. "call*": "call$0",
  40437. $requiredArgCount: 0,
  40438. $signature: 0
  40439. };
  40440. F._QuietLogger.prototype = {
  40441. warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
  40442. },
  40443. warn$2$deprecation: function(message, deprecation) {
  40444. return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
  40445. },
  40446. warn$2$span: function(message, span) {
  40447. return this.warn$4$deprecation$span$trace(message, false, span, null);
  40448. },
  40449. warn$3$deprecation$span: function(message, deprecation, span) {
  40450. return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
  40451. },
  40452. warn$2$trace: function(message, trace) {
  40453. return this.warn$4$deprecation$span$trace(message, false, null, trace);
  40454. },
  40455. debug$2: function(message, span) {
  40456. }
  40457. };
  40458. S.StderrLogger.prototype = {
  40459. warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
  40460. var t2, t3,
  40461. t1 = this.color;
  40462. if (t1) {
  40463. t2 = $.$get$stderr();
  40464. t3 = t2._stderr;
  40465. J.write$1$x(t3, "\x1b[33m\x1b[1m");
  40466. if (deprecation)
  40467. J.write$1$x(t3, "Deprecation ");
  40468. J.write$1$x(t3, "Warning\x1b[0m");
  40469. } else {
  40470. if (deprecation)
  40471. J.write$1$x($.$get$stderr()._stderr, "DEPRECATION ");
  40472. t2 = $.$get$stderr();
  40473. J.write$1$x(t2._stderr, "WARNING");
  40474. }
  40475. if (span == null)
  40476. t2.writeln$1(": " + H.S(message));
  40477. else if (trace != null)
  40478. t2.writeln$1(": " + H.S(message) + "\n\n" + span.highlight$1$color(t1));
  40479. else
  40480. t2.writeln$1(" on " + span.message$2$color(0, C.JSString_methods.$add("\n", message), t1));
  40481. if (trace != null)
  40482. t2.writeln$1(B.indent(C.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
  40483. t2.writeln$0();
  40484. },
  40485. warn$2$deprecation: function(message, deprecation) {
  40486. return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
  40487. },
  40488. warn$2$span: function(message, span) {
  40489. return this.warn$4$deprecation$span$trace(message, false, span, null);
  40490. },
  40491. warn$3$deprecation$span: function(message, deprecation, span) {
  40492. return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
  40493. },
  40494. warn$2$trace: function(message, trace) {
  40495. return this.warn$4$deprecation$span$trace(message, false, null, trace);
  40496. },
  40497. debug$2: function(message, span) {
  40498. var url, t3, t4,
  40499. t1 = span.file,
  40500. t2 = span._file$_start;
  40501. if (Y.FileLocation$_(t1, t2).file.url == null)
  40502. url = "-";
  40503. else {
  40504. t3 = Y.FileLocation$_(t1, t2);
  40505. url = $.$get$context().prettyUri$1(t3.file.url);
  40506. }
  40507. t3 = $.$get$stderr();
  40508. t4 = H.S(url) + ":";
  40509. t2 = Y.FileLocation$_(t1, t2);
  40510. t2 = t4 + (t2.file.getLine$1(t2.offset) + 1) + " ";
  40511. t4 = t3._stderr;
  40512. J.write$1$x(t4, t2);
  40513. J.write$1$x(t4, this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG");
  40514. t3.writeln$1(": " + H.S(message));
  40515. }
  40516. };
  40517. T.TrackingLogger.prototype = {
  40518. warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
  40519. this._emittedWarning = true;
  40520. this._tracking$_logger.warn$4$deprecation$span$trace(message, deprecation, span, trace);
  40521. },
  40522. warn$2$deprecation: function(message, deprecation) {
  40523. return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
  40524. },
  40525. warn$2$span: function(message, span) {
  40526. return this.warn$4$deprecation$span$trace(message, false, span, null);
  40527. },
  40528. warn$3$deprecation$span: function(message, deprecation, span) {
  40529. return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
  40530. },
  40531. warn$2$trace: function(message, trace) {
  40532. return this.warn$4$deprecation$span$trace(message, false, null, trace);
  40533. },
  40534. debug$2: function(message, span) {
  40535. this._emittedDebug = true;
  40536. this._tracking$_logger.debug$2(message, span);
  40537. }
  40538. };
  40539. G.Module.prototype = {};
  40540. Q.BuiltInModule.prototype = {
  40541. get$upstream: function() {
  40542. return C.List_empty3;
  40543. },
  40544. get$variableNodes: function() {
  40545. return C.Map_empty1;
  40546. },
  40547. get$extender: function() {
  40548. return C.C_EmptyExtender;
  40549. },
  40550. get$css: function(_) {
  40551. return new V.CssStylesheet(C.List_empty0, Y.SourceFile$decoded(C.List_empty1, this.url).span$2(0, 0));
  40552. },
  40553. get$transitivelyContainsCss: function() {
  40554. return false;
  40555. },
  40556. get$transitivelyContainsExtensions: function() {
  40557. return false;
  40558. },
  40559. setVariable$3: function($name, value, nodeWithSpan) {
  40560. if (!this.variables.containsKey$1($name))
  40561. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  40562. throw H.wrapException(E.SassScriptException$("Cannot modify built-in variable."));
  40563. },
  40564. variableIdentity$1: function($name) {
  40565. return this;
  40566. },
  40567. cloneCss$0: function() {
  40568. return this;
  40569. },
  40570. $isModule: 1,
  40571. get$url: function() {
  40572. return this.url;
  40573. },
  40574. get$functions: function(receiver) {
  40575. return this.functions;
  40576. },
  40577. get$mixins: function() {
  40578. return this.mixins;
  40579. },
  40580. get$variables: function() {
  40581. return this.variables;
  40582. }
  40583. };
  40584. R.ForwardedModuleView.prototype = {
  40585. get$url: function() {
  40586. return this._forwarded_view$_inner.get$url();
  40587. },
  40588. get$upstream: function() {
  40589. return this._forwarded_view$_inner.get$upstream();
  40590. },
  40591. get$extender: function() {
  40592. return this._forwarded_view$_inner.get$extender();
  40593. },
  40594. get$css: function(_) {
  40595. var t1 = this._forwarded_view$_inner;
  40596. return t1.get$css(t1);
  40597. },
  40598. get$transitivelyContainsCss: function() {
  40599. return this._forwarded_view$_inner.get$transitivelyContainsCss();
  40600. },
  40601. get$transitivelyContainsExtensions: function() {
  40602. return this._forwarded_view$_inner.get$transitivelyContainsExtensions();
  40603. },
  40604. setVariable$3: function($name, value, nodeWithSpan) {
  40605. var _s19_ = "Undefined variable.",
  40606. t1 = this._rule,
  40607. t2 = t1.shownVariables;
  40608. if (t2 != null && !t2._base.contains$1(0, $name))
  40609. throw H.wrapException(E.SassScriptException$(_s19_));
  40610. else {
  40611. t2 = t1.hiddenVariables;
  40612. if (t2 != null && t2._base.contains$1(0, $name))
  40613. throw H.wrapException(E.SassScriptException$(_s19_));
  40614. }
  40615. t1 = t1.prefix;
  40616. if (t1 != null) {
  40617. if (!C.JSString_methods.startsWith$1($name, t1))
  40618. throw H.wrapException(E.SassScriptException$(_s19_));
  40619. $name = C.JSString_methods.substring$1($name, t1.length);
  40620. }
  40621. return this._forwarded_view$_inner.setVariable$3($name, value, nodeWithSpan);
  40622. },
  40623. variableIdentity$1: function($name) {
  40624. var t1 = this._rule.prefix;
  40625. if (t1 != null)
  40626. $name = J.substring$1$s($name, t1.length);
  40627. return this._forwarded_view$_inner.variableIdentity$1($name);
  40628. },
  40629. $eq: function(_, other) {
  40630. if (other == null)
  40631. return false;
  40632. return other instanceof R.ForwardedModuleView && J.$eq$(this._forwarded_view$_inner, other._forwarded_view$_inner) && this._rule === other._rule;
  40633. },
  40634. get$hashCode: function(_) {
  40635. return (J.get$hashCode$(this._forwarded_view$_inner) ^ H.Primitives_objectHashCode(this._rule)) >>> 0;
  40636. },
  40637. cloneCss$0: function() {
  40638. return R.ForwardedModuleView$(this._forwarded_view$_inner.cloneCss$0(), this._rule, this.$ti._eval$1("1*"));
  40639. },
  40640. toString$0: function(_) {
  40641. return "forwarded " + H.S(this._forwarded_view$_inner);
  40642. },
  40643. $isModule: 1,
  40644. get$variables: function() {
  40645. return this.variables;
  40646. },
  40647. get$variableNodes: function() {
  40648. return this.variableNodes;
  40649. },
  40650. get$functions: function(receiver) {
  40651. return this.functions;
  40652. },
  40653. get$mixins: function() {
  40654. return this.mixins;
  40655. }
  40656. };
  40657. B.ShadowedModuleView.prototype = {
  40658. get$url: function() {
  40659. return this._shadowed_view$_inner.get$url();
  40660. },
  40661. get$upstream: function() {
  40662. return this._shadowed_view$_inner.get$upstream();
  40663. },
  40664. get$extender: function() {
  40665. return this._shadowed_view$_inner.get$extender();
  40666. },
  40667. get$css: function(_) {
  40668. var t1 = this._shadowed_view$_inner;
  40669. return t1.get$css(t1);
  40670. },
  40671. get$transitivelyContainsCss: function() {
  40672. return this._shadowed_view$_inner.get$transitivelyContainsCss();
  40673. },
  40674. get$transitivelyContainsExtensions: function() {
  40675. return this._shadowed_view$_inner.get$transitivelyContainsExtensions();
  40676. },
  40677. setVariable$3: function($name, value, nodeWithSpan) {
  40678. if (!this.variables.containsKey$1($name))
  40679. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  40680. else
  40681. return this._shadowed_view$_inner.setVariable$3($name, value, nodeWithSpan);
  40682. },
  40683. variableIdentity$1: function($name) {
  40684. return this._shadowed_view$_inner.variableIdentity$1($name);
  40685. },
  40686. $eq: function(_, other) {
  40687. var _this = this;
  40688. if (other == null)
  40689. return false;
  40690. return other instanceof B.ShadowedModuleView && _this._shadowed_view$_inner.$eq(0, other._shadowed_view$_inner) && C.C_IterableEquality.equals$2(_this.variables.get$keys(), other.variables.get$keys()) && C.C_IterableEquality.equals$2(_this.functions.get$keys(), other.functions.get$keys()) && C.C_IterableEquality.equals$2(_this.mixins.get$keys(), other.mixins.get$keys());
  40691. },
  40692. get$hashCode: function(_) {
  40693. var t1 = this._shadowed_view$_inner;
  40694. return t1.get$hashCode(t1);
  40695. },
  40696. cloneCss$0: function() {
  40697. var _this = this;
  40698. return new B.ShadowedModuleView(_this._shadowed_view$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti._eval$1("ShadowedModuleView<1*>"));
  40699. },
  40700. toString$0: function(_) {
  40701. return "shadowed " + this._shadowed_view$_inner.toString$0(0);
  40702. },
  40703. $isModule: 1,
  40704. get$variables: function() {
  40705. return this.variables;
  40706. },
  40707. get$variableNodes: function() {
  40708. return this.variableNodes;
  40709. },
  40710. get$functions: function(receiver) {
  40711. return this.functions;
  40712. },
  40713. get$mixins: function() {
  40714. return this.mixins;
  40715. }
  40716. };
  40717. Y.Chokidar.prototype = {};
  40718. Y.ChokidarOptions.prototype = {};
  40719. Y.ChokidarWatcher.prototype = {};
  40720. F.JSFunction.prototype = {};
  40721. F.NodeImporterResult.prototype = {};
  40722. B._PropertyDescriptor.prototype = {};
  40723. V.AtRootQueryParser.prototype = {
  40724. parse$0: function() {
  40725. return this.wrapSpanFormatException$1(new V.AtRootQueryParser_parse_closure(this));
  40726. }
  40727. };
  40728. V.AtRootQueryParser_parse_closure.prototype = {
  40729. call$0: function() {
  40730. var include, atRules,
  40731. t1 = this.$this,
  40732. t2 = t1.scanner;
  40733. t2.expectChar$1(40);
  40734. t1.whitespace$0();
  40735. include = t1.scanIdentifier$1("with");
  40736. if (!include)
  40737. t1.expectIdentifier$2$name("without", '"with" or "without"');
  40738. t1.whitespace$0();
  40739. t2.expectChar$1(58);
  40740. t1.whitespace$0();
  40741. atRules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  40742. do {
  40743. atRules.add$1(0, t1.identifier$0().toLowerCase());
  40744. t1.whitespace$0();
  40745. } while (t1.lookingAtIdentifier$0());
  40746. t2.expectChar$1(41);
  40747. t2.expectDone$0();
  40748. return new V.AtRootQuery(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  40749. },
  40750. $signature: 57
  40751. };
  40752. Q.closure103.prototype = {
  40753. call$1: function($function) {
  40754. return $function.name;
  40755. }
  40756. };
  40757. Q.CssParser.prototype = {
  40758. get$plainCss: function() {
  40759. return true;
  40760. },
  40761. silentComment$0: function() {
  40762. var t1 = this.scanner,
  40763. t2 = t1._string_scanner$_position;
  40764. this.super$Parser$silentComment();
  40765. this.error$2(string$.Silent, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  40766. },
  40767. atRule$2$root: function(child, root) {
  40768. var $name, urlStart, next, url, urlSpan, queries, t2, t3, t4, t5, _this = this,
  40769. t1 = _this.scanner,
  40770. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  40771. t1.expectChar$1(64);
  40772. $name = _this.interpolatedIdentifier$0();
  40773. _this.whitespace$0();
  40774. switch ($name.get$asPlain()) {
  40775. case "at-root":
  40776. case "content":
  40777. case "debug":
  40778. case "each":
  40779. case "error":
  40780. case "extend":
  40781. case "for":
  40782. case "function":
  40783. case "if":
  40784. case "include":
  40785. case "mixin":
  40786. case "return":
  40787. case "warn":
  40788. case "while":
  40789. _this.almostAnyValue$0();
  40790. _this.error$2("This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
  40791. break;
  40792. case "charset":
  40793. _this.string$0();
  40794. if (!root)
  40795. _this.error$2("This at-rule is not allowed here.", t1.spanFrom$1(start));
  40796. return null;
  40797. case "import":
  40798. urlStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
  40799. next = t1.peekChar$0();
  40800. url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new D.StringExpression(_this.interpolatedString$0().asInterpolation$1$static(true), false);
  40801. urlSpan = t1.spanFrom$1(urlStart);
  40802. _this.whitespace$0();
  40803. queries = _this.tryImportQueries$0();
  40804. _this.expectStatementSeparator$1("@import rule");
  40805. t2 = X.Interpolation$(H.setRuntimeTypeInfo([url], type$.JSArray_legacy_Object), urlSpan);
  40806. t3 = t1.spanFrom$1(urlStart);
  40807. t4 = queries == null;
  40808. t5 = t4 ? null : queries.item1;
  40809. t2 = H.setRuntimeTypeInfo([new Q.StaticImport(t2, t5, t4 ? null : queries.item2, t3)], type$.JSArray_legacy_Import);
  40810. t1 = t1.spanFrom$1(start);
  40811. return new B.ImportRule(P.List_List$unmodifiable(t2, type$.legacy_Import), t1);
  40812. case "media":
  40813. return _this.mediaRule$1(start);
  40814. case "-moz-document":
  40815. return _this.mozDocumentRule$2(start, $name);
  40816. case "supports":
  40817. return _this.supportsRule$1(start);
  40818. default:
  40819. return _this.unknownAtRule$2(start, $name);
  40820. }
  40821. },
  40822. identifierLike$0: function() {
  40823. var t2, $arguments, _this = this,
  40824. t1 = _this.scanner,
  40825. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  40826. identifier = _this.interpolatedIdentifier$0(),
  40827. plain = identifier.get$asPlain(),
  40828. specialFunction = _this.trySpecialFunction$2(plain.toLowerCase(), start);
  40829. if (specialFunction != null)
  40830. return specialFunction;
  40831. t2 = t1._string_scanner$_position;
  40832. if (!t1.scanChar$1(40))
  40833. return new D.StringExpression(identifier, false);
  40834. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  40835. if (!t1.scanChar$1(41)) {
  40836. do {
  40837. _this.whitespace$0();
  40838. $arguments.push(_this.expression$1$singleEquals(true));
  40839. _this.whitespace$0();
  40840. } while (t1.scanChar$1(44));
  40841. t1.expectChar$1(41);
  40842. }
  40843. if ($.$get$_disallowedFunctionNames().contains$1(0, plain))
  40844. _this.error$2(string$.This_f, t1.spanFrom$1(start));
  40845. return new F.FunctionExpression(null, X.Interpolation$(H.setRuntimeTypeInfo([new D.StringExpression(identifier, false)], type$.JSArray_legacy_Object), identifier.span), X.ArgumentInvocation$($arguments, C.Map_empty3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), null, null), t1.spanFrom$1(start));
  40846. }
  40847. };
  40848. E.KeyframeSelectorParser.prototype = {
  40849. parse$0: function() {
  40850. return this.wrapSpanFormatException$1(new E.KeyframeSelectorParser_parse_closure(this));
  40851. },
  40852. _percentage$0: function() {
  40853. var t3, next,
  40854. t1 = this.scanner,
  40855. t2 = t1.scanChar$1(43) ? H.Primitives_stringFromCharCode(43) : "",
  40856. second = t1.peekChar$0();
  40857. if (!T.isDigit(second) && second !== 46)
  40858. t1.error$1("Expected number.");
  40859. while (true) {
  40860. t3 = t1.peekChar$0();
  40861. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  40862. break;
  40863. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  40864. }
  40865. if (t1.peekChar$0() === 46) {
  40866. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  40867. while (true) {
  40868. t3 = t1.peekChar$0();
  40869. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  40870. break;
  40871. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  40872. }
  40873. }
  40874. if (this.scanIdentifier$1("e")) {
  40875. t2 += t1.readChar$0();
  40876. next = t1.peekChar$0();
  40877. if (next === 43 || next === 45)
  40878. t2 += t1.readChar$0();
  40879. if (!T.isDigit(t1.peekChar$0()))
  40880. t1.error$1("Expected digit.");
  40881. while (true) {
  40882. t3 = t1.peekChar$0();
  40883. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  40884. break;
  40885. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  40886. }
  40887. }
  40888. t1.expectChar$1(37);
  40889. t2 += H.Primitives_stringFromCharCode(37);
  40890. return t2.charCodeAt(0) == 0 ? t2 : t2;
  40891. }
  40892. };
  40893. E.KeyframeSelectorParser_parse_closure.prototype = {
  40894. call$0: function() {
  40895. var selectors = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String),
  40896. t1 = this.$this,
  40897. t2 = t1.scanner;
  40898. do {
  40899. t1.whitespace$0();
  40900. if (t1.lookingAtIdentifier$0())
  40901. if (t1.scanIdentifier$1("from"))
  40902. selectors.push("from");
  40903. else {
  40904. t1.expectIdentifier$2$name("to", '"to" or "from"');
  40905. selectors.push("to");
  40906. }
  40907. else
  40908. selectors.push(t1._percentage$0());
  40909. t1.whitespace$0();
  40910. } while (t2.scanChar$1(44));
  40911. t2.expectDone$0();
  40912. return selectors;
  40913. },
  40914. $signature: 33
  40915. };
  40916. F.MediaQueryParser.prototype = {
  40917. parse$0: function() {
  40918. return this.wrapSpanFormatException$1(new F.MediaQueryParser_parse_closure(this));
  40919. },
  40920. _mediaQuery$0: function() {
  40921. var identifier1, identifier2, type, modifier, features, _this = this, _null = null,
  40922. t1 = _this.scanner;
  40923. if (t1.peekChar$0() !== 40) {
  40924. identifier1 = _this.identifier$0();
  40925. _this.whitespace$0();
  40926. if (!_this.lookingAtIdentifier$0())
  40927. return F.CssMediaQuery$(identifier1, _null, _null);
  40928. identifier2 = _this.identifier$0();
  40929. _this.whitespace$0();
  40930. if (B.equalsIgnoreCase(identifier2, "and")) {
  40931. type = identifier1;
  40932. modifier = _null;
  40933. } else {
  40934. if (_this.scanIdentifier$1("and"))
  40935. _this.whitespace$0();
  40936. else
  40937. return F.CssMediaQuery$(identifier2, _null, identifier1);
  40938. type = identifier2;
  40939. modifier = identifier1;
  40940. }
  40941. } else {
  40942. type = _null;
  40943. modifier = type;
  40944. }
  40945. features = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  40946. do {
  40947. _this.whitespace$0();
  40948. t1.expectChar$1(40);
  40949. features.push("(" + _this.declarationValue$0() + ")");
  40950. t1.expectChar$1(41);
  40951. _this.whitespace$0();
  40952. } while (_this.scanIdentifier$1("and"));
  40953. if (type == null)
  40954. return new F.CssMediaQuery(_null, _null, P.List_List$unmodifiable(features, type$.legacy_String));
  40955. else
  40956. return F.CssMediaQuery$(type, features, modifier);
  40957. }
  40958. };
  40959. F.MediaQueryParser_parse_closure.prototype = {
  40960. call$0: function() {
  40961. var queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery),
  40962. t1 = this.$this,
  40963. t2 = t1.scanner;
  40964. do {
  40965. t1.whitespace$0();
  40966. queries.push(t1._mediaQuery$0());
  40967. } while (t2.scanChar$1(44));
  40968. t2.expectDone$0();
  40969. return queries;
  40970. },
  40971. $signature: 58
  40972. };
  40973. G.Parser.prototype = {
  40974. _parseIdentifier$0: function() {
  40975. return this.wrapSpanFormatException$1(new G.Parser__parseIdentifier_closure(this));
  40976. },
  40977. _isVariableDeclarationLike$0: function() {
  40978. var _this = this,
  40979. t1 = _this.scanner;
  40980. if (!t1.scanChar$1(36))
  40981. return false;
  40982. if (!_this.lookingAtIdentifier$0())
  40983. return false;
  40984. _this.identifier$0();
  40985. _this.whitespace$0();
  40986. return t1.scanChar$1(58);
  40987. },
  40988. whitespace$0: function() {
  40989. do
  40990. this.whitespaceWithoutComments$0();
  40991. while (this.scanComment$0());
  40992. },
  40993. whitespaceWithoutComments$0: function() {
  40994. var t3,
  40995. t1 = this.scanner,
  40996. t2 = t1.string.length;
  40997. while (true) {
  40998. if (t1._string_scanner$_position !== t2) {
  40999. t3 = t1.peekChar$0();
  41000. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  41001. } else
  41002. t3 = false;
  41003. if (!t3)
  41004. break;
  41005. t1.readChar$0();
  41006. }
  41007. },
  41008. spaces$0: function() {
  41009. var t3,
  41010. t1 = this.scanner,
  41011. t2 = t1.string.length;
  41012. while (true) {
  41013. if (t1._string_scanner$_position !== t2) {
  41014. t3 = t1.peekChar$0();
  41015. t3 = t3 === 32 || t3 === 9;
  41016. } else
  41017. t3 = false;
  41018. if (!t3)
  41019. break;
  41020. t1.readChar$0();
  41021. }
  41022. },
  41023. scanComment$0: function() {
  41024. var next,
  41025. t1 = this.scanner;
  41026. if (t1.peekChar$0() !== 47)
  41027. return false;
  41028. next = t1.peekChar$1(1);
  41029. if (next === 47) {
  41030. this.silentComment$0();
  41031. return true;
  41032. } else if (next === 42) {
  41033. this.loudComment$0();
  41034. return true;
  41035. } else
  41036. return false;
  41037. },
  41038. silentComment$0: function() {
  41039. var t2, t3,
  41040. t1 = this.scanner;
  41041. t1.expect$1("//");
  41042. t2 = t1.string.length;
  41043. while (true) {
  41044. if (t1._string_scanner$_position !== t2) {
  41045. t3 = t1.peekChar$0();
  41046. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  41047. } else
  41048. t3 = false;
  41049. if (!t3)
  41050. break;
  41051. t1.readChar$0();
  41052. }
  41053. },
  41054. loudComment$0: function() {
  41055. var next,
  41056. t1 = this.scanner;
  41057. t1.expect$1("/*");
  41058. for (; true;) {
  41059. if (t1.readChar$0() !== 42)
  41060. continue;
  41061. do
  41062. next = t1.readChar$0();
  41063. while (next === 42);
  41064. if (next === 47)
  41065. break;
  41066. }
  41067. },
  41068. identifier$2$normalize$unit: function(normalize, unit) {
  41069. var t2, first, _this = this,
  41070. _s20_ = "Expected identifier.",
  41071. text = new P.StringBuffer(""),
  41072. t1 = _this.scanner;
  41073. if (t1.scanChar$1(45)) {
  41074. t2 = text._contents = H.Primitives_stringFromCharCode(45);
  41075. if (t1.scanChar$1(45)) {
  41076. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  41077. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  41078. t1 = text._contents;
  41079. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41080. }
  41081. } else
  41082. t2 = "";
  41083. first = t1.peekChar$0();
  41084. if (first == null)
  41085. t1.error$1(_s20_);
  41086. else if (normalize && first === 95) {
  41087. t1.readChar$0();
  41088. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  41089. } else if (first === 95 || T.isAlphabetic0(first) || first >= 128)
  41090. text._contents = t2 + H.Primitives_stringFromCharCode(t1.readChar$0());
  41091. else if (first === 92)
  41092. text._contents = t2 + H.S(_this.escape$1$identifierStart(true));
  41093. else
  41094. t1.error$1(_s20_);
  41095. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  41096. t1 = text._contents;
  41097. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41098. },
  41099. identifier$0: function() {
  41100. return this.identifier$2$normalize$unit(false, false);
  41101. },
  41102. identifier$1$normalize: function(normalize) {
  41103. return this.identifier$2$normalize$unit(normalize, false);
  41104. },
  41105. identifier$1$unit: function(unit) {
  41106. return this.identifier$2$normalize$unit(false, unit);
  41107. },
  41108. _identifierBody$3$normalize$unit: function(text, normalize, unit) {
  41109. var t1, next, second, t2;
  41110. for (t1 = this.scanner; true;) {
  41111. next = t1.peekChar$0();
  41112. if (next == null)
  41113. break;
  41114. else if (unit && next === 45) {
  41115. second = t1.peekChar$1(1);
  41116. if (second != null)
  41117. if (second !== 46)
  41118. t2 = second >= 48 && second <= 57;
  41119. else
  41120. t2 = true;
  41121. else
  41122. t2 = false;
  41123. if (t2)
  41124. break;
  41125. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41126. } else if (normalize && next === 95) {
  41127. t1.readChar$0();
  41128. text._contents += H.Primitives_stringFromCharCode(45);
  41129. } else {
  41130. if (next !== 95) {
  41131. if (!(next >= 97 && next <= 122))
  41132. t2 = next >= 65 && next <= 90;
  41133. else
  41134. t2 = true;
  41135. t2 = t2 || next >= 128;
  41136. } else
  41137. t2 = true;
  41138. if (!t2) {
  41139. t2 = next >= 48 && next <= 57;
  41140. t2 = t2 || next === 45;
  41141. } else
  41142. t2 = true;
  41143. if (t2)
  41144. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41145. else if (next === 92)
  41146. text._contents += H.S(this.escape$0());
  41147. else
  41148. break;
  41149. }
  41150. }
  41151. },
  41152. _identifierBody$1: function(text) {
  41153. return this._identifierBody$3$normalize$unit(text, false, false);
  41154. },
  41155. string$0: function() {
  41156. var t2, buffer, next,
  41157. t1 = this.scanner,
  41158. quote = t1.readChar$0();
  41159. if (quote !== 39 && quote !== 34) {
  41160. t2 = t1._string_scanner$_position;
  41161. t1.error$2$position("Expected string.", t2 - 1);
  41162. }
  41163. buffer = new P.StringBuffer("");
  41164. for (; true;) {
  41165. next = t1.peekChar$0();
  41166. if (next === quote) {
  41167. t1.readChar$0();
  41168. break;
  41169. } else if (next == null || next === 10 || next === 13 || next === 12)
  41170. t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  41171. else if (next === 92) {
  41172. t2 = t1.peekChar$1(1);
  41173. if (t2 === 10 || t2 === 13 || t2 === 12) {
  41174. t1.readChar$0();
  41175. t1.readChar$0();
  41176. } else
  41177. buffer._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  41178. } else
  41179. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41180. }
  41181. t1 = buffer._contents;
  41182. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41183. },
  41184. naturalNumber$0: function() {
  41185. var number, t2,
  41186. t1 = this.scanner,
  41187. first = t1.readChar$0();
  41188. if (!T.isDigit(first))
  41189. t1.error$2$position("Expected digit.", t1._string_scanner$_position - 1);
  41190. number = first - 48;
  41191. while (true) {
  41192. t2 = t1.peekChar$0();
  41193. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  41194. break;
  41195. number = number * 10 + (t1.readChar$0() - 48);
  41196. }
  41197. return number;
  41198. },
  41199. declarationValue$1$allowEmpty: function(allowEmpty) {
  41200. var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
  41201. buffer = new P.StringBuffer(""),
  41202. brackets = H.setRuntimeTypeInfo([], type$.JSArray_legacy_int);
  41203. $label0$1:
  41204. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  41205. next = t1.peekChar$0();
  41206. switch (next) {
  41207. case 92:
  41208. buffer._contents += H.S(_this.escape$1$identifierStart(true));
  41209. wroteNewline = false;
  41210. break;
  41211. case 34:
  41212. case 39:
  41213. start = t1._string_scanner$_position;
  41214. t2.call$0();
  41215. end = t1._string_scanner$_position;
  41216. buffer._contents += J.substring$2$s(t1.string, start, end);
  41217. wroteNewline = false;
  41218. break;
  41219. case 47:
  41220. if (t1.peekChar$1(1) === 42) {
  41221. t3 = _this.get$loudComment();
  41222. start = t1._string_scanner$_position;
  41223. t3.call$0();
  41224. end = t1._string_scanner$_position;
  41225. buffer._contents += J.substring$2$s(t1.string, start, end);
  41226. } else
  41227. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41228. wroteNewline = false;
  41229. break;
  41230. case 32:
  41231. case 9:
  41232. if (!wroteNewline) {
  41233. t3 = t1.peekChar$1(1);
  41234. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  41235. } else
  41236. t3 = true;
  41237. if (t3)
  41238. buffer._contents += H.Primitives_stringFromCharCode(32);
  41239. t1.readChar$0();
  41240. break;
  41241. case 10:
  41242. case 13:
  41243. case 12:
  41244. t3 = t1.peekChar$1(-1);
  41245. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  41246. buffer._contents += "\n";
  41247. t1.readChar$0();
  41248. wroteNewline = true;
  41249. break;
  41250. case 40:
  41251. case 123:
  41252. case 91:
  41253. buffer._contents += H.Primitives_stringFromCharCode(next);
  41254. brackets.push(T.opposite(t1.readChar$0()));
  41255. wroteNewline = false;
  41256. break;
  41257. case 41:
  41258. case 125:
  41259. case 93:
  41260. if (brackets.length === 0)
  41261. break $label0$1;
  41262. buffer._contents += H.Primitives_stringFromCharCode(next);
  41263. t1.expectChar$1(brackets.pop());
  41264. wroteNewline = false;
  41265. break;
  41266. case 59:
  41267. if (brackets.length === 0)
  41268. break $label0$1;
  41269. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41270. break;
  41271. case 117:
  41272. case 85:
  41273. url = _this.tryUrl$0();
  41274. if (url != null)
  41275. buffer._contents += url;
  41276. else
  41277. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41278. wroteNewline = false;
  41279. break;
  41280. default:
  41281. if (next == null)
  41282. break $label0$1;
  41283. if (_this.lookingAtIdentifier$0())
  41284. buffer._contents += _this.identifier$0();
  41285. else
  41286. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41287. wroteNewline = false;
  41288. break;
  41289. }
  41290. }
  41291. if (brackets.length !== 0)
  41292. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  41293. if (!allowEmpty && buffer._contents.length === 0)
  41294. t1.error$1("Expected token.");
  41295. t1 = buffer._contents;
  41296. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41297. },
  41298. declarationValue$0: function() {
  41299. return this.declarationValue$1$allowEmpty(false);
  41300. },
  41301. tryUrl$0: function() {
  41302. var buffer, next, t2, _this = this,
  41303. t1 = _this.scanner,
  41304. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41305. if (!_this.scanIdentifier$1("url"))
  41306. return null;
  41307. if (!t1.scanChar$1(40)) {
  41308. t1.set$state(start);
  41309. return null;
  41310. }
  41311. _this.whitespace$0();
  41312. buffer = new P.StringBuffer("");
  41313. buffer._contents = "url(";
  41314. for (; true;) {
  41315. next = t1.peekChar$0();
  41316. if (next == null)
  41317. break;
  41318. else {
  41319. if (next !== 37)
  41320. if (next !== 38)
  41321. if (next !== 35)
  41322. t2 = next >= 42 && next <= 126 || next >= 128;
  41323. else
  41324. t2 = true;
  41325. else
  41326. t2 = true;
  41327. else
  41328. t2 = true;
  41329. if (t2)
  41330. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41331. else if (next === 92)
  41332. buffer._contents += H.S(_this.escape$0());
  41333. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  41334. _this.whitespace$0();
  41335. if (t1.peekChar$0() !== 41)
  41336. break;
  41337. } else if (next === 41) {
  41338. t2 = buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41339. return t2.charCodeAt(0) == 0 ? t2 : t2;
  41340. } else
  41341. break;
  41342. }
  41343. }
  41344. t1.set$state(start);
  41345. return null;
  41346. },
  41347. variableName$0: function() {
  41348. this.scanner.expectChar$1(36);
  41349. return this.identifier$1$normalize(true);
  41350. },
  41351. escape$1$identifierStart: function(identifierStart) {
  41352. var value, first, i, next, t2, exception,
  41353. t1 = this.scanner,
  41354. start = t1._string_scanner$_position;
  41355. t1.expectChar$1(92);
  41356. value = 0;
  41357. first = t1.peekChar$0();
  41358. if (first == null)
  41359. return "";
  41360. else if (T.isNewline(first))
  41361. t1.error$1("Expected escape sequence.");
  41362. else if (T.isHex(first)) {
  41363. for (i = 0; i < 6; ++i) {
  41364. next = t1.peekChar$0();
  41365. if (next == null || !T.isHex(next))
  41366. break;
  41367. value *= 16;
  41368. value += T.asHex(t1.readChar$0());
  41369. }
  41370. this.scanCharIf$1(T.character__isWhitespace$closure());
  41371. } else
  41372. value = t1.readChar$0();
  41373. if (identifierStart) {
  41374. t2 = value;
  41375. t2 = t2 === 95 || T.isAlphabetic0(t2) || t2 >= 128;
  41376. } else {
  41377. t2 = value;
  41378. t2 = t2 === 95 || T.isAlphabetic0(t2) || t2 >= 128 || T.isDigit(t2) || t2 === 45;
  41379. }
  41380. if (t2)
  41381. try {
  41382. t2 = H.Primitives_stringFromCharCode(value);
  41383. return t2;
  41384. } catch (exception) {
  41385. if (type$.legacy_RangeError._is(H.unwrapException(exception)))
  41386. t1.error$3$length$position("Invalid Unicode code point.", t1._string_scanner$_position - start, start);
  41387. else
  41388. throw exception;
  41389. }
  41390. else {
  41391. if (!(value <= 31))
  41392. if (!J.$eq$(value, 127))
  41393. t1 = identifierStart && T.isDigit(value);
  41394. else
  41395. t1 = true;
  41396. else
  41397. t1 = true;
  41398. if (t1) {
  41399. t1 = H.Primitives_stringFromCharCode(92);
  41400. if (value > 15)
  41401. t1 += H.Primitives_stringFromCharCode(T.hexCharFor(C.JSNumber_methods._shrOtherPositive$1(value, 4)));
  41402. t1 = t1 + H.Primitives_stringFromCharCode(T.hexCharFor(value & 15)) + H.Primitives_stringFromCharCode(32);
  41403. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41404. } else
  41405. return P.String_String$fromCharCodes(H.setRuntimeTypeInfo([92, value], type$.JSArray_legacy_int), 0, null);
  41406. }
  41407. },
  41408. escape$0: function() {
  41409. return this.escape$1$identifierStart(false);
  41410. },
  41411. escapeCharacter$0: function() {
  41412. var first, value, i, next, t2,
  41413. t1 = this.scanner;
  41414. t1.expectChar$1(92);
  41415. first = t1.peekChar$0();
  41416. if (first == null)
  41417. return 65533;
  41418. else if (T.isNewline(first))
  41419. t1.error$1("Expected escape sequence.");
  41420. else if (T.isHex(first)) {
  41421. for (value = 0, i = 0; i < 6; ++i) {
  41422. next = t1.peekChar$0();
  41423. if (next == null || !T.isHex(next))
  41424. break;
  41425. value = (value << 4 >>> 0) + T.asHex(t1.readChar$0());
  41426. }
  41427. t2 = t1.peekChar$0();
  41428. if (t2 === 32 || t2 === 9 || T.isNewline(t2))
  41429. t1.readChar$0();
  41430. if (value !== 0)
  41431. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  41432. else
  41433. t1 = true;
  41434. if (t1)
  41435. return 65533;
  41436. else
  41437. return value;
  41438. } else
  41439. return t1.readChar$0();
  41440. },
  41441. scanCharIf$1: function(condition) {
  41442. var t1 = this.scanner;
  41443. if (!condition.call$1(t1.peekChar$0()))
  41444. return false;
  41445. t1.readChar$0();
  41446. return true;
  41447. },
  41448. scanIdentChar$2$caseSensitive: function(char, caseSensitive) {
  41449. var t3,
  41450. t1 = new G.Parser_scanIdentChar_matches(caseSensitive, char),
  41451. t2 = this.scanner,
  41452. next = t2.peekChar$0();
  41453. if (next != null && t1.call$1(next)) {
  41454. t2.readChar$0();
  41455. return true;
  41456. } else if (next === 92) {
  41457. t3 = t2._string_scanner$_position;
  41458. if (t1.call$1(this.escapeCharacter$0()))
  41459. return true;
  41460. t2.set$state(new S._SpanScannerState(t2, t3));
  41461. }
  41462. return false;
  41463. },
  41464. scanIdentChar$1: function(char) {
  41465. return this.scanIdentChar$2$caseSensitive(char, false);
  41466. },
  41467. expectIdentChar$1: function(letter) {
  41468. var t1;
  41469. if (this.scanIdentChar$2$caseSensitive(letter, false))
  41470. return;
  41471. t1 = this.scanner;
  41472. t1.error$2$position('Expected "' + H.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  41473. },
  41474. lookingAtNumber$0: function() {
  41475. var second, third,
  41476. t1 = this.scanner,
  41477. first = t1.peekChar$0();
  41478. if (first == null)
  41479. return false;
  41480. if (T.isDigit(first))
  41481. return true;
  41482. if (first === 46) {
  41483. second = t1.peekChar$1(1);
  41484. return second != null && T.isDigit(second);
  41485. } else if (first === 43 || first === 45) {
  41486. second = t1.peekChar$1(1);
  41487. if (second == null)
  41488. return false;
  41489. if (T.isDigit(second))
  41490. return true;
  41491. if (second !== 46)
  41492. return false;
  41493. third = t1.peekChar$1(2);
  41494. return third != null && T.isDigit(third);
  41495. } else
  41496. return false;
  41497. },
  41498. lookingAtIdentifier$1: function($forward) {
  41499. var t1, first, second;
  41500. if ($forward == null)
  41501. $forward = 0;
  41502. t1 = this.scanner;
  41503. first = t1.peekChar$1($forward);
  41504. if (first == null)
  41505. return false;
  41506. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || first === 92)
  41507. return true;
  41508. if (first !== 45)
  41509. return false;
  41510. second = t1.peekChar$1($forward + 1);
  41511. if (second == null)
  41512. return false;
  41513. return second === 95 || T.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
  41514. },
  41515. lookingAtIdentifier$0: function() {
  41516. return this.lookingAtIdentifier$1(null);
  41517. },
  41518. lookingAtIdentifierBody$0: function() {
  41519. var t1,
  41520. next = this.scanner.peekChar$0();
  41521. if (next != null)
  41522. t1 = next === 95 || T.isAlphabetic0(next) || next >= 128 || T.isDigit(next) || next === 45 || next === 92;
  41523. else
  41524. t1 = false;
  41525. return t1;
  41526. },
  41527. scanIdentifier$2$caseSensitive: function(text, caseSensitive) {
  41528. var t1, start, t2, cur, _this = this;
  41529. if (!_this.lookingAtIdentifier$0())
  41530. return false;
  41531. t1 = _this.scanner;
  41532. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41533. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  41534. cur = t2.__internal$_current;
  41535. if (_this.scanIdentChar$2$caseSensitive(cur, caseSensitive))
  41536. continue;
  41537. if (start._scanner !== t1)
  41538. H.throwExpression(P.ArgumentError$(string$.The_gi));
  41539. t2 = start.position;
  41540. if (t2 < 0 || t2 > t1.string.length)
  41541. H.throwExpression(P.ArgumentError$("Invalid position " + t2));
  41542. t1._string_scanner$_position = t2;
  41543. t1._lastMatch = null;
  41544. return false;
  41545. }
  41546. if (!_this.lookingAtIdentifierBody$0())
  41547. return true;
  41548. t1.set$state(start);
  41549. return false;
  41550. },
  41551. scanIdentifier$1: function(text) {
  41552. return this.scanIdentifier$2$caseSensitive(text, false);
  41553. },
  41554. expectIdentifier$2$name: function(text, $name) {
  41555. var t1, start, t2, cur;
  41556. if ($name == null)
  41557. $name = '"' + text + '"';
  41558. t1 = this.scanner;
  41559. start = t1._string_scanner$_position;
  41560. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  41561. cur = t2.__internal$_current;
  41562. if (this.scanIdentChar$2$caseSensitive(cur, false))
  41563. continue;
  41564. t1.error$2$position("Expected " + $name + ".", start);
  41565. }
  41566. if (!this.lookingAtIdentifierBody$0())
  41567. return;
  41568. t1.error$2$position("Expected " + $name, start);
  41569. },
  41570. expectIdentifier$1: function(text) {
  41571. return this.expectIdentifier$2$name(text, null);
  41572. },
  41573. rawText$1: function(consumer) {
  41574. var t1 = this.scanner,
  41575. start = t1._string_scanner$_position;
  41576. consumer.call$0();
  41577. return t1.substring$1(0, start);
  41578. },
  41579. error$2: function(message, span) {
  41580. return H.throwExpression(E.StringScannerException$(message, span, this.scanner.string));
  41581. },
  41582. withErrorMessage$1$2: function(message, callback) {
  41583. var error, t1, exception;
  41584. try {
  41585. t1 = callback.call$0();
  41586. return t1;
  41587. } catch (exception) {
  41588. t1 = H.unwrapException(exception);
  41589. if (type$.legacy_SourceSpanFormatException._is(t1)) {
  41590. error = t1;
  41591. throw H.wrapException(G.SourceSpanFormatException$(message, error.get$span(), error.get$source()));
  41592. } else
  41593. throw exception;
  41594. }
  41595. },
  41596. withErrorMessage$2: function(message, callback) {
  41597. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  41598. },
  41599. wrapSpanFormatException$1$1: function(callback) {
  41600. var error, span, startPosition, t1, exception;
  41601. try {
  41602. t1 = callback.call$0();
  41603. return t1;
  41604. } catch (exception) {
  41605. t1 = H.unwrapException(exception);
  41606. if (type$.legacy_SourceSpanFormatException._is(t1)) {
  41607. error = t1;
  41608. span = error.get$span();
  41609. if (B.startsWithIgnoreCase(error._span_exception$_message, "expected")) {
  41610. t1 = span;
  41611. t1 = t1._end - t1._file$_start === 0;
  41612. } else
  41613. t1 = false;
  41614. if (t1) {
  41615. t1 = span;
  41616. startPosition = this._firstNewlineBefore$1(Y.FileLocation$_(t1.file, t1._file$_start).offset);
  41617. t1 = span;
  41618. if (!J.$eq$(startPosition, Y.FileLocation$_(t1.file, t1._file$_start).offset))
  41619. span = span.file.span$2(startPosition, startPosition);
  41620. }
  41621. throw H.wrapException(E.SassFormatException$(error._span_exception$_message, span));
  41622. } else
  41623. throw exception;
  41624. }
  41625. },
  41626. wrapSpanFormatException$1: function(callback) {
  41627. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  41628. },
  41629. _firstNewlineBefore$1: function(position) {
  41630. var t1, t2, lastNewline, codeUnit,
  41631. index = position - 1;
  41632. for (t1 = this.scanner.string, t2 = J.getInterceptor$s(t1), lastNewline = null; index >= 0;) {
  41633. codeUnit = t2.codeUnitAt$1(t1, index);
  41634. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  41635. return lastNewline == null ? position : lastNewline;
  41636. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  41637. lastNewline = index;
  41638. --index;
  41639. }
  41640. return position;
  41641. }
  41642. };
  41643. G.Parser__parseIdentifier_closure.prototype = {
  41644. call$0: function() {
  41645. var t1 = this.$this,
  41646. result = t1.identifier$0();
  41647. t1.scanner.expectDone$0();
  41648. return result;
  41649. },
  41650. $signature: 9
  41651. };
  41652. G.Parser_scanIdentChar_matches.prototype = {
  41653. call$1: function(actual) {
  41654. var t1 = this.char;
  41655. return this.caseSensitive ? actual === t1 : T.characterEqualsIgnoreCase(t1, actual);
  41656. },
  41657. $signature: 16
  41658. };
  41659. U.SassParser.prototype = {
  41660. get$currentIndentation: function() {
  41661. return this._currentIndentation;
  41662. },
  41663. get$indented: function() {
  41664. return true;
  41665. },
  41666. styleRuleSelector$0: function() {
  41667. var t4,
  41668. t1 = this.scanner,
  41669. t2 = t1._string_scanner$_position,
  41670. t3 = new P.StringBuffer(""),
  41671. buffer = new Z.InterpolationBuffer(t3, []);
  41672. do {
  41673. buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
  41674. t4 = t3._contents += H.Primitives_stringFromCharCode(10);
  41675. } while (C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(T.character__isNewline$closure()));
  41676. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  41677. },
  41678. expectStatementSeparator$1: function($name) {
  41679. var _this = this;
  41680. if (!_this.atEndOfStatement$0())
  41681. _this._expectNewline$0();
  41682. if (_this._peekIndentation$0() <= _this._currentIndentation)
  41683. return;
  41684. _this.scanner.error$2$position("Nothing may be indented " + ($name == null ? "here" : "beneath a " + $name) + ".", _this._nextIndentationEnd.position);
  41685. },
  41686. expectStatementSeparator$0: function() {
  41687. return this.expectStatementSeparator$1(null);
  41688. },
  41689. atEndOfStatement$0: function() {
  41690. var next = this.scanner.peekChar$0();
  41691. return next == null || T.isNewline(next);
  41692. },
  41693. lookingAtChildren$0: function() {
  41694. return this.atEndOfStatement$0() && this._peekIndentation$0() > this._currentIndentation;
  41695. },
  41696. importArgument$0: function() {
  41697. var url, span, innerError, start, next, t2, exception, _this = this,
  41698. t1 = _this.scanner;
  41699. switch (t1.peekChar$0()) {
  41700. case 117:
  41701. case 85:
  41702. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41703. if (_this.scanIdentifier$1("url"))
  41704. if (t1.scanChar$1(40)) {
  41705. t1.set$state(start);
  41706. return _this.super$StylesheetParser$importArgument();
  41707. } else
  41708. t1.set$state(start);
  41709. break;
  41710. case 39:
  41711. case 34:
  41712. return _this.super$StylesheetParser$importArgument();
  41713. }
  41714. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41715. next = t1.peekChar$0();
  41716. while (true) {
  41717. if (next != null)
  41718. if (next !== 44)
  41719. if (next !== 59)
  41720. t2 = !(next === 10 || next === 13 || next === 12);
  41721. else
  41722. t2 = false;
  41723. else
  41724. t2 = false;
  41725. else
  41726. t2 = false;
  41727. if (!t2)
  41728. break;
  41729. t1.readChar$0();
  41730. next = t1.peekChar$0();
  41731. }
  41732. url = t1.substring$1(0, start.position);
  41733. span = t1.spanFrom$1(start);
  41734. if (_this.isPlainImportUrl$1(url))
  41735. return new Q.StaticImport(X.Interpolation$(H.setRuntimeTypeInfo([N.serializeValue0(new D.SassString(url, true), true, true)], type$.JSArray_legacy_Object), span), null, null, span);
  41736. else
  41737. try {
  41738. t1 = _this.parseImportUrl$1(url);
  41739. return new B.DynamicImport(t1, span);
  41740. } catch (exception) {
  41741. t1 = H.unwrapException(exception);
  41742. if (type$.legacy_FormatException._is(t1)) {
  41743. innerError = t1;
  41744. _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), span);
  41745. } else
  41746. throw exception;
  41747. }
  41748. },
  41749. scanElse$1: function(ifIndentation) {
  41750. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  41751. if (_this._peekIndentation$0() != ifIndentation)
  41752. return false;
  41753. t1 = _this.scanner;
  41754. t2 = t1._string_scanner$_position;
  41755. startIndentation = _this._currentIndentation;
  41756. startNextIndentation = _this._nextIndentation;
  41757. startNextIndentationEnd = _this._nextIndentationEnd;
  41758. _this._readIndentation$0();
  41759. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  41760. return true;
  41761. t1.set$state(new S._SpanScannerState(t1, t2));
  41762. _this._currentIndentation = startIndentation;
  41763. _this._nextIndentation = startNextIndentation;
  41764. _this._nextIndentationEnd = startNextIndentationEnd;
  41765. return false;
  41766. },
  41767. children$1: function(child) {
  41768. var children = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement);
  41769. this._whileIndentedLower$1(new U.SassParser_children_closure(this, children, child));
  41770. return children;
  41771. },
  41772. statements$1: function(statement) {
  41773. var statements, t2, child,
  41774. t1 = this.scanner,
  41775. first = t1.peekChar$0();
  41776. if (first === 9 || first === 32)
  41777. t1.error$3$length$position(string$.Indent, t1._string_scanner$_position, 0);
  41778. statements = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement);
  41779. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  41780. child = this._child$1(statement);
  41781. if (child != null)
  41782. statements.push(child);
  41783. this._readIndentation$0();
  41784. }
  41785. return statements;
  41786. },
  41787. _child$1: function(child) {
  41788. var _this = this,
  41789. t1 = _this.scanner;
  41790. switch (t1.peekChar$0()) {
  41791. case 13:
  41792. case 10:
  41793. case 12:
  41794. return null;
  41795. case 36:
  41796. return _this.variableDeclarationWithoutNamespace$0();
  41797. case 47:
  41798. switch (t1.peekChar$1(1)) {
  41799. case 47:
  41800. return _this._silentComment$0();
  41801. case 42:
  41802. return _this._loudComment$0();
  41803. default:
  41804. return child.call$0();
  41805. }
  41806. default:
  41807. return child.call$0();
  41808. }
  41809. },
  41810. _silentComment$0: function() {
  41811. var buffer, parentIndentation, t3, commentPrefix, i, t4, i0, t5, t6, _this = this,
  41812. t1 = _this.scanner,
  41813. t2 = t1._string_scanner$_position;
  41814. t1.expect$1("//");
  41815. buffer = new P.StringBuffer("");
  41816. parentIndentation = _this._currentIndentation;
  41817. t3 = t1.string;
  41818. $label0$0:
  41819. do {
  41820. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  41821. for (i = commentPrefix.length; true;) {
  41822. t4 = buffer._contents += commentPrefix;
  41823. for (i0 = i; i0 < _this._currentIndentation - parentIndentation; ++i0) {
  41824. t4 += H.Primitives_stringFromCharCode(32);
  41825. buffer._contents = t4;
  41826. }
  41827. t5 = t3.length;
  41828. while (true) {
  41829. if (t1._string_scanner$_position !== t5) {
  41830. t6 = t1.peekChar$0();
  41831. t6 = !(t6 === 10 || t6 === 13 || t6 === 12);
  41832. } else
  41833. t6 = false;
  41834. if (!t6)
  41835. break;
  41836. t4 += H.Primitives_stringFromCharCode(t1.readChar$0());
  41837. buffer._contents = t4;
  41838. }
  41839. buffer._contents = t4 + "\n";
  41840. if (_this._peekIndentation$0() < parentIndentation)
  41841. break $label0$0;
  41842. if (_this._peekIndentation$0() === parentIndentation) {
  41843. if (t1.peekChar$1(1 + parentIndentation) === 47 && t1.peekChar$1(2 + parentIndentation) === 47)
  41844. _this._readIndentation$0();
  41845. break;
  41846. }
  41847. _this._readIndentation$0();
  41848. }
  41849. } while (t1.scan$1("//"));
  41850. t3 = buffer._contents;
  41851. return _this.lastSilentComment = new B.SilentComment(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  41852. },
  41853. _loudComment$0: function() {
  41854. var t3, t4, buffer, parentIndentation, t5, first, beginningOfComment, t6, end, i, t7, _this = this,
  41855. t1 = _this.scanner,
  41856. t2 = t1._string_scanner$_position;
  41857. t1.expect$1("/*");
  41858. t3 = new P.StringBuffer("");
  41859. t4 = [];
  41860. buffer = new Z.InterpolationBuffer(t3, t4);
  41861. t3._contents = "/*";
  41862. parentIndentation = _this._currentIndentation;
  41863. for (t5 = t1.string, first = true; true; first = false) {
  41864. if (first) {
  41865. beginningOfComment = t1._string_scanner$_position;
  41866. _this.spaces$0();
  41867. t6 = t1.peekChar$0();
  41868. if (t6 === 10 || t6 === 13 || t6 === 12) {
  41869. _this._readIndentation$0();
  41870. t3._contents += H.Primitives_stringFromCharCode(32);
  41871. } else {
  41872. end = t1._string_scanner$_position;
  41873. t3._contents += J.substring$2$s(t5, beginningOfComment, end);
  41874. }
  41875. } else {
  41876. t6 = t3._contents += "\n";
  41877. t3._contents = t6 + " * ";
  41878. }
  41879. for (i = 3; i < _this._currentIndentation - parentIndentation; ++i)
  41880. t3._contents += H.Primitives_stringFromCharCode(32);
  41881. $label0$1:
  41882. for (t6 = t5.length; t1._string_scanner$_position !== t6;)
  41883. switch (t1.peekChar$0()) {
  41884. case 10:
  41885. case 13:
  41886. case 12:
  41887. break $label0$1;
  41888. case 35:
  41889. if (t1.peekChar$1(1) === 123) {
  41890. t7 = _this.singleInterpolation$0();
  41891. buffer._flushText$0();
  41892. t4.push(t7);
  41893. } else
  41894. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41895. break;
  41896. default:
  41897. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  41898. break;
  41899. }
  41900. if (_this._peekIndentation$0() <= parentIndentation)
  41901. break;
  41902. for (; _this._lookingAtDoubleNewline$0();) {
  41903. _this._expectNewline$0();
  41904. t6 = t3._contents += "\n";
  41905. t3._contents = t6 + " *";
  41906. }
  41907. _this._readIndentation$0();
  41908. }
  41909. t4 = t3._contents;
  41910. if (!C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
  41911. t3._contents += " */";
  41912. return new L.LoudComment(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))));
  41913. },
  41914. whitespaceWithoutComments$0: function() {
  41915. var t1, t2, next;
  41916. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  41917. next = t1.peekChar$0();
  41918. if (next !== 9 && next !== 32)
  41919. break;
  41920. t1.readChar$0();
  41921. }
  41922. },
  41923. loudComment$0: function() {
  41924. var next,
  41925. t1 = this.scanner;
  41926. t1.expect$1("/*");
  41927. for (; true;) {
  41928. next = t1.readChar$0();
  41929. if (next === 10 || next === 13 || next === 12)
  41930. t1.error$1("expected */.");
  41931. if (next !== 42)
  41932. continue;
  41933. do
  41934. next = t1.readChar$0();
  41935. while (next === 42);
  41936. if (next === 47)
  41937. break;
  41938. }
  41939. },
  41940. _expectNewline$0: function() {
  41941. var t1 = this.scanner;
  41942. switch (t1.peekChar$0()) {
  41943. case 59:
  41944. t1.error$1(string$.semico);
  41945. break;
  41946. case 13:
  41947. t1.readChar$0();
  41948. if (t1.peekChar$0() === 10)
  41949. t1.readChar$0();
  41950. return;
  41951. case 10:
  41952. case 12:
  41953. t1.readChar$0();
  41954. return;
  41955. default:
  41956. t1.error$1("expected newline.");
  41957. }
  41958. },
  41959. _lookingAtDoubleNewline$0: function() {
  41960. var nextChar,
  41961. t1 = this.scanner;
  41962. switch (t1.peekChar$0()) {
  41963. case 13:
  41964. nextChar = t1.peekChar$1(1);
  41965. if (nextChar === 10)
  41966. return T.isNewline(t1.peekChar$1(2));
  41967. return nextChar === 13 || nextChar === 12;
  41968. case 10:
  41969. case 12:
  41970. return T.isNewline(t1.peekChar$1(1));
  41971. default:
  41972. return false;
  41973. }
  41974. },
  41975. _whileIndentedLower$1: function(body) {
  41976. var t1, t2, childIndentation, indentation, t3, t4, t5, _this = this,
  41977. parentIndentation = _this._currentIndentation;
  41978. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._peekIndentation$0() > parentIndentation;) {
  41979. indentation = _this._readIndentation$0();
  41980. if (childIndentation == null)
  41981. childIndentation = indentation;
  41982. if (childIndentation != indentation) {
  41983. t3 = "Inconsistent indentation, expected " + H.S(childIndentation) + " spaces.";
  41984. t4 = t1._string_scanner$_position;
  41985. t5 = t2.getColumn$1(t4);
  41986. t1.error$3$length$position(t3, t2.getColumn$1(t1._string_scanner$_position), t4 - t5);
  41987. }
  41988. body.call$0();
  41989. }
  41990. },
  41991. _readIndentation$0: function() {
  41992. var _this = this;
  41993. if (_this._nextIndentation == null)
  41994. _this._peekIndentation$0();
  41995. _this._currentIndentation = _this._nextIndentation;
  41996. _this.scanner.set$state(_this._nextIndentationEnd);
  41997. _this._nextIndentationEnd = _this._nextIndentation = null;
  41998. return _this._currentIndentation;
  41999. },
  42000. _peekIndentation$0: function() {
  42001. var t2, t3, start, containsTab, containsSpace, next, t4, _this = this,
  42002. t1 = _this._nextIndentation;
  42003. if (t1 != null)
  42004. return t1;
  42005. t1 = _this.scanner;
  42006. t2 = t1._string_scanner$_position;
  42007. t3 = t1.string.length;
  42008. if (t2 === t3) {
  42009. _this._nextIndentation = 0;
  42010. _this._nextIndentationEnd = new S._SpanScannerState(t1, t2);
  42011. return 0;
  42012. }
  42013. start = new S._SpanScannerState(t1, t2);
  42014. if (!_this.scanCharIf$1(T.character__isNewline$closure()))
  42015. t1.error$2$position("Expected newline.", t1._string_scanner$_position);
  42016. do {
  42017. _this._nextIndentation = 0;
  42018. for (containsTab = false, containsSpace = false; true;) {
  42019. next = t1.peekChar$0();
  42020. if (next === 32)
  42021. containsSpace = true;
  42022. else {
  42023. if (next !== 9)
  42024. break;
  42025. containsTab = true;
  42026. }
  42027. _this._nextIndentation = _this._nextIndentation + 1;
  42028. t1.readChar$0();
  42029. }
  42030. t2 = t1._string_scanner$_position;
  42031. if (t2 === t3) {
  42032. _this._nextIndentation = 0;
  42033. _this._nextIndentationEnd = new S._SpanScannerState(t1, t2);
  42034. t1.set$state(start);
  42035. return 0;
  42036. }
  42037. } while (_this.scanCharIf$1(T.character__isNewline$closure()));
  42038. if (containsTab) {
  42039. if (containsSpace) {
  42040. t2 = t1._string_scanner$_position;
  42041. t3 = t1._sourceFile;
  42042. t4 = t3.getColumn$1(t2);
  42043. t1.error$3$length$position("Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  42044. } else if (_this._spaces === true) {
  42045. t2 = t1._string_scanner$_position;
  42046. t3 = t1._sourceFile;
  42047. t4 = t3.getColumn$1(t2);
  42048. t1.error$3$length$position("Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  42049. }
  42050. } else if (containsSpace && _this._spaces === false) {
  42051. t2 = t1._string_scanner$_position;
  42052. t3 = t1._sourceFile;
  42053. t4 = t3.getColumn$1(t2);
  42054. t1.error$3$length$position("Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  42055. }
  42056. if (_this._nextIndentation > 0)
  42057. if (_this._spaces == null)
  42058. _this._spaces = containsSpace;
  42059. _this._nextIndentationEnd = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42060. t1.set$state(start);
  42061. return _this._nextIndentation;
  42062. }
  42063. };
  42064. U.SassParser_children_closure.prototype = {
  42065. call$0: function() {
  42066. this.children.push(this.$this._child$1(this.child));
  42067. },
  42068. $signature: 0
  42069. };
  42070. L.ScssParser.prototype = {
  42071. get$indented: function() {
  42072. return false;
  42073. },
  42074. get$currentIndentation: function() {
  42075. return null;
  42076. },
  42077. styleRuleSelector$0: function() {
  42078. return this.almostAnyValue$0();
  42079. },
  42080. expectStatementSeparator$1: function($name) {
  42081. var t1, next;
  42082. this.whitespaceWithoutComments$0();
  42083. t1 = this.scanner;
  42084. if (t1._string_scanner$_position === t1.string.length)
  42085. return;
  42086. next = t1.peekChar$0();
  42087. if (next === 59 || next === 125)
  42088. return;
  42089. t1.expectChar$1(59);
  42090. },
  42091. expectStatementSeparator$0: function() {
  42092. return this.expectStatementSeparator$1(null);
  42093. },
  42094. atEndOfStatement$0: function() {
  42095. var next = this.scanner.peekChar$0();
  42096. return next == null || next === 59 || next === 125 || next === 123;
  42097. },
  42098. lookingAtChildren$0: function() {
  42099. return this.scanner.peekChar$0() === 123;
  42100. },
  42101. scanElse$1: function(_) {
  42102. var t3, _this = this,
  42103. t1 = _this.scanner,
  42104. t2 = t1._string_scanner$_position;
  42105. _this.whitespace$0();
  42106. t3 = t1._string_scanner$_position;
  42107. if (t1.scanChar$1(64)) {
  42108. if (_this.scanIdentifier$2$caseSensitive("else", true))
  42109. return true;
  42110. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  42111. _this.logger.warn$3$deprecation$span(string$.x40elsei, true, t1.spanFrom$1(new S._SpanScannerState(t1, t3)));
  42112. t1.set$position(t1._string_scanner$_position - 2);
  42113. return true;
  42114. }
  42115. }
  42116. t1.set$state(new S._SpanScannerState(t1, t2));
  42117. return false;
  42118. },
  42119. children$1: function(child) {
  42120. var children, _this = this,
  42121. t1 = _this.scanner;
  42122. t1.expectChar$1(123);
  42123. _this.whitespaceWithoutComments$0();
  42124. children = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement);
  42125. for (; true;)
  42126. switch (t1.peekChar$0()) {
  42127. case 36:
  42128. children.push(_this.variableDeclarationWithoutNamespace$0());
  42129. break;
  42130. case 47:
  42131. switch (t1.peekChar$1(1)) {
  42132. case 47:
  42133. children.push(_this._scss$_silentComment$0());
  42134. _this.whitespaceWithoutComments$0();
  42135. break;
  42136. case 42:
  42137. children.push(_this._scss$_loudComment$0());
  42138. _this.whitespaceWithoutComments$0();
  42139. break;
  42140. default:
  42141. children.push(child.call$0());
  42142. break;
  42143. }
  42144. break;
  42145. case 59:
  42146. t1.readChar$0();
  42147. _this.whitespaceWithoutComments$0();
  42148. break;
  42149. case 125:
  42150. t1.expectChar$1(125);
  42151. return children;
  42152. default:
  42153. children.push(child.call$0());
  42154. break;
  42155. }
  42156. },
  42157. statements$1: function(statement) {
  42158. var t1, t2, child, _this = this,
  42159. statements = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement);
  42160. _this.whitespaceWithoutComments$0();
  42161. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  42162. switch (t1.peekChar$0()) {
  42163. case 36:
  42164. statements.push(_this.variableDeclarationWithoutNamespace$0());
  42165. break;
  42166. case 47:
  42167. switch (t1.peekChar$1(1)) {
  42168. case 47:
  42169. statements.push(_this._scss$_silentComment$0());
  42170. _this.whitespaceWithoutComments$0();
  42171. break;
  42172. case 42:
  42173. statements.push(_this._scss$_loudComment$0());
  42174. _this.whitespaceWithoutComments$0();
  42175. break;
  42176. default:
  42177. child = statement.call$0();
  42178. if (child != null)
  42179. statements.push(child);
  42180. break;
  42181. }
  42182. break;
  42183. case 59:
  42184. t1.readChar$0();
  42185. _this.whitespaceWithoutComments$0();
  42186. break;
  42187. default:
  42188. child = statement.call$0();
  42189. if (child != null)
  42190. statements.push(child);
  42191. break;
  42192. }
  42193. return statements;
  42194. },
  42195. _scss$_silentComment$0: function() {
  42196. var t2, t3, _this = this,
  42197. t1 = _this.scanner,
  42198. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42199. t1.expect$1("//");
  42200. t2 = t1.string.length;
  42201. do {
  42202. while (true) {
  42203. if (t1._string_scanner$_position !== t2) {
  42204. t3 = t1.readChar$0();
  42205. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  42206. } else
  42207. t3 = false;
  42208. if (!t3)
  42209. break;
  42210. }
  42211. if (t1._string_scanner$_position === t2)
  42212. break;
  42213. _this.whitespaceWithoutComments$0();
  42214. } while (t1.scan$1("//"));
  42215. if (_this.get$plainCss())
  42216. _this.error$2(string$.Silent, t1.spanFrom$1(start));
  42217. return _this.lastSilentComment = new B.SilentComment(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  42218. },
  42219. _scss$_loudComment$0: function() {
  42220. var t3, t4, buffer, t5, endPosition,
  42221. t1 = this.scanner,
  42222. t2 = t1._string_scanner$_position;
  42223. t1.expect$1("/*");
  42224. t3 = new P.StringBuffer("");
  42225. t4 = [];
  42226. buffer = new Z.InterpolationBuffer(t3, t4);
  42227. t3._contents = "/*";
  42228. for (; true;)
  42229. switch (t1.peekChar$0()) {
  42230. case 35:
  42231. if (t1.peekChar$1(1) === 123) {
  42232. t5 = this.singleInterpolation$0();
  42233. buffer._flushText$0();
  42234. t4.push(t5);
  42235. } else
  42236. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42237. break;
  42238. case 42:
  42239. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42240. if (t1.peekChar$0() !== 47)
  42241. break;
  42242. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42243. endPosition = t1._string_scanner$_position;
  42244. return new L.LoudComment(buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, new S._SpanScannerState(t1, t2).position, endPosition)));
  42245. case 13:
  42246. t1.readChar$0();
  42247. if (t1.peekChar$0() !== 10)
  42248. t3._contents += H.Primitives_stringFromCharCode(10);
  42249. break;
  42250. case 12:
  42251. t1.readChar$0();
  42252. t3._contents += H.Primitives_stringFromCharCode(10);
  42253. break;
  42254. default:
  42255. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42256. break;
  42257. }
  42258. }
  42259. };
  42260. T.SelectorParser.prototype = {
  42261. parse$0: function() {
  42262. return this.wrapSpanFormatException$1(new T.SelectorParser_parse_closure(this));
  42263. },
  42264. parseCompoundSelector$0: function() {
  42265. return this.wrapSpanFormatException$1(new T.SelectorParser_parseCompoundSelector_closure(this));
  42266. },
  42267. _selectorList$0: function() {
  42268. var t3, t4, lineBreak, _this = this,
  42269. t1 = _this.scanner,
  42270. t2 = t1._sourceFile,
  42271. previousLine = t2.getLine$1(t1._string_scanner$_position),
  42272. components = H.setRuntimeTypeInfo([_this._complexSelector$0()], type$.JSArray_legacy_ComplexSelector);
  42273. _this.whitespace$0();
  42274. for (t3 = t1.string; t1.scanChar$1(44);) {
  42275. _this.whitespace$0();
  42276. if (t1.peekChar$0() === 44)
  42277. continue;
  42278. t4 = t1._string_scanner$_position;
  42279. if (t4 === t3.length)
  42280. break;
  42281. lineBreak = t2.getLine$1(t4) != previousLine;
  42282. if (lineBreak)
  42283. previousLine = t2.getLine$1(t1._string_scanner$_position);
  42284. components.push(_this._complexSelector$1$lineBreak(lineBreak));
  42285. }
  42286. return D.SelectorList$(components);
  42287. },
  42288. _complexSelector$1$lineBreak: function(lineBreak) {
  42289. var t1, next, _this = this,
  42290. _s58_ = string$.x22x26__ma,
  42291. components = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent);
  42292. $label0$1:
  42293. for (t1 = _this.scanner; true;) {
  42294. _this.whitespace$0();
  42295. next = t1.peekChar$0();
  42296. switch (next) {
  42297. case 43:
  42298. t1.readChar$0();
  42299. components.push(C.Combinator_uzg);
  42300. break;
  42301. case 62:
  42302. t1.readChar$0();
  42303. components.push(C.Combinator_sgq);
  42304. break;
  42305. case 126:
  42306. t1.readChar$0();
  42307. components.push(C.Combinator_CzM);
  42308. break;
  42309. case 91:
  42310. case 46:
  42311. case 35:
  42312. case 37:
  42313. case 58:
  42314. case 38:
  42315. case 42:
  42316. case 124:
  42317. components.push(_this._compoundSelector$0());
  42318. if (t1.peekChar$0() === 38)
  42319. t1.error$1(_s58_);
  42320. break;
  42321. default:
  42322. if (next == null || !_this.lookingAtIdentifier$0())
  42323. break $label0$1;
  42324. components.push(_this._compoundSelector$0());
  42325. if (t1.peekChar$0() === 38)
  42326. t1.error$1(_s58_);
  42327. break;
  42328. }
  42329. }
  42330. if (components.length === 0)
  42331. t1.error$1("expected selector.");
  42332. return S.ComplexSelector$(components, lineBreak);
  42333. },
  42334. _complexSelector$0: function() {
  42335. return this._complexSelector$1$lineBreak(false);
  42336. },
  42337. _compoundSelector$0: function() {
  42338. var t2,
  42339. components = H.setRuntimeTypeInfo([this._simpleSelector$0()], type$.JSArray_legacy_SimpleSelector),
  42340. t1 = this.scanner;
  42341. while (true) {
  42342. t2 = t1.peekChar$0();
  42343. if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
  42344. break;
  42345. components.push(this._simpleSelector$1$allowParent(false));
  42346. }
  42347. return X.CompoundSelector$(components);
  42348. },
  42349. _simpleSelector$1$allowParent: function(allowParent) {
  42350. var $name, text, t2, suffix, _this = this,
  42351. t1 = _this.scanner,
  42352. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42353. if (allowParent == null)
  42354. allowParent = _this._allowParent;
  42355. switch (t1.peekChar$0()) {
  42356. case 91:
  42357. return _this._attributeSelector$0();
  42358. case 46:
  42359. t1.expectChar$1(46);
  42360. return new X.ClassSelector(_this.identifier$0());
  42361. case 35:
  42362. t1.expectChar$1(35);
  42363. return new N.IDSelector(_this.identifier$0());
  42364. case 37:
  42365. t1.expectChar$1(37);
  42366. $name = _this.identifier$0();
  42367. if (!_this._allowPlaceholder)
  42368. _this.error$2(string$.Placeh, t1.spanFrom$1(start));
  42369. return new N.PlaceholderSelector($name);
  42370. case 58:
  42371. return _this._pseudoSelector$0();
  42372. case 38:
  42373. t1.expectChar$1(38);
  42374. if (_this.lookingAtIdentifierBody$0()) {
  42375. text = new P.StringBuffer("");
  42376. _this._identifierBody$1(text);
  42377. if (text._contents.length === 0)
  42378. t1.error$1("Expected identifier body.");
  42379. t2 = text._contents;
  42380. suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
  42381. } else
  42382. suffix = null;
  42383. if (!allowParent)
  42384. _this.error$2("Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  42385. return new M.ParentSelector(suffix);
  42386. default:
  42387. return _this._typeOrUniversalSelector$0();
  42388. }
  42389. },
  42390. _simpleSelector$0: function() {
  42391. return this._simpleSelector$1$allowParent(null);
  42392. },
  42393. _attributeSelector$0: function() {
  42394. var $name, operator, next, value, modifier, _this = this, _null = null,
  42395. t1 = _this.scanner;
  42396. t1.expectChar$1(91);
  42397. _this.whitespace$0();
  42398. $name = _this._attributeName$0();
  42399. _this.whitespace$0();
  42400. if (t1.scanChar$1(93))
  42401. return new N.AttributeSelector($name, _null, _null, _null);
  42402. operator = _this._attributeOperator$0();
  42403. _this.whitespace$0();
  42404. next = t1.peekChar$0();
  42405. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  42406. _this.whitespace$0();
  42407. modifier = T.isAlphabetic0(t1.peekChar$0()) ? H.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  42408. t1.expectChar$1(93);
  42409. return new N.AttributeSelector($name, operator, value, modifier);
  42410. },
  42411. _attributeName$0: function() {
  42412. var nameOrNamespace, _this = this,
  42413. t1 = _this.scanner;
  42414. if (t1.scanChar$1(42)) {
  42415. t1.expectChar$1(124);
  42416. return new D.QualifiedName(_this.identifier$0(), "*");
  42417. }
  42418. nameOrNamespace = _this.identifier$0();
  42419. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  42420. return new D.QualifiedName(nameOrNamespace, null);
  42421. t1.readChar$0();
  42422. return new D.QualifiedName(_this.identifier$0(), nameOrNamespace);
  42423. },
  42424. _attributeOperator$0: function() {
  42425. var t1 = this.scanner,
  42426. t2 = t1._string_scanner$_position;
  42427. switch (t1.readChar$0()) {
  42428. case 61:
  42429. return C.AttributeOperator_sEs;
  42430. case 126:
  42431. t1.expectChar$1(61);
  42432. return C.AttributeOperator_fz1;
  42433. case 124:
  42434. t1.expectChar$1(61);
  42435. return C.AttributeOperator_AuK;
  42436. case 94:
  42437. t1.expectChar$1(61);
  42438. return C.AttributeOperator_4L5;
  42439. case 36:
  42440. t1.expectChar$1(61);
  42441. return C.AttributeOperator_mOX;
  42442. case 42:
  42443. t1.expectChar$1(61);
  42444. return C.AttributeOperator_gqZ;
  42445. default:
  42446. t1.error$2$position('Expected "]".', t2);
  42447. }
  42448. },
  42449. _pseudoSelector$0: function() {
  42450. var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
  42451. t1 = _this.scanner;
  42452. t1.expectChar$1(58);
  42453. element = t1.scanChar$1(58);
  42454. $name = _this.identifier$0();
  42455. if (!t1.scanChar$1(40))
  42456. return D.PseudoSelector$($name, _null, element, _null);
  42457. _this.whitespace$0();
  42458. unvendored = B.unvendor($name);
  42459. if (element)
  42460. if ($._selectorPseudoElements.contains$1(0, unvendored)) {
  42461. selector = _this._selectorList$0();
  42462. argument = _null;
  42463. } else {
  42464. argument = _this.declarationValue$1$allowEmpty(true);
  42465. selector = _null;
  42466. }
  42467. else if ($._selectorPseudoClasses.contains$1(0, unvendored)) {
  42468. selector = _this._selectorList$0();
  42469. argument = _null;
  42470. } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  42471. argument = _this._aNPlusB$0();
  42472. _this.whitespace$0();
  42473. t2 = t1.peekChar$1(-1);
  42474. if ((t2 === 32 || t2 === 9 || T.isNewline(t2)) && t1.peekChar$0() !== 41) {
  42475. _this.expectIdentifier$1("of");
  42476. argument += " of";
  42477. _this.whitespace$0();
  42478. selector = _this._selectorList$0();
  42479. } else
  42480. selector = _null;
  42481. } else {
  42482. argument = C.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  42483. selector = _null;
  42484. }
  42485. t1.expectChar$1(41);
  42486. return D.PseudoSelector$($name, argument, element, selector);
  42487. },
  42488. _aNPlusB$0: function() {
  42489. var t2, first, t3, next, last, _this = this,
  42490. t1 = _this.scanner;
  42491. switch (t1.peekChar$0()) {
  42492. case 101:
  42493. case 69:
  42494. _this.expectIdentifier$1("even");
  42495. return "even";
  42496. case 111:
  42497. case 79:
  42498. _this.expectIdentifier$1("odd");
  42499. return "odd";
  42500. case 43:
  42501. case 45:
  42502. t2 = H.Primitives_stringFromCharCode(t1.readChar$0());
  42503. break;
  42504. default:
  42505. t2 = "";
  42506. }
  42507. first = t1.peekChar$0();
  42508. if (first != null && T.isDigit(first)) {
  42509. while (true) {
  42510. t3 = t1.peekChar$0();
  42511. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  42512. break;
  42513. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42514. }
  42515. _this.whitespace$0();
  42516. if (!_this.scanIdentChar$1(110))
  42517. return t2.charCodeAt(0) == 0 ? t2 : t2;
  42518. } else
  42519. _this.expectIdentChar$1(110);
  42520. t2 += H.Primitives_stringFromCharCode(110);
  42521. _this.whitespace$0();
  42522. next = t1.peekChar$0();
  42523. if (next !== 43 && next !== 45)
  42524. return t2.charCodeAt(0) == 0 ? t2 : t2;
  42525. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42526. _this.whitespace$0();
  42527. last = t1.peekChar$0();
  42528. if (last == null || !T.isDigit(last))
  42529. t1.error$1("Expected a number.");
  42530. while (true) {
  42531. t3 = t1.peekChar$0();
  42532. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  42533. break;
  42534. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42535. }
  42536. return t2.charCodeAt(0) == 0 ? t2 : t2;
  42537. },
  42538. _typeOrUniversalSelector$0: function() {
  42539. var nameOrNamespace, _this = this,
  42540. t1 = _this.scanner,
  42541. first = t1.peekChar$0();
  42542. if (first === 42) {
  42543. t1.readChar$0();
  42544. if (!t1.scanChar$1(124))
  42545. return new N.UniversalSelector(null);
  42546. if (t1.scanChar$1(42))
  42547. return new N.UniversalSelector("*");
  42548. else
  42549. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), "*"));
  42550. } else if (first === 124) {
  42551. t1.readChar$0();
  42552. if (t1.scanChar$1(42))
  42553. return new N.UniversalSelector("");
  42554. else
  42555. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), ""));
  42556. }
  42557. nameOrNamespace = _this.identifier$0();
  42558. if (!t1.scanChar$1(124))
  42559. return new F.TypeSelector(new D.QualifiedName(nameOrNamespace, null));
  42560. else if (t1.scanChar$1(42))
  42561. return new N.UniversalSelector(nameOrNamespace);
  42562. else
  42563. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), nameOrNamespace));
  42564. }
  42565. };
  42566. T.SelectorParser_parse_closure.prototype = {
  42567. call$0: function() {
  42568. var t1 = this.$this,
  42569. selector = t1._selectorList$0();
  42570. t1 = t1.scanner;
  42571. if (t1._string_scanner$_position !== t1.string.length)
  42572. t1.error$1("expected selector.");
  42573. return selector;
  42574. },
  42575. $signature: 31
  42576. };
  42577. T.SelectorParser_parseCompoundSelector_closure.prototype = {
  42578. call$0: function() {
  42579. var t1 = this.$this,
  42580. compound = t1._compoundSelector$0();
  42581. t1 = t1.scanner;
  42582. if (t1._string_scanner$_position !== t1.string.length)
  42583. t1.error$1("expected selector.");
  42584. return compound;
  42585. },
  42586. $signature: 120
  42587. };
  42588. V.StylesheetParser.prototype = {
  42589. parse$0: function() {
  42590. return this.wrapSpanFormatException$1(new V.StylesheetParser_parse_closure(this));
  42591. },
  42592. parseArgumentDeclaration$0: function() {
  42593. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseArgumentDeclaration_closure(this), type$.legacy_ArgumentDeclaration);
  42594. },
  42595. parseVariableDeclaration$0: function() {
  42596. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseVariableDeclaration_closure(this), type$.legacy_VariableDeclaration);
  42597. },
  42598. parseUseRule$0: function() {
  42599. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseUseRule_closure(this), type$.legacy_UseRule);
  42600. },
  42601. _parseSingleProduction$1$1: function(production, $T) {
  42602. return this.wrapSpanFormatException$1(new V.StylesheetParser__parseSingleProduction_closure(this, production, $T));
  42603. },
  42604. _statement$1$root: function(root) {
  42605. var t2, _this = this,
  42606. t1 = _this.scanner;
  42607. switch (t1.peekChar$0()) {
  42608. case 64:
  42609. return _this.atRule$2$root(new V.StylesheetParser__statement_closure(_this), root);
  42610. case 43:
  42611. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  42612. return _this._stylesheet$_styleRule$0();
  42613. _this._isUseAllowed = false;
  42614. t2 = t1._string_scanner$_position;
  42615. t1.readChar$0();
  42616. return _this._includeRule$1(new S._SpanScannerState(t1, t2));
  42617. case 61:
  42618. if (!_this.get$indented())
  42619. return _this._stylesheet$_styleRule$0();
  42620. _this._isUseAllowed = false;
  42621. t2 = t1._string_scanner$_position;
  42622. t1.readChar$0();
  42623. _this.whitespace$0();
  42624. return _this._mixinRule$1(new S._SpanScannerState(t1, t2));
  42625. case 125:
  42626. t1.error$2$length('unmatched "}".', 1);
  42627. break;
  42628. default:
  42629. return _this._inStyleRule || _this._stylesheet$_inUnknownAtRule || _this._stylesheet$_inMixin || _this._inContentBlock ? _this._declarationOrStyleRule$0() : _this._variableDeclarationOrStyleRule$0();
  42630. }
  42631. },
  42632. _statement$0: function() {
  42633. return this._statement$1$root(false);
  42634. },
  42635. _variableDeclarationWithNamespace$0: function() {
  42636. var t1 = this.scanner,
  42637. t2 = t1._string_scanner$_position,
  42638. namespace = this.identifier$0();
  42639. t1.expectChar$1(46);
  42640. return this.variableDeclarationWithoutNamespace$2(namespace, new S._SpanScannerState(t1, t2));
  42641. },
  42642. variableDeclarationWithoutNamespace$2: function(namespace, start) {
  42643. var precedingComment, t1, $name, t2, value, flagStart, guarded, global, flag, endPosition, declaration, _this = this, _box_0 = {};
  42644. _box_0.start = start;
  42645. precedingComment = _this.lastSilentComment;
  42646. _this.lastSilentComment = null;
  42647. if (start == null) {
  42648. t1 = _this.scanner;
  42649. _box_0.start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42650. }
  42651. $name = _this.variableName$0();
  42652. t1 = namespace != null;
  42653. if (t1)
  42654. _this._assertPublic$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure(_box_0, _this));
  42655. if (_this.get$plainCss())
  42656. _this.error$2(string$.Sass_v, _this.scanner.spanFrom$1(_box_0.start));
  42657. _this.whitespace$0();
  42658. t2 = _this.scanner;
  42659. t2.expectChar$1(58);
  42660. _this.whitespace$0();
  42661. value = _this.expression$0();
  42662. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42663. for (guarded = false, global = false; t2.scanChar$1(33);) {
  42664. flag = _this.identifier$0();
  42665. if (flag === "default")
  42666. guarded = true;
  42667. else if (flag === "global") {
  42668. if (t1) {
  42669. endPosition = t2._string_scanner$_position;
  42670. _this.error$2(string$.x21globa, Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
  42671. }
  42672. global = true;
  42673. } else {
  42674. endPosition = t2._string_scanner$_position;
  42675. _this.error$2("Invalid flag name.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
  42676. }
  42677. _this.whitespace$0();
  42678. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42679. }
  42680. _this.expectStatementSeparator$1("variable declaration");
  42681. declaration = Z.VariableDeclaration$($name, value, t2.spanFrom$1(_box_0.start), precedingComment, global, guarded, namespace);
  42682. if (global)
  42683. _this._globalVariables.putIfAbsent$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure0(declaration));
  42684. return declaration;
  42685. },
  42686. variableDeclarationWithoutNamespace$0: function() {
  42687. return this.variableDeclarationWithoutNamespace$2(null, null);
  42688. },
  42689. _variableDeclarationOrStyleRule$0: function() {
  42690. var t1, t2, variableOrInterpolation, t3, _this = this;
  42691. if (_this.get$plainCss())
  42692. return _this._stylesheet$_styleRule$0();
  42693. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  42694. return _this._stylesheet$_styleRule$0();
  42695. if (!_this.lookingAtIdentifier$0())
  42696. return _this._stylesheet$_styleRule$0();
  42697. t1 = _this.scanner;
  42698. t2 = t1._string_scanner$_position;
  42699. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  42700. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  42701. return variableOrInterpolation;
  42702. else {
  42703. t3 = new Z.InterpolationBuffer(new P.StringBuffer(""), []);
  42704. t3.addInterpolation$1(type$.legacy_Interpolation._as(variableOrInterpolation));
  42705. return _this._stylesheet$_styleRule$2(t3, new S._SpanScannerState(t1, t2));
  42706. }
  42707. },
  42708. _declarationOrStyleRule$0: function() {
  42709. var t1, t2, declarationOrBuffer, _this = this;
  42710. if (_this.get$plainCss() && _this._inStyleRule && !_this._stylesheet$_inUnknownAtRule)
  42711. return _this._propertyOrVariableDeclaration$0();
  42712. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  42713. return _this._stylesheet$_styleRule$0();
  42714. t1 = _this.scanner;
  42715. t2 = t1._string_scanner$_position;
  42716. declarationOrBuffer = _this._declarationOrBuffer$0();
  42717. return type$.legacy_Statement._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet$_styleRule$2(type$.legacy_InterpolationBuffer._as(declarationOrBuffer), new S._SpanScannerState(t1, t2));
  42718. },
  42719. _declarationOrBuffer$0: function() {
  42720. var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, value, postColonWhitespace, t5, exception, _this = this, t1 = {},
  42721. t2 = _this.scanner,
  42722. start = new S._SpanScannerState(t2, t2._string_scanner$_position),
  42723. nameBuffer = new Z.InterpolationBuffer(new P.StringBuffer(""), []),
  42724. first = t2.peekChar$0();
  42725. if (first !== 58)
  42726. if (first !== 42)
  42727. if (first !== 46)
  42728. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  42729. else
  42730. t3 = true;
  42731. else
  42732. t3 = true;
  42733. else
  42734. t3 = true;
  42735. if (t3) {
  42736. t3 = t2.readChar$0();
  42737. nameBuffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(t3);
  42738. t3 = _this.rawText$1(_this.get$whitespace());
  42739. nameBuffer._interpolation_buffer$_text._contents += t3;
  42740. startsWithPunctuation = true;
  42741. } else
  42742. startsWithPunctuation = false;
  42743. if (!_this._lookingAtInterpolatedIdentifier$0())
  42744. return nameBuffer;
  42745. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._variableDeclarationOrInterpolation$0();
  42746. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  42747. return variableOrInterpolation;
  42748. else
  42749. nameBuffer.addInterpolation$1(type$.legacy_Interpolation._as(variableOrInterpolation));
  42750. _this._isUseAllowed = false;
  42751. if (t2.matches$1("/*")) {
  42752. t3 = _this.rawText$1(_this.get$loudComment());
  42753. nameBuffer._interpolation_buffer$_text._contents += t3;
  42754. }
  42755. midBuffer = new P.StringBuffer("");
  42756. t3 = _this.get$whitespace();
  42757. midBuffer._contents += _this.rawText$1(t3);
  42758. t4 = t2._string_scanner$_position;
  42759. if (!t2.scanChar$1(58)) {
  42760. if (midBuffer._contents.length !== 0)
  42761. nameBuffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(32);
  42762. return nameBuffer;
  42763. }
  42764. midBuffer._contents += H.Primitives_stringFromCharCode(58);
  42765. $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new S._SpanScannerState(t2, t4)));
  42766. first = C.JSArray_methods.get$first($name.contents);
  42767. if (C.JSString_methods.startsWith$1(typeof first == "string" ? first : "", "--")) {
  42768. value = _this._interpolatedDeclarationValue$0();
  42769. _this.expectStatementSeparator$1("custom property");
  42770. return L.Declaration$($name, t2.spanFrom$1(start), null, value);
  42771. }
  42772. if (t2.scanChar$1(58)) {
  42773. t1 = nameBuffer;
  42774. t2 = t1._interpolation_buffer$_text;
  42775. t2._contents += H.S(midBuffer);
  42776. t2._contents += H.Primitives_stringFromCharCode(58);
  42777. return t1;
  42778. } else if (_this.get$indented() && _this._lookingAtInterpolatedIdentifier$0()) {
  42779. t1 = nameBuffer;
  42780. t1._interpolation_buffer$_text._contents += H.S(midBuffer);
  42781. return t1;
  42782. }
  42783. postColonWhitespace = _this.rawText$1(t3);
  42784. if (_this.lookingAtChildren$0())
  42785. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure($name));
  42786. midBuffer._contents += postColonWhitespace;
  42787. couldBeSelector = postColonWhitespace.length === 0 && _this._lookingAtInterpolatedIdentifier$0();
  42788. beforeDeclaration = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42789. t1.value = null;
  42790. try {
  42791. if (_this.lookingAtChildren$0()) {
  42792. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  42793. t4 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  42794. t5 = t4.offset;
  42795. value = new D.StringExpression(X.Interpolation$(t3, Y._FileSpan$(t4.file, t5, t5)), true);
  42796. } else
  42797. value = _this.expression$0();
  42798. t3 = t1.value = value;
  42799. if (_this.lookingAtChildren$0()) {
  42800. if (couldBeSelector)
  42801. _this.expectStatementSeparator$0();
  42802. } else if (!_this.atEndOfStatement$0())
  42803. _this.expectStatementSeparator$0();
  42804. } catch (exception) {
  42805. if (type$.legacy_FormatException._is(H.unwrapException(exception))) {
  42806. if (!couldBeSelector)
  42807. throw exception;
  42808. t2.set$state(beforeDeclaration);
  42809. additional = _this.almostAnyValue$0();
  42810. if (!_this.get$indented() && t2.peekChar$0() === 59)
  42811. throw exception;
  42812. nameBuffer._interpolation_buffer$_text._contents += H.S(midBuffer);
  42813. nameBuffer.addInterpolation$1(additional);
  42814. return nameBuffer;
  42815. } else
  42816. throw exception;
  42817. }
  42818. if (_this.lookingAtChildren$0())
  42819. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure0(t1, $name));
  42820. else {
  42821. _this.expectStatementSeparator$0();
  42822. return L.Declaration$($name, t2.spanFrom$1(start), null, t3);
  42823. }
  42824. },
  42825. _variableDeclarationOrInterpolation$0: function() {
  42826. var t1, start, identifier, t2, buffer, _this = this;
  42827. if (!_this.lookingAtIdentifier$0())
  42828. return _this.interpolatedIdentifier$0();
  42829. t1 = _this.scanner;
  42830. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42831. identifier = _this.identifier$0();
  42832. if (t1.matches$1(".$")) {
  42833. t1.readChar$0();
  42834. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  42835. } else {
  42836. t2 = new P.StringBuffer("");
  42837. buffer = new Z.InterpolationBuffer(t2, []);
  42838. t2._contents = identifier;
  42839. if (_this._lookingAtInterpolatedIdentifierBody$0())
  42840. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  42841. return buffer.interpolation$1(t1.spanFrom$1(start));
  42842. }
  42843. },
  42844. _stylesheet$_styleRule$2: function(buffer, start) {
  42845. var t2, interpolation, t3, wasInStyleRule, _this = this, t1 = {};
  42846. t1.start = start;
  42847. _this._isUseAllowed = false;
  42848. if (start == null) {
  42849. t2 = _this.scanner;
  42850. t2 = t1.start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42851. } else
  42852. t2 = start;
  42853. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  42854. if (buffer != null) {
  42855. buffer.addInterpolation$1(interpolation);
  42856. t3 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(t2));
  42857. } else
  42858. t3 = interpolation;
  42859. if (t3.contents.length === 0)
  42860. _this.scanner.error$1('expected "}".');
  42861. wasInStyleRule = _this._inStyleRule;
  42862. _this._inStyleRule = true;
  42863. return _this._withChildren$3(_this.get$_statement(), t2, new V.StylesheetParser__styleRule_closure(t1, _this, wasInStyleRule));
  42864. },
  42865. _stylesheet$_styleRule$0: function() {
  42866. return this._stylesheet$_styleRule$2(null, null);
  42867. },
  42868. _propertyOrVariableDeclaration$0: function() {
  42869. var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
  42870. _s48_ = string$.Nested,
  42871. t1 = {},
  42872. t2 = _this.scanner,
  42873. start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  42874. t1.name = null;
  42875. first = t2.peekChar$0();
  42876. if (first !== 58)
  42877. if (first !== 42)
  42878. if (first !== 46)
  42879. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  42880. else
  42881. t3 = true;
  42882. else
  42883. t3 = true;
  42884. else
  42885. t3 = true;
  42886. if (t3) {
  42887. t3 = new P.StringBuffer("");
  42888. nameBuffer = new Z.InterpolationBuffer(t3, []);
  42889. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  42890. t3._contents += _this.rawText$1(_this.get$whitespace());
  42891. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  42892. t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
  42893. } else if (!_this.get$plainCss()) {
  42894. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  42895. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  42896. return variableOrInterpolation;
  42897. else {
  42898. type$.legacy_Interpolation._as(variableOrInterpolation);
  42899. t1.name = variableOrInterpolation;
  42900. }
  42901. t3 = variableOrInterpolation;
  42902. } else {
  42903. $name = _this.interpolatedIdentifier$0();
  42904. t1.name = $name;
  42905. t3 = $name;
  42906. }
  42907. _this.whitespace$0();
  42908. t2.expectChar$1(58);
  42909. _this.whitespace$0();
  42910. if (_this.lookingAtChildren$0()) {
  42911. if (_this.get$plainCss())
  42912. t2.error$1(_s48_);
  42913. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure(t1));
  42914. }
  42915. value = _this.expression$0();
  42916. if (_this.lookingAtChildren$0()) {
  42917. if (_this.get$plainCss())
  42918. t2.error$1(_s48_);
  42919. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure0(t1, value));
  42920. } else {
  42921. _this.expectStatementSeparator$0();
  42922. return L.Declaration$(t3, t2.spanFrom$1(start), null, value);
  42923. }
  42924. },
  42925. _declarationChild$0: function() {
  42926. if (this.scanner.peekChar$0() === 64)
  42927. return this._declarationAtRule$0();
  42928. return this._propertyOrVariableDeclaration$0();
  42929. },
  42930. atRule$2$root: function(child, root) {
  42931. var $name, wasUseAllowed, value, optional, _this = this,
  42932. t1 = _this.scanner,
  42933. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42934. t1.expectChar$2$name(64, "@-rule");
  42935. $name = _this.interpolatedIdentifier$0();
  42936. _this.whitespace$0();
  42937. wasUseAllowed = _this._isUseAllowed;
  42938. _this._isUseAllowed = false;
  42939. switch ($name.get$asPlain()) {
  42940. case "at-root":
  42941. return _this._atRootRule$1(start);
  42942. case "charset":
  42943. _this._isUseAllowed = wasUseAllowed;
  42944. if (!root)
  42945. _this._disallowedAtRule$1(start);
  42946. _this.string$0();
  42947. return null;
  42948. case "content":
  42949. return _this._contentRule$1(start);
  42950. case "debug":
  42951. return _this._debugRule$1(start);
  42952. case "each":
  42953. return _this._eachRule$2(start, child);
  42954. case "else":
  42955. return _this._disallowedAtRule$1(start);
  42956. case "error":
  42957. return _this._errorRule$1(start);
  42958. case "extend":
  42959. if (!_this._inStyleRule && !_this._stylesheet$_inMixin && !_this._inContentBlock)
  42960. _this.error$2(string$.x40exten, t1.spanFrom$1(start));
  42961. value = _this.almostAnyValue$0();
  42962. optional = t1.scanChar$1(33);
  42963. if (optional)
  42964. _this.expectIdentifier$1("optional");
  42965. _this.expectStatementSeparator$1("@extend rule");
  42966. return new X.ExtendRule(value, optional, t1.spanFrom$1(start));
  42967. case "for":
  42968. return _this._forRule$2(start, child);
  42969. case "forward":
  42970. _this._isUseAllowed = wasUseAllowed;
  42971. if (!root)
  42972. _this._disallowedAtRule$1(start);
  42973. return _this._forwardRule$1(start);
  42974. case "function":
  42975. return _this._functionRule$1(start);
  42976. case "if":
  42977. return _this._ifRule$2(start, child);
  42978. case "import":
  42979. return _this._importRule$1(start);
  42980. case "include":
  42981. return _this._includeRule$1(start);
  42982. case "media":
  42983. return _this.mediaRule$1(start);
  42984. case "mixin":
  42985. return _this._mixinRule$1(start);
  42986. case "-moz-document":
  42987. return _this.mozDocumentRule$2(start, $name);
  42988. case "return":
  42989. return _this._disallowedAtRule$1(start);
  42990. case "supports":
  42991. return _this.supportsRule$1(start);
  42992. case "use":
  42993. _this._isUseAllowed = wasUseAllowed;
  42994. if (!root)
  42995. _this._disallowedAtRule$1(start);
  42996. return _this._useRule$1(start);
  42997. case "warn":
  42998. return _this._warnRule$1(start);
  42999. case "while":
  43000. return _this._whileRule$2(start, child);
  43001. default:
  43002. return _this.unknownAtRule$2(start, $name);
  43003. }
  43004. },
  43005. _declarationAtRule$0: function() {
  43006. var _this = this,
  43007. t1 = _this.scanner,
  43008. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43009. switch (_this._plainAtRuleName$0()) {
  43010. case "content":
  43011. return _this._contentRule$1(start);
  43012. case "debug":
  43013. return _this._debugRule$1(start);
  43014. case "each":
  43015. return _this._eachRule$2(start, _this.get$_declarationChild());
  43016. case "else":
  43017. return _this._disallowedAtRule$1(start);
  43018. case "error":
  43019. return _this._errorRule$1(start);
  43020. case "for":
  43021. return _this._forRule$2(start, _this.get$_declarationAtRule());
  43022. case "if":
  43023. return _this._ifRule$2(start, _this.get$_declarationChild());
  43024. case "include":
  43025. return _this._includeRule$1(start);
  43026. case "warn":
  43027. return _this._warnRule$1(start);
  43028. case "while":
  43029. return _this._whileRule$2(start, _this.get$_declarationChild());
  43030. default:
  43031. return _this._disallowedAtRule$1(start);
  43032. }
  43033. },
  43034. _functionChild$0: function() {
  43035. var state, variableDeclarationError, statement, t2, exception, t3, start, value, _this = this,
  43036. t1 = _this.scanner;
  43037. if (t1.peekChar$0() !== 64) {
  43038. state = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43039. try {
  43040. t2 = _this._variableDeclarationWithNamespace$0();
  43041. return t2;
  43042. } catch (exception) {
  43043. t2 = H.unwrapException(exception);
  43044. t3 = type$.legacy_SourceSpanFormatException;
  43045. if (t3._is(t2)) {
  43046. variableDeclarationError = t2;
  43047. t1.set$state(state);
  43048. statement = null;
  43049. try {
  43050. statement = _this._declarationOrStyleRule$0();
  43051. } catch (exception) {
  43052. if (t3._is(H.unwrapException(exception)))
  43053. throw H.wrapException(variableDeclarationError);
  43054. else
  43055. throw exception;
  43056. }
  43057. _this.error$2("@function rules may not contain " + (statement instanceof X.StyleRule ? "style rules" : "declarations") + ".", statement.get$span());
  43058. } else
  43059. throw exception;
  43060. }
  43061. }
  43062. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43063. switch (_this._plainAtRuleName$0()) {
  43064. case "debug":
  43065. return _this._debugRule$1(start);
  43066. case "each":
  43067. return _this._eachRule$2(start, _this.get$_functionChild());
  43068. case "else":
  43069. return _this._disallowedAtRule$1(start);
  43070. case "error":
  43071. return _this._errorRule$1(start);
  43072. case "for":
  43073. return _this._forRule$2(start, _this.get$_functionChild());
  43074. case "if":
  43075. return _this._ifRule$2(start, _this.get$_functionChild());
  43076. case "return":
  43077. value = _this.expression$0();
  43078. _this.expectStatementSeparator$1("@return rule");
  43079. return new B.ReturnRule(value, t1.spanFrom$1(start));
  43080. case "warn":
  43081. return _this._warnRule$1(start);
  43082. case "while":
  43083. return _this._whileRule$2(start, _this.get$_functionChild());
  43084. default:
  43085. return _this._disallowedAtRule$1(start);
  43086. }
  43087. },
  43088. _plainAtRuleName$0: function() {
  43089. this.scanner.expectChar$2$name(64, "@-rule");
  43090. var $name = this.identifier$0();
  43091. this.whitespace$0();
  43092. return $name;
  43093. },
  43094. _atRootRule$1: function(start) {
  43095. var query, t2, t3, _this = this,
  43096. t1 = _this.scanner;
  43097. if (t1.peekChar$0() === 40) {
  43098. query = _this._atRootQuery$0();
  43099. _this.whitespace$0();
  43100. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__atRootRule_closure(query));
  43101. } else if (_this.lookingAtChildren$0())
  43102. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__atRootRule_closure0());
  43103. else {
  43104. t2 = H.setRuntimeTypeInfo([_this._stylesheet$_styleRule$0()], type$.JSArray_legacy_Statement);
  43105. t1 = t1.spanFrom$1(start);
  43106. t2 = P.List_List$unmodifiable(t2, type$.legacy_Statement);
  43107. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  43108. return new V.AtRootRule(null, t1, t2, t3);
  43109. }
  43110. },
  43111. _atRootQuery$0: function() {
  43112. var interpolation, t2, t3, t4, buffer, t5, _this = this,
  43113. t1 = _this.scanner;
  43114. if (t1.peekChar$0() === 35) {
  43115. interpolation = _this.singleInterpolation$0();
  43116. return X.Interpolation$(H.setRuntimeTypeInfo([interpolation], type$.JSArray_legacy_Object), interpolation.get$span());
  43117. }
  43118. t2 = t1._string_scanner$_position;
  43119. t3 = new P.StringBuffer("");
  43120. t4 = [];
  43121. buffer = new Z.InterpolationBuffer(t3, t4);
  43122. t1.expectChar$1(40);
  43123. t3._contents += H.Primitives_stringFromCharCode(40);
  43124. _this.whitespace$0();
  43125. t5 = _this.expression$0();
  43126. buffer._flushText$0();
  43127. t4.push(t5);
  43128. if (t1.scanChar$1(58)) {
  43129. _this.whitespace$0();
  43130. t3._contents += H.Primitives_stringFromCharCode(58);
  43131. t3._contents += H.Primitives_stringFromCharCode(32);
  43132. t5 = _this.expression$0();
  43133. buffer._flushText$0();
  43134. t4.push(t5);
  43135. }
  43136. t1.expectChar$1(41);
  43137. _this.whitespace$0();
  43138. t3._contents += H.Primitives_stringFromCharCode(41);
  43139. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  43140. },
  43141. _contentRule$1: function(start) {
  43142. var t1, $arguments, t2, t3, _this = this;
  43143. if (!_this._stylesheet$_inMixin)
  43144. _this.error$2(string$.x40conte, _this.scanner.spanFrom$1(start));
  43145. _this.whitespace$0();
  43146. t1 = _this.scanner;
  43147. if (t1.peekChar$0() === 40)
  43148. $arguments = _this._argumentInvocation$1$mixin(true);
  43149. else {
  43150. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  43151. t3 = t2.offset;
  43152. $arguments = new X.ArgumentInvocation(C.List_empty7, C.Map_empty3, null, null, Y._FileSpan$(t2.file, t3, t3));
  43153. }
  43154. _this._mixinHasContent = true;
  43155. _this.expectStatementSeparator$1("@content rule");
  43156. return new Q.ContentRule(t1.spanFrom$1(start), $arguments);
  43157. },
  43158. _debugRule$1: function(start) {
  43159. var value = this.expression$0();
  43160. this.expectStatementSeparator$1("@debug rule");
  43161. return new Q.DebugRule(value, this.scanner.spanFrom$1(start));
  43162. },
  43163. _eachRule$2: function(start, child) {
  43164. var variables, t1, _this = this,
  43165. wasInControlDirective = _this._inControlDirective;
  43166. _this._inControlDirective = true;
  43167. variables = H.setRuntimeTypeInfo([_this.variableName$0()], type$.JSArray_legacy_String);
  43168. _this.whitespace$0();
  43169. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  43170. _this.whitespace$0();
  43171. t1.expectChar$1(36);
  43172. variables.push(_this.identifier$1$normalize(true));
  43173. _this.whitespace$0();
  43174. }
  43175. _this.expectIdentifier$1("in");
  43176. _this.whitespace$0();
  43177. return _this._withChildren$3(child, start, new V.StylesheetParser__eachRule_closure(_this, wasInControlDirective, variables, _this.expression$0()));
  43178. },
  43179. _errorRule$1: function(start) {
  43180. var value = this.expression$0();
  43181. this.expectStatementSeparator$1("@error rule");
  43182. return new D.ErrorRule(value, this.scanner.spanFrom$1(start));
  43183. },
  43184. _functionRule$1: function(start) {
  43185. var $name, $arguments, _this = this,
  43186. precedingComment = _this.lastSilentComment;
  43187. _this.lastSilentComment = null;
  43188. $name = _this.identifier$1$normalize(true);
  43189. _this.whitespace$0();
  43190. $arguments = _this._argumentDeclaration$0();
  43191. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  43192. _this.error$2(string$.Mixinscf, _this.scanner.spanFrom$1(start));
  43193. else if (_this._inControlDirective)
  43194. _this.error$2(string$.Functi, _this.scanner.spanFrom$1(start));
  43195. switch (B.unvendor($name)) {
  43196. case "calc":
  43197. case "element":
  43198. case "expression":
  43199. case "url":
  43200. case "and":
  43201. case "or":
  43202. case "not":
  43203. _this.error$2("Invalid function name.", _this.scanner.spanFrom$1(start));
  43204. break;
  43205. }
  43206. _this.whitespace$0();
  43207. return _this._withChildren$3(_this.get$_functionChild(), start, new V.StylesheetParser__functionRule_closure($name, $arguments, precedingComment));
  43208. },
  43209. _forRule$2: function(start, child) {
  43210. var variable, from, _this = this, t1 = {},
  43211. wasInControlDirective = _this._inControlDirective;
  43212. _this._inControlDirective = true;
  43213. variable = _this.variableName$0();
  43214. _this.whitespace$0();
  43215. _this.expectIdentifier$1("from");
  43216. _this.whitespace$0();
  43217. t1.exclusive = null;
  43218. from = _this.expression$1$until(new V.StylesheetParser__forRule_closure(t1, _this));
  43219. if (t1.exclusive == null)
  43220. _this.scanner.error$1('Expected "to" or "through".');
  43221. _this.whitespace$0();
  43222. return _this._withChildren$3(child, start, new V.StylesheetParser__forRule_closure0(t1, _this, wasInControlDirective, variable, from, _this.expression$0()));
  43223. },
  43224. _forwardRule$1: function(start) {
  43225. var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  43226. url = _this._urlString$0();
  43227. _this.whitespace$0();
  43228. if (_this.scanIdentifier$1("as")) {
  43229. _this.whitespace$0();
  43230. prefix = _this.identifier$1$normalize(true);
  43231. _this.scanner.expectChar$1(42);
  43232. _this.whitespace$0();
  43233. } else
  43234. prefix = _null;
  43235. if (_this.scanIdentifier$1("show")) {
  43236. members = _this._memberList$0();
  43237. shownMixinsAndFunctions = members.item1;
  43238. shownVariables = members.item2;
  43239. hiddenVariables = _null;
  43240. hiddenMixinsAndFunctions = hiddenVariables;
  43241. } else {
  43242. if (_this.scanIdentifier$1("hide")) {
  43243. members = _this._memberList$0();
  43244. hiddenMixinsAndFunctions = members.item1;
  43245. hiddenVariables = members.item2;
  43246. } else {
  43247. hiddenVariables = _null;
  43248. hiddenMixinsAndFunctions = hiddenVariables;
  43249. }
  43250. shownVariables = _null;
  43251. shownMixinsAndFunctions = shownVariables;
  43252. }
  43253. configuration = _this._stylesheet$_configuration$1$allowGuarded(true);
  43254. _this.expectStatementSeparator$1("@forward rule");
  43255. span = _this.scanner.spanFrom$1(start);
  43256. if (!_this._isUseAllowed)
  43257. _this.error$2(string$.x40forwa, span);
  43258. if (shownMixinsAndFunctions != null) {
  43259. t1 = type$.legacy_String;
  43260. t2 = P.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  43261. t3 = type$.UnmodifiableSetView_legacy_String;
  43262. t1 = P.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  43263. t4 = configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable);
  43264. return new L.ForwardRule(url, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
  43265. } else if (hiddenMixinsAndFunctions != null) {
  43266. t1 = type$.legacy_String;
  43267. t2 = P.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  43268. t3 = type$.UnmodifiableSetView_legacy_String;
  43269. t1 = P.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  43270. t4 = configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable);
  43271. return new L.ForwardRule(url, _null, _null, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), prefix, t4, span);
  43272. } else
  43273. return new L.ForwardRule(url, _null, _null, _null, _null, prefix, configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable), span);
  43274. },
  43275. _memberList$0: function() {
  43276. var _this = this,
  43277. t1 = type$.legacy_String,
  43278. identifiers = P.LinkedHashSet_LinkedHashSet$_empty(t1),
  43279. variables = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  43280. t1 = _this.scanner;
  43281. do {
  43282. _this.whitespace$0();
  43283. _this.withErrorMessage$2(string$.Expect, new V.StylesheetParser__memberList_closure(_this, variables, identifiers));
  43284. _this.whitespace$0();
  43285. } while (t1.scanChar$1(44));
  43286. return new S.Tuple2(identifiers, variables, type$.Tuple2_of_legacy_Set_legacy_String_and_legacy_Set_legacy_String);
  43287. },
  43288. _ifRule$2: function(start, child) {
  43289. var condition, children, t1, t2, clauses, lastClause, result, t3, span, _this = this,
  43290. ifIndentation = _this.get$currentIndentation(),
  43291. wasInControlDirective = _this._inControlDirective;
  43292. _this._inControlDirective = true;
  43293. condition = _this.expression$0();
  43294. children = _this.children$1(child);
  43295. _this.whitespaceWithoutComments$0();
  43296. t1 = type$.legacy_Statement;
  43297. t2 = P.List_List$unmodifiable(children, t1);
  43298. clauses = H.setRuntimeTypeInfo([new V.IfClause(condition, t2, C.JSArray_methods.any$1(t2, new V.IfClause$__closure()))], type$.JSArray_legacy_IfClause);
  43299. while (true) {
  43300. if (!_this.scanElse$1(ifIndentation)) {
  43301. lastClause = null;
  43302. break;
  43303. }
  43304. _this.whitespace$0();
  43305. if (_this.scanIdentifier$1("if")) {
  43306. _this.whitespace$0();
  43307. t2 = _this.expression$0();
  43308. result = P.List_List$from(_this.children$1(child), false, t1);
  43309. result.fixed$length = Array;
  43310. result.immutable$list = Array;
  43311. t3 = result;
  43312. clauses.push(new V.IfClause(t2, t3, C.JSArray_methods.any$1(t3, new V.IfClause$__closure())));
  43313. } else {
  43314. result = P.List_List$from(_this.children$1(child), false, t1);
  43315. result.fixed$length = Array;
  43316. result.immutable$list = Array;
  43317. t1 = result;
  43318. lastClause = new V.IfClause(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure()));
  43319. break;
  43320. }
  43321. }
  43322. _this._inControlDirective = wasInControlDirective;
  43323. span = _this.scanner.spanFrom$1(start);
  43324. _this.whitespaceWithoutComments$0();
  43325. return new V.IfRule(P.List_List$unmodifiable(clauses, type$.legacy_IfClause), lastClause, span);
  43326. },
  43327. _importRule$1: function(start) {
  43328. var argument, _this = this,
  43329. imports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Import),
  43330. t1 = _this.scanner;
  43331. do {
  43332. _this.whitespace$0();
  43333. argument = _this.importArgument$0();
  43334. if ((_this._inControlDirective || _this._stylesheet$_inMixin) && argument instanceof B.DynamicImport)
  43335. _this._disallowedAtRule$1(start);
  43336. imports.push(argument);
  43337. _this.whitespace$0();
  43338. } while (t1.scanChar$1(44));
  43339. _this.expectStatementSeparator$1("@import rule");
  43340. t1 = t1.spanFrom$1(start);
  43341. return new B.ImportRule(P.List_List$unmodifiable(imports, type$.legacy_Import), t1);
  43342. },
  43343. importArgument$0: function() {
  43344. var url, urlSpan, innerError, queries, t2, t3, t4, exception, _this = this, _null = null,
  43345. t1 = _this.scanner,
  43346. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  43347. next = t1.peekChar$0();
  43348. if (next === 117 || next === 85) {
  43349. url = _this.dynamicUrl$0();
  43350. _this.whitespace$0();
  43351. queries = _this.tryImportQueries$0();
  43352. t2 = X.Interpolation$(H.setRuntimeTypeInfo([url], type$.JSArray_legacy_Object), t1.spanFrom$1(start));
  43353. t1 = t1.spanFrom$1(start);
  43354. t3 = queries == null;
  43355. t4 = t3 ? _null : queries.item1;
  43356. return new Q.StaticImport(t2, t4, t3 ? _null : queries.item2, t1);
  43357. }
  43358. url = _this.string$0();
  43359. urlSpan = t1.spanFrom$1(start);
  43360. _this.whitespace$0();
  43361. queries = _this.tryImportQueries$0();
  43362. if (_this.isPlainImportUrl$1(url) || queries != null) {
  43363. t2 = urlSpan;
  43364. t2 = X.Interpolation$(H.setRuntimeTypeInfo([P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null)], type$.JSArray_legacy_Object), urlSpan);
  43365. t1 = t1.spanFrom$1(start);
  43366. t3 = queries == null;
  43367. t4 = t3 ? _null : queries.item1;
  43368. return new Q.StaticImport(t2, t4, t3 ? _null : queries.item2, t1);
  43369. } else
  43370. try {
  43371. t1 = _this.parseImportUrl$1(url);
  43372. return new B.DynamicImport(t1, urlSpan);
  43373. } catch (exception) {
  43374. t1 = H.unwrapException(exception);
  43375. if (type$.legacy_FormatException._is(t1)) {
  43376. innerError = t1;
  43377. _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), urlSpan);
  43378. } else
  43379. throw exception;
  43380. }
  43381. },
  43382. parseImportUrl$1: function(url) {
  43383. var t1 = $.$get$windows();
  43384. if (t1.style.rootLength$1(url) > 0)
  43385. return t1.toUri$1(url).toString$0(0);
  43386. P.Uri_parse(url);
  43387. return url;
  43388. },
  43389. isPlainImportUrl$1: function(url) {
  43390. var first;
  43391. if (url.length < 5)
  43392. return false;
  43393. if (C.JSString_methods.endsWith$1(url, ".css"))
  43394. return true;
  43395. first = C.JSString_methods._codeUnitAt$1(url, 0);
  43396. if (first === 47)
  43397. return C.JSString_methods._codeUnitAt$1(url, 1) === 47;
  43398. if (first !== 104)
  43399. return false;
  43400. return C.JSString_methods.startsWith$1(url, "http://") || C.JSString_methods.startsWith$1(url, "https://");
  43401. },
  43402. tryImportQueries$0: function() {
  43403. var t1, start, supports, $name, media, _this = this;
  43404. if (_this.scanIdentifier$1("supports")) {
  43405. t1 = _this.scanner;
  43406. t1.expectChar$1(40);
  43407. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43408. if (_this.scanIdentifier$1("not")) {
  43409. _this.whitespace$0();
  43410. supports = new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(start));
  43411. } else if (t1.peekChar$0() === 40)
  43412. supports = _this._supportsCondition$0();
  43413. else {
  43414. $name = _this.expression$0();
  43415. t1.expectChar$1(58);
  43416. _this.whitespace$0();
  43417. supports = new L.SupportsDeclaration($name, _this.expression$0(), t1.spanFrom$1(start));
  43418. }
  43419. t1.expectChar$1(41);
  43420. _this.whitespace$0();
  43421. } else
  43422. supports = null;
  43423. media = _this._lookingAtInterpolatedIdentifier$0() || _this.scanner.peekChar$0() === 40 ? _this._mediaQueryList$0() : null;
  43424. if (supports == null && media == null)
  43425. return null;
  43426. return new S.Tuple2(supports, media, type$.Tuple2_of_legacy_SupportsCondition_and_legacy_Interpolation);
  43427. },
  43428. _includeRule$1: function(start) {
  43429. var name0, namespace, $arguments, t3, t4, wasInContentBlock, $content, _this = this, _null = null, t1 = {},
  43430. $name = _this.identifier$0(),
  43431. t2 = _this.scanner;
  43432. if (t2.scanChar$1(46)) {
  43433. name0 = _this._publicIdentifier$0();
  43434. namespace = $name;
  43435. $name = name0;
  43436. } else {
  43437. $name = H.stringReplaceAllUnchecked($name, "_", "-");
  43438. namespace = _null;
  43439. }
  43440. _this.whitespace$0();
  43441. if (t2.peekChar$0() === 40)
  43442. $arguments = _this._argumentInvocation$1$mixin(true);
  43443. else {
  43444. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  43445. t4 = t3.offset;
  43446. $arguments = new X.ArgumentInvocation(C.List_empty7, C.Map_empty3, _null, _null, Y._FileSpan$(t3.file, t4, t4));
  43447. }
  43448. _this.whitespace$0();
  43449. t1.contentArguments = null;
  43450. if (_this.scanIdentifier$1("using")) {
  43451. _this.whitespace$0();
  43452. t3 = t1.contentArguments = _this._argumentDeclaration$0();
  43453. _this.whitespace$0();
  43454. } else
  43455. t3 = _null;
  43456. t3 = t3 == null;
  43457. if (!t3 || _this.lookingAtChildren$0()) {
  43458. if (t3) {
  43459. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  43460. t4 = t3.offset;
  43461. t1.contentArguments = new B.ArgumentDeclaration(C.List_empty8, _null, Y._FileSpan$(t3.file, t4, t4));
  43462. }
  43463. wasInContentBlock = _this._inContentBlock;
  43464. _this._inContentBlock = true;
  43465. $content = _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__includeRule_closure(t1));
  43466. _this._inContentBlock = wasInContentBlock;
  43467. } else {
  43468. _this.expectStatementSeparator$0();
  43469. $content = _null;
  43470. }
  43471. t1 = t2.spanFrom$2(start, start);
  43472. return new A.IncludeRule(namespace, $name, $arguments, $content, t1.expand$1(0, ($content == null ? $arguments : $content).get$span()));
  43473. },
  43474. mediaRule$1: function(start) {
  43475. return this._withChildren$3(this.get$_statement(), start, new V.StylesheetParser_mediaRule_closure(this._mediaQueryList$0()));
  43476. },
  43477. _mixinRule$1: function(start) {
  43478. var $name, t1, $arguments, t2, t3, _this = this,
  43479. precedingComment = _this.lastSilentComment;
  43480. _this.lastSilentComment = null;
  43481. $name = _this.identifier$1$normalize(true);
  43482. _this.whitespace$0();
  43483. t1 = _this.scanner;
  43484. if (t1.peekChar$0() === 40)
  43485. $arguments = _this._argumentDeclaration$0();
  43486. else {
  43487. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  43488. t3 = t2.offset;
  43489. $arguments = new B.ArgumentDeclaration(C.List_empty8, null, Y._FileSpan$(t2.file, t3, t3));
  43490. }
  43491. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  43492. _this.error$2(string$.Mixinscm, t1.spanFrom$1(start));
  43493. else if (_this._inControlDirective)
  43494. _this.error$2(string$.Mixinsb, t1.spanFrom$1(start));
  43495. _this.whitespace$0();
  43496. _this._stylesheet$_inMixin = true;
  43497. _this._mixinHasContent = false;
  43498. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__mixinRule_closure(_this, $name, $arguments, precedingComment));
  43499. },
  43500. mozDocumentRule$2: function(start, $name) {
  43501. var t5, t6, identifier, contents, argument, trailing, endPosition, start0, end, _this = this, _box_0 = {},
  43502. t1 = _this.scanner,
  43503. t2 = t1._string_scanner$_position,
  43504. t3 = new P.StringBuffer(""),
  43505. t4 = [],
  43506. buffer = new Z.InterpolationBuffer(t3, t4);
  43507. _box_0.needsDeprecationWarning = false;
  43508. for (t5 = _this.get$whitespace(); true;) {
  43509. if (t1.peekChar$0() === 35) {
  43510. t6 = _this.singleInterpolation$0();
  43511. buffer._flushText$0();
  43512. t4.push(t6);
  43513. _box_0.needsDeprecationWarning = true;
  43514. } else {
  43515. t6 = t1._string_scanner$_position;
  43516. identifier = _this.identifier$0();
  43517. switch (identifier) {
  43518. case "url":
  43519. case "url-prefix":
  43520. case "domain":
  43521. contents = _this._tryUrlContents$2$name(new S._SpanScannerState(t1, t6), identifier);
  43522. if (contents != null)
  43523. buffer.addInterpolation$1(contents);
  43524. else {
  43525. t1.expectChar$1(40);
  43526. _this.whitespace$0();
  43527. argument = _this.interpolatedString$0();
  43528. t1.expectChar$1(41);
  43529. t3._contents += identifier;
  43530. t3._contents += H.Primitives_stringFromCharCode(40);
  43531. buffer.addInterpolation$1(argument.asInterpolation$0());
  43532. t3._contents += H.Primitives_stringFromCharCode(41);
  43533. }
  43534. t6 = t3._contents;
  43535. trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
  43536. if (!C.JSString_methods.endsWith$1(trailing, "url-prefix()") && !C.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !C.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  43537. _box_0.needsDeprecationWarning = true;
  43538. break;
  43539. case "regexp":
  43540. t3._contents += "regexp(";
  43541. t1.expectChar$1(40);
  43542. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  43543. t1.expectChar$1(41);
  43544. t3._contents += H.Primitives_stringFromCharCode(41);
  43545. _box_0.needsDeprecationWarning = true;
  43546. break;
  43547. default:
  43548. endPosition = t1._string_scanner$_position;
  43549. _this.error$2("Invalid function name.", Y._FileSpan$(t1._sourceFile, t6, endPosition));
  43550. }
  43551. }
  43552. _this.whitespace$0();
  43553. if (!t1.scanChar$1(44))
  43554. break;
  43555. t3._contents += H.Primitives_stringFromCharCode(44);
  43556. start0 = t1._string_scanner$_position;
  43557. t5.call$0();
  43558. end = t1._string_scanner$_position;
  43559. t3._contents += J.substring$2$s(t1.string, start0, end);
  43560. }
  43561. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_mozDocumentRule_closure(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)))));
  43562. },
  43563. supportsRule$1: function(start) {
  43564. var _this = this,
  43565. condition = _this._supportsCondition$0();
  43566. _this.whitespace$0();
  43567. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_supportsRule_closure(condition));
  43568. },
  43569. _useRule$1: function(start) {
  43570. var namespace, configuration, span, _this = this,
  43571. _s9_ = "@use rule",
  43572. url = _this._urlString$0();
  43573. _this.whitespace$0();
  43574. namespace = _this._useNamespace$2(url, start);
  43575. _this.whitespace$0();
  43576. configuration = _this._stylesheet$_configuration$0();
  43577. _this.expectStatementSeparator$1(_s9_);
  43578. span = _this.scanner.spanFrom$1(start);
  43579. if (!_this._isUseAllowed)
  43580. _this.error$2(string$.x40use_r, span);
  43581. _this.expectStatementSeparator$1(_s9_);
  43582. return T.UseRule$(url, namespace, span, configuration);
  43583. },
  43584. _useNamespace$2: function(url, start) {
  43585. var namespace, basename, dot, t1, exception, _this = this;
  43586. if (_this.scanIdentifier$1("as")) {
  43587. _this.whitespace$0();
  43588. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  43589. }
  43590. basename = url.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(url.get$pathSegments());
  43591. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  43592. t1 = C.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  43593. namespace = C.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  43594. try {
  43595. t1 = G.Parser$(namespace, _this.logger, null)._parseIdentifier$0();
  43596. return t1;
  43597. } catch (exception) {
  43598. if (H.unwrapException(exception) instanceof E.SassFormatException)
  43599. _this.error$2('Invalid Sass identifier "' + H.S(namespace) + '"', _this.scanner.spanFrom$1(start));
  43600. else
  43601. throw exception;
  43602. }
  43603. },
  43604. _stylesheet$_configuration$1$allowGuarded: function(allowGuarded) {
  43605. var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, span, _this = this;
  43606. if (!_this.scanIdentifier$1("with"))
  43607. return null;
  43608. variableNames = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  43609. configuration = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ConfiguredVariable);
  43610. _this.whitespace$0();
  43611. t1 = _this.scanner;
  43612. t1.expectChar$1(40);
  43613. for (; true;) {
  43614. _this.whitespace$0();
  43615. t2 = t1._string_scanner$_position;
  43616. t1.expectChar$1(36);
  43617. $name = _this.identifier$1$normalize(true);
  43618. _this.whitespace$0();
  43619. t1.expectChar$1(58);
  43620. _this.whitespace$0();
  43621. expression = _this._expressionUntilComma$0();
  43622. t3 = t1._string_scanner$_position;
  43623. if (allowGuarded && t1.scanChar$1(33))
  43624. if (_this.identifier$0() === "default")
  43625. guarded = true;
  43626. else {
  43627. endPosition = t1._string_scanner$_position;
  43628. _this.error$2("Invalid flag name.", Y._FileSpan$(t1._sourceFile, t3, endPosition));
  43629. guarded = false;
  43630. }
  43631. else
  43632. guarded = false;
  43633. endPosition = t1._string_scanner$_position;
  43634. span = Y._FileSpan$(t1._sourceFile, t2, endPosition);
  43635. if (variableNames.contains$1(0, $name))
  43636. _this.error$2(string$.The_sa, span);
  43637. variableNames.add$1(0, $name);
  43638. configuration.push(new Z.ConfiguredVariable($name, expression, guarded, span));
  43639. if (!t1.scanChar$1(44))
  43640. break;
  43641. _this.whitespace$0();
  43642. if (!_this._lookingAtExpression$0())
  43643. break;
  43644. }
  43645. t1.expectChar$1(41);
  43646. return configuration;
  43647. },
  43648. _stylesheet$_configuration$0: function() {
  43649. return this._stylesheet$_configuration$1$allowGuarded(false);
  43650. },
  43651. _warnRule$1: function(start) {
  43652. var value = this.expression$0();
  43653. this.expectStatementSeparator$1("@warn rule");
  43654. return new Y.WarnRule(value, this.scanner.spanFrom$1(start));
  43655. },
  43656. _whileRule$2: function(start, child) {
  43657. var _this = this,
  43658. wasInControlDirective = _this._inControlDirective;
  43659. _this._inControlDirective = true;
  43660. return _this._withChildren$3(child, start, new V.StylesheetParser__whileRule_closure(_this, wasInControlDirective, _this.expression$0()));
  43661. },
  43662. unknownAtRule$2: function(start, $name) {
  43663. var t2, t3, rule, _this = this, t1 = {},
  43664. wasInUnknownAtRule = _this._stylesheet$_inUnknownAtRule;
  43665. _this._stylesheet$_inUnknownAtRule = true;
  43666. t1.value = null;
  43667. t2 = _this.scanner;
  43668. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
  43669. if (_this.lookingAtChildren$0())
  43670. rule = _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_unknownAtRule_closure(t1, $name));
  43671. else {
  43672. _this.expectStatementSeparator$0();
  43673. rule = U.AtRule$($name, t2.spanFrom$1(start), null, t3);
  43674. }
  43675. _this._stylesheet$_inUnknownAtRule = wasInUnknownAtRule;
  43676. return rule;
  43677. },
  43678. _disallowedAtRule$1: function(start) {
  43679. this.almostAnyValue$0();
  43680. this.error$2("This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  43681. },
  43682. _argumentDeclaration$0: function() {
  43683. var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, _this = this,
  43684. t1 = _this.scanner,
  43685. t2 = t1._string_scanner$_position;
  43686. t1.expectChar$1(40);
  43687. _this.whitespace$0();
  43688. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Argument);
  43689. named = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  43690. while (true) {
  43691. if (!(t1.peekChar$0() === 36)) {
  43692. restArgument = null;
  43693. break;
  43694. }
  43695. t3 = t1._string_scanner$_position;
  43696. t1.expectChar$1(36);
  43697. $name = _this.identifier$1$normalize(true);
  43698. _this.whitespace$0();
  43699. if (t1.scanChar$1(58)) {
  43700. _this.whitespace$0();
  43701. defaultValue = _this._expressionUntilComma$0();
  43702. } else {
  43703. if (t1.scanChar$1(46)) {
  43704. t1.expectChar$1(46);
  43705. t1.expectChar$1(46);
  43706. _this.whitespace$0();
  43707. restArgument = $name;
  43708. break;
  43709. }
  43710. defaultValue = null;
  43711. }
  43712. endPosition = t1._string_scanner$_position;
  43713. $arguments.push(new Z.Argument($name, defaultValue, Y._FileSpan$(t1._sourceFile, t3, endPosition)));
  43714. if (!named.add$1(0, $name))
  43715. _this.error$2("Duplicate argument.", C.JSArray_methods.get$last($arguments).span);
  43716. if (!t1.scanChar$1(44)) {
  43717. restArgument = null;
  43718. break;
  43719. }
  43720. _this.whitespace$0();
  43721. }
  43722. t1.expectChar$1(41);
  43723. t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  43724. return new B.ArgumentDeclaration(P.List_List$unmodifiable($arguments, type$.legacy_Argument), restArgument, t1);
  43725. },
  43726. _argumentInvocation$1$mixin: function(mixin) {
  43727. var positional, named, keywordRest, t3, rest, expression, t4, _this = this,
  43728. t1 = _this.scanner,
  43729. t2 = t1._string_scanner$_position;
  43730. t1.expectChar$1(40);
  43731. _this.whitespace$0();
  43732. positional = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  43733. named = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Expression);
  43734. t3 = !mixin;
  43735. rest = null;
  43736. while (true) {
  43737. if (!_this._lookingAtExpression$0()) {
  43738. keywordRest = null;
  43739. break;
  43740. }
  43741. expression = _this._expressionUntilComma$1$singleEquals(t3);
  43742. _this.whitespace$0();
  43743. if (expression instanceof S.VariableExpression && t1.scanChar$1(58)) {
  43744. _this.whitespace$0();
  43745. t4 = expression.name;
  43746. if (named.containsKey$1(t4))
  43747. _this.error$2("Duplicate argument.", expression.span);
  43748. named.$indexSet(0, t4, _this._expressionUntilComma$1$singleEquals(t3));
  43749. } else if (t1.scanChar$1(46)) {
  43750. t1.expectChar$1(46);
  43751. t1.expectChar$1(46);
  43752. if (rest != null) {
  43753. _this.whitespace$0();
  43754. keywordRest = expression;
  43755. break;
  43756. }
  43757. rest = expression;
  43758. } else if (named.get$isNotEmpty(named))
  43759. _this.error$2(string$.Positi, expression.get$span());
  43760. else
  43761. positional.push(expression);
  43762. _this.whitespace$0();
  43763. if (!t1.scanChar$1(44)) {
  43764. keywordRest = null;
  43765. break;
  43766. }
  43767. _this.whitespace$0();
  43768. }
  43769. t1.expectChar$1(41);
  43770. return X.ArgumentInvocation$(positional, named, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), keywordRest, rest);
  43771. },
  43772. _argumentInvocation$0: function() {
  43773. return this._argumentInvocation$1$mixin(false);
  43774. },
  43775. expression$3$bracketList$singleEquals$until: function(bracketList, singleEquals, until) {
  43776. var t2, beforeBracket, t3, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, first, next, t4, _this = this,
  43777. _s20_ = "Expected expression.",
  43778. _box_0 = {},
  43779. t1 = until != null;
  43780. if (t1 && until.call$0())
  43781. _this.scanner.error$1(_s20_);
  43782. if (bracketList) {
  43783. t2 = _this.scanner;
  43784. beforeBracket = new S._SpanScannerState(t2, t2._string_scanner$_position);
  43785. t2.expectChar$1(91);
  43786. _this.whitespace$0();
  43787. if (t2.scanChar$1(93)) {
  43788. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  43789. t2 = t2.spanFrom$1(beforeBracket);
  43790. t1 = P.List_List$unmodifiable(t1, type$.legacy_Expression);
  43791. return new D.ListExpression(t1, C.ListSeparator_undecided, true, t2);
  43792. }
  43793. } else
  43794. beforeBracket = null;
  43795. t2 = _this.scanner;
  43796. t3 = t2._string_scanner$_position;
  43797. wasInParentheses = _this._inParentheses;
  43798. _box_0.operands = _box_0.operators = _box_0.spaceExpressions = _box_0.singleEqualsOperand = _box_0.commaExpressions = null;
  43799. _box_0.allowSlash = _this.lookingAtNumber$0();
  43800. _box_0.singleExpression = _this._singleExpression$0();
  43801. resetState = new V.StylesheetParser_expression_resetState(_box_0, _this, new S._SpanScannerState(t2, t3));
  43802. resolveOneOperation = new V.StylesheetParser_expression_resolveOneOperation(_box_0, _this);
  43803. resolveOperations = new V.StylesheetParser_expression_resolveOperations(_box_0, resolveOneOperation);
  43804. addSingleExpression = new V.StylesheetParser_expression_addSingleExpression(_box_0, _this, resetState, resolveOperations);
  43805. addOperator = new V.StylesheetParser_expression_addOperator(_box_0, _this, resolveOneOperation);
  43806. resolveSpaceExpressions = new V.StylesheetParser_expression_resolveSpaceExpressions(_box_0, resolveOperations);
  43807. $label0$0:
  43808. for (t3 = type$.JSArray_legacy_Expression; true;) {
  43809. _this.whitespace$0();
  43810. if (t1 && until.call$0())
  43811. break $label0$0;
  43812. first = t2.peekChar$0();
  43813. switch (first) {
  43814. case 40:
  43815. addSingleExpression.call$1(_this._parentheses$0());
  43816. break;
  43817. case 91:
  43818. addSingleExpression.call$1(_this.expression$1$bracketList(true));
  43819. break;
  43820. case 36:
  43821. addSingleExpression.call$1(_this._variable$0());
  43822. break;
  43823. case 38:
  43824. addSingleExpression.call$1(_this._selector$0());
  43825. break;
  43826. case 39:
  43827. case 34:
  43828. addSingleExpression.call$1(_this.interpolatedString$0());
  43829. break;
  43830. case 35:
  43831. addSingleExpression.call$1(_this._hashExpression$0());
  43832. break;
  43833. case 61:
  43834. t2.readChar$0();
  43835. if (singleEquals && t2.peekChar$0() !== 61) {
  43836. resolveSpaceExpressions.call$0();
  43837. _box_0.singleEqualsOperand = _box_0.singleExpression;
  43838. _box_0.singleExpression = null;
  43839. } else {
  43840. t2.expectChar$1(61);
  43841. addOperator.call$1(C.BinaryOperator_YlX);
  43842. }
  43843. break;
  43844. case 33:
  43845. next = t2.peekChar$1(1);
  43846. if (next === 61) {
  43847. t2.readChar$0();
  43848. t2.readChar$0();
  43849. addOperator.call$1(C.BinaryOperator_i5H);
  43850. } else {
  43851. if (next != null)
  43852. if ((next | 32) !== 105)
  43853. t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  43854. else
  43855. t4 = true;
  43856. else
  43857. t4 = true;
  43858. if (t4)
  43859. addSingleExpression.call$1(_this._importantExpression$0());
  43860. else
  43861. break $label0$0;
  43862. }
  43863. break;
  43864. case 60:
  43865. t2.readChar$0();
  43866. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_33h : C.BinaryOperator_8qt);
  43867. break;
  43868. case 62:
  43869. t2.readChar$0();
  43870. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_1da : C.BinaryOperator_AcR0);
  43871. break;
  43872. case 42:
  43873. t2.readChar$0();
  43874. addOperator.call$1(C.BinaryOperator_O1M);
  43875. break;
  43876. case 43:
  43877. if (_box_0.singleExpression == null)
  43878. addSingleExpression.call$1(_this._unaryOperation$0());
  43879. else {
  43880. t2.readChar$0();
  43881. addOperator.call$1(C.BinaryOperator_AcR);
  43882. }
  43883. break;
  43884. case 45:
  43885. next = t2.peekChar$1(1);
  43886. if (next != null && next >= 48 && next <= 57 || next === 46)
  43887. if (_box_0.singleExpression != null) {
  43888. t4 = t2.peekChar$1(-1);
  43889. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  43890. } else
  43891. t4 = true;
  43892. else
  43893. t4 = false;
  43894. if (t4)
  43895. addSingleExpression.call$2$number(_this._number$0(), true);
  43896. else if (_this._lookingAtInterpolatedIdentifier$0())
  43897. addSingleExpression.call$1(_this.identifierLike$0());
  43898. else if (_box_0.singleExpression == null)
  43899. addSingleExpression.call$1(_this._unaryOperation$0());
  43900. else {
  43901. t2.readChar$0();
  43902. addOperator.call$1(C.BinaryOperator_iyO);
  43903. }
  43904. break;
  43905. case 47:
  43906. if (_box_0.singleExpression == null)
  43907. addSingleExpression.call$1(_this._unaryOperation$0());
  43908. else {
  43909. t2.readChar$0();
  43910. addOperator.call$1(C.BinaryOperator_RTB);
  43911. }
  43912. break;
  43913. case 37:
  43914. t2.readChar$0();
  43915. addOperator.call$1(C.BinaryOperator_2ad);
  43916. break;
  43917. case 48:
  43918. case 49:
  43919. case 50:
  43920. case 51:
  43921. case 52:
  43922. case 53:
  43923. case 54:
  43924. case 55:
  43925. case 56:
  43926. case 57:
  43927. addSingleExpression.call$2$number(_this._number$0(), true);
  43928. break;
  43929. case 46:
  43930. if (t2.peekChar$1(1) === 46)
  43931. break $label0$0;
  43932. addSingleExpression.call$2$number(_this._number$0(), true);
  43933. break;
  43934. case 97:
  43935. if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
  43936. addOperator.call$1(C.BinaryOperator_and_and_2);
  43937. else
  43938. addSingleExpression.call$1(_this.identifierLike$0());
  43939. break;
  43940. case 111:
  43941. if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
  43942. addOperator.call$1(C.BinaryOperator_or_or_1);
  43943. else
  43944. addSingleExpression.call$1(_this.identifierLike$0());
  43945. break;
  43946. case 117:
  43947. case 85:
  43948. if (t2.peekChar$1(1) === 43)
  43949. addSingleExpression.call$1(_this._unicodeRange$0());
  43950. else
  43951. addSingleExpression.call$1(_this.identifierLike$0());
  43952. break;
  43953. case 98:
  43954. case 99:
  43955. case 100:
  43956. case 101:
  43957. case 102:
  43958. case 103:
  43959. case 104:
  43960. case 105:
  43961. case 106:
  43962. case 107:
  43963. case 108:
  43964. case 109:
  43965. case 110:
  43966. case 112:
  43967. case 113:
  43968. case 114:
  43969. case 115:
  43970. case 116:
  43971. case 118:
  43972. case 119:
  43973. case 120:
  43974. case 121:
  43975. case 122:
  43976. case 65:
  43977. case 66:
  43978. case 67:
  43979. case 68:
  43980. case 69:
  43981. case 70:
  43982. case 71:
  43983. case 72:
  43984. case 73:
  43985. case 74:
  43986. case 75:
  43987. case 76:
  43988. case 77:
  43989. case 78:
  43990. case 79:
  43991. case 80:
  43992. case 81:
  43993. case 82:
  43994. case 83:
  43995. case 84:
  43996. case 86:
  43997. case 87:
  43998. case 88:
  43999. case 89:
  44000. case 90:
  44001. case 95:
  44002. case 92:
  44003. addSingleExpression.call$1(_this.identifierLike$0());
  44004. break;
  44005. case 44:
  44006. if (_this._inParentheses) {
  44007. _this._inParentheses = false;
  44008. if (_box_0.allowSlash) {
  44009. resetState.call$0();
  44010. break;
  44011. }
  44012. }
  44013. if (_box_0.commaExpressions == null)
  44014. _box_0.commaExpressions = H.setRuntimeTypeInfo([], t3);
  44015. if (_box_0.singleExpression == null)
  44016. t2.error$1(_s20_);
  44017. resolveSpaceExpressions.call$0();
  44018. _box_0.commaExpressions.push(_box_0.singleExpression);
  44019. t2.readChar$0();
  44020. _box_0.allowSlash = true;
  44021. _box_0.singleExpression = null;
  44022. break;
  44023. default:
  44024. if (first != null && first >= 128) {
  44025. addSingleExpression.call$1(_this.identifierLike$0());
  44026. break;
  44027. } else
  44028. break $label0$0;
  44029. }
  44030. }
  44031. if (bracketList)
  44032. t2.expectChar$1(93);
  44033. if (_box_0.commaExpressions != null) {
  44034. resolveSpaceExpressions.call$0();
  44035. _this._inParentheses = wasInParentheses;
  44036. t1 = _box_0.singleExpression;
  44037. if (t1 != null)
  44038. _box_0.commaExpressions.push(t1);
  44039. t1 = _box_0.commaExpressions;
  44040. t2 = bracketList ? t2.spanFrom$1(beforeBracket) : null;
  44041. t1 = P.List_List$unmodifiable(t1, type$.legacy_Expression);
  44042. return new D.ListExpression(t1, C.ListSeparator_comma, bracketList, t2 == null ? B.spanForList(t1) : t2);
  44043. } else if (bracketList && _box_0.spaceExpressions != null && _box_0.singleEqualsOperand == null) {
  44044. resolveOperations.call$0();
  44045. t1 = _box_0.spaceExpressions;
  44046. t1.push(_box_0.singleExpression);
  44047. t2 = t2.spanFrom$1(beforeBracket);
  44048. t1 = P.List_List$unmodifiable(t1, type$.legacy_Expression);
  44049. return new D.ListExpression(t1, C.ListSeparator_space, true, t2);
  44050. } else {
  44051. resolveSpaceExpressions.call$0();
  44052. if (bracketList) {
  44053. t1 = H.setRuntimeTypeInfo([_box_0.singleExpression], t3);
  44054. t2 = t2.spanFrom$1(beforeBracket);
  44055. t1 = P.List_List$unmodifiable(t1, type$.legacy_Expression);
  44056. _box_0.singleExpression = new D.ListExpression(t1, C.ListSeparator_undecided, true, t2);
  44057. }
  44058. return _box_0.singleExpression;
  44059. }
  44060. },
  44061. expression$0: function() {
  44062. return this.expression$3$bracketList$singleEquals$until(false, false, null);
  44063. },
  44064. expression$2$singleEquals$until: function(singleEquals, until) {
  44065. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  44066. },
  44067. expression$1$bracketList: function(bracketList) {
  44068. return this.expression$3$bracketList$singleEquals$until(bracketList, false, null);
  44069. },
  44070. expression$1$singleEquals: function(singleEquals) {
  44071. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, null);
  44072. },
  44073. expression$1$until: function(until) {
  44074. return this.expression$3$bracketList$singleEquals$until(false, false, until);
  44075. },
  44076. _expressionUntilComma$1$singleEquals: function(singleEquals) {
  44077. return this.expression$2$singleEquals$until(singleEquals, new V.StylesheetParser__expressionUntilComma_closure(this));
  44078. },
  44079. _expressionUntilComma$0: function() {
  44080. return this._expressionUntilComma$1$singleEquals(false);
  44081. },
  44082. _singleExpression$0: function() {
  44083. var next, _this = this,
  44084. t1 = _this.scanner,
  44085. first = t1.peekChar$0();
  44086. switch (first) {
  44087. case 40:
  44088. return _this._parentheses$0();
  44089. case 47:
  44090. return _this._unaryOperation$0();
  44091. case 46:
  44092. return _this._number$0();
  44093. case 91:
  44094. return _this.expression$1$bracketList(true);
  44095. case 36:
  44096. return _this._variable$0();
  44097. case 38:
  44098. return _this._selector$0();
  44099. case 39:
  44100. case 34:
  44101. return _this.interpolatedString$0();
  44102. case 35:
  44103. return _this._hashExpression$0();
  44104. case 43:
  44105. next = t1.peekChar$1(1);
  44106. return T.isDigit(next) || next === 46 ? _this._number$0() : _this._unaryOperation$0();
  44107. case 45:
  44108. return _this._minusExpression$0();
  44109. case 33:
  44110. return _this._importantExpression$0();
  44111. case 117:
  44112. case 85:
  44113. if (t1.peekChar$1(1) === 43)
  44114. return _this._unicodeRange$0();
  44115. else
  44116. return _this.identifierLike$0();
  44117. case 48:
  44118. case 49:
  44119. case 50:
  44120. case 51:
  44121. case 52:
  44122. case 53:
  44123. case 54:
  44124. case 55:
  44125. case 56:
  44126. case 57:
  44127. return _this._number$0();
  44128. case 97:
  44129. case 98:
  44130. case 99:
  44131. case 100:
  44132. case 101:
  44133. case 102:
  44134. case 103:
  44135. case 104:
  44136. case 105:
  44137. case 106:
  44138. case 107:
  44139. case 108:
  44140. case 109:
  44141. case 110:
  44142. case 111:
  44143. case 112:
  44144. case 113:
  44145. case 114:
  44146. case 115:
  44147. case 116:
  44148. case 118:
  44149. case 119:
  44150. case 120:
  44151. case 121:
  44152. case 122:
  44153. case 65:
  44154. case 66:
  44155. case 67:
  44156. case 68:
  44157. case 69:
  44158. case 70:
  44159. case 71:
  44160. case 72:
  44161. case 73:
  44162. case 74:
  44163. case 75:
  44164. case 76:
  44165. case 77:
  44166. case 78:
  44167. case 79:
  44168. case 80:
  44169. case 81:
  44170. case 82:
  44171. case 83:
  44172. case 84:
  44173. case 86:
  44174. case 87:
  44175. case 88:
  44176. case 89:
  44177. case 90:
  44178. case 95:
  44179. case 92:
  44180. return _this.identifierLike$0();
  44181. default:
  44182. if (first != null && first >= 128)
  44183. return _this.identifierLike$0();
  44184. t1.error$1("Expected expression.");
  44185. }
  44186. },
  44187. _parentheses$0: function() {
  44188. var wasInParentheses, start, first, expressions, t1, t2, _this = this;
  44189. if (_this.get$plainCss())
  44190. _this.scanner.error$2$length("Parentheses aren't allowed in plain CSS.", 1);
  44191. wasInParentheses = _this._inParentheses;
  44192. _this._inParentheses = true;
  44193. try {
  44194. t1 = _this.scanner;
  44195. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44196. t1.expectChar$1(40);
  44197. _this.whitespace$0();
  44198. if (!_this._lookingAtExpression$0()) {
  44199. t1.expectChar$1(41);
  44200. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  44201. t1 = t1.spanFrom$1(start);
  44202. t2 = P.List_List$unmodifiable(t2, type$.legacy_Expression);
  44203. return new D.ListExpression(t2, C.ListSeparator_undecided, false, t1);
  44204. }
  44205. first = _this._expressionUntilComma$0();
  44206. if (t1.scanChar$1(58)) {
  44207. _this.whitespace$0();
  44208. t1 = _this._stylesheet$_map$2(first, start);
  44209. return t1;
  44210. }
  44211. if (!t1.scanChar$1(44)) {
  44212. t1.expectChar$1(41);
  44213. t1 = t1.spanFrom$1(start);
  44214. return new T.ParenthesizedExpression(first, t1);
  44215. }
  44216. _this.whitespace$0();
  44217. expressions = H.setRuntimeTypeInfo([first], type$.JSArray_legacy_Expression);
  44218. for (; true;) {
  44219. if (!_this._lookingAtExpression$0())
  44220. break;
  44221. J.add$1$ax(expressions, _this._expressionUntilComma$0());
  44222. if (!t1.scanChar$1(44))
  44223. break;
  44224. _this.whitespace$0();
  44225. }
  44226. t1.expectChar$1(41);
  44227. t1 = t1.spanFrom$1(start);
  44228. t2 = P.List_List$unmodifiable(expressions, type$.legacy_Expression);
  44229. return new D.ListExpression(t2, C.ListSeparator_comma, false, t1);
  44230. } finally {
  44231. _this._inParentheses = wasInParentheses;
  44232. }
  44233. },
  44234. _stylesheet$_map$2: function(first, start) {
  44235. var t2, key, _this = this,
  44236. t1 = type$.Tuple2_of_legacy_Expression_and_legacy_Expression,
  44237. pairs = H.setRuntimeTypeInfo([new S.Tuple2(first, _this._expressionUntilComma$0(), t1)], type$.JSArray_legacy_Tuple2_of_legacy_Expression_and_legacy_Expression);
  44238. for (t2 = _this.scanner; t2.scanChar$1(44);) {
  44239. _this.whitespace$0();
  44240. if (!_this._lookingAtExpression$0())
  44241. break;
  44242. key = _this._expressionUntilComma$0();
  44243. t2.expectChar$1(58);
  44244. _this.whitespace$0();
  44245. pairs.push(new S.Tuple2(key, _this._expressionUntilComma$0(), t1));
  44246. }
  44247. t2.expectChar$1(41);
  44248. t1 = t2.spanFrom$1(start);
  44249. return new A.MapExpression(P.List_List$unmodifiable(pairs, type$.legacy_Tuple2_of_legacy_Expression_and_legacy_Expression), t1);
  44250. },
  44251. _hashExpression$0: function() {
  44252. var start, first, t2, identifier, buffer, _this = this,
  44253. t1 = _this.scanner;
  44254. if (t1.peekChar$1(1) === 123)
  44255. return _this.identifierLike$0();
  44256. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44257. t1.expectChar$1(35);
  44258. first = t1.peekChar$0();
  44259. if (first != null && T.isDigit(first))
  44260. return new K.ColorExpression(_this._hexColorContents$1(start));
  44261. t2 = t1._string_scanner$_position;
  44262. identifier = _this.interpolatedIdentifier$0();
  44263. if (_this._isHexColor$1(identifier)) {
  44264. t1.set$state(new S._SpanScannerState(t1, t2));
  44265. return new K.ColorExpression(_this._hexColorContents$1(start));
  44266. }
  44267. t2 = new P.StringBuffer("");
  44268. buffer = new Z.InterpolationBuffer(t2, []);
  44269. t2._contents += H.Primitives_stringFromCharCode(35);
  44270. buffer.addInterpolation$1(identifier);
  44271. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  44272. },
  44273. _hexColorContents$1: function(start) {
  44274. var red, green, blue, alpha, digit4, t2, t3, _this = this,
  44275. digit1 = _this._hexDigit$0(),
  44276. digit2 = _this._hexDigit$0(),
  44277. digit3 = _this._hexDigit$0(),
  44278. t1 = _this.scanner;
  44279. if (!T.isHex(t1.peekChar$0())) {
  44280. red = (digit1 << 4 >>> 0) + digit1;
  44281. green = (digit2 << 4 >>> 0) + digit2;
  44282. blue = (digit3 << 4 >>> 0) + digit3;
  44283. alpha = 1;
  44284. } else {
  44285. digit4 = _this._hexDigit$0();
  44286. t2 = digit1 << 4 >>> 0;
  44287. t3 = digit3 << 4 >>> 0;
  44288. if (!T.isHex(t1.peekChar$0())) {
  44289. red = t2 + digit1;
  44290. green = (digit2 << 4 >>> 0) + digit2;
  44291. blue = t3 + digit3;
  44292. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  44293. } else {
  44294. red = t2 + digit2;
  44295. green = t3 + digit4;
  44296. blue = (_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0();
  44297. alpha = T.isHex(t1.peekChar$0()) ? ((_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0()) / 255 : 1;
  44298. }
  44299. }
  44300. return K.SassColor$rgb(red, green, blue, alpha, t1.spanFrom$1(start));
  44301. },
  44302. _isHexColor$1: function(interpolation) {
  44303. var t1,
  44304. plain = interpolation.get$asPlain();
  44305. if (plain == null)
  44306. return false;
  44307. t1 = plain.length;
  44308. if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
  44309. return false;
  44310. t1 = new H.CodeUnits(plain);
  44311. return t1.every$1(t1, T.character__isHex$closure());
  44312. },
  44313. _hexDigit$0: function() {
  44314. var t1 = this.scanner,
  44315. char = t1.peekChar$0();
  44316. if (char == null || !T.isHex(char))
  44317. t1.error$1("Expected hex digit.");
  44318. return T.asHex(t1.readChar$0());
  44319. },
  44320. _minusExpression$0: function() {
  44321. var _this = this,
  44322. next = _this.scanner.peekChar$1(1);
  44323. if (T.isDigit(next) || next === 46)
  44324. return _this._number$0();
  44325. if (_this._lookingAtInterpolatedIdentifier$0())
  44326. return _this.identifierLike$0();
  44327. return _this._unaryOperation$0();
  44328. },
  44329. _importantExpression$0: function() {
  44330. var t1 = this.scanner,
  44331. t2 = t1._string_scanner$_position;
  44332. t1.readChar$0();
  44333. this.whitespace$0();
  44334. this.expectIdentifier$1("important");
  44335. t2 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  44336. return new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo(["!important"], type$.JSArray_legacy_Object), t2), false);
  44337. },
  44338. _unaryOperation$0: function() {
  44339. var _this = this,
  44340. t1 = _this.scanner,
  44341. t2 = t1._string_scanner$_position,
  44342. operator = _this._unaryOperatorFor$1(t1.readChar$0());
  44343. if (operator == null)
  44344. t1.error$2$position("Expected unary operator.", t1._string_scanner$_position - 1);
  44345. else if (_this.get$plainCss() && operator !== C.UnaryOperator_zDx)
  44346. t1.error$3$length$position("Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  44347. _this.whitespace$0();
  44348. return new X.UnaryOperationExpression(operator, _this._singleExpression$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  44349. },
  44350. _unaryOperatorFor$1: function(character) {
  44351. switch (character) {
  44352. case 43:
  44353. return C.UnaryOperator_j2w;
  44354. case 45:
  44355. return C.UnaryOperator_U4G;
  44356. case 47:
  44357. return C.UnaryOperator_zDx;
  44358. default:
  44359. return null;
  44360. }
  44361. },
  44362. _number$0: function() {
  44363. var number, t4, unit, t5, _this = this,
  44364. t1 = _this.scanner,
  44365. t2 = t1._string_scanner$_position,
  44366. first = t1.peekChar$0(),
  44367. t3 = first === 45,
  44368. sign = t3 ? -1 : 1;
  44369. if (first === 43 || t3)
  44370. t1.readChar$0();
  44371. number = t1.peekChar$0() === 46 ? 0 : _this.naturalNumber$0();
  44372. t3 = _this._tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
  44373. t4 = _this._tryExponent$0();
  44374. if (t1.scanChar$1(37))
  44375. unit = "%";
  44376. else {
  44377. if (_this.lookingAtIdentifier$0())
  44378. t5 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  44379. else
  44380. t5 = false;
  44381. unit = t5 ? _this.identifier$1$unit(true) : null;
  44382. }
  44383. return new T.NumberExpression(sign * ((number + t3) * t4), unit, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  44384. },
  44385. _tryDecimal$1$allowTrailingDot: function(allowTrailingDot) {
  44386. var t2,
  44387. t1 = this.scanner,
  44388. start = t1._string_scanner$_position;
  44389. if (t1.peekChar$0() !== 46)
  44390. return 0;
  44391. if (!T.isDigit(t1.peekChar$1(1))) {
  44392. if (allowTrailingDot)
  44393. return 0;
  44394. t1.error$2$position("Expected digit.", t1._string_scanner$_position + 1);
  44395. }
  44396. t1.readChar$0();
  44397. while (true) {
  44398. t2 = t1.peekChar$0();
  44399. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  44400. break;
  44401. t1.readChar$0();
  44402. }
  44403. return P.double_parse(t1.substring$1(0, start));
  44404. },
  44405. _tryExponent$0: function() {
  44406. var next, t2, exponentSign, exponent,
  44407. t1 = this.scanner,
  44408. first = t1.peekChar$0();
  44409. if (first !== 101 && first !== 69)
  44410. return 1;
  44411. next = t1.peekChar$1(1);
  44412. if (!T.isDigit(next) && next !== 45 && next !== 43)
  44413. return 1;
  44414. t1.readChar$0();
  44415. t2 = next === 45;
  44416. exponentSign = t2 ? -1 : 1;
  44417. if (next === 43 || t2)
  44418. t1.readChar$0();
  44419. if (!T.isDigit(t1.peekChar$0()))
  44420. t1.error$1("Expected digit.");
  44421. exponent = 0;
  44422. while (true) {
  44423. t2 = t1.peekChar$0();
  44424. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  44425. break;
  44426. exponent = exponent * 10 + (t1.readChar$0() - 48);
  44427. }
  44428. return Math.pow(10, exponentSign * exponent);
  44429. },
  44430. _unicodeRange$0: function() {
  44431. var i, t2, j, _this = this,
  44432. t1 = _this.scanner,
  44433. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44434. _this.expectIdentChar$1(117);
  44435. t1.expectChar$1(43);
  44436. for (i = 0; i < 6; ++i)
  44437. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure()))
  44438. break;
  44439. if (t1.scanChar$1(63)) {
  44440. ++i;
  44441. for (; i < 6; ++i)
  44442. if (!t1.scanChar$1(63))
  44443. break;
  44444. t2 = t1.substring$1(0, start.position);
  44445. t1 = t1.spanFrom$1(start);
  44446. return new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([t2], type$.JSArray_legacy_Object), t1), false);
  44447. }
  44448. if (i === 0)
  44449. t1.error$1('Expected hex digit or "?".');
  44450. if (t1.scanChar$1(45)) {
  44451. for (j = 0; j < 6; ++j)
  44452. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure0()))
  44453. break;
  44454. if (j === 0)
  44455. t1.error$1("Expected hex digit.");
  44456. }
  44457. if (_this._lookingAtInterpolatedIdentifierBody$0())
  44458. t1.error$1("Expected end of identifier.");
  44459. t2 = t1.substring$1(0, start.position);
  44460. t1 = t1.spanFrom$1(start);
  44461. return new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([t2], type$.JSArray_legacy_Object), t1), false);
  44462. },
  44463. _variable$0: function() {
  44464. var _this = this,
  44465. t1 = _this.scanner,
  44466. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  44467. $name = _this.variableName$0();
  44468. if (_this.get$plainCss())
  44469. _this.error$2(string$.Sass_v, t1.spanFrom$1(start));
  44470. return new S.VariableExpression(null, $name, t1.spanFrom$1(start));
  44471. },
  44472. _selector$0: function() {
  44473. var t1, start, _this = this;
  44474. if (_this.get$plainCss())
  44475. _this.scanner.error$2$length(string$.The_pa, 1);
  44476. t1 = _this.scanner;
  44477. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44478. t1.expectChar$1(38);
  44479. if (t1.scanChar$1(38)) {
  44480. _this.logger.warn$2$span(string$.In_Sas, t1.spanFrom$1(start));
  44481. t1.set$position(t1._string_scanner$_position - 1);
  44482. }
  44483. return new T.SelectorExpression(t1.spanFrom$1(start));
  44484. },
  44485. interpolatedString$0: function() {
  44486. var t3, t4, buffer, next, second, t5,
  44487. t1 = this.scanner,
  44488. t2 = t1._string_scanner$_position,
  44489. quote = t1.readChar$0();
  44490. if (quote !== 39 && quote !== 34)
  44491. t1.error$2$position("Expected string.", t2);
  44492. t3 = new P.StringBuffer("");
  44493. t4 = [];
  44494. buffer = new Z.InterpolationBuffer(t3, t4);
  44495. for (; true;) {
  44496. next = t1.peekChar$0();
  44497. if (next === quote) {
  44498. t1.readChar$0();
  44499. break;
  44500. } else if (next == null || next === 10 || next === 13 || next === 12)
  44501. t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  44502. else if (next === 92) {
  44503. second = t1.peekChar$1(1);
  44504. if (second === 10 || second === 13 || second === 12) {
  44505. t1.readChar$0();
  44506. t1.readChar$0();
  44507. if (second === 13)
  44508. t1.scanChar$1(10);
  44509. } else
  44510. t3._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  44511. } else if (next === 35)
  44512. if (t1.peekChar$1(1) === 123) {
  44513. t5 = this.singleInterpolation$0();
  44514. buffer._flushText$0();
  44515. t4.push(t5);
  44516. } else
  44517. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44518. else
  44519. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44520. }
  44521. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), true);
  44522. },
  44523. identifierLike$0: function() {
  44524. var invocation, lower, color, specialFunction, $name, _this = this,
  44525. t1 = _this.scanner,
  44526. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  44527. identifier = _this.interpolatedIdentifier$0(),
  44528. plain = identifier.get$asPlain(),
  44529. t2 = plain == null;
  44530. if (!t2) {
  44531. if (plain === "if") {
  44532. invocation = _this._argumentInvocation$0();
  44533. return new L.IfExpression(invocation, B.spanForList(H.setRuntimeTypeInfo([identifier, invocation], type$.JSArray_legacy_AstNode)));
  44534. } else if (plain === "not") {
  44535. _this.whitespace$0();
  44536. return new X.UnaryOperationExpression(C.UnaryOperator_not_not, _this._singleExpression$0(), identifier.span);
  44537. }
  44538. lower = plain.toLowerCase();
  44539. if (t1.peekChar$0() !== 40) {
  44540. switch (plain) {
  44541. case "false":
  44542. return new Z.BooleanExpression(false, identifier.span);
  44543. case "null":
  44544. return new O.NullExpression(identifier.span);
  44545. case "true":
  44546. return new Z.BooleanExpression(true, identifier.span);
  44547. }
  44548. color = $.$get$colorsByName().$index(0, lower);
  44549. if (color != null)
  44550. return new K.ColorExpression(K.SassColor$rgb(color.get$red(), color.get$green(), color.get$blue(), color.alpha, identifier.span));
  44551. }
  44552. specialFunction = _this.trySpecialFunction$2(lower, start);
  44553. if (specialFunction != null)
  44554. return specialFunction;
  44555. }
  44556. switch (t1.peekChar$0()) {
  44557. case 46:
  44558. if (t1.peekChar$1(1) === 46)
  44559. return new D.StringExpression(identifier, false);
  44560. t1.readChar$0();
  44561. if (t2)
  44562. _this.error$2(string$.Interpn, identifier.span);
  44563. if (t1.peekChar$0() === 36) {
  44564. $name = _this.variableName$0();
  44565. _this._assertPublic$2($name, new V.StylesheetParser_identifierLike_closure(_this, start));
  44566. return new S.VariableExpression(plain, $name, t1.spanFrom$1(start));
  44567. }
  44568. t2 = t1._string_scanner$_position;
  44569. return new F.FunctionExpression(plain, X.Interpolation$(H.setRuntimeTypeInfo([_this._publicIdentifier$0()], type$.JSArray_legacy_Object), t1.spanFrom$1(new S._SpanScannerState(t1, t2))), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  44570. case 40:
  44571. return new F.FunctionExpression(null, identifier, _this._argumentInvocation$0(), t1.spanFrom$1(start));
  44572. default:
  44573. return new D.StringExpression(identifier, false);
  44574. }
  44575. },
  44576. trySpecialFunction$2: function($name, start) {
  44577. var t1, buffer, t2, t3, next, contents, _this = this, _null = null;
  44578. switch (B.unvendor($name)) {
  44579. case "calc":
  44580. case "element":
  44581. case "expression":
  44582. if (!_this.scanner.scanChar$1(40))
  44583. return _null;
  44584. t1 = new P.StringBuffer("");
  44585. buffer = new Z.InterpolationBuffer(t1, []);
  44586. t1._contents = $name;
  44587. t1._contents += H.Primitives_stringFromCharCode(40);
  44588. break;
  44589. case "min":
  44590. case "max":
  44591. t1 = _this.scanner;
  44592. t2 = t1._string_scanner$_position;
  44593. if (!t1.scanChar$1(40))
  44594. return _null;
  44595. _this.whitespace$0();
  44596. t3 = new P.StringBuffer("");
  44597. buffer = new Z.InterpolationBuffer(t3, []);
  44598. t3._contents = $name;
  44599. t3._contents += H.Primitives_stringFromCharCode(40);
  44600. if (!_this._tryMinMaxContents$1(buffer)) {
  44601. t1.set$state(new S._SpanScannerState(t1, t2));
  44602. return _null;
  44603. }
  44604. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  44605. case "progid":
  44606. t1 = _this.scanner;
  44607. if (!t1.scanChar$1(58))
  44608. return _null;
  44609. t2 = new P.StringBuffer("");
  44610. buffer = new Z.InterpolationBuffer(t2, []);
  44611. t2._contents = $name;
  44612. t2._contents += H.Primitives_stringFromCharCode(58);
  44613. next = t1.peekChar$0();
  44614. while (true) {
  44615. if (next != null) {
  44616. if (!(next >= 97 && next <= 122))
  44617. t3 = next >= 65 && next <= 90;
  44618. else
  44619. t3 = true;
  44620. t3 = t3 || next === 46;
  44621. } else
  44622. t3 = false;
  44623. if (!t3)
  44624. break;
  44625. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44626. next = t1.peekChar$0();
  44627. }
  44628. t1.expectChar$1(40);
  44629. t2._contents += H.Primitives_stringFromCharCode(40);
  44630. break;
  44631. case "url":
  44632. contents = _this._tryUrlContents$1(start);
  44633. return contents == null ? _null : new D.StringExpression(contents, false);
  44634. default:
  44635. return _null;
  44636. }
  44637. buffer.addInterpolation$1(_this._interpolatedDeclarationValue$1$allowEmpty(true).text);
  44638. t1 = _this.scanner;
  44639. t1.expectChar$1(41);
  44640. buffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(41);
  44641. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  44642. },
  44643. _tryMinMaxContents$2$allowComma: function(buffer, allowComma) {
  44644. var t1, t2, t3, t4, start, end, exception, t5, _this = this;
  44645. for (t1 = _this.scanner, t2 = buffer._interpolation_buffer$_text, t3 = !allowComma, t4 = _this.get$_number(); true;) {
  44646. switch (t1.peekChar$0()) {
  44647. case 45:
  44648. case 43:
  44649. case 48:
  44650. case 49:
  44651. case 50:
  44652. case 51:
  44653. case 52:
  44654. case 53:
  44655. case 54:
  44656. case 55:
  44657. case 56:
  44658. case 57:
  44659. try {
  44660. start = t1._string_scanner$_position;
  44661. t4.call$0();
  44662. end = t1._string_scanner$_position;
  44663. t2._contents += J.substring$2$s(t1.string, start, end);
  44664. } catch (exception) {
  44665. if (type$.legacy_FormatException._is(H.unwrapException(exception)))
  44666. return false;
  44667. else
  44668. throw exception;
  44669. }
  44670. break;
  44671. case 35:
  44672. if (t1.peekChar$1(1) !== 123)
  44673. return false;
  44674. t5 = _this.singleInterpolation$0();
  44675. buffer._flushText$0();
  44676. buffer._interpolation_buffer$_contents.push(t5);
  44677. break;
  44678. case 99:
  44679. case 67:
  44680. if (!_this._tryMinMaxFunction$2(buffer, "calc"))
  44681. return false;
  44682. break;
  44683. case 101:
  44684. case 69:
  44685. if (!_this._tryMinMaxFunction$2(buffer, "env"))
  44686. return false;
  44687. break;
  44688. case 118:
  44689. case 86:
  44690. if (!_this._tryMinMaxFunction$2(buffer, "var"))
  44691. return false;
  44692. break;
  44693. case 40:
  44694. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44695. if (!_this._tryMinMaxContents$2$allowComma(buffer, false))
  44696. return false;
  44697. break;
  44698. case 109:
  44699. case 77:
  44700. t1.readChar$0();
  44701. if (_this.scanIdentChar$1(105)) {
  44702. if (!_this.scanIdentChar$1(110))
  44703. return false;
  44704. t2._contents += "min(";
  44705. } else if (_this.scanIdentChar$1(97)) {
  44706. if (!_this.scanIdentChar$1(120))
  44707. return false;
  44708. t2._contents += "max(";
  44709. } else
  44710. return false;
  44711. if (!t1.scanChar$1(40))
  44712. return false;
  44713. if (!_this._tryMinMaxContents$1(buffer))
  44714. return false;
  44715. break;
  44716. default:
  44717. return false;
  44718. }
  44719. _this.whitespace$0();
  44720. switch (t1.peekChar$0()) {
  44721. case 41:
  44722. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44723. return true;
  44724. case 43:
  44725. case 45:
  44726. case 42:
  44727. case 47:
  44728. t2._contents += H.Primitives_stringFromCharCode(32);
  44729. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44730. t2._contents += H.Primitives_stringFromCharCode(32);
  44731. break;
  44732. case 44:
  44733. if (t3)
  44734. return false;
  44735. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44736. t2._contents += H.Primitives_stringFromCharCode(32);
  44737. break;
  44738. default:
  44739. return false;
  44740. }
  44741. _this.whitespace$0();
  44742. }
  44743. },
  44744. _tryMinMaxContents$1: function(buffer) {
  44745. return this._tryMinMaxContents$2$allowComma(buffer, true);
  44746. },
  44747. _tryMinMaxFunction$2: function(buffer, $name) {
  44748. var t1, t2;
  44749. if (!this.scanIdentifier$1($name))
  44750. return false;
  44751. t1 = this.scanner;
  44752. if (!t1.scanChar$1(40))
  44753. return false;
  44754. t2 = buffer._interpolation_buffer$_text;
  44755. t2._contents += $name;
  44756. t2._contents += H.Primitives_stringFromCharCode(40);
  44757. buffer.addInterpolation$1(this._interpolatedDeclarationValue$1$allowEmpty(true).asInterpolation$0());
  44758. t2._contents += H.Primitives_stringFromCharCode(41);
  44759. if (!t1.scanChar$1(41))
  44760. return false;
  44761. return true;
  44762. },
  44763. _tryUrlContents$2$name: function(start, $name) {
  44764. var t3, t4, buffer, next, t5, endPosition, _this = this,
  44765. t1 = _this.scanner,
  44766. t2 = t1._string_scanner$_position;
  44767. if (!t1.scanChar$1(40))
  44768. return null;
  44769. _this.whitespaceWithoutComments$0();
  44770. t3 = new P.StringBuffer("");
  44771. t4 = [];
  44772. buffer = new Z.InterpolationBuffer(t3, t4);
  44773. t3._contents = $name == null ? "url" : $name;
  44774. t3._contents += H.Primitives_stringFromCharCode(40);
  44775. for (; true;) {
  44776. next = t1.peekChar$0();
  44777. if (next == null)
  44778. break;
  44779. else {
  44780. if (next !== 33)
  44781. if (next !== 37)
  44782. if (next !== 38)
  44783. t5 = next >= 42 && next <= 126 || next >= 128;
  44784. else
  44785. t5 = true;
  44786. else
  44787. t5 = true;
  44788. else
  44789. t5 = true;
  44790. if (t5)
  44791. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44792. else if (next === 92)
  44793. t3._contents += H.S(_this.escape$0());
  44794. else if (next === 35)
  44795. if (t1.peekChar$1(1) === 123) {
  44796. t5 = _this.singleInterpolation$0();
  44797. buffer._flushText$0();
  44798. t4.push(t5);
  44799. } else
  44800. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44801. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  44802. _this.whitespaceWithoutComments$0();
  44803. if (t1.peekChar$0() !== 41)
  44804. break;
  44805. } else if (next === 41) {
  44806. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44807. endPosition = t1._string_scanner$_position;
  44808. return buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, start.position, endPosition));
  44809. } else
  44810. break;
  44811. }
  44812. }
  44813. t1.set$state(new S._SpanScannerState(t1, t2));
  44814. return null;
  44815. },
  44816. _tryUrlContents$1: function(start) {
  44817. return this._tryUrlContents$2$name(start, null);
  44818. },
  44819. dynamicUrl$0: function() {
  44820. var contents, _this = this,
  44821. t1 = _this.scanner,
  44822. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44823. _this.expectIdentifier$1("url");
  44824. contents = _this._tryUrlContents$1(start);
  44825. if (contents != null)
  44826. return new D.StringExpression(contents, false);
  44827. return new F.FunctionExpression(null, X.Interpolation$(H.setRuntimeTypeInfo(["url"], type$.JSArray_legacy_Object), t1.spanFrom$1(start)), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  44828. },
  44829. almostAnyValue$1$omitComments: function(omitComments) {
  44830. var t4, t5, next, commentStart, end, t6, contents, _this = this,
  44831. t1 = _this.scanner,
  44832. t2 = t1._string_scanner$_position,
  44833. t3 = new P.StringBuffer(""),
  44834. buffer = new Z.InterpolationBuffer(t3, []);
  44835. $label0$1:
  44836. for (t4 = t1.string, t5 = !omitComments; true;) {
  44837. next = t1.peekChar$0();
  44838. switch (next) {
  44839. case 92:
  44840. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44841. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44842. break;
  44843. case 34:
  44844. case 39:
  44845. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  44846. break;
  44847. case 47:
  44848. commentStart = t1._string_scanner$_position;
  44849. if (_this.scanComment$0()) {
  44850. if (t5) {
  44851. end = t1._string_scanner$_position;
  44852. t3._contents += J.substring$2$s(t4, commentStart, end);
  44853. }
  44854. } else
  44855. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44856. break;
  44857. case 35:
  44858. if (t1.peekChar$1(1) === 123)
  44859. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  44860. else
  44861. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44862. break;
  44863. case 13:
  44864. case 10:
  44865. case 12:
  44866. if (_this.get$indented())
  44867. break $label0$1;
  44868. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44869. break;
  44870. case 33:
  44871. case 59:
  44872. case 123:
  44873. case 125:
  44874. break $label0$1;
  44875. case 117:
  44876. case 85:
  44877. t6 = t1._string_scanner$_position;
  44878. if (!_this.scanIdentifier$1("url")) {
  44879. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44880. break;
  44881. }
  44882. contents = _this._tryUrlContents$1(new S._SpanScannerState(t1, t6));
  44883. if (contents == null) {
  44884. if (t6 < 0 || t6 > t4.length)
  44885. H.throwExpression(P.ArgumentError$("Invalid position " + t6));
  44886. t1._string_scanner$_position = t6;
  44887. t1._lastMatch = null;
  44888. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44889. } else
  44890. buffer.addInterpolation$1(contents);
  44891. break;
  44892. default:
  44893. if (next == null)
  44894. break $label0$1;
  44895. if (_this.lookingAtIdentifier$0())
  44896. t3._contents += _this.identifier$0();
  44897. else
  44898. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44899. break;
  44900. }
  44901. }
  44902. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  44903. },
  44904. almostAnyValue$0: function() {
  44905. return this.almostAnyValue$1$omitComments(false);
  44906. },
  44907. _interpolatedDeclarationValue$1$allowEmpty: function(allowEmpty) {
  44908. var t4, wroteNewline, next, t5, start, end, contents, _this = this,
  44909. t1 = _this.scanner,
  44910. t2 = t1._string_scanner$_position,
  44911. t3 = new P.StringBuffer(""),
  44912. buffer = new Z.InterpolationBuffer(t3, []),
  44913. brackets = H.setRuntimeTypeInfo([], type$.JSArray_legacy_int);
  44914. $label0$1:
  44915. for (t4 = t1.string, wroteNewline = false; true;) {
  44916. next = t1.peekChar$0();
  44917. switch (next) {
  44918. case 92:
  44919. t3._contents += H.S(_this.escape$1$identifierStart(true));
  44920. wroteNewline = false;
  44921. break;
  44922. case 34:
  44923. case 39:
  44924. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  44925. wroteNewline = false;
  44926. break;
  44927. case 47:
  44928. if (t1.peekChar$1(1) === 42) {
  44929. t5 = _this.get$loudComment();
  44930. start = t1._string_scanner$_position;
  44931. t5.call$0();
  44932. end = t1._string_scanner$_position;
  44933. t3._contents += J.substring$2$s(t4, start, end);
  44934. } else
  44935. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44936. wroteNewline = false;
  44937. break;
  44938. case 35:
  44939. if (t1.peekChar$1(1) === 123)
  44940. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  44941. else
  44942. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44943. wroteNewline = false;
  44944. break;
  44945. case 32:
  44946. case 9:
  44947. if (!wroteNewline) {
  44948. t5 = t1.peekChar$1(1);
  44949. t5 = !(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12);
  44950. } else
  44951. t5 = true;
  44952. if (t5)
  44953. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44954. else
  44955. t1.readChar$0();
  44956. break;
  44957. case 10:
  44958. case 13:
  44959. case 12:
  44960. if (_this.get$indented())
  44961. break $label0$1;
  44962. t5 = t1.peekChar$1(-1);
  44963. if (!(t5 === 10 || t5 === 13 || t5 === 12))
  44964. t3._contents += "\n";
  44965. t1.readChar$0();
  44966. wroteNewline = true;
  44967. break;
  44968. case 40:
  44969. case 123:
  44970. case 91:
  44971. t3._contents += H.Primitives_stringFromCharCode(next);
  44972. brackets.push(T.opposite(t1.readChar$0()));
  44973. wroteNewline = false;
  44974. break;
  44975. case 41:
  44976. case 125:
  44977. case 93:
  44978. if (brackets.length === 0)
  44979. break $label0$1;
  44980. t3._contents += H.Primitives_stringFromCharCode(next);
  44981. t1.expectChar$1(brackets.pop());
  44982. wroteNewline = false;
  44983. break;
  44984. case 59:
  44985. if (brackets.length === 0)
  44986. break $label0$1;
  44987. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44988. break;
  44989. case 117:
  44990. case 85:
  44991. t5 = t1._string_scanner$_position;
  44992. if (!_this.scanIdentifier$1("url")) {
  44993. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  44994. wroteNewline = false;
  44995. break;
  44996. }
  44997. contents = _this._tryUrlContents$1(new S._SpanScannerState(t1, t5));
  44998. if (contents == null) {
  44999. if (t5 < 0 || t5 > t4.length)
  45000. H.throwExpression(P.ArgumentError$("Invalid position " + t5));
  45001. t1._string_scanner$_position = t5;
  45002. t1._lastMatch = null;
  45003. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45004. } else
  45005. buffer.addInterpolation$1(contents);
  45006. wroteNewline = false;
  45007. break;
  45008. default:
  45009. if (next == null)
  45010. break $label0$1;
  45011. if (_this.lookingAtIdentifier$0())
  45012. t3._contents += _this.identifier$0();
  45013. else
  45014. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45015. wroteNewline = false;
  45016. break;
  45017. }
  45018. }
  45019. if (brackets.length !== 0)
  45020. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  45021. if (!allowEmpty && buffer._interpolation_buffer$_contents.length === 0 && t3._contents.length === 0)
  45022. t1.error$1("Expected token.");
  45023. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
  45024. },
  45025. _interpolatedDeclarationValue$0: function() {
  45026. return this._interpolatedDeclarationValue$1$allowEmpty(false);
  45027. },
  45028. interpolatedIdentifier$0: function() {
  45029. var first, _this = this,
  45030. _s20_ = "Expected identifier.",
  45031. t1 = _this.scanner,
  45032. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  45033. t2 = new P.StringBuffer(""),
  45034. t3 = [],
  45035. buffer = new Z.InterpolationBuffer(t2, t3);
  45036. if (t1.scanChar$1(45)) {
  45037. t2._contents += H.Primitives_stringFromCharCode(45);
  45038. if (t1.scanChar$1(45)) {
  45039. t2._contents += H.Primitives_stringFromCharCode(45);
  45040. _this._interpolatedIdentifierBody$1(buffer);
  45041. return buffer.interpolation$1(t1.spanFrom$1(start));
  45042. }
  45043. }
  45044. first = t1.peekChar$0();
  45045. if (first == null)
  45046. t1.error$1(_s20_);
  45047. else if (first === 95 || T.isAlphabetic0(first) || first >= 128)
  45048. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45049. else if (first === 92)
  45050. t2._contents += H.S(_this.escape$1$identifierStart(true));
  45051. else if (first === 35 && t1.peekChar$1(1) === 123) {
  45052. t2 = _this.singleInterpolation$0();
  45053. buffer._flushText$0();
  45054. t3.push(t2);
  45055. } else
  45056. t1.error$1(_s20_);
  45057. _this._interpolatedIdentifierBody$1(buffer);
  45058. return buffer.interpolation$1(t1.spanFrom$1(start));
  45059. },
  45060. _interpolatedIdentifierBody$1: function(buffer) {
  45061. var t1, t2, t3, next, t4;
  45062. for (t1 = buffer._interpolation_buffer$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer$_text; true;) {
  45063. next = t2.peekChar$0();
  45064. if (next == null)
  45065. break;
  45066. else {
  45067. if (next !== 95)
  45068. if (next !== 45) {
  45069. if (!(next >= 97 && next <= 122))
  45070. t4 = next >= 65 && next <= 90;
  45071. else
  45072. t4 = true;
  45073. if (!t4)
  45074. t4 = next >= 48 && next <= 57;
  45075. else
  45076. t4 = true;
  45077. t4 = t4 || next >= 128;
  45078. } else
  45079. t4 = true;
  45080. else
  45081. t4 = true;
  45082. if (t4)
  45083. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  45084. else if (next === 92)
  45085. t3._contents += H.S(this.escape$0());
  45086. else if (next === 35 && t2.peekChar$1(1) === 123) {
  45087. t4 = this.singleInterpolation$0();
  45088. buffer._flushText$0();
  45089. t1.push(t4);
  45090. } else
  45091. break;
  45092. }
  45093. }
  45094. },
  45095. singleInterpolation$0: function() {
  45096. var contents, _this = this,
  45097. t1 = _this.scanner,
  45098. t2 = t1._string_scanner$_position;
  45099. t1.expect$1("#{");
  45100. _this.whitespace$0();
  45101. contents = _this.expression$0();
  45102. t1.expectChar$1(125);
  45103. if (_this.get$plainCss())
  45104. _this.error$2(string$.Interpp, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45105. return contents;
  45106. },
  45107. _mediaQueryList$0: function() {
  45108. var t1 = this.scanner,
  45109. t2 = t1._string_scanner$_position,
  45110. t3 = new P.StringBuffer(""),
  45111. buffer = new Z.InterpolationBuffer(t3, []);
  45112. for (; true;) {
  45113. this.whitespace$0();
  45114. this._stylesheet$_mediaQuery$1(buffer);
  45115. if (!t1.scanChar$1(44))
  45116. break;
  45117. t3._contents += H.Primitives_stringFromCharCode(44);
  45118. t3._contents += H.Primitives_stringFromCharCode(32);
  45119. }
  45120. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45121. },
  45122. _stylesheet$_mediaQuery$1: function(buffer) {
  45123. var t1, identifier, _this = this;
  45124. if (_this.scanner.peekChar$0() !== 40) {
  45125. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  45126. _this.whitespace$0();
  45127. if (!_this._lookingAtInterpolatedIdentifier$0())
  45128. return;
  45129. t1 = buffer._interpolation_buffer$_text;
  45130. t1._contents += H.Primitives_stringFromCharCode(32);
  45131. identifier = _this.interpolatedIdentifier$0();
  45132. _this.whitespace$0();
  45133. if (B.equalsIgnoreCase(identifier.get$asPlain(), "and"))
  45134. t1._contents += " and ";
  45135. else {
  45136. buffer.addInterpolation$1(identifier);
  45137. if (_this.scanIdentifier$1("and")) {
  45138. _this.whitespace$0();
  45139. t1._contents += " and ";
  45140. } else
  45141. return;
  45142. }
  45143. }
  45144. for (t1 = buffer._interpolation_buffer$_text; true;) {
  45145. _this.whitespace$0();
  45146. buffer.addInterpolation$1(_this._mediaFeature$0());
  45147. _this.whitespace$0();
  45148. if (!_this.scanIdentifier$1("and"))
  45149. break;
  45150. t1._contents += " and ";
  45151. }
  45152. },
  45153. _mediaFeature$0: function() {
  45154. var interpolation, t2, t3, t4, buffer, t5, next, isAngle, _this = this,
  45155. t1 = _this.scanner;
  45156. if (t1.peekChar$0() === 35) {
  45157. interpolation = _this.singleInterpolation$0();
  45158. return X.Interpolation$(H.setRuntimeTypeInfo([interpolation], type$.JSArray_legacy_Object), interpolation.get$span());
  45159. }
  45160. t2 = t1._string_scanner$_position;
  45161. t3 = new P.StringBuffer("");
  45162. t4 = [];
  45163. buffer = new Z.InterpolationBuffer(t3, t4);
  45164. t1.expectChar$1(40);
  45165. t3._contents += H.Primitives_stringFromCharCode(40);
  45166. _this.whitespace$0();
  45167. t5 = _this._expressionUntilComparison$0();
  45168. buffer._flushText$0();
  45169. t4.push(t5);
  45170. if (t1.scanChar$1(58)) {
  45171. _this.whitespace$0();
  45172. t3._contents += H.Primitives_stringFromCharCode(58);
  45173. t3._contents += H.Primitives_stringFromCharCode(32);
  45174. t5 = _this.expression$0();
  45175. buffer._flushText$0();
  45176. t4.push(t5);
  45177. } else {
  45178. next = t1.peekChar$0();
  45179. isAngle = next === 60 || next === 62;
  45180. if (isAngle || next === 61) {
  45181. t3._contents += H.Primitives_stringFromCharCode(32);
  45182. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45183. if (isAngle && t1.scanChar$1(61))
  45184. t3._contents += H.Primitives_stringFromCharCode(61);
  45185. t3._contents += H.Primitives_stringFromCharCode(32);
  45186. _this.whitespace$0();
  45187. t5 = _this._expressionUntilComparison$0();
  45188. buffer._flushText$0();
  45189. t4.push(t5);
  45190. if (isAngle && t1.scanChar$1(next)) {
  45191. t3._contents += H.Primitives_stringFromCharCode(32);
  45192. t3._contents += H.Primitives_stringFromCharCode(next);
  45193. if (t1.scanChar$1(61))
  45194. t3._contents += H.Primitives_stringFromCharCode(61);
  45195. t3._contents += H.Primitives_stringFromCharCode(32);
  45196. _this.whitespace$0();
  45197. t5 = _this._expressionUntilComparison$0();
  45198. buffer._flushText$0();
  45199. t4.push(t5);
  45200. }
  45201. }
  45202. }
  45203. t1.expectChar$1(41);
  45204. _this.whitespace$0();
  45205. t3._contents += H.Primitives_stringFromCharCode(41);
  45206. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45207. },
  45208. _expressionUntilComparison$0: function() {
  45209. return this.expression$1$until(new V.StylesheetParser__expressionUntilComparison_closure(this));
  45210. },
  45211. _supportsCondition$0: function() {
  45212. var condition, operator, right, endPosition, lowerOperator, _this = this,
  45213. t1 = _this.scanner,
  45214. t2 = t1._string_scanner$_position,
  45215. first = t1.peekChar$0();
  45216. if (first !== 40 && first !== 35) {
  45217. t2 = t1._string_scanner$_position;
  45218. _this.expectIdentifier$1("not");
  45219. _this.whitespace$0();
  45220. return new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45221. }
  45222. condition = _this._supportsConditionInParens$0();
  45223. _this.whitespace$0();
  45224. for (; _this.lookingAtIdentifier$0();) {
  45225. if (_this.scanIdentifier$1("or"))
  45226. operator = "or";
  45227. else {
  45228. _this.expectIdentifier$1("and");
  45229. operator = "and";
  45230. }
  45231. _this.whitespace$0();
  45232. right = _this._supportsConditionInParens$0();
  45233. endPosition = t1._string_scanner$_position;
  45234. condition = new U.SupportsOperation(condition, right, operator, Y._FileSpan$(t1._sourceFile, t2, endPosition));
  45235. lowerOperator = operator.toLowerCase();
  45236. if (lowerOperator !== "and" && lowerOperator !== "or")
  45237. H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  45238. _this.whitespace$0();
  45239. }
  45240. return condition;
  45241. },
  45242. _supportsConditionInParens$0: function() {
  45243. var next, condition, negation, $name, value, _this = this,
  45244. t1 = _this.scanner,
  45245. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  45246. if (t1.peekChar$0() === 35)
  45247. return new X.SupportsInterpolation(_this.singleInterpolation$0(), t1.spanFrom$1(start));
  45248. t1.expectChar$1(40);
  45249. _this.whitespace$0();
  45250. next = t1.peekChar$0();
  45251. if (next === 40 || next === 35) {
  45252. condition = _this._supportsCondition$0();
  45253. _this.whitespace$0();
  45254. t1.expectChar$1(41);
  45255. return condition;
  45256. }
  45257. if (next === 110 || next === 78) {
  45258. negation = _this._trySupportsNegation$0();
  45259. if (negation != null) {
  45260. t1.expectChar$1(41);
  45261. return negation;
  45262. }
  45263. }
  45264. $name = _this.expression$0();
  45265. t1.expectChar$1(58);
  45266. _this.whitespace$0();
  45267. value = _this.expression$0();
  45268. t1.expectChar$1(41);
  45269. return new L.SupportsDeclaration($name, value, t1.spanFrom$1(start));
  45270. },
  45271. _trySupportsNegation$0: function() {
  45272. var next, _this = this,
  45273. t1 = _this.scanner,
  45274. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  45275. if (!_this.scanIdentifier$1("not") || t1._string_scanner$_position === t1.string.length) {
  45276. t1.set$state(start);
  45277. return null;
  45278. }
  45279. next = t1.peekChar$0();
  45280. if (!(next === 32 || next === 9 || T.isNewline(next)) && next !== 40) {
  45281. t1.set$state(start);
  45282. return null;
  45283. }
  45284. _this.whitespace$0();
  45285. return new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(start));
  45286. },
  45287. _lookingAtInterpolatedIdentifier$0: function() {
  45288. var second,
  45289. t1 = this.scanner,
  45290. first = t1.peekChar$0();
  45291. if (first == null)
  45292. return false;
  45293. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || first === 92)
  45294. return true;
  45295. if (first === 35)
  45296. return t1.peekChar$1(1) === 123;
  45297. if (first !== 45)
  45298. return false;
  45299. second = t1.peekChar$1(1);
  45300. if (second == null)
  45301. return false;
  45302. if (second === 35)
  45303. return t1.peekChar$1(2) === 123;
  45304. return second === 95 || T.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
  45305. },
  45306. _lookingAtInterpolatedIdentifierBody$0: function() {
  45307. var t1 = this.scanner,
  45308. first = t1.peekChar$0();
  45309. if (first == null)
  45310. return false;
  45311. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || T.isDigit(first) || first === 45 || first === 92)
  45312. return true;
  45313. return first === 35 && t1.peekChar$1(1) === 123;
  45314. },
  45315. _lookingAtExpression$0: function() {
  45316. var next,
  45317. t1 = this.scanner,
  45318. character = t1.peekChar$0();
  45319. if (character == null)
  45320. return false;
  45321. if (character === 46)
  45322. return t1.peekChar$1(1) !== 46;
  45323. if (character === 33) {
  45324. next = t1.peekChar$1(1);
  45325. if (next != null)
  45326. if ((next | 32) !== 105)
  45327. t1 = next === 32 || next === 9 || T.isNewline(next);
  45328. else
  45329. t1 = true;
  45330. else
  45331. t1 = true;
  45332. return t1;
  45333. }
  45334. if (character !== 40)
  45335. if (character !== 47)
  45336. if (character !== 91)
  45337. if (character !== 39)
  45338. if (character !== 34)
  45339. if (character !== 35)
  45340. if (character !== 43)
  45341. if (character !== 45)
  45342. if (character !== 92)
  45343. if (character !== 36)
  45344. if (character !== 38)
  45345. t1 = character === 95 || T.isAlphabetic0(character) || character >= 128 || T.isDigit(character);
  45346. else
  45347. t1 = true;
  45348. else
  45349. t1 = true;
  45350. else
  45351. t1 = true;
  45352. else
  45353. t1 = true;
  45354. else
  45355. t1 = true;
  45356. else
  45357. t1 = true;
  45358. else
  45359. t1 = true;
  45360. else
  45361. t1 = true;
  45362. else
  45363. t1 = true;
  45364. else
  45365. t1 = true;
  45366. else
  45367. t1 = true;
  45368. return t1;
  45369. },
  45370. _withChildren$1$3: function(child, start, create) {
  45371. var result = create.call$2(this.children$1(child), this.scanner.spanFrom$1(start));
  45372. this.whitespaceWithoutComments$0();
  45373. return result;
  45374. },
  45375. _withChildren$3: function(child, start, create) {
  45376. return this._withChildren$1$3(child, start, create, type$.dynamic);
  45377. },
  45378. _urlString$0: function() {
  45379. var innerError, t2, exception,
  45380. t1 = this.scanner,
  45381. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  45382. url = this.string$0();
  45383. try {
  45384. t2 = P.Uri_parse(url);
  45385. return t2;
  45386. } catch (exception) {
  45387. t2 = H.unwrapException(exception);
  45388. if (type$.legacy_FormatException._is(t2)) {
  45389. innerError = t2;
  45390. this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), t1.spanFrom$1(start));
  45391. } else
  45392. throw exception;
  45393. }
  45394. },
  45395. _publicIdentifier$0: function() {
  45396. var _this = this,
  45397. t1 = _this.scanner,
  45398. t2 = t1._string_scanner$_position,
  45399. result = _this.identifier$1$normalize(true);
  45400. _this._assertPublic$2(result, new V.StylesheetParser__publicIdentifier_closure(_this, new S._SpanScannerState(t1, t2)));
  45401. return result;
  45402. },
  45403. _assertPublic$2: function(identifier, span) {
  45404. if (!T.isPrivate(identifier))
  45405. return;
  45406. this.error$2(string$.Privat, span.call$0());
  45407. },
  45408. get$plainCss: function() {
  45409. return false;
  45410. }
  45411. };
  45412. V.StylesheetParser_parse_closure.prototype = {
  45413. call$0: function() {
  45414. var statements, t4,
  45415. t1 = this.$this,
  45416. t2 = t1.scanner,
  45417. t3 = t2._string_scanner$_position;
  45418. t2.scanChar$1(65279);
  45419. statements = t1.statements$1(new V.StylesheetParser_parse__closure(t1));
  45420. t2.expectDone$0();
  45421. t4 = t1._globalVariables.get$values();
  45422. C.JSArray_methods.addAll$1(statements, H.MappedIterable_MappedIterable(t4, new V.StylesheetParser_parse__closure0(), H._instanceType(t4)._eval$1("Iterable.E"), type$.legacy_Statement));
  45423. return V.Stylesheet$(statements, t2.spanFrom$1(new S._SpanScannerState(t2, t3)), t1.get$plainCss());
  45424. },
  45425. $signature: 38
  45426. };
  45427. V.StylesheetParser_parse__closure.prototype = {
  45428. call$0: function() {
  45429. return this.$this._statement$1$root(true);
  45430. },
  45431. $signature: 36
  45432. };
  45433. V.StylesheetParser_parse__closure0.prototype = {
  45434. call$1: function(declaration) {
  45435. return Z.VariableDeclaration$(declaration.name, new O.NullExpression(declaration.expression.get$span()), declaration.span, null, false, true, null);
  45436. }
  45437. };
  45438. V.StylesheetParser_parseArgumentDeclaration_closure.prototype = {
  45439. call$0: function() {
  45440. var $arguments,
  45441. t1 = this.$this,
  45442. t2 = t1.scanner;
  45443. t2.expectChar$2$name(64, "@-rule");
  45444. t1.identifier$0();
  45445. t1.whitespace$0();
  45446. t1.identifier$0();
  45447. $arguments = t1._argumentDeclaration$0();
  45448. t1.whitespace$0();
  45449. t2.expectChar$1(123);
  45450. return $arguments;
  45451. },
  45452. $signature: 115
  45453. };
  45454. V.StylesheetParser_parseVariableDeclaration_closure.prototype = {
  45455. call$0: function() {
  45456. var t1 = this.$this;
  45457. return t1.lookingAtIdentifier$0() ? t1._variableDeclarationWithNamespace$0() : t1.variableDeclarationWithoutNamespace$0();
  45458. },
  45459. $signature: 84
  45460. };
  45461. V.StylesheetParser_parseUseRule_closure.prototype = {
  45462. call$0: function() {
  45463. var t1 = this.$this,
  45464. t2 = t1.scanner,
  45465. t3 = t2._string_scanner$_position;
  45466. t2.expectChar$2$name(64, "@-rule");
  45467. t1.expectIdentifier$1("use");
  45468. t1.whitespace$0();
  45469. return t1._useRule$1(new S._SpanScannerState(t2, t3));
  45470. },
  45471. $signature: 113
  45472. };
  45473. V.StylesheetParser__parseSingleProduction_closure.prototype = {
  45474. call$0: function() {
  45475. var result = this.production.call$0();
  45476. this.$this.scanner.expectDone$0();
  45477. return result;
  45478. },
  45479. $signature: function() {
  45480. return this.T._eval$1("0*()");
  45481. }
  45482. };
  45483. V.StylesheetParser__statement_closure.prototype = {
  45484. call$0: function() {
  45485. return this.$this._statement$0();
  45486. },
  45487. $signature: 36
  45488. };
  45489. V.StylesheetParser_variableDeclarationWithoutNamespace_closure.prototype = {
  45490. call$0: function() {
  45491. return this.$this.scanner.spanFrom$1(this._box_0.start);
  45492. },
  45493. $signature: 26
  45494. };
  45495. V.StylesheetParser_variableDeclarationWithoutNamespace_closure0.prototype = {
  45496. call$0: function() {
  45497. return this.declaration;
  45498. },
  45499. $signature: 84
  45500. };
  45501. V.StylesheetParser__declarationOrBuffer_closure.prototype = {
  45502. call$2: function(children, span) {
  45503. return L.Declaration$(this.name, span, children, null);
  45504. }
  45505. };
  45506. V.StylesheetParser__declarationOrBuffer_closure0.prototype = {
  45507. call$2: function(children, span) {
  45508. return L.Declaration$(this.name, span, children, this._box_0.value);
  45509. }
  45510. };
  45511. V.StylesheetParser__styleRule_closure.prototype = {
  45512. call$2: function(children, span) {
  45513. var t2, t3, t4, _this = this,
  45514. t1 = _this.$this;
  45515. if (t1.get$indented() && children.length === 0)
  45516. t1.logger.warn$2$span(string$.This_s, _this._box_0.interpolation.span);
  45517. t1._inStyleRule = _this.wasInStyleRule;
  45518. t2 = _this._box_0;
  45519. t3 = t2.interpolation;
  45520. t2 = t1.scanner.spanFrom$1(t2.start);
  45521. t1 = P.List_List$unmodifiable(children, type$.legacy_Statement);
  45522. t4 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45523. return new X.StyleRule(t3, t2, t1, t4);
  45524. }
  45525. };
  45526. V.StylesheetParser__propertyOrVariableDeclaration_closure.prototype = {
  45527. call$2: function(children, span) {
  45528. return L.Declaration$(this._box_0.name, span, children, null);
  45529. }
  45530. };
  45531. V.StylesheetParser__propertyOrVariableDeclaration_closure0.prototype = {
  45532. call$2: function(children, span) {
  45533. return L.Declaration$(this._box_0.name, span, children, this.value);
  45534. }
  45535. };
  45536. V.StylesheetParser__atRootRule_closure.prototype = {
  45537. call$2: function(children, span) {
  45538. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  45539. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45540. return new V.AtRootRule(this.query, span, t1, t2);
  45541. }
  45542. };
  45543. V.StylesheetParser__atRootRule_closure0.prototype = {
  45544. call$2: function(children, span) {
  45545. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  45546. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45547. return new V.AtRootRule(null, span, t1, t2);
  45548. }
  45549. };
  45550. V.StylesheetParser__eachRule_closure.prototype = {
  45551. call$2: function(children, span) {
  45552. var t1, t2, t3, _this = this;
  45553. _this.$this._inControlDirective = _this.wasInControlDirective;
  45554. t1 = P.List_List$unmodifiable(_this.variables, type$.legacy_String);
  45555. t2 = P.List_List$unmodifiable(children, type$.legacy_Statement);
  45556. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  45557. return new V.EachRule(t1, _this.list, span, t2, t3);
  45558. }
  45559. };
  45560. V.StylesheetParser__functionRule_closure.prototype = {
  45561. call$2: function(children, span) {
  45562. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  45563. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45564. return new M.FunctionRule(this.name, this.$arguments, span, t1, t2);
  45565. }
  45566. };
  45567. V.StylesheetParser__forRule_closure.prototype = {
  45568. call$0: function() {
  45569. var t1 = this.$this;
  45570. if (!t1.lookingAtIdentifier$0())
  45571. return false;
  45572. if (t1.scanIdentifier$1("to"))
  45573. return this._box_0.exclusive = true;
  45574. else if (t1.scanIdentifier$1("through")) {
  45575. this._box_0.exclusive = false;
  45576. return true;
  45577. } else
  45578. return false;
  45579. },
  45580. $signature: 25
  45581. };
  45582. V.StylesheetParser__forRule_closure0.prototype = {
  45583. call$2: function(children, span) {
  45584. var t1, t2, t3, _this = this;
  45585. _this.$this._inControlDirective = _this.wasInControlDirective;
  45586. t1 = _this._box_0.exclusive;
  45587. t2 = P.List_List$unmodifiable(children, type$.legacy_Statement);
  45588. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  45589. return new B.ForRule(_this.variable, _this.from, _this.to, t1, span, t2, t3);
  45590. }
  45591. };
  45592. V.StylesheetParser__memberList_closure.prototype = {
  45593. call$0: function() {
  45594. var t1 = this.$this;
  45595. if (t1.scanner.peekChar$0() === 36)
  45596. this.variables.add$1(0, t1.variableName$0());
  45597. else
  45598. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  45599. },
  45600. $signature: 0
  45601. };
  45602. V.StylesheetParser__includeRule_closure.prototype = {
  45603. call$2: function(children, span) {
  45604. var t1 = this._box_0.contentArguments,
  45605. t2 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  45606. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  45607. return new Y.ContentBlock(null, t1, span, t2, t3);
  45608. }
  45609. };
  45610. V.StylesheetParser_mediaRule_closure.prototype = {
  45611. call$2: function(children, span) {
  45612. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  45613. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45614. return new G.MediaRule(this.query, span, t1, t2);
  45615. }
  45616. };
  45617. V.StylesheetParser__mixinRule_closure.prototype = {
  45618. call$2: function(children, span) {
  45619. var t2,
  45620. t1 = this.$this,
  45621. hadContent = t1._mixinHasContent;
  45622. t1._stylesheet$_inMixin = false;
  45623. t1._mixinHasContent = null;
  45624. t1 = P.List_List$unmodifiable(children, type$.legacy_Statement);
  45625. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45626. return new T.MixinRule(hadContent, this.name, this.$arguments, span, t1, t2);
  45627. }
  45628. };
  45629. V.StylesheetParser_mozDocumentRule_closure.prototype = {
  45630. call$2: function(children, span) {
  45631. var _this = this;
  45632. if (_this._box_0.needsDeprecationWarning)
  45633. _this.$this.logger.warn$3$deprecation$span(string$.x40_moz_, true, span);
  45634. return U.AtRule$(_this.name, span, children, _this.value);
  45635. }
  45636. };
  45637. V.StylesheetParser_supportsRule_closure.prototype = {
  45638. call$2: function(children, span) {
  45639. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  45640. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45641. return new B.SupportsRule(this.condition, span, t1, t2);
  45642. }
  45643. };
  45644. V.StylesheetParser__whileRule_closure.prototype = {
  45645. call$2: function(children, span) {
  45646. var t1, t2;
  45647. this.$this._inControlDirective = this.wasInControlDirective;
  45648. t1 = P.List_List$unmodifiable(children, type$.legacy_Statement);
  45649. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  45650. return new G.WhileRule(this.condition, span, t1, t2);
  45651. }
  45652. };
  45653. V.StylesheetParser_unknownAtRule_closure.prototype = {
  45654. call$2: function(children, span) {
  45655. return U.AtRule$(this.name, span, children, this._box_0.value);
  45656. }
  45657. };
  45658. V.StylesheetParser_expression_resetState.prototype = {
  45659. call$0: function() {
  45660. var t2,
  45661. t1 = this._box_0;
  45662. t1.operands = t1.operators = t1.spaceExpressions = t1.commaExpressions = null;
  45663. t2 = this.$this;
  45664. t2.scanner.set$state(this.start);
  45665. t1.allowSlash = t2.lookingAtNumber$0();
  45666. t1.singleExpression = t2._singleExpression$0();
  45667. },
  45668. $signature: 1
  45669. };
  45670. V.StylesheetParser_expression_resolveOneOperation.prototype = {
  45671. call$0: function() {
  45672. var t2, t3,
  45673. t1 = this._box_0,
  45674. operator = t1.operators.pop();
  45675. if (operator !== C.BinaryOperator_RTB)
  45676. t1.allowSlash = false;
  45677. t2 = t1.allowSlash && !this.$this._inParentheses;
  45678. t3 = t1.operands;
  45679. if (t2)
  45680. t1.singleExpression = new V.BinaryOperationExpression(C.BinaryOperator_RTB, t3.pop(), t1.singleExpression, true);
  45681. else
  45682. t1.singleExpression = new V.BinaryOperationExpression(operator, t3.pop(), t1.singleExpression, false);
  45683. },
  45684. $signature: 1
  45685. };
  45686. V.StylesheetParser_expression_resolveOperations.prototype = {
  45687. call$0: function() {
  45688. var t2,
  45689. t1 = this._box_0;
  45690. if (t1.operators == null)
  45691. return;
  45692. for (t2 = this.resolveOneOperation; t1.operators.length !== 0;)
  45693. t2.call$0();
  45694. },
  45695. $signature: 1
  45696. };
  45697. V.StylesheetParser_expression_addSingleExpression.prototype = {
  45698. call$2$number: function(expression, number) {
  45699. var t2, _this = this,
  45700. t1 = _this._box_0;
  45701. if (t1.singleExpression != null) {
  45702. t2 = _this.$this;
  45703. if (t2._inParentheses) {
  45704. t2._inParentheses = false;
  45705. if (t1.allowSlash) {
  45706. _this.resetState.call$0();
  45707. return;
  45708. }
  45709. }
  45710. if (t1.spaceExpressions == null)
  45711. t1.spaceExpressions = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  45712. _this.resolveOperations.call$0();
  45713. t1.spaceExpressions.push(t1.singleExpression);
  45714. t1.allowSlash = number;
  45715. } else if (!number)
  45716. t1.allowSlash = false;
  45717. t1.singleExpression = expression;
  45718. },
  45719. call$1: function(expression) {
  45720. return this.call$2$number(expression, false);
  45721. }
  45722. };
  45723. V.StylesheetParser_expression_addOperator.prototype = {
  45724. call$1: function(operator) {
  45725. var t2, t3, t4, t5, singleExpression,
  45726. t1 = this.$this;
  45727. if (t1.get$plainCss() && operator !== C.BinaryOperator_RTB) {
  45728. t2 = t1.scanner;
  45729. t3 = operator.operator.length;
  45730. t2.error$3$length$position("Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  45731. }
  45732. t2 = this._box_0;
  45733. t2.allowSlash = t2.allowSlash && operator === C.BinaryOperator_RTB;
  45734. if (t2.operators == null)
  45735. t2.operators = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BinaryOperator);
  45736. if (t2.operands == null)
  45737. t2.operands = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  45738. t3 = this.resolveOneOperation;
  45739. t4 = operator.precedence;
  45740. while (true) {
  45741. t5 = t2.operators;
  45742. if (!(t5.length !== 0 && C.JSArray_methods.get$last(t5).precedence >= t4))
  45743. break;
  45744. t3.call$0();
  45745. }
  45746. t2.operators.push(operator);
  45747. t2.operands.push(t2.singleExpression);
  45748. t1.whitespace$0();
  45749. t2.allowSlash = t2.allowSlash && t1.lookingAtNumber$0();
  45750. singleExpression = t1._singleExpression$0();
  45751. t2.singleExpression = singleExpression;
  45752. t2.allowSlash = t2.allowSlash && singleExpression instanceof T.NumberExpression;
  45753. }
  45754. };
  45755. V.StylesheetParser_expression_resolveSpaceExpressions.prototype = {
  45756. call$0: function() {
  45757. var t1, t2, t3;
  45758. this.resolveOperations.call$0();
  45759. t1 = this._box_0;
  45760. t2 = t1.spaceExpressions;
  45761. if (t2 != null) {
  45762. t2.push(t1.singleExpression);
  45763. t2 = P.List_List$unmodifiable(t1.spaceExpressions, type$.legacy_Expression);
  45764. t3 = B.spanForList(t2);
  45765. t1.singleExpression = new D.ListExpression(t2, C.ListSeparator_space, false, t3);
  45766. t1.spaceExpressions = null;
  45767. }
  45768. t2 = t1.singleEqualsOperand;
  45769. if (t2 != null) {
  45770. t1.singleExpression = new V.BinaryOperationExpression(C.BinaryOperator_kjl, t2, t1.singleExpression, false);
  45771. t1.singleEqualsOperand = null;
  45772. }
  45773. },
  45774. $signature: 1
  45775. };
  45776. V.StylesheetParser__expressionUntilComma_closure.prototype = {
  45777. call$0: function() {
  45778. return this.$this.scanner.peekChar$0() === 44;
  45779. },
  45780. $signature: 25
  45781. };
  45782. V.StylesheetParser__unicodeRange_closure.prototype = {
  45783. call$1: function(char) {
  45784. return char != null && T.isHex(char);
  45785. },
  45786. $signature: 16
  45787. };
  45788. V.StylesheetParser__unicodeRange_closure0.prototype = {
  45789. call$1: function(char) {
  45790. return char != null && T.isHex(char);
  45791. },
  45792. $signature: 16
  45793. };
  45794. V.StylesheetParser_identifierLike_closure.prototype = {
  45795. call$0: function() {
  45796. return this.$this.scanner.spanFrom$1(this.start);
  45797. },
  45798. $signature: 26
  45799. };
  45800. V.StylesheetParser__expressionUntilComparison_closure.prototype = {
  45801. call$0: function() {
  45802. var t1 = this.$this.scanner,
  45803. next = t1.peekChar$0();
  45804. if (next === 61)
  45805. return t1.peekChar$1(1) !== 61;
  45806. return next === 60 || next === 62;
  45807. },
  45808. $signature: 25
  45809. };
  45810. V.StylesheetParser__publicIdentifier_closure.prototype = {
  45811. call$0: function() {
  45812. return this.$this.scanner.spanFrom$1(this.start);
  45813. },
  45814. $signature: 26
  45815. };
  45816. M.StylesheetGraph.prototype = {
  45817. modifiedSince$3: function(url, since, baseImporter) {
  45818. var node = this._stylesheet_graph$_add$3(url, baseImporter, null);
  45819. if (node == null)
  45820. return true;
  45821. return new M.StylesheetGraph_modifiedSince_transitiveModificationTime(this).call$1(node)._value > since._value;
  45822. },
  45823. _stylesheet_graph$_add$3: function(url, baseImporter, baseUrl) {
  45824. var t1, t2, _this = this,
  45825. tuple = _this._ignoreErrors$1(new M.StylesheetGraph__add_closure(_this, url, baseImporter, baseUrl));
  45826. if (tuple == null)
  45827. return null;
  45828. t1 = tuple.item1;
  45829. t2 = tuple.item2;
  45830. _this.addCanonical$3(t1, t2, tuple.item3);
  45831. return _this._nodes.$index(0, t2);
  45832. },
  45833. addCanonical$4$recanonicalize: function(importer, canonicalUrl, originalUrl, recanonicalize) {
  45834. var stylesheet, _this = this,
  45835. t1 = _this._nodes;
  45836. if (t1.$index(0, canonicalUrl) != null)
  45837. return C.Set_empty1;
  45838. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph_addCanonical_closure(_this, importer, canonicalUrl, originalUrl));
  45839. if (stylesheet == null)
  45840. return C.Set_empty1;
  45841. t1.$indexSet(0, canonicalUrl, M.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl)));
  45842. return recanonicalize ? _this._recanonicalizeImports$2(importer, canonicalUrl) : C.Set_empty1;
  45843. },
  45844. addCanonical$3: function(importer, canonicalUrl, originalUrl) {
  45845. return this.addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, true);
  45846. },
  45847. _upstreamNodes$3: function(stylesheet, baseImporter, baseUrl) {
  45848. var t4, t5, t6, t7,
  45849. t1 = type$.legacy_Uri,
  45850. active = P.LinkedHashSet_LinkedHashSet$_literal([baseUrl], t1),
  45851. t2 = type$.JSArray_legacy_Uri,
  45852. t3 = H.setRuntimeTypeInfo([], t2);
  45853. t2 = H.setRuntimeTypeInfo([], t2);
  45854. new F._FindDependenciesVisitor(t3, t2).visitChildren$1(stylesheet);
  45855. t4 = type$.legacy_StylesheetNode;
  45856. t5 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
  45857. for (t6 = C.JSArray_methods.get$iterator(t3); t6.moveNext$0();) {
  45858. t7 = t6.get$current(t6);
  45859. t5.$indexSet(0, t7, this._nodeFor$4(t7, baseImporter, baseUrl, active));
  45860. }
  45861. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
  45862. for (t2 = J.get$iterator$ax(new S.Tuple2(t3, t2, type$.Tuple2_of_legacy_List_legacy_Uri_and_legacy_List_legacy_Uri).item2); t2.moveNext$0();) {
  45863. t3 = t2.get$current(t2);
  45864. t1.$indexSet(0, t3, this._nodeFor$5$forImport(t3, baseImporter, baseUrl, active, true));
  45865. }
  45866. return new S.Tuple2(t5, t1, type$.Tuple2_of_legacy_Map_of_legacy_Uri_and_legacy_StylesheetNode_and_legacy_Map_of_legacy_Uri_and_legacy_StylesheetNode);
  45867. },
  45868. reload$1: function(canonicalUrl) {
  45869. var stylesheet, upstream, _this = this,
  45870. node = _this._nodes.$index(0, canonicalUrl);
  45871. if (node == null)
  45872. throw H.wrapException(P.StateError$(canonicalUrl.toString$0(0) + " is not in the dependency graph."));
  45873. _this._transitiveModificationTimes.clear$0(0);
  45874. _this.importCache.clearImport$1(canonicalUrl);
  45875. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph_reload_closure(_this, node, canonicalUrl));
  45876. if (stylesheet == null)
  45877. return false;
  45878. node._stylesheet_graph$_stylesheet = stylesheet;
  45879. upstream = _this._upstreamNodes$3(stylesheet, node.importer, canonicalUrl);
  45880. node._replaceUpstream$2(upstream.item1, upstream.item2);
  45881. return true;
  45882. },
  45883. _recanonicalizeImports$2: function(importer, canonicalUrl) {
  45884. var t2, t3, t4, t5, newUpstream, newUpstreamImports, _this = this,
  45885. t1 = type$.legacy_StylesheetNode,
  45886. changed = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  45887. for (t2 = type$.UnmodifiableMapView_of_legacy_Uri_and_legacy_StylesheetNode, t3 = _this._nodes.get$values(), t3 = t3.get$iterator(t3), t4 = type$.legacy_Uri; t3.moveNext$0();) {
  45888. t5 = t3.get$current(t3);
  45889. newUpstream = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, false);
  45890. newUpstreamImports = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, true);
  45891. if (newUpstream.get$isNotEmpty(newUpstream) || newUpstreamImports.get$isNotEmpty(newUpstreamImports)) {
  45892. changed.add$1(0, t5);
  45893. t5._replaceUpstream$2(Y.mergeMaps(new P.UnmodifiableMapView(t5._upstream, t2), newUpstream, t4, t1), Y.mergeMaps(new P.UnmodifiableMapView(t5._upstreamImports, t2), newUpstreamImports, t4, t1));
  45894. }
  45895. }
  45896. if (changed._collection$_length !== 0)
  45897. _this._transitiveModificationTimes.clear$0(0);
  45898. return changed;
  45899. },
  45900. _recanonicalizeImportsForNode$4$forImport: function(node, importer, canonicalUrl, forImport) {
  45901. var t1 = type$.UnmodifiableMapView_of_legacy_Uri_and_legacy_StylesheetNode,
  45902. map = forImport ? new P.UnmodifiableMapView(node._upstreamImports, t1) : new P.UnmodifiableMapView(node._upstream, t1),
  45903. newMap = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_StylesheetNode);
  45904. map._collection$_map.forEach$1(0, new M.StylesheetGraph__recanonicalizeImportsForNode_closure(this, importer, canonicalUrl, node, forImport, newMap));
  45905. return newMap;
  45906. },
  45907. _nodeFor$5$forImport: function(url, baseImporter, baseUrl, active, forImport) {
  45908. var importer, canonicalUrl, resolvedUrl, t1, stylesheet, node, _this = this,
  45909. tuple = _this._ignoreErrors$1(new M.StylesheetGraph__nodeFor_closure(_this, url, baseImporter, baseUrl, forImport));
  45910. if (tuple == null)
  45911. return null;
  45912. importer = tuple.item1;
  45913. canonicalUrl = tuple.item2;
  45914. resolvedUrl = tuple.item3;
  45915. t1 = _this._nodes;
  45916. if (t1.containsKey$1(canonicalUrl))
  45917. return t1.$index(0, canonicalUrl);
  45918. if (active.contains$1(0, canonicalUrl))
  45919. return null;
  45920. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph__nodeFor_closure0(_this, importer, canonicalUrl, resolvedUrl));
  45921. if (stylesheet == null)
  45922. return null;
  45923. active.add$1(0, canonicalUrl);
  45924. node = M.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl));
  45925. active.remove$1(0, canonicalUrl);
  45926. t1.$indexSet(0, canonicalUrl, node);
  45927. return node;
  45928. },
  45929. _nodeFor$4: function(url, baseImporter, baseUrl, active) {
  45930. return this._nodeFor$5$forImport(url, baseImporter, baseUrl, active, false);
  45931. },
  45932. _ignoreErrors$1$1: function(callback) {
  45933. var t1, exception;
  45934. try {
  45935. t1 = callback.call$0();
  45936. return t1;
  45937. } catch (exception) {
  45938. H.unwrapException(exception);
  45939. return null;
  45940. }
  45941. },
  45942. _ignoreErrors$1: function(callback) {
  45943. return this._ignoreErrors$1$1(callback, type$.dynamic);
  45944. }
  45945. };
  45946. M.StylesheetGraph_modifiedSince_transitiveModificationTime.prototype = {
  45947. call$1: function(node) {
  45948. return this.$this._transitiveModificationTimes.putIfAbsent$2(node.canonicalUrl, new M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure(node, this));
  45949. }
  45950. };
  45951. M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure.prototype = {
  45952. call$0: function() {
  45953. var t2, t3, upstreamTime,
  45954. t1 = this.node,
  45955. latest = t1.importer.modificationTime$1(t1.canonicalUrl);
  45956. for (t1 = t1._upstream.get$values().followedBy$1(0, t1._upstreamImports.get$values()), t1 = new H.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second), t2 = this.transitiveModificationTime; t1.moveNext$0();) {
  45957. t3 = t1._currentIterator;
  45958. t3 = t3.get$current(t3);
  45959. upstreamTime = t3 == null ? new P.DateTime(Date.now(), false) : t2.call$1(t3);
  45960. if (upstreamTime._value > latest._value)
  45961. latest = upstreamTime;
  45962. }
  45963. return latest;
  45964. },
  45965. $signature: 73
  45966. };
  45967. M.StylesheetGraph__add_closure.prototype = {
  45968. call$0: function() {
  45969. var _this = this;
  45970. return _this.$this.importCache.canonicalize$3$baseImporter$baseUrl(_this.url, _this.baseImporter, _this.baseUrl);
  45971. },
  45972. $signature: 53
  45973. };
  45974. M.StylesheetGraph_addCanonical_closure.prototype = {
  45975. call$0: function() {
  45976. var _this = this;
  45977. return _this.$this.importCache.importCanonical$3(_this.importer, _this.canonicalUrl, _this.originalUrl);
  45978. },
  45979. $signature: 38
  45980. };
  45981. M.StylesheetGraph_reload_closure.prototype = {
  45982. call$0: function() {
  45983. return this.$this.importCache.importCanonical$2(this.node.importer, this.canonicalUrl);
  45984. },
  45985. $signature: 38
  45986. };
  45987. M.StylesheetGraph__recanonicalizeImportsForNode_closure.prototype = {
  45988. call$2: function(url, upstream) {
  45989. var result, t1, t2, t3, t4, exception, newCanonicalUrl, _this = this;
  45990. if (!_this.importer.couldCanonicalize$2(url, _this.canonicalUrl))
  45991. return;
  45992. t1 = _this.$this;
  45993. t2 = t1.importCache;
  45994. t3 = t2._canonicalizeCache;
  45995. t4 = type$.Tuple2_of_legacy_Uri_and_legacy_bool;
  45996. t3.remove$1(0, new S.Tuple2(url, false, t4));
  45997. t3.remove$1(0, new S.Tuple2(url, true, t4));
  45998. result = null;
  45999. try {
  46000. t3 = _this.node;
  46001. result = t2.canonicalize$4$baseImporter$baseUrl$forImport(url, t3.importer, t3.canonicalUrl, _this.forImport);
  46002. } catch (exception) {
  46003. H.unwrapException(exception);
  46004. }
  46005. t2 = result;
  46006. newCanonicalUrl = t2 == null ? null : t2.item2;
  46007. if (J.$eq$(newCanonicalUrl, upstream == null ? null : upstream.canonicalUrl))
  46008. return;
  46009. t1 = result == null ? null : t1._nodes.$index(0, result.item2);
  46010. _this.newMap.$indexSet(0, url, t1);
  46011. }
  46012. };
  46013. M.StylesheetGraph__nodeFor_closure.prototype = {
  46014. call$0: function() {
  46015. var _this = this;
  46016. return _this.$this.importCache.canonicalize$4$baseImporter$baseUrl$forImport(_this.url, _this.baseImporter, _this.baseUrl, _this.forImport);
  46017. },
  46018. $signature: 53
  46019. };
  46020. M.StylesheetGraph__nodeFor_closure0.prototype = {
  46021. call$0: function() {
  46022. var _this = this;
  46023. return _this.$this.importCache.importCanonical$3(_this.importer, _this.canonicalUrl, _this.resolvedUrl);
  46024. },
  46025. $signature: 38
  46026. };
  46027. M.StylesheetNode.prototype = {
  46028. StylesheetNode$_$4: function(_stylesheet, importer, canonicalUrl, allUpstream) {
  46029. var t1, t2;
  46030. for (t1 = this._upstream.get$values().followedBy$1(0, this._upstreamImports.get$values()), t1 = new H.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second); t1.moveNext$0();) {
  46031. t2 = t1._currentIterator;
  46032. t2 = t2.get$current(t2);
  46033. if (t2 != null)
  46034. t2._downstream.add$1(0, this);
  46035. }
  46036. },
  46037. _replaceUpstream$2: function(newUpstream, newUpstreamImports) {
  46038. var t3, _this = this,
  46039. t1 = type$.legacy_StylesheetNode,
  46040. t2 = P.LinkedHashSet_LinkedHashSet(t1);
  46041. for (t3 = _this._upstream.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  46042. t2.add$1(0, t3.get$current(t3));
  46043. for (t3 = _this._upstreamImports.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  46044. t2.add$1(0, t3.get$current(t3));
  46045. t2.remove$1(0, null);
  46046. t1 = P.LinkedHashSet_LinkedHashSet(t1);
  46047. for (t3 = newUpstream.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  46048. t1.add$1(0, t3.get$current(t3));
  46049. for (t3 = newUpstreamImports.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  46050. t1.add$1(0, t3.get$current(t3));
  46051. t1.remove$1(0, null);
  46052. for (t3 = t2.difference$1(t1), t3 = P._LinkedHashSetIterator$(t3, t3._collection$_modifications); t3.moveNext$0();)
  46053. t3._collection$_current._downstream.remove$1(0, _this);
  46054. for (t1 = t1.difference$1(t2), t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();)
  46055. t1._collection$_current._downstream.add$1(0, _this);
  46056. _this._upstream = newUpstream;
  46057. _this._upstreamImports = newUpstreamImports;
  46058. },
  46059. _stylesheet_graph$_remove$0: function() {
  46060. var t2, t3, t4, _i, url, _this = this,
  46061. t1 = P.LinkedHashSet_LinkedHashSet(type$.legacy_StylesheetNode);
  46062. for (t2 = _this._upstream.get$values(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  46063. t1.add$1(0, t2.get$current(t2));
  46064. for (t2 = _this._upstreamImports.get$values(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  46065. t1.add$1(0, t2.get$current(t2));
  46066. t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications);
  46067. for (; t1.moveNext$0();) {
  46068. t2 = t1._collection$_current;
  46069. if (t2 == null)
  46070. continue;
  46071. t2._downstream.remove$1(0, _this);
  46072. }
  46073. for (t1 = _this._downstream, t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  46074. t2 = t1.get$current(t1);
  46075. for (t3 = J.toList$0$ax(t2._upstream.get$keys()), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i) {
  46076. url = t3[_i];
  46077. if (J.$eq$(t2._upstream.$index(0, url), _this)) {
  46078. t2._upstream.$indexSet(0, url, null);
  46079. break;
  46080. }
  46081. }
  46082. for (t3 = J.toList$0$ax(t2._upstreamImports.get$keys()), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i) {
  46083. url = t3[_i];
  46084. if (J.$eq$(t2._upstreamImports.$index(0, url), _this)) {
  46085. t2._upstreamImports.$indexSet(0, url, null);
  46086. break;
  46087. }
  46088. }
  46089. }
  46090. },
  46091. toString$0: function(_) {
  46092. var t1 = this._stylesheet_graph$_stylesheet.span.file;
  46093. return $.$get$context().prettyUri$1(t1.url);
  46094. }
  46095. };
  46096. M.Syntax.prototype = {
  46097. toString$0: function(_) {
  46098. return this._syntax$_name;
  46099. }
  46100. };
  46101. G.FixedLengthListBuilder.prototype = {
  46102. add$1: function(_, element) {
  46103. var t1, _this = this;
  46104. _this._checkUnbuilt$0();
  46105. t1 = _this._fixed_length_list_builder$_index;
  46106. _this._list[t1] = element;
  46107. _this._fixed_length_list_builder$_index = t1 + 1;
  46108. },
  46109. addAll$1: function(_, elements) {
  46110. var _this = this;
  46111. _this._checkUnbuilt$0();
  46112. C.JSArray_methods.setAll$2(_this._list, _this._fixed_length_list_builder$_index, elements);
  46113. _this._fixed_length_list_builder$_index = _this._fixed_length_list_builder$_index + elements.length;
  46114. },
  46115. addRange$3: function(elements, start, end) {
  46116. var $length, t1, _this = this;
  46117. _this._checkUnbuilt$0();
  46118. $length = (end == null ? J.get$length$asx(elements._collection$_source) : end) - start;
  46119. t1 = _this._fixed_length_list_builder$_index;
  46120. C.JSArray_methods.setRange$4(_this._list, t1, t1 + $length, elements, start);
  46121. _this._fixed_length_list_builder$_index += $length;
  46122. },
  46123. addRange$2: function(elements, start) {
  46124. return this.addRange$3(elements, start, null);
  46125. },
  46126. build$0: function() {
  46127. this._checkUnbuilt$0();
  46128. this._fixed_length_list_builder$_index = -1;
  46129. return this._list;
  46130. },
  46131. _checkUnbuilt$0: function() {
  46132. if (this._fixed_length_list_builder$_index === -1)
  46133. throw H.wrapException(P.StateError$("build() has already been called."));
  46134. }
  46135. };
  46136. K.LimitedMapView.prototype = {
  46137. get$keys: function() {
  46138. return this._limited_map_view$_keys;
  46139. },
  46140. get$length: function(_) {
  46141. return this._limited_map_view$_keys._collection$_length;
  46142. },
  46143. get$isEmpty: function(_) {
  46144. return this._limited_map_view$_keys._collection$_length === 0;
  46145. },
  46146. get$isNotEmpty: function(_) {
  46147. return this._limited_map_view$_keys._collection$_length !== 0;
  46148. },
  46149. $index: function(_, key) {
  46150. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.$index(0, key) : null;
  46151. },
  46152. containsKey$1: function(key) {
  46153. return this._limited_map_view$_keys.contains$1(0, key);
  46154. },
  46155. remove$1: function(_, key) {
  46156. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.remove$1(0, key) : null;
  46157. }
  46158. };
  46159. Z.MergedMapView.prototype = {
  46160. get$keys: function() {
  46161. return this._mapsByKey.get$keys();
  46162. },
  46163. get$length: function(_) {
  46164. var t1 = this._mapsByKey;
  46165. return t1.get$length(t1);
  46166. },
  46167. get$isEmpty: function(_) {
  46168. var t1 = this._mapsByKey;
  46169. return t1.get$isEmpty(t1);
  46170. },
  46171. get$isNotEmpty: function(_) {
  46172. var t1 = this._mapsByKey;
  46173. return t1.get$isNotEmpty(t1);
  46174. },
  46175. MergedMapView$1: function(maps, $K, $V) {
  46176. var t1, t2, t3, _i, map, t4, t5;
  46177. 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, H.throwConcurrentModificationError)(maps), ++_i) {
  46178. map = maps[_i];
  46179. if (t3._is(map))
  46180. for (t4 = map._mapsByKey.get$values(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  46181. t5 = t4.get$current(t4);
  46182. B.setAll(t2, t5.get$keys(), t5);
  46183. }
  46184. else
  46185. B.setAll(t2, map.get$keys(), map);
  46186. }
  46187. },
  46188. $index: function(_, key) {
  46189. var child = this._mapsByKey.$index(0, key);
  46190. return child == null ? null : child.$index(0, key);
  46191. },
  46192. $indexSet: function(_, key, value) {
  46193. var child = this._mapsByKey.$index(0, key);
  46194. if (child == null)
  46195. throw H.wrapException(P.UnsupportedError$(string$.New_en));
  46196. child.$indexSet(0, key, value);
  46197. },
  46198. remove$1: function(_, key) {
  46199. throw H.wrapException(P.UnsupportedError$(string$.Entrie));
  46200. },
  46201. containsKey$1: function(key) {
  46202. return this._mapsByKey.containsKey$1(key);
  46203. }
  46204. };
  46205. U.MultiDirWatcher.prototype = {
  46206. watch$1: function(_, directory) {
  46207. var t1, t2, t3, t4, isParentOfExistingDir, _i, existingDir, t5, future, completer;
  46208. for (t1 = this._watchers, t2 = t1.get$keys(), t2 = P.List_List$from(t2, true, H._instanceType(t2)._eval$1("Iterable.E")), t3 = t2.length, t4 = this._group, isParentOfExistingDir = false, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  46209. existingDir = t2[_i];
  46210. if (!isParentOfExistingDir) {
  46211. t5 = $.$get$context();
  46212. t5 = t5._isWithinOrEquals$2(existingDir, directory) === C._PathRelation_equal || t5._isWithinOrEquals$2(existingDir, directory) === C._PathRelation_within;
  46213. } else
  46214. t5 = false;
  46215. if (t5) {
  46216. t1 = new P._Future($.Zone__current, type$._Future_void);
  46217. t1._asyncComplete$1(null);
  46218. return t1;
  46219. }
  46220. if ($.$get$context()._isWithinOrEquals$2(directory, existingDir) === C._PathRelation_within) {
  46221. t4.remove$1(0, t1.remove$1(0, existingDir));
  46222. isParentOfExistingDir = true;
  46223. }
  46224. }
  46225. future = B.watchDir(directory, this._poll);
  46226. t2 = new Y._CompleterStream(type$._CompleterStream_legacy_WatchEvent);
  46227. completer = new Y.StreamCompleter(t2, type$.StreamCompleter_legacy_WatchEvent);
  46228. future.then$1$2$onError(completer.get$setSourceStream(), completer.get$setError(), type$.void);
  46229. t1.$indexSet(0, directory, t2);
  46230. t4.add$1(0, t2);
  46231. return future;
  46232. }
  46233. };
  46234. N.NoSourceMapBuffer0.prototype = {
  46235. get$length: function(_) {
  46236. return this._no_source_map_buffer0$_buffer._contents.length;
  46237. },
  46238. get$sourceFiles: function() {
  46239. return C.Map_empty;
  46240. },
  46241. forSpan$1$2: function(span, callback) {
  46242. return callback.call$0();
  46243. },
  46244. forSpan$2: function(span, callback) {
  46245. return this.forSpan$1$2(span, callback, type$.dynamic);
  46246. },
  46247. write$1: function(_, object) {
  46248. this._no_source_map_buffer0$_buffer._contents += H.S(object);
  46249. return null;
  46250. },
  46251. writeCharCode$1: function(charCode) {
  46252. this._no_source_map_buffer0$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  46253. return null;
  46254. },
  46255. toString$0: function(_) {
  46256. var t1 = this._no_source_map_buffer0$_buffer._contents;
  46257. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46258. },
  46259. buildSourceMap$1$prefix: function(prefix) {
  46260. return H.throwExpression(P.UnsupportedError$(string$.NoSour));
  46261. },
  46262. $isStringBuffer: 1
  46263. };
  46264. F.PrefixedMapView.prototype = {
  46265. get$keys: function() {
  46266. return new F._PrefixedKeys(this);
  46267. },
  46268. get$length: function(_) {
  46269. var t1 = this._prefixed_map_view$_map;
  46270. return t1.get$length(t1);
  46271. },
  46272. get$isEmpty: function(_) {
  46273. var t1 = this._prefixed_map_view$_map;
  46274. return t1.get$isEmpty(t1);
  46275. },
  46276. get$isNotEmpty: function(_) {
  46277. var t1 = this._prefixed_map_view$_map;
  46278. return t1.get$isNotEmpty(t1);
  46279. },
  46280. $index: function(_, key) {
  46281. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefix) ? this._prefixed_map_view$_map.$index(0, J.substring$1$s(key, this._prefix.length)) : null;
  46282. },
  46283. containsKey$1: function(key) {
  46284. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefix) && this._prefixed_map_view$_map.containsKey$1(J.substring$1$s(key, this._prefix.length));
  46285. }
  46286. };
  46287. F._PrefixedKeys.prototype = {
  46288. get$length: function(_) {
  46289. var t1 = this._view._prefixed_map_view$_map;
  46290. return t1.get$length(t1);
  46291. },
  46292. get$iterator: function(_) {
  46293. var t1 = J.map$1$1$ax(this._view._prefixed_map_view$_map.get$keys(), new F._PrefixedKeys_iterator_closure(this), type$.legacy_String);
  46294. return t1.get$iterator(t1);
  46295. },
  46296. contains$1: function(_, key) {
  46297. return this._view.containsKey$1(key);
  46298. }
  46299. };
  46300. F._PrefixedKeys_iterator_closure.prototype = {
  46301. call$1: function(key) {
  46302. return this.$this._view._prefix + H.S(key);
  46303. }
  46304. };
  46305. U.PublicMemberMapView.prototype = {
  46306. get$keys: function() {
  46307. return J.where$1$ax(this._inner.get$keys(), B.utils__isPublic$closure());
  46308. },
  46309. containsKey$1: function(key) {
  46310. return typeof key == "string" && B.isPublic(key) && this._inner.containsKey$1(key);
  46311. },
  46312. $index: function(_, key) {
  46313. if (typeof key == "string" && B.isPublic(key))
  46314. return this._inner.$index(0, key);
  46315. return null;
  46316. }
  46317. };
  46318. D.SourceMapBuffer0.prototype = {
  46319. get$sourceFiles: function() {
  46320. var t2, t3,
  46321. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_SourceFile);
  46322. for (t2 = this._sourceFiles.get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  46323. t3 = t2.get$current(t2);
  46324. t1.$indexSet(0, J.toString$0$(t3.key), t3.value);
  46325. }
  46326. return new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_SourceFile);
  46327. },
  46328. get$_source_map_buffer0$_targetLocation: function() {
  46329. var t1 = this._source_map_buffer0$_buffer._contents,
  46330. t2 = this._source_map_buffer0$_line;
  46331. return V.SourceLocation$(t1.length, this._source_map_buffer0$_column, t2, null);
  46332. },
  46333. get$length: function(_) {
  46334. return this._source_map_buffer0$_buffer._contents.length;
  46335. },
  46336. forSpan$1$2: function(span, callback) {
  46337. var t1, _this = this,
  46338. wasInSpan = _this._source_map_buffer0$_inSpan;
  46339. _this._source_map_buffer0$_inSpan = true;
  46340. _this._addEntry$2(Y.FileLocation$_(span.file, span._file$_start), _this.get$_source_map_buffer0$_targetLocation());
  46341. try {
  46342. t1 = callback.call$0();
  46343. return t1;
  46344. } finally {
  46345. _this._source_map_buffer0$_inSpan = wasInSpan;
  46346. }
  46347. },
  46348. forSpan$2: function(span, callback) {
  46349. return this.forSpan$1$2(span, callback, type$.dynamic);
  46350. },
  46351. _addEntry$2: function(source, target) {
  46352. var entry, t2,
  46353. t1 = this._source_map_buffer0$_entries;
  46354. if (t1.length !== 0) {
  46355. entry = C.JSArray_methods.get$last(t1);
  46356. t2 = entry.source;
  46357. if (t2.file.getLine$1(t2.offset) == source.file.getLine$1(source.offset) && entry.target.line === target.line)
  46358. return;
  46359. if (entry.target.offset === target.offset)
  46360. return;
  46361. }
  46362. this._sourceFiles.putIfAbsent$2(source.file.url, new D.SourceMapBuffer__addEntry_closure(source));
  46363. t1.push(new L.Entry(source, target, null));
  46364. },
  46365. write$1: function(_, object) {
  46366. var t1, i,
  46367. string = J.toString$0$(object);
  46368. this._source_map_buffer0$_buffer._contents += H.S(string);
  46369. for (t1 = string.length, i = 0; i < t1; ++i)
  46370. if (C.JSString_methods._codeUnitAt$1(string, i) === 10)
  46371. this._source_map_buffer0$_writeLine$0();
  46372. else
  46373. ++this._source_map_buffer0$_column;
  46374. },
  46375. writeCharCode$1: function(charCode) {
  46376. this._source_map_buffer0$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  46377. if (charCode === 10)
  46378. this._source_map_buffer0$_writeLine$0();
  46379. else
  46380. ++this._source_map_buffer0$_column;
  46381. },
  46382. _source_map_buffer0$_writeLine$0: function() {
  46383. var _this = this,
  46384. t1 = _this._source_map_buffer0$_entries;
  46385. if (C.JSArray_methods.get$last(t1).target.line === _this._source_map_buffer0$_line && C.JSArray_methods.get$last(t1).target.column === _this._source_map_buffer0$_column)
  46386. t1.pop();
  46387. ++_this._source_map_buffer0$_line;
  46388. _this._source_map_buffer0$_column = 0;
  46389. if (_this._source_map_buffer0$_inSpan)
  46390. t1.push(new L.Entry(C.JSArray_methods.get$last(t1).source, _this.get$_source_map_buffer0$_targetLocation(), null));
  46391. },
  46392. toString$0: function(_) {
  46393. var t1 = this._source_map_buffer0$_buffer._contents;
  46394. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46395. },
  46396. buildSourceMap$1$prefix: function(prefix) {
  46397. var i, t2, prefixColumn, _box_0 = {},
  46398. t1 = prefix.length;
  46399. if (t1 === 0)
  46400. return T.SingleMapping_SingleMapping$fromEntries(this._source_map_buffer0$_entries);
  46401. _box_0.prefixColumn = _box_0.prefixLines = 0;
  46402. for (i = 0, t2 = 0; i < t1; ++i)
  46403. if (C.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
  46404. ++_box_0.prefixLines;
  46405. _box_0.prefixColumn = 0;
  46406. t2 = 0;
  46407. } else {
  46408. prefixColumn = t2 + 1;
  46409. _box_0.prefixColumn = prefixColumn;
  46410. t2 = prefixColumn;
  46411. }
  46412. t2 = this._source_map_buffer0$_entries;
  46413. return T.SingleMapping_SingleMapping$fromEntries(new H.MappedListIterable(t2, new D.SourceMapBuffer_buildSourceMap_closure(_box_0, t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry*>")));
  46414. },
  46415. $isStringBuffer: 1
  46416. };
  46417. D.SourceMapBuffer__addEntry_closure.prototype = {
  46418. call$0: function() {
  46419. return this.source.file;
  46420. },
  46421. $signature: 62
  46422. };
  46423. D.SourceMapBuffer_buildSourceMap_closure.prototype = {
  46424. call$1: function(entry) {
  46425. var t1 = entry.source,
  46426. t2 = entry.target,
  46427. t3 = t2.line,
  46428. t4 = this._box_0,
  46429. t5 = t4.prefixLines;
  46430. t4 = t3 === 0 ? t4.prefixColumn : 0;
  46431. return new L.Entry(t1, V.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
  46432. }
  46433. };
  46434. R.UnprefixedMapView.prototype = {
  46435. get$keys: function() {
  46436. return new R._UnprefixedKeys(this);
  46437. },
  46438. $index: function(_, key) {
  46439. return typeof key == "string" ? this._unprefixed_map_view$_map.$index(0, J.$add$ansx(this._unprefixed_map_view$_prefix, key)) : null;
  46440. },
  46441. containsKey$1: function(key) {
  46442. return typeof key == "string" && this._unprefixed_map_view$_map.containsKey$1(J.$add$ansx(this._unprefixed_map_view$_prefix, key));
  46443. },
  46444. remove$1: function(_, key) {
  46445. return typeof key == "string" ? this._unprefixed_map_view$_map.remove$1(0, J.$add$ansx(this._unprefixed_map_view$_prefix, key)) : null;
  46446. }
  46447. };
  46448. R._UnprefixedKeys.prototype = {
  46449. get$iterator: function(_) {
  46450. var t1 = J.where$1$ax(this._unprefixed_map_view$_view._unprefixed_map_view$_map.get$keys(), new R._UnprefixedKeys_iterator_closure(this)).map$1$1(0, new R._UnprefixedKeys_iterator_closure0(this), type$.legacy_String);
  46451. return t1.get$iterator(t1);
  46452. },
  46453. contains$1: function(_, key) {
  46454. return this._unprefixed_map_view$_view.containsKey$1(key);
  46455. }
  46456. };
  46457. R._UnprefixedKeys_iterator_closure.prototype = {
  46458. call$1: function(key) {
  46459. return J.startsWith$1$s(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix);
  46460. }
  46461. };
  46462. R._UnprefixedKeys_iterator_closure0.prototype = {
  46463. call$1: function(key) {
  46464. return J.substring$1$s(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix.length);
  46465. }
  46466. };
  46467. B.indent_closure.prototype = {
  46468. call$1: function(line) {
  46469. return C.JSString_methods.$add(C.JSString_methods.$mul(" ", this.indentation), line);
  46470. }
  46471. };
  46472. B.flattenVertically_closure.prototype = {
  46473. call$1: function(inner) {
  46474. return Q.QueueList_QueueList$from(inner, this.T._eval$1("0*"));
  46475. }
  46476. };
  46477. B.flattenVertically_closure0.prototype = {
  46478. call$1: function(queue) {
  46479. this.result.push(queue.removeFirst$0());
  46480. return queue.get$length(queue) === 0;
  46481. }
  46482. };
  46483. B.longestCommonSubsequence_closure.prototype = {
  46484. call$2: function(element1, element2) {
  46485. return J.$eq$(element1, element2) ? element1 : null;
  46486. },
  46487. $signature: function() {
  46488. return this.T._eval$1("0*(0*,0*)");
  46489. }
  46490. };
  46491. B.longestCommonSubsequence_closure0.prototype = {
  46492. call$1: function(_) {
  46493. return P.List_List$filled(J.get$length$asx(this.list2) + 1, 0, false, type$.legacy_int);
  46494. },
  46495. $signature: 88
  46496. };
  46497. B.longestCommonSubsequence_closure1.prototype = {
  46498. call$1: function(_) {
  46499. var t1 = new Array(J.get$length$asx(this.list2));
  46500. t1.fixed$length = Array;
  46501. return H.setRuntimeTypeInfo(t1, this.T._eval$1("JSArray<0*>"));
  46502. },
  46503. $signature: function() {
  46504. return this.T._eval$1("List<0*>*(int*)");
  46505. }
  46506. };
  46507. B.longestCommonSubsequence_backtrack.prototype = {
  46508. call$2: function(i, j) {
  46509. var selection, t1, _this = this;
  46510. if (i === -1 || j === -1)
  46511. return H.setRuntimeTypeInfo([], _this.T._eval$1("JSArray<0*>"));
  46512. selection = J.$index$asx(_this.selections[i], j);
  46513. if (selection != null) {
  46514. t1 = _this.call$2(i - 1, j - 1);
  46515. J.add$1$ax(t1, selection);
  46516. return t1;
  46517. }
  46518. t1 = _this.lengths;
  46519. return J.$index$asx(t1[i + 1], j) > J.$index$asx(t1[i], j + 1) ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  46520. }
  46521. };
  46522. B.mapAddAll2_closure.prototype = {
  46523. call$2: function(key, inner) {
  46524. var t1 = this.destination;
  46525. if (t1.containsKey$1(key))
  46526. t1.$index(0, key).addAll$1(0, inner);
  46527. else
  46528. t1.$indexSet(0, key, inner);
  46529. }
  46530. };
  46531. F.Value.prototype = {
  46532. get$isTruthy: function() {
  46533. return true;
  46534. },
  46535. get$separator: function() {
  46536. return C.ListSeparator_undecided;
  46537. },
  46538. get$hasBrackets: function() {
  46539. return false;
  46540. },
  46541. get$asList: function() {
  46542. return H.setRuntimeTypeInfo([this], type$.JSArray_legacy_Value);
  46543. },
  46544. get$lengthAsList: function() {
  46545. return 1;
  46546. },
  46547. get$isBlank: function() {
  46548. return false;
  46549. },
  46550. get$isSpecialNumber: function() {
  46551. return false;
  46552. },
  46553. get$isVar: function() {
  46554. return false;
  46555. },
  46556. get$realNull: function() {
  46557. return this;
  46558. },
  46559. sassIndexToListIndex$2: function(sassIndex, $name) {
  46560. var _this = this,
  46561. index = sassIndex.assertNumber$1($name).assertInt$1($name);
  46562. if (index === 0)
  46563. throw H.wrapException(_this._value$_exception$2("List index may not be 0.", $name));
  46564. if (Math.abs(index) > _this.get$lengthAsList())
  46565. throw H.wrapException(_this._value$_exception$2("Invalid index " + sassIndex.toString$0(0) + " for a list with " + _this.get$lengthAsList() + " elements.", $name));
  46566. return index < 0 ? _this.get$lengthAsList() + index : index - 1;
  46567. },
  46568. assertColor$1: function($name) {
  46569. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a color.", $name));
  46570. },
  46571. assertFunction$1: function($name) {
  46572. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a function reference.", $name));
  46573. },
  46574. assertMap$1: function($name) {
  46575. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a map.", $name));
  46576. },
  46577. assertNumber$1: function($name) {
  46578. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a number.", $name));
  46579. },
  46580. assertNumber$0: function() {
  46581. return this.assertNumber$1(null);
  46582. },
  46583. assertString$1: function($name) {
  46584. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a string.", $name));
  46585. },
  46586. assertSelector$2$allowParent$name: function(allowParent, $name) {
  46587. var error, t1, exception,
  46588. string = this._selectorString$1($name);
  46589. try {
  46590. t1 = D.SelectorList_SelectorList$parse(string, allowParent, true, null);
  46591. return t1;
  46592. } catch (exception) {
  46593. t1 = H.unwrapException(exception);
  46594. if (t1 instanceof E.SassFormatException) {
  46595. error = t1;
  46596. throw H.wrapException(this._value$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  46597. } else
  46598. throw exception;
  46599. }
  46600. },
  46601. assertSelector$1$name: function($name) {
  46602. return this.assertSelector$2$allowParent$name(false, $name);
  46603. },
  46604. assertSelector$0: function() {
  46605. return this.assertSelector$2$allowParent$name(false, null);
  46606. },
  46607. assertSelector$1$allowParent: function(allowParent) {
  46608. return this.assertSelector$2$allowParent$name(allowParent, null);
  46609. },
  46610. assertCompoundSelector$1$name: function($name) {
  46611. var error, t1, exception,
  46612. allowParent = false,
  46613. string = this._selectorString$1($name);
  46614. try {
  46615. t1 = S.SpanScanner$(string, null);
  46616. t1 = new T.SelectorParser(allowParent, true, t1, C.StderrLogger_false).parseCompoundSelector$0();
  46617. return t1;
  46618. } catch (exception) {
  46619. t1 = H.unwrapException(exception);
  46620. if (t1 instanceof E.SassFormatException) {
  46621. error = t1;
  46622. throw H.wrapException(this._value$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  46623. } else
  46624. throw exception;
  46625. }
  46626. },
  46627. _selectorString$1: function($name) {
  46628. var string = this._selectorStringOrNull$0();
  46629. if (string != null)
  46630. return string;
  46631. throw H.wrapException(this._value$_exception$2(this.toString$0(0) + string$.x20is_no, $name));
  46632. },
  46633. _selectorString$0: function() {
  46634. return this._selectorString$1(null);
  46635. },
  46636. _selectorStringOrNull$0: function() {
  46637. var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
  46638. if (_this instanceof D.SassString)
  46639. return _this.text;
  46640. if (!(_this instanceof D.SassList))
  46641. return _null;
  46642. t1 = _this._list$_contents;
  46643. t2 = t1.length;
  46644. if (t2 === 0)
  46645. return _null;
  46646. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  46647. t3 = _this.separator === C.ListSeparator_comma;
  46648. if (t3)
  46649. for (_i = 0; _i < t2; ++_i) {
  46650. complex = t1[_i];
  46651. if (complex instanceof D.SassString)
  46652. result.push(complex.text);
  46653. else if (complex instanceof D.SassList && complex.separator === C.ListSeparator_space) {
  46654. string = complex._selectorString$0();
  46655. result.push(string);
  46656. } else
  46657. return _null;
  46658. }
  46659. else
  46660. for (_i = 0; _i < t2; ++_i) {
  46661. compound = t1[_i];
  46662. if (compound instanceof D.SassString)
  46663. result.push(compound.text);
  46664. else
  46665. return _null;
  46666. }
  46667. return C.JSArray_methods.join$1(result, t3 ? ", " : " ");
  46668. },
  46669. changeListContents$2$separator: function(contents, separator) {
  46670. var t1 = separator == null ? this.get$separator() : separator,
  46671. t2 = this.get$hasBrackets();
  46672. return D.SassList$(contents, t1, t2);
  46673. },
  46674. changeListContents$1: function(contents) {
  46675. return this.changeListContents$2$separator(contents, null);
  46676. },
  46677. greaterThan$1: function(other) {
  46678. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  46679. },
  46680. greaterThanOrEquals$1: function(other) {
  46681. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  46682. },
  46683. lessThan$1: function(other) {
  46684. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  46685. },
  46686. lessThanOrEquals$1: function(other) {
  46687. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  46688. },
  46689. times$1: function(other) {
  46690. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " * " + H.S(other) + '".'));
  46691. },
  46692. modulo$1: function(other) {
  46693. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  46694. },
  46695. plus$1: function(other) {
  46696. var t1;
  46697. if (other instanceof D.SassString)
  46698. return new D.SassString(C.JSString_methods.$add(N.serializeValue0(this, false, true), other.text), other.hasQuotes);
  46699. else {
  46700. t1 = N.serializeValue0(this, false, true);
  46701. other.toString;
  46702. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  46703. }
  46704. },
  46705. minus$1: function(other) {
  46706. var t1 = N.serializeValue0(this, false, true) + "-";
  46707. other.toString;
  46708. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  46709. },
  46710. dividedBy$1: function(other) {
  46711. var t1 = N.serializeValue0(this, false, true) + "/";
  46712. other.toString;
  46713. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  46714. },
  46715. unaryPlus$0: function() {
  46716. return new D.SassString("+" + N.serializeValue0(this, false, true), false);
  46717. },
  46718. unaryMinus$0: function() {
  46719. return new D.SassString("-" + N.serializeValue0(this, false, true), false);
  46720. },
  46721. unaryNot$0: function() {
  46722. return C.SassBoolean_false0;
  46723. },
  46724. withoutSlash$0: function() {
  46725. return this;
  46726. },
  46727. toString$0: function(_) {
  46728. return N.serializeValue0(this, true, true);
  46729. },
  46730. _value$_exception$2: function(message, $name) {
  46731. return new E.SassScriptException($name == null ? message : "$" + $name + ": " + message);
  46732. }
  46733. };
  46734. D.SassArgumentList.prototype = {};
  46735. Z.SassBoolean.prototype = {
  46736. get$isTruthy: function() {
  46737. return this.value;
  46738. },
  46739. accept$1$1: function(visitor) {
  46740. return visitor._serialize$_buffer.write$1(0, String(this.value));
  46741. },
  46742. accept$1: function(visitor) {
  46743. return this.accept$1$1(visitor, type$.dynamic);
  46744. },
  46745. unaryNot$0: function() {
  46746. return this.value ? C.SassBoolean_false0 : C.SassBoolean_true0;
  46747. }
  46748. };
  46749. K.SassColor.prototype = {
  46750. get$red: function() {
  46751. if (this._red == null)
  46752. this._hslToRgb$0();
  46753. return this._red;
  46754. },
  46755. get$green: function() {
  46756. if (this._green == null)
  46757. this._hslToRgb$0();
  46758. return this._green;
  46759. },
  46760. get$blue: function() {
  46761. if (this._blue == null)
  46762. this._hslToRgb$0();
  46763. return this._blue;
  46764. },
  46765. get$hue: function() {
  46766. if (this._hue == null)
  46767. this._rgbToHsl$0();
  46768. return this._hue;
  46769. },
  46770. get$saturation: function() {
  46771. if (this._saturation == null)
  46772. this._rgbToHsl$0();
  46773. return this._saturation;
  46774. },
  46775. get$lightness: function() {
  46776. if (this._lightness == null)
  46777. this._rgbToHsl$0();
  46778. return this._lightness;
  46779. },
  46780. get$original: function() {
  46781. var t1 = this.originalSpan;
  46782. return t1 == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  46783. },
  46784. accept$1$1: function(visitor) {
  46785. return visitor.visitColor$1(this);
  46786. },
  46787. accept$1: function(visitor) {
  46788. return this.accept$1$1(visitor, type$.dynamic);
  46789. },
  46790. assertColor$1: function($name) {
  46791. return this;
  46792. },
  46793. changeRgb$4$alpha$blue$green$red: function(alpha, blue, green, red) {
  46794. var _this = this,
  46795. t1 = red == null ? _this.get$red() : red,
  46796. t2 = green == null ? _this.get$green() : green,
  46797. t3 = blue == null ? _this.get$blue() : blue;
  46798. return K.SassColor$rgb(t1, t2, t3, alpha == null ? _this.alpha : alpha, null);
  46799. },
  46800. changeRgb$3$blue$green$red: function(blue, green, red) {
  46801. return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
  46802. },
  46803. changeHsl$4$alpha$hue$lightness$saturation: function(alpha, hue, lightness, saturation) {
  46804. var _this = this,
  46805. t1 = hue == null ? _this.get$hue() : hue,
  46806. t2 = saturation == null ? _this.get$saturation() : saturation,
  46807. t3 = lightness == null ? _this.get$lightness() : lightness;
  46808. return K.SassColor$hsl(t1, t2, t3, alpha == null ? _this.alpha : alpha);
  46809. },
  46810. changeHsl$3$alpha$lightness$saturation: function(alpha, lightness, saturation) {
  46811. return this.changeHsl$4$alpha$hue$lightness$saturation(alpha, null, lightness, saturation);
  46812. },
  46813. changeHsl$1$saturation: function(saturation) {
  46814. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
  46815. },
  46816. changeHsl$1$lightness: function(lightness) {
  46817. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
  46818. },
  46819. changeHsl$1$hue: function(hue) {
  46820. return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
  46821. },
  46822. changeAlpha$1: function(alpha) {
  46823. var _this = this;
  46824. return new K.SassColor(_this._red, _this._green, _this._blue, _this._hue, _this._saturation, _this._lightness, T.fuzzyAssertRange(alpha, 0, 1, "alpha"), null);
  46825. },
  46826. plus$1: function(other) {
  46827. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  46828. return this.super$Value$plus(other);
  46829. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + H.S(other) + '".'));
  46830. },
  46831. minus$1: function(other) {
  46832. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  46833. return this.super$Value$minus(other);
  46834. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + H.S(other) + '".'));
  46835. },
  46836. dividedBy$1: function(other) {
  46837. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  46838. return this.super$Value$dividedBy(other);
  46839. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " / " + H.S(other) + '".'));
  46840. },
  46841. modulo$1: function(other) {
  46842. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  46843. },
  46844. $eq: function(_, other) {
  46845. var _this = this;
  46846. if (other == null)
  46847. return false;
  46848. return other instanceof K.SassColor && other.get$red() == _this.get$red() && other.get$green() == _this.get$green() && other.get$blue() == _this.get$blue() && other.alpha === _this.alpha;
  46849. },
  46850. get$hashCode: function(_) {
  46851. var _this = this;
  46852. return J.get$hashCode$(_this.get$red()) ^ J.get$hashCode$(_this.get$green()) ^ J.get$hashCode$(_this.get$blue()) ^ C.JSNumber_methods.get$hashCode(_this.alpha);
  46853. },
  46854. _rgbToHsl$0: function() {
  46855. var t2, t3, _this = this,
  46856. scaledRed = _this.get$red() / 255,
  46857. scaledGreen = _this.get$green() / 255,
  46858. scaledBlue = _this.get$blue() / 255,
  46859. max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
  46860. min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
  46861. delta = max - min,
  46862. t1 = max === min;
  46863. if (t1)
  46864. _this._hue = 0;
  46865. else if (max === scaledRed)
  46866. _this._hue = C.JSDouble_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
  46867. else if (max === scaledGreen)
  46868. _this._hue = C.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
  46869. else if (max === scaledBlue)
  46870. _this._hue = C.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
  46871. t2 = max + min;
  46872. t3 = 50 * t2;
  46873. _this._lightness = t3;
  46874. if (t1)
  46875. _this._saturation = 0;
  46876. else {
  46877. t1 = 100 * delta;
  46878. if (t3 < 50)
  46879. _this._saturation = t1 / t2;
  46880. else
  46881. _this._saturation = t1 / (2 - max - min);
  46882. }
  46883. },
  46884. _hslToRgb$0: function() {
  46885. var _this = this,
  46886. scaledHue = _this.get$hue() / 360,
  46887. scaledSaturation = _this.get$saturation() / 100,
  46888. scaledLightness = _this.get$lightness() / 100,
  46889. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  46890. m1 = scaledLightness * 2 - m2;
  46891. _this._red = _this._hueToRgb$3(m1, m2, scaledHue + 0.3333333333333333);
  46892. _this._green = _this._hueToRgb$3(m1, m2, scaledHue);
  46893. _this._blue = _this._hueToRgb$3(m1, m2, scaledHue - 0.3333333333333333);
  46894. },
  46895. _hueToRgb$3: function(m1, m2, hue) {
  46896. var result;
  46897. if (hue < 0)
  46898. ++hue;
  46899. if (hue > 1)
  46900. --hue;
  46901. if (hue < 0.16666666666666666)
  46902. result = m1 + (m2 - m1) * hue * 6;
  46903. else if (hue < 0.5)
  46904. result = m2;
  46905. else
  46906. result = hue < 0.6666666666666666 ? m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6 : m1;
  46907. return T.fuzzyRound(result * 255);
  46908. }
  46909. };
  46910. F.SassFunction.prototype = {
  46911. accept$1$1: function(visitor) {
  46912. var t1;
  46913. if (!visitor._serialize$_inspect)
  46914. H.throwExpression(E.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value."));
  46915. t1 = visitor._serialize$_buffer;
  46916. t1.write$1(0, "get-function(");
  46917. visitor._visitQuotedString$1(this.callable.get$name());
  46918. t1.writeCharCode$1(41);
  46919. return null;
  46920. },
  46921. accept$1: function(visitor) {
  46922. return this.accept$1$1(visitor, type$.dynamic);
  46923. },
  46924. assertFunction$1: function($name) {
  46925. return this;
  46926. },
  46927. $eq: function(_, other) {
  46928. if (other == null)
  46929. return false;
  46930. return other instanceof F.SassFunction && J.$eq$(this.callable, other.callable);
  46931. },
  46932. get$hashCode: function(_) {
  46933. return J.get$hashCode$(this.callable);
  46934. }
  46935. };
  46936. D.SassList.prototype = {
  46937. get$isBlank: function() {
  46938. return C.JSArray_methods.every$1(this._list$_contents, new D.SassList_isBlank_closure());
  46939. },
  46940. get$asList: function() {
  46941. return this._list$_contents;
  46942. },
  46943. get$lengthAsList: function() {
  46944. return this._list$_contents.length;
  46945. },
  46946. SassList$3$brackets: function(contents, separator, brackets) {
  46947. if (this.separator === C.ListSeparator_undecided && this._list$_contents.length > 1)
  46948. throw H.wrapException(P.ArgumentError$(string$.A_list));
  46949. },
  46950. accept$1$1: function(visitor) {
  46951. return visitor.visitList$1(this);
  46952. },
  46953. accept$1: function(visitor) {
  46954. return this.accept$1$1(visitor, type$.dynamic);
  46955. },
  46956. assertMap$1: function($name) {
  46957. return this._list$_contents.length === 0 ? C.SassMap_Map_empty : this.super$Value$assertMap($name);
  46958. },
  46959. $eq: function(_, other) {
  46960. var t1, _this = this;
  46961. if (other == null)
  46962. return false;
  46963. if (!(other instanceof D.SassList && other.separator === _this.separator && other.hasBrackets === _this.hasBrackets && C.C_ListEquality.equals$2(other._list$_contents, _this._list$_contents)))
  46964. t1 = _this._list$_contents.length === 0 && other instanceof A.SassMap && other.get$asList().length === 0;
  46965. else
  46966. t1 = true;
  46967. return t1;
  46968. },
  46969. get$hashCode: function(_) {
  46970. return C.C_ListEquality.hash$1(this._list$_contents);
  46971. },
  46972. get$separator: function() {
  46973. return this.separator;
  46974. },
  46975. get$hasBrackets: function() {
  46976. return this.hasBrackets;
  46977. }
  46978. };
  46979. D.SassList_isBlank_closure.prototype = {
  46980. call$1: function(element) {
  46981. return element.get$isBlank();
  46982. }
  46983. };
  46984. D.ListSeparator.prototype = {
  46985. toString$0: function(_) {
  46986. return this._list$_name;
  46987. }
  46988. };
  46989. A.SassMap.prototype = {
  46990. get$separator: function() {
  46991. var t1 = this.contents;
  46992. return t1.get$isEmpty(t1) ? C.ListSeparator_undecided : C.ListSeparator_comma;
  46993. },
  46994. get$asList: function() {
  46995. var result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  46996. this.contents.forEach$1(0, new A.SassMap_asList_closure(result));
  46997. return result;
  46998. },
  46999. get$lengthAsList: function() {
  47000. var t1 = this.contents;
  47001. return t1.get$length(t1);
  47002. },
  47003. accept$1$1: function(visitor) {
  47004. return visitor.visitMap$1(this);
  47005. },
  47006. accept$1: function(visitor) {
  47007. return this.accept$1$1(visitor, type$.dynamic);
  47008. },
  47009. assertMap$1: function($name) {
  47010. return this;
  47011. },
  47012. $eq: function(_, other) {
  47013. var t1;
  47014. if (other == null)
  47015. return false;
  47016. if (!(other instanceof A.SassMap && C.C_MapEquality.equals$2(other.contents, this.contents))) {
  47017. t1 = this.contents;
  47018. t1 = t1.get$isEmpty(t1) && other instanceof D.SassList && other._list$_contents.length === 0;
  47019. } else
  47020. t1 = true;
  47021. return t1;
  47022. },
  47023. get$hashCode: function(_) {
  47024. var t1 = this.contents;
  47025. return t1.get$isEmpty(t1) ? C.C_ListEquality.hash$1(C.List_empty5) : C.C_MapEquality.hash$1(t1);
  47026. }
  47027. };
  47028. A.SassMap_asList_closure.prototype = {
  47029. call$2: function(key, value) {
  47030. this.result.push(D.SassList$(H.setRuntimeTypeInfo([key, value], type$.JSArray_legacy_Value), C.ListSeparator_space, false));
  47031. }
  47032. };
  47033. O.SassNull.prototype = {
  47034. get$isTruthy: function() {
  47035. return false;
  47036. },
  47037. get$isBlank: function() {
  47038. return true;
  47039. },
  47040. get$realNull: function() {
  47041. return null;
  47042. },
  47043. accept$1$1: function(visitor) {
  47044. if (visitor._serialize$_inspect)
  47045. visitor._serialize$_buffer.write$1(0, "null");
  47046. return null;
  47047. },
  47048. accept$1: function(visitor) {
  47049. return this.accept$1$1(visitor, type$.dynamic);
  47050. },
  47051. unaryNot$0: function() {
  47052. return C.SassBoolean_true0;
  47053. }
  47054. };
  47055. T.SassNumber.prototype = {
  47056. get$unitString: function() {
  47057. var _this = this,
  47058. t1 = _this.numeratorUnits;
  47059. return t1.length !== 0 || _this.denominatorUnits.length !== 0 ? _this._unitString$2(t1, _this.denominatorUnits) : "";
  47060. },
  47061. accept$1$1: function(visitor) {
  47062. return visitor.visitNumber$1(this);
  47063. },
  47064. accept$1: function(visitor) {
  47065. return this.accept$1$1(visitor, type$.dynamic);
  47066. },
  47067. withoutSlash$0: function() {
  47068. var _this = this;
  47069. if (_this.asSlash == null)
  47070. return _this;
  47071. return new T.SassNumber(_this.value, _this.numeratorUnits, _this.denominatorUnits, null);
  47072. },
  47073. withSlash$2: function(numerator, denominator) {
  47074. return new T.SassNumber(this.value, this.numeratorUnits, this.denominatorUnits, new S.Tuple2(numerator, denominator, type$.Tuple2_of_legacy_SassNumber_and_legacy_SassNumber));
  47075. },
  47076. assertNumber$1: function($name) {
  47077. return this;
  47078. },
  47079. assertNumber$0: function() {
  47080. return this.assertNumber$1(null);
  47081. },
  47082. assertInt$1: function($name) {
  47083. var t1 = this.value,
  47084. integer = T.fuzzyIsInt(t1) ? J.round$0$n(t1) : null;
  47085. if (integer != null)
  47086. return integer;
  47087. throw H.wrapException(this._number$_exception$2(this.toString$0(0) + " is not an int.", $name));
  47088. },
  47089. assertInt$0: function() {
  47090. return this.assertInt$1(null);
  47091. },
  47092. valueInRange$3: function(min, max, $name) {
  47093. var _this = this,
  47094. result = T.fuzzyCheckRange(_this.value, min, max);
  47095. if (result != null)
  47096. return result;
  47097. throw H.wrapException(_this._number$_exception$2("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
  47098. },
  47099. hasUnit$1: function(unit) {
  47100. var t1 = this.numeratorUnits;
  47101. return t1.length === 1 && this.denominatorUnits.length === 0 && J.$eq$(C.JSArray_methods.get$first(t1), unit);
  47102. },
  47103. assertUnit$2: function(unit, $name) {
  47104. if (this.hasUnit$1(unit))
  47105. return;
  47106. throw H.wrapException(this._number$_exception$2("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  47107. },
  47108. assertNoUnits$1: function($name) {
  47109. var _this = this;
  47110. if (!(_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0))
  47111. return;
  47112. throw H.wrapException(_this._number$_exception$2("Expected " + _this.toString$0(0) + " to have no units.", $name));
  47113. },
  47114. valueInUnits$2: function(newNumerators, newDenominators) {
  47115. var t1, oldNumerators, t2, _i, oldDenominators, t3, _this = this, _box_0 = {};
  47116. if (!(newNumerators.length === 0 && newDenominators.length === 0)) {
  47117. t1 = _this.numeratorUnits;
  47118. if (!(t1.length === 0 && _this.denominatorUnits.length === 0))
  47119. t1 = C.C_ListEquality.equals$2(t1, newNumerators) && C.C_ListEquality.equals$2(_this.denominatorUnits, newDenominators);
  47120. else
  47121. t1 = true;
  47122. } else
  47123. t1 = true;
  47124. if (t1)
  47125. return _this.value;
  47126. _box_0.value = _this.value;
  47127. t1 = _this.numeratorUnits;
  47128. oldNumerators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
  47129. for (t2 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t2 || (0, H.throwConcurrentModificationError)(newNumerators), ++_i)
  47130. B.removeFirstWhere(oldNumerators, new T.SassNumber_valueInUnits_closure(_box_0, _this, newNumerators[_i]), new T.SassNumber_valueInUnits_closure0(_this, newNumerators, newDenominators));
  47131. t2 = _this.denominatorUnits;
  47132. oldDenominators = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
  47133. for (t3 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t3 || (0, H.throwConcurrentModificationError)(newDenominators), ++_i)
  47134. B.removeFirstWhere(oldDenominators, new T.SassNumber_valueInUnits_closure1(_box_0, _this, newDenominators[_i]), new T.SassNumber_valueInUnits_closure2(_this, newNumerators, newDenominators));
  47135. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  47136. throw H.wrapException(E.SassScriptException$("Incompatible units " + _this._unitString$2(t1, t2) + " and " + _this._unitString$2(newNumerators, newDenominators) + "."));
  47137. return _box_0.value;
  47138. },
  47139. isComparableTo$1: function(other) {
  47140. var t1, exception;
  47141. if (this.numeratorUnits.length !== 0 || this.denominatorUnits.length !== 0)
  47142. t1 = !(other.numeratorUnits.length !== 0 || other.denominatorUnits.length !== 0);
  47143. else
  47144. t1 = true;
  47145. if (t1)
  47146. return true;
  47147. try {
  47148. this.greaterThan$1(other);
  47149. return true;
  47150. } catch (exception) {
  47151. if (H.unwrapException(exception) instanceof E.SassScriptException)
  47152. return false;
  47153. else
  47154. throw exception;
  47155. }
  47156. },
  47157. greaterThan$1: function(other) {
  47158. if (other instanceof T.SassNumber)
  47159. return this._coerceUnits$2(other, T.number0__fuzzyGreaterThan$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  47160. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  47161. },
  47162. greaterThanOrEquals$1: function(other) {
  47163. if (other instanceof T.SassNumber)
  47164. return this._coerceUnits$2(other, T.number0__fuzzyGreaterThanOrEquals$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  47165. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  47166. },
  47167. lessThan$1: function(other) {
  47168. if (other instanceof T.SassNumber)
  47169. return this._coerceUnits$2(other, T.number0__fuzzyLessThan$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  47170. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  47171. },
  47172. lessThanOrEquals$1: function(other) {
  47173. if (other instanceof T.SassNumber)
  47174. return this._coerceUnits$2(other, T.number0__fuzzyLessThanOrEquals$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  47175. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  47176. },
  47177. modulo$1: function(other) {
  47178. if (other instanceof T.SassNumber)
  47179. return this._coerceNumber$2(other, new T.SassNumber_modulo_closure());
  47180. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  47181. },
  47182. plus$1: function(other) {
  47183. if (other instanceof T.SassNumber)
  47184. return this._coerceNumber$2(other, new T.SassNumber_plus_closure());
  47185. if (!(other instanceof K.SassColor))
  47186. return this.super$Value$plus(other);
  47187. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".'));
  47188. },
  47189. minus$1: function(other) {
  47190. if (other instanceof T.SassNumber)
  47191. return this._coerceNumber$2(other, new T.SassNumber_minus_closure());
  47192. if (!(other instanceof K.SassColor))
  47193. return this.super$Value$minus(other);
  47194. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".'));
  47195. },
  47196. times$1: function(other) {
  47197. var _this = this;
  47198. if (other instanceof T.SassNumber)
  47199. return _this._multiplyUnits$5(_this.value * other.value, _this.numeratorUnits, _this.denominatorUnits, other.numeratorUnits, other.denominatorUnits);
  47200. throw H.wrapException(E.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " * " + H.S(other) + '".'));
  47201. },
  47202. dividedBy$1: function(other) {
  47203. var _this = this;
  47204. if (other instanceof T.SassNumber)
  47205. return _this._multiplyUnits$5(_this.value / other.value, _this.numeratorUnits, _this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
  47206. return _this.super$Value$dividedBy(other);
  47207. },
  47208. unaryPlus$0: function() {
  47209. return this;
  47210. },
  47211. unaryMinus$0: function() {
  47212. return T.SassNumber$withUnits(-this.value, this.denominatorUnits, this.numeratorUnits);
  47213. },
  47214. _coerceNumber$2: function(other, operation) {
  47215. var _this = this,
  47216. result = _this._coerceUnits$2(other, operation),
  47217. t1 = _this.numeratorUnits,
  47218. t2 = t1.length === 0;
  47219. t1 = !t2 || _this.denominatorUnits.length !== 0 ? t1 : other.numeratorUnits;
  47220. return T.SassNumber$withUnits(result, !t2 || _this.denominatorUnits.length !== 0 ? _this.denominatorUnits : other.denominatorUnits, t1);
  47221. },
  47222. _coerceUnits$1$2: function(other, operation) {
  47223. var num1, num2, _this = this,
  47224. t1 = _this.numeratorUnits;
  47225. if (t1.length !== 0 || _this.denominatorUnits.length !== 0) {
  47226. num1 = _this.value;
  47227. num2 = other.valueInUnits$2(t1, _this.denominatorUnits);
  47228. } else {
  47229. num1 = _this.valueInUnits$2(other.numeratorUnits, other.denominatorUnits);
  47230. num2 = other.value;
  47231. }
  47232. return operation.call$2(num1, num2);
  47233. },
  47234. _coerceUnits$2: function(other, operation) {
  47235. return this._coerceUnits$1$2(other, operation, type$.dynamic);
  47236. },
  47237. _multiplyUnits$5: function(value, numerators1, denominators1, numerators2, denominators2) {
  47238. var t1, newNumerators, mutableDenominators2, _i, numerator, mutableDenominators1, _this = this, _box_0 = {};
  47239. _box_0.value = value;
  47240. t1 = numerators1.length;
  47241. if (t1 === 0) {
  47242. if (denominators2.length === 0 && !_this._areAnyConvertible$2(denominators1, numerators2))
  47243. return T.SassNumber$withUnits(value, denominators1, numerators2);
  47244. else if (denominators1.length === 0)
  47245. return T.SassNumber$withUnits(value, denominators2, numerators2);
  47246. } else if (numerators2.length === 0)
  47247. if (denominators2.length === 0)
  47248. return T.SassNumber$withUnits(value, denominators2, numerators1);
  47249. else if (denominators1.length === 0 && !_this._areAnyConvertible$2(numerators1, denominators2))
  47250. return T.SassNumber$withUnits(value, denominators2, numerators1);
  47251. newNumerators = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  47252. mutableDenominators2 = H.setRuntimeTypeInfo(denominators2.slice(0), H._arrayInstanceType(denominators2)._eval$1("JSArray<1>"));
  47253. for (_i = 0; _i < t1; ++_i) {
  47254. numerator = numerators1[_i];
  47255. B.removeFirstWhere(mutableDenominators2, new T.SassNumber__multiplyUnits_closure(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure0(newNumerators, numerator));
  47256. }
  47257. mutableDenominators1 = H.setRuntimeTypeInfo(denominators1.slice(0), H._arrayInstanceType(denominators1)._eval$1("JSArray<1>"));
  47258. for (t1 = numerators2.length, _i = 0; _i < t1; ++_i) {
  47259. numerator = numerators2[_i];
  47260. B.removeFirstWhere(mutableDenominators1, new T.SassNumber__multiplyUnits_closure1(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure2(newNumerators, numerator));
  47261. }
  47262. t1 = _box_0.value;
  47263. C.JSArray_methods.addAll$1(mutableDenominators1, mutableDenominators2);
  47264. return T.SassNumber$withUnits(t1, mutableDenominators1, newNumerators);
  47265. },
  47266. _areAnyConvertible$2: function(units1, units2) {
  47267. return C.JSArray_methods.any$1(units1, new T.SassNumber__areAnyConvertible_closure(this, units2));
  47268. },
  47269. _conversionFactor$2: function(unit1, unit2) {
  47270. var innerMap;
  47271. if (unit1 == unit2)
  47272. return 1;
  47273. innerMap = $.$get$_conversions().$index(0, unit1);
  47274. if (innerMap == null)
  47275. return null;
  47276. return innerMap.$index(0, unit2);
  47277. },
  47278. _unitString$2: function(numerators, denominators) {
  47279. var t1;
  47280. if (numerators.length === 0) {
  47281. t1 = denominators.length;
  47282. if (t1 === 0)
  47283. return "no units";
  47284. if (t1 === 1)
  47285. return J.$add$ansx(C.JSArray_methods.get$single(denominators), "^-1");
  47286. return "(" + C.JSArray_methods.join$1(denominators, "*") + ")^-1";
  47287. }
  47288. if (denominators.length === 0)
  47289. return C.JSArray_methods.join$1(numerators, "*");
  47290. return C.JSArray_methods.join$1(numerators, "*") + "/" + C.JSArray_methods.join$1(denominators, "*");
  47291. },
  47292. $eq: function(_, other) {
  47293. var t1, t2, t3, exception, _this = this;
  47294. other = other;
  47295. if (other == null)
  47296. return false;
  47297. if (other instanceof T.SassNumber) {
  47298. t1 = _this.numeratorUnits.length === 0;
  47299. t2 = !t1 || _this.denominatorUnits.length !== 0;
  47300. t3 = other;
  47301. if (t2 !== (t3.numeratorUnits.length !== 0 || t3.denominatorUnits.length !== 0))
  47302. return false;
  47303. if (!(!t1 || _this.denominatorUnits.length !== 0))
  47304. return Math.abs(_this.value - other.value) < $.$get$epsilon();
  47305. try {
  47306. t1 = _this._coerceUnits$2(other, T.number0__fuzzyEquals$closure());
  47307. return t1;
  47308. } catch (exception) {
  47309. if (H.unwrapException(exception) instanceof E.SassScriptException)
  47310. return false;
  47311. else
  47312. throw exception;
  47313. }
  47314. } else
  47315. return false;
  47316. },
  47317. get$hashCode: function(_) {
  47318. var _this = this;
  47319. return C.JSInt_methods.get$hashCode(C.JSDouble_methods.round$0(_this.value * _this._canonicalMultiplier$1(_this.numeratorUnits) / _this._canonicalMultiplier$1(_this.denominatorUnits) * $.$get$_inverseEpsilon()));
  47320. },
  47321. _canonicalMultiplier$1: function(units) {
  47322. return C.JSArray_methods.fold$2(units, 1, new T.SassNumber__canonicalMultiplier_closure());
  47323. },
  47324. _number$_exception$2: function(message, $name) {
  47325. return new E.SassScriptException($name == null ? message : "$" + $name + ": " + message);
  47326. }
  47327. };
  47328. T.SassNumber_valueInUnits_closure.prototype = {
  47329. call$1: function(oldNumerator) {
  47330. var t1,
  47331. factor = this.$this._conversionFactor$2(this.newNumerator, oldNumerator);
  47332. if (factor == null)
  47333. return false;
  47334. t1 = this._box_0;
  47335. t1.value = t1.value * factor;
  47336. return true;
  47337. }
  47338. };
  47339. T.SassNumber_valueInUnits_closure0.prototype = {
  47340. call$0: function() {
  47341. var t1 = this.$this;
  47342. throw H.wrapException(E.SassScriptException$("Incompatible units " + t1._unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._unitString$2(this.newNumerators, this.newDenominators) + "."));
  47343. },
  47344. $signature: 0
  47345. };
  47346. T.SassNumber_valueInUnits_closure1.prototype = {
  47347. call$1: function(oldDenominator) {
  47348. var t1,
  47349. factor = this.$this._conversionFactor$2(this.newDenominator, oldDenominator);
  47350. if (factor == null)
  47351. return false;
  47352. t1 = this._box_0;
  47353. t1.value = t1.value / factor;
  47354. return true;
  47355. }
  47356. };
  47357. T.SassNumber_valueInUnits_closure2.prototype = {
  47358. call$0: function() {
  47359. var t1 = this.$this;
  47360. throw H.wrapException(E.SassScriptException$("Incompatible units " + t1._unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._unitString$2(this.newNumerators, this.newDenominators) + "."));
  47361. },
  47362. $signature: 0
  47363. };
  47364. T.SassNumber_modulo_closure.prototype = {
  47365. call$2: function(num1, num2) {
  47366. var t1;
  47367. if (num2 > 0)
  47368. return C.JSNumber_methods.$mod(num1, num2);
  47369. if (num2 === 0)
  47370. return 0 / 0;
  47371. t1 = C.JSNumber_methods.$mod(num1, num2);
  47372. return t1 === 0 ? 0 : t1 + num2;
  47373. }
  47374. };
  47375. T.SassNumber_plus_closure.prototype = {
  47376. call$2: function(num1, num2) {
  47377. return num1 + num2;
  47378. }
  47379. };
  47380. T.SassNumber_minus_closure.prototype = {
  47381. call$2: function(num1, num2) {
  47382. return num1 - num2;
  47383. }
  47384. };
  47385. T.SassNumber__multiplyUnits_closure.prototype = {
  47386. call$1: function(denominator) {
  47387. var factor = this.$this._conversionFactor$2(this.numerator, denominator);
  47388. if (factor == null)
  47389. return false;
  47390. this._box_0.value /= factor;
  47391. return true;
  47392. }
  47393. };
  47394. T.SassNumber__multiplyUnits_closure0.prototype = {
  47395. call$0: function() {
  47396. this.newNumerators.push(this.numerator);
  47397. return null;
  47398. },
  47399. $signature: 0
  47400. };
  47401. T.SassNumber__multiplyUnits_closure1.prototype = {
  47402. call$1: function(denominator) {
  47403. var factor = this.$this._conversionFactor$2(this.numerator, denominator);
  47404. if (factor == null)
  47405. return false;
  47406. this._box_0.value /= factor;
  47407. return true;
  47408. }
  47409. };
  47410. T.SassNumber__multiplyUnits_closure2.prototype = {
  47411. call$0: function() {
  47412. this.newNumerators.push(this.numerator);
  47413. return null;
  47414. },
  47415. $signature: 0
  47416. };
  47417. T.SassNumber__areAnyConvertible_closure.prototype = {
  47418. call$1: function(unit1) {
  47419. var t1 = $.$get$_conversions();
  47420. if (!t1.containsKey$1(unit1))
  47421. return C.JSArray_methods.contains$1(this.units2, unit1);
  47422. return C.JSArray_methods.any$1(this.units2, t1.$index(0, unit1).get$containsKey());
  47423. }
  47424. };
  47425. T.SassNumber__canonicalMultiplier_closure.prototype = {
  47426. call$2: function(multiplier, unit) {
  47427. var t1,
  47428. innerMap = $.$get$_conversions().$index(0, unit);
  47429. if (innerMap == null)
  47430. t1 = multiplier;
  47431. else {
  47432. t1 = innerMap.get$values();
  47433. t1 = multiplier / t1.get$first(t1);
  47434. }
  47435. return t1;
  47436. }
  47437. };
  47438. D.SassString.prototype = {
  47439. get$sassLength: function() {
  47440. var t1 = this._sassLength;
  47441. if (t1 == null) {
  47442. t1 = this.text;
  47443. t1.toString;
  47444. t1 = new P.Runes(t1);
  47445. t1 = this._sassLength = t1.get$length(t1);
  47446. }
  47447. return t1;
  47448. },
  47449. get$isSpecialNumber: function() {
  47450. var t1, t2;
  47451. if (this.hasQuotes)
  47452. return false;
  47453. t1 = this.text;
  47454. if (t1.length < 6)
  47455. return false;
  47456. t2 = J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32;
  47457. if (t2 === 99) {
  47458. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  47459. return false;
  47460. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
  47461. return false;
  47462. if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
  47463. return false;
  47464. return C.JSString_methods._codeUnitAt$1(t1, 4) === 40;
  47465. } else if (t2 === 118) {
  47466. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  47467. return false;
  47468. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
  47469. return false;
  47470. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47471. } else if (t2 === 101) {
  47472. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
  47473. return false;
  47474. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
  47475. return false;
  47476. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47477. } else if (t2 === 109) {
  47478. t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  47479. if (t2 === 97) {
  47480. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
  47481. return false;
  47482. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47483. } else if (t2 === 105) {
  47484. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
  47485. return false;
  47486. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47487. } else
  47488. return false;
  47489. } else
  47490. return false;
  47491. },
  47492. get$isVar: function() {
  47493. if (this.hasQuotes)
  47494. return false;
  47495. var t1 = this.text;
  47496. if (t1.length < 8)
  47497. return false;
  47498. return (J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32) === 118 && (C.JSString_methods._codeUnitAt$1(t1, 1) | 32) === 97 && (C.JSString_methods._codeUnitAt$1(t1, 2) | 32) === 114 && C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  47499. },
  47500. get$isBlank: function() {
  47501. return !this.hasQuotes && this.text.length === 0;
  47502. },
  47503. accept$1$1: function(visitor) {
  47504. var t1 = visitor._quote && this.hasQuotes,
  47505. t2 = this.text;
  47506. if (t1)
  47507. visitor._visitQuotedString$1(t2);
  47508. else
  47509. visitor._visitUnquotedString$1(t2);
  47510. return null;
  47511. },
  47512. accept$1: function(visitor) {
  47513. return this.accept$1$1(visitor, type$.dynamic);
  47514. },
  47515. assertString$1: function($name) {
  47516. return this;
  47517. },
  47518. plus$1: function(other) {
  47519. var t1 = this.text,
  47520. t2 = this.hasQuotes;
  47521. if (other instanceof D.SassString)
  47522. return new D.SassString(J.$add$ansx(t1, other.text), t2);
  47523. else {
  47524. other.toString;
  47525. return new D.SassString(J.$add$ansx(t1, N.serializeValue0(other, false, true)), t2);
  47526. }
  47527. },
  47528. $eq: function(_, other) {
  47529. if (other == null)
  47530. return false;
  47531. return other instanceof D.SassString && this.text == other.text;
  47532. },
  47533. get$hashCode: function(_) {
  47534. return J.get$hashCode$(this.text);
  47535. }
  47536. };
  47537. E._EvaluateVisitor0.prototype = {
  47538. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap0: function(functions, importCache, logger, nodeImporter, sourceMap) {
  47539. var t6, t7, t8, t9, t10, t11, t12, metaFunctions, metaMixins, cur, _i, metaModule, module, $function, _this = this,
  47540. _s9_ = "sass:meta",
  47541. t1 = type$.legacy_String,
  47542. t2 = type$.legacy_VariableDeclaration,
  47543. t3 = S.SpanScanner$(string$.x40functgl, _s9_),
  47544. t4 = type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value,
  47545. t5 = type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value;
  47546. t3 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t3, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure9(_this), t4)], t5);
  47547. t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
  47548. t6 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t6, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure10(_this), t4)], t5);
  47549. t7 = S.SpanScanner$(string$.x40functf, _s9_);
  47550. t7 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t7, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure11(_this), t4)], t5);
  47551. t8 = S.SpanScanner$(string$.x40functm, _s9_);
  47552. t8 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t8, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure12(_this), t4)], t5);
  47553. t9 = S.SpanScanner$("@function content-exists() {", _s9_);
  47554. t9 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t9, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure13(_this), t4)], t5);
  47555. t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
  47556. t10 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t10, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure14(_this), t4)], t5);
  47557. t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
  47558. t11 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t11, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure15(_this), t4)], t5);
  47559. t12 = S.SpanScanner$(string$.x40functge, _s9_);
  47560. t4 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t12, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure16(_this), t4)], t5);
  47561. t5 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
  47562. metaFunctions = [new Q.BuiltInCallable("global-variable-exists", t3), new Q.BuiltInCallable("variable-exists", t6), new Q.BuiltInCallable("function-exists", t7), new Q.BuiltInCallable("mixin-exists", t8), new Q.BuiltInCallable("content-exists", t9), new Q.BuiltInCallable("module-variables", t10), new Q.BuiltInCallable("module-functions", t11), new Q.BuiltInCallable("get-function", t4), new S.AsyncBuiltInCallable("call", new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t5, C.StderrLogger_false).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure17(_this))];
  47563. t1 = type$.JSArray_legacy_AsyncBuiltInCallable;
  47564. metaMixins = H.setRuntimeTypeInfo([S.AsyncBuiltInCallable$mixin("load-css", "$module, $with: null", new E._EvaluateVisitor_closure18(_this), _s9_)], t1);
  47565. t1 = H.setRuntimeTypeInfo([], t1);
  47566. for (t2 = $.$get$global(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  47567. cur = t2.__internal$_current;
  47568. t1.push(cur);
  47569. }
  47570. for (_i = 0; _i < 9; ++_i)
  47571. t1.push(metaFunctions[_i]);
  47572. metaModule = Q.BuiltInModule$("meta", t1, metaMixins, null, type$.legacy_AsyncBuiltInCallable);
  47573. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInModule_legacy_AsyncBuiltInCallable);
  47574. for (t2 = $.$get$coreModules(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  47575. cur = t2.__internal$_current;
  47576. t1.push(cur);
  47577. }
  47578. t1.push(metaModule);
  47579. t2 = t1.length;
  47580. t3 = _this._async_evaluate$_builtInModules;
  47581. _i = 0;
  47582. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  47583. module = t1[_i];
  47584. t3.$indexSet(0, module.url, module);
  47585. }
  47586. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncCallable_2);
  47587. for (t2 = $.$get$globalFunctions(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  47588. cur = t2.__internal$_current;
  47589. t1.push(cur);
  47590. }
  47591. for (_i = 0; _i < 9; ++_i)
  47592. t1.push(metaFunctions[_i]);
  47593. for (t2 = t1.length, t3 = _this._async_evaluate$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  47594. $function = t1[_i];
  47595. t4 = $function.get$name();
  47596. t4.toString;
  47597. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  47598. }
  47599. },
  47600. run$2: function(_, importer, node) {
  47601. return this.run$body$_EvaluateVisitor(_, importer, node);
  47602. },
  47603. run$body$_EvaluateVisitor: function(_, importer, node) {
  47604. var $async$goto = 0,
  47605. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_EvaluateResult),
  47606. $async$returnValue, $async$self = this;
  47607. var $async$run$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47608. if ($async$errorCode === 1)
  47609. return P._asyncRethrow($async$result, $async$completer);
  47610. while (true)
  47611. switch ($async$goto) {
  47612. case 0:
  47613. // Function start
  47614. $async$returnValue = $async$self._async_evaluate$_withWarnCallback$1$1(new E._EvaluateVisitor_run_closure0($async$self, node, importer), type$.legacy_FutureOr_legacy_EvaluateResult);
  47615. // goto return
  47616. $async$goto = 1;
  47617. break;
  47618. case 1:
  47619. // return
  47620. return P._asyncReturn($async$returnValue, $async$completer);
  47621. }
  47622. });
  47623. return P._asyncStartSync($async$run$2, $async$completer);
  47624. },
  47625. _async_evaluate$_withWarnCallback$1$1: function(callback, $T) {
  47626. return N.withWarnCallback(new E._EvaluateVisitor__withWarnCallback_closure0(this), callback, $T._eval$1("0*"));
  47627. },
  47628. _async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  47629. return this._loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  47630. },
  47631. _async_evaluate$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  47632. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  47633. },
  47634. _async_evaluate$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  47635. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  47636. },
  47637. _loadModule$body$_EvaluateVisitor: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  47638. var $async$goto = 0,
  47639. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  47640. $async$returnValue, $async$self = this, t1, builtInModule;
  47641. var $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47642. if ($async$errorCode === 1)
  47643. return P._asyncRethrow($async$result, $async$completer);
  47644. while (true)
  47645. switch ($async$goto) {
  47646. case 0:
  47647. // Function start
  47648. builtInModule = $async$self._async_evaluate$_builtInModules.$index(0, url);
  47649. if (builtInModule != null) {
  47650. if (configuration != null && !configuration.isImplicit) {
  47651. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  47652. throw H.wrapException($async$self._async_evaluate$_exception$2(t1, nodeWithSpan.get$span()));
  47653. }
  47654. $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__loadModule_closure1(callback, builtInModule));
  47655. // goto return
  47656. $async$goto = 1;
  47657. break;
  47658. }
  47659. $async$goto = 3;
  47660. return P._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3(stackFrame, nodeWithSpan, new E._EvaluateVisitor__loadModule_closure2($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
  47661. case 3:
  47662. // returning from await.
  47663. case 1:
  47664. // return
  47665. return P._asyncReturn($async$returnValue, $async$completer);
  47666. }
  47667. });
  47668. return P._asyncStartSync($async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  47669. },
  47670. _async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  47671. return this._execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  47672. },
  47673. _async_evaluate$_execute$2: function(importer, stylesheet) {
  47674. return this._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  47675. },
  47676. _execute$body$_EvaluateVisitor: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  47677. var $async$goto = 0,
  47678. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Module_legacy_AsyncCallable),
  47679. $async$returnValue, $async$self = this, message, existingNode, environment, t3, extender, module, t1, url, t2, alreadyLoaded;
  47680. var $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47681. if ($async$errorCode === 1)
  47682. return P._asyncRethrow($async$result, $async$completer);
  47683. while (true)
  47684. switch ($async$goto) {
  47685. case 0:
  47686. // Function start
  47687. t1 = {};
  47688. url = stylesheet.span.file.url;
  47689. t2 = $async$self._async_evaluate$_modules;
  47690. alreadyLoaded = t2.$index(0, url);
  47691. if (alreadyLoaded != null) {
  47692. t1 = configuration == null;
  47693. if (!(t1 ? $async$self._async_evaluate$_configuration : configuration).isImplicit) {
  47694. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + string$.x20was_a : string$.This_mw;
  47695. existingNode = $async$self._async_evaluate$_moduleNodes.$index(0, url);
  47696. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  47697. if (existingNode != null)
  47698. t2.$indexSet(0, existingNode.get$span(), "original load");
  47699. if (t1)
  47700. t2.$indexSet(0, $async$self._async_evaluate$_configuration.nodeWithSpan.get$span(), "configuration");
  47701. throw H.wrapException(t2.get$isEmpty(t2) ? $async$self._async_evaluate$_exception$1(message) : $async$self._async_evaluate$_multiSpanException$3(message, "new load", t2));
  47702. }
  47703. $async$returnValue = alreadyLoaded;
  47704. // goto return
  47705. $async$goto = 1;
  47706. break;
  47707. }
  47708. environment = Q.AsyncEnvironment$($async$self._async_evaluate$_sourceMap);
  47709. t1.css = null;
  47710. t3 = type$.legacy_SimpleSelector;
  47711. extender = new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_List_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList, type$.legacy_List_legacy_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector), C.ExtendMode_normal);
  47712. $async$goto = 3;
  47713. return P._asyncAwait($async$self._async_evaluate$_withEnvironment$1$2(environment, new E._EvaluateVisitor__execute_closure0(t1, $async$self, importer, stylesheet, extender, configuration), type$.Null), $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan);
  47714. case 3:
  47715. // returning from await.
  47716. module = Q._EnvironmentModule__EnvironmentModule0(environment, t1.css, extender, environment._async_environment$_forwardedModules);
  47717. t2.$indexSet(0, url, module);
  47718. $async$self._async_evaluate$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  47719. $async$returnValue = module;
  47720. // goto return
  47721. $async$goto = 1;
  47722. break;
  47723. case 1:
  47724. // return
  47725. return P._asyncReturn($async$returnValue, $async$completer);
  47726. }
  47727. });
  47728. return P._asyncStartSync($async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  47729. },
  47730. _async_evaluate$_addOutOfOrderImports$0: function() {
  47731. var t1, statements, _this = this;
  47732. if (_this._async_evaluate$_outOfOrderImports == null)
  47733. return _this._async_evaluate$_root.children;
  47734. t1 = new Array(J.get$length$asx(_this._async_evaluate$_root.children._collection$_source) + _this._async_evaluate$_outOfOrderImports.length);
  47735. t1.fixed$length = Array;
  47736. statements = new G.FixedLengthListBuilder(H.setRuntimeTypeInfo(t1, type$.JSArray_legacy_ModifiableCssNode), type$.FixedLengthListBuilder_legacy_ModifiableCssNode);
  47737. statements.addRange$3(_this._async_evaluate$_root.children, 0, _this._async_evaluate$_endOfImports);
  47738. statements.addAll$1(0, _this._async_evaluate$_outOfOrderImports);
  47739. statements.addRange$2(_this._async_evaluate$_root.children, _this._async_evaluate$_endOfImports);
  47740. return statements.build$0();
  47741. },
  47742. _async_evaluate$_combineCss$2$clone: function(root, clone) {
  47743. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, cur, statements, index, t2, _this = this;
  47744. if (!C.JSArray_methods.any$1(root.get$upstream(), new E._EvaluateVisitor__combineCss_closure2())) {
  47745. selectors = root.get$extender().get$simpleSelectors();
  47746. unsatisfiedExtension = B.firstOrNull(root.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__combineCss_closure3(selectors)));
  47747. if (unsatisfiedExtension != null)
  47748. _this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  47749. return root.get$css(root);
  47750. }
  47751. sortedModules = _this._async_evaluate$_topologicalModules$1(root);
  47752. if (clone) {
  47753. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<AsyncCallable*>*>");
  47754. sortedModules = P.List_List$from(new H.MappedListIterable(sortedModules, new E._EvaluateVisitor__combineCss_closure4(), t1), true, t1._eval$1("ListIterable.E"));
  47755. }
  47756. _this._async_evaluate$_extendModules$1(sortedModules);
  47757. t1 = type$.JSArray_legacy_CssNode;
  47758. imports = H.setRuntimeTypeInfo([], t1);
  47759. css = H.setRuntimeTypeInfo([], t1);
  47760. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  47761. cur = t1.__internal$_current;
  47762. statements = cur.get$css(cur).get$children();
  47763. index = _this._async_evaluate$_indexAfterImports$1(statements);
  47764. t2 = J.getInterceptor$ax(statements);
  47765. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  47766. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  47767. }
  47768. return new V.CssStylesheet(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_legacy_CssNode), root.get$css(root).get$span());
  47769. },
  47770. _async_evaluate$_combineCss$1: function(root) {
  47771. return this._async_evaluate$_combineCss$2$clone(root, false);
  47772. },
  47773. _async_evaluate$_extendModules$1: function(sortedModules) {
  47774. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  47775. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_List_legacy_Extender),
  47776. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_Extension);
  47777. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  47778. t2 = t1.get$current(t1);
  47779. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  47780. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__extendModules_closure1(originalSelectors)));
  47781. extenders = downstreamExtenders.$index(0, t2.get$url());
  47782. if (extenders != null)
  47783. t2.get$extender().addExtensions$1(extenders);
  47784. t3 = t2.get$extender();
  47785. if (t3.get$isEmpty(t3))
  47786. continue;
  47787. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  47788. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new E._EvaluateVisitor__extendModules_closure2()), t2.get$extender());
  47789. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  47790. }
  47791. if (unsatisfiedExtensions._collection$_length !== 0)
  47792. this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  47793. },
  47794. _async_evaluate$_throwForUnsatisfiedExtension$1: function(extension) {
  47795. throw H.wrapException(E.SassException$(string$.The_ta + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  47796. },
  47797. _async_evaluate$_topologicalModules$1: function(root) {
  47798. var t1 = type$.legacy_Module_legacy_AsyncCallable,
  47799. sorted = Q.QueueList$(null, t1);
  47800. new E._EvaluateVisitor__topologicalModules_visitModule0(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  47801. return sorted;
  47802. },
  47803. _async_evaluate$_indexAfterImports$1: function(statements) {
  47804. var t1, t2, t3, lastImport, i, statement;
  47805. for (t1 = J.getInterceptor$asx(statements), t2 = type$.legacy_CssComment, t3 = type$.legacy_CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  47806. statement = t1.$index(statements, i);
  47807. if (t3._is(statement))
  47808. lastImport = i;
  47809. else if (!t2._is(statement))
  47810. break;
  47811. }
  47812. return lastImport + 1;
  47813. },
  47814. visitStylesheet$1: function(node) {
  47815. return this.visitStylesheet$body$_EvaluateVisitor(node);
  47816. },
  47817. visitStylesheet$body$_EvaluateVisitor: function(node) {
  47818. var $async$goto = 0,
  47819. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  47820. $async$returnValue, $async$self = this, t1, t2, _i;
  47821. var $async$visitStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47822. if ($async$errorCode === 1)
  47823. return P._asyncRethrow($async$result, $async$completer);
  47824. while (true)
  47825. switch ($async$goto) {
  47826. case 0:
  47827. // Function start
  47828. t1 = node.children, t2 = t1.length, _i = 0;
  47829. case 3:
  47830. // for condition
  47831. if (!(_i < t2)) {
  47832. // goto after for
  47833. $async$goto = 5;
  47834. break;
  47835. }
  47836. $async$goto = 6;
  47837. return P._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  47838. case 6:
  47839. // returning from await.
  47840. case 4:
  47841. // for update
  47842. ++_i;
  47843. // goto for condition
  47844. $async$goto = 3;
  47845. break;
  47846. case 5:
  47847. // after for
  47848. $async$returnValue = null;
  47849. // goto return
  47850. $async$goto = 1;
  47851. break;
  47852. case 1:
  47853. // return
  47854. return P._asyncReturn($async$returnValue, $async$completer);
  47855. }
  47856. });
  47857. return P._asyncStartSync($async$visitStylesheet$1, $async$completer);
  47858. },
  47859. visitAtRootRule$1: function(node) {
  47860. return this.visitAtRootRule$body$_EvaluateVisitor(node);
  47861. },
  47862. visitAtRootRule$body$_EvaluateVisitor: function(node) {
  47863. var $async$goto = 0,
  47864. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  47865. $async$returnValue, $async$self = this, root, innerCopy, outerCopy, cur, copy, t1, query, $parent, included, $async$temp1, $async$temp2;
  47866. var $async$visitAtRootRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47867. if ($async$errorCode === 1)
  47868. return P._asyncRethrow($async$result, $async$completer);
  47869. while (true)
  47870. switch ($async$goto) {
  47871. case 0:
  47872. // Function start
  47873. t1 = node.query;
  47874. $async$goto = t1 != null ? 3 : 5;
  47875. break;
  47876. case 3:
  47877. // then
  47878. $async$temp1 = t1;
  47879. $async$temp2 = E;
  47880. $async$goto = 6;
  47881. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(t1, true), $async$visitAtRootRule$1);
  47882. case 6:
  47883. // returning from await.
  47884. $async$result = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure2($async$self, $async$result));
  47885. // goto join
  47886. $async$goto = 4;
  47887. break;
  47888. case 5:
  47889. // else
  47890. $async$result = C.AtRootQuery_UsS;
  47891. case 4:
  47892. // join
  47893. query = $async$result;
  47894. $parent = $async$self._async_evaluate$_parent;
  47895. included = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssParentNode);
  47896. for (t1 = type$.legacy_CssStylesheet; !t1._is($parent);) {
  47897. if (!query.excludes$1($parent))
  47898. included.push($parent);
  47899. $parent = $parent._parent;
  47900. }
  47901. root = $async$self._async_evaluate$_trimIncluded$1(included);
  47902. $async$goto = root == $async$self._async_evaluate$_parent ? 7 : 8;
  47903. break;
  47904. case 7:
  47905. // then
  47906. $async$goto = 9;
  47907. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new E._EvaluateVisitor_visitAtRootRule_closure3($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  47908. case 9:
  47909. // returning from await.
  47910. $async$returnValue = null;
  47911. // goto return
  47912. $async$goto = 1;
  47913. break;
  47914. case 8:
  47915. // join
  47916. innerCopy = included.length === 0 ? null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  47917. for (t1 = H.SubListIterable$(included, 1, null, type$.legacy_ModifiableCssParentNode), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  47918. cur = t1.__internal$_current;
  47919. copy = cur.copyWithoutChildren$0();
  47920. copy.addChild$1(outerCopy);
  47921. }
  47922. if (outerCopy != null)
  47923. root.addChild$1(outerCopy);
  47924. $async$goto = 10;
  47925. return P._asyncAwait($async$self._async_evaluate$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new E._EvaluateVisitor_visitAtRootRule_closure4($async$self, node)), $async$visitAtRootRule$1);
  47926. case 10:
  47927. // returning from await.
  47928. $async$returnValue = null;
  47929. // goto return
  47930. $async$goto = 1;
  47931. break;
  47932. case 1:
  47933. // return
  47934. return P._asyncReturn($async$returnValue, $async$completer);
  47935. }
  47936. });
  47937. return P._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  47938. },
  47939. _async_evaluate$_trimIncluded$1: function(nodes) {
  47940. var $parent, innermostContiguous, i, t2, root,
  47941. t1 = nodes.length;
  47942. if (t1 === 0)
  47943. return this._async_evaluate$_root;
  47944. $parent = this._async_evaluate$_parent;
  47945. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  47946. for (; $parent != nodes[i]; innermostContiguous = null)
  47947. $parent = $parent._parent;
  47948. if (innermostContiguous == null)
  47949. innermostContiguous = i;
  47950. $parent = $parent._parent;
  47951. }
  47952. t2 = this._async_evaluate$_root;
  47953. if ($parent != t2)
  47954. return t2;
  47955. root = nodes[innermostContiguous];
  47956. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  47957. return root;
  47958. },
  47959. _async_evaluate$_scopeForAtRoot$4: function(node, newParent, query, included) {
  47960. var _this = this,
  47961. scope = new E._EvaluateVisitor__scopeForAtRoot_closure5(_this, newParent, node),
  47962. t1 = query._all,
  47963. t2 = t1 || query._at_root_query$_rule,
  47964. t3 = query.include;
  47965. if (t2 !== t3)
  47966. scope = new E._EvaluateVisitor__scopeForAtRoot_closure6(_this, scope);
  47967. if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
  47968. scope = new E._EvaluateVisitor__scopeForAtRoot_closure7(_this, scope);
  47969. if (_this._async_evaluate$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
  47970. scope = new E._EvaluateVisitor__scopeForAtRoot_closure8(_this, scope);
  47971. return _this._async_evaluate$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new E._EvaluateVisitor__scopeForAtRoot_closure9()) ? new E._EvaluateVisitor__scopeForAtRoot_closure10(_this, scope) : scope;
  47972. },
  47973. visitContentBlock$1: function(node) {
  47974. return H.throwExpression(P.UnsupportedError$(string$.Evalua));
  47975. },
  47976. visitContentRule$1: function(node) {
  47977. return this.visitContentRule$body$_EvaluateVisitor(node);
  47978. },
  47979. visitContentRule$body$_EvaluateVisitor: function(node) {
  47980. var $async$goto = 0,
  47981. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  47982. $async$returnValue, $async$self = this, $content;
  47983. var $async$visitContentRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  47984. if ($async$errorCode === 1)
  47985. return P._asyncRethrow($async$result, $async$completer);
  47986. while (true)
  47987. switch ($async$goto) {
  47988. case 0:
  47989. // Function start
  47990. $content = $async$self._async_evaluate$_environment._async_environment$_content;
  47991. if ($content == null) {
  47992. $async$returnValue = null;
  47993. // goto return
  47994. $async$goto = 1;
  47995. break;
  47996. }
  47997. $async$goto = 3;
  47998. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4(node.$arguments, $content, node, new E._EvaluateVisitor_visitContentRule_closure0($async$self, $content)), $async$visitContentRule$1);
  47999. case 3:
  48000. // returning from await.
  48001. $async$returnValue = null;
  48002. // goto return
  48003. $async$goto = 1;
  48004. break;
  48005. case 1:
  48006. // return
  48007. return P._asyncReturn($async$returnValue, $async$completer);
  48008. }
  48009. });
  48010. return P._asyncStartSync($async$visitContentRule$1, $async$completer);
  48011. },
  48012. visitDebugRule$1: function(node) {
  48013. return this.visitDebugRule$body$_EvaluateVisitor(node);
  48014. },
  48015. visitDebugRule$body$_EvaluateVisitor: function(node) {
  48016. var $async$goto = 0,
  48017. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48018. $async$returnValue, $async$self = this, value, t1;
  48019. var $async$visitDebugRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48020. if ($async$errorCode === 1)
  48021. return P._asyncRethrow($async$result, $async$completer);
  48022. while (true)
  48023. switch ($async$goto) {
  48024. case 0:
  48025. // Function start
  48026. $async$goto = 3;
  48027. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  48028. case 3:
  48029. // returning from await.
  48030. value = $async$result;
  48031. t1 = value instanceof D.SassString ? value.text : J.toString$0$(value);
  48032. $async$self._async_evaluate$_logger.debug$2(t1, node.span);
  48033. $async$returnValue = null;
  48034. // goto return
  48035. $async$goto = 1;
  48036. break;
  48037. case 1:
  48038. // return
  48039. return P._asyncReturn($async$returnValue, $async$completer);
  48040. }
  48041. });
  48042. return P._asyncStartSync($async$visitDebugRule$1, $async$completer);
  48043. },
  48044. visitDeclaration$1: function(node) {
  48045. return this.visitDeclaration$body$_EvaluateVisitor(node);
  48046. },
  48047. visitDeclaration$body$_EvaluateVisitor: function(node) {
  48048. var $async$goto = 0,
  48049. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48050. $async$returnValue, $async$self = this, $name, t1, cssValue, t2, oldDeclarationName, $async$temp1;
  48051. var $async$visitDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48052. if ($async$errorCode === 1)
  48053. return P._asyncRethrow($async$result, $async$completer);
  48054. while (true)
  48055. switch ($async$goto) {
  48056. case 0:
  48057. // Function start
  48058. if (!($async$self._async_evaluate$_styleRule != null && !$async$self._async_evaluate$_atRootExcludingStyleRule) && !$async$self._async_evaluate$_inUnknownAtRule && !$async$self._async_evaluate$_inKeyframes)
  48059. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Declar, node.span));
  48060. $async$goto = 3;
  48061. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(node.name, true), $async$visitDeclaration$1);
  48062. case 3:
  48063. // returning from await.
  48064. $name = $async$result;
  48065. t1 = $async$self._async_evaluate$_declarationName;
  48066. if (t1 != null)
  48067. $name = new F.CssValue(t1 + "-" + H.S($name.get$value($name)), $name.get$span(), type$.CssValue_legacy_String);
  48068. t1 = node.value;
  48069. $async$goto = t1 == null ? 4 : 6;
  48070. break;
  48071. case 4:
  48072. // then
  48073. $async$result = null;
  48074. // goto join
  48075. $async$goto = 5;
  48076. break;
  48077. case 6:
  48078. // else
  48079. $async$temp1 = F;
  48080. $async$goto = 7;
  48081. return P._asyncAwait(t1.accept$1($async$self), $async$visitDeclaration$1);
  48082. case 7:
  48083. // returning from await.
  48084. $async$result = new $async$temp1.CssValue($async$result, t1.get$span(), type$.CssValue_legacy_Value);
  48085. case 5:
  48086. // join
  48087. cssValue = $async$result;
  48088. if (cssValue != null) {
  48089. t2 = cssValue.value;
  48090. t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
  48091. } else
  48092. t2 = false;
  48093. if (t2) {
  48094. t2 = $async$self._async_evaluate$_parent;
  48095. t1 = $async$self._async_evaluate$_expressionNode$1(t1);
  48096. t1 = t1 == null ? null : t1.get$span();
  48097. t2.addChild$1(L.ModifiableCssDeclaration$($name, cssValue, node.span, t1));
  48098. } else if (J.startsWith$1$s($name.get$value($name), "--"))
  48099. throw H.wrapException($async$self._async_evaluate$_exception$2("Custom property values may not be empty.", t1.get$span()));
  48100. $async$goto = node.children != null ? 8 : 9;
  48101. break;
  48102. case 8:
  48103. // then
  48104. oldDeclarationName = $async$self._async_evaluate$_declarationName;
  48105. $async$self._async_evaluate$_declarationName = $name.get$value($name);
  48106. $async$goto = 10;
  48107. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new E._EvaluateVisitor_visitDeclaration_closure0($async$self, node), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  48108. case 10:
  48109. // returning from await.
  48110. $async$self._async_evaluate$_declarationName = oldDeclarationName;
  48111. case 9:
  48112. // join
  48113. $async$returnValue = null;
  48114. // goto return
  48115. $async$goto = 1;
  48116. break;
  48117. case 1:
  48118. // return
  48119. return P._asyncReturn($async$returnValue, $async$completer);
  48120. }
  48121. });
  48122. return P._asyncStartSync($async$visitDeclaration$1, $async$completer);
  48123. },
  48124. visitEachRule$1: function(node) {
  48125. return this.visitEachRule$body$_EvaluateVisitor(node);
  48126. },
  48127. visitEachRule$body$_EvaluateVisitor: function(node) {
  48128. var $async$goto = 0,
  48129. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48130. $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
  48131. var $async$visitEachRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48132. if ($async$errorCode === 1)
  48133. return P._asyncRethrow($async$result, $async$completer);
  48134. while (true)
  48135. switch ($async$goto) {
  48136. case 0:
  48137. // Function start
  48138. t1 = node.list;
  48139. $async$goto = 3;
  48140. return P._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  48141. case 3:
  48142. // returning from await.
  48143. list = $async$result;
  48144. nodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t1);
  48145. setVariables = node.variables.length === 1 ? new E._EvaluateVisitor_visitEachRule_closure2($async$self, node, nodeWithSpan) : new E._EvaluateVisitor_visitEachRule_closure3($async$self, node, nodeWithSpan);
  48146. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitEachRule_closure4($async$self, list, setVariables, node), true, type$.legacy_Value);
  48147. // goto return
  48148. $async$goto = 1;
  48149. break;
  48150. case 1:
  48151. // return
  48152. return P._asyncReturn($async$returnValue, $async$completer);
  48153. }
  48154. });
  48155. return P._asyncStartSync($async$visitEachRule$1, $async$completer);
  48156. },
  48157. _async_evaluate$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  48158. var i,
  48159. list = value.get$asList(),
  48160. t1 = variables.length,
  48161. minLength = Math.min(t1, list.length);
  48162. for (i = 0; i < minLength; ++i)
  48163. this._async_evaluate$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  48164. for (i = minLength; i < t1; ++i)
  48165. this._async_evaluate$_environment.setLocalVariable$3(variables[i], C.C_SassNull0, nodeWithSpan);
  48166. },
  48167. visitErrorRule$1: function(node) {
  48168. return this.visitErrorRule$body$_EvaluateVisitor(node);
  48169. },
  48170. visitErrorRule$body$_EvaluateVisitor: function(node) {
  48171. var $async$goto = 0,
  48172. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48173. $async$self = this, $async$temp1, $async$temp2;
  48174. var $async$visitErrorRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48175. if ($async$errorCode === 1)
  48176. return P._asyncRethrow($async$result, $async$completer);
  48177. while (true)
  48178. switch ($async$goto) {
  48179. case 0:
  48180. // Function start
  48181. $async$temp1 = H;
  48182. $async$temp2 = J;
  48183. $async$goto = 2;
  48184. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  48185. case 2:
  48186. // returning from await.
  48187. throw $async$temp1.wrapException($async$self._async_evaluate$_exception$2($async$temp2.toString$0$($async$result), node.span));
  48188. // implicit return
  48189. return P._asyncReturn(null, $async$completer);
  48190. }
  48191. });
  48192. return P._asyncStartSync($async$visitErrorRule$1, $async$completer);
  48193. },
  48194. visitExtendRule$1: function(node) {
  48195. return this.visitExtendRule$body$_EvaluateVisitor(node);
  48196. },
  48197. visitExtendRule$body$_EvaluateVisitor: function(node) {
  48198. var $async$goto = 0,
  48199. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48200. $async$returnValue, $async$self = this, targetText, t1, t2, t3, _i, t4;
  48201. var $async$visitExtendRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48202. if ($async$errorCode === 1)
  48203. return P._asyncRethrow($async$result, $async$completer);
  48204. while (true)
  48205. switch ($async$goto) {
  48206. case 0:
  48207. // Function start
  48208. if (!($async$self._async_evaluate$_styleRule != null && !$async$self._async_evaluate$_atRootExcludingStyleRule) || $async$self._async_evaluate$_declarationName != null)
  48209. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.x40exten, node.span));
  48210. $async$goto = 3;
  48211. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  48212. case 3:
  48213. // returning from await.
  48214. targetText = $async$result;
  48215. for (t1 = $async$self._async_evaluate$_adjustParseError$2(targetText, new E._EvaluateVisitor_visitExtendRule_closure0($async$self, targetText)).components, t2 = t1.length, t3 = type$.legacy_CompoundSelector, _i = 0; _i < t2; ++_i) {
  48216. t4 = t1[_i].components;
  48217. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector))
  48218. throw H.wrapException(E.SassFormatException$("complex selectors may not be extended.", targetText.get$span()));
  48219. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  48220. if (t4.length !== 1)
  48221. throw H.wrapException(E.SassFormatException$(string$.compou + C.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.get$span()));
  48222. $async$self._async_evaluate$_extender.addExtension$4($async$self._async_evaluate$_styleRule.selector, C.JSArray_methods.get$first(t4), node, $async$self._async_evaluate$_mediaQueries);
  48223. }
  48224. $async$returnValue = null;
  48225. // goto return
  48226. $async$goto = 1;
  48227. break;
  48228. case 1:
  48229. // return
  48230. return P._asyncReturn($async$returnValue, $async$completer);
  48231. }
  48232. });
  48233. return P._asyncStartSync($async$visitExtendRule$1, $async$completer);
  48234. },
  48235. visitAtRule$1: function(node) {
  48236. return this.visitAtRule$body$_EvaluateVisitor(node);
  48237. },
  48238. visitAtRule$body$_EvaluateVisitor: function(node) {
  48239. var $async$goto = 0,
  48240. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48241. $async$returnValue, $async$self = this, $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule;
  48242. var $async$visitAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48243. if ($async$errorCode === 1)
  48244. return P._asyncRethrow($async$result, $async$completer);
  48245. while (true)
  48246. switch ($async$goto) {
  48247. case 0:
  48248. // Function start
  48249. if ($async$self._async_evaluate$_declarationName != null)
  48250. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
  48251. $async$goto = 3;
  48252. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  48253. case 3:
  48254. // returning from await.
  48255. $name = $async$result;
  48256. t1 = node.value;
  48257. $async$goto = t1 == null ? 4 : 6;
  48258. break;
  48259. case 4:
  48260. // then
  48261. $async$result = null;
  48262. // goto join
  48263. $async$goto = 5;
  48264. break;
  48265. case 6:
  48266. // else
  48267. $async$goto = 7;
  48268. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitAtRule$1);
  48269. case 7:
  48270. // returning from await.
  48271. case 5:
  48272. // join
  48273. value = $async$result;
  48274. if (node.children == null) {
  48275. t1 = $async$self._async_evaluate$_parent;
  48276. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  48277. t1.addChild$1(new U.ModifiableCssAtRule($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2));
  48278. $async$returnValue = null;
  48279. // goto return
  48280. $async$goto = 1;
  48281. break;
  48282. }
  48283. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  48284. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  48285. if (B.unvendor($name.get$value($name)) === "keyframes")
  48286. $async$self._async_evaluate$_inKeyframes = true;
  48287. else
  48288. $async$self._async_evaluate$_inUnknownAtRule = true;
  48289. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  48290. $async$goto = 8;
  48291. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1), new E._EvaluateVisitor_visitAtRule_closure1($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitAtRule_closure2(), type$.legacy_ModifiableCssAtRule, type$.Null), $async$visitAtRule$1);
  48292. case 8:
  48293. // returning from await.
  48294. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  48295. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  48296. $async$returnValue = null;
  48297. // goto return
  48298. $async$goto = 1;
  48299. break;
  48300. case 1:
  48301. // return
  48302. return P._asyncReturn($async$returnValue, $async$completer);
  48303. }
  48304. });
  48305. return P._asyncStartSync($async$visitAtRule$1, $async$completer);
  48306. },
  48307. visitForRule$1: function(node) {
  48308. return this.visitForRule$body$_EvaluateVisitor(node);
  48309. },
  48310. visitForRule$body$_EvaluateVisitor: function(node) {
  48311. var $async$goto = 0,
  48312. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48313. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  48314. var $async$visitForRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48315. if ($async$errorCode === 1)
  48316. return P._asyncRethrow($async$result, $async$completer);
  48317. while (true)
  48318. switch ($async$goto) {
  48319. case 0:
  48320. // Function start
  48321. t1 = {};
  48322. t2 = node.from;
  48323. t3 = type$.legacy_SassNumber;
  48324. $async$goto = 3;
  48325. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(t2, new E._EvaluateVisitor_visitForRule_closure4($async$self, node), t3), $async$visitForRule$1);
  48326. case 3:
  48327. // returning from await.
  48328. fromNumber = $async$result;
  48329. t4 = node.to;
  48330. $async$goto = 4;
  48331. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(t4, new E._EvaluateVisitor_visitForRule_closure5($async$self, node), t3), $async$visitForRule$1);
  48332. case 4:
  48333. // returning from await.
  48334. toNumber = $async$result;
  48335. from = $async$self._async_evaluate$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitForRule_closure6(fromNumber, toNumber));
  48336. to = t1.to = $async$self._async_evaluate$_addExceptionSpan$2(t4, new E._EvaluateVisitor_visitForRule_closure7(toNumber));
  48337. direction = from > to ? -1 : 1;
  48338. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  48339. $async$returnValue = null;
  48340. // goto return
  48341. $async$goto = 1;
  48342. break;
  48343. }
  48344. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitForRule_closure8(t1, $async$self, node, from, direction), true, type$.legacy_Value);
  48345. // goto return
  48346. $async$goto = 1;
  48347. break;
  48348. case 1:
  48349. // return
  48350. return P._asyncReturn($async$returnValue, $async$completer);
  48351. }
  48352. });
  48353. return P._asyncStartSync($async$visitForRule$1, $async$completer);
  48354. },
  48355. visitForwardRule$1: function(node) {
  48356. return this.visitForwardRule$body$_EvaluateVisitor(node);
  48357. },
  48358. visitForwardRule$body$_EvaluateVisitor: function(node) {
  48359. var $async$goto = 0,
  48360. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48361. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  48362. var $async$visitForwardRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48363. if ($async$errorCode === 1)
  48364. return P._asyncRethrow($async$result, $async$completer);
  48365. while (true)
  48366. switch ($async$goto) {
  48367. case 0:
  48368. // Function start
  48369. oldConfiguration = $async$self._async_evaluate$_configuration;
  48370. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  48371. t1 = node.configuration;
  48372. t2 = t1.length;
  48373. t3 = node.url;
  48374. $async$goto = t2 !== 0 ? 3 : 5;
  48375. break;
  48376. case 3:
  48377. // then
  48378. $async$goto = 6;
  48379. return P._asyncAwait($async$self._async_evaluate$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  48380. case 6:
  48381. // returning from await.
  48382. newConfiguration = $async$result;
  48383. $async$goto = 7;
  48384. return P._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure1($async$self, node), newConfiguration), $async$visitForwardRule$1);
  48385. case 7:
  48386. // returning from await.
  48387. t3 = type$.legacy_String;
  48388. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  48389. for (_i = 0; _i < t2; ++_i) {
  48390. variable = t1[_i];
  48391. if (!variable.isGuarded)
  48392. t4.add$1(0, variable.name);
  48393. }
  48394. $async$self._async_evaluate$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  48395. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  48396. for (_i = 0; _i < t2; ++_i)
  48397. t3.add$1(0, t1[_i].name);
  48398. $async$self._async_evaluate$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  48399. // goto join
  48400. $async$goto = 4;
  48401. break;
  48402. case 5:
  48403. // else
  48404. $async$self._async_evaluate$_configuration = adjustedConfiguration;
  48405. $async$goto = 8;
  48406. return P._asyncAwait($async$self._async_evaluate$_loadModule$4(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure2($async$self, node)), $async$visitForwardRule$1);
  48407. case 8:
  48408. // returning from await.
  48409. $async$self._async_evaluate$_configuration = oldConfiguration;
  48410. case 4:
  48411. // join
  48412. $async$returnValue = null;
  48413. // goto return
  48414. $async$goto = 1;
  48415. break;
  48416. case 1:
  48417. // return
  48418. return P._asyncReturn($async$returnValue, $async$completer);
  48419. }
  48420. });
  48421. return P._asyncStartSync($async$visitForwardRule$1, $async$completer);
  48422. },
  48423. _async_evaluate$_addForwardConfiguration$2: function(configuration, node) {
  48424. return this._addForwardConfiguration$body$_EvaluateVisitor(configuration, node);
  48425. },
  48426. _addForwardConfiguration$body$_EvaluateVisitor: function(configuration, node) {
  48427. var $async$goto = 0,
  48428. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Configuration),
  48429. $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  48430. var $async$_async_evaluate$_addForwardConfiguration$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48431. if ($async$errorCode === 1)
  48432. return P._asyncRethrow($async$result, $async$completer);
  48433. while (true)
  48434. switch ($async$goto) {
  48435. case 0:
  48436. // Function start
  48437. t1 = configuration._values;
  48438. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue), type$.legacy_String, type$.legacy_ConfiguredValue);
  48439. t2 = node.configuration, t3 = t2.length, _i = 0;
  48440. case 3:
  48441. // for condition
  48442. if (!(_i < t3)) {
  48443. // goto after for
  48444. $async$goto = 5;
  48445. break;
  48446. }
  48447. variable = t2[_i];
  48448. if (variable.isGuarded) {
  48449. t4 = variable.name;
  48450. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  48451. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull0)) {
  48452. newValues.$indexSet(0, t4, t5);
  48453. // goto for update
  48454. $async$goto = 4;
  48455. break;
  48456. }
  48457. }
  48458. t4 = variable.name;
  48459. t5 = variable.expression;
  48460. $async$temp1 = newValues;
  48461. $async$temp2 = t4;
  48462. $async$temp3 = Z;
  48463. $async$goto = 6;
  48464. return P._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate$_addForwardConfiguration$2);
  48465. case 6:
  48466. // returning from await.
  48467. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate$_expressionNode$1(t5)));
  48468. case 4:
  48469. // for update
  48470. ++_i;
  48471. // goto for condition
  48472. $async$goto = 3;
  48473. break;
  48474. case 5:
  48475. // after for
  48476. $async$returnValue = new A.Configuration(newValues, node, false);
  48477. // goto return
  48478. $async$goto = 1;
  48479. break;
  48480. case 1:
  48481. // return
  48482. return P._asyncReturn($async$returnValue, $async$completer);
  48483. }
  48484. });
  48485. return P._asyncStartSync($async$_async_evaluate$_addForwardConfiguration$2, $async$completer);
  48486. },
  48487. _async_evaluate$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  48488. var t1, t2, t3, _i, $name;
  48489. for (t1 = upstream._values, t2 = J.toList$0$ax(t1.get$keys()), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  48490. $name = t2[_i];
  48491. if (except.contains$1(0, $name))
  48492. continue;
  48493. if (!downstream._values.containsKey$1($name))
  48494. if (!t1.get$isEmpty(t1))
  48495. t1.remove$1(0, $name);
  48496. }
  48497. },
  48498. _async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  48499. configuration._values.forEach$1(0, new E._EvaluateVisitor__assertConfigurationIsEmpty_closure0(this, only, nameInError));
  48500. },
  48501. _async_evaluate$_assertConfigurationIsEmpty$1: function(configuration) {
  48502. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  48503. },
  48504. _async_evaluate$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  48505. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  48506. },
  48507. _async_evaluate$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  48508. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  48509. },
  48510. visitFunctionRule$1: function(node) {
  48511. return this.visitFunctionRule$body$_EvaluateVisitor(node);
  48512. },
  48513. visitFunctionRule$body$_EvaluateVisitor: function(node) {
  48514. var $async$goto = 0,
  48515. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48516. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  48517. var $async$visitFunctionRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48518. if ($async$errorCode === 1)
  48519. return P._asyncRethrow($async$result, $async$completer);
  48520. while (true)
  48521. switch ($async$goto) {
  48522. case 0:
  48523. // Function start
  48524. t1 = $async$self._async_evaluate$_environment;
  48525. t2 = t1.closure$0();
  48526. t3 = t1._async_environment$_functions;
  48527. index = t3.length - 1;
  48528. t4 = node.name;
  48529. t1._async_environment$_functionIndices.$indexSet(0, t4, index);
  48530. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_legacy_AsyncEnvironment));
  48531. $async$returnValue = null;
  48532. // goto return
  48533. $async$goto = 1;
  48534. break;
  48535. case 1:
  48536. // return
  48537. return P._asyncReturn($async$returnValue, $async$completer);
  48538. }
  48539. });
  48540. return P._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  48541. },
  48542. visitIfRule$1: function(node) {
  48543. return this.visitIfRule$body$_EvaluateVisitor(node);
  48544. },
  48545. visitIfRule$body$_EvaluateVisitor: function(node) {
  48546. var $async$goto = 0,
  48547. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48548. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
  48549. var $async$visitIfRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48550. if ($async$errorCode === 1)
  48551. return P._asyncRethrow($async$result, $async$completer);
  48552. while (true)
  48553. switch ($async$goto) {
  48554. case 0:
  48555. // Function start
  48556. _box_0 = {};
  48557. _box_0.clause = node.lastClause;
  48558. t1 = node.clauses, t2 = t1.length, _i = 0;
  48559. case 3:
  48560. // for condition
  48561. if (!(_i < t2)) {
  48562. // goto after for
  48563. $async$goto = 5;
  48564. break;
  48565. }
  48566. clauseToCheck = t1[_i];
  48567. $async$goto = 6;
  48568. return P._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  48569. case 6:
  48570. // returning from await.
  48571. if ($async$result.get$isTruthy()) {
  48572. _box_0.clause = clauseToCheck;
  48573. // goto after for
  48574. $async$goto = 5;
  48575. break;
  48576. }
  48577. case 4:
  48578. // for update
  48579. ++_i;
  48580. // goto for condition
  48581. $async$goto = 3;
  48582. break;
  48583. case 5:
  48584. // after for
  48585. t1 = _box_0.clause;
  48586. if (t1 == null) {
  48587. $async$returnValue = null;
  48588. // goto return
  48589. $async$goto = 1;
  48590. break;
  48591. }
  48592. $async$goto = 7;
  48593. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitIfRule_closure0(_box_0, $async$self), true, t1.hasDeclarations, type$.legacy_Value), $async$visitIfRule$1);
  48594. case 7:
  48595. // returning from await.
  48596. $async$returnValue = $async$result;
  48597. // goto return
  48598. $async$goto = 1;
  48599. break;
  48600. case 1:
  48601. // return
  48602. return P._asyncReturn($async$returnValue, $async$completer);
  48603. }
  48604. });
  48605. return P._asyncStartSync($async$visitIfRule$1, $async$completer);
  48606. },
  48607. visitImportRule$1: function(node) {
  48608. return this.visitImportRule$body$_EvaluateVisitor(node);
  48609. },
  48610. visitImportRule$body$_EvaluateVisitor: function(node) {
  48611. var $async$goto = 0,
  48612. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48613. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  48614. var $async$visitImportRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48615. if ($async$errorCode === 1)
  48616. return P._asyncRethrow($async$result, $async$completer);
  48617. while (true)
  48618. switch ($async$goto) {
  48619. case 0:
  48620. // Function start
  48621. t1 = node.imports, t2 = t1.length, t3 = type$.legacy_StaticImport, _i = 0;
  48622. case 3:
  48623. // for condition
  48624. if (!(_i < t2)) {
  48625. // goto after for
  48626. $async$goto = 5;
  48627. break;
  48628. }
  48629. $import = t1[_i];
  48630. $async$goto = $import instanceof B.DynamicImport ? 6 : 8;
  48631. break;
  48632. case 6:
  48633. // then
  48634. $async$goto = 9;
  48635. return P._asyncAwait($async$self._async_evaluate$_visitDynamicImport$1($import), $async$visitImportRule$1);
  48636. case 9:
  48637. // returning from await.
  48638. // goto join
  48639. $async$goto = 7;
  48640. break;
  48641. case 8:
  48642. // else
  48643. $async$goto = 10;
  48644. return P._asyncAwait($async$self._visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  48645. case 10:
  48646. // returning from await.
  48647. case 7:
  48648. // join
  48649. case 4:
  48650. // for update
  48651. ++_i;
  48652. // goto for condition
  48653. $async$goto = 3;
  48654. break;
  48655. case 5:
  48656. // after for
  48657. $async$returnValue = null;
  48658. // goto return
  48659. $async$goto = 1;
  48660. break;
  48661. case 1:
  48662. // return
  48663. return P._asyncReturn($async$returnValue, $async$completer);
  48664. }
  48665. });
  48666. return P._asyncStartSync($async$visitImportRule$1, $async$completer);
  48667. },
  48668. _async_evaluate$_visitDynamicImport$1: function($import) {
  48669. return this._async_evaluate$_withStackFrame$1$3("@import", $import, new E._EvaluateVisitor__visitDynamicImport_closure0(this, $import), type$.void);
  48670. },
  48671. _async_evaluate$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  48672. return this._loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport);
  48673. },
  48674. _async_evaluate$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  48675. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  48676. },
  48677. _async_evaluate$_loadStylesheet$3$forImport: function(url, span, forImport) {
  48678. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  48679. },
  48680. _loadStylesheet$body$_EvaluateVisitor: function(url, span, baseUrl, forImport) {
  48681. var $async$goto = 0,
  48682. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet),
  48683. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, tuple, error, error0, message, t1, t2, t3, exception, $async$exception;
  48684. var $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48685. if ($async$errorCode === 1) {
  48686. $async$currentError = $async$result;
  48687. $async$goto = $async$handler;
  48688. }
  48689. while (true)
  48690. switch ($async$goto) {
  48691. case 0:
  48692. // Function start
  48693. $async$handler = 4;
  48694. $async$self._async_evaluate$_importSpan = span;
  48695. t1 = P.Uri_parse(url);
  48696. t2 = $async$self._async_evaluate$_importer;
  48697. if (baseUrl == null) {
  48698. t3 = $async$self._async_evaluate$_stylesheet;
  48699. t3 = t3 == null ? null : t3.span;
  48700. t3 = t3 == null ? null : t3.file.url;
  48701. } else
  48702. t3 = baseUrl;
  48703. $async$goto = 7;
  48704. return P._asyncAwait($async$self._async_evaluate$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
  48705. case 7:
  48706. // returning from await.
  48707. tuple = $async$result;
  48708. if (tuple != null) {
  48709. $async$returnValue = tuple;
  48710. $async$next = [1];
  48711. // goto finally
  48712. $async$goto = 5;
  48713. break;
  48714. }
  48715. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  48716. throw H.wrapException(string$.x22packa);
  48717. else
  48718. throw H.wrapException("Can't find stylesheet to import.");
  48719. $async$next.push(6);
  48720. // goto finally
  48721. $async$goto = 5;
  48722. break;
  48723. case 4:
  48724. // catch
  48725. $async$handler = 3;
  48726. $async$exception = $async$currentError;
  48727. t1 = H.unwrapException($async$exception);
  48728. if (t1 instanceof E.SassException) {
  48729. error = t1;
  48730. t1 = $async$self._async_evaluate$_exception$2(error._span_exception$_message, error.get$span());
  48731. throw H.wrapException(t1);
  48732. } else {
  48733. error0 = t1;
  48734. message = null;
  48735. try {
  48736. message = H._asStringS(J.get$message$x(error0));
  48737. } catch (exception) {
  48738. H.unwrapException($async$exception);
  48739. message = J.toString$0$(error0);
  48740. }
  48741. t1 = $async$self._async_evaluate$_exception$1(message);
  48742. throw H.wrapException(t1);
  48743. }
  48744. $async$next.push(6);
  48745. // goto finally
  48746. $async$goto = 5;
  48747. break;
  48748. case 3:
  48749. // uncaught
  48750. $async$next = [2];
  48751. case 5:
  48752. // finally
  48753. $async$handler = 2;
  48754. $async$self._async_evaluate$_importSpan = null;
  48755. // goto the next finally handler
  48756. $async$goto = $async$next.pop();
  48757. break;
  48758. case 6:
  48759. // after finally
  48760. case 1:
  48761. // return
  48762. return P._asyncReturn($async$returnValue, $async$completer);
  48763. case 2:
  48764. // rethrow
  48765. return P._asyncRethrow($async$currentError, $async$completer);
  48766. }
  48767. });
  48768. return P._asyncStartSync($async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  48769. },
  48770. _visitStaticImport$1: function($import) {
  48771. return this._visitStaticImport$body$_EvaluateVisitor($import);
  48772. },
  48773. _visitStaticImport$body$_EvaluateVisitor: function($import) {
  48774. var $async$goto = 0,
  48775. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  48776. $async$returnValue, $async$self = this, resolvedSupports, t1, mediaQuery, node, t2, url, supports, $async$temp1, $async$temp2;
  48777. var $async$_visitStaticImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48778. if ($async$errorCode === 1)
  48779. return P._asyncRethrow($async$result, $async$completer);
  48780. while (true)
  48781. switch ($async$goto) {
  48782. case 0:
  48783. // Function start
  48784. $async$goto = 3;
  48785. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$1($import.url), $async$_visitStaticImport$1);
  48786. case 3:
  48787. // returning from await.
  48788. url = $async$result;
  48789. supports = $import.supports;
  48790. $async$goto = supports instanceof L.SupportsDeclaration ? 4 : 6;
  48791. break;
  48792. case 4:
  48793. // then
  48794. $async$temp1 = H;
  48795. $async$goto = 7;
  48796. return P._asyncAwait($async$self._evaluateToCss$1(supports.name), $async$_visitStaticImport$1);
  48797. case 7:
  48798. // returning from await.
  48799. $async$temp1 = $async$temp1.S($async$result) + ": ";
  48800. $async$temp2 = H;
  48801. $async$goto = 8;
  48802. return P._asyncAwait($async$self._evaluateToCss$1(supports.value), $async$_visitStaticImport$1);
  48803. case 8:
  48804. // returning from await.
  48805. resolvedSupports = $async$temp1 + $async$temp2.S($async$result);
  48806. // goto join
  48807. $async$goto = 5;
  48808. break;
  48809. case 6:
  48810. // else
  48811. $async$goto = supports == null ? 9 : 11;
  48812. break;
  48813. case 9:
  48814. // then
  48815. $async$result = null;
  48816. // goto join
  48817. $async$goto = 10;
  48818. break;
  48819. case 11:
  48820. // else
  48821. $async$goto = 12;
  48822. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(supports), $async$_visitStaticImport$1);
  48823. case 12:
  48824. // returning from await.
  48825. case 10:
  48826. // join
  48827. resolvedSupports = $async$result;
  48828. case 5:
  48829. // join
  48830. t1 = $import.media;
  48831. $async$goto = t1 == null ? 13 : 15;
  48832. break;
  48833. case 13:
  48834. // then
  48835. $async$result = null;
  48836. // goto join
  48837. $async$goto = 14;
  48838. break;
  48839. case 15:
  48840. // else
  48841. $async$goto = 16;
  48842. return P._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(t1), $async$_visitStaticImport$1);
  48843. case 16:
  48844. // returning from await.
  48845. case 14:
  48846. // join
  48847. mediaQuery = $async$result;
  48848. t1 = $import.span;
  48849. node = F.ModifiableCssImport$(url, t1, mediaQuery, resolvedSupports == null ? null : new F.CssValue("supports(" + resolvedSupports + ")", supports.get$span(), type$.CssValue_legacy_String));
  48850. t1 = $async$self._async_evaluate$_parent;
  48851. t2 = $async$self._async_evaluate$_root;
  48852. if (t1 != t2)
  48853. t1.addChild$1(node);
  48854. else if ($async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  48855. $async$self._async_evaluate$_root.addChild$1(node);
  48856. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  48857. } else {
  48858. t1 = $async$self._async_evaluate$_outOfOrderImports;
  48859. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t1).push(node);
  48860. }
  48861. $async$returnValue = null;
  48862. // goto return
  48863. $async$goto = 1;
  48864. break;
  48865. case 1:
  48866. // return
  48867. return P._asyncReturn($async$returnValue, $async$completer);
  48868. }
  48869. });
  48870. return P._asyncStartSync($async$_visitStaticImport$1, $async$completer);
  48871. },
  48872. visitIncludeRule$1: function(node) {
  48873. return this.visitIncludeRule$body$_EvaluateVisitor(node);
  48874. },
  48875. visitIncludeRule$body$_EvaluateVisitor: function(node) {
  48876. var $async$goto = 0,
  48877. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48878. $async$returnValue, $async$self = this, nodeWithSpan, t1, t2, contentCallable, mixin;
  48879. var $async$visitIncludeRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48880. if ($async$errorCode === 1)
  48881. return P._asyncRethrow($async$result, $async$completer);
  48882. while (true)
  48883. switch ($async$goto) {
  48884. case 0:
  48885. // Function start
  48886. mixin = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitIncludeRule_closure2($async$self, node));
  48887. if (mixin == null)
  48888. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined mixin.", node.span));
  48889. nodeWithSpan = new B._FakeAstNode(new E._EvaluateVisitor_visitIncludeRule_closure3(node));
  48890. $async$goto = type$.legacy_AsyncBuiltInCallable._is(mixin) ? 3 : 5;
  48891. break;
  48892. case 3:
  48893. // then
  48894. if (node.content != null)
  48895. throw H.wrapException($async$self._async_evaluate$_exception$2("Mixin doesn't accept a content block.", node.span));
  48896. $async$goto = 6;
  48897. return P._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
  48898. case 6:
  48899. // returning from await.
  48900. // goto join
  48901. $async$goto = 4;
  48902. break;
  48903. case 5:
  48904. // else
  48905. $async$goto = type$.legacy_UserDefinedCallable_legacy_AsyncEnvironment._is(mixin) ? 7 : 9;
  48906. break;
  48907. case 7:
  48908. // then
  48909. t1 = node.content;
  48910. t2 = t1 == null;
  48911. if (!t2 && !type$.legacy_MixinRule._as(mixin.declaration).hasContent)
  48912. throw H.wrapException(E.MultiSpanSassRuntimeException$("Mixin doesn't accept a content block.", node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate$_stackTrace$1(node.get$spanWithoutContent())));
  48913. contentCallable = t2 ? null : new E.UserDefinedCallable(t1, $async$self._async_evaluate$_environment.closure$0(), type$.UserDefinedCallable_legacy_AsyncEnvironment);
  48914. $async$goto = 10;
  48915. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new E._EvaluateVisitor_visitIncludeRule_closure4($async$self, contentCallable, mixin, nodeWithSpan)), $async$visitIncludeRule$1);
  48916. case 10:
  48917. // returning from await.
  48918. // goto join
  48919. $async$goto = 8;
  48920. break;
  48921. case 9:
  48922. // else
  48923. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  48924. case 8:
  48925. // join
  48926. case 4:
  48927. // join
  48928. $async$returnValue = null;
  48929. // goto return
  48930. $async$goto = 1;
  48931. break;
  48932. case 1:
  48933. // return
  48934. return P._asyncReturn($async$returnValue, $async$completer);
  48935. }
  48936. });
  48937. return P._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  48938. },
  48939. visitMixinRule$1: function(node) {
  48940. return this.visitMixinRule$body$_EvaluateVisitor(node);
  48941. },
  48942. visitMixinRule$body$_EvaluateVisitor: function(node) {
  48943. var $async$goto = 0,
  48944. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48945. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  48946. var $async$visitMixinRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48947. if ($async$errorCode === 1)
  48948. return P._asyncRethrow($async$result, $async$completer);
  48949. while (true)
  48950. switch ($async$goto) {
  48951. case 0:
  48952. // Function start
  48953. t1 = $async$self._async_evaluate$_environment;
  48954. t2 = t1.closure$0();
  48955. t3 = t1._async_environment$_mixins;
  48956. index = t3.length - 1;
  48957. t4 = node.name;
  48958. t1._async_environment$_mixinIndices.$indexSet(0, t4, index);
  48959. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_legacy_AsyncEnvironment));
  48960. $async$returnValue = null;
  48961. // goto return
  48962. $async$goto = 1;
  48963. break;
  48964. case 1:
  48965. // return
  48966. return P._asyncReturn($async$returnValue, $async$completer);
  48967. }
  48968. });
  48969. return P._asyncStartSync($async$visitMixinRule$1, $async$completer);
  48970. },
  48971. visitLoudComment$1: function(node) {
  48972. return this.visitLoudComment$body$_EvaluateVisitor(node);
  48973. },
  48974. visitLoudComment$body$_EvaluateVisitor: function(node) {
  48975. var $async$goto = 0,
  48976. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  48977. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  48978. var $async$visitLoudComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48979. if ($async$errorCode === 1)
  48980. return P._asyncRethrow($async$result, $async$completer);
  48981. while (true)
  48982. switch ($async$goto) {
  48983. case 0:
  48984. // Function start
  48985. if ($async$self._async_evaluate$_inFunction) {
  48986. $async$returnValue = null;
  48987. // goto return
  48988. $async$goto = 1;
  48989. break;
  48990. }
  48991. t1 = $async$self._async_evaluate$_parent;
  48992. t2 = $async$self._async_evaluate$_root;
  48993. if (t1 == t2 && $async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  48994. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  48995. t1 = node.text;
  48996. $async$temp1 = $async$self._async_evaluate$_parent;
  48997. $async$temp2 = R;
  48998. $async$goto = 3;
  48999. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$visitLoudComment$1);
  49000. case 3:
  49001. // returning from await.
  49002. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment($async$result, t1.span));
  49003. $async$returnValue = null;
  49004. // goto return
  49005. $async$goto = 1;
  49006. break;
  49007. case 1:
  49008. // return
  49009. return P._asyncReturn($async$returnValue, $async$completer);
  49010. }
  49011. });
  49012. return P._asyncStartSync($async$visitLoudComment$1, $async$completer);
  49013. },
  49014. visitMediaRule$1: function(node) {
  49015. return this.visitMediaRule$body$_EvaluateVisitor(node);
  49016. },
  49017. visitMediaRule$body$_EvaluateVisitor: function(node) {
  49018. var $async$goto = 0,
  49019. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49020. $async$returnValue, $async$self = this, queries, t1, mergedQueries;
  49021. var $async$visitMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49022. if ($async$errorCode === 1)
  49023. return P._asyncRethrow($async$result, $async$completer);
  49024. while (true)
  49025. switch ($async$goto) {
  49026. case 0:
  49027. // Function start
  49028. if ($async$self._async_evaluate$_declarationName != null)
  49029. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
  49030. $async$goto = 3;
  49031. return P._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  49032. case 3:
  49033. // returning from await.
  49034. queries = $async$result;
  49035. t1 = $async$self._async_evaluate$_mediaQueries;
  49036. mergedQueries = t1 == null ? null : $async$self._async_evaluate$_mergeMediaQueries$2(t1, queries);
  49037. t1 = mergedQueries == null;
  49038. if (!t1 && mergedQueries.length === 0) {
  49039. $async$returnValue = null;
  49040. // goto return
  49041. $async$goto = 1;
  49042. break;
  49043. }
  49044. t1 = t1 ? queries : mergedQueries;
  49045. $async$goto = 4;
  49046. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new E._EvaluateVisitor_visitMediaRule_closure1($async$self, mergedQueries, queries, node), node.hasDeclarations, new E._EvaluateVisitor_visitMediaRule_closure2(mergedQueries), type$.legacy_ModifiableCssMediaRule, type$.Null), $async$visitMediaRule$1);
  49047. case 4:
  49048. // returning from await.
  49049. $async$returnValue = null;
  49050. // goto return
  49051. $async$goto = 1;
  49052. break;
  49053. case 1:
  49054. // return
  49055. return P._asyncReturn($async$returnValue, $async$completer);
  49056. }
  49057. });
  49058. return P._asyncStartSync($async$visitMediaRule$1, $async$completer);
  49059. },
  49060. _async_evaluate$_visitMediaQueries$1: function(interpolation) {
  49061. return this._visitMediaQueries$body$_EvaluateVisitor(interpolation);
  49062. },
  49063. _visitMediaQueries$body$_EvaluateVisitor: function(interpolation) {
  49064. var $async$goto = 0,
  49065. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_List_legacy_CssMediaQuery),
  49066. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  49067. var $async$_async_evaluate$_visitMediaQueries$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49068. if ($async$errorCode === 1)
  49069. return P._asyncRethrow($async$result, $async$completer);
  49070. while (true)
  49071. switch ($async$goto) {
  49072. case 0:
  49073. // Function start
  49074. $async$temp1 = interpolation;
  49075. $async$temp2 = E;
  49076. $async$goto = 3;
  49077. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate$_visitMediaQueries$1);
  49078. case 3:
  49079. // returning from await.
  49080. $async$returnValue = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure0($async$self, $async$result));
  49081. // goto return
  49082. $async$goto = 1;
  49083. break;
  49084. case 1:
  49085. // return
  49086. return P._asyncReturn($async$returnValue, $async$completer);
  49087. }
  49088. });
  49089. return P._asyncStartSync($async$_async_evaluate$_visitMediaQueries$1, $async$completer);
  49090. },
  49091. _async_evaluate$_mergeMediaQueries$2: function(queries1, queries2) {
  49092. var t1, t2, t3, t4, t5, result,
  49093. queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery);
  49094. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.legacy_MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
  49095. t4 = t1.get$current(t1);
  49096. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  49097. result = t4.merge$1(t5.get$current(t5));
  49098. if (result === C._SingletonCssMediaQueryMergeResult_empty)
  49099. continue;
  49100. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable)
  49101. return null;
  49102. queries.push(t3._as(result).query);
  49103. }
  49104. }
  49105. return queries;
  49106. },
  49107. visitReturnRule$1: function(node) {
  49108. return node.expression.accept$1(this);
  49109. },
  49110. visitSilentComment$1: function(node) {
  49111. return this.visitSilentComment$body$_EvaluateVisitor(node);
  49112. },
  49113. visitSilentComment$body$_EvaluateVisitor: function(node) {
  49114. var $async$goto = 0,
  49115. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49116. $async$returnValue;
  49117. var $async$visitSilentComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49118. if ($async$errorCode === 1)
  49119. return P._asyncRethrow($async$result, $async$completer);
  49120. while (true)
  49121. switch ($async$goto) {
  49122. case 0:
  49123. // Function start
  49124. $async$returnValue = null;
  49125. // goto return
  49126. $async$goto = 1;
  49127. break;
  49128. case 1:
  49129. // return
  49130. return P._asyncReturn($async$returnValue, $async$completer);
  49131. }
  49132. });
  49133. return P._asyncStartSync($async$visitSilentComment$1, $async$completer);
  49134. },
  49135. visitStyleRule$1: function(node) {
  49136. return this.visitStyleRule$body$_EvaluateVisitor(node);
  49137. },
  49138. visitStyleRule$body$_EvaluateVisitor: function(node) {
  49139. var $async$goto = 0,
  49140. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49141. $async$returnValue, $async$self = this, t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, t1;
  49142. var $async$visitStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49143. if ($async$errorCode === 1)
  49144. return P._asyncRethrow($async$result, $async$completer);
  49145. while (true)
  49146. switch ($async$goto) {
  49147. case 0:
  49148. // Function start
  49149. t1 = {};
  49150. if ($async$self._async_evaluate$_declarationName != null)
  49151. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Style_, node.span));
  49152. t2 = node.selector;
  49153. $async$goto = 3;
  49154. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t2, true, true), $async$visitStyleRule$1);
  49155. case 3:
  49156. // returning from await.
  49157. selectorText = $async$result;
  49158. $async$goto = $async$self._async_evaluate$_inKeyframes ? 4 : 5;
  49159. break;
  49160. case 4:
  49161. // then
  49162. t1 = P.List_List$unmodifiable($async$self._async_evaluate$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure6($async$self, selectorText)), type$.legacy_String);
  49163. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  49164. $async$goto = 6;
  49165. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(new F.CssValue(t1, t2.span, type$.CssValue_legacy_List_legacy_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode), t3), new E._EvaluateVisitor_visitStyleRule_closure7($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure8(), type$.legacy_ModifiableCssKeyframeBlock, type$.Null), $async$visitStyleRule$1);
  49166. case 6:
  49167. // returning from await.
  49168. $async$returnValue = null;
  49169. // goto return
  49170. $async$goto = 1;
  49171. break;
  49172. case 5:
  49173. // join
  49174. t1.parsedSelector = $async$self._async_evaluate$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure9($async$self, selectorText));
  49175. parsedSelector = $async$self._async_evaluate$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitStyleRule_closure10(t1, $async$self));
  49176. t1.parsedSelector = parsedSelector;
  49177. rule = X.ModifiableCssStyleRule$($async$self._async_evaluate$_extender.addSelector$3(parsedSelector, t2.span, $async$self._async_evaluate$_mediaQueries), node.span, t1.parsedSelector);
  49178. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  49179. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  49180. $async$goto = 7;
  49181. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitStyleRule_closure11($async$self, rule, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure12(), type$.legacy_ModifiableCssStyleRule, type$.Null), $async$visitStyleRule$1);
  49182. case 7:
  49183. // returning from await.
  49184. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  49185. if (!($async$self._async_evaluate$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  49186. t1 = $async$self._async_evaluate$_parent.children;
  49187. t1 = !t1.get$isEmpty(t1);
  49188. } else
  49189. t1 = false;
  49190. if (t1) {
  49191. t1 = $async$self._async_evaluate$_parent.children;
  49192. t1.get$last(t1).isGroupEnd = true;
  49193. }
  49194. $async$returnValue = null;
  49195. // goto return
  49196. $async$goto = 1;
  49197. break;
  49198. case 1:
  49199. // return
  49200. return P._asyncReturn($async$returnValue, $async$completer);
  49201. }
  49202. });
  49203. return P._asyncStartSync($async$visitStyleRule$1, $async$completer);
  49204. },
  49205. visitSupportsRule$1: function(node) {
  49206. return this.visitSupportsRule$body$_EvaluateVisitor(node);
  49207. },
  49208. visitSupportsRule$body$_EvaluateVisitor: function(node) {
  49209. var $async$goto = 0,
  49210. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49211. $async$returnValue, $async$self = this, t1, t2, t3;
  49212. var $async$visitSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49213. if ($async$errorCode === 1)
  49214. return P._asyncRethrow($async$result, $async$completer);
  49215. while (true)
  49216. switch ($async$goto) {
  49217. case 0:
  49218. // Function start
  49219. if ($async$self._async_evaluate$_declarationName != null)
  49220. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
  49221. t1 = node.condition;
  49222. $async$goto = 3;
  49223. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  49224. case 3:
  49225. // returning from await.
  49226. t2 = $async$result;
  49227. t1 = t1.get$span();
  49228. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  49229. $async$goto = 4;
  49230. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(new F.CssValue(t2, t1, type$.CssValue_legacy_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode), t3), new E._EvaluateVisitor_visitSupportsRule_closure1($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitSupportsRule_closure2(), type$.legacy_ModifiableCssSupportsRule, type$.Null), $async$visitSupportsRule$1);
  49231. case 4:
  49232. // returning from await.
  49233. $async$returnValue = null;
  49234. // goto return
  49235. $async$goto = 1;
  49236. break;
  49237. case 1:
  49238. // return
  49239. return P._asyncReturn($async$returnValue, $async$completer);
  49240. }
  49241. });
  49242. return P._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  49243. },
  49244. _async_evaluate$_visitSupportsCondition$1: function(condition) {
  49245. return this._visitSupportsCondition$body$_EvaluateVisitor(condition);
  49246. },
  49247. _visitSupportsCondition$body$_EvaluateVisitor: function(condition) {
  49248. var $async$goto = 0,
  49249. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  49250. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  49251. var $async$_async_evaluate$_visitSupportsCondition$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49252. if ($async$errorCode === 1)
  49253. return P._asyncRethrow($async$result, $async$completer);
  49254. while (true)
  49255. switch ($async$goto) {
  49256. case 0:
  49257. // Function start
  49258. $async$goto = condition instanceof U.SupportsOperation ? 3 : 5;
  49259. break;
  49260. case 3:
  49261. // then
  49262. t1 = condition.left;
  49263. t2 = condition.operator;
  49264. $async$temp1 = H;
  49265. $async$goto = 6;
  49266. return P._asyncAwait($async$self._async_evaluate$_parenthesize$2(t1, t2), $async$_async_evaluate$_visitSupportsCondition$1);
  49267. case 6:
  49268. // returning from await.
  49269. $async$temp1 = $async$temp1.S($async$result) + " " + t2 + " ";
  49270. $async$temp2 = H;
  49271. $async$goto = 7;
  49272. return P._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.right, t2), $async$_async_evaluate$_visitSupportsCondition$1);
  49273. case 7:
  49274. // returning from await.
  49275. $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
  49276. // goto return
  49277. $async$goto = 1;
  49278. break;
  49279. // goto join
  49280. $async$goto = 4;
  49281. break;
  49282. case 5:
  49283. // else
  49284. $async$goto = condition instanceof M.SupportsNegation ? 8 : 10;
  49285. break;
  49286. case 8:
  49287. // then
  49288. $async$temp1 = H;
  49289. $async$goto = 11;
  49290. return P._asyncAwait($async$self._async_evaluate$_parenthesize$1(condition.condition), $async$_async_evaluate$_visitSupportsCondition$1);
  49291. case 11:
  49292. // returning from await.
  49293. $async$returnValue = "not " + $async$temp1.S($async$result);
  49294. // goto return
  49295. $async$goto = 1;
  49296. break;
  49297. // goto join
  49298. $async$goto = 9;
  49299. break;
  49300. case 10:
  49301. // else
  49302. $async$goto = condition instanceof X.SupportsInterpolation ? 12 : 14;
  49303. break;
  49304. case 12:
  49305. // then
  49306. $async$goto = 15;
  49307. return P._asyncAwait($async$self._evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate$_visitSupportsCondition$1);
  49308. case 15:
  49309. // returning from await.
  49310. $async$returnValue = $async$result;
  49311. // goto return
  49312. $async$goto = 1;
  49313. break;
  49314. // goto join
  49315. $async$goto = 13;
  49316. break;
  49317. case 14:
  49318. // else
  49319. $async$goto = condition instanceof L.SupportsDeclaration ? 16 : 18;
  49320. break;
  49321. case 16:
  49322. // then
  49323. $async$temp1 = H;
  49324. $async$goto = 19;
  49325. return P._asyncAwait($async$self._evaluateToCss$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
  49326. case 19:
  49327. // returning from await.
  49328. $async$temp1 = "(" + $async$temp1.S($async$result) + ": ";
  49329. $async$temp2 = H;
  49330. $async$goto = 20;
  49331. return P._asyncAwait($async$self._evaluateToCss$1(condition.value), $async$_async_evaluate$_visitSupportsCondition$1);
  49332. case 20:
  49333. // returning from await.
  49334. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  49335. // goto return
  49336. $async$goto = 1;
  49337. break;
  49338. // goto join
  49339. $async$goto = 17;
  49340. break;
  49341. case 18:
  49342. // else
  49343. $async$returnValue = null;
  49344. // goto return
  49345. $async$goto = 1;
  49346. break;
  49347. case 17:
  49348. // join
  49349. case 13:
  49350. // join
  49351. case 9:
  49352. // join
  49353. case 4:
  49354. // join
  49355. case 1:
  49356. // return
  49357. return P._asyncReturn($async$returnValue, $async$completer);
  49358. }
  49359. });
  49360. return P._asyncStartSync($async$_async_evaluate$_visitSupportsCondition$1, $async$completer);
  49361. },
  49362. _async_evaluate$_parenthesize$2: function(condition, operator) {
  49363. return this._parenthesize$body$_EvaluateVisitor(condition, operator);
  49364. },
  49365. _async_evaluate$_parenthesize$1: function(condition) {
  49366. return this._async_evaluate$_parenthesize$2(condition, null);
  49367. },
  49368. _parenthesize$body$_EvaluateVisitor: function(condition, operator) {
  49369. var $async$goto = 0,
  49370. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  49371. $async$returnValue, $async$self = this, t1, $async$temp1;
  49372. var $async$_async_evaluate$_parenthesize$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49373. if ($async$errorCode === 1)
  49374. return P._asyncRethrow($async$result, $async$completer);
  49375. while (true)
  49376. switch ($async$goto) {
  49377. case 0:
  49378. // Function start
  49379. if (!(condition instanceof M.SupportsNegation))
  49380. if (condition instanceof U.SupportsOperation)
  49381. t1 = operator == null || operator !== condition.operator;
  49382. else
  49383. t1 = false;
  49384. else
  49385. t1 = true;
  49386. $async$goto = t1 ? 3 : 5;
  49387. break;
  49388. case 3:
  49389. // then
  49390. $async$temp1 = H;
  49391. $async$goto = 6;
  49392. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  49393. case 6:
  49394. // returning from await.
  49395. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  49396. // goto return
  49397. $async$goto = 1;
  49398. break;
  49399. // goto join
  49400. $async$goto = 4;
  49401. break;
  49402. case 5:
  49403. // else
  49404. $async$goto = 7;
  49405. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  49406. case 7:
  49407. // returning from await.
  49408. $async$returnValue = $async$result;
  49409. // goto return
  49410. $async$goto = 1;
  49411. break;
  49412. case 4:
  49413. // join
  49414. case 1:
  49415. // return
  49416. return P._asyncReturn($async$returnValue, $async$completer);
  49417. }
  49418. });
  49419. return P._asyncStartSync($async$_async_evaluate$_parenthesize$2, $async$completer);
  49420. },
  49421. visitVariableDeclaration$1: function(node) {
  49422. return this.visitVariableDeclaration$body$_EvaluateVisitor(node);
  49423. },
  49424. visitVariableDeclaration$body$_EvaluateVisitor: function(node) {
  49425. var $async$goto = 0,
  49426. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49427. $async$returnValue, $async$self = this, t1, value, t2, $async$temp1, $async$temp2, $async$temp3;
  49428. var $async$visitVariableDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49429. if ($async$errorCode === 1)
  49430. return P._asyncRethrow($async$result, $async$completer);
  49431. while (true)
  49432. switch ($async$goto) {
  49433. case 0:
  49434. // Function start
  49435. if (node.isGuarded) {
  49436. if (node.namespace == null && $async$self._async_evaluate$_environment._async_environment$_variables.length === 1) {
  49437. t1 = $async$self._async_evaluate$_configuration._values;
  49438. t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
  49439. if (t1 != null) {
  49440. $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure2($async$self, node, t1));
  49441. $async$returnValue = null;
  49442. // goto return
  49443. $async$goto = 1;
  49444. break;
  49445. }
  49446. }
  49447. value = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure3($async$self, node));
  49448. if (value != null && !value.$eq(0, C.C_SassNull0)) {
  49449. $async$returnValue = null;
  49450. // goto return
  49451. $async$goto = 1;
  49452. break;
  49453. }
  49454. }
  49455. if (node.isGlobal && !$async$self._async_evaluate$_environment.globalVariableExists$1(node.name)) {
  49456. t1 = $async$self._async_evaluate$_environment._async_environment$_variables.length === 1 ? string$.As_of_S : string$.As_of_C + B.declarationName(node.span) + ": null` at the root of the\nstylesheet.";
  49457. t2 = node.span;
  49458. $async$self._async_evaluate$_logger.warn$4$deprecation$span$trace(t1, true, t2, $async$self._async_evaluate$_stackTrace$1(t2));
  49459. }
  49460. $async$temp1 = node;
  49461. $async$temp2 = E;
  49462. $async$temp3 = node;
  49463. $async$goto = 3;
  49464. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitVariableDeclaration$1);
  49465. case 3:
  49466. // returning from await.
  49467. $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure4($async$self, $async$temp3, $async$result.withoutSlash$0()));
  49468. $async$returnValue = null;
  49469. // goto return
  49470. $async$goto = 1;
  49471. break;
  49472. case 1:
  49473. // return
  49474. return P._asyncReturn($async$returnValue, $async$completer);
  49475. }
  49476. });
  49477. return P._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  49478. },
  49479. visitUseRule$1: function(node) {
  49480. return this.visitUseRule$body$_EvaluateVisitor(node);
  49481. },
  49482. visitUseRule$body$_EvaluateVisitor: function(node) {
  49483. var $async$goto = 0,
  49484. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49485. $async$returnValue, $async$self = this, configuration, t3, _i, variable, t4, t5, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  49486. var $async$visitUseRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49487. if ($async$errorCode === 1)
  49488. return P._asyncRethrow($async$result, $async$completer);
  49489. while (true)
  49490. switch ($async$goto) {
  49491. case 0:
  49492. // Function start
  49493. t1 = node.configuration;
  49494. t2 = t1.length;
  49495. $async$goto = t2 === 0 ? 3 : 5;
  49496. break;
  49497. case 3:
  49498. // then
  49499. configuration = C.Configuration_Map_empty_null_true;
  49500. // goto join
  49501. $async$goto = 4;
  49502. break;
  49503. case 5:
  49504. // else
  49505. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue);
  49506. _i = 0;
  49507. case 6:
  49508. // for condition
  49509. if (!(_i < t2)) {
  49510. // goto after for
  49511. $async$goto = 8;
  49512. break;
  49513. }
  49514. variable = t1[_i];
  49515. t4 = variable.name;
  49516. t5 = variable.expression;
  49517. $async$temp1 = t3;
  49518. $async$temp2 = t4;
  49519. $async$temp3 = Z;
  49520. $async$goto = 9;
  49521. return P._asyncAwait(t5.accept$1($async$self), $async$visitUseRule$1);
  49522. case 9:
  49523. // returning from await.
  49524. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate$_expressionNode$1(t5)));
  49525. case 7:
  49526. // for update
  49527. ++_i;
  49528. // goto for condition
  49529. $async$goto = 6;
  49530. break;
  49531. case 8:
  49532. // after for
  49533. configuration = new A.Configuration(t3, node, false);
  49534. case 4:
  49535. // join
  49536. $async$goto = 10;
  49537. return P._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(node.url, "@use", node, new E._EvaluateVisitor_visitUseRule_closure0($async$self, node), configuration), $async$visitUseRule$1);
  49538. case 10:
  49539. // returning from await.
  49540. $async$self._async_evaluate$_assertConfigurationIsEmpty$1(configuration);
  49541. $async$returnValue = null;
  49542. // goto return
  49543. $async$goto = 1;
  49544. break;
  49545. case 1:
  49546. // return
  49547. return P._asyncReturn($async$returnValue, $async$completer);
  49548. }
  49549. });
  49550. return P._asyncStartSync($async$visitUseRule$1, $async$completer);
  49551. },
  49552. visitWarnRule$1: function(node) {
  49553. return this.visitWarnRule$body$_EvaluateVisitor(node);
  49554. },
  49555. visitWarnRule$body$_EvaluateVisitor: function(node) {
  49556. var $async$goto = 0,
  49557. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49558. $async$returnValue, $async$self = this, value, t1;
  49559. var $async$visitWarnRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49560. if ($async$errorCode === 1)
  49561. return P._asyncRethrow($async$result, $async$completer);
  49562. while (true)
  49563. switch ($async$goto) {
  49564. case 0:
  49565. // Function start
  49566. $async$goto = 3;
  49567. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitWarnRule_closure0($async$self, node), type$.legacy_Value), $async$visitWarnRule$1);
  49568. case 3:
  49569. // returning from await.
  49570. value = $async$result;
  49571. t1 = value instanceof D.SassString ? value.text : $async$self._async_evaluate$_serialize$2(value, node.expression);
  49572. $async$self._async_evaluate$_logger.warn$2$trace(t1, $async$self._async_evaluate$_stackTrace$1(node.span));
  49573. $async$returnValue = null;
  49574. // goto return
  49575. $async$goto = 1;
  49576. break;
  49577. case 1:
  49578. // return
  49579. return P._asyncReturn($async$returnValue, $async$completer);
  49580. }
  49581. });
  49582. return P._asyncStartSync($async$visitWarnRule$1, $async$completer);
  49583. },
  49584. visitWhileRule$1: function(node) {
  49585. return this._async_evaluate$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitWhileRule_closure0(this, node), true, node.hasDeclarations, type$.legacy_Value);
  49586. },
  49587. visitBinaryOperationExpression$1: function(node) {
  49588. return this._addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitBinaryOperationExpression_closure0(this, node), type$.legacy_Value);
  49589. },
  49590. visitValueExpression$1: function(node) {
  49591. return this.visitValueExpression$body$_EvaluateVisitor(node);
  49592. },
  49593. visitValueExpression$body$_EvaluateVisitor: function(node) {
  49594. var $async$goto = 0,
  49595. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49596. $async$returnValue;
  49597. var $async$visitValueExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49598. if ($async$errorCode === 1)
  49599. return P._asyncRethrow($async$result, $async$completer);
  49600. while (true)
  49601. switch ($async$goto) {
  49602. case 0:
  49603. // Function start
  49604. $async$returnValue = node.value;
  49605. // goto return
  49606. $async$goto = 1;
  49607. break;
  49608. case 1:
  49609. // return
  49610. return P._asyncReturn($async$returnValue, $async$completer);
  49611. }
  49612. });
  49613. return P._asyncStartSync($async$visitValueExpression$1, $async$completer);
  49614. },
  49615. visitVariableExpression$1: function(node) {
  49616. return this.visitVariableExpression$body$_EvaluateVisitor(node);
  49617. },
  49618. visitVariableExpression$body$_EvaluateVisitor: function(node) {
  49619. var $async$goto = 0,
  49620. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49621. $async$returnValue, $async$self = this, result;
  49622. var $async$visitVariableExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49623. if ($async$errorCode === 1)
  49624. return P._asyncRethrow($async$result, $async$completer);
  49625. while (true)
  49626. switch ($async$goto) {
  49627. case 0:
  49628. // Function start
  49629. result = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableExpression_closure0($async$self, node));
  49630. if (result != null) {
  49631. $async$returnValue = result;
  49632. // goto return
  49633. $async$goto = 1;
  49634. break;
  49635. }
  49636. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined variable.", node.span));
  49637. case 1:
  49638. // return
  49639. return P._asyncReturn($async$returnValue, $async$completer);
  49640. }
  49641. });
  49642. return P._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  49643. },
  49644. visitUnaryOperationExpression$1: function(node) {
  49645. return this.visitUnaryOperationExpression$body$_EvaluateVisitor(node);
  49646. },
  49647. visitUnaryOperationExpression$body$_EvaluateVisitor: function(node) {
  49648. var $async$goto = 0,
  49649. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49650. $async$returnValue, $async$self = this, operand, t1;
  49651. var $async$visitUnaryOperationExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49652. if ($async$errorCode === 1)
  49653. return P._asyncRethrow($async$result, $async$completer);
  49654. while (true)
  49655. $async$outer:
  49656. switch ($async$goto) {
  49657. case 0:
  49658. // Function start
  49659. $async$goto = 3;
  49660. return P._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  49661. case 3:
  49662. // returning from await.
  49663. operand = $async$result;
  49664. t1 = node.operator;
  49665. switch (t1) {
  49666. case C.UnaryOperator_j2w:
  49667. $async$returnValue = operand.unaryPlus$0();
  49668. // goto return
  49669. $async$goto = 1;
  49670. break $async$outer;
  49671. case C.UnaryOperator_U4G:
  49672. $async$returnValue = operand.unaryMinus$0();
  49673. // goto return
  49674. $async$goto = 1;
  49675. break $async$outer;
  49676. case C.UnaryOperator_zDx:
  49677. operand.toString;
  49678. $async$returnValue = new D.SassString("/" + N.serializeValue0(operand, false, true), false);
  49679. // goto return
  49680. $async$goto = 1;
  49681. break $async$outer;
  49682. case C.UnaryOperator_not_not:
  49683. $async$returnValue = operand.unaryNot$0();
  49684. // goto return
  49685. $async$goto = 1;
  49686. break $async$outer;
  49687. default:
  49688. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  49689. }
  49690. case 1:
  49691. // return
  49692. return P._asyncReturn($async$returnValue, $async$completer);
  49693. }
  49694. });
  49695. return P._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  49696. },
  49697. visitBooleanExpression$1: function(node) {
  49698. return this.visitBooleanExpression$body$_EvaluateVisitor(node);
  49699. },
  49700. visitBooleanExpression$body$_EvaluateVisitor: function(node) {
  49701. var $async$goto = 0,
  49702. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassBoolean),
  49703. $async$returnValue;
  49704. var $async$visitBooleanExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49705. if ($async$errorCode === 1)
  49706. return P._asyncRethrow($async$result, $async$completer);
  49707. while (true)
  49708. switch ($async$goto) {
  49709. case 0:
  49710. // Function start
  49711. $async$returnValue = node.value ? C.SassBoolean_true0 : C.SassBoolean_false0;
  49712. // goto return
  49713. $async$goto = 1;
  49714. break;
  49715. case 1:
  49716. // return
  49717. return P._asyncReturn($async$returnValue, $async$completer);
  49718. }
  49719. });
  49720. return P._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  49721. },
  49722. visitIfExpression$1: function(node) {
  49723. return this.visitIfExpression$body$_EvaluateVisitor(node);
  49724. },
  49725. visitIfExpression$body$_EvaluateVisitor: function(node) {
  49726. var $async$goto = 0,
  49727. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49728. $async$returnValue, $async$self = this, condition, ifTrue, ifFalse, pair, positional, named, t1;
  49729. var $async$visitIfExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49730. if ($async$errorCode === 1)
  49731. return P._asyncRethrow($async$result, $async$completer);
  49732. while (true)
  49733. switch ($async$goto) {
  49734. case 0:
  49735. // Function start
  49736. $async$goto = 3;
  49737. return P._asyncAwait($async$self._async_evaluate$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  49738. case 3:
  49739. // returning from await.
  49740. pair = $async$result;
  49741. positional = pair.item1;
  49742. named = pair.item2;
  49743. t1 = J.getInterceptor$asx(positional);
  49744. $async$self._async_evaluate$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
  49745. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  49746. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  49747. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  49748. $async$goto = 5;
  49749. return P._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  49750. case 5:
  49751. // returning from await.
  49752. $async$goto = 4;
  49753. return P._asyncAwait(($async$result.get$isTruthy() ? ifTrue : ifFalse).accept$1($async$self), $async$visitIfExpression$1);
  49754. case 4:
  49755. // returning from await.
  49756. $async$returnValue = $async$result;
  49757. // goto return
  49758. $async$goto = 1;
  49759. break;
  49760. case 1:
  49761. // return
  49762. return P._asyncReturn($async$returnValue, $async$completer);
  49763. }
  49764. });
  49765. return P._asyncStartSync($async$visitIfExpression$1, $async$completer);
  49766. },
  49767. visitNullExpression$1: function(node) {
  49768. return this.visitNullExpression$body$_EvaluateVisitor(node);
  49769. },
  49770. visitNullExpression$body$_EvaluateVisitor: function(node) {
  49771. var $async$goto = 0,
  49772. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNull),
  49773. $async$returnValue;
  49774. var $async$visitNullExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49775. if ($async$errorCode === 1)
  49776. return P._asyncRethrow($async$result, $async$completer);
  49777. while (true)
  49778. switch ($async$goto) {
  49779. case 0:
  49780. // Function start
  49781. $async$returnValue = C.C_SassNull0;
  49782. // goto return
  49783. $async$goto = 1;
  49784. break;
  49785. case 1:
  49786. // return
  49787. return P._asyncReturn($async$returnValue, $async$completer);
  49788. }
  49789. });
  49790. return P._asyncStartSync($async$visitNullExpression$1, $async$completer);
  49791. },
  49792. visitNumberExpression$1: function(node) {
  49793. return this.visitNumberExpression$body$_EvaluateVisitor(node);
  49794. },
  49795. visitNumberExpression$body$_EvaluateVisitor: function(node) {
  49796. var $async$goto = 0,
  49797. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber),
  49798. $async$returnValue, t1;
  49799. var $async$visitNumberExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49800. if ($async$errorCode === 1)
  49801. return P._asyncRethrow($async$result, $async$completer);
  49802. while (true)
  49803. switch ($async$goto) {
  49804. case 0:
  49805. // Function start
  49806. t1 = node.unit;
  49807. t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_legacy_String);
  49808. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.legacy_String);
  49809. $async$returnValue = new T.SassNumber(node.value, t1, C.List_empty, null);
  49810. // goto return
  49811. $async$goto = 1;
  49812. break;
  49813. case 1:
  49814. // return
  49815. return P._asyncReturn($async$returnValue, $async$completer);
  49816. }
  49817. });
  49818. return P._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  49819. },
  49820. visitParenthesizedExpression$1: function(node) {
  49821. return node.expression.accept$1(this);
  49822. },
  49823. visitColorExpression$1: function(node) {
  49824. return this.visitColorExpression$body$_EvaluateVisitor(node);
  49825. },
  49826. visitColorExpression$body$_EvaluateVisitor: function(node) {
  49827. var $async$goto = 0,
  49828. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassColor),
  49829. $async$returnValue;
  49830. var $async$visitColorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49831. if ($async$errorCode === 1)
  49832. return P._asyncRethrow($async$result, $async$completer);
  49833. while (true)
  49834. switch ($async$goto) {
  49835. case 0:
  49836. // Function start
  49837. $async$returnValue = node.value;
  49838. // goto return
  49839. $async$goto = 1;
  49840. break;
  49841. case 1:
  49842. // return
  49843. return P._asyncReturn($async$returnValue, $async$completer);
  49844. }
  49845. });
  49846. return P._asyncStartSync($async$visitColorExpression$1, $async$completer);
  49847. },
  49848. visitListExpression$1: function(node) {
  49849. return this.visitListExpression$body$_EvaluateVisitor(node);
  49850. },
  49851. visitListExpression$body$_EvaluateVisitor: function(node) {
  49852. var $async$goto = 0,
  49853. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassList),
  49854. $async$returnValue, $async$self = this, $async$temp1;
  49855. var $async$visitListExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49856. if ($async$errorCode === 1)
  49857. return P._asyncRethrow($async$result, $async$completer);
  49858. while (true)
  49859. switch ($async$goto) {
  49860. case 0:
  49861. // Function start
  49862. $async$temp1 = D;
  49863. $async$goto = 3;
  49864. return P._asyncAwait(B.mapAsync(node.contents, new E._EvaluateVisitor_visitListExpression_closure0($async$self), type$.legacy_Expression, type$.legacy_Value), $async$visitListExpression$1);
  49865. case 3:
  49866. // returning from await.
  49867. $async$returnValue = $async$temp1.SassList$($async$result, node.separator, node.hasBrackets);
  49868. // goto return
  49869. $async$goto = 1;
  49870. break;
  49871. case 1:
  49872. // return
  49873. return P._asyncReturn($async$returnValue, $async$completer);
  49874. }
  49875. });
  49876. return P._asyncStartSync($async$visitListExpression$1, $async$completer);
  49877. },
  49878. visitMapExpression$1: function(node) {
  49879. return this.visitMapExpression$body$_EvaluateVisitor(node);
  49880. },
  49881. visitMapExpression$body$_EvaluateVisitor: function(node) {
  49882. var $async$goto = 0,
  49883. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassMap),
  49884. $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, t1, map, keyNodes;
  49885. var $async$visitMapExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49886. if ($async$errorCode === 1)
  49887. return P._asyncRethrow($async$result, $async$completer);
  49888. while (true)
  49889. switch ($async$goto) {
  49890. case 0:
  49891. // Function start
  49892. t1 = type$.legacy_Value;
  49893. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  49894. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AstNode);
  49895. t2 = node.pairs, t3 = t2.length, _i = 0;
  49896. case 3:
  49897. // for condition
  49898. if (!(_i < t3)) {
  49899. // goto after for
  49900. $async$goto = 5;
  49901. break;
  49902. }
  49903. pair = t2[_i];
  49904. t4 = pair.item1;
  49905. $async$goto = 6;
  49906. return P._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
  49907. case 6:
  49908. // returning from await.
  49909. keyValue = $async$result;
  49910. $async$goto = 7;
  49911. return P._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
  49912. case 7:
  49913. // returning from await.
  49914. valueValue = $async$result;
  49915. if (map.containsKey$1(keyValue))
  49916. throw H.wrapException(E.MultiSpanSassRuntimeException$("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate$_stackTrace$1(t4.get$span())));
  49917. map.$indexSet(0, keyValue, valueValue);
  49918. keyNodes.$indexSet(0, keyValue, t4);
  49919. case 4:
  49920. // for update
  49921. ++_i;
  49922. // goto for condition
  49923. $async$goto = 3;
  49924. break;
  49925. case 5:
  49926. // after for
  49927. $async$returnValue = new A.SassMap(H.ConstantMap_ConstantMap$from(map, t1, t1));
  49928. // goto return
  49929. $async$goto = 1;
  49930. break;
  49931. case 1:
  49932. // return
  49933. return P._asyncReturn($async$returnValue, $async$completer);
  49934. }
  49935. });
  49936. return P._asyncStartSync($async$visitMapExpression$1, $async$completer);
  49937. },
  49938. visitFunctionExpression$1: function(node) {
  49939. return this.visitFunctionExpression$body$_EvaluateVisitor(node);
  49940. },
  49941. visitFunctionExpression$body$_EvaluateVisitor: function(node) {
  49942. var $async$goto = 0,
  49943. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49944. $async$returnValue, $async$self = this, oldInFunction, result, t1, t2, plainName, $async$temp1, $async$temp2;
  49945. var $async$visitFunctionExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49946. if ($async$errorCode === 1)
  49947. return P._asyncRethrow($async$result, $async$completer);
  49948. while (true)
  49949. switch ($async$goto) {
  49950. case 0:
  49951. // Function start
  49952. t1 = {};
  49953. t2 = node.name;
  49954. plainName = t2.get$asPlain();
  49955. t1.$function = null;
  49956. $async$goto = (plainName != null ? t1.$function = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure1($async$self, node, plainName)) : null) == null ? 3 : 4;
  49957. break;
  49958. case 3:
  49959. // then
  49960. if (node.namespace != null)
  49961. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined function.", node.span));
  49962. $async$temp1 = t1;
  49963. $async$temp2 = L;
  49964. $async$goto = 5;
  49965. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t2), $async$visitFunctionExpression$1);
  49966. case 5:
  49967. // returning from await.
  49968. $async$temp1.$function = new $async$temp2.PlainCssCallable($async$result);
  49969. case 4:
  49970. // join
  49971. oldInFunction = $async$self._async_evaluate$_inFunction;
  49972. $async$self._async_evaluate$_inFunction = true;
  49973. $async$goto = 6;
  49974. return P._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure2(t1, $async$self, node), type$.legacy_Value), $async$visitFunctionExpression$1);
  49975. case 6:
  49976. // returning from await.
  49977. result = $async$result;
  49978. $async$self._async_evaluate$_inFunction = oldInFunction;
  49979. $async$returnValue = result;
  49980. // goto return
  49981. $async$goto = 1;
  49982. break;
  49983. case 1:
  49984. // return
  49985. return P._asyncReturn($async$returnValue, $async$completer);
  49986. }
  49987. });
  49988. return P._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  49989. },
  49990. _async_evaluate$_getFunction$2$namespace: function($name, namespace) {
  49991. var local = this._async_evaluate$_environment.getFunction$2$namespace($name, namespace);
  49992. if (local != null || namespace != null)
  49993. return local;
  49994. return this._async_evaluate$_builtInFunctions.$index(0, $name);
  49995. },
  49996. _async_evaluate$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  49997. return this._runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run);
  49998. },
  49999. _runUserDefinedCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan, run) {
  50000. var $async$goto = 0,
  50001. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50002. $async$returnValue, $async$self = this, evaluated, t1, $name;
  50003. var $async$_async_evaluate$_runUserDefinedCallable$4 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50004. if ($async$errorCode === 1)
  50005. return P._asyncRethrow($async$result, $async$completer);
  50006. while (true)
  50007. switch ($async$goto) {
  50008. case 0:
  50009. // Function start
  50010. $async$goto = 3;
  50011. return P._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runUserDefinedCallable$4);
  50012. case 3:
  50013. // returning from await.
  50014. evaluated = $async$result;
  50015. t1 = callable.declaration.name;
  50016. $name = t1 == null ? "@content" : t1 + "()";
  50017. $async$goto = 4;
  50018. return P._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3($name, nodeWithSpan, new E._EvaluateVisitor__runUserDefinedCallable_closure0($async$self, callable, evaluated, nodeWithSpan, run), type$.legacy_Value), $async$_async_evaluate$_runUserDefinedCallable$4);
  50019. case 4:
  50020. // returning from await.
  50021. $async$returnValue = $async$result;
  50022. // goto return
  50023. $async$goto = 1;
  50024. break;
  50025. case 1:
  50026. // return
  50027. return P._asyncReturn($async$returnValue, $async$completer);
  50028. }
  50029. });
  50030. return P._asyncStartSync($async$_async_evaluate$_runUserDefinedCallable$4, $async$completer);
  50031. },
  50032. _async_evaluate$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  50033. return this._runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  50034. },
  50035. _runFunctionCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan) {
  50036. var $async$goto = 0,
  50037. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50038. $async$returnValue, $async$self = this, result, t1, t2, t3, first, _i, argument, rest, $async$temp1;
  50039. var $async$_async_evaluate$_runFunctionCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50040. if ($async$errorCode === 1)
  50041. return P._asyncRethrow($async$result, $async$completer);
  50042. while (true)
  50043. switch ($async$goto) {
  50044. case 0:
  50045. // Function start
  50046. $async$goto = type$.legacy_AsyncBuiltInCallable._is(callable) ? 3 : 5;
  50047. break;
  50048. case 3:
  50049. // then
  50050. $async$goto = 6;
  50051. return P._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate$_runFunctionCallable$3);
  50052. case 6:
  50053. // returning from await.
  50054. result = $async$result;
  50055. if (result == null)
  50056. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Custom, nodeWithSpan.get$span()));
  50057. $async$returnValue = result.withoutSlash$0();
  50058. // goto return
  50059. $async$goto = 1;
  50060. break;
  50061. // goto join
  50062. $async$goto = 4;
  50063. break;
  50064. case 5:
  50065. // else
  50066. $async$goto = type$.legacy_UserDefinedCallable_legacy_AsyncEnvironment._is(callable) ? 7 : 9;
  50067. break;
  50068. case 7:
  50069. // then
  50070. $async$goto = 10;
  50071. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new E._EvaluateVisitor__runFunctionCallable_closure0($async$self, callable)), $async$_async_evaluate$_runFunctionCallable$3);
  50072. case 10:
  50073. // returning from await.
  50074. $async$returnValue = $async$result.withoutSlash$0();
  50075. // goto return
  50076. $async$goto = 1;
  50077. break;
  50078. // goto join
  50079. $async$goto = 8;
  50080. break;
  50081. case 9:
  50082. // else
  50083. $async$goto = callable instanceof L.PlainCssCallable ? 11 : 13;
  50084. break;
  50085. case 11:
  50086. // then
  50087. t1 = $arguments.named;
  50088. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  50089. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span()));
  50090. t1 = H.S(callable.name) + "(";
  50091. t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
  50092. case 14:
  50093. // for condition
  50094. if (!(_i < t3)) {
  50095. // goto after for
  50096. $async$goto = 16;
  50097. break;
  50098. }
  50099. argument = t2[_i];
  50100. if (first)
  50101. first = false;
  50102. else
  50103. t1 += ", ";
  50104. $async$temp1 = H;
  50105. $async$goto = 17;
  50106. return P._asyncAwait($async$self._evaluateToCss$1(argument), $async$_async_evaluate$_runFunctionCallable$3);
  50107. case 17:
  50108. // returning from await.
  50109. t1 += $async$temp1.S($async$result);
  50110. case 15:
  50111. // for update
  50112. ++_i;
  50113. // goto for condition
  50114. $async$goto = 14;
  50115. break;
  50116. case 16:
  50117. // after for
  50118. t2 = $arguments.rest;
  50119. $async$goto = 18;
  50120. return P._asyncAwait(t2 == null ? null : t2.accept$1($async$self), $async$_async_evaluate$_runFunctionCallable$3);
  50121. case 18:
  50122. // returning from await.
  50123. rest = $async$result;
  50124. if (rest != null) {
  50125. if (!first)
  50126. t1 += ", ";
  50127. t2 = t1 + H.S($async$self._async_evaluate$_serialize$2(rest, t2));
  50128. t1 = t2;
  50129. }
  50130. t1 += H.Primitives_stringFromCharCode(41);
  50131. $async$returnValue = new D.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  50132. // goto return
  50133. $async$goto = 1;
  50134. break;
  50135. // goto join
  50136. $async$goto = 12;
  50137. break;
  50138. case 13:
  50139. // else
  50140. $async$returnValue = null;
  50141. // goto return
  50142. $async$goto = 1;
  50143. break;
  50144. case 12:
  50145. // join
  50146. case 8:
  50147. // join
  50148. case 4:
  50149. // join
  50150. case 1:
  50151. // return
  50152. return P._asyncReturn($async$returnValue, $async$completer);
  50153. }
  50154. });
  50155. return P._asyncStartSync($async$_async_evaluate$_runFunctionCallable$3, $async$completer);
  50156. },
  50157. _async_evaluate$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  50158. return this._runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  50159. },
  50160. _runBuiltInCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan) {
  50161. var $async$goto = 0,
  50162. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50163. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, evaluated, oldCallableNode, $async$exception;
  50164. var $async$_async_evaluate$_runBuiltInCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50165. if ($async$errorCode === 1) {
  50166. $async$currentError = $async$result;
  50167. $async$goto = $async$handler;
  50168. }
  50169. while (true)
  50170. switch ($async$goto) {
  50171. case 0:
  50172. // Function start
  50173. $async$goto = 3;
  50174. return P._asyncAwait($async$self._async_evaluate$_evaluateArguments$2$trackSpans($arguments, false), $async$_async_evaluate$_runBuiltInCallable$3);
  50175. case 3:
  50176. // returning from await.
  50177. evaluated = $async$result;
  50178. oldCallableNode = $async$self._async_evaluate$_callableNode;
  50179. $async$self._async_evaluate$_callableNode = nodeWithSpan;
  50180. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_legacy_String);
  50181. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  50182. overload = tuple.item1;
  50183. callback = tuple.item2;
  50184. $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__runBuiltInCallable_closure1(overload, evaluated, namedSet));
  50185. declaredArguments = overload.$arguments;
  50186. i = evaluated.positional.length, t1 = declaredArguments.length;
  50187. case 4:
  50188. // for condition
  50189. if (!(i < t1)) {
  50190. // goto after for
  50191. $async$goto = 6;
  50192. break;
  50193. }
  50194. argument = declaredArguments[i];
  50195. t2 = evaluated.positional;
  50196. t3 = evaluated.named.remove$1(0, argument.name);
  50197. $async$goto = t3 == null ? 7 : 8;
  50198. break;
  50199. case 7:
  50200. // then
  50201. t3 = argument.defaultValue;
  50202. $async$goto = 9;
  50203. return P._asyncAwait(t3 == null ? null : t3.accept$1($async$self), $async$_async_evaluate$_runBuiltInCallable$3);
  50204. case 9:
  50205. // returning from await.
  50206. t3 = $async$result;
  50207. case 8:
  50208. // join
  50209. t2.push(t3);
  50210. case 5:
  50211. // for update
  50212. ++i;
  50213. // goto for condition
  50214. $async$goto = 4;
  50215. break;
  50216. case 6:
  50217. // after for
  50218. if (overload.restArgument != null) {
  50219. if (evaluated.positional.length > t1) {
  50220. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  50221. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  50222. } else
  50223. rest = C.List_empty5;
  50224. t1 = evaluated.named;
  50225. t2 = evaluated.separator === C.ListSeparator_undecided ? C.ListSeparator_comma : evaluated.separator;
  50226. t3 = type$.legacy_Value;
  50227. argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t1, type$.legacy_String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  50228. argumentList.SassList$3$brackets(rest, t2, false);
  50229. evaluated.positional.push(argumentList);
  50230. } else
  50231. argumentList = null;
  50232. result = null;
  50233. $async$handler = 11;
  50234. $async$goto = 14;
  50235. return P._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate$_runBuiltInCallable$3);
  50236. case 14:
  50237. // returning from await.
  50238. result = $async$result;
  50239. $async$handler = 2;
  50240. // goto after finally
  50241. $async$goto = 13;
  50242. break;
  50243. case 11:
  50244. // catch
  50245. $async$handler = 10;
  50246. $async$exception = $async$currentError;
  50247. t1 = H.unwrapException($async$exception);
  50248. if (type$.legacy_SassRuntimeException._is(t1))
  50249. throw $async$exception;
  50250. else if (t1 instanceof E.MultiSpanSassScriptException) {
  50251. error = t1;
  50252. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  50253. } else if (t1 instanceof E.MultiSpanSassException) {
  50254. error0 = t1;
  50255. throw H.wrapException(E.MultiSpanSassRuntimeException$(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, $async$self._async_evaluate$_stackTrace$1(error0.get$span())));
  50256. } else {
  50257. error1 = t1;
  50258. message = null;
  50259. try {
  50260. message = H._asStringS(J.get$message$x(error1));
  50261. } catch (exception) {
  50262. H.unwrapException($async$exception);
  50263. message = J.toString$0$(error1);
  50264. }
  50265. throw H.wrapException($async$self._async_evaluate$_exception$2(message, nodeWithSpan.get$span()));
  50266. }
  50267. // goto after finally
  50268. $async$goto = 13;
  50269. break;
  50270. case 10:
  50271. // uncaught
  50272. // goto rethrow
  50273. $async$goto = 2;
  50274. break;
  50275. case 13:
  50276. // after finally
  50277. $async$self._async_evaluate$_callableNode = oldCallableNode;
  50278. if (argumentList == null) {
  50279. $async$returnValue = result;
  50280. // goto return
  50281. $async$goto = 1;
  50282. break;
  50283. }
  50284. t1 = evaluated.named;
  50285. if (t1.get$isEmpty(t1)) {
  50286. $async$returnValue = result;
  50287. // goto return
  50288. $async$goto = 1;
  50289. break;
  50290. }
  50291. if (argumentList._wereKeywordsAccessed) {
  50292. $async$returnValue = result;
  50293. // goto return
  50294. $async$goto = 1;
  50295. break;
  50296. }
  50297. t1 = evaluated.named.get$keys();
  50298. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + B.pluralize("argument", t1.get$length(t1), null) + " named " + H.S(B.toSentence(evaluated.named.get$keys().map$1$1(0, new E._EvaluateVisitor__runBuiltInCallable_closure2(), type$.legacy_Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  50299. case 1:
  50300. // return
  50301. return P._asyncReturn($async$returnValue, $async$completer);
  50302. case 2:
  50303. // rethrow
  50304. return P._asyncRethrow($async$currentError, $async$completer);
  50305. }
  50306. });
  50307. return P._asyncStartSync($async$_async_evaluate$_runBuiltInCallable$3, $async$completer);
  50308. },
  50309. _async_evaluate$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  50310. return this._evaluateArguments$body$_EvaluateVisitor($arguments, trackSpans);
  50311. },
  50312. _async_evaluate$_evaluateArguments$1: function($arguments) {
  50313. return this._async_evaluate$_evaluateArguments$2$trackSpans($arguments, null);
  50314. },
  50315. _evaluateArguments$body$_EvaluateVisitor: function($arguments, trackSpans) {
  50316. var $async$goto = 0,
  50317. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy__ArgumentResults),
  50318. $async$returnValue, $async$self = this, t1, t2, t3, _i, t4, t5, t6, t7, t8, t9, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, $async$temp1, $async$temp2;
  50319. var $async$_async_evaluate$_evaluateArguments$2$trackSpans = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50320. if ($async$errorCode === 1)
  50321. return P._asyncRethrow($async$result, $async$completer);
  50322. while (true)
  50323. switch ($async$goto) {
  50324. case 0:
  50325. // Function start
  50326. if (trackSpans == null)
  50327. trackSpans = $async$self._async_evaluate$_sourceMap;
  50328. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  50329. t2 = $arguments.positional, t3 = t2.length, _i = 0;
  50330. case 3:
  50331. // for condition
  50332. if (!(_i < t3)) {
  50333. // goto after for
  50334. $async$goto = 5;
  50335. break;
  50336. }
  50337. $async$temp1 = t1;
  50338. $async$goto = 6;
  50339. return P._asyncAwait(t2[_i].accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  50340. case 6:
  50341. // returning from await.
  50342. $async$temp1.push($async$result);
  50343. case 4:
  50344. // for update
  50345. ++_i;
  50346. // goto for condition
  50347. $async$goto = 3;
  50348. break;
  50349. case 5:
  50350. // after for
  50351. t4 = type$.legacy_String;
  50352. t5 = type$.legacy_Value;
  50353. t6 = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  50354. t7 = $arguments.named, t8 = t7.get$entries(), t8 = t8.get$iterator(t8);
  50355. case 7:
  50356. // for condition
  50357. if (!t8.moveNext$0()) {
  50358. // goto after for
  50359. $async$goto = 8;
  50360. break;
  50361. }
  50362. t9 = t8.get$current(t8);
  50363. $async$temp1 = t6;
  50364. $async$temp2 = t9.key;
  50365. $async$goto = 9;
  50366. return P._asyncAwait(t9.value.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  50367. case 9:
  50368. // returning from await.
  50369. $async$temp1.$indexSet(0, $async$temp2, $async$result);
  50370. // goto for condition
  50371. $async$goto = 7;
  50372. break;
  50373. case 8:
  50374. // after for
  50375. if (trackSpans) {
  50376. t8 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AstNode);
  50377. for (_i = 0; _i < t3; ++_i)
  50378. t8.push($async$self._async_evaluate$_expressionNode$1(t2[_i]));
  50379. positionalNodes = t8;
  50380. } else
  50381. positionalNodes = null;
  50382. if (trackSpans) {
  50383. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  50384. for (t3 = t7.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  50385. t7 = t3.get$current(t3);
  50386. t2.$indexSet(0, t7.key, $async$self._async_evaluate$_expressionNode$1(t7.value));
  50387. }
  50388. namedNodes = t2;
  50389. } else
  50390. namedNodes = null;
  50391. t2 = $arguments.rest;
  50392. if (t2 == null) {
  50393. $async$returnValue = E._ArgumentResults$0(t1, t6, C.ListSeparator_undecided, namedNodes, positionalNodes);
  50394. // goto return
  50395. $async$goto = 1;
  50396. break;
  50397. }
  50398. $async$goto = 10;
  50399. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  50400. case 10:
  50401. // returning from await.
  50402. rest = $async$result;
  50403. restNodeForSpan = trackSpans ? $async$self._async_evaluate$_expressionNode$1(t2) : null;
  50404. if (rest instanceof A.SassMap) {
  50405. $async$self._async_evaluate$_addRestMap$1$3(t6, rest, t2, t5);
  50406. if (namedNodes != null) {
  50407. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  50408. for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t7 = type$.legacy_SassString; t3.moveNext$0();)
  50409. t2.$indexSet(0, t7._as(t3.get$current(t3)).text, restNodeForSpan);
  50410. namedNodes.addAll$1(0, t2);
  50411. }
  50412. separator = C.ListSeparator_undecided;
  50413. } else if (rest instanceof D.SassList) {
  50414. t2 = rest._list$_contents;
  50415. C.JSArray_methods.addAll$1(t1, t2);
  50416. if (positionalNodes != null)
  50417. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, false, type$.legacy_AstNode));
  50418. separator = rest.separator;
  50419. if (rest instanceof D.SassArgumentList) {
  50420. rest._wereKeywordsAccessed = true;
  50421. rest._keywords.forEach$1(0, new E._EvaluateVisitor__evaluateArguments_closure0(t6, namedNodes, restNodeForSpan));
  50422. }
  50423. } else {
  50424. t1.push(rest);
  50425. if (positionalNodes != null)
  50426. positionalNodes.push(restNodeForSpan);
  50427. separator = C.ListSeparator_undecided;
  50428. }
  50429. t2 = $arguments.keywordRest;
  50430. if (t2 == null) {
  50431. $async$returnValue = E._ArgumentResults$0(t1, t6, separator, namedNodes, positionalNodes);
  50432. // goto return
  50433. $async$goto = 1;
  50434. break;
  50435. }
  50436. $async$goto = 11;
  50437. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  50438. case 11:
  50439. // returning from await.
  50440. keywordRest = $async$result;
  50441. keywordRestNodeForSpan = trackSpans ? $async$self._async_evaluate$_expressionNode$1(t2) : null;
  50442. if (keywordRest instanceof A.SassMap) {
  50443. $async$self._async_evaluate$_addRestMap$1$3(t6, keywordRest, t2, t5);
  50444. if (namedNodes != null) {
  50445. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  50446. for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.legacy_SassString; t3.moveNext$0();)
  50447. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  50448. namedNodes.addAll$1(0, t2);
  50449. }
  50450. $async$returnValue = E._ArgumentResults$0(t1, t6, separator, namedNodes, positionalNodes);
  50451. // goto return
  50452. $async$goto = 1;
  50453. break;
  50454. } else
  50455. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + H.S(keywordRest) + ").", t2.get$span()));
  50456. case 1:
  50457. // return
  50458. return P._asyncReturn($async$returnValue, $async$completer);
  50459. }
  50460. });
  50461. return P._asyncStartSync($async$_async_evaluate$_evaluateArguments$2$trackSpans, $async$completer);
  50462. },
  50463. _async_evaluate$_evaluateMacroArguments$1: function(invocation) {
  50464. return this._evaluateMacroArguments$body$_EvaluateVisitor(invocation);
  50465. },
  50466. _evaluateMacroArguments$body$_EvaluateVisitor: function(invocation) {
  50467. var $async$goto = 0,
  50468. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression),
  50469. $async$returnValue, $async$self = this, t3, positional, named, rest, keywordRest, t1, t2;
  50470. var $async$_async_evaluate$_evaluateMacroArguments$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50471. if ($async$errorCode === 1)
  50472. return P._asyncRethrow($async$result, $async$completer);
  50473. while (true)
  50474. switch ($async$goto) {
  50475. case 0:
  50476. // Function start
  50477. t1 = invocation.$arguments;
  50478. t2 = t1.rest;
  50479. if (t2 == null) {
  50480. $async$returnValue = new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  50481. // goto return
  50482. $async$goto = 1;
  50483. break;
  50484. }
  50485. t3 = t1.positional;
  50486. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  50487. t3 = type$.legacy_Expression;
  50488. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.legacy_String, t3);
  50489. $async$goto = 3;
  50490. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  50491. case 3:
  50492. // returning from await.
  50493. rest = $async$result;
  50494. if (rest instanceof A.SassMap)
  50495. $async$self._async_evaluate$_addRestMap$1$4(named, rest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure3(), t3);
  50496. else if (rest instanceof D.SassList) {
  50497. t2 = rest._list$_contents;
  50498. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new E._EvaluateVisitor__evaluateMacroArguments_closure4(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression*>")));
  50499. if (rest instanceof D.SassArgumentList) {
  50500. rest._wereKeywordsAccessed = true;
  50501. rest._keywords.forEach$1(0, new E._EvaluateVisitor__evaluateMacroArguments_closure5(named));
  50502. }
  50503. } else
  50504. positional.push(new F.ValueExpression(rest, null));
  50505. t1 = t1.keywordRest;
  50506. if (t1 == null) {
  50507. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  50508. // goto return
  50509. $async$goto = 1;
  50510. break;
  50511. }
  50512. $async$goto = 4;
  50513. return P._asyncAwait(t1.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  50514. case 4:
  50515. // returning from await.
  50516. keywordRest = $async$result;
  50517. if (keywordRest instanceof A.SassMap) {
  50518. $async$self._async_evaluate$_addRestMap$1$4(named, keywordRest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure6(), t3);
  50519. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  50520. // goto return
  50521. $async$goto = 1;
  50522. break;
  50523. } else
  50524. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + H.S(keywordRest) + ").", invocation.span));
  50525. case 1:
  50526. // return
  50527. return P._asyncReturn($async$returnValue, $async$completer);
  50528. }
  50529. });
  50530. return P._asyncStartSync($async$_async_evaluate$_evaluateMacroArguments$1, $async$completer);
  50531. },
  50532. _async_evaluate$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  50533. var t1 = {};
  50534. t1.convert = convert;
  50535. if (convert == null)
  50536. t1.convert = new E._EvaluateVisitor__addRestMap_closure1($T);
  50537. map.contents.forEach$1(0, new E._EvaluateVisitor__addRestMap_closure2(t1, this, values, map, nodeWithSpan));
  50538. },
  50539. _async_evaluate$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  50540. return this._async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  50541. },
  50542. _async_evaluate$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  50543. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__verifyArguments_closure0($arguments, positional, named));
  50544. },
  50545. visitSelectorExpression$1: function(node) {
  50546. return this.visitSelectorExpression$body$_EvaluateVisitor(node);
  50547. },
  50548. visitSelectorExpression$body$_EvaluateVisitor: function(node) {
  50549. var $async$goto = 0,
  50550. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50551. $async$returnValue, $async$self = this, t1;
  50552. var $async$visitSelectorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50553. if ($async$errorCode === 1)
  50554. return P._asyncRethrow($async$result, $async$completer);
  50555. while (true)
  50556. switch ($async$goto) {
  50557. case 0:
  50558. // Function start
  50559. t1 = $async$self._async_evaluate$_styleRule;
  50560. if (t1 == null) {
  50561. $async$returnValue = C.C_SassNull0;
  50562. // goto return
  50563. $async$goto = 1;
  50564. break;
  50565. }
  50566. $async$returnValue = t1.originalSelector.get$asSassList();
  50567. // goto return
  50568. $async$goto = 1;
  50569. break;
  50570. case 1:
  50571. // return
  50572. return P._asyncReturn($async$returnValue, $async$completer);
  50573. }
  50574. });
  50575. return P._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  50576. },
  50577. visitStringExpression$1: function(node) {
  50578. return this.visitStringExpression$body$_EvaluateVisitor(node);
  50579. },
  50580. visitStringExpression$body$_EvaluateVisitor: function(node) {
  50581. var $async$goto = 0,
  50582. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassString),
  50583. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  50584. var $async$visitStringExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50585. if ($async$errorCode === 1)
  50586. return P._asyncRethrow($async$result, $async$completer);
  50587. while (true)
  50588. switch ($async$goto) {
  50589. case 0:
  50590. // Function start
  50591. $async$temp1 = D;
  50592. $async$temp2 = J;
  50593. $async$goto = 3;
  50594. return P._asyncAwait(B.mapAsync(node.text.contents, new E._EvaluateVisitor_visitStringExpression_closure0($async$self), type$.legacy_Object, type$.legacy_String), $async$visitStringExpression$1);
  50595. case 3:
  50596. // returning from await.
  50597. $async$returnValue = new $async$temp1.SassString($async$temp2.join$0$ax($async$result), node.hasQuotes);
  50598. // goto return
  50599. $async$goto = 1;
  50600. break;
  50601. case 1:
  50602. // return
  50603. return P._asyncReturn($async$returnValue, $async$completer);
  50604. }
  50605. });
  50606. return P._asyncStartSync($async$visitStringExpression$1, $async$completer);
  50607. },
  50608. visitCssAtRule$1: function(node) {
  50609. return this.visitCssAtRule$body$_EvaluateVisitor(node);
  50610. },
  50611. visitCssAtRule$body$_EvaluateVisitor: function(node) {
  50612. var $async$goto = 0,
  50613. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50614. $async$returnValue, $async$self = this, t1, t2, wasInKeyframes, wasInUnknownAtRule;
  50615. var $async$visitCssAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50616. if ($async$errorCode === 1)
  50617. return P._asyncRethrow($async$result, $async$completer);
  50618. while (true)
  50619. switch ($async$goto) {
  50620. case 0:
  50621. // Function start
  50622. if ($async$self._async_evaluate$_declarationName != null)
  50623. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
  50624. if (node.isChildless) {
  50625. t1 = $async$self._async_evaluate$_parent;
  50626. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  50627. t1.addChild$1(new U.ModifiableCssAtRule(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2));
  50628. $async$returnValue = null;
  50629. // goto return
  50630. $async$goto = 1;
  50631. break;
  50632. }
  50633. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  50634. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  50635. t1 = node.name;
  50636. if (B.unvendor(t1.get$value(t1)) === "keyframes")
  50637. $async$self._async_evaluate$_inKeyframes = true;
  50638. else
  50639. $async$self._async_evaluate$_inUnknownAtRule = true;
  50640. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  50641. $async$goto = 3;
  50642. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2), new E._EvaluateVisitor_visitCssAtRule_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssAtRule_closure2(), type$.legacy_ModifiableCssAtRule, type$.Null), $async$visitCssAtRule$1);
  50643. case 3:
  50644. // returning from await.
  50645. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  50646. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  50647. case 1:
  50648. // return
  50649. return P._asyncReturn($async$returnValue, $async$completer);
  50650. }
  50651. });
  50652. return P._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  50653. },
  50654. visitCssComment$1: function(node) {
  50655. return this.visitCssComment$body$_EvaluateVisitor(node);
  50656. },
  50657. visitCssComment$body$_EvaluateVisitor: function(node) {
  50658. var $async$goto = 0,
  50659. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50660. $async$self = this, t1, t2;
  50661. var $async$visitCssComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50662. if ($async$errorCode === 1)
  50663. return P._asyncRethrow($async$result, $async$completer);
  50664. while (true)
  50665. switch ($async$goto) {
  50666. case 0:
  50667. // Function start
  50668. t1 = $async$self._async_evaluate$_parent;
  50669. t2 = $async$self._async_evaluate$_root;
  50670. if (t1 == t2 && $async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  50671. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  50672. $async$self._async_evaluate$_parent.addChild$1(new R.ModifiableCssComment(node.text, node.span));
  50673. // implicit return
  50674. return P._asyncReturn(null, $async$completer);
  50675. }
  50676. });
  50677. return P._asyncStartSync($async$visitCssComment$1, $async$completer);
  50678. },
  50679. visitCssDeclaration$1: function(node) {
  50680. return this.visitCssDeclaration$body$_EvaluateVisitor(node);
  50681. },
  50682. visitCssDeclaration$body$_EvaluateVisitor: function(node) {
  50683. var $async$goto = 0,
  50684. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50685. $async$self = this;
  50686. var $async$visitCssDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50687. if ($async$errorCode === 1)
  50688. return P._asyncRethrow($async$result, $async$completer);
  50689. while (true)
  50690. switch ($async$goto) {
  50691. case 0:
  50692. // Function start
  50693. $async$self._async_evaluate$_parent.addChild$1(L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap));
  50694. // implicit return
  50695. return P._asyncReturn(null, $async$completer);
  50696. }
  50697. });
  50698. return P._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  50699. },
  50700. visitCssImport$1: function(node) {
  50701. return this.visitCssImport$body$_EvaluateVisitor(node);
  50702. },
  50703. visitCssImport$body$_EvaluateVisitor: function(node) {
  50704. var $async$goto = 0,
  50705. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50706. $async$self = this, modifiableNode, t1, t2;
  50707. var $async$visitCssImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50708. if ($async$errorCode === 1)
  50709. return P._asyncRethrow($async$result, $async$completer);
  50710. while (true)
  50711. switch ($async$goto) {
  50712. case 0:
  50713. // Function start
  50714. modifiableNode = F.ModifiableCssImport$(node.url, node.span, node.media, node.supports);
  50715. t1 = $async$self._async_evaluate$_parent;
  50716. t2 = $async$self._async_evaluate$_root;
  50717. if (t1 != t2)
  50718. t1.addChild$1(modifiableNode);
  50719. else if ($async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  50720. $async$self._async_evaluate$_root.addChild$1(modifiableNode);
  50721. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  50722. } else {
  50723. t1 = $async$self._async_evaluate$_outOfOrderImports;
  50724. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t1).push(modifiableNode);
  50725. }
  50726. // implicit return
  50727. return P._asyncReturn(null, $async$completer);
  50728. }
  50729. });
  50730. return P._asyncStartSync($async$visitCssImport$1, $async$completer);
  50731. },
  50732. visitCssKeyframeBlock$1: function(node) {
  50733. return this.visitCssKeyframeBlock$body$_EvaluateVisitor(node);
  50734. },
  50735. visitCssKeyframeBlock$body$_EvaluateVisitor: function(node) {
  50736. var $async$goto = 0,
  50737. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50738. $async$self = this, t1;
  50739. var $async$visitCssKeyframeBlock$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50740. if ($async$errorCode === 1)
  50741. return P._asyncRethrow($async$result, $async$completer);
  50742. while (true)
  50743. switch ($async$goto) {
  50744. case 0:
  50745. // Function start
  50746. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  50747. $async$goto = 2;
  50748. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1), new E._EvaluateVisitor_visitCssKeyframeBlock_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssKeyframeBlock_closure2(), type$.legacy_ModifiableCssKeyframeBlock, type$.Null), $async$visitCssKeyframeBlock$1);
  50749. case 2:
  50750. // returning from await.
  50751. // implicit return
  50752. return P._asyncReturn(null, $async$completer);
  50753. }
  50754. });
  50755. return P._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  50756. },
  50757. visitCssMediaRule$1: function(node) {
  50758. return this.visitCssMediaRule$body$_EvaluateVisitor(node);
  50759. },
  50760. visitCssMediaRule$body$_EvaluateVisitor: function(node) {
  50761. var $async$goto = 0,
  50762. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50763. $async$returnValue, $async$self = this, t1, mergedQueries;
  50764. var $async$visitCssMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50765. if ($async$errorCode === 1)
  50766. return P._asyncRethrow($async$result, $async$completer);
  50767. while (true)
  50768. switch ($async$goto) {
  50769. case 0:
  50770. // Function start
  50771. if ($async$self._async_evaluate$_declarationName != null)
  50772. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
  50773. t1 = $async$self._async_evaluate$_mediaQueries;
  50774. mergedQueries = t1 == null ? null : $async$self._async_evaluate$_mergeMediaQueries$2(t1, node.queries);
  50775. t1 = mergedQueries == null;
  50776. if (!t1 && mergedQueries.length === 0) {
  50777. $async$returnValue = null;
  50778. // goto return
  50779. $async$goto = 1;
  50780. break;
  50781. }
  50782. t1 = t1 ? node.queries : mergedQueries;
  50783. $async$goto = 3;
  50784. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new E._EvaluateVisitor_visitCssMediaRule_closure1($async$self, mergedQueries, node), false, new E._EvaluateVisitor_visitCssMediaRule_closure2(mergedQueries), type$.legacy_ModifiableCssMediaRule, type$.Null), $async$visitCssMediaRule$1);
  50785. case 3:
  50786. // returning from await.
  50787. case 1:
  50788. // return
  50789. return P._asyncReturn($async$returnValue, $async$completer);
  50790. }
  50791. });
  50792. return P._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  50793. },
  50794. visitCssStyleRule$1: function(node) {
  50795. return this.visitCssStyleRule$body$_EvaluateVisitor(node);
  50796. },
  50797. visitCssStyleRule$body$_EvaluateVisitor: function(node) {
  50798. var $async$goto = 0,
  50799. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50800. $async$self = this, t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule;
  50801. var $async$visitCssStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50802. if ($async$errorCode === 1)
  50803. return P._asyncRethrow($async$result, $async$completer);
  50804. while (true)
  50805. switch ($async$goto) {
  50806. case 0:
  50807. // Function start
  50808. if ($async$self._async_evaluate$_declarationName != null)
  50809. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Style_, node.span));
  50810. t1 = node.selector;
  50811. t2 = t1.value;
  50812. t3 = $async$self._async_evaluate$_styleRule;
  50813. t3 = t3 == null ? null : t3.originalSelector;
  50814. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !$async$self._async_evaluate$_atRootExcludingStyleRule);
  50815. rule = X.ModifiableCssStyleRule$($async$self._async_evaluate$_extender.addSelector$3(originalSelector, t1.span, $async$self._async_evaluate$_mediaQueries), node.span, originalSelector);
  50816. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  50817. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  50818. $async$goto = 2;
  50819. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitCssStyleRule_closure1($async$self, rule, node), false, new E._EvaluateVisitor_visitCssStyleRule_closure2(), type$.legacy_ModifiableCssStyleRule, type$.Null), $async$visitCssStyleRule$1);
  50820. case 2:
  50821. // returning from await.
  50822. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  50823. if (!($async$self._async_evaluate$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  50824. t1 = $async$self._async_evaluate$_parent.children;
  50825. t1 = !t1.get$isEmpty(t1);
  50826. } else
  50827. t1 = false;
  50828. if (t1) {
  50829. t1 = $async$self._async_evaluate$_parent.children;
  50830. t1.get$last(t1).isGroupEnd = true;
  50831. }
  50832. // implicit return
  50833. return P._asyncReturn(null, $async$completer);
  50834. }
  50835. });
  50836. return P._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  50837. },
  50838. visitCssStylesheet$1: function(node) {
  50839. return this.visitCssStylesheet$body$_EvaluateVisitor(node);
  50840. },
  50841. visitCssStylesheet$body$_EvaluateVisitor: function(node) {
  50842. var $async$goto = 0,
  50843. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50844. $async$self = this, t1;
  50845. var $async$visitCssStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50846. if ($async$errorCode === 1)
  50847. return P._asyncRethrow($async$result, $async$completer);
  50848. while (true)
  50849. switch ($async$goto) {
  50850. case 0:
  50851. // Function start
  50852. t1 = J.get$iterator$ax(node.get$children());
  50853. case 2:
  50854. // for condition
  50855. if (!t1.moveNext$0()) {
  50856. // goto after for
  50857. $async$goto = 3;
  50858. break;
  50859. }
  50860. $async$goto = 4;
  50861. return P._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  50862. case 4:
  50863. // returning from await.
  50864. // goto for condition
  50865. $async$goto = 2;
  50866. break;
  50867. case 3:
  50868. // after for
  50869. // implicit return
  50870. return P._asyncReturn(null, $async$completer);
  50871. }
  50872. });
  50873. return P._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  50874. },
  50875. visitCssSupportsRule$1: function(node) {
  50876. return this.visitCssSupportsRule$body$_EvaluateVisitor(node);
  50877. },
  50878. visitCssSupportsRule$body$_EvaluateVisitor: function(node) {
  50879. var $async$goto = 0,
  50880. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50881. $async$self = this, t1;
  50882. var $async$visitCssSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50883. if ($async$errorCode === 1)
  50884. return P._asyncRethrow($async$result, $async$completer);
  50885. while (true)
  50886. switch ($async$goto) {
  50887. case 0:
  50888. // Function start
  50889. if ($async$self._async_evaluate$_declarationName != null)
  50890. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
  50891. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  50892. $async$goto = 2;
  50893. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1), new E._EvaluateVisitor_visitCssSupportsRule_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssSupportsRule_closure2(), type$.legacy_ModifiableCssSupportsRule, type$.Null), $async$visitCssSupportsRule$1);
  50894. case 2:
  50895. // returning from await.
  50896. // implicit return
  50897. return P._asyncReturn(null, $async$completer);
  50898. }
  50899. });
  50900. return P._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  50901. },
  50902. _async_evaluate$_handleReturn$1$2: function(list, callback) {
  50903. return this._handleReturn$body$_EvaluateVisitor(list, callback);
  50904. },
  50905. _async_evaluate$_handleReturn$2: function(list, callback) {
  50906. return this._async_evaluate$_handleReturn$1$2(list, callback, type$.dynamic);
  50907. },
  50908. _handleReturn$body$_EvaluateVisitor: function(list, callback) {
  50909. var $async$goto = 0,
  50910. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50911. $async$returnValue, t1, _i, result;
  50912. var $async$_async_evaluate$_handleReturn$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50913. if ($async$errorCode === 1)
  50914. return P._asyncRethrow($async$result, $async$completer);
  50915. while (true)
  50916. switch ($async$goto) {
  50917. case 0:
  50918. // Function start
  50919. t1 = list.length, _i = 0;
  50920. case 3:
  50921. // for condition
  50922. if (!(_i < list.length)) {
  50923. // goto after for
  50924. $async$goto = 5;
  50925. break;
  50926. }
  50927. $async$goto = 6;
  50928. return P._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate$_handleReturn$1$2);
  50929. case 6:
  50930. // returning from await.
  50931. result = $async$result;
  50932. if (result != null) {
  50933. $async$returnValue = result;
  50934. // goto return
  50935. $async$goto = 1;
  50936. break;
  50937. }
  50938. case 4:
  50939. // for update
  50940. list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i;
  50941. // goto for condition
  50942. $async$goto = 3;
  50943. break;
  50944. case 5:
  50945. // after for
  50946. $async$returnValue = null;
  50947. // goto return
  50948. $async$goto = 1;
  50949. break;
  50950. case 1:
  50951. // return
  50952. return P._asyncReturn($async$returnValue, $async$completer);
  50953. }
  50954. });
  50955. return P._asyncStartSync($async$_async_evaluate$_handleReturn$1$2, $async$completer);
  50956. },
  50957. _async_evaluate$_withEnvironment$1$2: function(environment, callback, $T) {
  50958. return this._withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $T._eval$1("0*"));
  50959. },
  50960. _withEnvironment$body$_EvaluateVisitor: function(environment, callback, $T, $async$type) {
  50961. var $async$goto = 0,
  50962. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  50963. $async$returnValue, $async$self = this, result, oldEnvironment;
  50964. var $async$_async_evaluate$_withEnvironment$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50965. if ($async$errorCode === 1)
  50966. return P._asyncRethrow($async$result, $async$completer);
  50967. while (true)
  50968. switch ($async$goto) {
  50969. case 0:
  50970. // Function start
  50971. oldEnvironment = $async$self._async_evaluate$_environment;
  50972. $async$self._async_evaluate$_environment = environment;
  50973. $async$goto = 3;
  50974. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withEnvironment$1$2);
  50975. case 3:
  50976. // returning from await.
  50977. result = $async$result;
  50978. $async$self._async_evaluate$_environment = oldEnvironment;
  50979. $async$returnValue = result;
  50980. // goto return
  50981. $async$goto = 1;
  50982. break;
  50983. case 1:
  50984. // return
  50985. return P._asyncReturn($async$returnValue, $async$completer);
  50986. }
  50987. });
  50988. return P._asyncStartSync($async$_async_evaluate$_withEnvironment$1$2, $async$completer);
  50989. },
  50990. _async_evaluate$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  50991. return this._interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor);
  50992. },
  50993. _async_evaluate$_interpolationToValue$1: function(interpolation) {
  50994. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  50995. },
  50996. _async_evaluate$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  50997. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  50998. },
  50999. _interpolationToValue$body$_EvaluateVisitor: function(interpolation, trim, warnForColor) {
  51000. var $async$goto = 0,
  51001. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CssValue_legacy_String),
  51002. $async$returnValue, $async$self = this, result, t1;
  51003. var $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51004. if ($async$errorCode === 1)
  51005. return P._asyncRethrow($async$result, $async$completer);
  51006. while (true)
  51007. switch ($async$goto) {
  51008. case 0:
  51009. // Function start
  51010. $async$goto = 3;
  51011. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor);
  51012. case 3:
  51013. // returning from await.
  51014. result = $async$result;
  51015. t1 = trim ? B.trimAscii(result, true) : result;
  51016. $async$returnValue = new F.CssValue(t1, interpolation.span, type$.CssValue_legacy_String);
  51017. // goto return
  51018. $async$goto = 1;
  51019. break;
  51020. case 1:
  51021. // return
  51022. return P._asyncReturn($async$returnValue, $async$completer);
  51023. }
  51024. });
  51025. return P._asyncStartSync($async$_async_evaluate$_interpolationToValue$3$trim$warnForColor, $async$completer);
  51026. },
  51027. _async_evaluate$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  51028. return this._performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor);
  51029. },
  51030. _async_evaluate$_performInterpolation$1: function(interpolation) {
  51031. return this._async_evaluate$_performInterpolation$2$warnForColor(interpolation, false);
  51032. },
  51033. _performInterpolation$body$_EvaluateVisitor: function(interpolation, warnForColor) {
  51034. var $async$goto = 0,
  51035. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  51036. $async$returnValue, $async$self = this, $async$temp1;
  51037. var $async$_async_evaluate$_performInterpolation$2$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51038. if ($async$errorCode === 1)
  51039. return P._asyncRethrow($async$result, $async$completer);
  51040. while (true)
  51041. switch ($async$goto) {
  51042. case 0:
  51043. // Function start
  51044. $async$temp1 = J;
  51045. $async$goto = 3;
  51046. return P._asyncAwait(B.mapAsync(interpolation.contents, new E._EvaluateVisitor__performInterpolation_closure0($async$self, warnForColor), type$.legacy_Object, type$.legacy_String), $async$_async_evaluate$_performInterpolation$2$warnForColor);
  51047. case 3:
  51048. // returning from await.
  51049. $async$returnValue = $async$temp1.join$0$ax($async$result);
  51050. // goto return
  51051. $async$goto = 1;
  51052. break;
  51053. case 1:
  51054. // return
  51055. return P._asyncReturn($async$returnValue, $async$completer);
  51056. }
  51057. });
  51058. return P._asyncStartSync($async$_async_evaluate$_performInterpolation$2$warnForColor, $async$completer);
  51059. },
  51060. _evaluateToCss$2$quote: function(expression, quote) {
  51061. return this._evaluateToCss$body$_EvaluateVisitor(expression, quote);
  51062. },
  51063. _evaluateToCss$1: function(expression) {
  51064. return this._evaluateToCss$2$quote(expression, true);
  51065. },
  51066. _evaluateToCss$body$_EvaluateVisitor: function(expression, quote) {
  51067. var $async$goto = 0,
  51068. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  51069. $async$returnValue, $async$self = this;
  51070. var $async$_evaluateToCss$2$quote = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51071. if ($async$errorCode === 1)
  51072. return P._asyncRethrow($async$result, $async$completer);
  51073. while (true)
  51074. switch ($async$goto) {
  51075. case 0:
  51076. // Function start
  51077. $async$goto = 3;
  51078. return P._asyncAwait(expression.accept$1($async$self), $async$_evaluateToCss$2$quote);
  51079. case 3:
  51080. // returning from await.
  51081. $async$returnValue = $async$self._async_evaluate$_serialize$3$quote($async$result, expression, quote);
  51082. // goto return
  51083. $async$goto = 1;
  51084. break;
  51085. case 1:
  51086. // return
  51087. return P._asyncReturn($async$returnValue, $async$completer);
  51088. }
  51089. });
  51090. return P._asyncStartSync($async$_evaluateToCss$2$quote, $async$completer);
  51091. },
  51092. _async_evaluate$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  51093. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__serialize_closure0(value, quote));
  51094. },
  51095. _async_evaluate$_serialize$2: function(value, nodeWithSpan) {
  51096. return this._async_evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  51097. },
  51098. _async_evaluate$_expressionNode$1: function(expression) {
  51099. var t1;
  51100. if (!this._async_evaluate$_sourceMap)
  51101. return null;
  51102. if (expression instanceof S.VariableExpression) {
  51103. t1 = this._async_evaluate$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  51104. return t1 == null ? expression : t1;
  51105. } else
  51106. return expression;
  51107. },
  51108. _async_evaluate$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  51109. return this._withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $T._eval$1("0*"));
  51110. },
  51111. _async_evaluate$_withParent$2$2: function(node, callback, $S, $T) {
  51112. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  51113. },
  51114. _async_evaluate$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  51115. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  51116. },
  51117. _withParent$body$_EvaluateVisitor: function(node, callback, scopeWhen, through, $S, $T, $async$type) {
  51118. var $async$goto = 0,
  51119. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51120. $async$returnValue, $async$self = this, oldParent, result;
  51121. var $async$_async_evaluate$_withParent$2$4$scopeWhen$through = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51122. if ($async$errorCode === 1)
  51123. return P._asyncRethrow($async$result, $async$completer);
  51124. while (true)
  51125. switch ($async$goto) {
  51126. case 0:
  51127. // Function start
  51128. $async$self._async_evaluate$_addChild$2$through(node, through);
  51129. oldParent = $async$self._async_evaluate$_parent;
  51130. $async$self._async_evaluate$_parent = node;
  51131. $async$goto = 3;
  51132. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T._eval$1("0*")), $async$_async_evaluate$_withParent$2$4$scopeWhen$through);
  51133. case 3:
  51134. // returning from await.
  51135. result = $async$result;
  51136. $async$self._async_evaluate$_parent = oldParent;
  51137. $async$returnValue = result;
  51138. // goto return
  51139. $async$goto = 1;
  51140. break;
  51141. case 1:
  51142. // return
  51143. return P._asyncReturn($async$returnValue, $async$completer);
  51144. }
  51145. });
  51146. return P._asyncStartSync($async$_async_evaluate$_withParent$2$4$scopeWhen$through, $async$completer);
  51147. },
  51148. _async_evaluate$_addChild$2$through: function(node, through) {
  51149. var grandparent,
  51150. $parent = this._async_evaluate$_parent;
  51151. if (through != null) {
  51152. for (; through.call$1($parent);)
  51153. $parent = $parent._parent;
  51154. if ($parent.get$hasFollowingSibling()) {
  51155. grandparent = $parent._parent;
  51156. $parent = $parent.copyWithoutChildren$0();
  51157. grandparent.addChild$1($parent);
  51158. }
  51159. }
  51160. $parent.addChild$1(node);
  51161. },
  51162. _async_evaluate$_addChild$1: function(node) {
  51163. return this._async_evaluate$_addChild$2$through(node, null);
  51164. },
  51165. _async_evaluate$_withStyleRule$1$2: function(rule, callback, $T) {
  51166. return this._withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $T._eval$1("0*"));
  51167. },
  51168. _withStyleRule$body$_EvaluateVisitor: function(rule, callback, $T, $async$type) {
  51169. var $async$goto = 0,
  51170. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51171. $async$returnValue, $async$self = this, result, oldRule;
  51172. var $async$_async_evaluate$_withStyleRule$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51173. if ($async$errorCode === 1)
  51174. return P._asyncRethrow($async$result, $async$completer);
  51175. while (true)
  51176. switch ($async$goto) {
  51177. case 0:
  51178. // Function start
  51179. oldRule = $async$self._async_evaluate$_styleRule;
  51180. $async$self._async_evaluate$_styleRule = rule;
  51181. $async$goto = 3;
  51182. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStyleRule$1$2);
  51183. case 3:
  51184. // returning from await.
  51185. result = $async$result;
  51186. $async$self._async_evaluate$_styleRule = oldRule;
  51187. $async$returnValue = result;
  51188. // goto return
  51189. $async$goto = 1;
  51190. break;
  51191. case 1:
  51192. // return
  51193. return P._asyncReturn($async$returnValue, $async$completer);
  51194. }
  51195. });
  51196. return P._asyncStartSync($async$_async_evaluate$_withStyleRule$1$2, $async$completer);
  51197. },
  51198. _async_evaluate$_withMediaQueries$1$2: function(queries, callback, $T) {
  51199. return this._withMediaQueries$body$_EvaluateVisitor(queries, callback, $T, $T._eval$1("0*"));
  51200. },
  51201. _withMediaQueries$body$_EvaluateVisitor: function(queries, callback, $T, $async$type) {
  51202. var $async$goto = 0,
  51203. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51204. $async$returnValue, $async$self = this, result, oldMediaQueries;
  51205. var $async$_async_evaluate$_withMediaQueries$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51206. if ($async$errorCode === 1)
  51207. return P._asyncRethrow($async$result, $async$completer);
  51208. while (true)
  51209. switch ($async$goto) {
  51210. case 0:
  51211. // Function start
  51212. oldMediaQueries = $async$self._async_evaluate$_mediaQueries;
  51213. $async$self._async_evaluate$_mediaQueries = queries;
  51214. $async$goto = 3;
  51215. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withMediaQueries$1$2);
  51216. case 3:
  51217. // returning from await.
  51218. result = $async$result;
  51219. $async$self._async_evaluate$_mediaQueries = oldMediaQueries;
  51220. $async$returnValue = result;
  51221. // goto return
  51222. $async$goto = 1;
  51223. break;
  51224. case 1:
  51225. // return
  51226. return P._asyncReturn($async$returnValue, $async$completer);
  51227. }
  51228. });
  51229. return P._asyncStartSync($async$_async_evaluate$_withMediaQueries$1$2, $async$completer);
  51230. },
  51231. _async_evaluate$_withStackFrame$1$3: function(member, nodeWithSpan, callback, $T) {
  51232. return this._withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $T._eval$1("0*"));
  51233. },
  51234. _withStackFrame$body$_EvaluateVisitor: function(member, nodeWithSpan, callback, $T, $async$type) {
  51235. var $async$goto = 0,
  51236. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51237. $async$returnValue, $async$self = this, oldMember, result, t1;
  51238. var $async$_async_evaluate$_withStackFrame$1$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51239. if ($async$errorCode === 1)
  51240. return P._asyncRethrow($async$result, $async$completer);
  51241. while (true)
  51242. switch ($async$goto) {
  51243. case 0:
  51244. // Function start
  51245. t1 = $async$self._async_evaluate$_stack;
  51246. t1.push(new S.Tuple2($async$self._async_evaluate$_member, nodeWithSpan, type$.Tuple2_of_legacy_String_and_legacy_AstNode));
  51247. oldMember = $async$self._async_evaluate$_member;
  51248. $async$self._async_evaluate$_member = member;
  51249. $async$goto = 3;
  51250. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStackFrame$1$3);
  51251. case 3:
  51252. // returning from await.
  51253. result = $async$result;
  51254. $async$self._async_evaluate$_member = oldMember;
  51255. t1.pop();
  51256. $async$returnValue = result;
  51257. // goto return
  51258. $async$goto = 1;
  51259. break;
  51260. case 1:
  51261. // return
  51262. return P._asyncReturn($async$returnValue, $async$completer);
  51263. }
  51264. });
  51265. return P._asyncStartSync($async$_async_evaluate$_withStackFrame$1$3, $async$completer);
  51266. },
  51267. _async_evaluate$_stackFrame$2: function(member, span) {
  51268. var url = span.file.url;
  51269. return B.frameForSpan(span, member, url != null && this._async_evaluate$_importCache != null ? this._async_evaluate$_importCache.humanize$1(url) : url);
  51270. },
  51271. _async_evaluate$_stackTrace$1: function(span) {
  51272. var t2, cur, _this = this,
  51273. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  51274. for (t2 = _this._async_evaluate$_stack, t2 = new H.MappedListIterable(t2, new E._EvaluateVisitor__stackTrace_closure0(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame*>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  51275. cur = t2.__internal$_current;
  51276. t1.push(cur);
  51277. }
  51278. if (span != null)
  51279. t1.push(_this._async_evaluate$_stackFrame$2(_this._async_evaluate$_member, span));
  51280. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  51281. },
  51282. _async_evaluate$_stackTrace$0: function() {
  51283. return this._async_evaluate$_stackTrace$1(null);
  51284. },
  51285. _async_evaluate$_warn$3$deprecation: function(message, span, deprecation) {
  51286. return this._async_evaluate$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._async_evaluate$_stackTrace$1(span));
  51287. },
  51288. _async_evaluate$_warn$2: function(message, span) {
  51289. return this._async_evaluate$_warn$3$deprecation(message, span, false);
  51290. },
  51291. _async_evaluate$_exception$2: function(message, span) {
  51292. var t1 = span == null ? C.JSArray_methods.get$last(this._async_evaluate$_stack).item2.get$span() : span;
  51293. return new E.SassRuntimeException(this._async_evaluate$_stackTrace$1(span), message, t1);
  51294. },
  51295. _async_evaluate$_exception$1: function(message) {
  51296. return this._async_evaluate$_exception$2(message, null);
  51297. },
  51298. _async_evaluate$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  51299. var t1 = C.JSArray_methods.get$last(this._async_evaluate$_stack).item2.get$span();
  51300. return new E.MultiSpanSassRuntimeException(this._async_evaluate$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.legacy_FileSpan, type$.legacy_String), message, t1);
  51301. },
  51302. _async_evaluate$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  51303. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  51304. try {
  51305. t1 = callback.call$0();
  51306. return t1;
  51307. } catch (exception) {
  51308. t1 = H.unwrapException(exception);
  51309. if (t1 instanceof E.SassFormatException) {
  51310. error = t1;
  51311. t1 = error;
  51312. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  51313. span = nodeWithSpan.get$span();
  51314. t1 = span;
  51315. t2 = span;
  51316. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  51317. t2 = syntheticFile;
  51318. t1 = span.file.url;
  51319. t2.toString;
  51320. t2 = new H.CodeUnits(t2);
  51321. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  51322. t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  51323. t3.SourceFile$decoded$2$url(t2, t1);
  51324. t1 = span;
  51325. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  51326. t2 = error;
  51327. t2 = G.SourceSpanException.prototype.get$span.call(t2);
  51328. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  51329. t4 = span;
  51330. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  51331. t5 = error;
  51332. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  51333. syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  51334. throw H.wrapException(this._async_evaluate$_exception$2(error._span_exception$_message, syntheticSpan));
  51335. } else
  51336. throw exception;
  51337. }
  51338. },
  51339. _async_evaluate$_adjustParseError$2: function(nodeWithSpan, callback) {
  51340. return this._async_evaluate$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  51341. },
  51342. _async_evaluate$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  51343. var error, error0, t1, exception;
  51344. try {
  51345. t1 = callback.call$0();
  51346. return t1;
  51347. } catch (exception) {
  51348. t1 = H.unwrapException(exception);
  51349. if (t1 instanceof E.MultiSpanSassScriptException) {
  51350. error = t1;
  51351. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  51352. } else if (t1 instanceof E.SassScriptException) {
  51353. error0 = t1;
  51354. throw H.wrapException(this._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  51355. } else
  51356. throw exception;
  51357. }
  51358. },
  51359. _async_evaluate$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  51360. return this._async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  51361. },
  51362. _addExceptionSpanAsync$1$2: function(nodeWithSpan, callback, $T) {
  51363. return this._addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T._eval$1("0*"));
  51364. },
  51365. _addExceptionSpanAsync$body$_EvaluateVisitor: function(nodeWithSpan, callback, $T, $async$type) {
  51366. var $async$goto = 0,
  51367. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51368. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, error0, t1, exception, $async$exception;
  51369. var $async$_addExceptionSpanAsync$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51370. if ($async$errorCode === 1) {
  51371. $async$currentError = $async$result;
  51372. $async$goto = $async$handler;
  51373. }
  51374. while (true)
  51375. switch ($async$goto) {
  51376. case 0:
  51377. // Function start
  51378. $async$handler = 4;
  51379. $async$goto = 7;
  51380. return P._asyncAwait(callback.call$0(), $async$_addExceptionSpanAsync$1$2);
  51381. case 7:
  51382. // returning from await.
  51383. t1 = $async$result;
  51384. $async$returnValue = t1;
  51385. // goto return
  51386. $async$goto = 1;
  51387. break;
  51388. $async$handler = 2;
  51389. // goto after finally
  51390. $async$goto = 6;
  51391. break;
  51392. case 4:
  51393. // catch
  51394. $async$handler = 3;
  51395. $async$exception = $async$currentError;
  51396. t1 = H.unwrapException($async$exception);
  51397. if (t1 instanceof E.MultiSpanSassScriptException) {
  51398. error = t1;
  51399. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  51400. } else if (t1 instanceof E.SassScriptException) {
  51401. error0 = t1;
  51402. throw H.wrapException($async$self._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  51403. } else
  51404. throw $async$exception;
  51405. // goto after finally
  51406. $async$goto = 6;
  51407. break;
  51408. case 3:
  51409. // uncaught
  51410. // goto rethrow
  51411. $async$goto = 2;
  51412. break;
  51413. case 6:
  51414. // after finally
  51415. case 1:
  51416. // return
  51417. return P._asyncReturn($async$returnValue, $async$completer);
  51418. case 2:
  51419. // rethrow
  51420. return P._asyncRethrow($async$currentError, $async$completer);
  51421. }
  51422. });
  51423. return P._asyncStartSync($async$_addExceptionSpanAsync$1$2, $async$completer);
  51424. },
  51425. _async_evaluate$_addErrorSpan$1$2: function(nodeWithSpan, callback, $T) {
  51426. return this._addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T._eval$1("0*"));
  51427. },
  51428. _addErrorSpan$body$_EvaluateVisitor: function(nodeWithSpan, callback, $T, $async$type) {
  51429. var $async$goto = 0,
  51430. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  51431. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, t1, exception, $async$exception;
  51432. var $async$_async_evaluate$_addErrorSpan$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51433. if ($async$errorCode === 1) {
  51434. $async$currentError = $async$result;
  51435. $async$goto = $async$handler;
  51436. }
  51437. while (true)
  51438. switch ($async$goto) {
  51439. case 0:
  51440. // Function start
  51441. $async$handler = 4;
  51442. $async$goto = 7;
  51443. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_addErrorSpan$1$2);
  51444. case 7:
  51445. // returning from await.
  51446. t1 = $async$result;
  51447. $async$returnValue = t1;
  51448. // goto return
  51449. $async$goto = 1;
  51450. break;
  51451. $async$handler = 2;
  51452. // goto after finally
  51453. $async$goto = 6;
  51454. break;
  51455. case 4:
  51456. // catch
  51457. $async$handler = 3;
  51458. $async$exception = $async$currentError;
  51459. t1 = H.unwrapException($async$exception);
  51460. if (type$.legacy_SassRuntimeException._is(t1)) {
  51461. error = t1;
  51462. t1 = error.get$span();
  51463. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  51464. throw $async$exception;
  51465. throw H.wrapException(E.SassRuntimeException$(error._span_exception$_message, nodeWithSpan.get$span(), $async$self._async_evaluate$_stackTrace$0()));
  51466. } else
  51467. throw $async$exception;
  51468. // goto after finally
  51469. $async$goto = 6;
  51470. break;
  51471. case 3:
  51472. // uncaught
  51473. // goto rethrow
  51474. $async$goto = 2;
  51475. break;
  51476. case 6:
  51477. // after finally
  51478. case 1:
  51479. // return
  51480. return P._asyncReturn($async$returnValue, $async$completer);
  51481. case 2:
  51482. // rethrow
  51483. return P._asyncRethrow($async$currentError, $async$completer);
  51484. }
  51485. });
  51486. return P._asyncStartSync($async$_async_evaluate$_addErrorSpan$1$2, $async$completer);
  51487. }
  51488. };
  51489. E._EvaluateVisitor_closure9.prototype = {
  51490. call$1: function($arguments) {
  51491. var module, t2,
  51492. t1 = J.getInterceptor$asx($arguments),
  51493. variable = t1.$index($arguments, 0).assertString$1("name");
  51494. t1 = t1.$index($arguments, 1).get$realNull();
  51495. module = t1 == null ? null : t1.assertString$1("module");
  51496. t1 = this.$this._async_evaluate$_environment;
  51497. t2 = variable.text;
  51498. t2.toString;
  51499. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  51500. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51501. },
  51502. $signature: 13
  51503. };
  51504. E._EvaluateVisitor_closure10.prototype = {
  51505. call$1: function($arguments) {
  51506. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  51507. t1 = this.$this._async_evaluate$_environment,
  51508. t2 = variable.text;
  51509. t2.toString;
  51510. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51511. },
  51512. $signature: 13
  51513. };
  51514. E._EvaluateVisitor_closure11.prototype = {
  51515. call$1: function($arguments) {
  51516. var module, t2, t3, t4,
  51517. t1 = J.getInterceptor$asx($arguments),
  51518. variable = t1.$index($arguments, 0).assertString$1("name");
  51519. t1 = t1.$index($arguments, 1).get$realNull();
  51520. module = t1 == null ? null : t1.assertString$1("module");
  51521. t1 = this.$this;
  51522. t2 = t1._async_evaluate$_environment;
  51523. t3 = variable.text;
  51524. t3.toString;
  51525. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  51526. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._async_evaluate$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51527. },
  51528. $signature: 13
  51529. };
  51530. E._EvaluateVisitor_closure12.prototype = {
  51531. call$1: function($arguments) {
  51532. var module, t2,
  51533. t1 = J.getInterceptor$asx($arguments),
  51534. variable = t1.$index($arguments, 0).assertString$1("name");
  51535. t1 = t1.$index($arguments, 1).get$realNull();
  51536. module = t1 == null ? null : t1.assertString$1("module");
  51537. t1 = this.$this._async_evaluate$_environment;
  51538. t2 = variable.text;
  51539. t2.toString;
  51540. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  51541. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51542. },
  51543. $signature: 13
  51544. };
  51545. E._EvaluateVisitor_closure13.prototype = {
  51546. call$1: function($arguments) {
  51547. var t1 = this.$this._async_evaluate$_environment;
  51548. if (!t1._async_environment$_inMixin)
  51549. throw H.wrapException(E.SassScriptException$(string$.conten));
  51550. return t1._async_environment$_content != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51551. },
  51552. $signature: 13
  51553. };
  51554. E._EvaluateVisitor_closure14.prototype = {
  51555. call$1: function($arguments) {
  51556. var t2, t3, t4,
  51557. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  51558. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  51559. if (module == null)
  51560. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  51561. t1 = type$.legacy_Value;
  51562. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  51563. for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  51564. t4 = t3.get$current(t3);
  51565. t2.$indexSet(0, new D.SassString(t4.key, true), t4.value);
  51566. }
  51567. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  51568. },
  51569. $signature: 29
  51570. };
  51571. E._EvaluateVisitor_closure15.prototype = {
  51572. call$1: function($arguments) {
  51573. var t2, t3, t4,
  51574. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  51575. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  51576. if (module == null)
  51577. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  51578. t1 = type$.legacy_Value;
  51579. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  51580. for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  51581. t4 = t3.get$current(t3);
  51582. t2.$indexSet(0, new D.SassString(t4.key, true), new F.SassFunction(t4.value));
  51583. }
  51584. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  51585. },
  51586. $signature: 29
  51587. };
  51588. E._EvaluateVisitor_closure16.prototype = {
  51589. call$1: function($arguments) {
  51590. var module, callable,
  51591. t1 = J.getInterceptor$asx($arguments),
  51592. $name = t1.$index($arguments, 0).assertString$1("name"),
  51593. css = t1.$index($arguments, 1).get$isTruthy();
  51594. t1 = t1.$index($arguments, 2).get$realNull();
  51595. module = t1 == null ? null : t1.assertString$1("module");
  51596. if (css && module != null)
  51597. throw H.wrapException(string$.x24css_a);
  51598. if (css)
  51599. callable = new L.PlainCssCallable($name.text);
  51600. else {
  51601. t1 = this.$this;
  51602. callable = t1._async_evaluate$_addExceptionSpan$2(t1._async_evaluate$_callableNode, new E._EvaluateVisitor__closure4(t1, $name, module));
  51603. }
  51604. if (callable != null)
  51605. return new F.SassFunction(callable);
  51606. throw H.wrapException("Function not found: " + $name.toString$0(0));
  51607. },
  51608. $signature: 89
  51609. };
  51610. E._EvaluateVisitor__closure4.prototype = {
  51611. call$0: function() {
  51612. var t2,
  51613. t1 = this.name.text;
  51614. t1.toString;
  51615. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  51616. t2 = this.module;
  51617. t2 = t2 == null ? null : t2.text;
  51618. return this.$this._async_evaluate$_getFunction$2$namespace(t1, t2);
  51619. },
  51620. $signature: 63
  51621. };
  51622. E._EvaluateVisitor_closure17.prototype = {
  51623. call$1: function($arguments) {
  51624. return this.$call$body$_EvaluateVisitor_closure0($arguments);
  51625. },
  51626. $call$body$_EvaluateVisitor_closure0: function($arguments) {
  51627. var $async$goto = 0,
  51628. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51629. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, invocation, callable, t1, $function, args;
  51630. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51631. if ($async$errorCode === 1)
  51632. return P._asyncRethrow($async$result, $async$completer);
  51633. while (true)
  51634. switch ($async$goto) {
  51635. case 0:
  51636. // Function start
  51637. t1 = J.getInterceptor$asx($arguments);
  51638. $function = t1.$index($arguments, 0);
  51639. args = type$.legacy_SassArgumentList._as(t1.$index($arguments, 1));
  51640. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  51641. t2 = $async$self.$this;
  51642. t3 = t2._async_evaluate$_callableNode.get$span();
  51643. t4 = t2._async_evaluate$_callableNode.get$span();
  51644. args._wereKeywordsAccessed = true;
  51645. t5 = args._keywords;
  51646. if (t5.get$isEmpty(t5))
  51647. t5 = null;
  51648. else {
  51649. t6 = type$.legacy_Value;
  51650. t7 = P.LinkedHashMap_LinkedHashMap$_empty(t6, t6);
  51651. for (args._wereKeywordsAccessed = true, t5 = t5.get$entries(), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  51652. t8 = t5.get$current(t5);
  51653. t7.$indexSet(0, new D.SassString(t8.key, false), t8.value);
  51654. }
  51655. t5 = new F.ValueExpression(new A.SassMap(H.ConstantMap_ConstantMap$from(t7, t6, t6)), t2._async_evaluate$_callableNode.get$span());
  51656. }
  51657. invocation = X.ArgumentInvocation$(t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Expression), t3, t5, new F.ValueExpression(args, t4));
  51658. $async$goto = $function instanceof D.SassString ? 3 : 4;
  51659. break;
  51660. case 3:
  51661. // then
  51662. N.warn(string$.Passins + $function.toString$0(0) + ")) instead.", true);
  51663. $async$goto = 5;
  51664. return P._asyncAwait(t2.visitFunctionExpression$1(new F.FunctionExpression(null, X.Interpolation$(H.setRuntimeTypeInfo([$function.text], type$.JSArray_legacy_Object), t2._async_evaluate$_callableNode.get$span()), invocation, t2._async_evaluate$_callableNode.get$span())), $async$call$1);
  51665. case 5:
  51666. // returning from await.
  51667. $async$returnValue = $async$result;
  51668. // goto return
  51669. $async$goto = 1;
  51670. break;
  51671. case 4:
  51672. // join
  51673. callable = $function.assertFunction$1("function").callable;
  51674. $async$goto = type$.legacy_AsyncCallable._is(callable) ? 6 : 8;
  51675. break;
  51676. case 6:
  51677. // then
  51678. $async$goto = 9;
  51679. return P._asyncAwait(t2._async_evaluate$_runFunctionCallable$3(invocation, callable, t2._async_evaluate$_callableNode), $async$call$1);
  51680. case 9:
  51681. // returning from await.
  51682. $async$returnValue = $async$result;
  51683. // goto return
  51684. $async$goto = 1;
  51685. break;
  51686. // goto join
  51687. $async$goto = 7;
  51688. break;
  51689. case 8:
  51690. // else
  51691. throw H.wrapException(E.SassScriptException$("The function " + H.S(callable.get$name()) + string$.x20is_as));
  51692. case 7:
  51693. // join
  51694. case 1:
  51695. // return
  51696. return P._asyncReturn($async$returnValue, $async$completer);
  51697. }
  51698. });
  51699. return P._asyncStartSync($async$call$1, $async$completer);
  51700. }
  51701. };
  51702. E._EvaluateVisitor_closure18.prototype = {
  51703. call$1: function($arguments) {
  51704. return this.$call$body$_EvaluateVisitor_closure($arguments);
  51705. },
  51706. $call$body$_EvaluateVisitor_closure: function($arguments) {
  51707. var $async$goto = 0,
  51708. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  51709. $async$returnValue, $async$self = this, withMap, values, configuration, t2, t3, t1, url;
  51710. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51711. if ($async$errorCode === 1)
  51712. return P._asyncRethrow($async$result, $async$completer);
  51713. while (true)
  51714. switch ($async$goto) {
  51715. case 0:
  51716. // Function start
  51717. t1 = J.getInterceptor$asx($arguments);
  51718. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
  51719. t1 = t1.$index($arguments, 1).get$realNull();
  51720. t1 = t1 == null ? null : t1.assertMap$1("with");
  51721. withMap = t1 == null ? null : t1.contents;
  51722. if (withMap != null) {
  51723. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue);
  51724. t1 = $async$self.$this;
  51725. withMap.forEach$1(0, new E._EvaluateVisitor__closure2(values, t1._async_evaluate$_callableNode.get$span()));
  51726. configuration = new A.Configuration(values, t1._async_evaluate$_callableNode, false);
  51727. } else
  51728. configuration = C.Configuration_Map_empty_null_true;
  51729. t1 = $async$self.$this;
  51730. t2 = t1._async_evaluate$_callableNode;
  51731. t3 = t2.get$span();
  51732. t3 = t3 == null ? null : t3.file.url;
  51733. $async$goto = 3;
  51734. return P._asyncAwait(t1._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new E._EvaluateVisitor__closure3(t1), t3, configuration, true), $async$call$1);
  51735. case 3:
  51736. // returning from await.
  51737. t1._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  51738. $async$returnValue = null;
  51739. // goto return
  51740. $async$goto = 1;
  51741. break;
  51742. case 1:
  51743. // return
  51744. return P._asyncReturn($async$returnValue, $async$completer);
  51745. }
  51746. });
  51747. return P._asyncStartSync($async$call$1, $async$completer);
  51748. }
  51749. };
  51750. E._EvaluateVisitor__closure2.prototype = {
  51751. call$2: function(variable, value) {
  51752. var $name,
  51753. t1 = variable.assertString$1("with key").text;
  51754. t1.toString;
  51755. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  51756. t1 = this.values;
  51757. if (t1.containsKey$1($name))
  51758. throw H.wrapException("The variable $" + $name + " was configured twice.");
  51759. t1.$indexSet(0, $name, new Z.ConfiguredValue(value, this.span, null));
  51760. }
  51761. };
  51762. E._EvaluateVisitor__closure3.prototype = {
  51763. call$1: function(module) {
  51764. var t1 = this.$this;
  51765. return t1._async_evaluate$_combineCss$2$clone(module, true).accept$1(t1);
  51766. }
  51767. };
  51768. E._EvaluateVisitor_run_closure0.prototype = {
  51769. call$0: function() {
  51770. var $async$goto = 0,
  51771. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_EvaluateResult),
  51772. $async$returnValue, $async$self = this, t1, t2, url, $async$temp1, $async$temp2;
  51773. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51774. if ($async$errorCode === 1)
  51775. return P._asyncRethrow($async$result, $async$completer);
  51776. while (true)
  51777. switch ($async$goto) {
  51778. case 0:
  51779. // Function start
  51780. t1 = $async$self.node;
  51781. t2 = t1.span;
  51782. url = t2 == null ? null : t2.file.url;
  51783. if (url != null)
  51784. $async$self.$this._async_evaluate$_activeModules.$indexSet(0, url, null);
  51785. t2 = $async$self.$this;
  51786. $async$temp1 = E;
  51787. $async$temp2 = t2;
  51788. $async$goto = 3;
  51789. return P._asyncAwait(t2._async_evaluate$_execute$2($async$self.importer, t1), $async$call$0);
  51790. case 3:
  51791. // returning from await.
  51792. $async$returnValue = new $async$temp1.EvaluateResult($async$temp2._async_evaluate$_combineCss$1($async$result));
  51793. // goto return
  51794. $async$goto = 1;
  51795. break;
  51796. case 1:
  51797. // return
  51798. return P._asyncReturn($async$returnValue, $async$completer);
  51799. }
  51800. });
  51801. return P._asyncStartSync($async$call$0, $async$completer);
  51802. },
  51803. $signature: 111
  51804. };
  51805. E._EvaluateVisitor__withWarnCallback_closure0.prototype = {
  51806. call$2: function(message, deprecation) {
  51807. var t1 = this.$this,
  51808. t2 = t1._async_evaluate$_importSpan;
  51809. return t1._async_evaluate$_warn$3$deprecation(message, t2 == null ? t1._async_evaluate$_callableNode.get$span() : t2, deprecation);
  51810. },
  51811. "call*": "call$2",
  51812. $requiredArgCount: 2
  51813. };
  51814. E._EvaluateVisitor__loadModule_closure1.prototype = {
  51815. call$0: function() {
  51816. return this.callback.call$1(this.builtInModule);
  51817. },
  51818. $signature: 1
  51819. };
  51820. E._EvaluateVisitor__loadModule_closure2.prototype = {
  51821. call$0: function() {
  51822. var $async$goto = 0,
  51823. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  51824. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, module, error, error0, error1, error2, message, previousLoad, exception, t1, t2, result, importer, stylesheet, canonicalUrl, t3, $async$exception;
  51825. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51826. if ($async$errorCode === 1) {
  51827. $async$currentError = $async$result;
  51828. $async$goto = $async$handler;
  51829. }
  51830. while (true)
  51831. switch ($async$goto) {
  51832. case 0:
  51833. // Function start
  51834. t1 = $async$self.$this;
  51835. t2 = $async$self.nodeWithSpan;
  51836. $async$goto = 2;
  51837. return P._asyncAwait(t1._async_evaluate$_loadStylesheet$3$baseUrl(J.toString$0$($async$self.url), t2.get$span(), $async$self.baseUrl), $async$call$0);
  51838. case 2:
  51839. // returning from await.
  51840. result = $async$result;
  51841. importer = result.item1;
  51842. stylesheet = result.item2;
  51843. canonicalUrl = stylesheet.span.file.url;
  51844. t3 = t1._async_evaluate$_activeModules;
  51845. if (t3.containsKey$1(canonicalUrl)) {
  51846. message = $async$self.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : string$.Module;
  51847. previousLoad = t3.$index(0, canonicalUrl);
  51848. throw H.wrapException(previousLoad == null ? t1._async_evaluate$_exception$1(message) : t1._async_evaluate$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  51849. }
  51850. t3.$indexSet(0, canonicalUrl, t2);
  51851. module = null;
  51852. $async$handler = 3;
  51853. $async$goto = 6;
  51854. return P._asyncAwait(t1._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
  51855. case 6:
  51856. // returning from await.
  51857. module = $async$result;
  51858. $async$next.push(5);
  51859. // goto finally
  51860. $async$goto = 4;
  51861. break;
  51862. case 3:
  51863. // uncaught
  51864. $async$next = [1];
  51865. case 4:
  51866. // finally
  51867. $async$handler = 1;
  51868. t3.remove$1(0, canonicalUrl);
  51869. // goto the next finally handler
  51870. $async$goto = $async$next.pop();
  51871. break;
  51872. case 5:
  51873. // after finally
  51874. $async$handler = 8;
  51875. $async$goto = 11;
  51876. return P._asyncAwait($async$self.callback.call$1(module), $async$call$0);
  51877. case 11:
  51878. // returning from await.
  51879. $async$handler = 1;
  51880. // goto after finally
  51881. $async$goto = 10;
  51882. break;
  51883. case 8:
  51884. // catch
  51885. $async$handler = 7;
  51886. $async$exception = $async$currentError;
  51887. t2 = H.unwrapException($async$exception);
  51888. if (type$.legacy_SassRuntimeException._is(t2))
  51889. throw $async$exception;
  51890. else if (t2 instanceof E.MultiSpanSassException) {
  51891. error = t2;
  51892. throw H.wrapException(E.MultiSpanSassRuntimeException$(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._async_evaluate$_stackTrace$1(error.get$span())));
  51893. } else if (t2 instanceof E.SassException) {
  51894. error0 = t2;
  51895. throw H.wrapException(t1._async_evaluate$_exception$2(error0._span_exception$_message, error0.get$span()));
  51896. } else if (t2 instanceof E.MultiSpanSassScriptException) {
  51897. error1 = t2;
  51898. throw H.wrapException(t1._async_evaluate$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  51899. } else if (t2 instanceof E.SassScriptException) {
  51900. error2 = t2;
  51901. throw H.wrapException(t1._async_evaluate$_exception$1(error2.message));
  51902. } else
  51903. throw $async$exception;
  51904. // goto after finally
  51905. $async$goto = 10;
  51906. break;
  51907. case 7:
  51908. // uncaught
  51909. // goto rethrow
  51910. $async$goto = 1;
  51911. break;
  51912. case 10:
  51913. // after finally
  51914. // implicit return
  51915. return P._asyncReturn(null, $async$completer);
  51916. case 1:
  51917. // rethrow
  51918. return P._asyncRethrow($async$currentError, $async$completer);
  51919. }
  51920. });
  51921. return P._asyncStartSync($async$call$0, $async$completer);
  51922. },
  51923. $signature: 2
  51924. };
  51925. E._EvaluateVisitor__execute_closure0.prototype = {
  51926. call$0: function() {
  51927. var $async$goto = 0,
  51928. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  51929. $async$self = this, t2, t3, t4, css, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtender, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldAtRootExcludingStyleRule, oldInKeyframes, oldConfiguration;
  51930. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51931. if ($async$errorCode === 1)
  51932. return P._asyncRethrow($async$result, $async$completer);
  51933. while (true)
  51934. switch ($async$goto) {
  51935. case 0:
  51936. // Function start
  51937. t1 = $async$self.$this;
  51938. oldImporter = t1._async_evaluate$_importer;
  51939. oldStylesheet = t1._async_evaluate$_stylesheet;
  51940. oldRoot = t1._async_evaluate$_root;
  51941. oldParent = t1._async_evaluate$_parent;
  51942. oldEndOfImports = t1._async_evaluate$_endOfImports;
  51943. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  51944. oldExtender = t1._async_evaluate$_extender;
  51945. oldStyleRule = t1._async_evaluate$_styleRule;
  51946. oldMediaQueries = t1._async_evaluate$_mediaQueries;
  51947. oldDeclarationName = t1._async_evaluate$_declarationName;
  51948. oldInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  51949. oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
  51950. oldInKeyframes = t1._async_evaluate$_inKeyframes;
  51951. oldConfiguration = t1._async_evaluate$_configuration;
  51952. t1._async_evaluate$_importer = $async$self.importer;
  51953. t2 = t1._async_evaluate$_stylesheet = $async$self.stylesheet;
  51954. t3 = t2.span;
  51955. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  51956. t1._async_evaluate$_parent = t1._async_evaluate$_root = new V.ModifiableCssStylesheet(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_legacy_ModifiableCssNode), t4);
  51957. t1._async_evaluate$_endOfImports = 0;
  51958. t1._async_evaluate$_outOfOrderImports = null;
  51959. t1._async_evaluate$_extender = $async$self.extender;
  51960. t1._async_evaluate$_declarationName = t1._async_evaluate$_mediaQueries = t1._async_evaluate$_styleRule = null;
  51961. t1._async_evaluate$_inKeyframes = t1._async_evaluate$_atRootExcludingStyleRule = t1._async_evaluate$_inUnknownAtRule = false;
  51962. t4 = $async$self.configuration;
  51963. if (t4 != null)
  51964. t1._async_evaluate$_configuration = t4;
  51965. $async$goto = 2;
  51966. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  51967. case 2:
  51968. // returning from await.
  51969. css = t1._async_evaluate$_outOfOrderImports == null ? t1._async_evaluate$_root : new V.CssStylesheet(new P.UnmodifiableListView(t1._async_evaluate$_addOutOfOrderImports$0(), type$.UnmodifiableListView_legacy_CssNode), t3);
  51970. $async$self._box_0.css = css;
  51971. t1._async_evaluate$_importer = oldImporter;
  51972. t1._async_evaluate$_stylesheet = oldStylesheet;
  51973. t1._async_evaluate$_root = oldRoot;
  51974. t1._async_evaluate$_parent = oldParent;
  51975. t1._async_evaluate$_endOfImports = oldEndOfImports;
  51976. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  51977. t1._async_evaluate$_extender = oldExtender;
  51978. t1._async_evaluate$_styleRule = oldStyleRule;
  51979. t1._async_evaluate$_mediaQueries = oldMediaQueries;
  51980. t1._async_evaluate$_declarationName = oldDeclarationName;
  51981. t1._async_evaluate$_inUnknownAtRule = oldInUnknownAtRule;
  51982. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  51983. t1._async_evaluate$_inKeyframes = oldInKeyframes;
  51984. t1._async_evaluate$_configuration = oldConfiguration;
  51985. // implicit return
  51986. return P._asyncReturn(null, $async$completer);
  51987. }
  51988. });
  51989. return P._asyncStartSync($async$call$0, $async$completer);
  51990. },
  51991. $signature: 2
  51992. };
  51993. E._EvaluateVisitor__combineCss_closure2.prototype = {
  51994. call$1: function(module) {
  51995. return module.get$transitivelyContainsCss();
  51996. }
  51997. };
  51998. E._EvaluateVisitor__combineCss_closure3.prototype = {
  51999. call$1: function(target) {
  52000. return !this.selectors.contains$1(0, target);
  52001. }
  52002. };
  52003. E._EvaluateVisitor__combineCss_closure4.prototype = {
  52004. call$1: function(module) {
  52005. return module.cloneCss$0();
  52006. }
  52007. };
  52008. E._EvaluateVisitor__extendModules_closure1.prototype = {
  52009. call$1: function(target) {
  52010. return !this.originalSelectors.contains$1(0, target);
  52011. }
  52012. };
  52013. E._EvaluateVisitor__extendModules_closure2.prototype = {
  52014. call$0: function() {
  52015. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extender);
  52016. },
  52017. $signature: 64
  52018. };
  52019. E._EvaluateVisitor__topologicalModules_visitModule0.prototype = {
  52020. call$1: function(module) {
  52021. var t1, t2, t3, _i, upstream;
  52022. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  52023. upstream = t1[_i];
  52024. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  52025. this.call$1(upstream);
  52026. }
  52027. this.sorted.addFirst$1(module);
  52028. }
  52029. };
  52030. E._EvaluateVisitor_visitAtRootRule_closure2.prototype = {
  52031. call$0: function() {
  52032. var t1 = S.SpanScanner$(this.resolved, null);
  52033. return new V.AtRootQueryParser(t1, this.$this._async_evaluate$_logger).parse$0();
  52034. },
  52035. $signature: 57
  52036. };
  52037. E._EvaluateVisitor_visitAtRootRule_closure3.prototype = {
  52038. call$0: function() {
  52039. var $async$goto = 0,
  52040. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52041. $async$self = this, t1, t2, t3, _i;
  52042. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52043. if ($async$errorCode === 1)
  52044. return P._asyncRethrow($async$result, $async$completer);
  52045. while (true)
  52046. switch ($async$goto) {
  52047. case 0:
  52048. // Function start
  52049. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52050. case 2:
  52051. // for condition
  52052. if (!(_i < t2)) {
  52053. // goto after for
  52054. $async$goto = 4;
  52055. break;
  52056. }
  52057. $async$goto = 5;
  52058. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52059. case 5:
  52060. // returning from await.
  52061. case 3:
  52062. // for update
  52063. ++_i;
  52064. // goto for condition
  52065. $async$goto = 2;
  52066. break;
  52067. case 4:
  52068. // after for
  52069. // implicit return
  52070. return P._asyncReturn(null, $async$completer);
  52071. }
  52072. });
  52073. return P._asyncStartSync($async$call$0, $async$completer);
  52074. },
  52075. $signature: 2
  52076. };
  52077. E._EvaluateVisitor_visitAtRootRule_closure4.prototype = {
  52078. call$0: function() {
  52079. var $async$goto = 0,
  52080. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52081. $async$self = this, t1, t2, t3, _i;
  52082. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52083. if ($async$errorCode === 1)
  52084. return P._asyncRethrow($async$result, $async$completer);
  52085. while (true)
  52086. switch ($async$goto) {
  52087. case 0:
  52088. // Function start
  52089. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52090. case 2:
  52091. // for condition
  52092. if (!(_i < t2)) {
  52093. // goto after for
  52094. $async$goto = 4;
  52095. break;
  52096. }
  52097. $async$goto = 5;
  52098. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52099. case 5:
  52100. // returning from await.
  52101. case 3:
  52102. // for update
  52103. ++_i;
  52104. // goto for condition
  52105. $async$goto = 2;
  52106. break;
  52107. case 4:
  52108. // after for
  52109. // implicit return
  52110. return P._asyncReturn(null, $async$completer);
  52111. }
  52112. });
  52113. return P._asyncStartSync($async$call$0, $async$completer);
  52114. },
  52115. "call*": "call$0",
  52116. $requiredArgCount: 0,
  52117. $signature: 2
  52118. };
  52119. E._EvaluateVisitor__scopeForAtRoot_closure5.prototype = {
  52120. call$1: function(callback) {
  52121. var $async$goto = 0,
  52122. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52123. $async$self = this, t1, oldParent;
  52124. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52125. if ($async$errorCode === 1)
  52126. return P._asyncRethrow($async$result, $async$completer);
  52127. while (true)
  52128. switch ($async$goto) {
  52129. case 0:
  52130. // Function start
  52131. t1 = $async$self.$this;
  52132. oldParent = t1._async_evaluate$_parent;
  52133. t1._async_evaluate$_parent = $async$self.newParent;
  52134. $async$goto = 2;
  52135. return P._asyncAwait(t1._async_evaluate$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  52136. case 2:
  52137. // returning from await.
  52138. t1._async_evaluate$_parent = oldParent;
  52139. // implicit return
  52140. return P._asyncReturn(null, $async$completer);
  52141. }
  52142. });
  52143. return P._asyncStartSync($async$call$1, $async$completer);
  52144. }
  52145. };
  52146. E._EvaluateVisitor__scopeForAtRoot_closure6.prototype = {
  52147. call$1: function(callback) {
  52148. var $async$goto = 0,
  52149. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52150. $async$self = this, t1, oldAtRootExcludingStyleRule;
  52151. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52152. if ($async$errorCode === 1)
  52153. return P._asyncRethrow($async$result, $async$completer);
  52154. while (true)
  52155. switch ($async$goto) {
  52156. case 0:
  52157. // Function start
  52158. t1 = $async$self.$this;
  52159. oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
  52160. t1._async_evaluate$_atRootExcludingStyleRule = true;
  52161. $async$goto = 2;
  52162. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  52163. case 2:
  52164. // returning from await.
  52165. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  52166. // implicit return
  52167. return P._asyncReturn(null, $async$completer);
  52168. }
  52169. });
  52170. return P._asyncStartSync($async$call$1, $async$completer);
  52171. }
  52172. };
  52173. E._EvaluateVisitor__scopeForAtRoot_closure7.prototype = {
  52174. call$1: function(callback) {
  52175. return this.$this._async_evaluate$_withMediaQueries$1$2(null, new E._EvaluateVisitor__scopeForAtRoot__closure0(this.innerScope, callback), type$.Null);
  52176. }
  52177. };
  52178. E._EvaluateVisitor__scopeForAtRoot__closure0.prototype = {
  52179. call$0: function() {
  52180. return this.innerScope.call$1(this.callback);
  52181. },
  52182. $signature: 2
  52183. };
  52184. E._EvaluateVisitor__scopeForAtRoot_closure8.prototype = {
  52185. call$1: function(callback) {
  52186. var $async$goto = 0,
  52187. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52188. $async$self = this, t1, wasInKeyframes;
  52189. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52190. if ($async$errorCode === 1)
  52191. return P._asyncRethrow($async$result, $async$completer);
  52192. while (true)
  52193. switch ($async$goto) {
  52194. case 0:
  52195. // Function start
  52196. t1 = $async$self.$this;
  52197. wasInKeyframes = t1._async_evaluate$_inKeyframes;
  52198. t1._async_evaluate$_inKeyframes = false;
  52199. $async$goto = 2;
  52200. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  52201. case 2:
  52202. // returning from await.
  52203. t1._async_evaluate$_inKeyframes = wasInKeyframes;
  52204. // implicit return
  52205. return P._asyncReturn(null, $async$completer);
  52206. }
  52207. });
  52208. return P._asyncStartSync($async$call$1, $async$completer);
  52209. }
  52210. };
  52211. E._EvaluateVisitor__scopeForAtRoot_closure9.prototype = {
  52212. call$1: function($parent) {
  52213. return type$.legacy_CssAtRule._is($parent);
  52214. }
  52215. };
  52216. E._EvaluateVisitor__scopeForAtRoot_closure10.prototype = {
  52217. call$1: function(callback) {
  52218. var $async$goto = 0,
  52219. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52220. $async$self = this, t1, wasInUnknownAtRule;
  52221. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52222. if ($async$errorCode === 1)
  52223. return P._asyncRethrow($async$result, $async$completer);
  52224. while (true)
  52225. switch ($async$goto) {
  52226. case 0:
  52227. // Function start
  52228. t1 = $async$self.$this;
  52229. wasInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  52230. t1._async_evaluate$_inUnknownAtRule = false;
  52231. $async$goto = 2;
  52232. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  52233. case 2:
  52234. // returning from await.
  52235. t1._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  52236. // implicit return
  52237. return P._asyncReturn(null, $async$completer);
  52238. }
  52239. });
  52240. return P._asyncStartSync($async$call$1, $async$completer);
  52241. }
  52242. };
  52243. E._EvaluateVisitor_visitContentRule_closure0.prototype = {
  52244. call$0: function() {
  52245. var $async$goto = 0,
  52246. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52247. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  52248. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52249. if ($async$errorCode === 1)
  52250. return P._asyncRethrow($async$result, $async$completer);
  52251. while (true)
  52252. switch ($async$goto) {
  52253. case 0:
  52254. // Function start
  52255. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52256. case 3:
  52257. // for condition
  52258. if (!(_i < t2)) {
  52259. // goto after for
  52260. $async$goto = 5;
  52261. break;
  52262. }
  52263. $async$goto = 6;
  52264. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52265. case 6:
  52266. // returning from await.
  52267. case 4:
  52268. // for update
  52269. ++_i;
  52270. // goto for condition
  52271. $async$goto = 3;
  52272. break;
  52273. case 5:
  52274. // after for
  52275. $async$returnValue = null;
  52276. // goto return
  52277. $async$goto = 1;
  52278. break;
  52279. case 1:
  52280. // return
  52281. return P._asyncReturn($async$returnValue, $async$completer);
  52282. }
  52283. });
  52284. return P._asyncStartSync($async$call$0, $async$completer);
  52285. },
  52286. $signature: 2
  52287. };
  52288. E._EvaluateVisitor_visitDeclaration_closure0.prototype = {
  52289. call$0: function() {
  52290. var $async$goto = 0,
  52291. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52292. $async$self = this, t1, t2, t3, _i;
  52293. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52294. if ($async$errorCode === 1)
  52295. return P._asyncRethrow($async$result, $async$completer);
  52296. while (true)
  52297. switch ($async$goto) {
  52298. case 0:
  52299. // Function start
  52300. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52301. case 2:
  52302. // for condition
  52303. if (!(_i < t2)) {
  52304. // goto after for
  52305. $async$goto = 4;
  52306. break;
  52307. }
  52308. $async$goto = 5;
  52309. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52310. case 5:
  52311. // returning from await.
  52312. case 3:
  52313. // for update
  52314. ++_i;
  52315. // goto for condition
  52316. $async$goto = 2;
  52317. break;
  52318. case 4:
  52319. // after for
  52320. // implicit return
  52321. return P._asyncReturn(null, $async$completer);
  52322. }
  52323. });
  52324. return P._asyncStartSync($async$call$0, $async$completer);
  52325. },
  52326. $signature: 2
  52327. };
  52328. E._EvaluateVisitor_visitEachRule_closure2.prototype = {
  52329. call$1: function(value) {
  52330. return this.$this._async_evaluate$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  52331. }
  52332. };
  52333. E._EvaluateVisitor_visitEachRule_closure3.prototype = {
  52334. call$1: function(value) {
  52335. return this.$this._async_evaluate$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  52336. }
  52337. };
  52338. E._EvaluateVisitor_visitEachRule_closure4.prototype = {
  52339. call$0: function() {
  52340. var _this = this,
  52341. t1 = _this.$this;
  52342. return t1._async_evaluate$_handleReturn$2(_this.list.get$asList(), new E._EvaluateVisitor_visitEachRule__closure0(t1, _this.setVariables, _this.node));
  52343. },
  52344. $signature: 23
  52345. };
  52346. E._EvaluateVisitor_visitEachRule__closure0.prototype = {
  52347. call$1: function(element) {
  52348. var t1;
  52349. this.setVariables.call$1(element);
  52350. t1 = this.$this;
  52351. return t1._async_evaluate$_handleReturn$2(this.node.children, new E._EvaluateVisitor_visitEachRule___closure0(t1));
  52352. }
  52353. };
  52354. E._EvaluateVisitor_visitEachRule___closure0.prototype = {
  52355. call$1: function(child) {
  52356. return child.accept$1(this.$this);
  52357. }
  52358. };
  52359. E._EvaluateVisitor_visitExtendRule_closure0.prototype = {
  52360. call$0: function() {
  52361. var t1 = this.targetText;
  52362. return D.SelectorList_SelectorList$parse(B.trimAscii(t1.get$value(t1), true), false, true, this.$this._async_evaluate$_logger);
  52363. },
  52364. $signature: 31
  52365. };
  52366. E._EvaluateVisitor_visitAtRule_closure1.prototype = {
  52367. call$0: function() {
  52368. var $async$goto = 0,
  52369. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52370. $async$self = this, t3, _i, t1, t2;
  52371. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52372. if ($async$errorCode === 1)
  52373. return P._asyncRethrow($async$result, $async$completer);
  52374. while (true)
  52375. switch ($async$goto) {
  52376. case 0:
  52377. // Function start
  52378. t1 = $async$self.$this;
  52379. t2 = t1._async_evaluate$_styleRule;
  52380. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) || t1._async_evaluate$_inKeyframes ? 2 : 4;
  52381. break;
  52382. case 2:
  52383. // then
  52384. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  52385. case 5:
  52386. // for condition
  52387. if (!(_i < t3)) {
  52388. // goto after for
  52389. $async$goto = 7;
  52390. break;
  52391. }
  52392. $async$goto = 8;
  52393. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  52394. case 8:
  52395. // returning from await.
  52396. case 6:
  52397. // for update
  52398. ++_i;
  52399. // goto for condition
  52400. $async$goto = 5;
  52401. break;
  52402. case 7:
  52403. // after for
  52404. // goto join
  52405. $async$goto = 3;
  52406. break;
  52407. case 4:
  52408. // else
  52409. $async$goto = 9;
  52410. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitAtRule__closure0(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  52411. case 9:
  52412. // returning from await.
  52413. case 3:
  52414. // join
  52415. // implicit return
  52416. return P._asyncReturn(null, $async$completer);
  52417. }
  52418. });
  52419. return P._asyncStartSync($async$call$0, $async$completer);
  52420. },
  52421. $signature: 2
  52422. };
  52423. E._EvaluateVisitor_visitAtRule__closure0.prototype = {
  52424. call$0: function() {
  52425. var $async$goto = 0,
  52426. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52427. $async$self = this, t1, t2, t3, _i;
  52428. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52429. if ($async$errorCode === 1)
  52430. return P._asyncRethrow($async$result, $async$completer);
  52431. while (true)
  52432. switch ($async$goto) {
  52433. case 0:
  52434. // Function start
  52435. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  52436. case 2:
  52437. // for condition
  52438. if (!(_i < t2)) {
  52439. // goto after for
  52440. $async$goto = 4;
  52441. break;
  52442. }
  52443. $async$goto = 5;
  52444. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  52445. case 5:
  52446. // returning from await.
  52447. case 3:
  52448. // for update
  52449. ++_i;
  52450. // goto for condition
  52451. $async$goto = 2;
  52452. break;
  52453. case 4:
  52454. // after for
  52455. // implicit return
  52456. return P._asyncReturn(null, $async$completer);
  52457. }
  52458. });
  52459. return P._asyncStartSync($async$call$0, $async$completer);
  52460. },
  52461. $signature: 2
  52462. };
  52463. E._EvaluateVisitor_visitAtRule_closure2.prototype = {
  52464. call$1: function(node) {
  52465. return type$.legacy_CssStyleRule._is(node);
  52466. }
  52467. };
  52468. E._EvaluateVisitor_visitForRule_closure4.prototype = {
  52469. call$0: function() {
  52470. var $async$goto = 0,
  52471. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber),
  52472. $async$returnValue, $async$self = this;
  52473. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52474. if ($async$errorCode === 1)
  52475. return P._asyncRethrow($async$result, $async$completer);
  52476. while (true)
  52477. switch ($async$goto) {
  52478. case 0:
  52479. // Function start
  52480. $async$goto = 3;
  52481. return P._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  52482. case 3:
  52483. // returning from await.
  52484. $async$returnValue = $async$result.assertNumber$0();
  52485. // goto return
  52486. $async$goto = 1;
  52487. break;
  52488. case 1:
  52489. // return
  52490. return P._asyncReturn($async$returnValue, $async$completer);
  52491. }
  52492. });
  52493. return P._asyncStartSync($async$call$0, $async$completer);
  52494. },
  52495. $signature: 95
  52496. };
  52497. E._EvaluateVisitor_visitForRule_closure5.prototype = {
  52498. call$0: function() {
  52499. var $async$goto = 0,
  52500. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber),
  52501. $async$returnValue, $async$self = this;
  52502. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52503. if ($async$errorCode === 1)
  52504. return P._asyncRethrow($async$result, $async$completer);
  52505. while (true)
  52506. switch ($async$goto) {
  52507. case 0:
  52508. // Function start
  52509. $async$goto = 3;
  52510. return P._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  52511. case 3:
  52512. // returning from await.
  52513. $async$returnValue = $async$result.assertNumber$0();
  52514. // goto return
  52515. $async$goto = 1;
  52516. break;
  52517. case 1:
  52518. // return
  52519. return P._asyncReturn($async$returnValue, $async$completer);
  52520. }
  52521. });
  52522. return P._asyncStartSync($async$call$0, $async$completer);
  52523. },
  52524. $signature: 95
  52525. };
  52526. E._EvaluateVisitor_visitForRule_closure6.prototype = {
  52527. call$0: function() {
  52528. var t1 = this.toNumber,
  52529. t2 = t1.numeratorUnits;
  52530. t1 = t1.denominatorUnits;
  52531. return T.SassNumber$withUnits(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
  52532. },
  52533. $signature: 7
  52534. };
  52535. E._EvaluateVisitor_visitForRule_closure7.prototype = {
  52536. call$0: function() {
  52537. return this.toNumber.assertInt$0();
  52538. },
  52539. $signature: 7
  52540. };
  52541. E._EvaluateVisitor_visitForRule_closure8.prototype = {
  52542. call$0: function() {
  52543. var $async$goto = 0,
  52544. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  52545. $async$returnValue, $async$self = this, i, t3, t4, t5, t6, result, t1, t2, nodeWithSpan;
  52546. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52547. if ($async$errorCode === 1)
  52548. return P._asyncRethrow($async$result, $async$completer);
  52549. while (true)
  52550. switch ($async$goto) {
  52551. case 0:
  52552. // Function start
  52553. t1 = $async$self.$this;
  52554. t2 = $async$self.node;
  52555. nodeWithSpan = t1._async_evaluate$_expressionNode$1(t2.from);
  52556. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.children, t2 = t2.variable;
  52557. case 3:
  52558. // for condition
  52559. if (!(i !== t3.to)) {
  52560. // goto after for
  52561. $async$goto = 5;
  52562. break;
  52563. }
  52564. t6 = t1._async_evaluate$_environment;
  52565. t6.setLocalVariable$3(t2, new T.SassNumber(i, C.List_empty, C.List_empty, null), nodeWithSpan);
  52566. $async$goto = 6;
  52567. return P._asyncAwait(t1._async_evaluate$_handleReturn$2(t5, new E._EvaluateVisitor_visitForRule__closure0(t1)), $async$call$0);
  52568. case 6:
  52569. // returning from await.
  52570. result = $async$result;
  52571. if (result != null) {
  52572. $async$returnValue = result;
  52573. // goto return
  52574. $async$goto = 1;
  52575. break;
  52576. }
  52577. case 4:
  52578. // for update
  52579. i += t4;
  52580. // goto for condition
  52581. $async$goto = 3;
  52582. break;
  52583. case 5:
  52584. // after for
  52585. $async$returnValue = null;
  52586. // goto return
  52587. $async$goto = 1;
  52588. break;
  52589. case 1:
  52590. // return
  52591. return P._asyncReturn($async$returnValue, $async$completer);
  52592. }
  52593. });
  52594. return P._asyncStartSync($async$call$0, $async$completer);
  52595. },
  52596. $signature: 23
  52597. };
  52598. E._EvaluateVisitor_visitForRule__closure0.prototype = {
  52599. call$1: function(child) {
  52600. return child.accept$1(this.$this);
  52601. }
  52602. };
  52603. E._EvaluateVisitor_visitForwardRule_closure1.prototype = {
  52604. call$1: function(module) {
  52605. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  52606. }
  52607. };
  52608. E._EvaluateVisitor_visitForwardRule_closure2.prototype = {
  52609. call$1: function(module) {
  52610. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  52611. }
  52612. };
  52613. E._EvaluateVisitor__assertConfigurationIsEmpty_closure0.prototype = {
  52614. call$2: function($name, value) {
  52615. var t1 = this.only;
  52616. if (t1 != null && !t1.contains$1(0, $name))
  52617. return;
  52618. t1 = this.nameInError ? "$" + H.S($name) + string$.x20was_n : string$.This_v;
  52619. throw H.wrapException(this.$this._async_evaluate$_exception$2(t1, value.configurationSpan));
  52620. }
  52621. };
  52622. E._EvaluateVisitor_visitIfRule_closure0.prototype = {
  52623. call$0: function() {
  52624. var t1 = this.$this;
  52625. return t1._async_evaluate$_handleReturn$2(this._box_0.clause.children, new E._EvaluateVisitor_visitIfRule__closure0(t1));
  52626. },
  52627. $signature: 23
  52628. };
  52629. E._EvaluateVisitor_visitIfRule__closure0.prototype = {
  52630. call$1: function(child) {
  52631. return child.accept$1(this.$this);
  52632. }
  52633. };
  52634. E._EvaluateVisitor__visitDynamicImport_closure0.prototype = {
  52635. call$0: function() {
  52636. return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure();
  52637. },
  52638. $call$body$_EvaluateVisitor__visitDynamicImport_closure: function() {
  52639. var $async$goto = 0,
  52640. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52641. $async$returnValue, $async$self = this, previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _box_0, t1, t2, result, importer, stylesheet, url, t3;
  52642. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52643. if ($async$errorCode === 1)
  52644. return P._asyncRethrow($async$result, $async$completer);
  52645. while (true)
  52646. switch ($async$goto) {
  52647. case 0:
  52648. // Function start
  52649. _box_0 = {};
  52650. t1 = $async$self.$this;
  52651. t2 = $async$self.$import;
  52652. $async$goto = 3;
  52653. return P._asyncAwait(t1._async_evaluate$_loadStylesheet$3$forImport(t2.url, t2.span, true), $async$call$0);
  52654. case 3:
  52655. // returning from await.
  52656. result = $async$result;
  52657. importer = result.item1;
  52658. stylesheet = result.item2;
  52659. url = stylesheet.span.file.url;
  52660. t3 = t1._async_evaluate$_activeModules;
  52661. if (t3.containsKey$1(url)) {
  52662. previousLoad = t3.$index(0, url);
  52663. throw H.wrapException(previousLoad == null ? t1._async_evaluate$_exception$1("This file is already being loaded.") : t1._async_evaluate$_multiSpanException$3("This file is already being loaded.", "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  52664. }
  52665. t3.$indexSet(0, url, t2);
  52666. t2 = new P.UnmodifiableListView(stylesheet._uses, type$.UnmodifiableListView_legacy_UseRule);
  52667. if (t2.get$length(t2) === 0) {
  52668. t2 = new P.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_legacy_ForwardRule);
  52669. t2 = t2.get$length(t2) === 0;
  52670. } else
  52671. t2 = false;
  52672. $async$goto = t2 ? 4 : 5;
  52673. break;
  52674. case 4:
  52675. // then
  52676. oldImporter = t1._async_evaluate$_importer;
  52677. oldStylesheet = t1._async_evaluate$_stylesheet;
  52678. t1._async_evaluate$_importer = importer;
  52679. t1._async_evaluate$_stylesheet = stylesheet;
  52680. $async$goto = 6;
  52681. return P._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
  52682. case 6:
  52683. // returning from await.
  52684. t1._async_evaluate$_importer = oldImporter;
  52685. t1._async_evaluate$_stylesheet = oldStylesheet;
  52686. t3.remove$1(0, url);
  52687. // goto return
  52688. $async$goto = 1;
  52689. break;
  52690. case 5:
  52691. // join
  52692. _box_0.children = null;
  52693. t2 = t1._async_evaluate$_environment;
  52694. t4 = type$.legacy_String;
  52695. t5 = type$.legacy_Module_legacy_AsyncCallable;
  52696. t6 = type$.legacy_AstNode;
  52697. t7 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable);
  52698. t8 = t2._async_environment$_variables;
  52699. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  52700. t9 = t2._async_environment$_variableNodes;
  52701. if (t9 == null)
  52702. t9 = null;
  52703. else
  52704. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  52705. t10 = t2._async_environment$_functions;
  52706. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  52707. t11 = t2._async_environment$_mixins;
  52708. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  52709. environment = Q.AsyncEnvironment$_(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), null, null, null, t7, t8, t9, t10, t11, t2._async_environment$_content);
  52710. $async$goto = 7;
  52711. return P._asyncAwait(t1._async_evaluate$_withEnvironment$1$2(environment, new E._EvaluateVisitor__visitDynamicImport__closure0(_box_0, t1, importer, stylesheet, environment), type$.Null), $async$call$0);
  52712. case 7:
  52713. // returning from await.
  52714. module = Q._EnvironmentModule__EnvironmentModule0(environment, new V.CssStylesheet(new P.UnmodifiableListView(C.List_empty0, type$.UnmodifiableListView_legacy_CssNode), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender, environment._async_environment$_forwardedModules);
  52715. t1._async_evaluate$_environment.importForwards$1(module);
  52716. $async$goto = module.transitivelyContainsCss ? 8 : 9;
  52717. break;
  52718. case 8:
  52719. // then
  52720. $async$goto = 10;
  52721. return P._asyncAwait(t1._async_evaluate$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  52722. case 10:
  52723. // returning from await.
  52724. case 9:
  52725. // join
  52726. visitor = new E._ImportedCssVisitor0(t1);
  52727. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  52728. t1.get$current(t1).accept$1(visitor);
  52729. t3.remove$1(0, url);
  52730. case 1:
  52731. // return
  52732. return P._asyncReturn($async$returnValue, $async$completer);
  52733. }
  52734. });
  52735. return P._asyncStartSync($async$call$0, $async$completer);
  52736. },
  52737. $signature: 2
  52738. };
  52739. E._EvaluateVisitor__visitDynamicImport__closure0.prototype = {
  52740. call$0: function() {
  52741. var $async$goto = 0,
  52742. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52743. $async$self = this, t2, t3, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldConfiguration;
  52744. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52745. if ($async$errorCode === 1)
  52746. return P._asyncRethrow($async$result, $async$completer);
  52747. while (true)
  52748. switch ($async$goto) {
  52749. case 0:
  52750. // Function start
  52751. t1 = $async$self.$this;
  52752. oldImporter = t1._async_evaluate$_importer;
  52753. oldStylesheet = t1._async_evaluate$_stylesheet;
  52754. oldRoot = t1._async_evaluate$_root;
  52755. oldParent = t1._async_evaluate$_parent;
  52756. oldEndOfImports = t1._async_evaluate$_endOfImports;
  52757. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  52758. oldConfiguration = t1._async_evaluate$_configuration;
  52759. t1._async_evaluate$_importer = $async$self.importer;
  52760. t2 = t1._async_evaluate$_stylesheet = $async$self.stylesheet;
  52761. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  52762. t1._async_evaluate$_parent = t1._async_evaluate$_root = new V.ModifiableCssStylesheet(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode), t3);
  52763. t1._async_evaluate$_endOfImports = 0;
  52764. t1._async_evaluate$_outOfOrderImports = null;
  52765. t3 = new P.UnmodifiableListView(t2._forwards, type$.UnmodifiableListView_legacy_ForwardRule);
  52766. if (!t3.get$isEmpty(t3))
  52767. t1._async_evaluate$_configuration = $async$self.environment.toImplicitConfiguration$0();
  52768. $async$goto = 2;
  52769. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  52770. case 2:
  52771. // returning from await.
  52772. $async$self._box_0.children = t1._async_evaluate$_addOutOfOrderImports$0();
  52773. t1._async_evaluate$_importer = oldImporter;
  52774. t1._async_evaluate$_stylesheet = oldStylesheet;
  52775. t1._async_evaluate$_root = oldRoot;
  52776. t1._async_evaluate$_parent = oldParent;
  52777. t1._async_evaluate$_endOfImports = oldEndOfImports;
  52778. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  52779. t1._async_evaluate$_configuration = oldConfiguration;
  52780. // implicit return
  52781. return P._asyncReturn(null, $async$completer);
  52782. }
  52783. });
  52784. return P._asyncStartSync($async$call$0, $async$completer);
  52785. },
  52786. $signature: 2
  52787. };
  52788. E._EvaluateVisitor_visitIncludeRule_closure2.prototype = {
  52789. call$0: function() {
  52790. var t1 = this.node;
  52791. return this.$this._async_evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  52792. },
  52793. $signature: 63
  52794. };
  52795. E._EvaluateVisitor_visitIncludeRule_closure3.prototype = {
  52796. call$0: function() {
  52797. return this.node.get$spanWithoutContent();
  52798. },
  52799. "call*": "call$0",
  52800. $requiredArgCount: 0,
  52801. $signature: 26
  52802. };
  52803. E._EvaluateVisitor_visitIncludeRule_closure4.prototype = {
  52804. call$0: function() {
  52805. var $async$goto = 0,
  52806. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52807. $async$returnValue, $async$self = this, t1;
  52808. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52809. if ($async$errorCode === 1)
  52810. return P._asyncRethrow($async$result, $async$completer);
  52811. while (true)
  52812. switch ($async$goto) {
  52813. case 0:
  52814. // Function start
  52815. t1 = $async$self.$this;
  52816. $async$goto = 3;
  52817. return P._asyncAwait(t1._async_evaluate$_environment.withContent$2($async$self.contentCallable, new E._EvaluateVisitor_visitIncludeRule__closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  52818. case 3:
  52819. // returning from await.
  52820. $async$returnValue = null;
  52821. // goto return
  52822. $async$goto = 1;
  52823. break;
  52824. case 1:
  52825. // return
  52826. return P._asyncReturn($async$returnValue, $async$completer);
  52827. }
  52828. });
  52829. return P._asyncStartSync($async$call$0, $async$completer);
  52830. },
  52831. $signature: 2
  52832. };
  52833. E._EvaluateVisitor_visitIncludeRule__closure0.prototype = {
  52834. call$0: function() {
  52835. var $async$goto = 0,
  52836. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52837. $async$returnValue, $async$self = this, t1;
  52838. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52839. if ($async$errorCode === 1)
  52840. return P._asyncRethrow($async$result, $async$completer);
  52841. while (true)
  52842. switch ($async$goto) {
  52843. case 0:
  52844. // Function start
  52845. t1 = $async$self.$this;
  52846. $async$goto = 3;
  52847. return P._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new E._EvaluateVisitor_visitIncludeRule___closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  52848. case 3:
  52849. // returning from await.
  52850. $async$returnValue = null;
  52851. // goto return
  52852. $async$goto = 1;
  52853. break;
  52854. case 1:
  52855. // return
  52856. return P._asyncReturn($async$returnValue, $async$completer);
  52857. }
  52858. });
  52859. return P._asyncStartSync($async$call$0, $async$completer);
  52860. },
  52861. $signature: 2
  52862. };
  52863. E._EvaluateVisitor_visitIncludeRule___closure0.prototype = {
  52864. call$0: function() {
  52865. var $async$goto = 0,
  52866. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52867. $async$self = this, t1, t2, t3, t4, t5, _i;
  52868. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52869. if ($async$errorCode === 1)
  52870. return P._asyncRethrow($async$result, $async$completer);
  52871. while (true)
  52872. switch ($async$goto) {
  52873. case 0:
  52874. // Function start
  52875. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.legacy_Value, _i = 0;
  52876. case 2:
  52877. // for condition
  52878. if (!(_i < t2)) {
  52879. // goto after for
  52880. $async$goto = 4;
  52881. break;
  52882. }
  52883. $async$goto = 5;
  52884. return P._asyncAwait(t3._async_evaluate$_addErrorSpan$1$2(t4, new E._EvaluateVisitor_visitIncludeRule____closure0(t3, t1[_i]), t5), $async$call$0);
  52885. case 5:
  52886. // returning from await.
  52887. case 3:
  52888. // for update
  52889. ++_i;
  52890. // goto for condition
  52891. $async$goto = 2;
  52892. break;
  52893. case 4:
  52894. // after for
  52895. // implicit return
  52896. return P._asyncReturn(null, $async$completer);
  52897. }
  52898. });
  52899. return P._asyncStartSync($async$call$0, $async$completer);
  52900. },
  52901. $signature: 2
  52902. };
  52903. E._EvaluateVisitor_visitIncludeRule____closure0.prototype = {
  52904. call$0: function() {
  52905. return this.statement.accept$1(this.$this);
  52906. },
  52907. $signature: 23
  52908. };
  52909. E._EvaluateVisitor_visitMediaRule_closure1.prototype = {
  52910. call$0: function() {
  52911. var $async$goto = 0,
  52912. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52913. $async$self = this, t1, t2;
  52914. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52915. if ($async$errorCode === 1)
  52916. return P._asyncRethrow($async$result, $async$completer);
  52917. while (true)
  52918. switch ($async$goto) {
  52919. case 0:
  52920. // Function start
  52921. t1 = $async$self.$this;
  52922. t2 = $async$self.mergedQueries;
  52923. if (t2 == null)
  52924. t2 = $async$self.queries;
  52925. $async$goto = 2;
  52926. return P._asyncAwait(t1._async_evaluate$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  52927. case 2:
  52928. // returning from await.
  52929. // implicit return
  52930. return P._asyncReturn(null, $async$completer);
  52931. }
  52932. });
  52933. return P._asyncStartSync($async$call$0, $async$completer);
  52934. },
  52935. $signature: 2
  52936. };
  52937. E._EvaluateVisitor_visitMediaRule__closure0.prototype = {
  52938. call$0: function() {
  52939. var $async$goto = 0,
  52940. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52941. $async$self = this, t3, _i, t1, t2;
  52942. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52943. if ($async$errorCode === 1)
  52944. return P._asyncRethrow($async$result, $async$completer);
  52945. while (true)
  52946. switch ($async$goto) {
  52947. case 0:
  52948. // Function start
  52949. t1 = $async$self.$this;
  52950. t2 = t1._async_evaluate$_styleRule;
  52951. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  52952. break;
  52953. case 2:
  52954. // then
  52955. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  52956. case 5:
  52957. // for condition
  52958. if (!(_i < t3)) {
  52959. // goto after for
  52960. $async$goto = 7;
  52961. break;
  52962. }
  52963. $async$goto = 8;
  52964. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  52965. case 8:
  52966. // returning from await.
  52967. case 6:
  52968. // for update
  52969. ++_i;
  52970. // goto for condition
  52971. $async$goto = 5;
  52972. break;
  52973. case 7:
  52974. // after for
  52975. // goto join
  52976. $async$goto = 3;
  52977. break;
  52978. case 4:
  52979. // else
  52980. $async$goto = 9;
  52981. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitMediaRule___closure0(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  52982. case 9:
  52983. // returning from await.
  52984. case 3:
  52985. // join
  52986. // implicit return
  52987. return P._asyncReturn(null, $async$completer);
  52988. }
  52989. });
  52990. return P._asyncStartSync($async$call$0, $async$completer);
  52991. },
  52992. $signature: 2
  52993. };
  52994. E._EvaluateVisitor_visitMediaRule___closure0.prototype = {
  52995. call$0: function() {
  52996. var $async$goto = 0,
  52997. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  52998. $async$self = this, t1, t2, t3, _i;
  52999. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53000. if ($async$errorCode === 1)
  53001. return P._asyncRethrow($async$result, $async$completer);
  53002. while (true)
  53003. switch ($async$goto) {
  53004. case 0:
  53005. // Function start
  53006. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53007. case 2:
  53008. // for condition
  53009. if (!(_i < t2)) {
  53010. // goto after for
  53011. $async$goto = 4;
  53012. break;
  53013. }
  53014. $async$goto = 5;
  53015. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53016. case 5:
  53017. // returning from await.
  53018. case 3:
  53019. // for update
  53020. ++_i;
  53021. // goto for condition
  53022. $async$goto = 2;
  53023. break;
  53024. case 4:
  53025. // after for
  53026. // implicit return
  53027. return P._asyncReturn(null, $async$completer);
  53028. }
  53029. });
  53030. return P._asyncStartSync($async$call$0, $async$completer);
  53031. },
  53032. $signature: 2
  53033. };
  53034. E._EvaluateVisitor_visitMediaRule_closure2.prototype = {
  53035. call$1: function(node) {
  53036. var t1;
  53037. if (!type$.legacy_CssStyleRule._is(node))
  53038. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule._is(node);
  53039. else
  53040. t1 = true;
  53041. return t1;
  53042. }
  53043. };
  53044. E._EvaluateVisitor__visitMediaQueries_closure0.prototype = {
  53045. call$0: function() {
  53046. var t1 = S.SpanScanner$(this.resolved, null);
  53047. return new F.MediaQueryParser(t1, this.$this._async_evaluate$_logger).parse$0();
  53048. },
  53049. $signature: 58
  53050. };
  53051. E._EvaluateVisitor_visitStyleRule_closure6.prototype = {
  53052. call$0: function() {
  53053. var t1 = this.selectorText;
  53054. t1 = S.SpanScanner$(t1.get$value(t1), null);
  53055. return new E.KeyframeSelectorParser(t1, this.$this._async_evaluate$_logger).parse$0();
  53056. },
  53057. $signature: 33
  53058. };
  53059. E._EvaluateVisitor_visitStyleRule_closure7.prototype = {
  53060. call$0: function() {
  53061. var $async$goto = 0,
  53062. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53063. $async$self = this, t1, t2, t3, _i;
  53064. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53065. if ($async$errorCode === 1)
  53066. return P._asyncRethrow($async$result, $async$completer);
  53067. while (true)
  53068. switch ($async$goto) {
  53069. case 0:
  53070. // Function start
  53071. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53072. case 2:
  53073. // for condition
  53074. if (!(_i < t2)) {
  53075. // goto after for
  53076. $async$goto = 4;
  53077. break;
  53078. }
  53079. $async$goto = 5;
  53080. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53081. case 5:
  53082. // returning from await.
  53083. case 3:
  53084. // for update
  53085. ++_i;
  53086. // goto for condition
  53087. $async$goto = 2;
  53088. break;
  53089. case 4:
  53090. // after for
  53091. // implicit return
  53092. return P._asyncReturn(null, $async$completer);
  53093. }
  53094. });
  53095. return P._asyncStartSync($async$call$0, $async$completer);
  53096. },
  53097. $signature: 2
  53098. };
  53099. E._EvaluateVisitor_visitStyleRule_closure8.prototype = {
  53100. call$1: function(node) {
  53101. return type$.legacy_CssStyleRule._is(node);
  53102. }
  53103. };
  53104. E._EvaluateVisitor_visitStyleRule_closure9.prototype = {
  53105. call$0: function() {
  53106. var t2, t3,
  53107. t1 = this.selectorText;
  53108. t1 = t1.get$value(t1);
  53109. t2 = this.$this;
  53110. t3 = !t2._async_evaluate$_stylesheet.plainCss;
  53111. return D.SelectorList_SelectorList$parse(t1, t3, t3, t2._async_evaluate$_logger);
  53112. },
  53113. $signature: 31
  53114. };
  53115. E._EvaluateVisitor_visitStyleRule_closure10.prototype = {
  53116. call$0: function() {
  53117. var t1 = this._box_0.parsedSelector,
  53118. t2 = this.$this,
  53119. t3 = t2._async_evaluate$_styleRule;
  53120. t3 = t3 == null ? null : t3.originalSelector;
  53121. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate$_atRootExcludingStyleRule);
  53122. },
  53123. $signature: 31
  53124. };
  53125. E._EvaluateVisitor_visitStyleRule_closure11.prototype = {
  53126. call$0: function() {
  53127. var $async$goto = 0,
  53128. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53129. $async$self = this, t1;
  53130. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53131. if ($async$errorCode === 1)
  53132. return P._asyncRethrow($async$result, $async$completer);
  53133. while (true)
  53134. switch ($async$goto) {
  53135. case 0:
  53136. // Function start
  53137. t1 = $async$self.$this;
  53138. $async$goto = 2;
  53139. return P._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  53140. case 2:
  53141. // returning from await.
  53142. // implicit return
  53143. return P._asyncReturn(null, $async$completer);
  53144. }
  53145. });
  53146. return P._asyncStartSync($async$call$0, $async$completer);
  53147. },
  53148. $signature: 2
  53149. };
  53150. E._EvaluateVisitor_visitStyleRule__closure0.prototype = {
  53151. call$0: function() {
  53152. var $async$goto = 0,
  53153. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53154. $async$self = this, t1, t2, t3, _i;
  53155. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53156. if ($async$errorCode === 1)
  53157. return P._asyncRethrow($async$result, $async$completer);
  53158. while (true)
  53159. switch ($async$goto) {
  53160. case 0:
  53161. // Function start
  53162. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53163. case 2:
  53164. // for condition
  53165. if (!(_i < t2)) {
  53166. // goto after for
  53167. $async$goto = 4;
  53168. break;
  53169. }
  53170. $async$goto = 5;
  53171. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53172. case 5:
  53173. // returning from await.
  53174. case 3:
  53175. // for update
  53176. ++_i;
  53177. // goto for condition
  53178. $async$goto = 2;
  53179. break;
  53180. case 4:
  53181. // after for
  53182. // implicit return
  53183. return P._asyncReturn(null, $async$completer);
  53184. }
  53185. });
  53186. return P._asyncStartSync($async$call$0, $async$completer);
  53187. },
  53188. $signature: 2
  53189. };
  53190. E._EvaluateVisitor_visitStyleRule_closure12.prototype = {
  53191. call$1: function(node) {
  53192. return type$.legacy_CssStyleRule._is(node);
  53193. }
  53194. };
  53195. E._EvaluateVisitor_visitSupportsRule_closure1.prototype = {
  53196. call$0: function() {
  53197. var $async$goto = 0,
  53198. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53199. $async$self = this, t3, _i, t1, t2;
  53200. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53201. if ($async$errorCode === 1)
  53202. return P._asyncRethrow($async$result, $async$completer);
  53203. while (true)
  53204. switch ($async$goto) {
  53205. case 0:
  53206. // Function start
  53207. t1 = $async$self.$this;
  53208. t2 = t1._async_evaluate$_styleRule;
  53209. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  53210. break;
  53211. case 2:
  53212. // then
  53213. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  53214. case 5:
  53215. // for condition
  53216. if (!(_i < t3)) {
  53217. // goto after for
  53218. $async$goto = 7;
  53219. break;
  53220. }
  53221. $async$goto = 8;
  53222. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  53223. case 8:
  53224. // returning from await.
  53225. case 6:
  53226. // for update
  53227. ++_i;
  53228. // goto for condition
  53229. $async$goto = 5;
  53230. break;
  53231. case 7:
  53232. // after for
  53233. // goto join
  53234. $async$goto = 3;
  53235. break;
  53236. case 4:
  53237. // else
  53238. $async$goto = 9;
  53239. return P._asyncAwait(t1._async_evaluate$_withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitSupportsRule__closure0(t1, $async$self.node), type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  53240. case 9:
  53241. // returning from await.
  53242. case 3:
  53243. // join
  53244. // implicit return
  53245. return P._asyncReturn(null, $async$completer);
  53246. }
  53247. });
  53248. return P._asyncStartSync($async$call$0, $async$completer);
  53249. },
  53250. $signature: 2
  53251. };
  53252. E._EvaluateVisitor_visitSupportsRule__closure0.prototype = {
  53253. call$0: function() {
  53254. var $async$goto = 0,
  53255. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53256. $async$self = this, t1, t2, t3, _i;
  53257. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53258. if ($async$errorCode === 1)
  53259. return P._asyncRethrow($async$result, $async$completer);
  53260. while (true)
  53261. switch ($async$goto) {
  53262. case 0:
  53263. // Function start
  53264. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53265. case 2:
  53266. // for condition
  53267. if (!(_i < t2)) {
  53268. // goto after for
  53269. $async$goto = 4;
  53270. break;
  53271. }
  53272. $async$goto = 5;
  53273. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53274. case 5:
  53275. // returning from await.
  53276. case 3:
  53277. // for update
  53278. ++_i;
  53279. // goto for condition
  53280. $async$goto = 2;
  53281. break;
  53282. case 4:
  53283. // after for
  53284. // implicit return
  53285. return P._asyncReturn(null, $async$completer);
  53286. }
  53287. });
  53288. return P._asyncStartSync($async$call$0, $async$completer);
  53289. },
  53290. $signature: 2
  53291. };
  53292. E._EvaluateVisitor_visitSupportsRule_closure2.prototype = {
  53293. call$1: function(node) {
  53294. return type$.legacy_CssStyleRule._is(node);
  53295. }
  53296. };
  53297. E._EvaluateVisitor_visitVariableDeclaration_closure2.prototype = {
  53298. call$0: function() {
  53299. var t1 = this.override;
  53300. this.$this._async_evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  53301. },
  53302. $signature: 0
  53303. };
  53304. E._EvaluateVisitor_visitVariableDeclaration_closure3.prototype = {
  53305. call$0: function() {
  53306. var t1 = this.node;
  53307. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  53308. },
  53309. $signature: 8
  53310. };
  53311. E._EvaluateVisitor_visitVariableDeclaration_closure4.prototype = {
  53312. call$0: function() {
  53313. var t1 = this.$this,
  53314. t2 = this.node;
  53315. t1._async_evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  53316. },
  53317. $signature: 0
  53318. };
  53319. E._EvaluateVisitor_visitUseRule_closure0.prototype = {
  53320. call$1: function(module) {
  53321. var t1 = this.node;
  53322. this.$this._async_evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
  53323. }
  53324. };
  53325. E._EvaluateVisitor_visitWarnRule_closure0.prototype = {
  53326. call$0: function() {
  53327. return this.node.expression.accept$1(this.$this);
  53328. },
  53329. $signature: 23
  53330. };
  53331. E._EvaluateVisitor_visitWhileRule_closure0.prototype = {
  53332. call$0: function() {
  53333. var $async$goto = 0,
  53334. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  53335. $async$returnValue, $async$self = this, t1, t2, t3, result;
  53336. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53337. if ($async$errorCode === 1)
  53338. return P._asyncRethrow($async$result, $async$completer);
  53339. while (true)
  53340. switch ($async$goto) {
  53341. case 0:
  53342. // Function start
  53343. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  53344. case 3:
  53345. // for condition
  53346. $async$goto = 5;
  53347. return P._asyncAwait(t2.accept$1(t3), $async$call$0);
  53348. case 5:
  53349. // returning from await.
  53350. if (!$async$result.get$isTruthy()) {
  53351. // goto after for
  53352. $async$goto = 4;
  53353. break;
  53354. }
  53355. $async$goto = 6;
  53356. return P._asyncAwait(t3._async_evaluate$_handleReturn$2(t1, new E._EvaluateVisitor_visitWhileRule__closure0(t3)), $async$call$0);
  53357. case 6:
  53358. // returning from await.
  53359. result = $async$result;
  53360. if (result != null) {
  53361. $async$returnValue = result;
  53362. // goto return
  53363. $async$goto = 1;
  53364. break;
  53365. }
  53366. // goto for condition
  53367. $async$goto = 3;
  53368. break;
  53369. case 4:
  53370. // after for
  53371. $async$returnValue = null;
  53372. // goto return
  53373. $async$goto = 1;
  53374. break;
  53375. case 1:
  53376. // return
  53377. return P._asyncReturn($async$returnValue, $async$completer);
  53378. }
  53379. });
  53380. return P._asyncStartSync($async$call$0, $async$completer);
  53381. },
  53382. $signature: 23
  53383. };
  53384. E._EvaluateVisitor_visitWhileRule__closure0.prototype = {
  53385. call$1: function(child) {
  53386. return child.accept$1(this.$this);
  53387. }
  53388. };
  53389. E._EvaluateVisitor_visitBinaryOperationExpression_closure0.prototype = {
  53390. call$0: function() {
  53391. var $async$goto = 0,
  53392. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  53393. $async$returnValue, $async$self = this, right, result, t1, t2, left, $async$temp1, $async$temp2;
  53394. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53395. if ($async$errorCode === 1)
  53396. return P._asyncRethrow($async$result, $async$completer);
  53397. while (true)
  53398. switch ($async$goto) {
  53399. case 0:
  53400. // Function start
  53401. t1 = $async$self.node;
  53402. t2 = $async$self.$this;
  53403. $async$goto = 3;
  53404. return P._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  53405. case 3:
  53406. // returning from await.
  53407. left = $async$result;
  53408. case 4:
  53409. // switch
  53410. switch (t1.operator) {
  53411. case C.BinaryOperator_kjl:
  53412. // goto case
  53413. $async$goto = 6;
  53414. break;
  53415. case C.BinaryOperator_or_or_1:
  53416. // goto case
  53417. $async$goto = 7;
  53418. break;
  53419. case C.BinaryOperator_and_and_2:
  53420. // goto case
  53421. $async$goto = 8;
  53422. break;
  53423. case C.BinaryOperator_YlX:
  53424. // goto case
  53425. $async$goto = 9;
  53426. break;
  53427. case C.BinaryOperator_i5H:
  53428. // goto case
  53429. $async$goto = 10;
  53430. break;
  53431. case C.BinaryOperator_AcR0:
  53432. // goto case
  53433. $async$goto = 11;
  53434. break;
  53435. case C.BinaryOperator_1da:
  53436. // goto case
  53437. $async$goto = 12;
  53438. break;
  53439. case C.BinaryOperator_8qt:
  53440. // goto case
  53441. $async$goto = 13;
  53442. break;
  53443. case C.BinaryOperator_33h:
  53444. // goto case
  53445. $async$goto = 14;
  53446. break;
  53447. case C.BinaryOperator_AcR:
  53448. // goto case
  53449. $async$goto = 15;
  53450. break;
  53451. case C.BinaryOperator_iyO:
  53452. // goto case
  53453. $async$goto = 16;
  53454. break;
  53455. case C.BinaryOperator_O1M:
  53456. // goto case
  53457. $async$goto = 17;
  53458. break;
  53459. case C.BinaryOperator_RTB:
  53460. // goto case
  53461. $async$goto = 18;
  53462. break;
  53463. case C.BinaryOperator_2ad:
  53464. // goto case
  53465. $async$goto = 19;
  53466. break;
  53467. default:
  53468. // goto default
  53469. $async$goto = 20;
  53470. break;
  53471. }
  53472. break;
  53473. case 6:
  53474. // case
  53475. $async$goto = 21;
  53476. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53477. case 21:
  53478. // returning from await.
  53479. right = $async$result;
  53480. left.toString;
  53481. t1 = N.serializeValue0(left, false, true) + "=";
  53482. right.toString;
  53483. $async$returnValue = new D.SassString(t1 + N.serializeValue0(right, false, true), false);
  53484. // goto return
  53485. $async$goto = 1;
  53486. break;
  53487. case 7:
  53488. // case
  53489. $async$goto = left.get$isTruthy() ? 22 : 24;
  53490. break;
  53491. case 22:
  53492. // then
  53493. $async$result = left;
  53494. // goto join
  53495. $async$goto = 23;
  53496. break;
  53497. case 24:
  53498. // else
  53499. $async$goto = 25;
  53500. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53501. case 25:
  53502. // returning from await.
  53503. case 23:
  53504. // join
  53505. $async$returnValue = $async$result;
  53506. // goto return
  53507. $async$goto = 1;
  53508. break;
  53509. case 8:
  53510. // case
  53511. $async$goto = left.get$isTruthy() ? 26 : 28;
  53512. break;
  53513. case 26:
  53514. // then
  53515. $async$goto = 29;
  53516. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53517. case 29:
  53518. // returning from await.
  53519. // goto join
  53520. $async$goto = 27;
  53521. break;
  53522. case 28:
  53523. // else
  53524. $async$result = left;
  53525. case 27:
  53526. // join
  53527. $async$returnValue = $async$result;
  53528. // goto return
  53529. $async$goto = 1;
  53530. break;
  53531. case 9:
  53532. // case
  53533. $async$temp1 = J;
  53534. $async$temp2 = left;
  53535. $async$goto = 30;
  53536. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53537. case 30:
  53538. // returning from await.
  53539. $async$returnValue = $async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  53540. // goto return
  53541. $async$goto = 1;
  53542. break;
  53543. case 10:
  53544. // case
  53545. $async$temp1 = J;
  53546. $async$temp2 = left;
  53547. $async$goto = 31;
  53548. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53549. case 31:
  53550. // returning from await.
  53551. $async$returnValue = !$async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  53552. // goto return
  53553. $async$goto = 1;
  53554. break;
  53555. case 11:
  53556. // case
  53557. $async$temp1 = left;
  53558. $async$goto = 32;
  53559. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53560. case 32:
  53561. // returning from await.
  53562. $async$returnValue = $async$temp1.greaterThan$1($async$result);
  53563. // goto return
  53564. $async$goto = 1;
  53565. break;
  53566. case 12:
  53567. // case
  53568. $async$temp1 = left;
  53569. $async$goto = 33;
  53570. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53571. case 33:
  53572. // returning from await.
  53573. $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
  53574. // goto return
  53575. $async$goto = 1;
  53576. break;
  53577. case 13:
  53578. // case
  53579. $async$temp1 = left;
  53580. $async$goto = 34;
  53581. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53582. case 34:
  53583. // returning from await.
  53584. $async$returnValue = $async$temp1.lessThan$1($async$result);
  53585. // goto return
  53586. $async$goto = 1;
  53587. break;
  53588. case 14:
  53589. // case
  53590. $async$temp1 = left;
  53591. $async$goto = 35;
  53592. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53593. case 35:
  53594. // returning from await.
  53595. $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
  53596. // goto return
  53597. $async$goto = 1;
  53598. break;
  53599. case 15:
  53600. // case
  53601. $async$temp1 = left;
  53602. $async$goto = 36;
  53603. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53604. case 36:
  53605. // returning from await.
  53606. $async$returnValue = $async$temp1.plus$1($async$result);
  53607. // goto return
  53608. $async$goto = 1;
  53609. break;
  53610. case 16:
  53611. // case
  53612. $async$temp1 = left;
  53613. $async$goto = 37;
  53614. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53615. case 37:
  53616. // returning from await.
  53617. $async$returnValue = $async$temp1.minus$1($async$result);
  53618. // goto return
  53619. $async$goto = 1;
  53620. break;
  53621. case 17:
  53622. // case
  53623. $async$temp1 = left;
  53624. $async$goto = 38;
  53625. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53626. case 38:
  53627. // returning from await.
  53628. $async$returnValue = $async$temp1.times$1($async$result);
  53629. // goto return
  53630. $async$goto = 1;
  53631. break;
  53632. case 18:
  53633. // case
  53634. $async$goto = 39;
  53635. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53636. case 39:
  53637. // returning from await.
  53638. right = $async$result;
  53639. result = left.dividedBy$1(right);
  53640. if (t1.allowsSlash && left instanceof T.SassNumber && right instanceof T.SassNumber) {
  53641. $async$returnValue = type$.legacy_SassNumber._as(result).withSlash$2(left, right);
  53642. // goto return
  53643. $async$goto = 1;
  53644. break;
  53645. } else {
  53646. $async$returnValue = result;
  53647. // goto return
  53648. $async$goto = 1;
  53649. break;
  53650. }
  53651. case 19:
  53652. // case
  53653. $async$temp1 = left;
  53654. $async$goto = 40;
  53655. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  53656. case 40:
  53657. // returning from await.
  53658. $async$returnValue = $async$temp1.modulo$1($async$result);
  53659. // goto return
  53660. $async$goto = 1;
  53661. break;
  53662. case 20:
  53663. // default
  53664. $async$returnValue = null;
  53665. // goto return
  53666. $async$goto = 1;
  53667. break;
  53668. case 5:
  53669. // after switch
  53670. case 1:
  53671. // return
  53672. return P._asyncReturn($async$returnValue, $async$completer);
  53673. }
  53674. });
  53675. return P._asyncStartSync($async$call$0, $async$completer);
  53676. },
  53677. $signature: 23
  53678. };
  53679. E._EvaluateVisitor_visitVariableExpression_closure0.prototype = {
  53680. call$0: function() {
  53681. var t1 = this.node;
  53682. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  53683. },
  53684. $signature: 8
  53685. };
  53686. E._EvaluateVisitor_visitListExpression_closure0.prototype = {
  53687. call$1: function(expression) {
  53688. return expression.accept$1(this.$this);
  53689. }
  53690. };
  53691. E._EvaluateVisitor_visitFunctionExpression_closure1.prototype = {
  53692. call$0: function() {
  53693. var t1 = this.node.namespace,
  53694. t2 = this.plainName;
  53695. if (t1 == null)
  53696. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  53697. return this.$this._async_evaluate$_getFunction$2$namespace(t2, t1);
  53698. },
  53699. $signature: 63
  53700. };
  53701. E._EvaluateVisitor_visitFunctionExpression_closure2.prototype = {
  53702. call$0: function() {
  53703. var t1 = this.node;
  53704. return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  53705. },
  53706. $signature: 23
  53707. };
  53708. E._EvaluateVisitor__runUserDefinedCallable_closure0.prototype = {
  53709. call$0: function() {
  53710. var _this = this,
  53711. t1 = _this.$this,
  53712. t2 = _this.callable;
  53713. return t1._async_evaluate$_withEnvironment$1$2(t2.environment.closure$0(), new E._EvaluateVisitor__runUserDefinedCallable__closure0(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run), type$.legacy_Value);
  53714. },
  53715. $signature: 23
  53716. };
  53717. E._EvaluateVisitor__runUserDefinedCallable__closure0.prototype = {
  53718. call$0: function() {
  53719. var _this = this,
  53720. t1 = _this.$this;
  53721. return t1._async_evaluate$_environment.scope$1$1(new E._EvaluateVisitor__runUserDefinedCallable___closure0(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.legacy_Value);
  53722. },
  53723. $signature: 23
  53724. };
  53725. E._EvaluateVisitor__runUserDefinedCallable___closure0.prototype = {
  53726. call$0: function() {
  53727. var $async$goto = 0,
  53728. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  53729. $async$returnValue, $async$self = this, declaredArguments, minLength, t8, i, t9, t10, t11, argument, value, t12, rest, argumentList, result, argumentWord, argumentNames, t1, t2, t3, t4, t5, t6, t7;
  53730. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53731. if ($async$errorCode === 1)
  53732. return P._asyncRethrow($async$result, $async$completer);
  53733. while (true)
  53734. switch ($async$goto) {
  53735. case 0:
  53736. // Function start
  53737. t1 = $async$self.$this;
  53738. t2 = $async$self.evaluated;
  53739. t3 = t2.positional;
  53740. t4 = t3.length;
  53741. t5 = t2.named;
  53742. t6 = $async$self.callable.declaration.$arguments;
  53743. t7 = $async$self.nodeWithSpan;
  53744. t1._async_evaluate$_verifyArguments$4(t4, t5, t6, t7);
  53745. declaredArguments = t6.$arguments;
  53746. t4 = declaredArguments.length;
  53747. minLength = Math.min(t3.length, t4);
  53748. for (t8 = t1._async_evaluate$_sourceMap, i = 0; i < minLength; ++i) {
  53749. t9 = t1._async_evaluate$_environment;
  53750. t10 = declaredArguments[i].name;
  53751. t11 = t3[i].withoutSlash$0();
  53752. t9.setLocalVariable$3(t10, t11, t8 ? t2.positionalNodes[i] : null);
  53753. }
  53754. i = t3.length;
  53755. case 3:
  53756. // for condition
  53757. if (!(i < t4)) {
  53758. // goto after for
  53759. $async$goto = 5;
  53760. break;
  53761. }
  53762. argument = declaredArguments[i];
  53763. t9 = argument.name;
  53764. value = t5.remove$1(0, t9);
  53765. $async$goto = value == null ? 6 : 7;
  53766. break;
  53767. case 6:
  53768. // then
  53769. $async$goto = 8;
  53770. return P._asyncAwait(argument.defaultValue.accept$1(t1), $async$call$0);
  53771. case 8:
  53772. // returning from await.
  53773. value = $async$result;
  53774. case 7:
  53775. // join
  53776. t10 = t1._async_evaluate$_environment;
  53777. t11 = value.withoutSlash$0();
  53778. if (t8) {
  53779. t12 = t2.namedNodes.$index(0, t9);
  53780. if (t12 == null)
  53781. t12 = t1._async_evaluate$_expressionNode$1(argument.defaultValue);
  53782. } else
  53783. t12 = null;
  53784. t10.setLocalVariable$3(t9, t11, t12);
  53785. case 4:
  53786. // for update
  53787. ++i;
  53788. // goto for condition
  53789. $async$goto = 3;
  53790. break;
  53791. case 5:
  53792. // after for
  53793. t8 = t6.restArgument;
  53794. if (t8 != null) {
  53795. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty5;
  53796. t2 = t2.separator;
  53797. if (t2 === C.ListSeparator_undecided)
  53798. t2 = C.ListSeparator_comma;
  53799. t3 = type$.legacy_Value;
  53800. argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t5, type$.legacy_String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  53801. argumentList.SassList$3$brackets(rest, t2, false);
  53802. t1._async_evaluate$_environment.setLocalVariable$3(t8, argumentList, t7);
  53803. } else
  53804. argumentList = null;
  53805. $async$goto = 9;
  53806. return P._asyncAwait($async$self.run.call$0(), $async$call$0);
  53807. case 9:
  53808. // returning from await.
  53809. result = $async$result;
  53810. if (argumentList == null) {
  53811. $async$returnValue = result;
  53812. // goto return
  53813. $async$goto = 1;
  53814. break;
  53815. }
  53816. if (t5.get$isEmpty(t5)) {
  53817. $async$returnValue = result;
  53818. // goto return
  53819. $async$goto = 1;
  53820. break;
  53821. }
  53822. if (argumentList._wereKeywordsAccessed) {
  53823. $async$returnValue = result;
  53824. // goto return
  53825. $async$goto = 1;
  53826. break;
  53827. }
  53828. t2 = t5.get$keys();
  53829. argumentWord = B.pluralize("argument", t2.get$length(t2), null);
  53830. t5 = t5.get$keys();
  53831. argumentNames = B.toSentence(H.MappedIterable_MappedIterable(t5, new E._EvaluateVisitor__runUserDefinedCallable____closure0(), H._instanceType(t5)._eval$1("Iterable.E"), type$.legacy_Object), "or");
  53832. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), t1._async_evaluate$_stackTrace$1(t7.get$span())));
  53833. case 1:
  53834. // return
  53835. return P._asyncReturn($async$returnValue, $async$completer);
  53836. }
  53837. });
  53838. return P._asyncStartSync($async$call$0, $async$completer);
  53839. },
  53840. $signature: 23
  53841. };
  53842. E._EvaluateVisitor__runUserDefinedCallable____closure0.prototype = {
  53843. call$1: function($name) {
  53844. return "$" + H.S($name);
  53845. }
  53846. };
  53847. E._EvaluateVisitor__runFunctionCallable_closure0.prototype = {
  53848. call$0: function() {
  53849. var $async$goto = 0,
  53850. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  53851. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  53852. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53853. if ($async$errorCode === 1)
  53854. return P._asyncRethrow($async$result, $async$completer);
  53855. while (true)
  53856. switch ($async$goto) {
  53857. case 0:
  53858. // Function start
  53859. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  53860. case 3:
  53861. // for condition
  53862. if (!(_i < t3)) {
  53863. // goto after for
  53864. $async$goto = 5;
  53865. break;
  53866. }
  53867. $async$goto = 6;
  53868. return P._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  53869. case 6:
  53870. // returning from await.
  53871. $returnValue = $async$result;
  53872. if ($returnValue instanceof F.Value) {
  53873. $async$returnValue = $returnValue;
  53874. // goto return
  53875. $async$goto = 1;
  53876. break;
  53877. }
  53878. case 4:
  53879. // for update
  53880. ++_i;
  53881. // goto for condition
  53882. $async$goto = 3;
  53883. break;
  53884. case 5:
  53885. // after for
  53886. throw H.wrapException(t4._async_evaluate$_exception$2("Function finished without @return.", t1.span));
  53887. case 1:
  53888. // return
  53889. return P._asyncReturn($async$returnValue, $async$completer);
  53890. }
  53891. });
  53892. return P._asyncStartSync($async$call$0, $async$completer);
  53893. },
  53894. $signature: 23
  53895. };
  53896. E._EvaluateVisitor__runBuiltInCallable_closure1.prototype = {
  53897. call$0: function() {
  53898. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  53899. },
  53900. $signature: 1
  53901. };
  53902. E._EvaluateVisitor__runBuiltInCallable_closure2.prototype = {
  53903. call$1: function($name) {
  53904. return "$" + H.S($name);
  53905. }
  53906. };
  53907. E._EvaluateVisitor__evaluateArguments_closure0.prototype = {
  53908. call$2: function(key, value) {
  53909. var t1;
  53910. this.named.$indexSet(0, key, value);
  53911. t1 = this.namedNodes;
  53912. if (t1 != null)
  53913. t1.$indexSet(0, key, this.restNodeForSpan);
  53914. }
  53915. };
  53916. E._EvaluateVisitor__evaluateMacroArguments_closure3.prototype = {
  53917. call$1: function(value) {
  53918. return new F.ValueExpression(value, null);
  53919. }
  53920. };
  53921. E._EvaluateVisitor__evaluateMacroArguments_closure4.prototype = {
  53922. call$1: function(value) {
  53923. return new F.ValueExpression(value, null);
  53924. }
  53925. };
  53926. E._EvaluateVisitor__evaluateMacroArguments_closure5.prototype = {
  53927. call$2: function(key, value) {
  53928. this.named.$indexSet(0, key, new F.ValueExpression(value, null));
  53929. }
  53930. };
  53931. E._EvaluateVisitor__evaluateMacroArguments_closure6.prototype = {
  53932. call$1: function(value) {
  53933. return new F.ValueExpression(value, null);
  53934. }
  53935. };
  53936. E._EvaluateVisitor__addRestMap_closure1.prototype = {
  53937. call$1: function(value) {
  53938. return this.T._eval$1("0*")._as(value);
  53939. }
  53940. };
  53941. E._EvaluateVisitor__addRestMap_closure2.prototype = {
  53942. call$2: function(key, value) {
  53943. var _this = this;
  53944. if (key instanceof D.SassString)
  53945. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  53946. else
  53947. throw H.wrapException(_this.$this._async_evaluate$_exception$2(string$.Variab_ + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  53948. }
  53949. };
  53950. E._EvaluateVisitor__verifyArguments_closure0.prototype = {
  53951. call$0: function() {
  53952. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_legacy_String));
  53953. },
  53954. $signature: 1
  53955. };
  53956. E._EvaluateVisitor_visitStringExpression_closure0.prototype = {
  53957. call$1: function(value) {
  53958. var $async$goto = 0,
  53959. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  53960. $async$returnValue, $async$self = this, t1, result;
  53961. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53962. if ($async$errorCode === 1)
  53963. return P._asyncRethrow($async$result, $async$completer);
  53964. while (true)
  53965. switch ($async$goto) {
  53966. case 0:
  53967. // Function start
  53968. if (typeof value == "string") {
  53969. $async$returnValue = value;
  53970. // goto return
  53971. $async$goto = 1;
  53972. break;
  53973. }
  53974. type$.legacy_Expression._as(value);
  53975. t1 = $async$self.$this;
  53976. $async$goto = 3;
  53977. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  53978. case 3:
  53979. // returning from await.
  53980. result = $async$result;
  53981. $async$returnValue = result instanceof D.SassString ? result.text : t1._async_evaluate$_serialize$3$quote(result, value, false);
  53982. // goto return
  53983. $async$goto = 1;
  53984. break;
  53985. case 1:
  53986. // return
  53987. return P._asyncReturn($async$returnValue, $async$completer);
  53988. }
  53989. });
  53990. return P._asyncStartSync($async$call$1, $async$completer);
  53991. },
  53992. $signature: 42
  53993. };
  53994. E._EvaluateVisitor_visitCssAtRule_closure1.prototype = {
  53995. call$0: function() {
  53996. var $async$goto = 0,
  53997. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53998. $async$self = this, t1, t2, cur;
  53999. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54000. if ($async$errorCode === 1)
  54001. return P._asyncRethrow($async$result, $async$completer);
  54002. while (true)
  54003. switch ($async$goto) {
  54004. case 0:
  54005. // Function start
  54006. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  54007. case 2:
  54008. // for condition
  54009. if (!t1.moveNext$0()) {
  54010. // goto after for
  54011. $async$goto = 3;
  54012. break;
  54013. }
  54014. cur = t1.__internal$_current;
  54015. $async$goto = 4;
  54016. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  54017. case 4:
  54018. // returning from await.
  54019. // goto for condition
  54020. $async$goto = 2;
  54021. break;
  54022. case 3:
  54023. // after for
  54024. // implicit return
  54025. return P._asyncReturn(null, $async$completer);
  54026. }
  54027. });
  54028. return P._asyncStartSync($async$call$0, $async$completer);
  54029. },
  54030. $signature: 2
  54031. };
  54032. E._EvaluateVisitor_visitCssAtRule_closure2.prototype = {
  54033. call$1: function(node) {
  54034. return type$.legacy_CssStyleRule._is(node);
  54035. }
  54036. };
  54037. E._EvaluateVisitor_visitCssKeyframeBlock_closure1.prototype = {
  54038. call$0: function() {
  54039. var $async$goto = 0,
  54040. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54041. $async$self = this, t1, t2, cur;
  54042. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54043. if ($async$errorCode === 1)
  54044. return P._asyncRethrow($async$result, $async$completer);
  54045. while (true)
  54046. switch ($async$goto) {
  54047. case 0:
  54048. // Function start
  54049. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  54050. case 2:
  54051. // for condition
  54052. if (!t1.moveNext$0()) {
  54053. // goto after for
  54054. $async$goto = 3;
  54055. break;
  54056. }
  54057. cur = t1.__internal$_current;
  54058. $async$goto = 4;
  54059. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  54060. case 4:
  54061. // returning from await.
  54062. // goto for condition
  54063. $async$goto = 2;
  54064. break;
  54065. case 3:
  54066. // after for
  54067. // implicit return
  54068. return P._asyncReturn(null, $async$completer);
  54069. }
  54070. });
  54071. return P._asyncStartSync($async$call$0, $async$completer);
  54072. },
  54073. $signature: 2
  54074. };
  54075. E._EvaluateVisitor_visitCssKeyframeBlock_closure2.prototype = {
  54076. call$1: function(node) {
  54077. return type$.legacy_CssStyleRule._is(node);
  54078. }
  54079. };
  54080. E._EvaluateVisitor_visitCssMediaRule_closure1.prototype = {
  54081. call$0: function() {
  54082. var $async$goto = 0,
  54083. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54084. $async$self = this, t1, t2;
  54085. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54086. if ($async$errorCode === 1)
  54087. return P._asyncRethrow($async$result, $async$completer);
  54088. while (true)
  54089. switch ($async$goto) {
  54090. case 0:
  54091. // Function start
  54092. t1 = $async$self.$this;
  54093. t2 = $async$self.mergedQueries;
  54094. if (t2 == null)
  54095. t2 = $async$self.node.queries;
  54096. $async$goto = 2;
  54097. return P._asyncAwait(t1._async_evaluate$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitCssMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  54098. case 2:
  54099. // returning from await.
  54100. // implicit return
  54101. return P._asyncReturn(null, $async$completer);
  54102. }
  54103. });
  54104. return P._asyncStartSync($async$call$0, $async$completer);
  54105. },
  54106. $signature: 2
  54107. };
  54108. E._EvaluateVisitor_visitCssMediaRule__closure0.prototype = {
  54109. call$0: function() {
  54110. var $async$goto = 0,
  54111. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54112. $async$self = this, cur, t1, t2;
  54113. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54114. if ($async$errorCode === 1)
  54115. return P._asyncRethrow($async$result, $async$completer);
  54116. while (true)
  54117. switch ($async$goto) {
  54118. case 0:
  54119. // Function start
  54120. t1 = $async$self.$this;
  54121. t2 = t1._async_evaluate$_styleRule;
  54122. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  54123. break;
  54124. case 2:
  54125. // then
  54126. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  54127. case 5:
  54128. // for condition
  54129. if (!t2.moveNext$0()) {
  54130. // goto after for
  54131. $async$goto = 6;
  54132. break;
  54133. }
  54134. cur = t2.__internal$_current;
  54135. $async$goto = 7;
  54136. return P._asyncAwait(cur.accept$1(t1), $async$call$0);
  54137. case 7:
  54138. // returning from await.
  54139. // goto for condition
  54140. $async$goto = 5;
  54141. break;
  54142. case 6:
  54143. // after for
  54144. // goto join
  54145. $async$goto = 3;
  54146. break;
  54147. case 4:
  54148. // else
  54149. $async$goto = 8;
  54150. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssMediaRule___closure0(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  54151. case 8:
  54152. // returning from await.
  54153. case 3:
  54154. // join
  54155. // implicit return
  54156. return P._asyncReturn(null, $async$completer);
  54157. }
  54158. });
  54159. return P._asyncStartSync($async$call$0, $async$completer);
  54160. },
  54161. $signature: 2
  54162. };
  54163. E._EvaluateVisitor_visitCssMediaRule___closure0.prototype = {
  54164. call$0: function() {
  54165. var $async$goto = 0,
  54166. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54167. $async$self = this, t1, t2, cur;
  54168. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54169. if ($async$errorCode === 1)
  54170. return P._asyncRethrow($async$result, $async$completer);
  54171. while (true)
  54172. switch ($async$goto) {
  54173. case 0:
  54174. // Function start
  54175. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  54176. case 2:
  54177. // for condition
  54178. if (!t1.moveNext$0()) {
  54179. // goto after for
  54180. $async$goto = 3;
  54181. break;
  54182. }
  54183. cur = t1.__internal$_current;
  54184. $async$goto = 4;
  54185. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  54186. case 4:
  54187. // returning from await.
  54188. // goto for condition
  54189. $async$goto = 2;
  54190. break;
  54191. case 3:
  54192. // after for
  54193. // implicit return
  54194. return P._asyncReturn(null, $async$completer);
  54195. }
  54196. });
  54197. return P._asyncStartSync($async$call$0, $async$completer);
  54198. },
  54199. $signature: 2
  54200. };
  54201. E._EvaluateVisitor_visitCssMediaRule_closure2.prototype = {
  54202. call$1: function(node) {
  54203. var t1;
  54204. if (!type$.legacy_CssStyleRule._is(node))
  54205. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule._is(node);
  54206. else
  54207. t1 = true;
  54208. return t1;
  54209. }
  54210. };
  54211. E._EvaluateVisitor_visitCssStyleRule_closure1.prototype = {
  54212. call$0: function() {
  54213. var $async$goto = 0,
  54214. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54215. $async$self = this, t1;
  54216. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54217. if ($async$errorCode === 1)
  54218. return P._asyncRethrow($async$result, $async$completer);
  54219. while (true)
  54220. switch ($async$goto) {
  54221. case 0:
  54222. // Function start
  54223. t1 = $async$self.$this;
  54224. $async$goto = 2;
  54225. return P._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitCssStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  54226. case 2:
  54227. // returning from await.
  54228. // implicit return
  54229. return P._asyncReturn(null, $async$completer);
  54230. }
  54231. });
  54232. return P._asyncStartSync($async$call$0, $async$completer);
  54233. },
  54234. $signature: 2
  54235. };
  54236. E._EvaluateVisitor_visitCssStyleRule__closure0.prototype = {
  54237. call$0: function() {
  54238. var $async$goto = 0,
  54239. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54240. $async$self = this, t1, t2, cur;
  54241. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54242. if ($async$errorCode === 1)
  54243. return P._asyncRethrow($async$result, $async$completer);
  54244. while (true)
  54245. switch ($async$goto) {
  54246. case 0:
  54247. // Function start
  54248. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  54249. case 2:
  54250. // for condition
  54251. if (!t1.moveNext$0()) {
  54252. // goto after for
  54253. $async$goto = 3;
  54254. break;
  54255. }
  54256. cur = t1.__internal$_current;
  54257. $async$goto = 4;
  54258. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  54259. case 4:
  54260. // returning from await.
  54261. // goto for condition
  54262. $async$goto = 2;
  54263. break;
  54264. case 3:
  54265. // after for
  54266. // implicit return
  54267. return P._asyncReturn(null, $async$completer);
  54268. }
  54269. });
  54270. return P._asyncStartSync($async$call$0, $async$completer);
  54271. },
  54272. $signature: 2
  54273. };
  54274. E._EvaluateVisitor_visitCssStyleRule_closure2.prototype = {
  54275. call$1: function(node) {
  54276. return type$.legacy_CssStyleRule._is(node);
  54277. }
  54278. };
  54279. E._EvaluateVisitor_visitCssSupportsRule_closure1.prototype = {
  54280. call$0: function() {
  54281. var $async$goto = 0,
  54282. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54283. $async$self = this, cur, t1, t2;
  54284. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54285. if ($async$errorCode === 1)
  54286. return P._asyncRethrow($async$result, $async$completer);
  54287. while (true)
  54288. switch ($async$goto) {
  54289. case 0:
  54290. // Function start
  54291. t1 = $async$self.$this;
  54292. t2 = t1._async_evaluate$_styleRule;
  54293. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  54294. break;
  54295. case 2:
  54296. // then
  54297. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  54298. case 5:
  54299. // for condition
  54300. if (!t2.moveNext$0()) {
  54301. // goto after for
  54302. $async$goto = 6;
  54303. break;
  54304. }
  54305. cur = t2.__internal$_current;
  54306. $async$goto = 7;
  54307. return P._asyncAwait(cur.accept$1(t1), $async$call$0);
  54308. case 7:
  54309. // returning from await.
  54310. // goto for condition
  54311. $async$goto = 5;
  54312. break;
  54313. case 6:
  54314. // after for
  54315. // goto join
  54316. $async$goto = 3;
  54317. break;
  54318. case 4:
  54319. // else
  54320. $async$goto = 8;
  54321. return P._asyncAwait(t1._async_evaluate$_withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssSupportsRule__closure0(t1, $async$self.node), type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  54322. case 8:
  54323. // returning from await.
  54324. case 3:
  54325. // join
  54326. // implicit return
  54327. return P._asyncReturn(null, $async$completer);
  54328. }
  54329. });
  54330. return P._asyncStartSync($async$call$0, $async$completer);
  54331. },
  54332. $signature: 2
  54333. };
  54334. E._EvaluateVisitor_visitCssSupportsRule__closure0.prototype = {
  54335. call$0: function() {
  54336. var $async$goto = 0,
  54337. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54338. $async$self = this, t1, t2, cur;
  54339. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54340. if ($async$errorCode === 1)
  54341. return P._asyncRethrow($async$result, $async$completer);
  54342. while (true)
  54343. switch ($async$goto) {
  54344. case 0:
  54345. // Function start
  54346. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  54347. case 2:
  54348. // for condition
  54349. if (!t1.moveNext$0()) {
  54350. // goto after for
  54351. $async$goto = 3;
  54352. break;
  54353. }
  54354. cur = t1.__internal$_current;
  54355. $async$goto = 4;
  54356. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  54357. case 4:
  54358. // returning from await.
  54359. // goto for condition
  54360. $async$goto = 2;
  54361. break;
  54362. case 3:
  54363. // after for
  54364. // implicit return
  54365. return P._asyncReturn(null, $async$completer);
  54366. }
  54367. });
  54368. return P._asyncStartSync($async$call$0, $async$completer);
  54369. },
  54370. $signature: 2
  54371. };
  54372. E._EvaluateVisitor_visitCssSupportsRule_closure2.prototype = {
  54373. call$1: function(node) {
  54374. return type$.legacy_CssStyleRule._is(node);
  54375. }
  54376. };
  54377. E._EvaluateVisitor__performInterpolation_closure0.prototype = {
  54378. call$1: function(value) {
  54379. var $async$goto = 0,
  54380. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  54381. $async$returnValue, $async$self = this, t1, result, t2, t3;
  54382. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54383. if ($async$errorCode === 1)
  54384. return P._asyncRethrow($async$result, $async$completer);
  54385. while (true)
  54386. switch ($async$goto) {
  54387. case 0:
  54388. // Function start
  54389. if (typeof value == "string") {
  54390. $async$returnValue = value;
  54391. // goto return
  54392. $async$goto = 1;
  54393. break;
  54394. }
  54395. type$.legacy_Expression._as(value);
  54396. t1 = $async$self.$this;
  54397. $async$goto = 3;
  54398. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  54399. case 3:
  54400. // returning from await.
  54401. result = $async$result;
  54402. if ($async$self.warnForColor && result instanceof K.SassColor && $.$get$namesByColor().containsKey$1(result)) {
  54403. t2 = X.Interpolation$(H.setRuntimeTypeInfo([""], type$.JSArray_legacy_Object), null);
  54404. t3 = $.$get$namesByColor();
  54405. t1._async_evaluate$_warn$2(string$.You_pr + H.S(t3.$index(0, result)) + string$.x20in_in + H.S(result) + string$.x2c_whic + H.S(t3.$index(0, result)) + string$.x22x29__If + new V.BinaryOperationExpression(C.BinaryOperator_AcR, new D.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  54406. }
  54407. $async$returnValue = t1._async_evaluate$_serialize$3$quote(result, value, false);
  54408. // goto return
  54409. $async$goto = 1;
  54410. break;
  54411. case 1:
  54412. // return
  54413. return P._asyncReturn($async$returnValue, $async$completer);
  54414. }
  54415. });
  54416. return P._asyncStartSync($async$call$1, $async$completer);
  54417. },
  54418. $signature: 42
  54419. };
  54420. E._EvaluateVisitor__serialize_closure0.prototype = {
  54421. call$0: function() {
  54422. var t1 = this.value;
  54423. t1.toString;
  54424. return N.serializeValue0(t1, false, this.quote);
  54425. },
  54426. $signature: 9
  54427. };
  54428. E._EvaluateVisitor__stackTrace_closure0.prototype = {
  54429. call$1: function(tuple) {
  54430. return this.$this._async_evaluate$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  54431. }
  54432. };
  54433. E._ImportedCssVisitor0.prototype = {
  54434. visitCssAtRule$1: function(node) {
  54435. var t1 = node.isChildless ? null : new E._ImportedCssVisitor_visitCssAtRule_closure0();
  54436. this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, t1);
  54437. },
  54438. visitCssComment$1: function(node) {
  54439. return this._async_evaluate$_visitor._async_evaluate$_addChild$1(node);
  54440. },
  54441. visitCssDeclaration$1: function(node) {
  54442. },
  54443. visitCssImport$1: function(node) {
  54444. var t1 = this._async_evaluate$_visitor,
  54445. t2 = t1._async_evaluate$_parent,
  54446. t3 = t1._async_evaluate$_root;
  54447. if (t2 != t3)
  54448. t1._async_evaluate$_addChild$1(node);
  54449. else if (t1._async_evaluate$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  54450. t1._async_evaluate$_addChild$1(node);
  54451. t1._async_evaluate$_endOfImports = t1._async_evaluate$_endOfImports + 1;
  54452. } else {
  54453. t2 = t1._async_evaluate$_outOfOrderImports;
  54454. (t2 == null ? t1._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t2).push(node);
  54455. }
  54456. },
  54457. visitCssKeyframeBlock$1: function(node) {
  54458. },
  54459. visitCssMediaRule$1: function(node) {
  54460. var t1 = this._async_evaluate$_visitor,
  54461. t2 = t1._async_evaluate$_mediaQueries;
  54462. t1._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssMediaRule_closure0(t2 == null || t1._async_evaluate$_mergeMediaQueries$2(t2, node.queries) != null));
  54463. },
  54464. visitCssStyleRule$1: function(node) {
  54465. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssStyleRule_closure0());
  54466. },
  54467. visitCssStylesheet$1: function(node) {
  54468. var t1, cur;
  54469. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  54470. cur = t1.__internal$_current;
  54471. cur.accept$1(this);
  54472. }
  54473. },
  54474. visitCssSupportsRule$1: function(node) {
  54475. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssSupportsRule_closure0());
  54476. }
  54477. };
  54478. E._ImportedCssVisitor_visitCssAtRule_closure0.prototype = {
  54479. call$1: function(node) {
  54480. return type$.legacy_CssStyleRule._is(node);
  54481. }
  54482. };
  54483. E._ImportedCssVisitor_visitCssMediaRule_closure0.prototype = {
  54484. call$1: function(node) {
  54485. var t1;
  54486. if (!type$.legacy_CssStyleRule._is(node))
  54487. t1 = this.hasBeenMerged && type$.legacy_CssMediaRule._is(node);
  54488. else
  54489. t1 = true;
  54490. return t1;
  54491. }
  54492. };
  54493. E._ImportedCssVisitor_visitCssStyleRule_closure0.prototype = {
  54494. call$1: function(node) {
  54495. return type$.legacy_CssStyleRule._is(node);
  54496. }
  54497. };
  54498. E._ImportedCssVisitor_visitCssSupportsRule_closure0.prototype = {
  54499. call$1: function(node) {
  54500. return type$.legacy_CssStyleRule._is(node);
  54501. }
  54502. };
  54503. E.EvaluateResult.prototype = {};
  54504. E._ArgumentResults0.prototype = {};
  54505. V._CloneCssVisitor.prototype = {
  54506. visitCssAtRule$1: function(node) {
  54507. var t1 = node.isChildless,
  54508. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode),
  54509. rule = new U.ModifiableCssAtRule(node.name, node.value, t1, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2);
  54510. return t1 ? rule : this._visitChildren$2(rule, node);
  54511. },
  54512. visitCssComment$1: function(node) {
  54513. return new R.ModifiableCssComment(node.text, node.span);
  54514. },
  54515. visitCssDeclaration$1: function(node) {
  54516. return L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap);
  54517. },
  54518. visitCssImport$1: function(node) {
  54519. return F.ModifiableCssImport$(node.url, node.span, node.media, node.supports);
  54520. },
  54521. visitCssKeyframeBlock$1: function(node) {
  54522. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  54523. return this._visitChildren$2(new U.ModifiableCssKeyframeBlock(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1), node);
  54524. },
  54525. visitCssMediaRule$1: function(node) {
  54526. return this._visitChildren$2(G.ModifiableCssMediaRule$(node.queries, node.span), node);
  54527. },
  54528. visitCssStyleRule$1: function(node) {
  54529. var newSelector = this._oldToNewSelectors.$index(0, node.selector);
  54530. if (newSelector == null)
  54531. throw H.wrapException(P.StateError$(string$.The_Ex));
  54532. return this._visitChildren$2(X.ModifiableCssStyleRule$(newSelector, node.span, node.originalSelector), node);
  54533. },
  54534. visitCssStylesheet$1: function(node) {
  54535. var t1 = node.get$span(),
  54536. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  54537. return this._visitChildren$2(new V.ModifiableCssStylesheet(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2), node);
  54538. },
  54539. visitCssSupportsRule$1: function(node) {
  54540. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  54541. return this._visitChildren$2(new B.ModifiableCssSupportsRule(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1), node);
  54542. },
  54543. _visitChildren$1$2: function(newParent, oldParent) {
  54544. var t1, t2, newChild;
  54545. for (t1 = J.get$iterator$ax(oldParent.get$children()); t1.moveNext$0();) {
  54546. t2 = t1.get$current(t1);
  54547. newChild = t2.accept$1(this);
  54548. newChild.isGroupEnd = t2.get$isGroupEnd();
  54549. newParent.addChild$1(newChild);
  54550. }
  54551. return newParent;
  54552. },
  54553. _visitChildren$2: function(newParent, oldParent) {
  54554. return this._visitChildren$1$2(newParent, oldParent, type$.legacy_ModifiableCssParentNode);
  54555. }
  54556. };
  54557. R.Evaluator.prototype = {};
  54558. R._EvaluateVisitor.prototype = {
  54559. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap: function(functions, importCache, logger, nodeImporter, sourceMap) {
  54560. var t6, t7, t8, t9, t10, t11, t12, t13, metaFunctions, metaMixins, cur, _i, metaModule, module, $function, _this = this,
  54561. _s9_ = "sass:meta",
  54562. t1 = type$.legacy_String,
  54563. t2 = type$.legacy_VariableDeclaration,
  54564. t3 = S.SpanScanner$(string$.x40functgl, _s9_),
  54565. t4 = type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value,
  54566. t5 = type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value;
  54567. t3 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t3, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure(_this), t4)], t5);
  54568. t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
  54569. t6 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t6, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure0(_this), t4)], t5);
  54570. t7 = S.SpanScanner$(string$.x40functf, _s9_);
  54571. t7 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t7, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure1(_this), t4)], t5);
  54572. t8 = S.SpanScanner$(string$.x40functm, _s9_);
  54573. t8 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t8, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure2(_this), t4)], t5);
  54574. t9 = S.SpanScanner$("@function content-exists() {", _s9_);
  54575. t9 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t9, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure3(_this), t4)], t5);
  54576. t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
  54577. t10 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t10, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure4(_this), t4)], t5);
  54578. t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
  54579. t11 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t11, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure5(_this), t4)], t5);
  54580. t12 = S.SpanScanner$(string$.x40functge, _s9_);
  54581. t12 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t12, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure6(_this), t4)], t5);
  54582. t13 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
  54583. metaFunctions = [new Q.BuiltInCallable("global-variable-exists", t3), new Q.BuiltInCallable("variable-exists", t6), new Q.BuiltInCallable("function-exists", t7), new Q.BuiltInCallable("mixin-exists", t8), new Q.BuiltInCallable("content-exists", t9), new Q.BuiltInCallable("module-variables", t10), new Q.BuiltInCallable("module-functions", t11), new Q.BuiltInCallable("get-function", t12), new Q.BuiltInCallable("call", H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t13, C.StderrLogger_false).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure7(_this), t4)], t5))];
  54584. t1 = type$.JSArray_legacy_BuiltInCallable;
  54585. metaMixins = H.setRuntimeTypeInfo([Q.BuiltInCallable$mixin("load-css", "$module, $with: null", new R._EvaluateVisitor_closure8(_this), _s9_)], t1);
  54586. t1 = H.setRuntimeTypeInfo([], t1);
  54587. for (t2 = $.$get$global(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  54588. cur = t2.__internal$_current;
  54589. t1.push(cur);
  54590. }
  54591. for (_i = 0; _i < 9; ++_i)
  54592. t1.push(metaFunctions[_i]);
  54593. metaModule = Q.BuiltInModule$("meta", t1, metaMixins, null, type$.legacy_BuiltInCallable);
  54594. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInModule_legacy_BuiltInCallable);
  54595. for (t2 = $.$get$coreModules(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  54596. cur = t2.__internal$_current;
  54597. t1.push(cur);
  54598. }
  54599. t1.push(metaModule);
  54600. t2 = t1.length;
  54601. t3 = _this._builtInModules;
  54602. _i = 0;
  54603. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  54604. module = t1[_i];
  54605. t3.$indexSet(0, module.url, module);
  54606. }
  54607. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Callable);
  54608. for (t2 = $.$get$globalFunctions(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  54609. cur = t2.__internal$_current;
  54610. t1.push(cur);
  54611. }
  54612. for (_i = 0; _i < 9; ++_i)
  54613. t1.push(metaFunctions[_i]);
  54614. for (t2 = t1.length, t3 = _this._builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  54615. $function = t1[_i];
  54616. t4 = $function.get$name();
  54617. t4.toString;
  54618. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  54619. }
  54620. },
  54621. run$2: function(_, importer, node) {
  54622. return this._withWarnCallback$1$1(new R._EvaluateVisitor_run_closure(this, node, importer), type$.legacy_EvaluateResult);
  54623. },
  54624. runExpression$2: function(importer, expression) {
  54625. return this._withWarnCallback$1$1(new R._EvaluateVisitor_runExpression_closure(this, importer, expression), type$.legacy_Value);
  54626. },
  54627. runStatement$2: function(importer, statement) {
  54628. return this._withWarnCallback$1$1(new R._EvaluateVisitor_runStatement_closure(this, importer, statement), type$.void);
  54629. },
  54630. _withWarnCallback$1$1: function(callback, $T) {
  54631. return N.withWarnCallback(new R._EvaluateVisitor__withWarnCallback_closure(this), callback, $T._eval$1("0*"));
  54632. },
  54633. _withFakeStylesheet$1$3: function(importer, nodeWithSpan, callback) {
  54634. var oldStylesheet, t1, _this = this,
  54635. oldImporter = _this._importer;
  54636. _this._importer = importer;
  54637. oldStylesheet = _this._stylesheet;
  54638. _this._stylesheet = V.Stylesheet$(C.List_empty11, nodeWithSpan.get$span(), false);
  54639. try {
  54640. t1 = callback.call$0();
  54641. return t1;
  54642. } finally {
  54643. _this._importer = oldImporter;
  54644. _this._stylesheet = oldStylesheet;
  54645. }
  54646. },
  54647. _withFakeStylesheet$3: function(importer, nodeWithSpan, callback) {
  54648. return this._withFakeStylesheet$1$3(importer, nodeWithSpan, callback, type$.dynamic);
  54649. },
  54650. _loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  54651. var t1, _this = this,
  54652. builtInModule = _this._builtInModules.$index(0, url);
  54653. if (builtInModule != null) {
  54654. if (configuration != null && !configuration.isImplicit) {
  54655. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  54656. throw H.wrapException(_this._evaluate$_exception$2(t1, nodeWithSpan.get$span()));
  54657. }
  54658. _this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__loadModule_closure(callback, builtInModule));
  54659. return;
  54660. }
  54661. _this._withStackFrame$3(stackFrame, nodeWithSpan, new R._EvaluateVisitor__loadModule_closure0(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  54662. },
  54663. _loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  54664. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  54665. },
  54666. _loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  54667. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  54668. },
  54669. _execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  54670. var message, existingNode, environment, t3, extender, module, _this = this, t1 = {},
  54671. url = stylesheet.span.file.url,
  54672. t2 = _this._modules,
  54673. alreadyLoaded = t2.$index(0, url);
  54674. if (alreadyLoaded != null) {
  54675. t1 = configuration == null;
  54676. if (!(t1 ? _this._configuration : configuration).isImplicit) {
  54677. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + string$.x20was_a : string$.This_mw;
  54678. existingNode = _this._moduleNodes.$index(0, url);
  54679. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  54680. if (existingNode != null)
  54681. t2.$indexSet(0, existingNode.get$span(), "original load");
  54682. if (t1)
  54683. t2.$indexSet(0, _this._configuration.nodeWithSpan.get$span(), "configuration");
  54684. throw H.wrapException(t2.get$isEmpty(t2) ? _this._evaluate$_exception$1(message) : _this._multiSpanException$3(message, "new load", t2));
  54685. }
  54686. return alreadyLoaded;
  54687. }
  54688. environment = O.Environment$(_this._sourceMap);
  54689. t1.css = null;
  54690. t3 = type$.legacy_SimpleSelector;
  54691. extender = new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_List_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList, type$.legacy_List_legacy_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector), C.ExtendMode_normal);
  54692. _this._withEnvironment$2(environment, new R._EvaluateVisitor__execute_closure(t1, _this, importer, stylesheet, extender, configuration));
  54693. module = O._EnvironmentModule__EnvironmentModule(environment, t1.css, extender, environment._forwardedModules);
  54694. t2.$indexSet(0, url, module);
  54695. _this._moduleNodes.$indexSet(0, url, nodeWithSpan);
  54696. return module;
  54697. },
  54698. _execute$2: function(importer, stylesheet) {
  54699. return this._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  54700. },
  54701. _addOutOfOrderImports$0: function() {
  54702. var t1, statements, _this = this;
  54703. if (_this._outOfOrderImports == null)
  54704. return _this._root.children;
  54705. t1 = new Array(J.get$length$asx(_this._root.children._collection$_source) + _this._outOfOrderImports.length);
  54706. t1.fixed$length = Array;
  54707. statements = new G.FixedLengthListBuilder(H.setRuntimeTypeInfo(t1, type$.JSArray_legacy_ModifiableCssNode), type$.FixedLengthListBuilder_legacy_ModifiableCssNode);
  54708. statements.addRange$3(_this._root.children, 0, _this._endOfImports);
  54709. statements.addAll$1(0, _this._outOfOrderImports);
  54710. statements.addRange$2(_this._root.children, _this._endOfImports);
  54711. return statements.build$0();
  54712. },
  54713. _combineCss$2$clone: function(root, clone) {
  54714. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, cur, statements, index, t2, _this = this;
  54715. if (!C.JSArray_methods.any$1(root.get$upstream(), new R._EvaluateVisitor__combineCss_closure())) {
  54716. selectors = root.get$extender().get$simpleSelectors();
  54717. unsatisfiedExtension = B.firstOrNull(root.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__combineCss_closure0(selectors)));
  54718. if (unsatisfiedExtension != null)
  54719. _this._throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  54720. return root.get$css(root);
  54721. }
  54722. sortedModules = _this._topologicalModules$1(root);
  54723. if (clone) {
  54724. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<Callable*>*>");
  54725. sortedModules = P.List_List$from(new H.MappedListIterable(sortedModules, new R._EvaluateVisitor__combineCss_closure1(), t1), true, t1._eval$1("ListIterable.E"));
  54726. }
  54727. _this._extendModules$1(sortedModules);
  54728. t1 = type$.JSArray_legacy_CssNode;
  54729. imports = H.setRuntimeTypeInfo([], t1);
  54730. css = H.setRuntimeTypeInfo([], t1);
  54731. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  54732. cur = t1.__internal$_current;
  54733. statements = cur.get$css(cur).get$children();
  54734. index = _this._indexAfterImports$1(statements);
  54735. t2 = J.getInterceptor$ax(statements);
  54736. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  54737. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  54738. }
  54739. return new V.CssStylesheet(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_legacy_CssNode), root.get$css(root).get$span());
  54740. },
  54741. _combineCss$1: function(root) {
  54742. return this._combineCss$2$clone(root, false);
  54743. },
  54744. _extendModules$1: function(sortedModules) {
  54745. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  54746. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_List_legacy_Extender),
  54747. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_Extension);
  54748. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  54749. t2 = t1.get$current(t1);
  54750. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  54751. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__extendModules_closure(originalSelectors)));
  54752. extenders = downstreamExtenders.$index(0, t2.get$url());
  54753. if (extenders != null)
  54754. t2.get$extender().addExtensions$1(extenders);
  54755. t3 = t2.get$extender();
  54756. if (t3.get$isEmpty(t3))
  54757. continue;
  54758. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  54759. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new R._EvaluateVisitor__extendModules_closure0()), t2.get$extender());
  54760. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  54761. }
  54762. if (unsatisfiedExtensions._collection$_length !== 0)
  54763. this._throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  54764. },
  54765. _throwForUnsatisfiedExtension$1: function(extension) {
  54766. throw H.wrapException(E.SassException$(string$.The_ta + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  54767. },
  54768. _topologicalModules$1: function(root) {
  54769. var t1 = type$.legacy_Module_legacy_Callable,
  54770. sorted = Q.QueueList$(null, t1);
  54771. new R._EvaluateVisitor__topologicalModules_visitModule(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  54772. return sorted;
  54773. },
  54774. _indexAfterImports$1: function(statements) {
  54775. var t1, t2, t3, lastImport, i, statement;
  54776. for (t1 = J.getInterceptor$asx(statements), t2 = type$.legacy_CssComment, t3 = type$.legacy_CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  54777. statement = t1.$index(statements, i);
  54778. if (t3._is(statement))
  54779. lastImport = i;
  54780. else if (!t2._is(statement))
  54781. break;
  54782. }
  54783. return lastImport + 1;
  54784. },
  54785. visitStylesheet$1: function(node) {
  54786. var t1, t2, _i;
  54787. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  54788. t1[_i].accept$1(this);
  54789. return null;
  54790. },
  54791. visitAtRootRule$1: function(node) {
  54792. var root, innerCopy, outerCopy, cur, copy, _this = this, _null = null,
  54793. t1 = node.query,
  54794. query = t1 != null ? _this._adjustParseError$2(t1, new R._EvaluateVisitor_visitAtRootRule_closure(_this, _this._performInterpolation$2$warnForColor(t1, true))) : C.AtRootQuery_UsS,
  54795. $parent = _this._evaluate$_parent,
  54796. included = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssParentNode);
  54797. for (t1 = type$.legacy_CssStylesheet; !t1._is($parent);) {
  54798. if (!query.excludes$1($parent))
  54799. included.push($parent);
  54800. $parent = $parent._parent;
  54801. }
  54802. root = _this._trimIncluded$1(included);
  54803. if (root == _this._evaluate$_parent) {
  54804. _this._evaluate$_environment.scope$1$2$when(new R._EvaluateVisitor_visitAtRootRule_closure0(_this, node), node.hasDeclarations, type$.Null);
  54805. return _null;
  54806. }
  54807. innerCopy = included.length === 0 ? _null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  54808. for (t1 = H.SubListIterable$(included, 1, _null, type$.legacy_ModifiableCssParentNode), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  54809. cur = t1.__internal$_current;
  54810. copy = cur.copyWithoutChildren$0();
  54811. copy.addChild$1(outerCopy);
  54812. }
  54813. if (outerCopy != null)
  54814. root.addChild$1(outerCopy);
  54815. _this._scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new R._EvaluateVisitor_visitAtRootRule_closure1(_this, node));
  54816. return _null;
  54817. },
  54818. _trimIncluded$1: function(nodes) {
  54819. var $parent, innermostContiguous, i, t2, root,
  54820. t1 = nodes.length;
  54821. if (t1 === 0)
  54822. return this._root;
  54823. $parent = this._evaluate$_parent;
  54824. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  54825. for (; $parent != nodes[i]; innermostContiguous = null)
  54826. $parent = $parent._parent;
  54827. if (innermostContiguous == null)
  54828. innermostContiguous = i;
  54829. $parent = $parent._parent;
  54830. }
  54831. t2 = this._root;
  54832. if ($parent != t2)
  54833. return t2;
  54834. root = nodes[innermostContiguous];
  54835. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  54836. return root;
  54837. },
  54838. _scopeForAtRoot$4: function(node, newParent, query, included) {
  54839. var _this = this,
  54840. scope = new R._EvaluateVisitor__scopeForAtRoot_closure(_this, newParent, node),
  54841. t1 = query._all,
  54842. t2 = t1 || query._at_root_query$_rule,
  54843. t3 = query.include;
  54844. if (t2 !== t3)
  54845. scope = new R._EvaluateVisitor__scopeForAtRoot_closure0(_this, scope);
  54846. if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
  54847. scope = new R._EvaluateVisitor__scopeForAtRoot_closure1(_this, scope);
  54848. if (_this._inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
  54849. scope = new R._EvaluateVisitor__scopeForAtRoot_closure2(_this, scope);
  54850. return _this._inUnknownAtRule && !C.JSArray_methods.any$1(included, new R._EvaluateVisitor__scopeForAtRoot_closure3()) ? new R._EvaluateVisitor__scopeForAtRoot_closure4(_this, scope) : scope;
  54851. },
  54852. visitContentBlock$1: function(node) {
  54853. return H.throwExpression(P.UnsupportedError$(string$.Evalua));
  54854. },
  54855. visitContentRule$1: function(node) {
  54856. var $content = this._evaluate$_environment._content;
  54857. if ($content == null)
  54858. return null;
  54859. this._runUserDefinedCallable$4(node.$arguments, $content, node, new R._EvaluateVisitor_visitContentRule_closure(this, $content));
  54860. return null;
  54861. },
  54862. visitDebugRule$1: function(node) {
  54863. var value = node.expression.accept$1(this),
  54864. t1 = value instanceof D.SassString ? value.text : J.toString$0$(value);
  54865. this._evaluate$_logger.debug$2(t1, node.span);
  54866. return null;
  54867. },
  54868. visitDeclaration$1: function(node) {
  54869. var $name, t1, cssValue, t2, oldDeclarationName, _this = this;
  54870. if (!(_this._styleRule != null && !_this._atRootExcludingStyleRule) && !_this._inUnknownAtRule && !_this._inKeyframes)
  54871. throw H.wrapException(_this._evaluate$_exception$2(string$.Declar, node.span));
  54872. $name = _this._interpolationToValue$2$warnForColor(node.name, true);
  54873. t1 = _this._declarationName;
  54874. if (t1 != null)
  54875. $name = new F.CssValue(t1 + "-" + H.S($name.value), $name.span, type$.CssValue_legacy_String);
  54876. t1 = node.value;
  54877. cssValue = t1 == null ? null : new F.CssValue(t1.accept$1(_this), t1.get$span(), type$.CssValue_legacy_Value);
  54878. if (cssValue != null) {
  54879. t2 = cssValue.value;
  54880. t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
  54881. } else
  54882. t2 = false;
  54883. if (t2) {
  54884. t2 = _this._evaluate$_parent;
  54885. t1 = _this._expressionNode$1(t1);
  54886. t1 = t1 == null ? null : t1.get$span();
  54887. t2.addChild$1(L.ModifiableCssDeclaration$($name, cssValue, node.span, t1));
  54888. } else if (J.startsWith$1$s($name.value, "--"))
  54889. throw H.wrapException(_this._evaluate$_exception$2("Custom property values may not be empty.", t1.get$span()));
  54890. if (node.children != null) {
  54891. oldDeclarationName = _this._declarationName;
  54892. _this._declarationName = $name.value;
  54893. _this._evaluate$_environment.scope$1$2$when(new R._EvaluateVisitor_visitDeclaration_closure(_this, node), node.hasDeclarations, type$.Null);
  54894. _this._declarationName = oldDeclarationName;
  54895. }
  54896. return null;
  54897. },
  54898. visitEachRule$1: function(node) {
  54899. var _this = this,
  54900. t1 = node.list,
  54901. list = t1.accept$1(_this),
  54902. nodeWithSpan = _this._expressionNode$1(t1),
  54903. setVariables = node.variables.length === 1 ? new R._EvaluateVisitor_visitEachRule_closure(_this, node, nodeWithSpan) : new R._EvaluateVisitor_visitEachRule_closure0(_this, node, nodeWithSpan);
  54904. return _this._evaluate$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitEachRule_closure1(_this, list, setVariables, node), true, type$.legacy_Value);
  54905. },
  54906. _setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  54907. var i,
  54908. list = value.get$asList(),
  54909. t1 = variables.length,
  54910. minLength = Math.min(t1, list.length);
  54911. for (i = 0; i < minLength; ++i)
  54912. this._evaluate$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  54913. for (i = minLength; i < t1; ++i)
  54914. this._evaluate$_environment.setLocalVariable$3(variables[i], C.C_SassNull0, nodeWithSpan);
  54915. },
  54916. visitErrorRule$1: function(node) {
  54917. throw H.wrapException(this._evaluate$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  54918. },
  54919. visitExtendRule$1: function(node) {
  54920. var targetText, t1, t2, t3, _i, t4, _this = this;
  54921. if (!(_this._styleRule != null && !_this._atRootExcludingStyleRule) || _this._declarationName != null)
  54922. throw H.wrapException(_this._evaluate$_exception$2(string$.x40exten, node.span));
  54923. targetText = _this._interpolationToValue$2$warnForColor(node.selector, true);
  54924. for (t1 = _this._adjustParseError$2(targetText, new R._EvaluateVisitor_visitExtendRule_closure(_this, targetText)).components, t2 = t1.length, t3 = type$.legacy_CompoundSelector, _i = 0; _i < t2; ++_i) {
  54925. t4 = t1[_i].components;
  54926. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector))
  54927. throw H.wrapException(E.SassFormatException$("complex selectors may not be extended.", targetText.span));
  54928. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  54929. if (t4.length !== 1)
  54930. throw H.wrapException(E.SassFormatException$(string$.compou + C.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.span));
  54931. _this._extender.addExtension$4(_this._styleRule.selector, C.JSArray_methods.get$first(t4), node, _this._mediaQueries);
  54932. }
  54933. return null;
  54934. },
  54935. visitAtRule$1: function(node) {
  54936. var $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
  54937. if (_this._declarationName != null)
  54938. throw H.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
  54939. $name = _this._interpolationToValue$1(node.name);
  54940. t1 = node.value;
  54941. value = t1 == null ? null : _this._interpolationToValue$3$trim$warnForColor(t1, true, true);
  54942. if (node.children == null) {
  54943. t1 = _this._evaluate$_parent;
  54944. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  54945. t1.addChild$1(new U.ModifiableCssAtRule($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2));
  54946. return null;
  54947. }
  54948. wasInKeyframes = _this._inKeyframes;
  54949. wasInUnknownAtRule = _this._inUnknownAtRule;
  54950. if (B.unvendor($name.value) === "keyframes")
  54951. _this._inKeyframes = true;
  54952. else
  54953. _this._inUnknownAtRule = true;
  54954. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  54955. _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1), new R._EvaluateVisitor_visitAtRule_closure(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitAtRule_closure0(), type$.legacy_ModifiableCssAtRule, type$.Null);
  54956. _this._inUnknownAtRule = wasInUnknownAtRule;
  54957. _this._inKeyframes = wasInKeyframes;
  54958. return null;
  54959. },
  54960. visitForRule$1: function(node) {
  54961. var _this = this, t1 = {},
  54962. t2 = node.from,
  54963. fromNumber = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure(_this, node)),
  54964. t3 = node.to,
  54965. toNumber = _this._addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure0(_this, node)),
  54966. from = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure1(fromNumber, toNumber)),
  54967. to = t1.to = _this._addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure2(toNumber)),
  54968. direction = from > to ? -1 : 1;
  54969. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  54970. return null;
  54971. return _this._evaluate$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitForRule_closure3(t1, _this, node, from, direction), true, type$.legacy_Value);
  54972. },
  54973. visitForwardRule$1: function(node) {
  54974. var newConfiguration, t4, _i, variable, _this = this,
  54975. _s8_ = "@forward",
  54976. oldConfiguration = _this._configuration,
  54977. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  54978. t1 = node.configuration,
  54979. t2 = t1.length,
  54980. t3 = node.url;
  54981. if (t2 !== 0) {
  54982. newConfiguration = _this._addForwardConfiguration$2(adjustedConfiguration, node);
  54983. _this._loadModule$5$configuration(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure(_this, node), newConfiguration);
  54984. t3 = type$.legacy_String;
  54985. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  54986. for (_i = 0; _i < t2; ++_i) {
  54987. variable = t1[_i];
  54988. if (!variable.isGuarded)
  54989. t4.add$1(0, variable.name);
  54990. }
  54991. _this._removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  54992. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  54993. for (_i = 0; _i < t2; ++_i)
  54994. t3.add$1(0, t1[_i].name);
  54995. _this._assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  54996. } else {
  54997. _this._configuration = adjustedConfiguration;
  54998. _this._loadModule$4(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure0(_this, node));
  54999. _this._configuration = oldConfiguration;
  55000. }
  55001. return null;
  55002. },
  55003. _addForwardConfiguration$2: function(configuration, node) {
  55004. var t2, t3, _i, variable, t4, t5,
  55005. t1 = configuration._values,
  55006. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue), type$.legacy_String, type$.legacy_ConfiguredValue);
  55007. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  55008. variable = t2[_i];
  55009. if (variable.isGuarded) {
  55010. t4 = variable.name;
  55011. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  55012. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull0)) {
  55013. newValues.$indexSet(0, t4, t5);
  55014. continue;
  55015. }
  55016. }
  55017. t4 = variable.name;
  55018. t5 = variable.expression;
  55019. newValues.$indexSet(0, t4, new Z.ConfiguredValue(t5.accept$1(this).withoutSlash$0(), variable.span, this._expressionNode$1(t5)));
  55020. }
  55021. return new A.Configuration(newValues, node, false);
  55022. },
  55023. _removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  55024. var t1, t2, t3, t4, _i, $name;
  55025. for (t1 = upstream._values, t2 = J.toList$0$ax(t1.get$keys()), t3 = t2.length, t4 = downstream._values, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  55026. $name = t2[_i];
  55027. if (except.contains$1(0, $name))
  55028. continue;
  55029. if (!t4.containsKey$1($name))
  55030. if (!t1.get$isEmpty(t1))
  55031. t1.remove$1(0, $name);
  55032. }
  55033. },
  55034. _assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  55035. configuration._values.forEach$1(0, new R._EvaluateVisitor__assertConfigurationIsEmpty_closure(this, only, nameInError));
  55036. },
  55037. _assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  55038. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  55039. },
  55040. _assertConfigurationIsEmpty$1: function(configuration) {
  55041. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  55042. },
  55043. _assertConfigurationIsEmpty$2$only: function(configuration, only) {
  55044. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  55045. },
  55046. visitFunctionRule$1: function(node) {
  55047. var t1 = this._evaluate$_environment,
  55048. t2 = t1.closure$0(),
  55049. t3 = t1._functions,
  55050. index = t3.length - 1,
  55051. t4 = node.name;
  55052. t1._functionIndices.$indexSet(0, t4, index);
  55053. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_legacy_Environment));
  55054. return null;
  55055. },
  55056. visitIfRule$1: function(node) {
  55057. var t1, t2, _i, clauseToCheck, _box_0 = {};
  55058. _box_0.clause = node.lastClause;
  55059. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  55060. clauseToCheck = t1[_i];
  55061. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  55062. _box_0.clause = clauseToCheck;
  55063. break;
  55064. }
  55065. }
  55066. t1 = _box_0.clause;
  55067. if (t1 == null)
  55068. return null;
  55069. return this._evaluate$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitIfRule_closure(_box_0, this), true, t1.hasDeclarations, type$.legacy_Value);
  55070. },
  55071. visitImportRule$1: function(node) {
  55072. var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, supports, t8, t9, resolvedSupports, mediaQuery, t10, result0, _this = this, _null = null;
  55073. for (t1 = node.imports, t2 = t1.length, t3 = type$.legacy_CssMediaQuery, t4 = type$.CssValue_legacy_String, t5 = type$.legacy_StaticImport, t6 = type$.JSArray_legacy_ModifiableCssImport, _i = 0; _i < t2; ++_i) {
  55074. $import = t1[_i];
  55075. if ($import instanceof B.DynamicImport)
  55076. _this._visitDynamicImport$1($import);
  55077. else {
  55078. t5._as($import);
  55079. t7 = $import.url;
  55080. result = _this._performInterpolation$2$warnForColor(t7, false);
  55081. supports = $import.supports;
  55082. if (supports instanceof L.SupportsDeclaration) {
  55083. t8 = supports.name;
  55084. t8 = H.S(_this._evaluate$_serialize$3$quote(t8.accept$1(_this), t8, true)) + ": ";
  55085. t9 = supports.value;
  55086. resolvedSupports = t8 + H.S(_this._evaluate$_serialize$3$quote(t9.accept$1(_this), t9, true));
  55087. } else
  55088. resolvedSupports = supports == null ? _null : _this._visitSupportsCondition$1(supports);
  55089. t8 = $import.media;
  55090. mediaQuery = t8 == null ? _null : _this._visitMediaQueries$1(t8);
  55091. t8 = $import.span;
  55092. t9 = resolvedSupports == null ? _null : new F.CssValue("supports(" + resolvedSupports + ")", supports.get$span(), t4);
  55093. if (mediaQuery == null)
  55094. t10 = _null;
  55095. else {
  55096. result0 = P.List_List$from(mediaQuery, false, t3);
  55097. result0.fixed$length = Array;
  55098. result0.immutable$list = Array;
  55099. t10 = result0;
  55100. }
  55101. node = new F.ModifiableCssImport(new F.CssValue(result, t7.span, t4), t9, t10, t8);
  55102. t7 = _this._evaluate$_parent;
  55103. t8 = _this._root;
  55104. if (t7 != t8)
  55105. t7.addChild$1(node);
  55106. else if (_this._endOfImports === J.get$length$asx(t8.children._collection$_source)) {
  55107. t7 = _this._root;
  55108. t7.toString;
  55109. node._parent = t7;
  55110. t7 = t7._children;
  55111. node._indexInParent = t7.length;
  55112. t7.push(node);
  55113. _this._endOfImports = _this._endOfImports + 1;
  55114. } else {
  55115. t7 = _this._outOfOrderImports;
  55116. (t7 == null ? _this._outOfOrderImports = H.setRuntimeTypeInfo([], t6) : t7).push(node);
  55117. }
  55118. }
  55119. }
  55120. return _null;
  55121. },
  55122. _visitDynamicImport$1: function($import) {
  55123. return this._withStackFrame$3("@import", $import, new R._EvaluateVisitor__visitDynamicImport_closure(this, $import));
  55124. },
  55125. _loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  55126. var tuple, error, error0, message, t1, t2, t3, exception, _this = this;
  55127. try {
  55128. _this._importSpan = span;
  55129. t1 = P.Uri_parse(url);
  55130. t2 = _this._importer;
  55131. if (baseUrl == null) {
  55132. t3 = _this._stylesheet;
  55133. t3 = t3 == null ? null : t3.span;
  55134. t3 = t3 == null ? null : t3.file.url;
  55135. } else
  55136. t3 = baseUrl;
  55137. tuple = _this._evaluate$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport);
  55138. if (tuple != null)
  55139. return tuple;
  55140. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  55141. throw H.wrapException(string$.x22packa);
  55142. else
  55143. throw H.wrapException("Can't find stylesheet to import.");
  55144. } catch (exception) {
  55145. t1 = H.unwrapException(exception);
  55146. if (t1 instanceof E.SassException) {
  55147. error = t1;
  55148. t1 = _this._evaluate$_exception$2(error._span_exception$_message, error.get$span());
  55149. throw H.wrapException(t1);
  55150. } else {
  55151. error0 = t1;
  55152. message = null;
  55153. try {
  55154. message = H._asStringS(J.get$message$x(error0));
  55155. } catch (exception) {
  55156. H.unwrapException(exception);
  55157. message = J.toString$0$(error0);
  55158. }
  55159. t1 = _this._evaluate$_exception$1(message);
  55160. throw H.wrapException(t1);
  55161. }
  55162. } finally {
  55163. _this._importSpan = null;
  55164. }
  55165. },
  55166. _loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  55167. return this._loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  55168. },
  55169. _loadStylesheet$3$forImport: function(url, span, forImport) {
  55170. return this._loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  55171. },
  55172. visitIncludeRule$1: function(node) {
  55173. var nodeWithSpan, t1, t2, contentCallable, _this = this,
  55174. _s37_ = "Mixin doesn't accept a content block.",
  55175. mixin = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitIncludeRule_closure(_this, node));
  55176. if (mixin == null)
  55177. throw H.wrapException(_this._evaluate$_exception$2("Undefined mixin.", node.span));
  55178. nodeWithSpan = new B._FakeAstNode(new R._EvaluateVisitor_visitIncludeRule_closure0(node));
  55179. if (mixin instanceof Q.BuiltInCallable) {
  55180. if (node.content != null)
  55181. throw H.wrapException(_this._evaluate$_exception$2(_s37_, node.span));
  55182. _this._runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
  55183. } else if (type$.legacy_UserDefinedCallable_legacy_Environment._is(mixin)) {
  55184. t1 = node.content;
  55185. t2 = t1 == null;
  55186. if (!t2 && !type$.legacy_MixinRule._as(mixin.declaration).hasContent)
  55187. throw H.wrapException(E.MultiSpanSassRuntimeException$(_s37_, node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), _this._evaluate$_stackTrace$1(node.get$spanWithoutContent())));
  55188. contentCallable = t2 ? null : new E.UserDefinedCallable(t1, _this._evaluate$_environment.closure$0(), type$.UserDefinedCallable_legacy_Environment);
  55189. _this._runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new R._EvaluateVisitor_visitIncludeRule_closure1(_this, contentCallable, mixin, nodeWithSpan));
  55190. } else
  55191. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  55192. return null;
  55193. },
  55194. visitMixinRule$1: function(node) {
  55195. var t1 = this._evaluate$_environment,
  55196. t2 = t1.closure$0(),
  55197. t3 = t1._mixins,
  55198. index = t3.length - 1,
  55199. t4 = node.name;
  55200. t1._mixinIndices.$indexSet(0, t4, index);
  55201. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_legacy_Environment));
  55202. return null;
  55203. },
  55204. visitLoudComment$1: function(node) {
  55205. var t1, t2, _this = this;
  55206. if (_this._inFunction)
  55207. return null;
  55208. t1 = _this._evaluate$_parent;
  55209. t2 = _this._root;
  55210. if (t1 == t2 && _this._endOfImports === J.get$length$asx(t2.children._collection$_source))
  55211. _this._endOfImports = _this._endOfImports + 1;
  55212. t1 = node.text;
  55213. _this._evaluate$_parent.addChild$1(new R.ModifiableCssComment(_this._performInterpolation$1(t1), t1.span));
  55214. return null;
  55215. },
  55216. visitMediaRule$1: function(node) {
  55217. var queries, t1, mergedQueries, _this = this;
  55218. if (_this._declarationName != null)
  55219. throw H.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
  55220. queries = _this._visitMediaQueries$1(node.query);
  55221. t1 = _this._mediaQueries;
  55222. mergedQueries = t1 == null ? null : _this._mergeMediaQueries$2(t1, queries);
  55223. t1 = mergedQueries == null;
  55224. if (!t1 && mergedQueries.length === 0)
  55225. return null;
  55226. t1 = t1 ? queries : mergedQueries;
  55227. _this._withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new R._EvaluateVisitor_visitMediaRule_closure(_this, mergedQueries, queries, node), node.hasDeclarations, new R._EvaluateVisitor_visitMediaRule_closure0(mergedQueries), type$.legacy_ModifiableCssMediaRule, type$.Null);
  55228. return null;
  55229. },
  55230. _visitMediaQueries$1: function(interpolation) {
  55231. return this._adjustParseError$2(interpolation, new R._EvaluateVisitor__visitMediaQueries_closure(this, this._performInterpolation$2$warnForColor(interpolation, true)));
  55232. },
  55233. _mergeMediaQueries$2: function(queries1, queries2) {
  55234. var t1, t2, t3, t4, t5, result,
  55235. queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery);
  55236. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.legacy_MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
  55237. t4 = t1.get$current(t1);
  55238. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  55239. result = t4.merge$1(t5.get$current(t5));
  55240. if (result === C._SingletonCssMediaQueryMergeResult_empty)
  55241. continue;
  55242. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable)
  55243. return null;
  55244. queries.push(t3._as(result).query);
  55245. }
  55246. }
  55247. return queries;
  55248. },
  55249. visitReturnRule$1: function(node) {
  55250. return node.expression.accept$1(this);
  55251. },
  55252. visitSilentComment$1: function(node) {
  55253. return null;
  55254. },
  55255. visitStyleRule$1: function(node) {
  55256. var t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, _this = this, t1 = {};
  55257. if (_this._declarationName != null)
  55258. throw H.wrapException(_this._evaluate$_exception$2(string$.Style_, node.span));
  55259. t2 = node.selector;
  55260. selectorText = _this._interpolationToValue$3$trim$warnForColor(t2, true, true);
  55261. if (_this._inKeyframes) {
  55262. t1 = P.List_List$unmodifiable(_this._adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure(_this, selectorText)), type$.legacy_String);
  55263. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  55264. _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(new F.CssValue(t1, t2.span, type$.CssValue_legacy_List_legacy_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode), t3), new R._EvaluateVisitor_visitStyleRule_closure0(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure1(), type$.legacy_ModifiableCssKeyframeBlock, type$.Null);
  55265. return null;
  55266. }
  55267. t1.parsedSelector = _this._adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure2(_this, selectorText));
  55268. parsedSelector = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitStyleRule_closure3(t1, _this));
  55269. t1.parsedSelector = parsedSelector;
  55270. rule = X.ModifiableCssStyleRule$(_this._extender.addSelector$3(parsedSelector, t2.span, _this._mediaQueries), node.span, t1.parsedSelector);
  55271. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  55272. _this._atRootExcludingStyleRule = false;
  55273. _this._withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitStyleRule_closure4(_this, rule, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure5(), type$.legacy_ModifiableCssStyleRule, type$.Null);
  55274. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  55275. if (!(_this._styleRule != null && !oldAtRootExcludingStyleRule)) {
  55276. t1 = _this._evaluate$_parent.children;
  55277. t1 = !t1.get$isEmpty(t1);
  55278. } else
  55279. t1 = false;
  55280. if (t1) {
  55281. t1 = _this._evaluate$_parent.children;
  55282. t1.get$last(t1).isGroupEnd = true;
  55283. }
  55284. return null;
  55285. },
  55286. visitSupportsRule$1: function(node) {
  55287. var t1, t2, t3, _this = this;
  55288. if (_this._declarationName != null)
  55289. throw H.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
  55290. t1 = node.condition;
  55291. t2 = _this._visitSupportsCondition$1(t1);
  55292. t1 = t1.get$span();
  55293. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  55294. _this._withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(new F.CssValue(t2, t1, type$.CssValue_legacy_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode), t3), new R._EvaluateVisitor_visitSupportsRule_closure(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitSupportsRule_closure0(), type$.legacy_ModifiableCssSupportsRule, type$.Null);
  55295. return null;
  55296. },
  55297. _visitSupportsCondition$1: function(condition) {
  55298. var t1, t2, _this = this;
  55299. if (condition instanceof U.SupportsOperation) {
  55300. t1 = condition.left;
  55301. t2 = condition.operator;
  55302. return H.S(_this._parenthesize$2(t1, t2)) + " " + t2 + " " + H.S(_this._parenthesize$2(condition.right, t2));
  55303. } else if (condition instanceof M.SupportsNegation)
  55304. return "not " + H.S(_this._parenthesize$1(condition.condition));
  55305. else if (condition instanceof X.SupportsInterpolation) {
  55306. t1 = condition.expression;
  55307. return _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, false);
  55308. } else if (condition instanceof L.SupportsDeclaration) {
  55309. t1 = condition.name;
  55310. t1 = "(" + H.S(_this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, true)) + ": ";
  55311. t2 = condition.value;
  55312. return t1 + H.S(_this._evaluate$_serialize$3$quote(t2.accept$1(_this), t2, true)) + ")";
  55313. } else
  55314. return null;
  55315. },
  55316. _parenthesize$2: function(condition, operator) {
  55317. var t1;
  55318. if (!(condition instanceof M.SupportsNegation))
  55319. if (condition instanceof U.SupportsOperation)
  55320. t1 = operator == null || operator !== condition.operator;
  55321. else
  55322. t1 = false;
  55323. else
  55324. t1 = true;
  55325. if (t1)
  55326. return "(" + H.S(this._visitSupportsCondition$1(condition)) + ")";
  55327. else
  55328. return this._visitSupportsCondition$1(condition);
  55329. },
  55330. _parenthesize$1: function(condition) {
  55331. return this._parenthesize$2(condition, null);
  55332. },
  55333. visitVariableDeclaration$1: function(node) {
  55334. var t1, value, t2, _this = this, _null = null;
  55335. if (node.isGuarded) {
  55336. if (node.namespace == null && _this._evaluate$_environment._variables.length === 1) {
  55337. t1 = _this._configuration._values;
  55338. t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
  55339. if (t1 != null) {
  55340. _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure(_this, node, t1));
  55341. return _null;
  55342. }
  55343. }
  55344. value = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure0(_this, node));
  55345. if (value != null && !value.$eq(0, C.C_SassNull0))
  55346. return _null;
  55347. }
  55348. if (node.isGlobal && !_this._evaluate$_environment.globalVariableExists$1(node.name)) {
  55349. t1 = _this._evaluate$_environment._variables.length === 1 ? string$.As_of_S : string$.As_of_C + B.declarationName(node.span) + ": null` at the root of the\nstylesheet.";
  55350. t2 = node.span;
  55351. _this._evaluate$_logger.warn$4$deprecation$span$trace(t1, true, t2, _this._evaluate$_stackTrace$1(t2));
  55352. }
  55353. _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure1(_this, node, node.expression.accept$1(_this).withoutSlash$0()));
  55354. return _null;
  55355. },
  55356. visitUseRule$1: function(node) {
  55357. var configuration, t3, _i, variable, t4, t5, _this = this,
  55358. t1 = node.configuration,
  55359. t2 = t1.length;
  55360. if (t2 === 0)
  55361. configuration = C.Configuration_Map_empty_null_true;
  55362. else {
  55363. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue);
  55364. for (_i = 0; _i < t2; ++_i) {
  55365. variable = t1[_i];
  55366. t4 = variable.name;
  55367. t5 = variable.expression;
  55368. t3.$indexSet(0, t4, new Z.ConfiguredValue(t5.accept$1(_this).withoutSlash$0(), variable.span, _this._expressionNode$1(t5)));
  55369. }
  55370. configuration = new A.Configuration(t3, node, false);
  55371. }
  55372. _this._loadModule$5$configuration(node.url, "@use", node, new R._EvaluateVisitor_visitUseRule_closure(_this, node), configuration);
  55373. _this._assertConfigurationIsEmpty$1(configuration);
  55374. return null;
  55375. },
  55376. visitWarnRule$1: function(node) {
  55377. var _this = this,
  55378. value = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitWarnRule_closure(_this, node)),
  55379. t1 = value instanceof D.SassString ? value.text : _this._evaluate$_serialize$2(value, node.expression);
  55380. _this._evaluate$_logger.warn$2$trace(t1, _this._evaluate$_stackTrace$1(node.span));
  55381. return null;
  55382. },
  55383. visitWhileRule$1: function(node) {
  55384. return this._evaluate$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitWhileRule_closure(this, node), true, node.hasDeclarations, type$.legacy_Value);
  55385. },
  55386. visitBinaryOperationExpression$1: function(node) {
  55387. return this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitBinaryOperationExpression_closure(this, node));
  55388. },
  55389. visitValueExpression$1: function(node) {
  55390. return node.value;
  55391. },
  55392. visitVariableExpression$1: function(node) {
  55393. var result = this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableExpression_closure(this, node));
  55394. if (result != null)
  55395. return result;
  55396. throw H.wrapException(this._evaluate$_exception$2("Undefined variable.", node.span));
  55397. },
  55398. visitUnaryOperationExpression$1: function(node) {
  55399. var operand = node.operand.accept$1(this),
  55400. t1 = node.operator;
  55401. switch (t1) {
  55402. case C.UnaryOperator_j2w:
  55403. return operand.unaryPlus$0();
  55404. case C.UnaryOperator_U4G:
  55405. return operand.unaryMinus$0();
  55406. case C.UnaryOperator_zDx:
  55407. operand.toString;
  55408. return new D.SassString("/" + N.serializeValue0(operand, false, true), false);
  55409. case C.UnaryOperator_not_not:
  55410. return operand.unaryNot$0();
  55411. default:
  55412. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  55413. }
  55414. },
  55415. visitBooleanExpression$1: function(node) {
  55416. return node.value ? C.SassBoolean_true0 : C.SassBoolean_false0;
  55417. },
  55418. visitIfExpression$1: function(node) {
  55419. var condition, ifTrue, ifFalse, _this = this,
  55420. pair = _this._evaluateMacroArguments$1(node),
  55421. positional = pair.item1,
  55422. named = pair.item2,
  55423. t1 = J.getInterceptor$asx(positional);
  55424. _this._verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
  55425. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  55426. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  55427. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  55428. return (condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse).accept$1(_this);
  55429. },
  55430. visitNullExpression$1: function(node) {
  55431. return C.C_SassNull0;
  55432. },
  55433. visitNumberExpression$1: function(node) {
  55434. var t1 = node.unit;
  55435. t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_legacy_String);
  55436. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.legacy_String);
  55437. return new T.SassNumber(node.value, t1, C.List_empty, null);
  55438. },
  55439. visitParenthesizedExpression$1: function(node) {
  55440. return node.expression.accept$1(this);
  55441. },
  55442. visitColorExpression$1: function(node) {
  55443. return node.value;
  55444. },
  55445. visitListExpression$1: function(node) {
  55446. var t1 = node.contents;
  55447. return D.SassList$(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitListExpression_closure(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value*>")), node.separator, node.hasBrackets);
  55448. },
  55449. visitMapExpression$1: function(node) {
  55450. var t2, t3, _i, pair, t4, keyValue, valueValue,
  55451. t1 = type$.legacy_Value,
  55452. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  55453. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AstNode);
  55454. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  55455. pair = t2[_i];
  55456. t4 = pair.item1;
  55457. keyValue = t4.accept$1(this);
  55458. valueValue = pair.item2.accept$1(this);
  55459. if (map.containsKey$1(keyValue))
  55460. throw H.wrapException(E.MultiSpanSassRuntimeException$("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.legacy_FileSpan, type$.legacy_String), this._evaluate$_stackTrace$1(t4.get$span())));
  55461. map.$indexSet(0, keyValue, valueValue);
  55462. keyNodes.$indexSet(0, keyValue, t4);
  55463. }
  55464. return new A.SassMap(H.ConstantMap_ConstantMap$from(map, t1, t1));
  55465. },
  55466. visitFunctionExpression$1: function(node) {
  55467. var oldInFunction, result, _this = this, t1 = {},
  55468. t2 = node.name,
  55469. plainName = t2.get$asPlain();
  55470. t1.$function = null;
  55471. if ((plainName != null ? t1.$function = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure(_this, node, plainName)) : null) == null) {
  55472. if (node.namespace != null)
  55473. throw H.wrapException(_this._evaluate$_exception$2("Undefined function.", node.span));
  55474. t1.$function = new L.PlainCssCallable(_this._performInterpolation$1(t2));
  55475. }
  55476. oldInFunction = _this._inFunction;
  55477. _this._inFunction = true;
  55478. result = _this._addErrorSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure0(t1, _this, node));
  55479. _this._inFunction = oldInFunction;
  55480. return result;
  55481. },
  55482. _getFunction$2$namespace: function($name, namespace) {
  55483. var local = this._evaluate$_environment.getFunction$2$namespace($name, namespace);
  55484. if (local != null || namespace != null)
  55485. return local;
  55486. return this._builtInFunctions.$index(0, $name);
  55487. },
  55488. _runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  55489. var evaluated = this._evaluateArguments$1($arguments),
  55490. t1 = callable.declaration.name,
  55491. $name = t1 == null ? "@content" : t1 + "()";
  55492. return this._withStackFrame$3($name, nodeWithSpan, new R._EvaluateVisitor__runUserDefinedCallable_closure(this, callable, evaluated, nodeWithSpan, run));
  55493. },
  55494. _runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  55495. var result, t1, t2, t3, first, _i, argument, rest, _this = this;
  55496. if (callable instanceof Q.BuiltInCallable) {
  55497. result = _this._runBuiltInCallable$3($arguments, callable, nodeWithSpan);
  55498. if (result == null)
  55499. throw H.wrapException(_this._evaluate$_exception$2(string$.Custom, nodeWithSpan.get$span()));
  55500. return result.withoutSlash$0();
  55501. } else if (type$.legacy_UserDefinedCallable_legacy_Environment._is(callable))
  55502. return _this._runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new R._EvaluateVisitor__runFunctionCallable_closure(_this, callable)).withoutSlash$0();
  55503. else if (callable instanceof L.PlainCssCallable) {
  55504. t1 = $arguments.named;
  55505. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  55506. throw H.wrapException(_this._evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span()));
  55507. t1 = H.S(callable.name) + "(";
  55508. for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
  55509. argument = t2[_i];
  55510. if (first)
  55511. first = false;
  55512. else
  55513. t1 += ", ";
  55514. t1 += H.S(_this._evaluate$_serialize$3$quote(argument.accept$1(_this), argument, true));
  55515. }
  55516. t2 = $arguments.rest;
  55517. rest = t2 == null ? null : t2.accept$1(_this);
  55518. if (rest != null) {
  55519. if (!first)
  55520. t1 += ", ";
  55521. t2 = t1 + H.S(_this._evaluate$_serialize$2(rest, t2));
  55522. t1 = t2;
  55523. }
  55524. t1 += H.Primitives_stringFromCharCode(41);
  55525. return new D.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  55526. } else
  55527. return null;
  55528. },
  55529. _runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  55530. var callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, _this = this,
  55531. evaluated = _this._evaluateArguments$2$trackSpans($arguments, false),
  55532. oldCallableNode = _this._callableNode;
  55533. _this._callableNode = nodeWithSpan;
  55534. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_legacy_String);
  55535. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  55536. overload = tuple.item1;
  55537. callback = tuple.item2;
  55538. _this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__runBuiltInCallable_closure(overload, evaluated, namedSet));
  55539. declaredArguments = overload.$arguments;
  55540. for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
  55541. argument = declaredArguments[i];
  55542. t2 = evaluated.positional;
  55543. t3 = evaluated.named.remove$1(0, argument.name);
  55544. if (t3 == null) {
  55545. t3 = argument.defaultValue;
  55546. t3 = t3 == null ? null : t3.accept$1(_this);
  55547. }
  55548. t2.push(t3);
  55549. }
  55550. if (overload.restArgument != null) {
  55551. if (evaluated.positional.length > t1) {
  55552. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  55553. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  55554. } else
  55555. rest = C.List_empty5;
  55556. t1 = evaluated.named;
  55557. t2 = evaluated.separator === C.ListSeparator_undecided ? C.ListSeparator_comma : evaluated.separator;
  55558. t3 = type$.legacy_Value;
  55559. argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t1, type$.legacy_String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  55560. argumentList.SassList$3$brackets(rest, t2, false);
  55561. evaluated.positional.push(argumentList);
  55562. } else
  55563. argumentList = null;
  55564. result = null;
  55565. try {
  55566. result = callback.call$1(evaluated.positional);
  55567. } catch (exception) {
  55568. t1 = H.unwrapException(exception);
  55569. if (type$.legacy_SassRuntimeException._is(t1))
  55570. throw exception;
  55571. else if (t1 instanceof E.MultiSpanSassScriptException) {
  55572. error = t1;
  55573. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, _this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  55574. } else if (t1 instanceof E.MultiSpanSassException) {
  55575. error0 = t1;
  55576. throw H.wrapException(E.MultiSpanSassRuntimeException$(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, _this._evaluate$_stackTrace$1(error0.get$span())));
  55577. } else {
  55578. error1 = t1;
  55579. message = null;
  55580. try {
  55581. message = H._asStringS(J.get$message$x(error1));
  55582. } catch (exception) {
  55583. H.unwrapException(exception);
  55584. message = J.toString$0$(error1);
  55585. }
  55586. throw H.wrapException(_this._evaluate$_exception$2(message, nodeWithSpan.get$span()));
  55587. }
  55588. }
  55589. _this._callableNode = oldCallableNode;
  55590. if (argumentList == null)
  55591. return result;
  55592. t1 = evaluated.named;
  55593. if (t1.get$isEmpty(t1))
  55594. return result;
  55595. if (argumentList._wereKeywordsAccessed)
  55596. return result;
  55597. t1 = evaluated.named.get$keys();
  55598. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + B.pluralize("argument", t1.get$length(t1), null) + " named " + H.S(B.toSentence(evaluated.named.get$keys().map$1$1(0, new R._EvaluateVisitor__runBuiltInCallable_closure0(), type$.legacy_Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), _this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  55599. },
  55600. _evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  55601. var t1, t2, t3, _i, t4, t5, t6, t7, t8, t9, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, _this = this, _null = null;
  55602. if (trackSpans == null)
  55603. trackSpans = _this._sourceMap;
  55604. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  55605. for (t2 = $arguments.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  55606. t1.push(t2[_i].accept$1(_this));
  55607. t4 = type$.legacy_String;
  55608. t5 = type$.legacy_Value;
  55609. t6 = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  55610. for (t7 = $arguments.named, t8 = t7.get$entries(), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  55611. t9 = t8.get$current(t8);
  55612. t6.$indexSet(0, t9.key, t9.value.accept$1(_this));
  55613. }
  55614. if (trackSpans) {
  55615. t8 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AstNode);
  55616. for (_i = 0; _i < t3; ++_i)
  55617. t8.push(_this._expressionNode$1(t2[_i]));
  55618. positionalNodes = t8;
  55619. } else
  55620. positionalNodes = _null;
  55621. if (trackSpans) {
  55622. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  55623. for (t3 = t7.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  55624. t7 = t3.get$current(t3);
  55625. t2.$indexSet(0, t7.key, _this._expressionNode$1(t7.value));
  55626. }
  55627. namedNodes = t2;
  55628. } else
  55629. namedNodes = _null;
  55630. t2 = $arguments.rest;
  55631. if (t2 == null)
  55632. return R._ArgumentResults$(t1, t6, C.ListSeparator_undecided, namedNodes, positionalNodes);
  55633. rest = t2.accept$1(_this);
  55634. restNodeForSpan = trackSpans ? _this._expressionNode$1(t2) : _null;
  55635. if (rest instanceof A.SassMap) {
  55636. _this._addRestMap$1$3(t6, rest, t2, t5);
  55637. if (namedNodes != null) {
  55638. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  55639. for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t7 = type$.legacy_SassString; t3.moveNext$0();)
  55640. t2.$indexSet(0, t7._as(t3.get$current(t3)).text, restNodeForSpan);
  55641. namedNodes.addAll$1(0, t2);
  55642. }
  55643. separator = C.ListSeparator_undecided;
  55644. } else if (rest instanceof D.SassList) {
  55645. t2 = rest._list$_contents;
  55646. C.JSArray_methods.addAll$1(t1, t2);
  55647. if (positionalNodes != null)
  55648. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, false, type$.legacy_AstNode));
  55649. separator = rest.separator;
  55650. if (rest instanceof D.SassArgumentList) {
  55651. rest._wereKeywordsAccessed = true;
  55652. rest._keywords.forEach$1(0, new R._EvaluateVisitor__evaluateArguments_closure(t6, namedNodes, restNodeForSpan));
  55653. }
  55654. } else {
  55655. t1.push(rest);
  55656. if (positionalNodes != null)
  55657. positionalNodes.push(restNodeForSpan);
  55658. separator = C.ListSeparator_undecided;
  55659. }
  55660. t2 = $arguments.keywordRest;
  55661. if (t2 == null)
  55662. return R._ArgumentResults$(t1, t6, separator, namedNodes, positionalNodes);
  55663. keywordRest = t2.accept$1(_this);
  55664. keywordRestNodeForSpan = trackSpans ? _this._expressionNode$1(t2) : _null;
  55665. if (keywordRest instanceof A.SassMap) {
  55666. _this._addRestMap$1$3(t6, keywordRest, t2, t5);
  55667. if (namedNodes != null) {
  55668. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  55669. for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.legacy_SassString; t3.moveNext$0();)
  55670. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  55671. namedNodes.addAll$1(0, t2);
  55672. }
  55673. return R._ArgumentResults$(t1, t6, separator, namedNodes, positionalNodes);
  55674. } else
  55675. throw H.wrapException(_this._evaluate$_exception$2(string$.Variabs + H.S(keywordRest) + ").", t2.get$span()));
  55676. },
  55677. _evaluateArguments$1: function($arguments) {
  55678. return this._evaluateArguments$2$trackSpans($arguments, null);
  55679. },
  55680. _evaluateMacroArguments$1: function(invocation) {
  55681. var t3, positional, named, rest, keywordRest, _this = this,
  55682. t1 = invocation.$arguments,
  55683. t2 = t1.rest;
  55684. if (t2 == null)
  55685. return new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  55686. t3 = t1.positional;
  55687. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  55688. t3 = type$.legacy_Expression;
  55689. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.legacy_String, t3);
  55690. rest = t2.accept$1(_this);
  55691. if (rest instanceof A.SassMap)
  55692. _this._addRestMap$1$4(named, rest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure(), t3);
  55693. else if (rest instanceof D.SassList) {
  55694. t2 = rest._list$_contents;
  55695. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new R._EvaluateVisitor__evaluateMacroArguments_closure0(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression*>")));
  55696. if (rest instanceof D.SassArgumentList) {
  55697. rest._wereKeywordsAccessed = true;
  55698. rest._keywords.forEach$1(0, new R._EvaluateVisitor__evaluateMacroArguments_closure1(named));
  55699. }
  55700. } else
  55701. positional.push(new F.ValueExpression(rest, null));
  55702. t1 = t1.keywordRest;
  55703. if (t1 == null)
  55704. return new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  55705. keywordRest = t1.accept$1(_this);
  55706. if (keywordRest instanceof A.SassMap) {
  55707. _this._addRestMap$1$4(named, keywordRest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure2(), t3);
  55708. return new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  55709. } else
  55710. throw H.wrapException(_this._evaluate$_exception$2(string$.Variabs + H.S(keywordRest) + ").", invocation.span));
  55711. },
  55712. _addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  55713. var t1 = {};
  55714. t1.convert = convert;
  55715. if (convert == null)
  55716. t1.convert = new R._EvaluateVisitor__addRestMap_closure($T);
  55717. map.contents.forEach$1(0, new R._EvaluateVisitor__addRestMap_closure0(t1, this, values, map, nodeWithSpan));
  55718. },
  55719. _addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  55720. return this._addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  55721. },
  55722. _verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  55723. return this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__verifyArguments_closure($arguments, positional, named));
  55724. },
  55725. visitSelectorExpression$1: function(node) {
  55726. var t1 = this._styleRule;
  55727. if (t1 == null)
  55728. return C.C_SassNull0;
  55729. return t1.originalSelector.get$asSassList();
  55730. },
  55731. visitStringExpression$1: function(node) {
  55732. var t1 = node.text.contents;
  55733. return new D.SassString(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitStringExpression_closure(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0), node.hasQuotes);
  55734. },
  55735. visitCssAtRule$1: function(node) {
  55736. var t1, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
  55737. if (_this._declarationName != null)
  55738. throw H.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
  55739. if (node.isChildless) {
  55740. t1 = _this._evaluate$_parent;
  55741. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  55742. t1.addChild$1(new U.ModifiableCssAtRule(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2));
  55743. return null;
  55744. }
  55745. wasInKeyframes = _this._inKeyframes;
  55746. wasInUnknownAtRule = _this._inUnknownAtRule;
  55747. t1 = node.name;
  55748. if (B.unvendor(t1.get$value(t1)) === "keyframes")
  55749. _this._inKeyframes = true;
  55750. else
  55751. _this._inUnknownAtRule = true;
  55752. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  55753. _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2), new R._EvaluateVisitor_visitCssAtRule_closure(_this, node), false, new R._EvaluateVisitor_visitCssAtRule_closure0(), type$.legacy_ModifiableCssAtRule, type$.Null);
  55754. _this._inUnknownAtRule = wasInUnknownAtRule;
  55755. _this._inKeyframes = wasInKeyframes;
  55756. },
  55757. visitCssComment$1: function(node) {
  55758. var _this = this,
  55759. t1 = _this._evaluate$_parent,
  55760. t2 = _this._root;
  55761. if (t1 == t2 && _this._endOfImports === J.get$length$asx(t2.children._collection$_source))
  55762. _this._endOfImports = _this._endOfImports + 1;
  55763. _this._evaluate$_parent.addChild$1(new R.ModifiableCssComment(node.text, node.span));
  55764. },
  55765. visitCssDeclaration$1: function(node) {
  55766. this._evaluate$_parent.addChild$1(L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap));
  55767. },
  55768. visitCssImport$1: function(node) {
  55769. var _this = this,
  55770. modifiableNode = F.ModifiableCssImport$(node.url, node.span, node.media, node.supports),
  55771. t1 = _this._evaluate$_parent,
  55772. t2 = _this._root;
  55773. if (t1 != t2)
  55774. t1.addChild$1(modifiableNode);
  55775. else if (_this._endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  55776. _this._root.addChild$1(modifiableNode);
  55777. _this._endOfImports = _this._endOfImports + 1;
  55778. } else {
  55779. t1 = _this._outOfOrderImports;
  55780. (t1 == null ? _this._outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t1).push(modifiableNode);
  55781. }
  55782. },
  55783. visitCssKeyframeBlock$1: function(node) {
  55784. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  55785. this._withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1), new R._EvaluateVisitor_visitCssKeyframeBlock_closure(this, node), false, new R._EvaluateVisitor_visitCssKeyframeBlock_closure0(), type$.legacy_ModifiableCssKeyframeBlock, type$.Null);
  55786. },
  55787. visitCssMediaRule$1: function(node) {
  55788. var t1, mergedQueries, _this = this;
  55789. if (_this._declarationName != null)
  55790. throw H.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
  55791. t1 = _this._mediaQueries;
  55792. mergedQueries = t1 == null ? null : _this._mergeMediaQueries$2(t1, node.queries);
  55793. t1 = mergedQueries == null;
  55794. if (!t1 && mergedQueries.length === 0)
  55795. return null;
  55796. t1 = t1 ? node.queries : mergedQueries;
  55797. _this._withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new R._EvaluateVisitor_visitCssMediaRule_closure(_this, mergedQueries, node), false, new R._EvaluateVisitor_visitCssMediaRule_closure0(mergedQueries), type$.legacy_ModifiableCssMediaRule, type$.Null);
  55798. },
  55799. visitCssStyleRule$1: function(node) {
  55800. var t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this;
  55801. if (_this._declarationName != null)
  55802. throw H.wrapException(_this._evaluate$_exception$2(string$.Style_, node.span));
  55803. t1 = node.selector;
  55804. t2 = t1.value;
  55805. t3 = _this._styleRule;
  55806. t3 = t3 == null ? null : t3.originalSelector;
  55807. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !_this._atRootExcludingStyleRule);
  55808. rule = X.ModifiableCssStyleRule$(_this._extender.addSelector$3(originalSelector, t1.span, _this._mediaQueries), node.span, originalSelector);
  55809. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  55810. _this._atRootExcludingStyleRule = false;
  55811. _this._withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitCssStyleRule_closure(_this, rule, node), false, new R._EvaluateVisitor_visitCssStyleRule_closure0(), type$.legacy_ModifiableCssStyleRule, type$.Null);
  55812. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  55813. if (!(_this._styleRule != null && !oldAtRootExcludingStyleRule)) {
  55814. t1 = _this._evaluate$_parent.children;
  55815. t1 = !t1.get$isEmpty(t1);
  55816. } else
  55817. t1 = false;
  55818. if (t1) {
  55819. t1 = _this._evaluate$_parent.children;
  55820. t1.get$last(t1).isGroupEnd = true;
  55821. }
  55822. },
  55823. visitCssStylesheet$1: function(node) {
  55824. var t1;
  55825. for (t1 = J.get$iterator$ax(node.get$children()); t1.moveNext$0();)
  55826. t1.get$current(t1).accept$1(this);
  55827. },
  55828. visitCssSupportsRule$1: function(node) {
  55829. var t1, _this = this;
  55830. if (_this._declarationName != null)
  55831. throw H.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
  55832. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  55833. _this._withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1), new R._EvaluateVisitor_visitCssSupportsRule_closure(_this, node), false, new R._EvaluateVisitor_visitCssSupportsRule_closure0(), type$.legacy_ModifiableCssSupportsRule, type$.Null);
  55834. },
  55835. _handleReturn$1$2: function(list, callback) {
  55836. var t1, _i, result;
  55837. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i) {
  55838. result = callback.call$1(list[_i]);
  55839. if (result != null)
  55840. return result;
  55841. }
  55842. return null;
  55843. },
  55844. _handleReturn$2: function(list, callback) {
  55845. return this._handleReturn$1$2(list, callback, type$.dynamic);
  55846. },
  55847. _withEnvironment$1$2: function(environment, callback) {
  55848. var result,
  55849. oldEnvironment = this._evaluate$_environment;
  55850. this._evaluate$_environment = environment;
  55851. result = callback.call$0();
  55852. this._evaluate$_environment = oldEnvironment;
  55853. return result;
  55854. },
  55855. _withEnvironment$2: function(environment, callback) {
  55856. return this._withEnvironment$1$2(environment, callback, type$.dynamic);
  55857. },
  55858. _interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  55859. var result = this._performInterpolation$2$warnForColor(interpolation, warnForColor),
  55860. t1 = trim ? B.trimAscii(result, true) : result;
  55861. return new F.CssValue(t1, interpolation.span, type$.CssValue_legacy_String);
  55862. },
  55863. _interpolationToValue$1: function(interpolation) {
  55864. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  55865. },
  55866. _interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  55867. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  55868. },
  55869. _performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  55870. var t1 = interpolation.contents;
  55871. return new H.MappedListIterable(t1, new R._EvaluateVisitor__performInterpolation_closure(this, warnForColor), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  55872. },
  55873. _performInterpolation$1: function(interpolation) {
  55874. return this._performInterpolation$2$warnForColor(interpolation, false);
  55875. },
  55876. _evaluate$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  55877. return this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__serialize_closure(value, quote));
  55878. },
  55879. _evaluate$_serialize$2: function(value, nodeWithSpan) {
  55880. return this._evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  55881. },
  55882. _expressionNode$1: function(expression) {
  55883. var t1;
  55884. if (!this._sourceMap)
  55885. return null;
  55886. if (expression instanceof S.VariableExpression) {
  55887. t1 = this._evaluate$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  55888. return t1 == null ? expression : t1;
  55889. } else
  55890. return expression;
  55891. },
  55892. _withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  55893. var oldParent, result, _this = this;
  55894. _this._addChild$2$through(node, through);
  55895. oldParent = _this._evaluate$_parent;
  55896. _this._evaluate$_parent = node;
  55897. result = _this._evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T._eval$1("0*"));
  55898. _this._evaluate$_parent = oldParent;
  55899. return result;
  55900. },
  55901. _withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  55902. return this._withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  55903. },
  55904. _withParent$2$2: function(node, callback, $S, $T) {
  55905. return this._withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  55906. },
  55907. _addChild$2$through: function(node, through) {
  55908. var grandparent,
  55909. $parent = this._evaluate$_parent;
  55910. if (through != null) {
  55911. for (; through.call$1($parent);)
  55912. $parent = $parent._parent;
  55913. if ($parent.get$hasFollowingSibling()) {
  55914. grandparent = $parent._parent;
  55915. $parent = $parent.copyWithoutChildren$0();
  55916. grandparent.addChild$1($parent);
  55917. }
  55918. }
  55919. $parent.addChild$1(node);
  55920. },
  55921. _addChild$1: function(node) {
  55922. return this._addChild$2$through(node, null);
  55923. },
  55924. _withStyleRule$1$2: function(rule, callback) {
  55925. var result,
  55926. oldRule = this._styleRule;
  55927. this._styleRule = rule;
  55928. result = callback.call$0();
  55929. this._styleRule = oldRule;
  55930. return result;
  55931. },
  55932. _withStyleRule$2: function(rule, callback) {
  55933. return this._withStyleRule$1$2(rule, callback, type$.dynamic);
  55934. },
  55935. _withMediaQueries$1$2: function(queries, callback) {
  55936. var result,
  55937. oldMediaQueries = this._mediaQueries;
  55938. this._mediaQueries = queries;
  55939. result = callback.call$0();
  55940. this._mediaQueries = oldMediaQueries;
  55941. return result;
  55942. },
  55943. _withMediaQueries$2: function(queries, callback) {
  55944. return this._withMediaQueries$1$2(queries, callback, type$.dynamic);
  55945. },
  55946. _withStackFrame$1$3: function(member, nodeWithSpan, callback) {
  55947. var oldMember, result, _this = this,
  55948. t1 = _this._stack;
  55949. t1.push(new S.Tuple2(_this._member, nodeWithSpan, type$.Tuple2_of_legacy_String_and_legacy_AstNode));
  55950. oldMember = _this._member;
  55951. _this._member = member;
  55952. result = callback.call$0();
  55953. _this._member = oldMember;
  55954. t1.pop();
  55955. return result;
  55956. },
  55957. _withStackFrame$3: function(member, nodeWithSpan, callback) {
  55958. return this._withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  55959. },
  55960. _stackFrame$2: function(member, span) {
  55961. var url = span.file.url;
  55962. return B.frameForSpan(span, member, url != null && this._evaluate$_importCache != null ? this._evaluate$_importCache.humanize$1(url) : url);
  55963. },
  55964. _evaluate$_stackTrace$1: function(span) {
  55965. var t2, cur, _this = this,
  55966. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  55967. for (t2 = _this._stack, t2 = new H.MappedListIterable(t2, new R._EvaluateVisitor__stackTrace_closure(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame*>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  55968. cur = t2.__internal$_current;
  55969. t1.push(cur);
  55970. }
  55971. if (span != null)
  55972. t1.push(_this._stackFrame$2(_this._member, span));
  55973. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  55974. },
  55975. _evaluate$_stackTrace$0: function() {
  55976. return this._evaluate$_stackTrace$1(null);
  55977. },
  55978. _warn$3$deprecation: function(message, span, deprecation) {
  55979. return this._evaluate$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._evaluate$_stackTrace$1(span));
  55980. },
  55981. _warn$2: function(message, span) {
  55982. return this._warn$3$deprecation(message, span, false);
  55983. },
  55984. _evaluate$_exception$2: function(message, span) {
  55985. var t1 = span == null ? C.JSArray_methods.get$last(this._stack).item2.get$span() : span;
  55986. return new E.SassRuntimeException(this._evaluate$_stackTrace$1(span), message, t1);
  55987. },
  55988. _evaluate$_exception$1: function(message) {
  55989. return this._evaluate$_exception$2(message, null);
  55990. },
  55991. _multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  55992. var t1 = C.JSArray_methods.get$last(this._stack).item2.get$span();
  55993. return new E.MultiSpanSassRuntimeException(this._evaluate$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.legacy_FileSpan, type$.legacy_String), message, t1);
  55994. },
  55995. _adjustParseError$1$2: function(nodeWithSpan, callback) {
  55996. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  55997. try {
  55998. t1 = callback.call$0();
  55999. return t1;
  56000. } catch (exception) {
  56001. t1 = H.unwrapException(exception);
  56002. if (t1 instanceof E.SassFormatException) {
  56003. error = t1;
  56004. t1 = error;
  56005. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  56006. span = nodeWithSpan.get$span();
  56007. t1 = span;
  56008. t2 = span;
  56009. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  56010. t2 = syntheticFile;
  56011. t1 = span.file.url;
  56012. t2.toString;
  56013. t2 = new H.CodeUnits(t2);
  56014. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  56015. t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  56016. t3.SourceFile$decoded$2$url(t2, t1);
  56017. t1 = span;
  56018. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  56019. t2 = error;
  56020. t2 = G.SourceSpanException.prototype.get$span.call(t2);
  56021. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  56022. t4 = span;
  56023. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  56024. t5 = error;
  56025. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  56026. syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  56027. throw H.wrapException(this._evaluate$_exception$2(error._span_exception$_message, syntheticSpan));
  56028. } else
  56029. throw exception;
  56030. }
  56031. },
  56032. _adjustParseError$2: function(nodeWithSpan, callback) {
  56033. return this._adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  56034. },
  56035. _addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  56036. var error, error0, t1, exception;
  56037. try {
  56038. t1 = callback.call$0();
  56039. return t1;
  56040. } catch (exception) {
  56041. t1 = H.unwrapException(exception);
  56042. if (t1 instanceof E.MultiSpanSassScriptException) {
  56043. error = t1;
  56044. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  56045. } else if (t1 instanceof E.SassScriptException) {
  56046. error0 = t1;
  56047. throw H.wrapException(this._evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  56048. } else
  56049. throw exception;
  56050. }
  56051. },
  56052. _addExceptionSpan$2: function(nodeWithSpan, callback) {
  56053. return this._addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  56054. },
  56055. _addErrorSpan$1$2: function(nodeWithSpan, callback) {
  56056. var error, t1, exception;
  56057. try {
  56058. t1 = callback.call$0();
  56059. return t1;
  56060. } catch (exception) {
  56061. t1 = H.unwrapException(exception);
  56062. if (type$.legacy_SassRuntimeException._is(t1)) {
  56063. error = t1;
  56064. t1 = error.get$span();
  56065. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  56066. throw exception;
  56067. throw H.wrapException(E.SassRuntimeException$(error._span_exception$_message, nodeWithSpan.get$span(), this._evaluate$_stackTrace$0()));
  56068. } else
  56069. throw exception;
  56070. }
  56071. },
  56072. _addErrorSpan$2: function(nodeWithSpan, callback) {
  56073. return this._addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  56074. }
  56075. };
  56076. R._EvaluateVisitor_closure.prototype = {
  56077. call$1: function($arguments) {
  56078. var module, t2,
  56079. t1 = J.getInterceptor$asx($arguments),
  56080. variable = t1.$index($arguments, 0).assertString$1("name");
  56081. t1 = t1.$index($arguments, 1).get$realNull();
  56082. module = t1 == null ? null : t1.assertString$1("module");
  56083. t1 = this.$this._evaluate$_environment;
  56084. t2 = variable.text;
  56085. t2.toString;
  56086. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  56087. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56088. },
  56089. $signature: 13
  56090. };
  56091. R._EvaluateVisitor_closure0.prototype = {
  56092. call$1: function($arguments) {
  56093. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  56094. t1 = this.$this._evaluate$_environment,
  56095. t2 = variable.text;
  56096. t2.toString;
  56097. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56098. },
  56099. $signature: 13
  56100. };
  56101. R._EvaluateVisitor_closure1.prototype = {
  56102. call$1: function($arguments) {
  56103. var module, t2, t3, t4,
  56104. t1 = J.getInterceptor$asx($arguments),
  56105. variable = t1.$index($arguments, 0).assertString$1("name");
  56106. t1 = t1.$index($arguments, 1).get$realNull();
  56107. module = t1 == null ? null : t1.assertString$1("module");
  56108. t1 = this.$this;
  56109. t2 = t1._evaluate$_environment;
  56110. t3 = variable.text;
  56111. t3.toString;
  56112. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  56113. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56114. },
  56115. $signature: 13
  56116. };
  56117. R._EvaluateVisitor_closure2.prototype = {
  56118. call$1: function($arguments) {
  56119. var module, t2,
  56120. t1 = J.getInterceptor$asx($arguments),
  56121. variable = t1.$index($arguments, 0).assertString$1("name");
  56122. t1 = t1.$index($arguments, 1).get$realNull();
  56123. module = t1 == null ? null : t1.assertString$1("module");
  56124. t1 = this.$this._evaluate$_environment;
  56125. t2 = variable.text;
  56126. t2.toString;
  56127. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  56128. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56129. },
  56130. $signature: 13
  56131. };
  56132. R._EvaluateVisitor_closure3.prototype = {
  56133. call$1: function($arguments) {
  56134. var t1 = this.$this._evaluate$_environment;
  56135. if (!t1._inMixin)
  56136. throw H.wrapException(E.SassScriptException$(string$.conten));
  56137. return t1._content != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56138. },
  56139. $signature: 13
  56140. };
  56141. R._EvaluateVisitor_closure4.prototype = {
  56142. call$1: function($arguments) {
  56143. var t2, t3, t4,
  56144. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  56145. module = this.$this._evaluate$_environment._environment$_modules.$index(0, t1);
  56146. if (module == null)
  56147. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  56148. t1 = type$.legacy_Value;
  56149. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  56150. for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  56151. t4 = t3.get$current(t3);
  56152. t2.$indexSet(0, new D.SassString(t4.key, true), t4.value);
  56153. }
  56154. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  56155. },
  56156. $signature: 29
  56157. };
  56158. R._EvaluateVisitor_closure5.prototype = {
  56159. call$1: function($arguments) {
  56160. var t2, t3, t4,
  56161. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  56162. module = this.$this._evaluate$_environment._environment$_modules.$index(0, t1);
  56163. if (module == null)
  56164. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  56165. t1 = type$.legacy_Value;
  56166. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  56167. for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  56168. t4 = t3.get$current(t3);
  56169. t2.$indexSet(0, new D.SassString(t4.key, true), new F.SassFunction(t4.value));
  56170. }
  56171. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  56172. },
  56173. $signature: 29
  56174. };
  56175. R._EvaluateVisitor_closure6.prototype = {
  56176. call$1: function($arguments) {
  56177. var module, callable,
  56178. t1 = J.getInterceptor$asx($arguments),
  56179. $name = t1.$index($arguments, 0).assertString$1("name"),
  56180. css = t1.$index($arguments, 1).get$isTruthy();
  56181. t1 = t1.$index($arguments, 2).get$realNull();
  56182. module = t1 == null ? null : t1.assertString$1("module");
  56183. if (css && module != null)
  56184. throw H.wrapException(string$.x24css_a);
  56185. if (css)
  56186. callable = new L.PlainCssCallable($name.text);
  56187. else {
  56188. t1 = this.$this;
  56189. callable = t1._addExceptionSpan$2(t1._callableNode, new R._EvaluateVisitor__closure1(t1, $name, module));
  56190. }
  56191. if (callable != null)
  56192. return new F.SassFunction(callable);
  56193. throw H.wrapException("Function not found: " + $name.toString$0(0));
  56194. },
  56195. $signature: 89
  56196. };
  56197. R._EvaluateVisitor__closure1.prototype = {
  56198. call$0: function() {
  56199. var t2,
  56200. t1 = this.name.text;
  56201. t1.toString;
  56202. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  56203. t2 = this.module;
  56204. t2 = t2 == null ? null : t2.text;
  56205. return this.$this._getFunction$2$namespace(t1, t2);
  56206. },
  56207. $signature: 46
  56208. };
  56209. R._EvaluateVisitor_closure7.prototype = {
  56210. call$1: function($arguments) {
  56211. var t2, t3, t4, t5, t6, t7, t8, invocation, callable,
  56212. t1 = J.getInterceptor$asx($arguments),
  56213. $function = t1.$index($arguments, 0),
  56214. args = type$.legacy_SassArgumentList._as(t1.$index($arguments, 1));
  56215. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  56216. t2 = this.$this;
  56217. t3 = t2._callableNode.get$span();
  56218. t4 = t2._callableNode.get$span();
  56219. args._wereKeywordsAccessed = true;
  56220. t5 = args._keywords;
  56221. if (t5.get$isEmpty(t5))
  56222. t5 = null;
  56223. else {
  56224. t6 = type$.legacy_Value;
  56225. t7 = P.LinkedHashMap_LinkedHashMap$_empty(t6, t6);
  56226. for (args._wereKeywordsAccessed = true, t5 = t5.get$entries(), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  56227. t8 = t5.get$current(t5);
  56228. t7.$indexSet(0, new D.SassString(t8.key, false), t8.value);
  56229. }
  56230. t5 = new F.ValueExpression(new A.SassMap(H.ConstantMap_ConstantMap$from(t7, t6, t6)), t2._callableNode.get$span());
  56231. }
  56232. invocation = X.ArgumentInvocation$(t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Expression), t3, t5, new F.ValueExpression(args, t4));
  56233. if ($function instanceof D.SassString) {
  56234. N.warn(string$.Passins + $function.toString$0(0) + ")) instead.", true);
  56235. return t2.visitFunctionExpression$1(new F.FunctionExpression(null, X.Interpolation$(H.setRuntimeTypeInfo([$function.text], type$.JSArray_legacy_Object), t2._callableNode.get$span()), invocation, t2._callableNode.get$span()));
  56236. }
  56237. callable = $function.assertFunction$1("function").callable;
  56238. if (type$.legacy_Callable._is(callable))
  56239. return t2._runFunctionCallable$3(invocation, callable, t2._callableNode);
  56240. else
  56241. throw H.wrapException(E.SassScriptException$("The function " + H.S(callable.get$name()) + string$.x20is_as));
  56242. },
  56243. $signature: 4
  56244. };
  56245. R._EvaluateVisitor_closure8.prototype = {
  56246. call$1: function($arguments) {
  56247. var withMap, values, configuration, t2, t3, _null = null,
  56248. t1 = J.getInterceptor$asx($arguments),
  56249. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
  56250. t1 = t1.$index($arguments, 1).get$realNull();
  56251. t1 = t1 == null ? _null : t1.assertMap$1("with");
  56252. withMap = t1 == null ? _null : t1.contents;
  56253. if (withMap != null) {
  56254. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue);
  56255. t1 = this.$this;
  56256. withMap.forEach$1(0, new R._EvaluateVisitor__closure(values, t1._callableNode.get$span()));
  56257. configuration = new A.Configuration(values, t1._callableNode, false);
  56258. } else
  56259. configuration = C.Configuration_Map_empty_null_true;
  56260. t1 = this.$this;
  56261. t2 = t1._callableNode;
  56262. t3 = t2.get$span();
  56263. t3 = t3 == null ? _null : t3.file.url;
  56264. t1._loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new R._EvaluateVisitor__closure0(t1), t3, configuration, true);
  56265. t1._assertConfigurationIsEmpty$2$nameInError(configuration, true);
  56266. return _null;
  56267. },
  56268. $signature: 47
  56269. };
  56270. R._EvaluateVisitor__closure.prototype = {
  56271. call$2: function(variable, value) {
  56272. var $name,
  56273. t1 = variable.assertString$1("with key").text;
  56274. t1.toString;
  56275. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  56276. t1 = this.values;
  56277. if (t1.containsKey$1($name))
  56278. throw H.wrapException("The variable $" + $name + " was configured twice.");
  56279. t1.$indexSet(0, $name, new Z.ConfiguredValue(value, this.span, null));
  56280. }
  56281. };
  56282. R._EvaluateVisitor__closure0.prototype = {
  56283. call$1: function(module) {
  56284. var t1 = this.$this;
  56285. return t1._combineCss$2$clone(module, true).accept$1(t1);
  56286. }
  56287. };
  56288. R._EvaluateVisitor_run_closure.prototype = {
  56289. call$0: function() {
  56290. var _this = this,
  56291. t1 = _this.node,
  56292. t2 = t1.span,
  56293. url = t2 == null ? null : t2.file.url;
  56294. if (url != null)
  56295. _this.$this._activeModules.$indexSet(0, url, null);
  56296. t2 = _this.$this;
  56297. return new E.EvaluateResult(t2._combineCss$1(t2._execute$2(_this.importer, t1)));
  56298. },
  56299. $signature: 157
  56300. };
  56301. R._EvaluateVisitor_runExpression_closure.prototype = {
  56302. call$0: function() {
  56303. var t1 = this.$this,
  56304. t2 = this.expression;
  56305. return t1._withFakeStylesheet$3(this.importer, t2, new R._EvaluateVisitor_runExpression__closure(t1, t2));
  56306. },
  56307. $signature: 8
  56308. };
  56309. R._EvaluateVisitor_runExpression__closure.prototype = {
  56310. call$0: function() {
  56311. return this.expression.accept$1(this.$this);
  56312. },
  56313. $signature: 8
  56314. };
  56315. R._EvaluateVisitor_runStatement_closure.prototype = {
  56316. call$0: function() {
  56317. var t1 = this.$this,
  56318. t2 = this.statement;
  56319. return t1._withFakeStylesheet$3(this.importer, t2, new R._EvaluateVisitor_runStatement__closure(t1, t2));
  56320. },
  56321. $signature: 1
  56322. };
  56323. R._EvaluateVisitor_runStatement__closure.prototype = {
  56324. call$0: function() {
  56325. return this.statement.accept$1(this.$this);
  56326. },
  56327. $signature: 1
  56328. };
  56329. R._EvaluateVisitor__withWarnCallback_closure.prototype = {
  56330. call$2: function(message, deprecation) {
  56331. var t1 = this.$this,
  56332. t2 = t1._importSpan;
  56333. return t1._warn$3$deprecation(message, t2 == null ? t1._callableNode.get$span() : t2, deprecation);
  56334. },
  56335. "call*": "call$2",
  56336. $requiredArgCount: 2
  56337. };
  56338. R._EvaluateVisitor__loadModule_closure.prototype = {
  56339. call$0: function() {
  56340. return this.callback.call$1(this.builtInModule);
  56341. },
  56342. $signature: 1
  56343. };
  56344. R._EvaluateVisitor__loadModule_closure0.prototype = {
  56345. call$0: function() {
  56346. var module, error, error0, error1, error2, message, previousLoad, exception, _this = this,
  56347. t1 = _this.$this,
  56348. t2 = _this.nodeWithSpan,
  56349. result = t1._loadStylesheet$3$baseUrl(J.toString$0$(_this.url), t2.get$span(), _this.baseUrl),
  56350. importer = result.item1,
  56351. stylesheet = result.item2,
  56352. canonicalUrl = stylesheet.span.file.url,
  56353. t3 = t1._activeModules;
  56354. if (t3.containsKey$1(canonicalUrl)) {
  56355. message = _this.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : string$.Module;
  56356. previousLoad = t3.$index(0, canonicalUrl);
  56357. throw H.wrapException(previousLoad == null ? t1._evaluate$_exception$1(message) : t1._multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  56358. }
  56359. t3.$indexSet(0, canonicalUrl, t2);
  56360. module = null;
  56361. try {
  56362. module = t1._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
  56363. } finally {
  56364. t3.remove$1(0, canonicalUrl);
  56365. }
  56366. try {
  56367. _this.callback.call$1(module);
  56368. } catch (exception) {
  56369. t2 = H.unwrapException(exception);
  56370. if (type$.legacy_SassRuntimeException._is(t2))
  56371. throw exception;
  56372. else if (t2 instanceof E.MultiSpanSassException) {
  56373. error = t2;
  56374. throw H.wrapException(E.MultiSpanSassRuntimeException$(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._evaluate$_stackTrace$1(error.get$span())));
  56375. } else if (t2 instanceof E.SassException) {
  56376. error0 = t2;
  56377. throw H.wrapException(t1._evaluate$_exception$2(error0._span_exception$_message, error0.get$span()));
  56378. } else if (t2 instanceof E.MultiSpanSassScriptException) {
  56379. error1 = t2;
  56380. throw H.wrapException(t1._multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  56381. } else if (t2 instanceof E.SassScriptException) {
  56382. error2 = t2;
  56383. throw H.wrapException(t1._evaluate$_exception$1(error2.message));
  56384. } else
  56385. throw exception;
  56386. }
  56387. },
  56388. $signature: 0
  56389. };
  56390. R._EvaluateVisitor__execute_closure.prototype = {
  56391. call$0: function() {
  56392. var t2, t3, t4, css, _this = this,
  56393. t1 = _this.$this,
  56394. oldImporter = t1._importer,
  56395. oldStylesheet = t1._stylesheet,
  56396. oldRoot = t1._root,
  56397. oldParent = t1._evaluate$_parent,
  56398. oldEndOfImports = t1._endOfImports,
  56399. oldOutOfOrderImports = t1._outOfOrderImports,
  56400. oldExtender = t1._extender,
  56401. oldStyleRule = t1._styleRule,
  56402. oldMediaQueries = t1._mediaQueries,
  56403. oldDeclarationName = t1._declarationName,
  56404. oldInUnknownAtRule = t1._inUnknownAtRule,
  56405. oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule,
  56406. oldInKeyframes = t1._inKeyframes,
  56407. oldConfiguration = t1._configuration;
  56408. t1._importer = _this.importer;
  56409. t2 = t1._stylesheet = _this.stylesheet;
  56410. t3 = t2.span;
  56411. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  56412. t1._evaluate$_parent = t1._root = new V.ModifiableCssStylesheet(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_legacy_ModifiableCssNode), t4);
  56413. t1._endOfImports = 0;
  56414. t1._outOfOrderImports = null;
  56415. t1._extender = _this.extender;
  56416. t1._declarationName = t1._mediaQueries = t1._styleRule = null;
  56417. t1._inKeyframes = t1._atRootExcludingStyleRule = t1._inUnknownAtRule = false;
  56418. t4 = _this.configuration;
  56419. if (t4 != null)
  56420. t1._configuration = t4;
  56421. t1.visitStylesheet$1(t2);
  56422. css = t1._outOfOrderImports == null ? t1._root : new V.CssStylesheet(new P.UnmodifiableListView(t1._addOutOfOrderImports$0(), type$.UnmodifiableListView_legacy_CssNode), t3);
  56423. _this._box_0.css = css;
  56424. t1._importer = oldImporter;
  56425. t1._stylesheet = oldStylesheet;
  56426. t1._root = oldRoot;
  56427. t1._evaluate$_parent = oldParent;
  56428. t1._endOfImports = oldEndOfImports;
  56429. t1._outOfOrderImports = oldOutOfOrderImports;
  56430. t1._extender = oldExtender;
  56431. t1._styleRule = oldStyleRule;
  56432. t1._mediaQueries = oldMediaQueries;
  56433. t1._declarationName = oldDeclarationName;
  56434. t1._inUnknownAtRule = oldInUnknownAtRule;
  56435. t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  56436. t1._inKeyframes = oldInKeyframes;
  56437. t1._configuration = oldConfiguration;
  56438. },
  56439. $signature: 0
  56440. };
  56441. R._EvaluateVisitor__combineCss_closure.prototype = {
  56442. call$1: function(module) {
  56443. return module.get$transitivelyContainsCss();
  56444. }
  56445. };
  56446. R._EvaluateVisitor__combineCss_closure0.prototype = {
  56447. call$1: function(target) {
  56448. return !this.selectors.contains$1(0, target);
  56449. }
  56450. };
  56451. R._EvaluateVisitor__combineCss_closure1.prototype = {
  56452. call$1: function(module) {
  56453. return module.cloneCss$0();
  56454. }
  56455. };
  56456. R._EvaluateVisitor__extendModules_closure.prototype = {
  56457. call$1: function(target) {
  56458. return !this.originalSelectors.contains$1(0, target);
  56459. }
  56460. };
  56461. R._EvaluateVisitor__extendModules_closure0.prototype = {
  56462. call$0: function() {
  56463. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extender);
  56464. },
  56465. $signature: 64
  56466. };
  56467. R._EvaluateVisitor__topologicalModules_visitModule.prototype = {
  56468. call$1: function(module) {
  56469. var t1, t2, t3, _i, upstream;
  56470. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  56471. upstream = t1[_i];
  56472. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  56473. this.call$1(upstream);
  56474. }
  56475. this.sorted.addFirst$1(module);
  56476. }
  56477. };
  56478. R._EvaluateVisitor_visitAtRootRule_closure.prototype = {
  56479. call$0: function() {
  56480. var t1 = S.SpanScanner$(this.resolved, null);
  56481. return new V.AtRootQueryParser(t1, this.$this._evaluate$_logger).parse$0();
  56482. },
  56483. $signature: 57
  56484. };
  56485. R._EvaluateVisitor_visitAtRootRule_closure0.prototype = {
  56486. call$0: function() {
  56487. var t1, t2, t3, _i;
  56488. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56489. t1[_i].accept$1(t3);
  56490. },
  56491. $signature: 0
  56492. };
  56493. R._EvaluateVisitor_visitAtRootRule_closure1.prototype = {
  56494. call$0: function() {
  56495. var t1, t2, t3, _i;
  56496. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56497. t1[_i].accept$1(t3);
  56498. },
  56499. "call*": "call$0",
  56500. $requiredArgCount: 0,
  56501. $signature: 0
  56502. };
  56503. R._EvaluateVisitor__scopeForAtRoot_closure.prototype = {
  56504. call$1: function(callback) {
  56505. var t1 = this.$this,
  56506. oldParent = t1._evaluate$_parent;
  56507. t1._evaluate$_parent = this.newParent;
  56508. t1._evaluate$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  56509. t1._evaluate$_parent = oldParent;
  56510. }
  56511. };
  56512. R._EvaluateVisitor__scopeForAtRoot_closure0.prototype = {
  56513. call$1: function(callback) {
  56514. var t1 = this.$this,
  56515. oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule;
  56516. t1._atRootExcludingStyleRule = true;
  56517. this.innerScope.call$1(callback);
  56518. t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  56519. }
  56520. };
  56521. R._EvaluateVisitor__scopeForAtRoot_closure1.prototype = {
  56522. call$1: function(callback) {
  56523. return this.$this._withMediaQueries$2(null, new R._EvaluateVisitor__scopeForAtRoot__closure(this.innerScope, callback));
  56524. }
  56525. };
  56526. R._EvaluateVisitor__scopeForAtRoot__closure.prototype = {
  56527. call$0: function() {
  56528. return this.innerScope.call$1(this.callback);
  56529. },
  56530. $signature: 0
  56531. };
  56532. R._EvaluateVisitor__scopeForAtRoot_closure2.prototype = {
  56533. call$1: function(callback) {
  56534. var t1 = this.$this,
  56535. wasInKeyframes = t1._inKeyframes;
  56536. t1._inKeyframes = false;
  56537. this.innerScope.call$1(callback);
  56538. t1._inKeyframes = wasInKeyframes;
  56539. }
  56540. };
  56541. R._EvaluateVisitor__scopeForAtRoot_closure3.prototype = {
  56542. call$1: function($parent) {
  56543. return type$.legacy_CssAtRule._is($parent);
  56544. }
  56545. };
  56546. R._EvaluateVisitor__scopeForAtRoot_closure4.prototype = {
  56547. call$1: function(callback) {
  56548. var t1 = this.$this,
  56549. wasInUnknownAtRule = t1._inUnknownAtRule;
  56550. t1._inUnknownAtRule = false;
  56551. this.innerScope.call$1(callback);
  56552. t1._inUnknownAtRule = wasInUnknownAtRule;
  56553. }
  56554. };
  56555. R._EvaluateVisitor_visitContentRule_closure.prototype = {
  56556. call$0: function() {
  56557. var t1, t2, t3, _i;
  56558. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56559. t1[_i].accept$1(t3);
  56560. return null;
  56561. },
  56562. $signature: 0
  56563. };
  56564. R._EvaluateVisitor_visitDeclaration_closure.prototype = {
  56565. call$0: function() {
  56566. var t1, t2, t3, _i;
  56567. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56568. t1[_i].accept$1(t3);
  56569. },
  56570. $signature: 0
  56571. };
  56572. R._EvaluateVisitor_visitEachRule_closure.prototype = {
  56573. call$1: function(value) {
  56574. return this.$this._evaluate$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  56575. }
  56576. };
  56577. R._EvaluateVisitor_visitEachRule_closure0.prototype = {
  56578. call$1: function(value) {
  56579. return this.$this._setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  56580. }
  56581. };
  56582. R._EvaluateVisitor_visitEachRule_closure1.prototype = {
  56583. call$0: function() {
  56584. var _this = this,
  56585. t1 = _this.$this;
  56586. return t1._handleReturn$2(_this.list.get$asList(), new R._EvaluateVisitor_visitEachRule__closure(t1, _this.setVariables, _this.node));
  56587. },
  56588. $signature: 8
  56589. };
  56590. R._EvaluateVisitor_visitEachRule__closure.prototype = {
  56591. call$1: function(element) {
  56592. var t1;
  56593. this.setVariables.call$1(element);
  56594. t1 = this.$this;
  56595. return t1._handleReturn$2(this.node.children, new R._EvaluateVisitor_visitEachRule___closure(t1));
  56596. }
  56597. };
  56598. R._EvaluateVisitor_visitEachRule___closure.prototype = {
  56599. call$1: function(child) {
  56600. return child.accept$1(this.$this);
  56601. }
  56602. };
  56603. R._EvaluateVisitor_visitExtendRule_closure.prototype = {
  56604. call$0: function() {
  56605. return D.SelectorList_SelectorList$parse(B.trimAscii(this.targetText.value, true), false, true, this.$this._evaluate$_logger);
  56606. },
  56607. $signature: 31
  56608. };
  56609. R._EvaluateVisitor_visitAtRule_closure.prototype = {
  56610. call$0: function() {
  56611. var t3, _i,
  56612. t1 = this.$this,
  56613. t2 = t1._styleRule;
  56614. if (!(t2 != null && !t1._atRootExcludingStyleRule) || t1._inKeyframes)
  56615. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  56616. t2[_i].accept$1(t1);
  56617. else
  56618. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitAtRule__closure(t1, this.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null);
  56619. },
  56620. $signature: 0
  56621. };
  56622. R._EvaluateVisitor_visitAtRule__closure.prototype = {
  56623. call$0: function() {
  56624. var t1, t2, t3, _i;
  56625. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56626. t1[_i].accept$1(t3);
  56627. },
  56628. $signature: 0
  56629. };
  56630. R._EvaluateVisitor_visitAtRule_closure0.prototype = {
  56631. call$1: function(node) {
  56632. return type$.legacy_CssStyleRule._is(node);
  56633. }
  56634. };
  56635. R._EvaluateVisitor_visitForRule_closure.prototype = {
  56636. call$0: function() {
  56637. return this.node.from.accept$1(this.$this).assertNumber$0();
  56638. },
  56639. $signature: 96
  56640. };
  56641. R._EvaluateVisitor_visitForRule_closure0.prototype = {
  56642. call$0: function() {
  56643. return this.node.to.accept$1(this.$this).assertNumber$0();
  56644. },
  56645. $signature: 96
  56646. };
  56647. R._EvaluateVisitor_visitForRule_closure1.prototype = {
  56648. call$0: function() {
  56649. var t1 = this.toNumber,
  56650. t2 = t1.numeratorUnits;
  56651. t1 = t1.denominatorUnits;
  56652. return T.SassNumber$withUnits(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
  56653. },
  56654. $signature: 7
  56655. };
  56656. R._EvaluateVisitor_visitForRule_closure2.prototype = {
  56657. call$0: function() {
  56658. return this.toNumber.assertInt$0();
  56659. },
  56660. $signature: 7
  56661. };
  56662. R._EvaluateVisitor_visitForRule_closure3.prototype = {
  56663. call$0: function() {
  56664. var i, t3, t4, t5, t6, result, _this = this,
  56665. t1 = _this.$this,
  56666. t2 = _this.node,
  56667. nodeWithSpan = t1._expressionNode$1(t2.from);
  56668. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.children, t2 = t2.variable; i !== t3.to; i += t4) {
  56669. t6 = t1._evaluate$_environment;
  56670. t6.setLocalVariable$3(t2, new T.SassNumber(i, C.List_empty, C.List_empty, null), nodeWithSpan);
  56671. result = t1._handleReturn$2(t5, new R._EvaluateVisitor_visitForRule__closure(t1));
  56672. if (result != null)
  56673. return result;
  56674. }
  56675. return null;
  56676. },
  56677. $signature: 8
  56678. };
  56679. R._EvaluateVisitor_visitForRule__closure.prototype = {
  56680. call$1: function(child) {
  56681. return child.accept$1(this.$this);
  56682. }
  56683. };
  56684. R._EvaluateVisitor_visitForwardRule_closure.prototype = {
  56685. call$1: function(module) {
  56686. this.$this._evaluate$_environment.forwardModule$2(module, this.node);
  56687. }
  56688. };
  56689. R._EvaluateVisitor_visitForwardRule_closure0.prototype = {
  56690. call$1: function(module) {
  56691. this.$this._evaluate$_environment.forwardModule$2(module, this.node);
  56692. }
  56693. };
  56694. R._EvaluateVisitor__assertConfigurationIsEmpty_closure.prototype = {
  56695. call$2: function($name, value) {
  56696. var t1 = this.only;
  56697. if (t1 != null && !t1.contains$1(0, $name))
  56698. return;
  56699. t1 = this.nameInError ? "$" + H.S($name) + string$.x20was_n : string$.This_v;
  56700. throw H.wrapException(this.$this._evaluate$_exception$2(t1, value.configurationSpan));
  56701. }
  56702. };
  56703. R._EvaluateVisitor_visitIfRule_closure.prototype = {
  56704. call$0: function() {
  56705. var t1 = this.$this;
  56706. return t1._handleReturn$2(this._box_0.clause.children, new R._EvaluateVisitor_visitIfRule__closure(t1));
  56707. },
  56708. $signature: 8
  56709. };
  56710. R._EvaluateVisitor_visitIfRule__closure.prototype = {
  56711. call$1: function(child) {
  56712. return child.accept$1(this.$this);
  56713. }
  56714. };
  56715. R._EvaluateVisitor__visitDynamicImport_closure.prototype = {
  56716. call$0: function() {
  56717. var previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _null = null,
  56718. _s34_ = "This file is already being loaded.",
  56719. _box_0 = {},
  56720. t1 = this.$this,
  56721. t2 = this.$import,
  56722. result = t1._loadStylesheet$3$forImport(t2.url, t2.span, true),
  56723. importer = result.item1,
  56724. stylesheet = result.item2,
  56725. url = stylesheet.span.file.url,
  56726. t3 = t1._activeModules;
  56727. if (t3.containsKey$1(url)) {
  56728. previousLoad = t3.$index(0, url);
  56729. throw H.wrapException(previousLoad == null ? t1._evaluate$_exception$1(_s34_) : t1._multiSpanException$3(_s34_, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  56730. }
  56731. t3.$indexSet(0, url, t2);
  56732. t2 = new P.UnmodifiableListView(stylesheet._uses, type$.UnmodifiableListView_legacy_UseRule);
  56733. if (t2.get$length(t2) === 0) {
  56734. t2 = new P.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_legacy_ForwardRule);
  56735. t2 = t2.get$length(t2) === 0;
  56736. } else
  56737. t2 = false;
  56738. if (t2) {
  56739. oldImporter = t1._importer;
  56740. oldStylesheet = t1._stylesheet;
  56741. t1._importer = importer;
  56742. t1._stylesheet = stylesheet;
  56743. t1.visitStylesheet$1(stylesheet);
  56744. t1._importer = oldImporter;
  56745. t1._stylesheet = oldStylesheet;
  56746. t3.remove$1(0, url);
  56747. return;
  56748. }
  56749. _box_0.children = null;
  56750. t2 = t1._evaluate$_environment;
  56751. t4 = type$.legacy_String;
  56752. t5 = type$.legacy_Module_legacy_Callable;
  56753. t6 = type$.legacy_AstNode;
  56754. t7 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable);
  56755. t8 = t2._variables;
  56756. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  56757. t9 = t2._variableNodes;
  56758. if (t9 == null)
  56759. t9 = _null;
  56760. else
  56761. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  56762. t10 = t2._functions;
  56763. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  56764. t11 = t2._mixins;
  56765. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  56766. environment = O.Environment$_(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), _null, _null, _null, t7, t8, t9, t10, t11, t2._content);
  56767. t1._withEnvironment$2(environment, new R._EvaluateVisitor__visitDynamicImport__closure(_box_0, t1, importer, stylesheet, environment));
  56768. module = O._EnvironmentModule__EnvironmentModule(environment, new V.CssStylesheet(new P.UnmodifiableListView(C.List_empty0, type$.UnmodifiableListView_legacy_CssNode), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender, environment._forwardedModules);
  56769. t1._evaluate$_environment.importForwards$1(module);
  56770. if (module.transitivelyContainsCss)
  56771. t1._combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  56772. visitor = new R._ImportedCssVisitor(t1);
  56773. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  56774. t1.get$current(t1).accept$1(visitor);
  56775. t3.remove$1(0, url);
  56776. },
  56777. $signature: 0
  56778. };
  56779. R._EvaluateVisitor__visitDynamicImport__closure.prototype = {
  56780. call$0: function() {
  56781. var t2, t3, _this = this,
  56782. t1 = _this.$this,
  56783. oldImporter = t1._importer,
  56784. oldStylesheet = t1._stylesheet,
  56785. oldRoot = t1._root,
  56786. oldParent = t1._evaluate$_parent,
  56787. oldEndOfImports = t1._endOfImports,
  56788. oldOutOfOrderImports = t1._outOfOrderImports,
  56789. oldConfiguration = t1._configuration;
  56790. t1._importer = _this.importer;
  56791. t2 = t1._stylesheet = _this.stylesheet;
  56792. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  56793. t1._evaluate$_parent = t1._root = new V.ModifiableCssStylesheet(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode), t3);
  56794. t1._endOfImports = 0;
  56795. t1._outOfOrderImports = null;
  56796. t3 = new P.UnmodifiableListView(t2._forwards, type$.UnmodifiableListView_legacy_ForwardRule);
  56797. if (!t3.get$isEmpty(t3))
  56798. t1._configuration = _this.environment.toImplicitConfiguration$0();
  56799. t1.visitStylesheet$1(t2);
  56800. _this._box_0.children = t1._addOutOfOrderImports$0();
  56801. t1._importer = oldImporter;
  56802. t1._stylesheet = oldStylesheet;
  56803. t1._root = oldRoot;
  56804. t1._evaluate$_parent = oldParent;
  56805. t1._endOfImports = oldEndOfImports;
  56806. t1._outOfOrderImports = oldOutOfOrderImports;
  56807. t1._configuration = oldConfiguration;
  56808. },
  56809. $signature: 0
  56810. };
  56811. R._EvaluateVisitor_visitIncludeRule_closure.prototype = {
  56812. call$0: function() {
  56813. var t1 = this.node;
  56814. return this.$this._evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  56815. },
  56816. $signature: 46
  56817. };
  56818. R._EvaluateVisitor_visitIncludeRule_closure0.prototype = {
  56819. call$0: function() {
  56820. return this.node.get$spanWithoutContent();
  56821. },
  56822. "call*": "call$0",
  56823. $requiredArgCount: 0,
  56824. $signature: 26
  56825. };
  56826. R._EvaluateVisitor_visitIncludeRule_closure1.prototype = {
  56827. call$0: function() {
  56828. var _this = this,
  56829. t1 = _this.$this,
  56830. t2 = t1._evaluate$_environment,
  56831. oldContent = t2._content;
  56832. t2._content = _this.contentCallable;
  56833. new R._EvaluateVisitor_visitIncludeRule__closure(t1, _this.mixin, _this.nodeWithSpan).call$0();
  56834. t2._content = oldContent;
  56835. return null;
  56836. },
  56837. $signature: 0
  56838. };
  56839. R._EvaluateVisitor_visitIncludeRule__closure.prototype = {
  56840. call$0: function() {
  56841. var t1 = this.$this,
  56842. t2 = t1._evaluate$_environment,
  56843. oldInMixin = t2._inMixin;
  56844. t2._inMixin = true;
  56845. new R._EvaluateVisitor_visitIncludeRule___closure(t1, this.mixin, this.nodeWithSpan).call$0();
  56846. t2._inMixin = oldInMixin;
  56847. return null;
  56848. },
  56849. $signature: 0
  56850. };
  56851. R._EvaluateVisitor_visitIncludeRule___closure.prototype = {
  56852. call$0: function() {
  56853. var t1, t2, t3, t4, _i;
  56854. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
  56855. t3._addErrorSpan$2(t4, new R._EvaluateVisitor_visitIncludeRule____closure(t3, t1[_i]));
  56856. },
  56857. $signature: 0
  56858. };
  56859. R._EvaluateVisitor_visitIncludeRule____closure.prototype = {
  56860. call$0: function() {
  56861. return this.statement.accept$1(this.$this);
  56862. },
  56863. $signature: 8
  56864. };
  56865. R._EvaluateVisitor_visitMediaRule_closure.prototype = {
  56866. call$0: function() {
  56867. var _this = this,
  56868. t1 = _this.$this,
  56869. t2 = _this.mergedQueries;
  56870. if (t2 == null)
  56871. t2 = _this.queries;
  56872. t1._withMediaQueries$2(t2, new R._EvaluateVisitor_visitMediaRule__closure(t1, _this.node));
  56873. },
  56874. $signature: 0
  56875. };
  56876. R._EvaluateVisitor_visitMediaRule__closure.prototype = {
  56877. call$0: function() {
  56878. var t3, _i,
  56879. t1 = this.$this,
  56880. t2 = t1._styleRule;
  56881. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  56882. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  56883. t2[_i].accept$1(t1);
  56884. else
  56885. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitMediaRule___closure(t1, this.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null);
  56886. },
  56887. $signature: 0
  56888. };
  56889. R._EvaluateVisitor_visitMediaRule___closure.prototype = {
  56890. call$0: function() {
  56891. var t1, t2, t3, _i;
  56892. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56893. t1[_i].accept$1(t3);
  56894. },
  56895. $signature: 0
  56896. };
  56897. R._EvaluateVisitor_visitMediaRule_closure0.prototype = {
  56898. call$1: function(node) {
  56899. var t1;
  56900. if (!type$.legacy_CssStyleRule._is(node))
  56901. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule._is(node);
  56902. else
  56903. t1 = true;
  56904. return t1;
  56905. }
  56906. };
  56907. R._EvaluateVisitor__visitMediaQueries_closure.prototype = {
  56908. call$0: function() {
  56909. var t1 = S.SpanScanner$(this.resolved, null);
  56910. return new F.MediaQueryParser(t1, this.$this._evaluate$_logger).parse$0();
  56911. },
  56912. $signature: 58
  56913. };
  56914. R._EvaluateVisitor_visitStyleRule_closure.prototype = {
  56915. call$0: function() {
  56916. var t1 = S.SpanScanner$(this.selectorText.value, null);
  56917. return new E.KeyframeSelectorParser(t1, this.$this._evaluate$_logger).parse$0();
  56918. },
  56919. $signature: 33
  56920. };
  56921. R._EvaluateVisitor_visitStyleRule_closure0.prototype = {
  56922. call$0: function() {
  56923. var t1, t2, t3, _i;
  56924. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56925. t1[_i].accept$1(t3);
  56926. },
  56927. $signature: 0
  56928. };
  56929. R._EvaluateVisitor_visitStyleRule_closure1.prototype = {
  56930. call$1: function(node) {
  56931. return type$.legacy_CssStyleRule._is(node);
  56932. }
  56933. };
  56934. R._EvaluateVisitor_visitStyleRule_closure2.prototype = {
  56935. call$0: function() {
  56936. var t1 = this.$this,
  56937. t2 = !t1._stylesheet.plainCss;
  56938. return D.SelectorList_SelectorList$parse(this.selectorText.value, t2, t2, t1._evaluate$_logger);
  56939. },
  56940. $signature: 31
  56941. };
  56942. R._EvaluateVisitor_visitStyleRule_closure3.prototype = {
  56943. call$0: function() {
  56944. var t1 = this._box_0.parsedSelector,
  56945. t2 = this.$this,
  56946. t3 = t2._styleRule;
  56947. t3 = t3 == null ? null : t3.originalSelector;
  56948. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._atRootExcludingStyleRule);
  56949. },
  56950. $signature: 31
  56951. };
  56952. R._EvaluateVisitor_visitStyleRule_closure4.prototype = {
  56953. call$0: function() {
  56954. var t1 = this.$this;
  56955. t1._withStyleRule$2(this.rule, new R._EvaluateVisitor_visitStyleRule__closure(t1, this.node));
  56956. },
  56957. $signature: 0
  56958. };
  56959. R._EvaluateVisitor_visitStyleRule__closure.prototype = {
  56960. call$0: function() {
  56961. var t1, t2, t3, _i;
  56962. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56963. t1[_i].accept$1(t3);
  56964. },
  56965. $signature: 0
  56966. };
  56967. R._EvaluateVisitor_visitStyleRule_closure5.prototype = {
  56968. call$1: function(node) {
  56969. return type$.legacy_CssStyleRule._is(node);
  56970. }
  56971. };
  56972. R._EvaluateVisitor_visitSupportsRule_closure.prototype = {
  56973. call$0: function() {
  56974. var t3, _i,
  56975. t1 = this.$this,
  56976. t2 = t1._styleRule;
  56977. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  56978. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  56979. t2[_i].accept$1(t1);
  56980. else
  56981. t1._withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitSupportsRule__closure(t1, this.node), type$.legacy_ModifiableCssStyleRule, type$.Null);
  56982. },
  56983. $signature: 0
  56984. };
  56985. R._EvaluateVisitor_visitSupportsRule__closure.prototype = {
  56986. call$0: function() {
  56987. var t1, t2, t3, _i;
  56988. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  56989. t1[_i].accept$1(t3);
  56990. },
  56991. $signature: 0
  56992. };
  56993. R._EvaluateVisitor_visitSupportsRule_closure0.prototype = {
  56994. call$1: function(node) {
  56995. return type$.legacy_CssStyleRule._is(node);
  56996. }
  56997. };
  56998. R._EvaluateVisitor_visitVariableDeclaration_closure.prototype = {
  56999. call$0: function() {
  57000. var t1 = this.override;
  57001. this.$this._evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  57002. },
  57003. $signature: 0
  57004. };
  57005. R._EvaluateVisitor_visitVariableDeclaration_closure0.prototype = {
  57006. call$0: function() {
  57007. var t1 = this.node;
  57008. return this.$this._evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  57009. },
  57010. $signature: 8
  57011. };
  57012. R._EvaluateVisitor_visitVariableDeclaration_closure1.prototype = {
  57013. call$0: function() {
  57014. var t1 = this.$this,
  57015. t2 = this.node;
  57016. t1._evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  57017. },
  57018. $signature: 0
  57019. };
  57020. R._EvaluateVisitor_visitUseRule_closure.prototype = {
  57021. call$1: function(module) {
  57022. var t1 = this.node;
  57023. this.$this._evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
  57024. }
  57025. };
  57026. R._EvaluateVisitor_visitWarnRule_closure.prototype = {
  57027. call$0: function() {
  57028. return this.node.expression.accept$1(this.$this);
  57029. },
  57030. $signature: 8
  57031. };
  57032. R._EvaluateVisitor_visitWhileRule_closure.prototype = {
  57033. call$0: function() {
  57034. var t1, t2, t3, result;
  57035. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  57036. result = t3._handleReturn$2(t1, new R._EvaluateVisitor_visitWhileRule__closure(t3));
  57037. if (result != null)
  57038. return result;
  57039. }
  57040. return null;
  57041. },
  57042. $signature: 8
  57043. };
  57044. R._EvaluateVisitor_visitWhileRule__closure.prototype = {
  57045. call$1: function(child) {
  57046. return child.accept$1(this.$this);
  57047. }
  57048. };
  57049. R._EvaluateVisitor_visitBinaryOperationExpression_closure.prototype = {
  57050. call$0: function() {
  57051. var right, result,
  57052. t1 = this.node,
  57053. t2 = this.$this,
  57054. left = t1.left.accept$1(t2);
  57055. switch (t1.operator) {
  57056. case C.BinaryOperator_kjl:
  57057. right = t1.right.accept$1(t2);
  57058. left.toString;
  57059. t1 = N.serializeValue0(left, false, true) + "=";
  57060. right.toString;
  57061. return new D.SassString(t1 + N.serializeValue0(right, false, true), false);
  57062. case C.BinaryOperator_or_or_1:
  57063. return left.get$isTruthy() ? left : t1.right.accept$1(t2);
  57064. case C.BinaryOperator_and_and_2:
  57065. return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  57066. case C.BinaryOperator_YlX:
  57067. return J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  57068. case C.BinaryOperator_i5H:
  57069. return !J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  57070. case C.BinaryOperator_AcR0:
  57071. return left.greaterThan$1(t1.right.accept$1(t2));
  57072. case C.BinaryOperator_1da:
  57073. return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  57074. case C.BinaryOperator_8qt:
  57075. return left.lessThan$1(t1.right.accept$1(t2));
  57076. case C.BinaryOperator_33h:
  57077. return left.lessThanOrEquals$1(t1.right.accept$1(t2));
  57078. case C.BinaryOperator_AcR:
  57079. return left.plus$1(t1.right.accept$1(t2));
  57080. case C.BinaryOperator_iyO:
  57081. return left.minus$1(t1.right.accept$1(t2));
  57082. case C.BinaryOperator_O1M:
  57083. return left.times$1(t1.right.accept$1(t2));
  57084. case C.BinaryOperator_RTB:
  57085. right = t1.right.accept$1(t2);
  57086. result = left.dividedBy$1(right);
  57087. if (t1.allowsSlash && left instanceof T.SassNumber && right instanceof T.SassNumber)
  57088. return type$.legacy_SassNumber._as(result).withSlash$2(left, right);
  57089. else
  57090. return result;
  57091. case C.BinaryOperator_2ad:
  57092. return left.modulo$1(t1.right.accept$1(t2));
  57093. default:
  57094. return null;
  57095. }
  57096. },
  57097. $signature: 8
  57098. };
  57099. R._EvaluateVisitor_visitVariableExpression_closure.prototype = {
  57100. call$0: function() {
  57101. var t1 = this.node;
  57102. return this.$this._evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  57103. },
  57104. $signature: 8
  57105. };
  57106. R._EvaluateVisitor_visitListExpression_closure.prototype = {
  57107. call$1: function(expression) {
  57108. return expression.accept$1(this.$this);
  57109. }
  57110. };
  57111. R._EvaluateVisitor_visitFunctionExpression_closure.prototype = {
  57112. call$0: function() {
  57113. var t1 = this.node.namespace,
  57114. t2 = this.plainName;
  57115. if (t1 == null)
  57116. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  57117. return this.$this._getFunction$2$namespace(t2, t1);
  57118. },
  57119. $signature: 46
  57120. };
  57121. R._EvaluateVisitor_visitFunctionExpression_closure0.prototype = {
  57122. call$0: function() {
  57123. var t1 = this.node;
  57124. return this.$this._runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  57125. },
  57126. $signature: 8
  57127. };
  57128. R._EvaluateVisitor__runUserDefinedCallable_closure.prototype = {
  57129. call$0: function() {
  57130. var _this = this,
  57131. t1 = _this.$this,
  57132. t2 = _this.callable;
  57133. return t1._withEnvironment$2(t2.environment.closure$0(), new R._EvaluateVisitor__runUserDefinedCallable__closure(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run));
  57134. },
  57135. $signature: 8
  57136. };
  57137. R._EvaluateVisitor__runUserDefinedCallable__closure.prototype = {
  57138. call$0: function() {
  57139. var _this = this,
  57140. t1 = _this.$this;
  57141. return t1._evaluate$_environment.scope$1$1(new R._EvaluateVisitor__runUserDefinedCallable___closure(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.legacy_Value);
  57142. },
  57143. $signature: 8
  57144. };
  57145. R._EvaluateVisitor__runUserDefinedCallable___closure.prototype = {
  57146. call$0: function() {
  57147. var declaredArguments, minLength, t8, t9, i, t10, t11, t12, argument, value, t13, rest, argumentList, result, argumentWord, argumentNames, _this = this, _null = null,
  57148. t1 = _this.$this,
  57149. t2 = _this.evaluated,
  57150. t3 = t2.positional,
  57151. t4 = t3.length,
  57152. t5 = t2.named,
  57153. t6 = _this.callable.declaration.$arguments,
  57154. t7 = _this.nodeWithSpan;
  57155. t1._verifyArguments$4(t4, t5, t6, t7);
  57156. declaredArguments = t6.$arguments;
  57157. t4 = declaredArguments.length;
  57158. minLength = Math.min(t3.length, t4);
  57159. for (t8 = t1._sourceMap, t9 = t2.positionalNodes, i = 0; i < minLength; ++i) {
  57160. t10 = t1._evaluate$_environment;
  57161. t11 = declaredArguments[i].name;
  57162. t12 = t3[i].withoutSlash$0();
  57163. t10.setLocalVariable$3(t11, t12, t8 ? t9[i] : _null);
  57164. }
  57165. for (i = t3.length, t9 = t2.namedNodes; i < t4; ++i) {
  57166. argument = declaredArguments[i];
  57167. t10 = argument.name;
  57168. value = t5.remove$1(0, t10);
  57169. if (value == null)
  57170. value = argument.defaultValue.accept$1(t1);
  57171. t11 = t1._evaluate$_environment;
  57172. t12 = value.withoutSlash$0();
  57173. if (t8) {
  57174. t13 = t9.$index(0, t10);
  57175. if (t13 == null)
  57176. t13 = t1._expressionNode$1(argument.defaultValue);
  57177. } else
  57178. t13 = _null;
  57179. t11.setLocalVariable$3(t10, t12, t13);
  57180. }
  57181. t8 = t6.restArgument;
  57182. if (t8 != null) {
  57183. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty5;
  57184. t2 = t2.separator;
  57185. if (t2 === C.ListSeparator_undecided)
  57186. t2 = C.ListSeparator_comma;
  57187. t3 = type$.legacy_Value;
  57188. argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t5, type$.legacy_String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  57189. argumentList.SassList$3$brackets(rest, t2, false);
  57190. t1._evaluate$_environment.setLocalVariable$3(t8, argumentList, t7);
  57191. } else
  57192. argumentList = _null;
  57193. result = _this.run.call$0();
  57194. if (argumentList == null)
  57195. return result;
  57196. if (t5.get$isEmpty(t5))
  57197. return result;
  57198. if (argumentList._wereKeywordsAccessed)
  57199. return result;
  57200. t2 = t5.get$keys();
  57201. argumentWord = B.pluralize("argument", t2.get$length(t2), _null);
  57202. t5 = t5.get$keys();
  57203. argumentNames = B.toSentence(H.MappedIterable_MappedIterable(t5, new R._EvaluateVisitor__runUserDefinedCallable____closure(), H._instanceType(t5)._eval$1("Iterable.E"), type$.legacy_Object), "or");
  57204. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), t1._evaluate$_stackTrace$1(t7.get$span())));
  57205. },
  57206. $signature: 8
  57207. };
  57208. R._EvaluateVisitor__runUserDefinedCallable____closure.prototype = {
  57209. call$1: function($name) {
  57210. return "$" + H.S($name);
  57211. }
  57212. };
  57213. R._EvaluateVisitor__runFunctionCallable_closure.prototype = {
  57214. call$0: function() {
  57215. var t1, t2, t3, t4, _i, $returnValue;
  57216. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  57217. $returnValue = t2[_i].accept$1(t4);
  57218. if ($returnValue instanceof F.Value)
  57219. return $returnValue;
  57220. }
  57221. throw H.wrapException(t4._evaluate$_exception$2("Function finished without @return.", t1.span));
  57222. },
  57223. $signature: 8
  57224. };
  57225. R._EvaluateVisitor__runBuiltInCallable_closure.prototype = {
  57226. call$0: function() {
  57227. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  57228. },
  57229. $signature: 1
  57230. };
  57231. R._EvaluateVisitor__runBuiltInCallable_closure0.prototype = {
  57232. call$1: function($name) {
  57233. return "$" + H.S($name);
  57234. }
  57235. };
  57236. R._EvaluateVisitor__evaluateArguments_closure.prototype = {
  57237. call$2: function(key, value) {
  57238. var t1;
  57239. this.named.$indexSet(0, key, value);
  57240. t1 = this.namedNodes;
  57241. if (t1 != null)
  57242. t1.$indexSet(0, key, this.restNodeForSpan);
  57243. }
  57244. };
  57245. R._EvaluateVisitor__evaluateMacroArguments_closure.prototype = {
  57246. call$1: function(value) {
  57247. return new F.ValueExpression(value, null);
  57248. }
  57249. };
  57250. R._EvaluateVisitor__evaluateMacroArguments_closure0.prototype = {
  57251. call$1: function(value) {
  57252. return new F.ValueExpression(value, null);
  57253. }
  57254. };
  57255. R._EvaluateVisitor__evaluateMacroArguments_closure1.prototype = {
  57256. call$2: function(key, value) {
  57257. this.named.$indexSet(0, key, new F.ValueExpression(value, null));
  57258. }
  57259. };
  57260. R._EvaluateVisitor__evaluateMacroArguments_closure2.prototype = {
  57261. call$1: function(value) {
  57262. return new F.ValueExpression(value, null);
  57263. }
  57264. };
  57265. R._EvaluateVisitor__addRestMap_closure.prototype = {
  57266. call$1: function(value) {
  57267. return this.T._eval$1("0*")._as(value);
  57268. }
  57269. };
  57270. R._EvaluateVisitor__addRestMap_closure0.prototype = {
  57271. call$2: function(key, value) {
  57272. var _this = this;
  57273. if (key instanceof D.SassString)
  57274. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  57275. else
  57276. throw H.wrapException(_this.$this._evaluate$_exception$2(string$.Variab_ + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  57277. }
  57278. };
  57279. R._EvaluateVisitor__verifyArguments_closure.prototype = {
  57280. call$0: function() {
  57281. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_legacy_String));
  57282. },
  57283. $signature: 1
  57284. };
  57285. R._EvaluateVisitor_visitStringExpression_closure.prototype = {
  57286. call$1: function(value) {
  57287. var t1, result;
  57288. if (typeof value == "string")
  57289. return value;
  57290. type$.legacy_Expression._as(value);
  57291. t1 = this.$this;
  57292. result = value.accept$1(t1);
  57293. return result instanceof D.SassString ? result.text : t1._evaluate$_serialize$3$quote(result, value, false);
  57294. },
  57295. $signature: 27
  57296. };
  57297. R._EvaluateVisitor_visitCssAtRule_closure.prototype = {
  57298. call$0: function() {
  57299. var t1, t2, cur;
  57300. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  57301. cur = t1.__internal$_current;
  57302. cur.accept$1(t2);
  57303. }
  57304. },
  57305. $signature: 0
  57306. };
  57307. R._EvaluateVisitor_visitCssAtRule_closure0.prototype = {
  57308. call$1: function(node) {
  57309. return type$.legacy_CssStyleRule._is(node);
  57310. }
  57311. };
  57312. R._EvaluateVisitor_visitCssKeyframeBlock_closure.prototype = {
  57313. call$0: function() {
  57314. var t1, t2, cur;
  57315. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  57316. cur = t1.__internal$_current;
  57317. cur.accept$1(t2);
  57318. }
  57319. },
  57320. $signature: 0
  57321. };
  57322. R._EvaluateVisitor_visitCssKeyframeBlock_closure0.prototype = {
  57323. call$1: function(node) {
  57324. return type$.legacy_CssStyleRule._is(node);
  57325. }
  57326. };
  57327. R._EvaluateVisitor_visitCssMediaRule_closure.prototype = {
  57328. call$0: function() {
  57329. var _this = this,
  57330. t1 = _this.$this,
  57331. t2 = _this.mergedQueries;
  57332. if (t2 == null)
  57333. t2 = _this.node.queries;
  57334. t1._withMediaQueries$2(t2, new R._EvaluateVisitor_visitCssMediaRule__closure(t1, _this.node));
  57335. },
  57336. $signature: 0
  57337. };
  57338. R._EvaluateVisitor_visitCssMediaRule__closure.prototype = {
  57339. call$0: function() {
  57340. var cur,
  57341. t1 = this.$this,
  57342. t2 = t1._styleRule;
  57343. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  57344. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  57345. cur = t2.__internal$_current;
  57346. cur.accept$1(t1);
  57347. }
  57348. else
  57349. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssMediaRule___closure(t1, this.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null);
  57350. },
  57351. $signature: 0
  57352. };
  57353. R._EvaluateVisitor_visitCssMediaRule___closure.prototype = {
  57354. call$0: function() {
  57355. var t1, t2, cur;
  57356. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  57357. cur = t1.__internal$_current;
  57358. cur.accept$1(t2);
  57359. }
  57360. },
  57361. $signature: 0
  57362. };
  57363. R._EvaluateVisitor_visitCssMediaRule_closure0.prototype = {
  57364. call$1: function(node) {
  57365. var t1;
  57366. if (!type$.legacy_CssStyleRule._is(node))
  57367. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule._is(node);
  57368. else
  57369. t1 = true;
  57370. return t1;
  57371. }
  57372. };
  57373. R._EvaluateVisitor_visitCssStyleRule_closure.prototype = {
  57374. call$0: function() {
  57375. var t1 = this.$this;
  57376. t1._withStyleRule$2(this.rule, new R._EvaluateVisitor_visitCssStyleRule__closure(t1, this.node));
  57377. },
  57378. $signature: 0
  57379. };
  57380. R._EvaluateVisitor_visitCssStyleRule__closure.prototype = {
  57381. call$0: function() {
  57382. var t1, t2, cur;
  57383. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  57384. cur = t1.__internal$_current;
  57385. cur.accept$1(t2);
  57386. }
  57387. },
  57388. $signature: 0
  57389. };
  57390. R._EvaluateVisitor_visitCssStyleRule_closure0.prototype = {
  57391. call$1: function(node) {
  57392. return type$.legacy_CssStyleRule._is(node);
  57393. }
  57394. };
  57395. R._EvaluateVisitor_visitCssSupportsRule_closure.prototype = {
  57396. call$0: function() {
  57397. var cur,
  57398. t1 = this.$this,
  57399. t2 = t1._styleRule;
  57400. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  57401. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  57402. cur = t2.__internal$_current;
  57403. cur.accept$1(t1);
  57404. }
  57405. else
  57406. t1._withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssSupportsRule__closure(t1, this.node), type$.legacy_ModifiableCssStyleRule, type$.Null);
  57407. },
  57408. $signature: 0
  57409. };
  57410. R._EvaluateVisitor_visitCssSupportsRule__closure.prototype = {
  57411. call$0: function() {
  57412. var t1, t2, cur;
  57413. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  57414. cur = t1.__internal$_current;
  57415. cur.accept$1(t2);
  57416. }
  57417. },
  57418. $signature: 0
  57419. };
  57420. R._EvaluateVisitor_visitCssSupportsRule_closure0.prototype = {
  57421. call$1: function(node) {
  57422. return type$.legacy_CssStyleRule._is(node);
  57423. }
  57424. };
  57425. R._EvaluateVisitor__performInterpolation_closure.prototype = {
  57426. call$1: function(value) {
  57427. var t1, result, t2, t3;
  57428. if (typeof value == "string")
  57429. return value;
  57430. type$.legacy_Expression._as(value);
  57431. t1 = this.$this;
  57432. result = value.accept$1(t1);
  57433. if (this.warnForColor && result instanceof K.SassColor && $.$get$namesByColor().containsKey$1(result)) {
  57434. t2 = X.Interpolation$(H.setRuntimeTypeInfo([""], type$.JSArray_legacy_Object), null);
  57435. t3 = $.$get$namesByColor();
  57436. t1._warn$2(string$.You_pr + H.S(t3.$index(0, result)) + string$.x20in_in + H.S(result) + string$.x2c_whic + H.S(t3.$index(0, result)) + string$.x22x29__If + new V.BinaryOperationExpression(C.BinaryOperator_AcR, new D.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  57437. }
  57438. return t1._evaluate$_serialize$3$quote(result, value, false);
  57439. },
  57440. $signature: 27
  57441. };
  57442. R._EvaluateVisitor__serialize_closure.prototype = {
  57443. call$0: function() {
  57444. var t1 = this.value;
  57445. t1.toString;
  57446. return N.serializeValue0(t1, false, this.quote);
  57447. },
  57448. $signature: 9
  57449. };
  57450. R._EvaluateVisitor__stackTrace_closure.prototype = {
  57451. call$1: function(tuple) {
  57452. return this.$this._stackFrame$2(tuple.item1, tuple.item2.get$span());
  57453. }
  57454. };
  57455. R._ImportedCssVisitor.prototype = {
  57456. visitCssAtRule$1: function(node) {
  57457. var t1 = node.isChildless ? null : new R._ImportedCssVisitor_visitCssAtRule_closure();
  57458. this._visitor._addChild$2$through(node, t1);
  57459. },
  57460. visitCssComment$1: function(node) {
  57461. return this._visitor._addChild$1(node);
  57462. },
  57463. visitCssDeclaration$1: function(node) {
  57464. },
  57465. visitCssImport$1: function(node) {
  57466. var t1 = this._visitor,
  57467. t2 = t1._evaluate$_parent,
  57468. t3 = t1._root;
  57469. if (t2 != t3)
  57470. t1._addChild$1(node);
  57471. else if (t1._endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  57472. t1._addChild$1(node);
  57473. t1._endOfImports = t1._endOfImports + 1;
  57474. } else {
  57475. t2 = t1._outOfOrderImports;
  57476. (t2 == null ? t1._outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t2).push(node);
  57477. }
  57478. },
  57479. visitCssKeyframeBlock$1: function(node) {
  57480. },
  57481. visitCssMediaRule$1: function(node) {
  57482. var t1 = this._visitor,
  57483. t2 = t1._mediaQueries;
  57484. t1._addChild$2$through(node, new R._ImportedCssVisitor_visitCssMediaRule_closure(t2 == null || t1._mergeMediaQueries$2(t2, node.queries) != null));
  57485. },
  57486. visitCssStyleRule$1: function(node) {
  57487. return this._visitor._addChild$2$through(node, new R._ImportedCssVisitor_visitCssStyleRule_closure());
  57488. },
  57489. visitCssStylesheet$1: function(node) {
  57490. var t1, cur;
  57491. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  57492. cur = t1.__internal$_current;
  57493. cur.accept$1(this);
  57494. }
  57495. },
  57496. visitCssSupportsRule$1: function(node) {
  57497. return this._visitor._addChild$2$through(node, new R._ImportedCssVisitor_visitCssSupportsRule_closure());
  57498. }
  57499. };
  57500. R._ImportedCssVisitor_visitCssAtRule_closure.prototype = {
  57501. call$1: function(node) {
  57502. return type$.legacy_CssStyleRule._is(node);
  57503. }
  57504. };
  57505. R._ImportedCssVisitor_visitCssMediaRule_closure.prototype = {
  57506. call$1: function(node) {
  57507. var t1;
  57508. if (!type$.legacy_CssStyleRule._is(node))
  57509. t1 = this.hasBeenMerged && type$.legacy_CssMediaRule._is(node);
  57510. else
  57511. t1 = true;
  57512. return t1;
  57513. }
  57514. };
  57515. R._ImportedCssVisitor_visitCssStyleRule_closure.prototype = {
  57516. call$1: function(node) {
  57517. return type$.legacy_CssStyleRule._is(node);
  57518. }
  57519. };
  57520. R._ImportedCssVisitor_visitCssSupportsRule_closure.prototype = {
  57521. call$1: function(node) {
  57522. return type$.legacy_CssStyleRule._is(node);
  57523. }
  57524. };
  57525. R._ArgumentResults.prototype = {};
  57526. F._FindDependenciesVisitor.prototype = {
  57527. visitEachRule$1: function(node) {
  57528. },
  57529. visitForRule$1: function(node) {
  57530. },
  57531. visitIfRule$1: function(node) {
  57532. },
  57533. visitWhileRule$1: function(node) {
  57534. },
  57535. visitUseRule$1: function(node) {
  57536. this._usesAndForwards.push(node.url);
  57537. },
  57538. visitForwardRule$1: function(node) {
  57539. this._usesAndForwards.push(node.url);
  57540. },
  57541. visitImportRule$1: function(node) {
  57542. var t1, t2, t3, _i, $import;
  57543. for (t1 = node.imports, t2 = t1.length, t3 = this._imports, _i = 0; _i < t2; ++_i) {
  57544. $import = t1[_i];
  57545. if ($import instanceof B.DynamicImport)
  57546. t3.push(P.Uri_parse($import.url));
  57547. }
  57548. }
  57549. };
  57550. D.RecursiveStatementVisitor.prototype = {
  57551. visitAtRootRule$1: function(node) {
  57552. return this.visitChildren$1(node);
  57553. },
  57554. visitAtRule$1: function(node) {
  57555. return node.children == null ? null : this.visitChildren$1(node);
  57556. },
  57557. visitContentBlock$1: function(node) {
  57558. return null;
  57559. },
  57560. visitContentRule$1: function(node) {
  57561. this.visitArgumentInvocation$1(node.$arguments);
  57562. return null;
  57563. },
  57564. visitDebugRule$1: function(node) {
  57565. return null;
  57566. },
  57567. visitDeclaration$1: function(node) {
  57568. return node.children == null ? null : this.visitChildren$1(node);
  57569. },
  57570. visitErrorRule$1: function(node) {
  57571. return null;
  57572. },
  57573. visitExtendRule$1: function(node) {
  57574. return null;
  57575. },
  57576. visitFunctionRule$1: function(node) {
  57577. return null;
  57578. },
  57579. visitIncludeRule$1: function(node) {
  57580. this.visitArgumentInvocation$1(node.$arguments);
  57581. return null;
  57582. },
  57583. visitLoudComment$1: function(node) {
  57584. return null;
  57585. },
  57586. visitMediaRule$1: function(node) {
  57587. return this.visitChildren$1(node);
  57588. },
  57589. visitMixinRule$1: function(node) {
  57590. return null;
  57591. },
  57592. visitReturnRule$1: function(node) {
  57593. return null;
  57594. },
  57595. visitSilentComment$1: function(node) {
  57596. return null;
  57597. },
  57598. visitStyleRule$1: function(node) {
  57599. return this.visitChildren$1(node);
  57600. },
  57601. visitStylesheet$1: function(node) {
  57602. return this.visitChildren$1(node);
  57603. },
  57604. visitSupportsRule$1: function(node) {
  57605. return this.visitChildren$1(node);
  57606. },
  57607. visitVariableDeclaration$1: function(node) {
  57608. return null;
  57609. },
  57610. visitWarnRule$1: function(node) {
  57611. return null;
  57612. },
  57613. visitArgumentInvocation$1: function(invocation) {
  57614. var t1, _i;
  57615. for (t1 = invocation.positional.length, _i = 0; _i < t1; ++_i)
  57616. ;
  57617. for (t1 = invocation.named.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  57618. t1.get$current(t1);
  57619. },
  57620. visitChildren$1: function(node) {
  57621. var t1;
  57622. for (t1 = node.children, t1 = (t1 && C.JSArray_methods).get$iterator(t1); t1.moveNext$0();)
  57623. t1.get$current(t1).accept$1(this);
  57624. return null;
  57625. }
  57626. };
  57627. N.serialize_closure.prototype = {
  57628. call$1: function(codeUnit) {
  57629. return codeUnit > 127;
  57630. },
  57631. $signature: 16
  57632. };
  57633. N._SerializeVisitor0.prototype = {
  57634. visitCssStylesheet$1: function(node) {
  57635. var t1, t2, t3, t4, previous, i, child, _this = this;
  57636. for (t1 = _this._style !== C.OutputStyle_compressed, t2 = type$.legacy_CssComment, t3 = type$.legacy_CssParentNode, t4 = _this._serialize$_buffer, previous = null, i = 0; i < J.get$length$asx(node.get$children()); ++i) {
  57637. child = J.$index$asx(node.get$children(), i);
  57638. if (_this._isInvisible$1(child))
  57639. continue;
  57640. if (previous != null) {
  57641. if (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous))
  57642. t4.writeCharCode$1(59);
  57643. if (t1)
  57644. t4.write$1(0, "\n");
  57645. if (previous.get$isGroupEnd())
  57646. if (t1)
  57647. t4.write$1(0, "\n");
  57648. }
  57649. child.accept$1(_this);
  57650. previous = child;
  57651. }
  57652. if (previous != null)
  57653. t1 = (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous)) && t1;
  57654. else
  57655. t1 = false;
  57656. if (t1)
  57657. t4.writeCharCode$1(59);
  57658. },
  57659. visitCssComment$1: function(node) {
  57660. this._serialize$_buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssComment_closure(this, node));
  57661. },
  57662. visitCssAtRule$1: function(node) {
  57663. var t1, _this = this;
  57664. _this._writeIndentation$0();
  57665. t1 = _this._serialize$_buffer;
  57666. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssAtRule_closure(_this, node));
  57667. if (!node.isChildless) {
  57668. if (_this._style !== C.OutputStyle_compressed)
  57669. t1.writeCharCode$1(32);
  57670. _this._serialize$_visitChildren$1(node.children);
  57671. }
  57672. },
  57673. visitCssMediaRule$1: function(node) {
  57674. var t1, _this = this;
  57675. _this._writeIndentation$0();
  57676. t1 = _this._serialize$_buffer;
  57677. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssMediaRule_closure(_this, node));
  57678. if (_this._style !== C.OutputStyle_compressed)
  57679. t1.writeCharCode$1(32);
  57680. _this._serialize$_visitChildren$1(node.children);
  57681. },
  57682. visitCssImport$1: function(node) {
  57683. this._writeIndentation$0();
  57684. this._serialize$_buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssImport_closure(this, node));
  57685. },
  57686. _writeImportUrl$1: function(url) {
  57687. var urlContents, maybeQuote, _this = this;
  57688. if (_this._style !== C.OutputStyle_compressed || J._codeUnitAt$1$s(url, 0) !== 117) {
  57689. _this._serialize$_buffer.write$1(0, url);
  57690. return;
  57691. }
  57692. urlContents = J.substring$2$s(url, 4, url.length - 1);
  57693. maybeQuote = C.JSString_methods._codeUnitAt$1(urlContents, 0);
  57694. if (maybeQuote === 39 || maybeQuote === 34)
  57695. _this._serialize$_buffer.write$1(0, urlContents);
  57696. else
  57697. _this._visitQuotedString$1(urlContents);
  57698. },
  57699. visitCssKeyframeBlock$1: function(node) {
  57700. var t1, _this = this;
  57701. _this._writeIndentation$0();
  57702. t1 = _this._serialize$_buffer;
  57703. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssKeyframeBlock_closure(_this, node));
  57704. if (_this._style !== C.OutputStyle_compressed)
  57705. t1.writeCharCode$1(32);
  57706. _this._serialize$_visitChildren$1(node.children);
  57707. },
  57708. _visitMediaQuery$1: function(query) {
  57709. var t2, t3, _this = this,
  57710. t1 = query.modifier;
  57711. if (t1 != null) {
  57712. t2 = _this._serialize$_buffer;
  57713. t2.write$1(0, t1);
  57714. t2.writeCharCode$1(32);
  57715. }
  57716. t1 = query.type;
  57717. if (t1 != null) {
  57718. t2 = _this._serialize$_buffer;
  57719. t2.write$1(0, t1);
  57720. if (query.features.length !== 0)
  57721. t2.write$1(0, " and ");
  57722. }
  57723. t1 = query.features;
  57724. t2 = _this._style === C.OutputStyle_compressed ? "and " : " and ";
  57725. t3 = _this._serialize$_buffer;
  57726. _this._writeBetween$3(t1, t2, t3.get$write(t3));
  57727. },
  57728. visitCssStyleRule$1: function(node) {
  57729. var t1, _this = this;
  57730. _this._writeIndentation$0();
  57731. t1 = _this._serialize$_buffer;
  57732. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssStyleRule_closure(_this, node));
  57733. if (_this._style !== C.OutputStyle_compressed)
  57734. t1.writeCharCode$1(32);
  57735. _this._serialize$_visitChildren$1(node.children);
  57736. },
  57737. visitCssSupportsRule$1: function(node) {
  57738. var t1, _this = this;
  57739. _this._writeIndentation$0();
  57740. t1 = _this._serialize$_buffer;
  57741. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssSupportsRule_closure(_this, node));
  57742. if (_this._style !== C.OutputStyle_compressed)
  57743. t1.writeCharCode$1(32);
  57744. _this._serialize$_visitChildren$1(node.children);
  57745. },
  57746. visitCssDeclaration$1: function(node) {
  57747. var error, error0, t1, exception, _this = this;
  57748. _this._writeIndentation$0();
  57749. _this._write$1(node.name);
  57750. t1 = _this._serialize$_buffer;
  57751. t1.writeCharCode$1(58);
  57752. if (_this._isParsedCustomProperty$1(node))
  57753. t1.forSpan$2(node.value.span, new N._SerializeVisitor_visitCssDeclaration_closure(_this, node));
  57754. else {
  57755. if (_this._style !== C.OutputStyle_compressed)
  57756. t1.writeCharCode$1(32);
  57757. try {
  57758. t1.forSpan$2(node.valueSpanForMap, new N._SerializeVisitor_visitCssDeclaration_closure0(_this, node));
  57759. } catch (exception) {
  57760. t1 = H.unwrapException(exception);
  57761. if (t1 instanceof E.MultiSpanSassScriptException) {
  57762. error = t1;
  57763. throw H.wrapException(E.MultiSpanSassException$(error.message, node.value.span, error.primaryLabel, error.secondarySpans));
  57764. } else if (t1 instanceof E.SassScriptException) {
  57765. error0 = t1;
  57766. throw H.wrapException(E.SassException$(error0.message, node.value.span));
  57767. } else
  57768. throw exception;
  57769. }
  57770. }
  57771. },
  57772. _isParsedCustomProperty$1: function(node) {
  57773. var value,
  57774. t1 = node.name;
  57775. if (!J.startsWith$1$s(t1.get$value(t1), "--"))
  57776. return false;
  57777. value = node.value.value;
  57778. return value instanceof D.SassString && !value.hasQuotes;
  57779. },
  57780. _writeFoldedValue$1: function(node) {
  57781. var t1, t2, next, t3,
  57782. scanner = X.StringScanner$(type$.legacy_SassString._as(node.value.value).text, null, null);
  57783. for (t1 = scanner.string.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
  57784. next = scanner.readChar$0();
  57785. if (next !== 10) {
  57786. t2.writeCharCode$1(next);
  57787. continue;
  57788. }
  57789. t2.writeCharCode$1(32);
  57790. while (true) {
  57791. t3 = scanner.peekChar$0();
  57792. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  57793. break;
  57794. scanner.readChar$0();
  57795. }
  57796. }
  57797. },
  57798. _writeReindentedValue$1: function(node) {
  57799. var _this = this,
  57800. t1 = node.value,
  57801. value = type$.legacy_SassString._as(t1.value).text,
  57802. minimumIndentation = _this._minimumIndentation$1(value);
  57803. if (minimumIndentation == null) {
  57804. _this._serialize$_buffer.write$1(0, value);
  57805. return;
  57806. } else if (minimumIndentation === -1) {
  57807. t1 = _this._serialize$_buffer;
  57808. t1.write$1(0, B.trimAsciiRight(value, true));
  57809. t1.writeCharCode$1(32);
  57810. return;
  57811. }
  57812. if (t1.span != null) {
  57813. t1 = node.name.get$span();
  57814. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  57815. minimumIndentation = Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset));
  57816. }
  57817. _this._writeWithIndent$2(value, minimumIndentation);
  57818. },
  57819. _minimumIndentation$1: function(text) {
  57820. var character, t2, min, next, min0,
  57821. scanner = new Z.LineScanner(null, text),
  57822. t1 = text.length;
  57823. while (true) {
  57824. if (scanner._string_scanner$_position !== t1) {
  57825. character = scanner.super$StringScanner$readChar();
  57826. scanner._adjustLineAndColumn$1(character);
  57827. t2 = character !== 10;
  57828. } else
  57829. t2 = false;
  57830. if (!t2)
  57831. break;
  57832. }
  57833. if (scanner._string_scanner$_position === t1)
  57834. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  57835. for (min = null; scanner._string_scanner$_position !== t1;) {
  57836. for (; scanner._string_scanner$_position !== t1;) {
  57837. next = scanner.peekChar$0();
  57838. if (next !== 32 && next !== 9)
  57839. break;
  57840. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  57841. }
  57842. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  57843. continue;
  57844. min0 = scanner._line_scanner$_column;
  57845. min = min == null ? min0 : Math.min(min, min0);
  57846. while (true) {
  57847. if (scanner._string_scanner$_position !== t1) {
  57848. character = scanner.super$StringScanner$readChar();
  57849. scanner._adjustLineAndColumn$1(character);
  57850. t2 = character !== 10;
  57851. } else
  57852. t2 = false;
  57853. if (!t2)
  57854. break;
  57855. }
  57856. }
  57857. return min == null ? -1 : min;
  57858. },
  57859. _writeWithIndent$2: function(text, minimumIndentation) {
  57860. var t1, t2, character, t3, lineStart, newlines, end,
  57861. scanner = new Z.LineScanner(null, text);
  57862. for (t1 = text.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
  57863. character = scanner.super$StringScanner$readChar();
  57864. scanner._adjustLineAndColumn$1(character);
  57865. if (character === 10)
  57866. break;
  57867. t2.writeCharCode$1(character);
  57868. }
  57869. for (t3 = J.getInterceptor$s(text); true;) {
  57870. lineStart = scanner._string_scanner$_position;
  57871. for (newlines = 1; true;) {
  57872. if (scanner._string_scanner$_position === t1) {
  57873. t2.writeCharCode$1(32);
  57874. return;
  57875. }
  57876. character = scanner.super$StringScanner$readChar();
  57877. scanner._adjustLineAndColumn$1(character);
  57878. if (character === 32 || character === 9)
  57879. continue;
  57880. if (character !== 10)
  57881. break;
  57882. lineStart = scanner._string_scanner$_position;
  57883. ++newlines;
  57884. }
  57885. this._writeTimes$2(10, newlines);
  57886. this._writeIndentation$0();
  57887. end = scanner._string_scanner$_position;
  57888. t2.write$1(0, t3.substring$2(text, lineStart + minimumIndentation, end));
  57889. for (; true;) {
  57890. if (scanner._string_scanner$_position === t1)
  57891. return;
  57892. character = scanner.super$StringScanner$readChar();
  57893. scanner._adjustLineAndColumn$1(character);
  57894. if (character === 10)
  57895. break;
  57896. t2.writeCharCode$1(character);
  57897. }
  57898. }
  57899. },
  57900. visitColor$1: function(value) {
  57901. var $name, hexLength, t2, t3, _this = this,
  57902. t1 = _this._style === C.OutputStyle_compressed;
  57903. if (t1 && Math.abs(value.alpha - 1) < $.$get$epsilon()) {
  57904. $name = $.$get$namesByColor().$index(0, value);
  57905. hexLength = _this._canUseShortHex$1(value) ? 4 : 7;
  57906. if ($name != null && $name.length <= hexLength)
  57907. _this._serialize$_buffer.write$1(0, $name);
  57908. else {
  57909. t1 = _this._serialize$_buffer;
  57910. if (_this._canUseShortHex$1(value)) {
  57911. t1.writeCharCode$1(35);
  57912. t1.writeCharCode$1(T.hexCharFor(value.get$red() & 15));
  57913. t1.writeCharCode$1(T.hexCharFor(value.get$green() & 15));
  57914. t1.writeCharCode$1(T.hexCharFor(value.get$blue() & 15));
  57915. } else {
  57916. t1.writeCharCode$1(35);
  57917. _this._writeHexComponent$1(value.get$red());
  57918. _this._writeHexComponent$1(value.get$green());
  57919. _this._writeHexComponent$1(value.get$blue());
  57920. }
  57921. }
  57922. return;
  57923. }
  57924. if (value.get$original() != null)
  57925. _this._serialize$_buffer.write$1(0, value.get$original());
  57926. else {
  57927. t2 = $.$get$namesByColor();
  57928. if (t2.containsKey$1(value) && !(Math.abs(value.alpha - 0) < $.$get$epsilon()))
  57929. _this._serialize$_buffer.write$1(0, t2.$index(0, value));
  57930. else {
  57931. t2 = value.alpha;
  57932. t3 = _this._serialize$_buffer;
  57933. if (Math.abs(t2 - 1) < $.$get$epsilon()) {
  57934. t3.writeCharCode$1(35);
  57935. _this._writeHexComponent$1(value.get$red());
  57936. _this._writeHexComponent$1(value.get$green());
  57937. _this._writeHexComponent$1(value.get$blue());
  57938. } else {
  57939. t3.write$1(0, "rgba(" + H.S(value.get$red()));
  57940. t3.write$1(0, t1 ? "," : ", ");
  57941. t3.write$1(0, value.get$green());
  57942. t3.write$1(0, t1 ? "," : ", ");
  57943. t3.write$1(0, value.get$blue());
  57944. t3.write$1(0, t1 ? "," : ", ");
  57945. _this._writeNumber$1(t2);
  57946. t3.writeCharCode$1(41);
  57947. }
  57948. }
  57949. }
  57950. },
  57951. _canUseShortHex$1: function(color) {
  57952. var t1 = color.get$red();
  57953. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  57954. t1 = color.get$green();
  57955. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  57956. t1 = color.get$blue();
  57957. t1 = (t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4);
  57958. } else
  57959. t1 = false;
  57960. } else
  57961. t1 = false;
  57962. return t1;
  57963. },
  57964. _writeHexComponent$1: function(color) {
  57965. var t1 = this._serialize$_buffer;
  57966. t1.writeCharCode$1(T.hexCharFor(C.JSInt_methods._shrOtherPositive$1(color, 4)));
  57967. t1.writeCharCode$1(T.hexCharFor(color & 15));
  57968. },
  57969. visitList$1: function(value) {
  57970. var t2, singleton, t3, t4, _this = this,
  57971. t1 = value.hasBrackets;
  57972. if (t1)
  57973. _this._serialize$_buffer.writeCharCode$1(91);
  57974. else if (value._list$_contents.length === 0) {
  57975. if (!_this._serialize$_inspect)
  57976. throw H.wrapException(E.SassScriptException$("() isn't a valid CSS value."));
  57977. _this._serialize$_buffer.write$1(0, "()");
  57978. return;
  57979. }
  57980. t2 = _this._serialize$_inspect;
  57981. singleton = t2 && value._list$_contents.length === 1 && value.separator === C.ListSeparator_comma;
  57982. if (singleton && !t1)
  57983. _this._serialize$_buffer.writeCharCode$1(40);
  57984. t3 = value._list$_contents;
  57985. t3 = t2 ? t3 : new H.WhereIterable(t3, new N._SerializeVisitor_visitList_closure(), H._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  57986. if (value.separator === C.ListSeparator_space)
  57987. t4 = " ";
  57988. else
  57989. t4 = _this._style === C.OutputStyle_compressed ? "," : ", ";
  57990. _this._writeBetween$3(t3, t4, t2 ? new N._SerializeVisitor_visitList_closure0(_this, value) : new N._SerializeVisitor_visitList_closure1(_this));
  57991. if (singleton) {
  57992. t2 = _this._serialize$_buffer;
  57993. t2.writeCharCode$1(44);
  57994. if (!t1)
  57995. t2.writeCharCode$1(41);
  57996. }
  57997. if (t1)
  57998. _this._serialize$_buffer.writeCharCode$1(93);
  57999. },
  58000. _elementNeedsParens$2: function(separator, value) {
  58001. var t1;
  58002. if (value instanceof D.SassList) {
  58003. if (value._list$_contents.length < 2)
  58004. return false;
  58005. if (value.hasBrackets)
  58006. return false;
  58007. t1 = value.separator;
  58008. return separator === C.ListSeparator_comma ? t1 === C.ListSeparator_comma : t1 !== C.ListSeparator_undecided;
  58009. }
  58010. return false;
  58011. },
  58012. visitMap$1: function(map) {
  58013. var t1, _this = this;
  58014. if (!_this._serialize$_inspect)
  58015. throw H.wrapException(E.SassScriptException$(map.toString$0(0) + " isn't a valid CSS value."));
  58016. t1 = _this._serialize$_buffer;
  58017. t1.writeCharCode$1(40);
  58018. _this._writeBetween$3(map.contents.get$keys(), ", ", new N._SerializeVisitor_visitMap_closure(_this, map));
  58019. t1.writeCharCode$1(41);
  58020. },
  58021. _writeMapElement$1: function(value) {
  58022. var needsParens = value instanceof D.SassList && value.separator === C.ListSeparator_comma && !value.hasBrackets;
  58023. if (needsParens)
  58024. this._serialize$_buffer.writeCharCode$1(40);
  58025. value.accept$1(this);
  58026. if (needsParens)
  58027. this._serialize$_buffer.writeCharCode$1(41);
  58028. },
  58029. visitNumber$1: function(value) {
  58030. var t2, _this = this,
  58031. t1 = value.asSlash;
  58032. if (t1 != null) {
  58033. _this.visitNumber$1(t1.item1);
  58034. _this._serialize$_buffer.writeCharCode$1(47);
  58035. _this.visitNumber$1(t1.item2);
  58036. return;
  58037. }
  58038. _this._writeNumber$1(value.value);
  58039. if (!_this._serialize$_inspect) {
  58040. t1 = value.numeratorUnits;
  58041. t2 = t1.length;
  58042. if (t2 > 1 || value.denominatorUnits.length !== 0)
  58043. throw H.wrapException(E.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value."));
  58044. if (t2 !== 0)
  58045. _this._serialize$_buffer.write$1(0, C.JSArray_methods.get$first(t1));
  58046. } else
  58047. _this._serialize$_buffer.write$1(0, value.get$unitString());
  58048. },
  58049. _writeNumber$1: function(number) {
  58050. var t1, text, text0, _this = this,
  58051. integer = T.fuzzyIsInt(number) ? J.round$0$n(number) : null;
  58052. if (integer != null) {
  58053. t1 = integer >= 1e21 ? _this._removeExponent$1(C.JSInt_methods.toString$0(integer)) : C.JSInt_methods.toString$0(integer);
  58054. _this._serialize$_buffer.write$1(0, t1);
  58055. return;
  58056. }
  58057. text = number >= 1e21 ? _this._removeExponent$1(C.JSNumber_methods.toString$0(number)) : C.JSNumber_methods.toString$0(number);
  58058. text0 = _this._style === C.OutputStyle_compressed && C.JSString_methods._codeUnitAt$1(text, 0) === 48 ? C.JSString_methods.substring$1(text, 1) : text;
  58059. if (text.length < 12) {
  58060. _this._serialize$_buffer.write$1(0, text0);
  58061. return;
  58062. }
  58063. _this._writeDecimal$1(text0);
  58064. },
  58065. _removeExponent$1: function(text) {
  58066. var buffer, exponent, t2, additionalZeroes, negative,
  58067. t1 = text.length,
  58068. i = 0;
  58069. while (true) {
  58070. if (!(i < t1)) {
  58071. buffer = null;
  58072. exponent = null;
  58073. break;
  58074. }
  58075. c$0: {
  58076. if (C.JSString_methods._codeUnitAt$1(text, i) !== 101)
  58077. break c$0;
  58078. buffer = new P.StringBuffer("");
  58079. t2 = H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(text, 0));
  58080. buffer._contents = t2;
  58081. if (i > 2)
  58082. buffer._contents = t2 + C.JSString_methods.substring$2(text, 2, i);
  58083. exponent = P.int_parse(C.JSString_methods.substring$2(text, i + 1, t1), null);
  58084. break;
  58085. }
  58086. ++i;
  58087. }
  58088. if (buffer == null)
  58089. return text;
  58090. if (exponent > 0) {
  58091. t1 = buffer._contents;
  58092. additionalZeroes = exponent - (t1.length - 1);
  58093. for (i = 0; i < additionalZeroes; ++i)
  58094. t1 = buffer._contents += H.Primitives_stringFromCharCode(48);
  58095. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58096. } else {
  58097. negative = C.JSString_methods._codeUnitAt$1(text, 0) === 45;
  58098. t1 = (negative ? H.Primitives_stringFromCharCode(45) : "") + "0.";
  58099. for (i = -1; i > exponent; --i)
  58100. t1 += H.Primitives_stringFromCharCode(48);
  58101. if (negative) {
  58102. t2 = buffer._contents;
  58103. t2 = C.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  58104. } else
  58105. t2 = buffer;
  58106. t2 = t1 + H.S(t2);
  58107. return t2.charCodeAt(0) == 0 ? t2 : t2;
  58108. }
  58109. },
  58110. _writeDecimal$1: function(text) {
  58111. var t1, t2, textIndex, codeUnit, digits, t3, digitsIndex, digitsIndex0, textIndex0, newDigit, i;
  58112. for (t1 = text.length, t2 = this._serialize$_buffer, textIndex = 0; textIndex < t1; ++textIndex) {
  58113. codeUnit = C.JSString_methods._codeUnitAt$1(text, textIndex);
  58114. if (codeUnit === 46) {
  58115. if (textIndex === t1 - 2 && C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 48)
  58116. return;
  58117. t2.writeCharCode$1(codeUnit);
  58118. ++textIndex;
  58119. break;
  58120. }
  58121. t2.writeCharCode$1(codeUnit);
  58122. }
  58123. if (textIndex === t1)
  58124. return;
  58125. digits = new Uint8Array(10);
  58126. t3 = digits.length;
  58127. digitsIndex = 0;
  58128. while (true) {
  58129. if (!(textIndex < t1 && digitsIndex < t3))
  58130. break;
  58131. digitsIndex0 = digitsIndex + 1;
  58132. textIndex0 = textIndex + 1;
  58133. digits[digitsIndex] = C.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
  58134. digitsIndex = digitsIndex0;
  58135. textIndex = textIndex0;
  58136. }
  58137. if (textIndex !== t1 && C.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
  58138. for (; digitsIndex >= 0; digitsIndex = digitsIndex0) {
  58139. digitsIndex0 = digitsIndex - 1;
  58140. newDigit = digits[digitsIndex0] + 1;
  58141. digits[digitsIndex0] = newDigit;
  58142. if (newDigit !== 10)
  58143. break;
  58144. }
  58145. while (true) {
  58146. if (!(digitsIndex > 0 && digits[digitsIndex - 1] === 0))
  58147. break;
  58148. --digitsIndex;
  58149. }
  58150. for (i = 0; i < digitsIndex; ++i)
  58151. t2.writeCharCode$1(48 + digits[i]);
  58152. },
  58153. _visitQuotedString$2$forceDoubleQuote: function(string, forceDoubleQuote) {
  58154. var t1, includesSingleQuote, includesDoubleQuote, i, char, t2, next, quote, _this = this,
  58155. buffer = forceDoubleQuote ? _this._serialize$_buffer : new P.StringBuffer("");
  58156. if (forceDoubleQuote)
  58157. buffer.writeCharCode$1(34);
  58158. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  58159. char = C.JSString_methods._codeUnitAt$1(string, i);
  58160. switch (char) {
  58161. case 39:
  58162. if (forceDoubleQuote)
  58163. buffer.writeCharCode$1(39);
  58164. else {
  58165. if (includesDoubleQuote) {
  58166. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  58167. return;
  58168. } else
  58169. buffer.writeCharCode$1(39);
  58170. includesSingleQuote = true;
  58171. }
  58172. break;
  58173. case 34:
  58174. if (forceDoubleQuote) {
  58175. buffer.writeCharCode$1(92);
  58176. buffer.writeCharCode$1(34);
  58177. } else {
  58178. if (includesSingleQuote) {
  58179. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  58180. return;
  58181. } else
  58182. buffer.writeCharCode$1(34);
  58183. includesDoubleQuote = true;
  58184. }
  58185. break;
  58186. case 0:
  58187. case 1:
  58188. case 2:
  58189. case 3:
  58190. case 4:
  58191. case 5:
  58192. case 6:
  58193. case 7:
  58194. case 8:
  58195. case 10:
  58196. case 11:
  58197. case 12:
  58198. case 13:
  58199. case 14:
  58200. case 15:
  58201. case 16:
  58202. case 17:
  58203. case 18:
  58204. case 19:
  58205. case 20:
  58206. case 21:
  58207. case 22:
  58208. case 23:
  58209. case 24:
  58210. case 25:
  58211. case 26:
  58212. case 27:
  58213. case 28:
  58214. case 29:
  58215. case 30:
  58216. case 31:
  58217. buffer.writeCharCode$1(92);
  58218. if (char > 15) {
  58219. t2 = char >>> 4;
  58220. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  58221. }
  58222. t2 = char & 15;
  58223. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  58224. t2 = i + 1;
  58225. if (t1 === t2)
  58226. break;
  58227. next = C.JSString_methods._codeUnitAt$1(string, t2);
  58228. if (T.isHex(next) || next === 32 || next === 9)
  58229. buffer.writeCharCode$1(32);
  58230. break;
  58231. case 92:
  58232. buffer.writeCharCode$1(92);
  58233. buffer.writeCharCode$1(92);
  58234. break;
  58235. default:
  58236. buffer.writeCharCode$1(char);
  58237. break;
  58238. }
  58239. }
  58240. if (forceDoubleQuote)
  58241. buffer.writeCharCode$1(34);
  58242. else {
  58243. quote = includesDoubleQuote ? 39 : 34;
  58244. t1 = _this._serialize$_buffer;
  58245. t1.writeCharCode$1(quote);
  58246. t1.write$1(0, buffer);
  58247. t1.writeCharCode$1(quote);
  58248. }
  58249. },
  58250. _visitQuotedString$1: function(string) {
  58251. return this._visitQuotedString$2$forceDoubleQuote(string, false);
  58252. },
  58253. _visitUnquotedString$1: function(string) {
  58254. var t1, t2, afterNewline, i, char;
  58255. for (t1 = string.length, t2 = this._serialize$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
  58256. char = C.JSString_methods._codeUnitAt$1(string, i);
  58257. switch (char) {
  58258. case 10:
  58259. t2.writeCharCode$1(32);
  58260. afterNewline = true;
  58261. break;
  58262. case 32:
  58263. if (!afterNewline)
  58264. t2.writeCharCode$1(32);
  58265. break;
  58266. default:
  58267. t2.writeCharCode$1(char);
  58268. afterNewline = false;
  58269. break;
  58270. }
  58271. }
  58272. },
  58273. visitComplexSelector$1: function(complex) {
  58274. var t1, t2, t3, t4, lastComponent, _i, component, t5;
  58275. for (t1 = complex.components, t2 = t1.length, t3 = this._serialize$_buffer, t4 = this._style === C.OutputStyle_compressed, lastComponent = null, _i = 0; _i < t2; ++_i, lastComponent = component) {
  58276. component = t1[_i];
  58277. if (lastComponent != null)
  58278. if (!(t4 && lastComponent instanceof S.Combinator))
  58279. t5 = !(t4 && component instanceof S.Combinator);
  58280. else
  58281. t5 = false;
  58282. else
  58283. t5 = false;
  58284. if (t5)
  58285. t3.write$1(0, " ");
  58286. if (component instanceof X.CompoundSelector)
  58287. this.visitCompoundSelector$1(component);
  58288. else
  58289. t3.write$1(0, component);
  58290. }
  58291. },
  58292. visitCompoundSelector$1: function(compound) {
  58293. var t2, t3, _i,
  58294. t1 = this._serialize$_buffer,
  58295. start = t1.get$length(t1);
  58296. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  58297. t2[_i].accept$1(this);
  58298. if (t1.get$length(t1) === start)
  58299. t1.writeCharCode$1(42);
  58300. },
  58301. visitSelectorList$1: function(list) {
  58302. var complexes, t1, t2, t3, first, t4, _this = this;
  58303. if (_this._serialize$_inspect)
  58304. complexes = list.components;
  58305. else {
  58306. t1 = list.components;
  58307. complexes = new H.WhereIterable(t1, new N._SerializeVisitor_visitSelectorList_closure(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  58308. }
  58309. for (t1 = J.get$iterator$ax(complexes), t2 = _this._style !== C.OutputStyle_compressed, t3 = _this._serialize$_buffer, first = true; t1.moveNext$0();) {
  58310. t4 = t1.get$current(t1);
  58311. if (first)
  58312. first = false;
  58313. else {
  58314. t3.writeCharCode$1(44);
  58315. if (t4.lineBreak) {
  58316. if (t2)
  58317. t3.write$1(0, "\n");
  58318. } else if (t2)
  58319. t3.writeCharCode$1(32);
  58320. }
  58321. _this.visitComplexSelector$1(t4);
  58322. }
  58323. },
  58324. visitPseudoSelector$1: function(pseudo) {
  58325. var t4, t5, t6,
  58326. t1 = pseudo.selector,
  58327. t2 = t1 == null,
  58328. t3 = !t2;
  58329. if (t3 && pseudo.name === "not" && t1.get$isInvisible())
  58330. return;
  58331. t4 = this._serialize$_buffer;
  58332. t4.writeCharCode$1(58);
  58333. if (!pseudo.isSyntacticClass)
  58334. t4.writeCharCode$1(58);
  58335. t4.write$1(0, pseudo.name);
  58336. t5 = pseudo.argument;
  58337. t6 = t5 == null;
  58338. if (t6 && t2)
  58339. return;
  58340. t4.writeCharCode$1(40);
  58341. if (!t6) {
  58342. t4.write$1(0, t5);
  58343. if (t3)
  58344. t4.writeCharCode$1(32);
  58345. }
  58346. if (t3)
  58347. this.visitSelectorList$1(t1);
  58348. t4.writeCharCode$1(41);
  58349. },
  58350. _write$1: function(value) {
  58351. return this._serialize$_buffer.forSpan$2(value.get$span(), new N._SerializeVisitor__write_closure(this, value));
  58352. },
  58353. _serialize$_visitChildren$1: function(children) {
  58354. var _this = this, t1 = {},
  58355. t2 = _this._serialize$_buffer;
  58356. t2.writeCharCode$1(123);
  58357. if (children.every$1(children, _this.get$_isInvisible())) {
  58358. t2.writeCharCode$1(125);
  58359. return;
  58360. }
  58361. _this._writeLineFeed$0();
  58362. t1.previous = null;
  58363. ++_this._indentation;
  58364. new N._SerializeVisitor__visitChildren_closure(t1, _this, children).call$0();
  58365. --_this._indentation;
  58366. t1 = t1.previous;
  58367. if ((type$.legacy_CssParentNode._is(t1) ? t1.get$isChildless() : !type$.legacy_CssComment._is(t1)) && _this._style !== C.OutputStyle_compressed)
  58368. t2.writeCharCode$1(59);
  58369. _this._writeLineFeed$0();
  58370. _this._writeIndentation$0();
  58371. t2.writeCharCode$1(125);
  58372. },
  58373. _writeLineFeed$0: function() {
  58374. if (this._style !== C.OutputStyle_compressed)
  58375. this._serialize$_buffer.write$1(0, "\n");
  58376. },
  58377. _writeIndentation$0: function() {
  58378. var _this = this;
  58379. if (_this._style === C.OutputStyle_compressed)
  58380. return;
  58381. _this._writeTimes$2(_this._indentCharacter, _this._indentation * _this._indentWidth);
  58382. },
  58383. _writeTimes$2: function(char, times) {
  58384. var t1, i;
  58385. for (t1 = this._serialize$_buffer, i = 0; i < times; ++i)
  58386. t1.writeCharCode$1(char);
  58387. },
  58388. _writeBetween$1$3: function(iterable, text, callback) {
  58389. var t1, t2, first, value;
  58390. for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize$_buffer, first = true; t1.moveNext$0();) {
  58391. value = t1.get$current(t1);
  58392. if (first)
  58393. first = false;
  58394. else
  58395. t2.write$1(0, text);
  58396. callback.call$1(value);
  58397. }
  58398. },
  58399. _writeBetween$3: function(iterable, text, callback) {
  58400. return this._writeBetween$1$3(iterable, text, callback, type$.dynamic);
  58401. },
  58402. _isInvisible$1: function(node) {
  58403. if (this._serialize$_inspect)
  58404. return false;
  58405. if (this._style === C.OutputStyle_compressed && type$.legacy_CssComment._is(node) && J._codeUnitAt$1$s(node.text, 2) !== 33)
  58406. return true;
  58407. if (type$.legacy_CssParentNode._is(node)) {
  58408. if (type$.legacy_CssAtRule._is(node))
  58409. return false;
  58410. if (type$.legacy_CssStyleRule._is(node) && node.selector.value.get$isInvisible())
  58411. return true;
  58412. return J.every$1$ax(node.get$children(), this.get$_isInvisible());
  58413. } else
  58414. return false;
  58415. }
  58416. };
  58417. N._SerializeVisitor_visitCssComment_closure.prototype = {
  58418. call$0: function() {
  58419. var t2, t3, minimumIndentation,
  58420. t1 = this.$this;
  58421. if (t1._style === C.OutputStyle_compressed && J._codeUnitAt$1$s(this.node.text, 2) !== 33)
  58422. return;
  58423. t2 = this.node;
  58424. t3 = t2.text;
  58425. minimumIndentation = t1._minimumIndentation$1(t3);
  58426. if (minimumIndentation == null) {
  58427. t1._writeIndentation$0();
  58428. t1._serialize$_buffer.write$1(0, t3);
  58429. return;
  58430. }
  58431. t2 = t2.span;
  58432. if (t2 != null) {
  58433. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  58434. minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
  58435. }
  58436. t1._writeIndentation$0();
  58437. t1._writeWithIndent$2(t3, minimumIndentation);
  58438. },
  58439. $signature: 0
  58440. };
  58441. N._SerializeVisitor_visitCssAtRule_closure.prototype = {
  58442. call$0: function() {
  58443. var t3,
  58444. t1 = this.$this,
  58445. t2 = t1._serialize$_buffer;
  58446. t2.writeCharCode$1(64);
  58447. t3 = this.node;
  58448. t1._write$1(t3.name);
  58449. t3 = t3.value;
  58450. if (t3 != null) {
  58451. t2.writeCharCode$1(32);
  58452. t1._write$1(t3);
  58453. }
  58454. },
  58455. $signature: 0
  58456. };
  58457. N._SerializeVisitor_visitCssMediaRule_closure.prototype = {
  58458. call$0: function() {
  58459. var t3, t4,
  58460. t1 = this.$this,
  58461. t2 = t1._serialize$_buffer;
  58462. t2.write$1(0, "@media");
  58463. t3 = t1._style === C.OutputStyle_compressed;
  58464. if (t3) {
  58465. t4 = C.JSArray_methods.get$first(this.node.queries);
  58466. t4 = !(t4.modifier == null && t4.type == null);
  58467. } else
  58468. t4 = true;
  58469. if (t4)
  58470. t2.writeCharCode$1(32);
  58471. t2 = t3 ? "," : ", ";
  58472. t1._writeBetween$3(this.node.queries, t2, t1.get$_visitMediaQuery());
  58473. },
  58474. $signature: 0
  58475. };
  58476. N._SerializeVisitor_visitCssImport_closure.prototype = {
  58477. call$0: function() {
  58478. var t3, t4, t5, t6,
  58479. t1 = this.$this,
  58480. t2 = t1._serialize$_buffer;
  58481. t2.write$1(0, "@import");
  58482. t3 = t1._style === C.OutputStyle_compressed;
  58483. t4 = !t3;
  58484. if (t4)
  58485. t2.writeCharCode$1(32);
  58486. t5 = this.node;
  58487. t2.forSpan$2(t5.url.get$span(), new N._SerializeVisitor_visitCssImport__closure(t1, t5));
  58488. t6 = t5.supports;
  58489. if (t6 != null) {
  58490. if (t4)
  58491. t2.writeCharCode$1(32);
  58492. t1._write$1(t6);
  58493. }
  58494. t5 = t5.media;
  58495. if (t5 != null) {
  58496. if (t4)
  58497. t2.writeCharCode$1(32);
  58498. t2 = t3 ? "," : ", ";
  58499. t1._writeBetween$3(t5, t2, t1.get$_visitMediaQuery());
  58500. }
  58501. },
  58502. $signature: 0
  58503. };
  58504. N._SerializeVisitor_visitCssImport__closure.prototype = {
  58505. call$0: function() {
  58506. var t1 = this.node.url;
  58507. return this.$this._writeImportUrl$1(t1.get$value(t1));
  58508. },
  58509. $signature: 1
  58510. };
  58511. N._SerializeVisitor_visitCssKeyframeBlock_closure.prototype = {
  58512. call$0: function() {
  58513. var t1 = this.$this,
  58514. t2 = t1._style === C.OutputStyle_compressed ? "," : ", ",
  58515. t3 = t1._serialize$_buffer;
  58516. return t1._writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  58517. },
  58518. $signature: 1
  58519. };
  58520. N._SerializeVisitor_visitCssStyleRule_closure.prototype = {
  58521. call$0: function() {
  58522. var t1 = this.node.selector.value;
  58523. t1.toString;
  58524. return this.$this.visitSelectorList$1(t1);
  58525. },
  58526. $signature: 1
  58527. };
  58528. N._SerializeVisitor_visitCssSupportsRule_closure.prototype = {
  58529. call$0: function() {
  58530. var t1 = this.$this,
  58531. t2 = t1._serialize$_buffer;
  58532. t2.write$1(0, "@supports");
  58533. if (!(t1._style === C.OutputStyle_compressed && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  58534. t2.writeCharCode$1(32);
  58535. t1._write$1(this.node.condition);
  58536. },
  58537. $signature: 0
  58538. };
  58539. N._SerializeVisitor_visitCssDeclaration_closure.prototype = {
  58540. call$0: function() {
  58541. var t1 = this.$this,
  58542. t2 = this.node;
  58543. if (t1._style === C.OutputStyle_compressed)
  58544. t1._writeFoldedValue$1(t2);
  58545. else
  58546. t1._writeReindentedValue$1(t2);
  58547. },
  58548. $signature: 0
  58549. };
  58550. N._SerializeVisitor_visitCssDeclaration_closure0.prototype = {
  58551. call$0: function() {
  58552. return this.node.value.value.accept$1(this.$this);
  58553. },
  58554. $signature: 1
  58555. };
  58556. N._SerializeVisitor_visitList_closure.prototype = {
  58557. call$1: function(element) {
  58558. return !element.get$isBlank();
  58559. }
  58560. };
  58561. N._SerializeVisitor_visitList_closure0.prototype = {
  58562. call$1: function(element) {
  58563. var t1 = this.$this,
  58564. needsParens = t1._elementNeedsParens$2(this.value.separator, element);
  58565. if (needsParens)
  58566. t1._serialize$_buffer.writeCharCode$1(40);
  58567. element.accept$1(t1);
  58568. if (needsParens)
  58569. t1._serialize$_buffer.writeCharCode$1(41);
  58570. }
  58571. };
  58572. N._SerializeVisitor_visitList_closure1.prototype = {
  58573. call$1: function(element) {
  58574. element.accept$1(this.$this);
  58575. }
  58576. };
  58577. N._SerializeVisitor_visitMap_closure.prototype = {
  58578. call$1: function(key) {
  58579. var t1 = this.$this;
  58580. t1._writeMapElement$1(key);
  58581. t1._serialize$_buffer.write$1(0, ": ");
  58582. t1._writeMapElement$1(this.map.contents.$index(0, key));
  58583. }
  58584. };
  58585. N._SerializeVisitor_visitSelectorList_closure.prototype = {
  58586. call$1: function(complex) {
  58587. return !complex.get$isInvisible();
  58588. }
  58589. };
  58590. N._SerializeVisitor__write_closure.prototype = {
  58591. call$0: function() {
  58592. var t1 = this.value;
  58593. return this.$this._serialize$_buffer.write$1(0, t1.get$value(t1));
  58594. },
  58595. $signature: 1
  58596. };
  58597. N._SerializeVisitor__visitChildren_closure.prototype = {
  58598. call$0: function() {
  58599. var t1, t2, t3, t4, t5, t6, t7, i, child, t8;
  58600. for (t1 = this.children._collection$_source, t2 = J.getInterceptor$asx(t1), t3 = this._box_0, t4 = this.$this, t5 = type$.legacy_CssComment, t6 = type$.legacy_CssParentNode, t7 = t4._serialize$_buffer, i = 0; i < t2.get$length(t1); ++i) {
  58601. child = t2.elementAt$1(t1, i);
  58602. if (t4._isInvisible$1(child))
  58603. continue;
  58604. t8 = t3.previous;
  58605. if (t8 != null) {
  58606. if (t6._is(t8) ? t8.get$isChildless() : !t5._is(t8))
  58607. t7.writeCharCode$1(59);
  58608. t8 = t4._style !== C.OutputStyle_compressed;
  58609. if (t8)
  58610. t7.write$1(0, "\n");
  58611. if (t3.previous.get$isGroupEnd())
  58612. if (t8)
  58613. t7.write$1(0, "\n");
  58614. }
  58615. t3.previous = child;
  58616. child.accept$1(t4);
  58617. }
  58618. },
  58619. $signature: 0
  58620. };
  58621. N.OutputStyle.prototype = {
  58622. toString$0: function(_) {
  58623. return this._serialize$_name;
  58624. }
  58625. };
  58626. N.LineFeed.prototype = {
  58627. toString$0: function(_) {
  58628. return "lf";
  58629. }
  58630. };
  58631. N.SerializeResult.prototype = {};
  58632. N.withWarnCallback_closure.prototype = {
  58633. call$0: function() {
  58634. return this.callback.call$0();
  58635. },
  58636. "call*": "call$0",
  58637. $requiredArgCount: 0,
  58638. $signature: function() {
  58639. return this.T._eval$1("0*()");
  58640. }
  58641. };
  58642. L.Entry.prototype = {
  58643. compareTo$1: function(_, other) {
  58644. var t1, t2, t3,
  58645. res = this.target.compareTo$1(0, other.target);
  58646. if (res !== 0)
  58647. return res;
  58648. t1 = this.source;
  58649. t2 = J.toString$0$(t1.file.url);
  58650. t3 = other.source;
  58651. res = C.JSString_methods.compareTo$1(t2, J.toString$0$(t3.file.url));
  58652. if (res !== 0)
  58653. return res;
  58654. return t1.compareTo$1(0, t3);
  58655. },
  58656. $isComparable: 1,
  58657. get$source: function() {
  58658. return this.source;
  58659. },
  58660. get$target: function() {
  58661. return this.target;
  58662. },
  58663. get$identifierName: function() {
  58664. return this.identifierName;
  58665. }
  58666. };
  58667. T.Mapping.prototype = {};
  58668. T.SingleMapping.prototype = {
  58669. toJson$1$includeSourceContents: function(includeSourceContents) {
  58670. var t1, t2, line, column, srcLine, srcColumn, srcUrlId, srcNameId, first, _i, entry, nextLine, i, t3, t4, _i0, segment, column0, t5, newUrlId, srcLine0, srcColumn0, srcNameId0, result, _this = this,
  58671. buff = new P.StringBuffer("");
  58672. 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, H.throwConcurrentModificationError)(t1), ++_i) {
  58673. entry = t1[_i];
  58674. nextLine = entry.line;
  58675. if (nextLine > line) {
  58676. for (i = line; i < nextLine; ++i)
  58677. buff._contents += ";";
  58678. line = nextLine;
  58679. column = 0;
  58680. first = true;
  58681. }
  58682. for (t3 = entry.entries, t4 = t3.length, _i0 = 0; _i0 < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i0, column = column0, first = false) {
  58683. segment = t3[_i0];
  58684. if (!first)
  58685. buff._contents += ",";
  58686. column0 = segment.column;
  58687. t5 = L.encodeVlq(column0 - column);
  58688. t5 = P.StringBuffer__writeAll(buff._contents, t5, "");
  58689. buff._contents = t5;
  58690. newUrlId = segment.sourceUrlId;
  58691. if (newUrlId == null)
  58692. continue;
  58693. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(newUrlId - srcUrlId), "");
  58694. buff._contents = t5;
  58695. srcLine0 = segment.sourceLine;
  58696. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(srcLine0 - srcLine), "");
  58697. buff._contents = t5;
  58698. srcColumn0 = segment.sourceColumn;
  58699. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(srcColumn0 - srcColumn), "");
  58700. buff._contents = t5;
  58701. srcNameId0 = segment.sourceNameId;
  58702. if (srcNameId0 == null) {
  58703. srcUrlId = newUrlId;
  58704. srcColumn = srcColumn0;
  58705. srcLine = srcLine0;
  58706. continue;
  58707. }
  58708. buff._contents = P.StringBuffer__writeAll(t5, L.encodeVlq(srcNameId0 - srcNameId), "");
  58709. srcNameId = srcNameId0;
  58710. srcUrlId = newUrlId;
  58711. srcColumn = srcColumn0;
  58712. srcLine = srcLine0;
  58713. }
  58714. }
  58715. t1 = _this.sourceRoot;
  58716. if (t1 == null)
  58717. t1 = "";
  58718. t2 = buff._contents;
  58719. result = P.LinkedHashMap_LinkedHashMap$_literal(["version", 3, "sourceRoot", t1, "sources", _this.urls, "names", _this.names, "mappings", t2.charCodeAt(0) == 0 ? t2 : t2], type$.legacy_String, type$.legacy_Object);
  58720. t1 = _this.targetUrl;
  58721. if (t1 != null)
  58722. result.$indexSet(0, "file", t1);
  58723. if (includeSourceContents) {
  58724. t1 = _this.files;
  58725. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>");
  58726. result.$indexSet(0, "sourcesContent", P.List_List$from(new H.MappedListIterable(t1, new T.SingleMapping_toJson_closure(), t2), true, t2._eval$1("ListIterable.E")));
  58727. }
  58728. _this.extensions.forEach$1(0, new T.SingleMapping_toJson_closure0(result));
  58729. return result;
  58730. },
  58731. toJson$0: function() {
  58732. return this.toJson$1$includeSourceContents(false);
  58733. },
  58734. toString$0: function(_) {
  58735. var _this = this,
  58736. t1 = H.getRuntimeType(_this).toString$0(0);
  58737. t1 + " : [";
  58738. t1 = t1 + " : [targetUrl: " + H.S(_this.targetUrl) + ", sourceRoot: " + H.S(_this.sourceRoot) + ", urls: " + H.S(_this.urls) + ", names: " + H.S(_this.names) + ", lines: " + H.S(_this.lines) + "]";
  58739. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58740. }
  58741. };
  58742. T.SingleMapping_SingleMapping$fromEntries_closure.prototype = {
  58743. call$0: function() {
  58744. var t1 = this.urls;
  58745. return t1.get$length(t1);
  58746. },
  58747. $signature: 7
  58748. };
  58749. T.SingleMapping_SingleMapping$fromEntries_closure0.prototype = {
  58750. call$0: function() {
  58751. return type$.legacy_FileLocation._as(this.sourceEntry.get$source()).file;
  58752. },
  58753. $signature: 62
  58754. };
  58755. T.SingleMapping_SingleMapping$fromEntries_closure1.prototype = {
  58756. call$1: function(i) {
  58757. return this.files.$index(0, i);
  58758. },
  58759. $signature: 102
  58760. };
  58761. T.SingleMapping_toJson_closure.prototype = {
  58762. call$1: function(file) {
  58763. return file == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(file._decodedChars, 0, null), 0, null);
  58764. }
  58765. };
  58766. T.SingleMapping_toJson_closure0.prototype = {
  58767. call$2: function($name, value) {
  58768. this.result.$indexSet(0, $name, value);
  58769. return value;
  58770. }
  58771. };
  58772. T.TargetLineEntry.prototype = {
  58773. toString$0: function(_) {
  58774. return H.getRuntimeType(this).toString$0(0) + ": " + this.line + " " + H.S(this.entries);
  58775. }
  58776. };
  58777. T.TargetEntry.prototype = {
  58778. toString$0: function(_) {
  58779. var _this = this;
  58780. return H.getRuntimeType(_this).toString$0(0) + ": (" + _this.column + ", " + H.S(_this.sourceUrlId) + ", " + H.S(_this.sourceLine) + ", " + H.S(_this.sourceColumn) + ", " + H.S(_this.sourceNameId) + ")";
  58781. }
  58782. };
  58783. Y.SourceFile.prototype = {
  58784. get$length: function(_) {
  58785. return this._decodedChars.length;
  58786. },
  58787. get$lines: function() {
  58788. return this._lineStarts.length;
  58789. },
  58790. SourceFile$decoded$2$url: function(decodedChars, url) {
  58791. var t1, t2, t3, i, c, j;
  58792. for (t1 = this._decodedChars, t2 = t1.length, t3 = this._lineStarts, i = 0; i < t2; ++i) {
  58793. c = t1[i];
  58794. if (c === 13) {
  58795. j = i + 1;
  58796. if (j >= t2 || t1[j] !== 10)
  58797. c = 10;
  58798. }
  58799. if (c === 10)
  58800. t3.push(i + 1);
  58801. }
  58802. },
  58803. span$2: function(start, end) {
  58804. return Y._FileSpan$(this, start, end == null ? this._decodedChars.length : end);
  58805. },
  58806. span$1: function(start) {
  58807. return this.span$2(start, null);
  58808. },
  58809. getLine$1: function(offset) {
  58810. var t1, _this = this;
  58811. if (offset < 0)
  58812. throw H.wrapException(P.RangeError$("Offset may not be negative, was " + offset + "."));
  58813. else if (offset > _this._decodedChars.length)
  58814. throw H.wrapException(P.RangeError$("Offset " + offset + string$.x20must_ + _this.get$length(_this) + "."));
  58815. t1 = _this._lineStarts;
  58816. if (offset < C.JSArray_methods.get$first(t1))
  58817. return -1;
  58818. if (offset >= C.JSArray_methods.get$last(t1))
  58819. return t1.length - 1;
  58820. if (_this._isNearCachedLine$1(offset))
  58821. return _this._cachedLine;
  58822. return _this._cachedLine = _this._binarySearch$1(offset) - 1;
  58823. },
  58824. _isNearCachedLine$1: function(offset) {
  58825. var t2, t3,
  58826. t1 = this._cachedLine;
  58827. if (t1 == null)
  58828. return false;
  58829. t2 = this._lineStarts;
  58830. if (offset < t2[t1])
  58831. return false;
  58832. t3 = t2.length;
  58833. if (t1 >= t3 - 1 || offset < t2[t1 + 1])
  58834. return true;
  58835. if (t1 >= t3 - 2 || offset < t2[t1 + 2]) {
  58836. this._cachedLine = t1 + 1;
  58837. return true;
  58838. }
  58839. return false;
  58840. },
  58841. _binarySearch$1: function(offset) {
  58842. var min, half,
  58843. t1 = this._lineStarts,
  58844. max = t1.length - 1;
  58845. for (min = 0; min < max;) {
  58846. half = min + C.JSInt_methods._tdivFast$1(max - min, 2);
  58847. if (t1[half] > offset)
  58848. max = half;
  58849. else
  58850. min = half + 1;
  58851. }
  58852. return max;
  58853. },
  58854. getColumn$1: function(offset) {
  58855. var line, lineStart, _this = this;
  58856. if (offset < 0)
  58857. throw H.wrapException(P.RangeError$("Offset may not be negative, was " + offset + "."));
  58858. else if (offset > _this._decodedChars.length)
  58859. throw H.wrapException(P.RangeError$("Offset " + offset + " must be not be greater than the number of characters in the file, " + _this.get$length(_this) + "."));
  58860. line = _this.getLine$1(offset);
  58861. lineStart = _this._lineStarts[line];
  58862. if (lineStart > offset)
  58863. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " comes after offset " + offset + "."));
  58864. return offset - lineStart;
  58865. },
  58866. getOffset$1: function(line) {
  58867. var t1, t2, result, t3;
  58868. if (line < 0)
  58869. throw H.wrapException(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
  58870. else {
  58871. t1 = this._lineStarts;
  58872. t2 = t1.length;
  58873. if (line >= t2)
  58874. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " must be less than the number of lines in the file, " + this.get$lines() + "."));
  58875. }
  58876. result = t1[line];
  58877. if (result <= this._decodedChars.length) {
  58878. t3 = line + 1;
  58879. t1 = t3 < t2 && result >= t1[t3];
  58880. } else
  58881. t1 = true;
  58882. if (t1)
  58883. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " doesn't have 0 columns."));
  58884. return result;
  58885. }
  58886. };
  58887. Y.FileLocation.prototype = {
  58888. get$sourceUrl: function() {
  58889. return this.file.url;
  58890. },
  58891. get$line: function() {
  58892. return this.file.getLine$1(this.offset);
  58893. },
  58894. get$column: function() {
  58895. return this.file.getColumn$1(this.offset);
  58896. },
  58897. pointSpan$0: function() {
  58898. var t1 = this.offset;
  58899. return Y._FileSpan$(this.file, t1, t1);
  58900. },
  58901. get$offset: function() {
  58902. return this.offset;
  58903. }
  58904. };
  58905. Y.FileSpan.prototype = {$isComparable: 1, $isSourceSpan: 1, $isSourceSpanWithContext: 1};
  58906. Y._FileSpan.prototype = {
  58907. get$sourceUrl: function() {
  58908. return this.file.url;
  58909. },
  58910. get$length: function(_) {
  58911. return this._end - this._file$_start;
  58912. },
  58913. get$start: function(_) {
  58914. return Y.FileLocation$_(this.file, this._file$_start);
  58915. },
  58916. get$end: function(_) {
  58917. return Y.FileLocation$_(this.file, this._end);
  58918. },
  58919. get$text: function() {
  58920. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.file._decodedChars, this._file$_start, this._end), 0, null);
  58921. },
  58922. get$context: function(_) {
  58923. var _this = this,
  58924. t1 = _this.file,
  58925. endOffset = _this._end,
  58926. endLine = t1.getLine$1(endOffset);
  58927. if (t1.getColumn$1(endOffset) === 0 && endLine !== 0) {
  58928. if (endOffset - _this._file$_start === 0)
  58929. return endLine === t1._lineStarts.length - 1 ? "" : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(endLine), t1.getOffset$1(endLine + 1)), 0, null);
  58930. } else
  58931. endOffset = endLine === t1._lineStarts.length - 1 ? t1._decodedChars.length : t1.getOffset$1(endLine + 1);
  58932. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(t1.getLine$1(_this._file$_start)), endOffset), 0, null);
  58933. },
  58934. compareTo$1: function(_, other) {
  58935. var result;
  58936. if (!(other instanceof Y._FileSpan))
  58937. return this.super$SourceSpanMixin$compareTo(0, other);
  58938. result = C.JSInt_methods.compareTo$1(this._file$_start, other._file$_start);
  58939. return result === 0 ? C.JSInt_methods.compareTo$1(this._end, other._end) : result;
  58940. },
  58941. $eq: function(_, other) {
  58942. var _this = this;
  58943. if (other == null)
  58944. return false;
  58945. if (!type$.legacy_FileSpan._is(other))
  58946. return _this.super$SourceSpanMixin$$eq(0, other);
  58947. return _this._file$_start === other._file$_start && _this._end === other._end && J.$eq$(_this.file.url, other.file.url);
  58948. },
  58949. get$hashCode: function(_) {
  58950. return Y.SourceSpanMixin.prototype.get$hashCode.call(this, this);
  58951. },
  58952. expand$1: function(_, other) {
  58953. var start, _this = this,
  58954. t1 = _this.file;
  58955. if (!J.$eq$(t1.url, other.file.url))
  58956. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(_this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  58957. start = Math.min(_this._file$_start, other._file$_start);
  58958. return Y._FileSpan$(t1, start, Math.max(_this._end, other._end));
  58959. },
  58960. $isFileSpan: 1,
  58961. $isSourceSpanWithContext: 1
  58962. };
  58963. U.Highlighter.prototype = {
  58964. highlight$0: function() {
  58965. var t2, highlightsByColumn, t3, t4, i, line, lastLine, t5, t6, t7, t8, t9, cur, t10, index, primary, _i, highlight, _this = this,
  58966. t1 = _this._lines;
  58967. _this._writeFileStart$1(C.JSArray_methods.get$first(t1).url);
  58968. t2 = new Array(_this._maxMultilineSpans);
  58969. t2.fixed$length = Array;
  58970. highlightsByColumn = H.setRuntimeTypeInfo(t2, type$.JSArray_legacy__Highlight);
  58971. for (t2 = _this._highlighter$_buffer, t3 = highlightsByColumn.length !== 0, t4 = _this._primaryColor, i = 0; i < t1.length; ++i) {
  58972. line = t1[i];
  58973. if (i > 0) {
  58974. lastLine = t1[i - 1];
  58975. t5 = lastLine.url;
  58976. t6 = line.url;
  58977. if (!J.$eq$(t5, t6)) {
  58978. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  58979. t2._contents += "\n";
  58980. _this._writeFileStart$1(t6);
  58981. } else if (lastLine.number + 1 !== line.number) {
  58982. _this._writeSidebar$1$text("...");
  58983. t2._contents += "\n";
  58984. }
  58985. }
  58986. for (t5 = line.highlights, t6 = new H.ReversedListIterable(t5, H._arrayInstanceType(t5)._eval$1("ReversedListIterable<1>")), t6 = new H.ListIterator(t6, t6.get$length(t6)), t7 = line.number, t8 = line.text, t9 = J.getInterceptor$s(t8); t6.moveNext$0();) {
  58987. cur = t6.__internal$_current;
  58988. t10 = cur.span;
  58989. if (t10.get$start(t10).get$line() != t10.get$end(t10).get$line() && t10.get$start(t10).get$line() === t7 && _this._isOnlyWhitespace$1(t9.substring$2(t8, 0, t10.get$start(t10).get$column()))) {
  58990. index = C.JSArray_methods.indexOf$1(highlightsByColumn, null);
  58991. if (index < 0)
  58992. H.throwExpression(P.ArgumentError$(H.S(highlightsByColumn) + " contains no null elements."));
  58993. highlightsByColumn[index] = cur;
  58994. }
  58995. }
  58996. _this._writeSidebar$1$line(t7);
  58997. t2._contents += " ";
  58998. _this._writeMultilineHighlights$2(line, highlightsByColumn);
  58999. if (t3)
  59000. t2._contents += " ";
  59001. primary = C.JSArray_methods.firstWhere$2$orElse(t5, new U.Highlighter_highlight_closure(), new U.Highlighter_highlight_closure0());
  59002. t6 = primary != null;
  59003. if (t6) {
  59004. t9 = primary.span;
  59005. t10 = t9.get$start(t9).get$line() === t7 ? t9.get$start(t9).get$column() : 0;
  59006. _this._writeHighlightedText$4$color(t8, t10, t9.get$end(t9).get$line() === t7 ? t9.get$end(t9).get$column() : t8.length, t4);
  59007. } else
  59008. _this._writeText$1(t8);
  59009. t2._contents += "\n";
  59010. if (t6)
  59011. _this._writeIndicator$3(line, primary, highlightsByColumn);
  59012. for (t6 = t5.length, _i = 0; _i < t5.length; t5.length === t6 || (0, H.throwConcurrentModificationError)(t5), ++_i) {
  59013. highlight = t5[_i];
  59014. if (highlight.isPrimary)
  59015. continue;
  59016. _this._writeIndicator$3(line, highlight, highlightsByColumn);
  59017. }
  59018. }
  59019. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  59020. t1 = t2._contents;
  59021. return t1.charCodeAt(0) == 0 ? t1 : t1;
  59022. },
  59023. _writeFileStart$1: function(url) {
  59024. var _this = this,
  59025. t1 = !_this._multipleFiles || url == null,
  59026. t2 = $._glyphs;
  59027. if (t1)
  59028. _this._writeSidebar$1$end(t2.get$downEnd());
  59029. else {
  59030. _this._writeSidebar$1$end(t2.get$topLeftCorner());
  59031. _this._colorize$2$color(new U.Highlighter__writeFileStart_closure(_this), "\x1b[34m");
  59032. _this._highlighter$_buffer._contents += " " + H.S($.$get$context().prettyUri$1(url));
  59033. }
  59034. _this._highlighter$_buffer._contents += "\n";
  59035. },
  59036. _writeMultilineHighlights$3$current: function(line, highlightsByColumn, current) {
  59037. var t1, currentColor, t2, t3, t4, t5, foundCurrent, _i, highlight, t6, t7, startLine, endLine, _this = this, _null = null, _box_0 = {};
  59038. _box_0.openedOnThisLine = false;
  59039. _box_0.openedOnThisLineColor = null;
  59040. t1 = current == null;
  59041. if (t1)
  59042. currentColor = _null;
  59043. else
  59044. currentColor = current.isPrimary ? _this._primaryColor : _this._secondaryColor;
  59045. for (t2 = highlightsByColumn.length, t3 = _this._secondaryColor, t1 = !t1, t4 = _this._primaryColor, t5 = _this._highlighter$_buffer, foundCurrent = false, _i = 0; _i < t2; ++_i) {
  59046. highlight = highlightsByColumn[_i];
  59047. t6 = highlight == null;
  59048. t7 = t6 ? _null : highlight.span;
  59049. t7 = t7 == null ? _null : t7.get$start(t7);
  59050. startLine = t7 == null ? _null : t7.get$line();
  59051. t7 = t6 ? _null : highlight.span;
  59052. t7 = t7 == null ? _null : t7.get$end(t7);
  59053. endLine = t7 == null ? _null : t7.get$line();
  59054. if (t1 && highlight === current) {
  59055. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure(_this, startLine, line), currentColor);
  59056. foundCurrent = true;
  59057. } else if (foundCurrent)
  59058. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure0(_this, highlight), currentColor);
  59059. else if (t6)
  59060. if (_box_0.openedOnThisLine)
  59061. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure1(_this), _box_0.openedOnThisLineColor);
  59062. else
  59063. t5._contents += " ";
  59064. else {
  59065. t6 = highlight.isPrimary ? t4 : t3;
  59066. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure2(_box_0, _this, current, startLine, line, highlight, endLine), t6);
  59067. }
  59068. }
  59069. },
  59070. _writeMultilineHighlights$2: function(line, highlightsByColumn) {
  59071. return this._writeMultilineHighlights$3$current(line, highlightsByColumn, null);
  59072. },
  59073. _writeHighlightedText$4$color: function(text, startColumn, endColumn, color) {
  59074. var _this = this;
  59075. _this._writeText$1(J.getInterceptor$s(text).substring$2(text, 0, startColumn));
  59076. _this._colorize$2$color(new U.Highlighter__writeHighlightedText_closure(_this, text, startColumn, endColumn), color);
  59077. _this._writeText$1(C.JSString_methods.substring$2(text, endColumn, text.length));
  59078. },
  59079. _writeIndicator$3: function(line, highlight, highlightsByColumn) {
  59080. var t2, coversWholeLine, _this = this,
  59081. color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor,
  59082. t1 = highlight.span;
  59083. if (t1.get$start(t1).get$line() == t1.get$end(t1).get$line()) {
  59084. _this._writeSidebar$0();
  59085. t1 = _this._highlighter$_buffer;
  59086. t1._contents += " ";
  59087. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  59088. if (highlightsByColumn.length !== 0)
  59089. t1._contents += " ";
  59090. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure(_this, line, highlight), color);
  59091. t1._contents += "\n";
  59092. } else {
  59093. t2 = line.number;
  59094. if (t1.get$start(t1).get$line() === t2) {
  59095. if (C.JSArray_methods.contains$1(highlightsByColumn, highlight))
  59096. return;
  59097. B.replaceFirstNull(highlightsByColumn, highlight);
  59098. _this._writeSidebar$0();
  59099. t1 = _this._highlighter$_buffer;
  59100. t1._contents += " ";
  59101. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  59102. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure0(_this, line, highlight), color);
  59103. t1._contents += "\n";
  59104. } else if (t1.get$end(t1).get$line() === t2) {
  59105. coversWholeLine = t1.get$end(t1).get$column() === line.text.length;
  59106. if (coversWholeLine && highlight.label == null) {
  59107. B.replaceWithNull(highlightsByColumn, highlight);
  59108. return;
  59109. }
  59110. _this._writeSidebar$0();
  59111. t1 = _this._highlighter$_buffer;
  59112. t1._contents += " ";
  59113. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  59114. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure1(_this, coversWholeLine, line, highlight), color);
  59115. t1._contents += "\n";
  59116. B.replaceWithNull(highlightsByColumn, highlight);
  59117. }
  59118. }
  59119. },
  59120. _writeArrow$3$beginning: function(line, column, beginning) {
  59121. var t2,
  59122. t1 = beginning ? 0 : 1,
  59123. tabs = this._countTabs$1(J.substring$2$s(line.text, 0, column + t1));
  59124. t1 = this._highlighter$_buffer;
  59125. t2 = t1._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 1 + column + tabs * 3);
  59126. t1._contents = t2 + "^";
  59127. },
  59128. _writeArrow$2: function(line, column) {
  59129. return this._writeArrow$3$beginning(line, column, true);
  59130. },
  59131. _writeLabel$1: function(label) {
  59132. if (label != null)
  59133. this._highlighter$_buffer._contents += " " + label;
  59134. },
  59135. _writeText$1: function(text) {
  59136. var t1, t2, cur;
  59137. text.toString;
  59138. t1 = new H.CodeUnits(text);
  59139. t1 = new H.ListIterator(t1, t1.get$length(t1));
  59140. t2 = this._highlighter$_buffer;
  59141. for (; t1.moveNext$0();) {
  59142. cur = t1.__internal$_current;
  59143. if (cur === 9)
  59144. t2._contents += C.JSString_methods.$mul(" ", 4);
  59145. else
  59146. t2._contents += H.Primitives_stringFromCharCode(cur);
  59147. }
  59148. },
  59149. _writeSidebar$3$end$line$text: function(end, line, text) {
  59150. var t1 = {};
  59151. t1.text = text;
  59152. if (line != null)
  59153. t1.text = C.JSInt_methods.toString$0(line + 1);
  59154. this._colorize$2$color(new U.Highlighter__writeSidebar_closure(t1, this, end), "\x1b[34m");
  59155. },
  59156. _writeSidebar$1$end: function(end) {
  59157. return this._writeSidebar$3$end$line$text(end, null, null);
  59158. },
  59159. _writeSidebar$1$text: function(text) {
  59160. return this._writeSidebar$3$end$line$text(null, null, text);
  59161. },
  59162. _writeSidebar$1$line: function(line) {
  59163. return this._writeSidebar$3$end$line$text(null, line, null);
  59164. },
  59165. _writeSidebar$0: function() {
  59166. return this._writeSidebar$3$end$line$text(null, null, null);
  59167. },
  59168. _countTabs$1: function(text) {
  59169. var t1, count, cur;
  59170. for (t1 = new H.CodeUnits(text), t1 = new H.ListIterator(t1, t1.get$length(t1)), count = 0; t1.moveNext$0();) {
  59171. cur = t1.__internal$_current;
  59172. if (cur === 9)
  59173. ++count;
  59174. }
  59175. return count;
  59176. },
  59177. _isOnlyWhitespace$1: function(text) {
  59178. var t1, cur;
  59179. for (t1 = new H.CodeUnits(text), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  59180. cur = t1.__internal$_current;
  59181. if (cur !== 32 && cur !== 9)
  59182. return false;
  59183. }
  59184. return true;
  59185. },
  59186. _colorize$2$color: function(callback, color) {
  59187. var t1 = this._primaryColor != null;
  59188. if (t1 && color != null)
  59189. this._highlighter$_buffer._contents += color;
  59190. callback.call$0();
  59191. if (t1 && color != null)
  59192. this._highlighter$_buffer._contents += "\x1b[0m";
  59193. }
  59194. };
  59195. U.Highlighter_closure.prototype = {
  59196. call$0: function() {
  59197. var t1 = this.color,
  59198. t2 = J.getInterceptor$(t1);
  59199. if (t2.$eq(t1, true))
  59200. return "\x1b[31m";
  59201. if (t2.$eq(t1, false))
  59202. return null;
  59203. return H._asStringS(t1);
  59204. },
  59205. $signature: 9
  59206. };
  59207. U.Highlighter$__closure.prototype = {
  59208. call$1: function(line) {
  59209. var t1 = line.highlights;
  59210. t1 = new H.WhereIterable(t1, new U.Highlighter$___closure(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  59211. return t1.get$length(t1);
  59212. }
  59213. };
  59214. U.Highlighter$___closure.prototype = {
  59215. call$1: function(highlight) {
  59216. var t1 = highlight.span;
  59217. return t1.get$start(t1).get$line() != t1.get$end(t1).get$line();
  59218. }
  59219. };
  59220. U.Highlighter$__closure0.prototype = {
  59221. call$1: function(line) {
  59222. return line.url;
  59223. }
  59224. };
  59225. U.Highlighter__collateLines_closure.prototype = {
  59226. call$1: function(highlight) {
  59227. return highlight.get$span().get$sourceUrl();
  59228. },
  59229. $signature: 30
  59230. };
  59231. U.Highlighter__collateLines_closure0.prototype = {
  59232. call$2: function(highlight1, highlight2) {
  59233. return highlight1.span.compareTo$1(0, highlight2.span);
  59234. }
  59235. };
  59236. U.Highlighter__collateLines_closure1.prototype = {
  59237. call$1: function(highlightsForFile) {
  59238. var t1, t2, t3, t4, context, t5, linesBeforeSpan, url, lineNumber, _i, line, activeHighlights, highlightIndex, oldHighlightLength,
  59239. lines = H.setRuntimeTypeInfo([], type$.JSArray_legacy__Line);
  59240. for (t1 = J.getInterceptor$ax(highlightsForFile), t2 = t1.get$iterator(highlightsForFile), t3 = type$.JSArray_legacy__Highlight; t2.moveNext$0();) {
  59241. t4 = t2.get$current(t2).span;
  59242. context = t4.get$context(t4);
  59243. t5 = C.JSString_methods.allMatches$1("\n", C.JSString_methods.substring$2(context, 0, B.findLineStart(context, t4.get$text(), t4.get$start(t4).get$column())));
  59244. linesBeforeSpan = t5.get$length(t5);
  59245. url = t4.get$sourceUrl();
  59246. lineNumber = t4.get$start(t4).get$line() - linesBeforeSpan;
  59247. for (t4 = context.split("\n"), t5 = t4.length, _i = 0; _i < t5; ++_i) {
  59248. line = t4[_i];
  59249. if (lines.length === 0 || lineNumber > C.JSArray_methods.get$last(lines).number)
  59250. lines.push(new U._Line(line, lineNumber, url, H.setRuntimeTypeInfo([], t3)));
  59251. ++lineNumber;
  59252. }
  59253. }
  59254. activeHighlights = H.setRuntimeTypeInfo([], t3);
  59255. for (t2 = lines.length, highlightIndex = 0, _i = 0; _i < lines.length; lines.length === t2 || (0, H.throwConcurrentModificationError)(lines), ++_i) {
  59256. line = lines[_i];
  59257. if (!!activeHighlights.fixed$length)
  59258. H.throwExpression(P.UnsupportedError$("removeWhere"));
  59259. C.JSArray_methods._removeWhere$2(activeHighlights, new U.Highlighter__collateLines__closure(line), true);
  59260. oldHighlightLength = activeHighlights.length;
  59261. for (t3 = t1.skip$1(highlightsForFile, highlightIndex), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  59262. t4 = t3.get$current(t3);
  59263. t5 = t4.span;
  59264. if (t5.get$start(t5).get$line() > line.number)
  59265. break;
  59266. if (!J.$eq$(t5.get$sourceUrl(), line.url))
  59267. break;
  59268. activeHighlights.push(t4);
  59269. }
  59270. highlightIndex += activeHighlights.length - oldHighlightLength;
  59271. C.JSArray_methods.addAll$1(line.highlights, activeHighlights);
  59272. }
  59273. return lines;
  59274. }
  59275. };
  59276. U.Highlighter__collateLines__closure.prototype = {
  59277. call$1: function(highlight) {
  59278. var t1 = highlight.span,
  59279. t2 = this.line;
  59280. return !J.$eq$(t1.get$sourceUrl(), t2.url) || t1.get$end(t1).get$line() < t2.number;
  59281. }
  59282. };
  59283. U.Highlighter_highlight_closure.prototype = {
  59284. call$1: function(highlight) {
  59285. return highlight.isPrimary;
  59286. }
  59287. };
  59288. U.Highlighter_highlight_closure0.prototype = {
  59289. call$0: function() {
  59290. return null;
  59291. },
  59292. $signature: 0
  59293. };
  59294. U.Highlighter__writeFileStart_closure.prototype = {
  59295. call$0: function() {
  59296. this.$this._highlighter$_buffer._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 2) + ">";
  59297. return null;
  59298. },
  59299. $signature: 1
  59300. };
  59301. U.Highlighter__writeMultilineHighlights_closure.prototype = {
  59302. call$0: function() {
  59303. var t1 = $._glyphs;
  59304. t1 = this.startLine === this.line.number ? t1.get$topLeftCorner() : t1.get$bottomLeftCorner();
  59305. this.$this._highlighter$_buffer._contents += t1;
  59306. },
  59307. $signature: 0
  59308. };
  59309. U.Highlighter__writeMultilineHighlights_closure0.prototype = {
  59310. call$0: function() {
  59311. var t1 = $._glyphs;
  59312. t1 = this.highlight == null ? t1.get$horizontalLine() : t1.get$cross();
  59313. this.$this._highlighter$_buffer._contents += t1;
  59314. },
  59315. $signature: 0
  59316. };
  59317. U.Highlighter__writeMultilineHighlights_closure1.prototype = {
  59318. call$0: function() {
  59319. this.$this._highlighter$_buffer._contents += $._glyphs.get$horizontalLine();
  59320. return null;
  59321. },
  59322. $signature: 1
  59323. };
  59324. U.Highlighter__writeMultilineHighlights_closure2.prototype = {
  59325. call$0: function() {
  59326. var _this = this,
  59327. t1 = _this._box_0,
  59328. t2 = t1.openedOnThisLine,
  59329. t3 = $._glyphs,
  59330. vertical = t2 ? t3.get$cross() : t3.get$verticalLine();
  59331. if (_this.current != null)
  59332. _this.$this._highlighter$_buffer._contents += vertical;
  59333. else {
  59334. t2 = _this.line;
  59335. t3 = t2.number;
  59336. if (_this.startLine === t3) {
  59337. t2 = _this.$this;
  59338. t2._colorize$2$color(new U.Highlighter__writeMultilineHighlights__closure(t1, t2), t1.openedOnThisLineColor);
  59339. t1.openedOnThisLine = true;
  59340. if (t1.openedOnThisLineColor == null)
  59341. t1.openedOnThisLineColor = _this.highlight.isPrimary ? t2._primaryColor : t2._secondaryColor;
  59342. } else {
  59343. if (_this.endLine === t3) {
  59344. t3 = _this.highlight.span;
  59345. t2 = t3.get$end(t3).get$column() === t2.text.length;
  59346. } else
  59347. t2 = false;
  59348. t3 = _this.$this;
  59349. if (t2) {
  59350. t1 = _this.highlight.label == null ? $._glyphs.glyphOrAscii$2("\u2514", "\\") : vertical;
  59351. t3._highlighter$_buffer._contents += t1;
  59352. } else
  59353. t3._colorize$2$color(new U.Highlighter__writeMultilineHighlights__closure0(t3, vertical), t1.openedOnThisLineColor);
  59354. }
  59355. }
  59356. },
  59357. $signature: 0
  59358. };
  59359. U.Highlighter__writeMultilineHighlights__closure.prototype = {
  59360. call$0: function() {
  59361. var t1 = this._box_0.openedOnThisLine ? "\u252c" : "\u250c";
  59362. this.$this._highlighter$_buffer._contents += $._glyphs.glyphOrAscii$2(t1, "/");
  59363. },
  59364. $signature: 0
  59365. };
  59366. U.Highlighter__writeMultilineHighlights__closure0.prototype = {
  59367. call$0: function() {
  59368. this.$this._highlighter$_buffer._contents += this.vertical;
  59369. },
  59370. $signature: 0
  59371. };
  59372. U.Highlighter__writeHighlightedText_closure.prototype = {
  59373. call$0: function() {
  59374. var _this = this;
  59375. return _this.$this._writeText$1(C.JSString_methods.substring$2(_this.text, _this.startColumn, _this.endColumn));
  59376. },
  59377. $signature: 1
  59378. };
  59379. U.Highlighter__writeIndicator_closure.prototype = {
  59380. call$0: function() {
  59381. var tabsBefore, tabsInside,
  59382. t1 = this.$this,
  59383. t2 = this.highlight,
  59384. t3 = t2.span,
  59385. t4 = t2.isPrimary ? "^" : $._glyphs.get$horizontalLineBold(),
  59386. startColumn = t3.get$start(t3).get$column(),
  59387. endColumn = t3.get$end(t3).get$column();
  59388. t3 = this.line.text;
  59389. tabsBefore = t1._countTabs$1(J.getInterceptor$s(t3).substring$2(t3, 0, startColumn));
  59390. tabsInside = t1._countTabs$1(C.JSString_methods.substring$2(t3, startColumn, endColumn));
  59391. startColumn += tabsBefore * 3;
  59392. t3 = t1._highlighter$_buffer;
  59393. t3._contents += C.JSString_methods.$mul(" ", startColumn);
  59394. t3._contents += C.JSString_methods.$mul(t4, Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1));
  59395. t1._writeLabel$1(t2.label);
  59396. },
  59397. $signature: 0
  59398. };
  59399. U.Highlighter__writeIndicator_closure0.prototype = {
  59400. call$0: function() {
  59401. var t1 = this.highlight.span;
  59402. return this.$this._writeArrow$2(this.line, t1.get$start(t1).get$column());
  59403. },
  59404. $signature: 1
  59405. };
  59406. U.Highlighter__writeIndicator_closure1.prototype = {
  59407. call$0: function() {
  59408. var t2, _this = this,
  59409. t1 = _this.$this;
  59410. if (_this.coversWholeLine)
  59411. t1._highlighter$_buffer._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 3);
  59412. else {
  59413. t2 = _this.highlight.span;
  59414. t1._writeArrow$3$beginning(_this.line, Math.max(t2.get$end(t2).get$column() - 1, 0), false);
  59415. }
  59416. t1._writeLabel$1(_this.highlight.label);
  59417. },
  59418. $signature: 0
  59419. };
  59420. U.Highlighter__writeSidebar_closure.prototype = {
  59421. call$0: function() {
  59422. var t1 = this.$this,
  59423. t2 = t1._highlighter$_buffer,
  59424. t3 = this._box_0.text;
  59425. if (t3 == null)
  59426. t3 = "";
  59427. t2._contents += C.JSString_methods.padRight$1(t3, t1._paddingBeforeSidebar);
  59428. t1 = this.end;
  59429. t2._contents += t1 == null ? $._glyphs.get$verticalLine() : t1;
  59430. },
  59431. $signature: 0
  59432. };
  59433. U._Highlight.prototype = {
  59434. toString$0: function(_) {
  59435. var t1 = this.isPrimary ? "primary " : "",
  59436. t2 = this.span;
  59437. t2 = t1 + (H.S(t2.get$start(t2).get$line()) + ":" + t2.get$start(t2).get$column() + "-" + H.S(t2.get$end(t2).get$line()) + ":" + t2.get$end(t2).get$column());
  59438. t1 = this.label;
  59439. t1 = t1 != null ? t2 + (" (" + t1 + ")") : t2;
  59440. return t1.charCodeAt(0) == 0 ? t1 : t1;
  59441. },
  59442. get$span: function() {
  59443. return this.span;
  59444. }
  59445. };
  59446. U._Highlight_closure.prototype = {
  59447. call$0: function() {
  59448. var t2, t3, t4, t5,
  59449. t1 = this.span;
  59450. if (!(type$.legacy_SourceSpanWithContext._is(t1) && B.findLineStart(t1.get$context(t1), t1.get$text(), t1.get$start(t1).get$column()) != null)) {
  59451. t2 = V.SourceLocation$(t1.get$start(t1).get$offset(), 0, 0, t1.get$sourceUrl());
  59452. t3 = t1.get$end(t1).get$offset();
  59453. t4 = t1.get$sourceUrl();
  59454. t5 = B.countCodeUnits(t1.get$text(), 10);
  59455. t1 = X.SourceSpanWithContext$(t2, V.SourceLocation$(t3, U._Highlight__lastLineLength(t1.get$text()), t5, t4), t1.get$text(), t1.get$text());
  59456. }
  59457. return U._Highlight__normalizeEndOfLine(U._Highlight__normalizeTrailingNewline(U._Highlight__normalizeNewlines(t1)));
  59458. },
  59459. $signature: 104
  59460. };
  59461. U._Line.prototype = {
  59462. toString$0: function(_) {
  59463. return "" + this.number + ': "' + H.S(this.text) + '" (' + C.JSArray_methods.join$1(this.highlights, ", ") + ")";
  59464. }
  59465. };
  59466. V.SourceLocation.prototype = {
  59467. distance$1: function(other) {
  59468. var t1 = this.sourceUrl;
  59469. if (!J.$eq$(t1, other.get$sourceUrl()))
  59470. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t1) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  59471. return Math.abs(this.offset - other.get$offset());
  59472. },
  59473. compareTo$1: function(_, other) {
  59474. var t1 = this.sourceUrl;
  59475. if (!J.$eq$(t1, other.get$sourceUrl()))
  59476. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t1) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  59477. return this.offset - other.get$offset();
  59478. },
  59479. $eq: function(_, other) {
  59480. if (other == null)
  59481. return false;
  59482. return type$.legacy_SourceLocation._is(other) && J.$eq$(this.sourceUrl, other.get$sourceUrl()) && this.offset === other.get$offset();
  59483. },
  59484. get$hashCode: function(_) {
  59485. return J.get$hashCode$(this.sourceUrl) + this.offset;
  59486. },
  59487. toString$0: function(_) {
  59488. var _this = this,
  59489. t1 = "<" + H.getRuntimeType(_this).toString$0(0) + ": " + _this.offset + " ",
  59490. source = _this.sourceUrl;
  59491. return t1 + (H.S(source == null ? "unknown source" : source) + ":" + (_this.line + 1) + ":" + (_this.column + 1)) + ">";
  59492. },
  59493. $isComparable: 1,
  59494. get$sourceUrl: function() {
  59495. return this.sourceUrl;
  59496. },
  59497. get$offset: function() {
  59498. return this.offset;
  59499. },
  59500. get$line: function() {
  59501. return this.line;
  59502. },
  59503. get$column: function() {
  59504. return this.column;
  59505. }
  59506. };
  59507. D.SourceLocationMixin.prototype = {
  59508. distance$1: function(other) {
  59509. if (!J.$eq$(this.file.url, other.get$sourceUrl()))
  59510. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  59511. return Math.abs(this.offset - other.get$offset());
  59512. },
  59513. compareTo$1: function(_, other) {
  59514. if (!J.$eq$(this.file.url, other.get$sourceUrl()))
  59515. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
  59516. return this.offset - other.get$offset();
  59517. },
  59518. $eq: function(_, other) {
  59519. if (other == null)
  59520. return false;
  59521. return type$.legacy_SourceLocation._is(other) && J.$eq$(this.file.url, other.get$sourceUrl()) && this.offset === other.get$offset();
  59522. },
  59523. get$hashCode: function(_) {
  59524. return J.get$hashCode$(this.file.url) + this.offset;
  59525. },
  59526. toString$0: function(_) {
  59527. var t1 = this.offset,
  59528. t2 = "<" + H.getRuntimeType(this).toString$0(0) + ": " + t1 + " ",
  59529. t3 = this.file,
  59530. source = t3.url;
  59531. return t2 + (H.S(source == null ? "unknown source" : source) + ":" + (t3.getLine$1(t1) + 1) + ":" + (t3.getColumn$1(t1) + 1)) + ">";
  59532. },
  59533. $isComparable: 1,
  59534. $isSourceLocation: 1
  59535. };
  59536. V.SourceSpan.prototype = {$isComparable: 1};
  59537. V.SourceSpanBase.prototype = {
  59538. SourceSpanBase$3: function(start, end, text) {
  59539. var t3,
  59540. t1 = this.end,
  59541. t2 = this.start;
  59542. if (!J.$eq$(t1.get$sourceUrl(), t2.get$sourceUrl()))
  59543. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t2.get$sourceUrl()) + '" and "' + H.S(t1.get$sourceUrl()) + "\" don't match."));
  59544. else if (t1.get$offset() < t2.get$offset())
  59545. throw H.wrapException(P.ArgumentError$("End " + t1.toString$0(0) + " must come after start " + t2.toString$0(0) + "."));
  59546. else {
  59547. t3 = this.text;
  59548. if (t3.length !== t2.distance$1(t1))
  59549. throw H.wrapException(P.ArgumentError$('Text "' + t3 + '" must be ' + t2.distance$1(t1) + " characters long."));
  59550. }
  59551. },
  59552. get$start: function(receiver) {
  59553. return this.start;
  59554. },
  59555. get$end: function(receiver) {
  59556. return this.end;
  59557. },
  59558. get$text: function() {
  59559. return this.text;
  59560. }
  59561. };
  59562. G.SourceSpanException.prototype = {
  59563. get$message: function(_) {
  59564. return this._span_exception$_message;
  59565. },
  59566. get$span: function() {
  59567. return this._span;
  59568. },
  59569. toString$1$color: function(_, color) {
  59570. var _this = this;
  59571. if (_this.get$span() == null)
  59572. return _this._span_exception$_message;
  59573. return "Error on " + _this.get$span().message$2$color(0, _this._span_exception$_message, color);
  59574. },
  59575. toString$0: function($receiver) {
  59576. return this.toString$1$color($receiver, null);
  59577. },
  59578. $isException: 1
  59579. };
  59580. G.SourceSpanFormatException.prototype = {$isFormatException: 1,
  59581. get$source: function() {
  59582. return this.source;
  59583. }
  59584. };
  59585. Y.SourceSpanMixin.prototype = {
  59586. get$sourceUrl: function() {
  59587. return this.get$start(this).get$sourceUrl();
  59588. },
  59589. get$length: function(_) {
  59590. var _this = this;
  59591. return _this.get$end(_this).get$offset() - _this.get$start(_this).get$offset();
  59592. },
  59593. compareTo$1: function(_, other) {
  59594. var _this = this,
  59595. result = _this.get$start(_this).compareTo$1(0, other.get$start(other));
  59596. return result === 0 ? _this.get$end(_this).compareTo$1(0, other.get$end(other)) : result;
  59597. },
  59598. message$2$color: function(_, message, color) {
  59599. var t2, highlight, _this = this,
  59600. t1 = "line " + (_this.get$start(_this).get$line() + 1) + ", column " + (_this.get$start(_this).get$column() + 1);
  59601. if (_this.get$sourceUrl() != null) {
  59602. t2 = _this.get$sourceUrl();
  59603. t2 = t1 + (" of " + H.S($.$get$context().prettyUri$1(t2)));
  59604. t1 = t2;
  59605. }
  59606. t1 += ": " + H.S(message);
  59607. highlight = _this.highlight$1$color(color);
  59608. if (highlight.length !== 0)
  59609. t1 = t1 + "\n" + highlight;
  59610. return t1.charCodeAt(0) == 0 ? t1 : t1;
  59611. },
  59612. message$1: function($receiver, message) {
  59613. return this.message$2$color($receiver, message, null);
  59614. },
  59615. highlight$1$color: function(color) {
  59616. var _this = this;
  59617. if (!type$.legacy_SourceSpanWithContext._is(_this) && _this.get$length(_this) === 0)
  59618. return "";
  59619. return U.Highlighter$(_this, color).highlight$0();
  59620. },
  59621. $eq: function(_, other) {
  59622. var _this = this;
  59623. if (other == null)
  59624. return false;
  59625. return type$.legacy_SourceSpan._is(other) && _this.get$start(_this).$eq(0, other.get$start(other)) && _this.get$end(_this).$eq(0, other.get$end(other));
  59626. },
  59627. get$hashCode: function(_) {
  59628. var t2, _this = this,
  59629. t1 = _this.get$start(_this);
  59630. t1 = t1.get$hashCode(t1);
  59631. t2 = _this.get$end(_this);
  59632. return t1 + 31 * t2.get$hashCode(t2);
  59633. },
  59634. toString$0: function(_) {
  59635. var _this = this;
  59636. return "<" + H.getRuntimeType(_this).toString$0(0) + ": from " + _this.get$start(_this).toString$0(0) + " to " + _this.get$end(_this).toString$0(0) + ' "' + _this.get$text() + '">';
  59637. },
  59638. $isComparable: 1,
  59639. $isSourceSpan: 1
  59640. };
  59641. X.SourceSpanWithContext.prototype = {
  59642. get$context: function(_) {
  59643. return this._context;
  59644. }
  59645. };
  59646. U.Chain.prototype = {
  59647. toTrace$0: function() {
  59648. var t1 = this.traces;
  59649. return new Y.Trace(P.List_List$unmodifiable(new H.ExpandIterable(t1, new U.Chain_toTrace_closure(), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,Frame*>")), type$.legacy_Frame), new P._StringStackTrace(null));
  59650. },
  59651. toString$0: function(_) {
  59652. var t1 = this.traces,
  59653. t2 = H._arrayInstanceType(t1);
  59654. return new H.MappedListIterable(t1, new U.Chain_toString_closure(new H.MappedListIterable(t1, new U.Chain_toString_closure0(), t2._eval$1("MappedListIterable<1,int*>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.legacy_int))), t2._eval$1("MappedListIterable<1,String*>")).join$1(0, string$.x3d_____);
  59655. },
  59656. $isStackTrace: 1
  59657. };
  59658. U.Chain_Chain$parse_closure.prototype = {
  59659. call$1: function(trace) {
  59660. return new Y.Trace(P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.legacy_Frame), new P._StringStackTrace(trace));
  59661. }
  59662. };
  59663. U.Chain_Chain$parse_closure0.prototype = {
  59664. call$1: function(trace) {
  59665. return Y.Trace$parseFriendly(trace);
  59666. }
  59667. };
  59668. U.Chain_toTrace_closure.prototype = {
  59669. call$1: function(trace) {
  59670. return trace.get$frames();
  59671. }
  59672. };
  59673. U.Chain_toString_closure0.prototype = {
  59674. call$1: function(trace) {
  59675. var t1 = trace.get$frames();
  59676. return new H.MappedListIterable(t1, new U.Chain_toString__closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int*>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.legacy_int));
  59677. }
  59678. };
  59679. U.Chain_toString__closure0.prototype = {
  59680. call$1: function(frame) {
  59681. return frame.get$location().length;
  59682. }
  59683. };
  59684. U.Chain_toString_closure.prototype = {
  59685. call$1: function(trace) {
  59686. var t1 = trace.get$frames();
  59687. return new H.MappedListIterable(t1, new U.Chain_toString__closure(this.longest), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  59688. }
  59689. };
  59690. U.Chain_toString__closure.prototype = {
  59691. call$1: function(frame) {
  59692. return J.padRight$1$s(frame.get$location(), this.longest) + " " + H.S(frame.get$member()) + "\n";
  59693. }
  59694. };
  59695. A.Frame.prototype = {
  59696. get$isCore: function() {
  59697. return this.uri.get$scheme() === "dart";
  59698. },
  59699. get$library: function() {
  59700. var t1 = this.uri;
  59701. if (t1.get$scheme() === "data")
  59702. return "data:...";
  59703. return $.$get$context().prettyUri$1(t1);
  59704. },
  59705. get$$package: function() {
  59706. var t1 = this.uri;
  59707. if (t1.get$scheme() !== "package")
  59708. return null;
  59709. return C.JSArray_methods.get$first(t1.get$path(t1).split("/"));
  59710. },
  59711. get$location: function() {
  59712. var t2, _this = this,
  59713. t1 = _this.line;
  59714. if (t1 == null)
  59715. return _this.get$library();
  59716. t2 = _this.column;
  59717. if (t2 == null)
  59718. return H.S(_this.get$library()) + " " + H.S(t1);
  59719. return H.S(_this.get$library()) + " " + H.S(t1) + ":" + H.S(t2);
  59720. },
  59721. toString$0: function(_) {
  59722. return H.S(this.get$location()) + " in " + H.S(this.member);
  59723. },
  59724. get$uri: function() {
  59725. return this.uri;
  59726. },
  59727. get$line: function() {
  59728. return this.line;
  59729. },
  59730. get$column: function() {
  59731. return this.column;
  59732. },
  59733. get$member: function() {
  59734. return this.member;
  59735. }
  59736. };
  59737. A.Frame_Frame$parseVM_closure.prototype = {
  59738. call$0: function() {
  59739. var match, t2, t3, member, uri, lineAndColumn, line, _null = null,
  59740. t1 = this.frame;
  59741. if (t1 === "...")
  59742. return new A.Frame(P._Uri__Uri(_null, _null, _null, _null), _null, _null, "...");
  59743. match = $.$get$_vmFrame().firstMatch$1(t1);
  59744. if (match == null)
  59745. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
  59746. t1 = match._match;
  59747. t2 = t1[1];
  59748. t3 = $.$get$_asyncBody();
  59749. t2.toString;
  59750. t2 = H.stringReplaceAllUnchecked(t2, t3, "<async>");
  59751. member = H.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>");
  59752. t2 = t1[2];
  59753. uri = J.startsWith$1$s(t2, "<data:") ? P.Uri_Uri$dataFromString("", _null, _null) : P.Uri_parse(t2);
  59754. lineAndColumn = t1[3].split(":");
  59755. t1 = lineAndColumn.length;
  59756. line = t1 > 1 ? P.int_parse(lineAndColumn[1], _null) : _null;
  59757. return new A.Frame(uri, line, t1 > 2 ? P.int_parse(lineAndColumn[2], _null) : _null, member);
  59758. },
  59759. $signature: 39
  59760. };
  59761. A.Frame_Frame$parseV8_closure.prototype = {
  59762. call$0: function() {
  59763. var t2, t3, _s4_ = "<fn>",
  59764. t1 = this.frame,
  59765. match = $.$get$_v8Frame().firstMatch$1(t1);
  59766. if (match == null)
  59767. return new N.UnparsedFrame(P._Uri__Uri(null, "unparsed", null, null), t1);
  59768. t1 = new A.Frame_Frame$parseV8_closure_parseLocation(t1);
  59769. t2 = match._match;
  59770. t3 = t2[2];
  59771. if (t3 != null) {
  59772. t2 = t2[1];
  59773. t2.toString;
  59774. t2 = H.stringReplaceAllUnchecked(t2, "<anonymous>", _s4_);
  59775. t2 = H.stringReplaceAllUnchecked(t2, "Anonymous function", _s4_);
  59776. return t1.call$2(t3, H.stringReplaceAllUnchecked(t2, "(anonymous function)", _s4_));
  59777. } else
  59778. return t1.call$2(t2[3], _s4_);
  59779. },
  59780. $signature: 39
  59781. };
  59782. A.Frame_Frame$parseV8_closure_parseLocation.prototype = {
  59783. call$2: function($location, member) {
  59784. var urlMatch, uri, line, _null = null,
  59785. t1 = $.$get$_v8EvalLocation(),
  59786. evalMatch = t1.firstMatch$1($location);
  59787. for (; evalMatch != null;) {
  59788. $location = evalMatch._match[1];
  59789. evalMatch = t1.firstMatch$1($location);
  59790. }
  59791. if ($location === "native")
  59792. return new A.Frame(P.Uri_parse("native"), _null, _null, member);
  59793. urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location);
  59794. if (urlMatch == null)
  59795. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), this.frame);
  59796. t1 = urlMatch._match;
  59797. uri = A.Frame__uriOrPathToUri(t1[1]);
  59798. line = P.int_parse(t1[2], _null);
  59799. t1 = t1[3];
  59800. return new A.Frame(uri, line, t1 != null ? P.int_parse(t1, _null) : _null, member);
  59801. }
  59802. };
  59803. A.Frame_Frame$_parseFirefoxEval_closure.prototype = {
  59804. call$0: function() {
  59805. var t2, member, uri, line, _null = null,
  59806. t1 = this.frame,
  59807. match = $.$get$_firefoxEvalLocation().firstMatch$1(t1);
  59808. if (match == null)
  59809. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
  59810. t1 = match._match;
  59811. t2 = t1[1];
  59812. t2.toString;
  59813. member = H.stringReplaceAllUnchecked(t2, "/<", "");
  59814. uri = A.Frame__uriOrPathToUri(t1[2]);
  59815. line = P.int_parse(t1[3], _null);
  59816. return new A.Frame(uri, line, _null, member.length === 0 || member === "anonymous" ? "<fn>" : member);
  59817. },
  59818. $signature: 39
  59819. };
  59820. A.Frame_Frame$parseFirefox_closure.prototype = {
  59821. call$0: function() {
  59822. var t2, t3, uri, member, line, _null = null,
  59823. t1 = this.frame,
  59824. match = $.$get$_firefoxSafariFrame().firstMatch$1(t1);
  59825. if (match == null)
  59826. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
  59827. t2 = match._match;
  59828. t3 = t2[3];
  59829. if (J.contains$1$asx(t3, " line "))
  59830. return A.Frame_Frame$_parseFirefoxEval(t1);
  59831. uri = A.Frame__uriOrPathToUri(t3);
  59832. t1 = t2[1];
  59833. if (t1 != null) {
  59834. t3 = C.JSString_methods.allMatches$1("/", t2[2]);
  59835. member = J.$add$ansx(t1, C.JSArray_methods.join$0(P.List_List$filled(t3.get$length(t3), ".<fn>", false, type$.legacy_String)));
  59836. if (member === "")
  59837. member = "<fn>";
  59838. member = C.JSString_methods.replaceFirst$2(member, $.$get$_initialDot(), "");
  59839. } else
  59840. member = "<fn>";
  59841. t1 = t2[4];
  59842. line = t1 === "" ? _null : P.int_parse(t1, _null);
  59843. t1 = t2[5];
  59844. return new A.Frame(uri, line, t1 == null || t1 === "" ? _null : P.int_parse(t1, _null), member);
  59845. },
  59846. $signature: 39
  59847. };
  59848. A.Frame_Frame$parseFriendly_closure.prototype = {
  59849. call$0: function() {
  59850. var t2, uri, line, column, _null = null,
  59851. t1 = this.frame,
  59852. match = $.$get$_friendlyFrame().firstMatch$1(t1);
  59853. if (match == null)
  59854. throw H.wrapException(P.FormatException$("Couldn't parse package:stack_trace stack trace line '" + H.S(t1) + "'.", _null, _null));
  59855. t1 = match._match;
  59856. t2 = t1[1];
  59857. uri = t2 === "data:..." ? P.Uri_Uri$dataFromString("", _null, _null) : P.Uri_parse(t2);
  59858. if (uri.get$scheme() === "") {
  59859. t2 = $.$get$context();
  59860. uri = t2.toUri$1(D.absolute(t2.style.pathFromUri$1(M._parseUri(uri))));
  59861. }
  59862. t2 = t1[2];
  59863. line = t2 == null ? _null : P.int_parse(t2, _null);
  59864. t2 = t1[3];
  59865. column = t2 == null ? _null : P.int_parse(t2, _null);
  59866. return new A.Frame(uri, line, column, t1[4]);
  59867. },
  59868. $signature: 39
  59869. };
  59870. T.LazyTrace.prototype = {
  59871. get$_lazy_trace$_trace: function() {
  59872. var t1 = this._lazy_trace$_inner;
  59873. return t1 == null ? this._lazy_trace$_inner = this._thunk.call$0() : t1;
  59874. },
  59875. get$frames: function() {
  59876. return this.get$_lazy_trace$_trace().get$frames();
  59877. },
  59878. get$terse: function() {
  59879. return new T.LazyTrace(new T.LazyTrace_terse_closure(this));
  59880. },
  59881. toString$0: function(_) {
  59882. return J.toString$0$(this.get$_lazy_trace$_trace());
  59883. },
  59884. $isStackTrace: 1,
  59885. $isTrace: 1
  59886. };
  59887. T.LazyTrace_terse_closure.prototype = {
  59888. call$0: function() {
  59889. return this.$this.get$_lazy_trace$_trace().get$terse();
  59890. },
  59891. $signature: 92
  59892. };
  59893. Y.Trace.prototype = {
  59894. get$terse: function() {
  59895. return this.foldFrames$2$terse(new Y.Trace_terse_closure(), true);
  59896. },
  59897. foldFrames$2$terse: function(predicate, terse) {
  59898. var newFrames, t1, cur, _box_0 = {};
  59899. _box_0.predicate = predicate;
  59900. _box_0.predicate = new Y.Trace_foldFrames_closure(predicate);
  59901. newFrames = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  59902. for (t1 = this.frames, t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  59903. cur = t1.__internal$_current;
  59904. if (cur instanceof N.UnparsedFrame || !_box_0.predicate.call$1(cur))
  59905. newFrames.push(cur);
  59906. else if (newFrames.length === 0 || !_box_0.predicate.call$1(C.JSArray_methods.get$last(newFrames)))
  59907. newFrames.push(new A.Frame(cur.get$uri(), cur.get$line(), cur.get$column(), cur.get$member()));
  59908. }
  59909. t1 = type$.MappedListIterable_of_legacy_Frame_and_legacy_Frame;
  59910. newFrames = P.List_List$from(new H.MappedListIterable(newFrames, new Y.Trace_foldFrames_closure0(_box_0), t1), true, t1._eval$1("ListIterable.E"));
  59911. if (newFrames.length > 1 && _box_0.predicate.call$1(C.JSArray_methods.get$first(newFrames)))
  59912. C.JSArray_methods.removeAt$1(newFrames, 0);
  59913. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(newFrames, H._arrayInstanceType(newFrames)._eval$1("ReversedListIterable<1>")), type$.legacy_Frame), new P._StringStackTrace(this.original._stackTrace));
  59914. },
  59915. toString$0: function(_) {
  59916. var t1 = this.frames,
  59917. t2 = H._arrayInstanceType(t1);
  59918. return new H.MappedListIterable(t1, new Y.Trace_toString_closure(new H.MappedListIterable(t1, new Y.Trace_toString_closure0(), t2._eval$1("MappedListIterable<1,int*>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.legacy_int))), t2._eval$1("MappedListIterable<1,String*>")).join$0(0);
  59919. },
  59920. $isStackTrace: 1,
  59921. get$frames: function() {
  59922. return this.frames;
  59923. }
  59924. };
  59925. Y.Trace_Trace$from_closure.prototype = {
  59926. call$0: function() {
  59927. return Y.Trace_Trace$parse(this.trace.toString$0(0));
  59928. },
  59929. $signature: 92
  59930. };
  59931. Y.Trace__parseVM_closure.prototype = {
  59932. call$1: function(line) {
  59933. return A.Frame_Frame$parseVM(line);
  59934. }
  59935. };
  59936. Y.Trace$parseV8_closure.prototype = {
  59937. call$1: function(line) {
  59938. return !J.startsWith$1$s(line, $.$get$_v8TraceLine());
  59939. }
  59940. };
  59941. Y.Trace$parseV8_closure0.prototype = {
  59942. call$1: function(line) {
  59943. return A.Frame_Frame$parseV8(line);
  59944. }
  59945. };
  59946. Y.Trace$parseJSCore_closure.prototype = {
  59947. call$1: function(line) {
  59948. return line !== "\tat ";
  59949. }
  59950. };
  59951. Y.Trace$parseJSCore_closure0.prototype = {
  59952. call$1: function(line) {
  59953. return A.Frame_Frame$parseV8(line);
  59954. }
  59955. };
  59956. Y.Trace$parseFirefox_closure.prototype = {
  59957. call$1: function(line) {
  59958. return line.length !== 0 && line !== "[native code]";
  59959. }
  59960. };
  59961. Y.Trace$parseFirefox_closure0.prototype = {
  59962. call$1: function(line) {
  59963. return A.Frame_Frame$parseFirefox(line);
  59964. }
  59965. };
  59966. Y.Trace$parseFriendly_closure.prototype = {
  59967. call$1: function(line) {
  59968. return !J.startsWith$1$s(line, "=====");
  59969. }
  59970. };
  59971. Y.Trace$parseFriendly_closure0.prototype = {
  59972. call$1: function(line) {
  59973. return A.Frame_Frame$parseFriendly(line);
  59974. }
  59975. };
  59976. Y.Trace_terse_closure.prototype = {
  59977. call$1: function(_) {
  59978. return false;
  59979. }
  59980. };
  59981. Y.Trace_foldFrames_closure.prototype = {
  59982. call$1: function(frame) {
  59983. if (this.oldPredicate.call$1(frame))
  59984. return true;
  59985. if (frame.get$isCore())
  59986. return true;
  59987. if (frame.get$$package() === "stack_trace")
  59988. return true;
  59989. if (!J.contains$1$asx(frame.get$member(), "<async>"))
  59990. return false;
  59991. return frame.get$line() == null;
  59992. }
  59993. };
  59994. Y.Trace_foldFrames_closure0.prototype = {
  59995. call$1: function(frame) {
  59996. var t1, t2;
  59997. if (frame instanceof N.UnparsedFrame || !this._box_0.predicate.call$1(frame))
  59998. return frame;
  59999. t1 = frame.get$library();
  60000. t2 = $.$get$_terseRegExp();
  60001. t1.toString;
  60002. return new A.Frame(P.Uri_parse(H.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.get$member());
  60003. }
  60004. };
  60005. Y.Trace_toString_closure0.prototype = {
  60006. call$1: function(frame) {
  60007. return frame.get$location().length;
  60008. }
  60009. };
  60010. Y.Trace_toString_closure.prototype = {
  60011. call$1: function(frame) {
  60012. if (frame instanceof N.UnparsedFrame)
  60013. return frame.toString$0(0) + "\n";
  60014. return J.padRight$1$s(frame.get$location(), this.longest) + " " + H.S(frame.get$member()) + "\n";
  60015. }
  60016. };
  60017. N.UnparsedFrame.prototype = {
  60018. toString$0: function(_) {
  60019. return this.member;
  60020. },
  60021. $isFrame: 1,
  60022. get$uri: function() {
  60023. return this.uri;
  60024. },
  60025. get$line: function() {
  60026. return null;
  60027. },
  60028. get$column: function() {
  60029. return null;
  60030. },
  60031. get$isCore: function() {
  60032. return false;
  60033. },
  60034. get$library: function() {
  60035. return "unparsed";
  60036. },
  60037. get$$package: function() {
  60038. return null;
  60039. },
  60040. get$location: function() {
  60041. return "unparsed";
  60042. },
  60043. get$member: function() {
  60044. return this.member;
  60045. }
  60046. };
  60047. L._StreamTransformer.prototype = {
  60048. bind$1: function(values) {
  60049. var controller, _null = null, t1 = {},
  60050. t2 = this.$ti;
  60051. if (values.get$isBroadcast())
  60052. controller = new P._SyncBroadcastStreamController(_null, _null, t2._eval$1("_SyncBroadcastStreamController<2*>"));
  60053. else
  60054. controller = P.StreamController_StreamController(_null, _null, _null, _null, true, t2._eval$1("2*"));
  60055. t1.subscription = null;
  60056. controller.set$onListen(new L._StreamTransformer_bind_closure(t1, this, values, controller));
  60057. return controller.get$stream();
  60058. }
  60059. };
  60060. L._StreamTransformer_bind_closure.prototype = {
  60061. call$0: function() {
  60062. var t2, t3, t4, t5, _this = this, t1 = {};
  60063. t1.valuesDone = false;
  60064. t2 = _this.values;
  60065. t3 = _this.$this;
  60066. t4 = _this.controller;
  60067. t5 = _this._box_1;
  60068. t5.subscription = t2.listen$3$onDone$onError(new L._StreamTransformer_bind__closure(t3, t4), new L._StreamTransformer_bind__closure0(t1, t3, t4), new L._StreamTransformer_bind__closure1(t3, t4));
  60069. if (!t2.get$isBroadcast()) {
  60070. t2 = t5.subscription;
  60071. t4.set$onPause(t2.get$pause(t2));
  60072. t4.set$onResume(t5.subscription.get$resume());
  60073. }
  60074. t4.set$onCancel(new L._StreamTransformer_bind__closure2(t5, t1));
  60075. },
  60076. $signature: 0
  60077. };
  60078. L._StreamTransformer_bind__closure.prototype = {
  60079. call$1: function(value) {
  60080. return this.$this._from_handlers$_handleData.call$2(value, this.controller);
  60081. },
  60082. $signature: function() {
  60083. return this.$this.$ti._eval$1("~(1*)");
  60084. }
  60085. };
  60086. L._StreamTransformer_bind__closure1.prototype = {
  60087. call$2: function(error, stackTrace) {
  60088. this.$this._from_handlers$_handleError.call$3(error, stackTrace, this.controller);
  60089. },
  60090. "call*": "call$2",
  60091. $requiredArgCount: 2,
  60092. $signature: 81
  60093. };
  60094. L._StreamTransformer_bind__closure0.prototype = {
  60095. call$0: function() {
  60096. this._box_0.valuesDone = true;
  60097. this.$this._from_handlers$_handleDone.call$1(this.controller);
  60098. },
  60099. "call*": "call$0",
  60100. $requiredArgCount: 0,
  60101. $signature: 0
  60102. };
  60103. L._StreamTransformer_bind__closure2.prototype = {
  60104. call$0: function() {
  60105. var t1 = this._box_1,
  60106. toCancel = t1.subscription;
  60107. t1.subscription = null;
  60108. if (!this._box_0.valuesDone)
  60109. return toCancel.cancel$0();
  60110. return null;
  60111. },
  60112. "call*": "call$0",
  60113. $requiredArgCount: 0,
  60114. $signature: 108
  60115. };
  60116. R._debounceAggregate_closure.prototype = {
  60117. call$2: function(value, sink) {
  60118. var soFar, _this = this,
  60119. t1 = _this._box_0,
  60120. t2 = t1.timer;
  60121. if (t2 != null)
  60122. t2.cancel$0();
  60123. soFar = _this.collect.call$2(value, t1.soFar);
  60124. t1.soFar = soFar;
  60125. if (t1.timer == null && _this.leading) {
  60126. t1.emittedLatestAsLeading = true;
  60127. sink.add$1(0, soFar);
  60128. } else
  60129. t1.emittedLatestAsLeading = false;
  60130. t1.timer = P.Timer_Timer(_this.duration, new R._debounceAggregate__closure(t1, _this.trailing, sink));
  60131. },
  60132. "call*": "call$2",
  60133. $requiredArgCount: 2
  60134. };
  60135. R._debounceAggregate__closure.prototype = {
  60136. call$0: function() {
  60137. var t1, _this = this;
  60138. if (_this.trailing && !_this._box_0.emittedLatestAsLeading)
  60139. _this.sink.add$1(0, _this._box_0.soFar);
  60140. t1 = _this._box_0;
  60141. if (t1.shouldClose)
  60142. _this.sink.close$0(0);
  60143. t1.timer = t1.soFar = null;
  60144. },
  60145. "call*": "call$0",
  60146. $requiredArgCount: 0,
  60147. $signature: 0
  60148. };
  60149. R._debounceAggregate_closure0.prototype = {
  60150. call$1: function(sink) {
  60151. var t1 = this._box_0;
  60152. if (t1.soFar != null && this.trailing)
  60153. t1.shouldClose = true;
  60154. else {
  60155. t1 = t1.timer;
  60156. if (t1 != null)
  60157. t1.cancel$0();
  60158. sink.close$0(0);
  60159. }
  60160. }
  60161. };
  60162. E.StringScannerException.prototype = {
  60163. get$source: function() {
  60164. return H._asStringS(this.source);
  60165. }
  60166. };
  60167. Z.LineScanner.prototype = {
  60168. get$_betweenCRLF: function() {
  60169. return this.peekChar$1(-1) === 13 && this.peekChar$0() === 10;
  60170. },
  60171. scanChar$1: function(character) {
  60172. if (!this.super$StringScanner$scanChar(character))
  60173. return false;
  60174. this._adjustLineAndColumn$1(character);
  60175. return true;
  60176. },
  60177. _adjustLineAndColumn$1: function(character) {
  60178. var t1, _this = this;
  60179. if (character !== 10)
  60180. t1 = character === 13 && _this.peekChar$0() !== 10;
  60181. else
  60182. t1 = true;
  60183. if (t1) {
  60184. ++_this._line_scanner$_line;
  60185. _this._line_scanner$_column = 0;
  60186. } else
  60187. ++_this._line_scanner$_column;
  60188. },
  60189. scan$1: function(pattern) {
  60190. var newlines, t1, t2, _this = this;
  60191. if (!_this.super$StringScanner$scan(pattern))
  60192. return false;
  60193. newlines = _this._newlinesIn$1(_this.get$lastMatch().group$1(0));
  60194. t1 = _this._line_scanner$_line;
  60195. t2 = newlines.length;
  60196. _this._line_scanner$_line = t1 + t2;
  60197. if (t2 === 0)
  60198. _this._line_scanner$_column = _this._line_scanner$_column + _this.get$lastMatch().group$1(0).length;
  60199. else
  60200. _this._line_scanner$_column = _this.get$lastMatch().group$1(0).length - J.get$end$x(C.JSArray_methods.get$last(newlines));
  60201. return true;
  60202. },
  60203. _newlinesIn$1: function(text) {
  60204. var t1 = $.$get$_newlineRegExp().allMatches$1(0, text),
  60205. newlines = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  60206. if (this.get$_betweenCRLF())
  60207. C.JSArray_methods.removeLast$0(newlines);
  60208. return newlines;
  60209. }
  60210. };
  60211. S.SpanScanner.prototype = {
  60212. set$state: function(state) {
  60213. if (!(state instanceof S._SpanScannerState) || state._scanner !== this)
  60214. throw H.wrapException(P.ArgumentError$(string$.The_gi));
  60215. this.set$position(state.position);
  60216. },
  60217. spanFrom$2: function(startState, endState) {
  60218. var endPosition = endState == null ? this._string_scanner$_position : endState.position;
  60219. return this._sourceFile.span$2(startState.position, endPosition);
  60220. },
  60221. spanFrom$1: function(startState) {
  60222. return this.spanFrom$2(startState, null);
  60223. },
  60224. matches$1: function(pattern) {
  60225. var t1, t2, _this = this;
  60226. if (!_this.super$StringScanner$matches(pattern))
  60227. return false;
  60228. t1 = _this._string_scanner$_position;
  60229. t2 = _this.get$lastMatch();
  60230. _this._sourceFile.span$2(t1, t2.start + t2.pattern.length);
  60231. return true;
  60232. },
  60233. error$3$length$position: function(message, $length, position) {
  60234. var t2, match, _this = this,
  60235. t1 = _this.string;
  60236. B.validateErrorArgs(t1, null, position, $length);
  60237. t2 = position == null && $length == null;
  60238. match = t2 ? _this.get$lastMatch() : null;
  60239. if (position == null)
  60240. position = match == null ? _this._string_scanner$_position : match.start;
  60241. if ($length == null)
  60242. if (match == null)
  60243. $length = 0;
  60244. else {
  60245. t2 = match.start;
  60246. $length = t2 + match.pattern.length - t2;
  60247. }
  60248. throw H.wrapException(E.StringScannerException$(message, _this._sourceFile.span$2(position, position + $length), t1));
  60249. },
  60250. error$1: function(message) {
  60251. return this.error$3$length$position(message, null, null);
  60252. },
  60253. error$2$position: function(message, position) {
  60254. return this.error$3$length$position(message, null, position);
  60255. },
  60256. error$2$length: function(message, $length) {
  60257. return this.error$3$length$position(message, $length, null);
  60258. }
  60259. };
  60260. S._SpanScannerState.prototype = {};
  60261. X.StringScanner.prototype = {
  60262. set$position: function(position) {
  60263. if (position < 0 || position > this.string.length)
  60264. throw H.wrapException(P.ArgumentError$("Invalid position " + position));
  60265. this._string_scanner$_position = position;
  60266. this._lastMatch = null;
  60267. },
  60268. get$lastMatch: function() {
  60269. var _this = this;
  60270. if (_this._string_scanner$_position !== _this._lastMatchPosition)
  60271. _this._lastMatch = null;
  60272. return _this._lastMatch;
  60273. },
  60274. readChar$0: function() {
  60275. var _this = this,
  60276. t1 = _this._string_scanner$_position,
  60277. t2 = _this.string;
  60278. if (t1 === t2.length)
  60279. _this.error$3$length$position("expected more input.", 0, t1);
  60280. return J.codeUnitAt$1$s(t2, _this._string_scanner$_position++);
  60281. },
  60282. peekChar$1: function(offset) {
  60283. var index;
  60284. if (offset == null)
  60285. offset = 0;
  60286. index = this._string_scanner$_position + offset;
  60287. if (index < 0 || index >= this.string.length)
  60288. return null;
  60289. return J.codeUnitAt$1$s(this.string, index);
  60290. },
  60291. peekChar$0: function() {
  60292. return this.peekChar$1(null);
  60293. },
  60294. scanChar$1: function(character) {
  60295. var t1 = this._string_scanner$_position,
  60296. t2 = this.string;
  60297. if (t1 === t2.length)
  60298. return false;
  60299. if (J.codeUnitAt$1$s(t2, t1) !== character)
  60300. return false;
  60301. this._string_scanner$_position = t1 + 1;
  60302. return true;
  60303. },
  60304. expectChar$2$name: function(character, $name) {
  60305. if (this.scanChar$1(character))
  60306. return;
  60307. if ($name == null)
  60308. if (character === 92)
  60309. $name = '"\\"';
  60310. else
  60311. $name = character === 34 ? '"\\""' : '"' + H.Primitives_stringFromCharCode(character) + '"';
  60312. this.error$3$length$position("expected " + $name + ".", 0, this._string_scanner$_position);
  60313. },
  60314. expectChar$1: function(character) {
  60315. return this.expectChar$2$name(character, null);
  60316. },
  60317. scan$1: function(pattern) {
  60318. var t1, _this = this,
  60319. success = _this.matches$1(pattern);
  60320. if (success) {
  60321. t1 = _this._lastMatch;
  60322. _this._lastMatchPosition = _this._string_scanner$_position = t1.start + t1.pattern.length;
  60323. }
  60324. return success;
  60325. },
  60326. expect$1: function(pattern) {
  60327. var t1, $name;
  60328. if (this.scan$1(pattern))
  60329. return;
  60330. t1 = H.stringReplaceAllUnchecked(pattern, "\\", "\\\\");
  60331. $name = '"' + H.stringReplaceAllUnchecked(t1, '"', '\\"') + '"';
  60332. this.error$3$length$position("expected " + $name + ".", 0, this._string_scanner$_position);
  60333. },
  60334. expectDone$0: function() {
  60335. var t1 = this._string_scanner$_position;
  60336. if (t1 === this.string.length)
  60337. return;
  60338. this.error$3$length$position("expected no more input.", 0, t1);
  60339. },
  60340. matches$1: function(pattern) {
  60341. var _this = this,
  60342. t1 = C.JSString_methods.matchAsPrefix$2(pattern, _this.string, _this._string_scanner$_position);
  60343. _this._lastMatch = t1;
  60344. _this._lastMatchPosition = _this._string_scanner$_position;
  60345. return t1 != null;
  60346. },
  60347. substring$1: function(_, start) {
  60348. var end = this._string_scanner$_position;
  60349. return J.substring$2$s(this.string, start, end);
  60350. },
  60351. error$3$length$position: function(message, $length, position) {
  60352. var t2, t3, t4, sourceFile,
  60353. t1 = this.string;
  60354. B.validateErrorArgs(t1, null, position, $length);
  60355. t2 = this.sourceUrl;
  60356. t1.toString;
  60357. t3 = new H.CodeUnits(t1);
  60358. t4 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  60359. sourceFile = new Y.SourceFile(t2, t4, new Uint32Array(H._ensureNativeList(t3.toList$0(t3))));
  60360. sourceFile.SourceFile$decoded$2$url(t3, t2);
  60361. throw H.wrapException(E.StringScannerException$(message, sourceFile.span$2(position, position + $length), t1));
  60362. }
  60363. };
  60364. A.AsciiGlyphSet.prototype = {
  60365. glyphOrAscii$2: function(glyph, alternative) {
  60366. return alternative;
  60367. },
  60368. get$horizontalLine: function() {
  60369. return "-";
  60370. },
  60371. get$verticalLine: function() {
  60372. return "|";
  60373. },
  60374. get$topLeftCorner: function() {
  60375. return ",";
  60376. },
  60377. get$bottomLeftCorner: function() {
  60378. return "'";
  60379. },
  60380. get$cross: function() {
  60381. return "+";
  60382. },
  60383. get$upEnd: function() {
  60384. return "'";
  60385. },
  60386. get$downEnd: function() {
  60387. return ",";
  60388. },
  60389. get$horizontalLineBold: function() {
  60390. return "=";
  60391. }
  60392. };
  60393. K.UnicodeGlyphSet.prototype = {
  60394. glyphOrAscii$2: function(glyph, alternative) {
  60395. return glyph;
  60396. },
  60397. get$horizontalLine: function() {
  60398. return "\u2500";
  60399. },
  60400. get$verticalLine: function() {
  60401. return "\u2502";
  60402. },
  60403. get$topLeftCorner: function() {
  60404. return "\u250c";
  60405. },
  60406. get$bottomLeftCorner: function() {
  60407. return "\u2514";
  60408. },
  60409. get$cross: function() {
  60410. return "\u253c";
  60411. },
  60412. get$upEnd: function() {
  60413. return "\u2575";
  60414. },
  60415. get$downEnd: function() {
  60416. return "\u2577";
  60417. },
  60418. get$horizontalLineBold: function() {
  60419. return "\u2501";
  60420. }
  60421. };
  60422. S.Tuple2.prototype = {
  60423. toString$0: function(_) {
  60424. return "[" + H.S(this.item1) + ", " + H.S(this.item2) + "]";
  60425. },
  60426. $eq: function(_, other) {
  60427. if (other == null)
  60428. return false;
  60429. return other instanceof S.Tuple2 && J.$eq$(other.item1, this.item1) && J.$eq$(other.item2, this.item2);
  60430. },
  60431. get$hashCode: function(_) {
  60432. var t1 = J.get$hashCode$(this.item1),
  60433. t2 = J.get$hashCode$(this.item2);
  60434. return X._finish(X._combine(X._combine(0, C.JSInt_methods.get$hashCode(t1)), C.JSInt_methods.get$hashCode(t2)));
  60435. }
  60436. };
  60437. S.Tuple3.prototype = {
  60438. toString$0: function(_) {
  60439. return "[" + H.S(this.item1) + ", " + this.item2.toString$0(0) + ", " + H.S(this.item3) + "]";
  60440. },
  60441. $eq: function(_, other) {
  60442. if (other == null)
  60443. return false;
  60444. return other instanceof S.Tuple3 && other.item1 == this.item1 && other.item2.$eq(0, this.item2) && J.$eq$(other.item3, this.item3);
  60445. },
  60446. get$hashCode: function(_) {
  60447. var t3,
  60448. t1 = J.get$hashCode$(this.item1),
  60449. t2 = this.item2;
  60450. t2 = t2.get$hashCode(t2);
  60451. t3 = J.get$hashCode$(this.item3);
  60452. return X._finish(X._combine(X._combine(X._combine(0, C.JSInt_methods.get$hashCode(t1)), C.JSInt_methods.get$hashCode(t2)), C.JSInt_methods.get$hashCode(t3)));
  60453. }
  60454. };
  60455. E.WatchEvent.prototype = {
  60456. toString$0: function(_) {
  60457. return H.S(this.type) + " " + H.S(this.path);
  60458. },
  60459. get$path: function(receiver) {
  60460. return this.path;
  60461. }
  60462. };
  60463. E.ChangeType.prototype = {
  60464. toString$0: function(_) {
  60465. return this._watch_event$_name;
  60466. }
  60467. };
  60468. Z.Argument0.prototype = {
  60469. toString$0: function(_) {
  60470. var t1 = this.defaultValue,
  60471. t2 = this.name;
  60472. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  60473. },
  60474. $isAstNode0: 1,
  60475. get$span: function() {
  60476. return this.span;
  60477. }
  60478. };
  60479. B.ArgumentDeclaration0.prototype = {
  60480. get$spanWithName: function() {
  60481. var t3, t4,
  60482. t1 = this.span,
  60483. t2 = t1.file,
  60484. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  60485. i = Y.FileLocation$_(t2, t1._file$_start).offset - 1;
  60486. while (true) {
  60487. if (i > 0) {
  60488. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  60489. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  60490. } else
  60491. t3 = false;
  60492. if (!t3)
  60493. break;
  60494. --i;
  60495. }
  60496. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  60497. if (!(t3 === 95 || T.isAlphabetic1(t3) || t3 >= 128 || T.isDigit0(t3) || t3 === 45))
  60498. return t1;
  60499. --i;
  60500. while (true) {
  60501. if (i >= 0) {
  60502. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  60503. if (t3 !== 95) {
  60504. if (!(t3 >= 97 && t3 <= 122))
  60505. t4 = t3 >= 65 && t3 <= 90;
  60506. else
  60507. t4 = true;
  60508. t4 = t4 || t3 >= 128;
  60509. } else
  60510. t4 = true;
  60511. if (!t4) {
  60512. t4 = t3 >= 48 && t3 <= 57;
  60513. t3 = t4 || t3 === 45;
  60514. } else
  60515. t3 = true;
  60516. } else
  60517. t3 = false;
  60518. if (!t3)
  60519. break;
  60520. --i;
  60521. }
  60522. t3 = i + 1;
  60523. t4 = C.JSString_methods.codeUnitAt$1(text, t3);
  60524. if (!(t4 === 95 || T.isAlphabetic1(t4) || t4 >= 128))
  60525. return t1;
  60526. return B.SpanExtensions_trim0(t2.span$2(t3, Y.FileLocation$_(t2, t1._end).offset));
  60527. },
  60528. get$originalRestArgument: function() {
  60529. var t1, text;
  60530. if (this.restArgument == null)
  60531. return null;
  60532. t1 = this.span;
  60533. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  60534. return C.JSString_methods.substring$2(C.JSString_methods.substring$1(text, C.JSString_methods.lastIndexOf$1(text, "$")), 0, C.JSString_methods.indexOf$1(text, "."));
  60535. },
  60536. verify$2: function(positional, names) {
  60537. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  60538. _s10_ = "invocation",
  60539. _s8_ = "argument";
  60540. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  60541. argument = t1[i];
  60542. if (i < positional) {
  60543. t4 = argument.name;
  60544. if (t3.containsKey$1(t4))
  60545. throw H.wrapException(E.SassScriptException$0("Argument " + H.S(_this._argument_declaration$_originalArgumentName$1(t4)) + string$.x20was_p));
  60546. } else {
  60547. t4 = argument.name;
  60548. if (t3.containsKey$1(t4))
  60549. ++namedUsed;
  60550. else if (argument.defaultValue == null)
  60551. throw H.wrapException(E.MultiSpanSassScriptException$0("Missing argument " + H.S(_this._argument_declaration$_originalArgumentName$1(t4)) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String)));
  60552. }
  60553. }
  60554. if (_this.restArgument != null)
  60555. return;
  60556. if (positional > t2) {
  60557. t1 = "Only " + t2 + " ";
  60558. throw H.wrapException(E.MultiSpanSassScriptException$0(t1 + (names.get$isEmpty(names) ? "" : "positional ") + B.pluralize0(_s8_, t2, null) + " allowed, but " + positional + " " + B.pluralize0("was", positional, "were") + " passed.", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String)));
  60559. }
  60560. if (namedUsed < t3.get$length(t3)) {
  60561. t2 = type$.legacy_String;
  60562. unknownNames = P.LinkedHashSet_LinkedHashSet$of(names, t2);
  60563. unknownNames.removeAll$1(new H.MappedListIterable(t1, new B.ArgumentDeclaration_verify_closure1(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object*>")));
  60564. throw H.wrapException(E.MultiSpanSassScriptException$0("No " + B.pluralize0(_s8_, unknownNames._collection$_length, null) + " named " + H.S(B.toSentence0(unknownNames.map$1$1(0, new B.ArgumentDeclaration_verify_closure2(), type$.legacy_Object), "or")) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, t2)));
  60565. }
  60566. },
  60567. _argument_declaration$_originalArgumentName$1: function($name) {
  60568. var t1, t2, _i, argument, t3, t4, text, end;
  60569. if ($name === this.restArgument)
  60570. return this.get$originalRestArgument();
  60571. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  60572. argument = t1[_i];
  60573. if (argument.name === $name) {
  60574. t1 = argument.defaultValue;
  60575. t2 = argument.span;
  60576. t3 = t2.file;
  60577. t4 = t2._file$_start;
  60578. t2 = t2._end;
  60579. if (t1 == null) {
  60580. t1 = t3._decodedChars;
  60581. t1 = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  60582. } else {
  60583. t1 = t3._decodedChars;
  60584. text = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  60585. t1 = C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":"));
  60586. end = B._lastNonWhitespace0(t1, false);
  60587. t1 = end == null ? "" : C.JSString_methods.substring$2(t1, 0, end + 1);
  60588. }
  60589. return t1;
  60590. }
  60591. }
  60592. throw H.wrapException(P.ArgumentError$(string$.This_d + $name + '".'));
  60593. },
  60594. matches$2: function(positional, names) {
  60595. var t1, t2, t3, namedUsed, i, argument;
  60596. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  60597. argument = t1[i];
  60598. if (i < positional) {
  60599. if (t3.containsKey$1(argument.name))
  60600. return false;
  60601. } else if (t3.containsKey$1(argument.name))
  60602. ++namedUsed;
  60603. else if (argument.defaultValue == null)
  60604. return false;
  60605. }
  60606. if (this.restArgument != null)
  60607. return true;
  60608. if (positional > t2)
  60609. return false;
  60610. if (namedUsed < t3.get$length(t3))
  60611. return false;
  60612. return true;
  60613. },
  60614. toString$0: function(_) {
  60615. var t2, t3, _i,
  60616. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  60617. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  60618. t1.push(J.toString$0$(t2[_i]));
  60619. t2 = this.restArgument;
  60620. if (t2 != null)
  60621. t1.push(t2 + "...");
  60622. return C.JSArray_methods.join$1(t1, ", ");
  60623. },
  60624. $isAstNode0: 1,
  60625. get$span: function() {
  60626. return this.span;
  60627. }
  60628. };
  60629. B.ArgumentDeclaration_verify_closure1.prototype = {
  60630. call$1: function(argument) {
  60631. return argument.name;
  60632. }
  60633. };
  60634. B.ArgumentDeclaration_verify_closure2.prototype = {
  60635. call$1: function($name) {
  60636. return "$" + H.S($name);
  60637. }
  60638. };
  60639. X.ArgumentInvocation0.prototype = {
  60640. get$isEmpty: function(_) {
  60641. var t1;
  60642. if (this.positional.length === 0) {
  60643. t1 = this.named;
  60644. t1 = t1.get$isEmpty(t1) && this.rest == null;
  60645. } else
  60646. t1 = false;
  60647. return t1;
  60648. },
  60649. toString$0: function(_) {
  60650. var t2, t3, _i, t4, _this = this,
  60651. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  60652. for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  60653. t1.push(t2[_i]);
  60654. for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys()); t3.moveNext$0();) {
  60655. t4 = t3.get$current(t3);
  60656. t1.push(H.S(t4) + ": " + H.S(t2.$index(0, t4)));
  60657. }
  60658. t2 = _this.rest;
  60659. if (t2 != null)
  60660. t1.push(t2.toString$0(0) + "...");
  60661. t2 = _this.keywordRest;
  60662. if (t2 != null)
  60663. t1.push(t2.toString$0(0) + "...");
  60664. return "(" + C.JSArray_methods.join$1(t1, ", ") + ")";
  60665. },
  60666. $isAstNode0: 1,
  60667. get$span: function() {
  60668. return this.span;
  60669. }
  60670. };
  60671. D.SassArgumentList0.prototype = {};
  60672. B.AsyncCallable0.prototype = {};
  60673. B.AsyncImporter0.prototype = {};
  60674. S.AsyncBuiltInCallable0.prototype = {
  60675. callbackFor$2: function(positional, names) {
  60676. return new S.Tuple2(this._async_built_in0$_arguments, this._async_built_in0$_callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_FutureOr_legacy_Value_Function_legacy_List_legacy_Value_2);
  60677. },
  60678. $isAsyncCallable0: 1,
  60679. get$name: function() {
  60680. return this.name;
  60681. }
  60682. };
  60683. S.AsyncBuiltInCallable$mixin_closure0.prototype = {
  60684. call$1: function($arguments) {
  60685. return this.$call$body$AsyncBuiltInCallable$mixin_closure0($arguments);
  60686. },
  60687. $call$body$AsyncBuiltInCallable$mixin_closure0: function($arguments) {
  60688. var $async$goto = 0,
  60689. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  60690. $async$returnValue, $async$self = this;
  60691. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  60692. if ($async$errorCode === 1)
  60693. return P._asyncRethrow($async$result, $async$completer);
  60694. while (true)
  60695. switch ($async$goto) {
  60696. case 0:
  60697. // Function start
  60698. $async$goto = 3;
  60699. return P._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
  60700. case 3:
  60701. // returning from await.
  60702. $async$returnValue = null;
  60703. // goto return
  60704. $async$goto = 1;
  60705. break;
  60706. case 1:
  60707. // return
  60708. return P._asyncReturn($async$returnValue, $async$completer);
  60709. }
  60710. });
  60711. return P._asyncStartSync($async$call$1, $async$completer);
  60712. }
  60713. };
  60714. X._compileStylesheet_closure2.prototype = {
  60715. call$1: function(url) {
  60716. var t1, t2, _null = null;
  60717. if (url === "")
  60718. t1 = P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null).get$_text();
  60719. else {
  60720. t1 = P.Uri_parse(url);
  60721. t2 = this.importCache._async_import_cache0$_resultsCache.$index(0, t1);
  60722. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  60723. t1 = (t2 == null ? t1 : t2).toString$0(0);
  60724. }
  60725. return t1;
  60726. }
  60727. };
  60728. X.CompileResult0.prototype = {};
  60729. Q.AsyncEnvironment0.prototype = {
  60730. closure$0: function() {
  60731. var t5, t6, t7, _this = this,
  60732. t1 = _this._async_environment0$_forwardedModules,
  60733. t2 = _this._async_environment0$_forwardedModuleNodes,
  60734. t3 = _this._async_environment0$_nestedForwardedModules,
  60735. t4 = _this._async_environment0$_variables;
  60736. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  60737. t5 = _this._async_environment0$_variableNodes;
  60738. if (t5 == null)
  60739. t5 = null;
  60740. else
  60741. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  60742. t6 = _this._async_environment0$_functions;
  60743. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  60744. t7 = _this._async_environment0$_mixins;
  60745. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  60746. return Q.AsyncEnvironment$_0(_this._async_environment0$_modules, _this._async_environment0$_namespaceNodes, _this._async_environment0$_globalModules, _this._async_environment0$_globalModuleNodes, t1, t2, t3, _this._async_environment0$_allModules, t4, t5, t6, t7, _this._async_environment0$_content);
  60747. },
  60748. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  60749. var t1, t2, _this = this;
  60750. if (namespace == null) {
  60751. _this._async_environment0$_globalModules.add$1(0, module);
  60752. _this._async_environment0$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  60753. _this._async_environment0$_allModules.push(module);
  60754. for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._async_environment0$_variables).get$keys()); t1.moveNext$0();) {
  60755. t2 = t1.get$current(t1);
  60756. if (module.get$variables().containsKey$1(t2))
  60757. throw H.wrapException(E.SassScriptException$0(string$.This_ma + H.S(t2) + '".'));
  60758. }
  60759. } else {
  60760. t1 = _this._async_environment0$_modules;
  60761. if (t1.containsKey$1(namespace))
  60762. throw H.wrapException(E.MultiSpanSassScriptException$0(string$.There_ + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._async_environment0$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.legacy_FileSpan, type$.legacy_String)));
  60763. t1.$indexSet(0, namespace, module);
  60764. _this._async_environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  60765. _this._async_environment0$_allModules.push(module);
  60766. }
  60767. },
  60768. forwardModule$2: function(module, rule) {
  60769. var view, t1, t2, _this = this;
  60770. if (_this._async_environment0$_forwardedModules == null)
  60771. _this._async_environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_AsyncCallable_2);
  60772. if (_this._async_environment0$_forwardedModuleNodes == null)
  60773. _this._async_environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_AsyncCallable_2, type$.legacy_AstNode_2);
  60774. view = R.ForwardedModuleView_ifNecessary0(module, rule, type$.legacy_AsyncCallable_2);
  60775. for (t1 = _this._async_environment0$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  60776. t2 = t1._collection$_current;
  60777. _this._async_environment0$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  60778. _this._async_environment0$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  60779. _this._async_environment0$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  60780. }
  60781. _this._async_environment0$_allModules.push(module);
  60782. _this._async_environment0$_forwardedModules.add$1(0, view);
  60783. _this._async_environment0$_forwardedModuleNodes.$indexSet(0, view, rule);
  60784. },
  60785. _async_environment0$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  60786. var larger, smaller, t1, t2, $name;
  60787. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  60788. larger = oldMembers;
  60789. smaller = newMembers;
  60790. } else {
  60791. larger = newMembers;
  60792. smaller = oldMembers;
  60793. }
  60794. for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
  60795. $name = t1.get$current(t1);
  60796. if (!larger.containsKey$1($name))
  60797. continue;
  60798. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  60799. continue;
  60800. if (t2)
  60801. $name = "$" + H.S($name);
  60802. throw H.wrapException(E.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._async_environment0$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.legacy_FileSpan, type$.legacy_String)));
  60803. }
  60804. },
  60805. importForwards$1: function(module) {
  60806. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  60807. t1 = module._async_environment0$_environment,
  60808. forwarded = t1._async_environment0$_forwardedModules;
  60809. if (forwarded == null)
  60810. return;
  60811. if (_this._async_environment0$_forwardedModules != null) {
  60812. t2 = P.LinkedHashSet_LinkedHashSet(type$.legacy_Module_legacy_AsyncCallable_2);
  60813. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._async_environment0$_globalModules; t3.moveNext$0();) {
  60814. t5 = t3._collection$_current;
  60815. if (!_this._async_environment0$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  60816. t2.add$1(0, t5);
  60817. }
  60818. forwarded = t2;
  60819. }
  60820. if (_this._async_environment0$_forwardedModules == null)
  60821. _this._async_environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_AsyncCallable_2);
  60822. if (_this._async_environment0$_forwardedModuleNodes == null)
  60823. _this._async_environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_AsyncCallable_2, type$.legacy_AstNode_2);
  60824. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String*>");
  60825. t3 = t2._eval$1("Iterable.E");
  60826. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure3(), t2), t3);
  60827. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure4(), t2), t3);
  60828. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure5(), t2), t3);
  60829. t2 = _this._async_environment0$_variables;
  60830. t3 = t2.length;
  60831. if (t3 === 1) {
  60832. for (t3 = _this._async_environment0$_globalModules, t4 = P.List_List$from(t3, true, H._instanceType(t3)._precomputed1), t5 = t4.length, t6 = type$.legacy_AsyncCallable_2, t7 = _this._async_environment0$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  60833. module = t4[_i];
  60834. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  60835. if (shadowed != null) {
  60836. t3.remove$1(0, module);
  60837. t8 = shadowed.variables;
  60838. if (t8.get$isEmpty(t8)) {
  60839. t8 = shadowed.functions;
  60840. if (t8.get$isEmpty(t8)) {
  60841. t8 = shadowed.mixins;
  60842. if (t8.get$isEmpty(t8)) {
  60843. t8 = shadowed._shadowed_view0$_inner;
  60844. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  60845. } else
  60846. t8 = false;
  60847. } else
  60848. t8 = false;
  60849. } else
  60850. t8 = false;
  60851. if (!t8) {
  60852. t3.add$1(0, shadowed);
  60853. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  60854. }
  60855. }
  60856. }
  60857. t4 = _this._async_environment0$_forwardedModules;
  60858. t4.toString;
  60859. t4 = P.List_List$from(t4, true, H._instanceType(t4)._precomputed1);
  60860. t5 = t4.length;
  60861. _i = 0;
  60862. for (; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  60863. module = t4[_i];
  60864. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  60865. if (shadowed != null) {
  60866. _this._async_environment0$_forwardedModules.remove$1(0, module);
  60867. t8 = shadowed.variables;
  60868. if (t8.get$isEmpty(t8)) {
  60869. t8 = shadowed.functions;
  60870. if (t8.get$isEmpty(t8)) {
  60871. t8 = shadowed.mixins;
  60872. if (t8.get$isEmpty(t8)) {
  60873. t8 = shadowed._shadowed_view0$_inner;
  60874. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  60875. } else
  60876. t8 = false;
  60877. } else
  60878. t8 = false;
  60879. } else
  60880. t8 = false;
  60881. if (!t8) {
  60882. _this._async_environment0$_forwardedModules.add$1(0, shadowed);
  60883. t8 = _this._async_environment0$_forwardedModuleNodes;
  60884. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  60885. }
  60886. }
  60887. }
  60888. t3.addAll$1(0, forwarded);
  60889. t7.addAll$1(0, t1._async_environment0$_forwardedModuleNodes);
  60890. _this._async_environment0$_forwardedModules.addAll$1(0, forwarded);
  60891. _this._async_environment0$_forwardedModuleNodes.addAll$1(0, t1._async_environment0$_forwardedModuleNodes);
  60892. } else {
  60893. t1 = _this._async_environment0$_nestedForwardedModules;
  60894. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._async_environment0$_nestedForwardedModules = P.List_List$generate(t3 - 1, new Q.AsyncEnvironment_importForwards_closure6(), true, type$.legacy_List_legacy_Module_legacy_AsyncCallable_2) : t1), forwarded);
  60895. }
  60896. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment0$_variableNodes, t4 = t3 != null, t5 = _this._async_environment0$_variableIndices; t1.moveNext$0();) {
  60897. t6 = t1._collection$_current;
  60898. t5.remove$1(0, t6);
  60899. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  60900. if (t4)
  60901. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  60902. }
  60903. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment0$_functionIndices, t3 = _this._async_environment0$_functions; t1.moveNext$0();) {
  60904. t4 = t1._collection$_current;
  60905. t2.remove$1(0, t4);
  60906. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  60907. }
  60908. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment0$_mixinIndices, t3 = _this._async_environment0$_mixins; t1.moveNext$0();) {
  60909. t4 = t1._collection$_current;
  60910. t2.remove$1(0, t4);
  60911. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  60912. }
  60913. },
  60914. getVariable$2$namespace: function($name, namespace) {
  60915. var t1, index, _this = this;
  60916. if (namespace != null)
  60917. return _this._async_environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  60918. if (_this._async_environment0$_lastVariableName === $name) {
  60919. t1 = J.$index$asx(_this._async_environment0$_variables[_this._async_environment0$_lastVariableIndex], $name);
  60920. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  60921. }
  60922. t1 = _this._async_environment0$_variableIndices;
  60923. index = t1.$index(0, $name);
  60924. if (index != null) {
  60925. _this._async_environment0$_lastVariableName = $name;
  60926. _this._async_environment0$_lastVariableIndex = index;
  60927. t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
  60928. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  60929. }
  60930. index = _this._async_environment0$_variableIndex$1($name);
  60931. if (index == null)
  60932. return _this._async_environment0$_getVariableFromGlobalModule$1($name);
  60933. _this._async_environment0$_lastVariableName = $name;
  60934. _this._async_environment0$_lastVariableIndex = index;
  60935. t1.$indexSet(0, $name, index);
  60936. t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
  60937. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  60938. },
  60939. getVariable$1: function($name) {
  60940. return this.getVariable$2$namespace($name, null);
  60941. },
  60942. _async_environment0$_getVariableFromGlobalModule$1: function($name) {
  60943. return this._async_environment0$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment__getVariableFromGlobalModule_closure0($name));
  60944. },
  60945. getVariableNode$2$namespace: function($name, namespace) {
  60946. var t1, index, _this = this;
  60947. if (namespace != null)
  60948. return _this._async_environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  60949. if (_this._async_environment0$_lastVariableName === $name) {
  60950. t1 = J.$index$asx(_this._async_environment0$_variableNodes[_this._async_environment0$_lastVariableIndex], $name);
  60951. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  60952. }
  60953. t1 = _this._async_environment0$_variableIndices;
  60954. index = t1.$index(0, $name);
  60955. if (index != null) {
  60956. _this._async_environment0$_lastVariableName = $name;
  60957. _this._async_environment0$_lastVariableIndex = index;
  60958. t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
  60959. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  60960. }
  60961. index = _this._async_environment0$_variableIndex$1($name);
  60962. if (index == null)
  60963. return _this._async_environment0$_getVariableNodeFromGlobalModule$1($name);
  60964. _this._async_environment0$_lastVariableName = $name;
  60965. _this._async_environment0$_lastVariableIndex = index;
  60966. t1.$indexSet(0, $name, index);
  60967. t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
  60968. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  60969. },
  60970. _async_environment0$_getVariableNodeFromGlobalModule$1: function($name) {
  60971. var t1, value;
  60972. for (t1 = this._async_environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  60973. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  60974. if (value != null)
  60975. return value;
  60976. }
  60977. return null;
  60978. },
  60979. globalVariableExists$2$namespace: function($name, namespace) {
  60980. if (namespace != null)
  60981. return this._async_environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  60982. if (C.JSArray_methods.get$first(this._async_environment0$_variables).containsKey$1($name))
  60983. return true;
  60984. return this._async_environment0$_getVariableFromGlobalModule$1($name) != null;
  60985. },
  60986. globalVariableExists$1: function($name) {
  60987. return this.globalVariableExists$2$namespace($name, null);
  60988. },
  60989. _async_environment0$_variableIndex$1: function($name) {
  60990. var t1, i;
  60991. for (t1 = this._async_environment0$_variables, i = t1.length - 1; i >= 0; --i)
  60992. if (t1[i].containsKey$1($name))
  60993. return i;
  60994. return null;
  60995. },
  60996. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  60997. var t1, moduleWithName, cur, t2, index, _this = this;
  60998. if (namespace != null) {
  60999. _this._async_environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  61000. return;
  61001. }
  61002. if (global || _this._async_environment0$_variables.length === 1) {
  61003. _this._async_environment0$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure2(_this, $name));
  61004. t1 = _this._async_environment0$_variables;
  61005. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  61006. moduleWithName = _this._async_environment0$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment_setVariable_closure3($name));
  61007. if (moduleWithName != null) {
  61008. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  61009. return;
  61010. }
  61011. }
  61012. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  61013. t1 = _this._async_environment0$_variableNodes;
  61014. if (t1 != null)
  61015. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  61016. return;
  61017. }
  61018. if (_this._async_environment0$_nestedForwardedModules != null && !_this._async_environment0$_variableIndices.containsKey$1($name) && _this._async_environment0$_variableIndex$1($name) == null) {
  61019. t1 = _this._async_environment0$_nestedForwardedModules;
  61020. t1.toString;
  61021. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  61022. t1 = new H.ListIterator(t1, t1.get$length(t1));
  61023. for (; t1.moveNext$0();) {
  61024. cur = t1.__internal$_current;
  61025. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  61026. cur = t2.__internal$_current;
  61027. if (cur.get$variables().containsKey$1($name)) {
  61028. cur.setVariable$3($name, value, nodeWithSpan);
  61029. return;
  61030. }
  61031. }
  61032. }
  61033. }
  61034. index = _this._async_environment0$_lastVariableName === $name ? _this._async_environment0$_lastVariableIndex : _this._async_environment0$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure4(_this, $name));
  61035. if (!_this._async_environment0$_inSemiGlobalScope && index === 0) {
  61036. index = _this._async_environment0$_variables.length - 1;
  61037. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  61038. }
  61039. _this._async_environment0$_lastVariableName = $name;
  61040. _this._async_environment0$_lastVariableIndex = index;
  61041. J.$indexSet$ax(_this._async_environment0$_variables[index], $name, value);
  61042. t1 = _this._async_environment0$_variableNodes;
  61043. if (t1 != null)
  61044. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  61045. },
  61046. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  61047. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  61048. },
  61049. setLocalVariable$3: function($name, value, nodeWithSpan) {
  61050. var index, _this = this,
  61051. t1 = _this._async_environment0$_variables,
  61052. t2 = t1.length;
  61053. _this._async_environment0$_lastVariableName = $name;
  61054. index = _this._async_environment0$_lastVariableIndex = t2 - 1;
  61055. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  61056. J.$indexSet$ax(t1[index], $name, value);
  61057. t1 = _this._async_environment0$_variableNodes;
  61058. if (t1 != null)
  61059. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  61060. },
  61061. getFunction$2$namespace: function($name, namespace) {
  61062. var t1, index, _this = this;
  61063. if (namespace != null) {
  61064. t1 = _this._async_environment0$_getModule$1(namespace);
  61065. return t1.get$functions(t1).$index(0, $name);
  61066. }
  61067. t1 = _this._async_environment0$_functionIndices;
  61068. index = t1.$index(0, $name);
  61069. if (index != null) {
  61070. t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
  61071. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  61072. }
  61073. index = _this._async_environment0$_functionIndex$1($name);
  61074. if (index == null)
  61075. return _this._async_environment0$_getFunctionFromGlobalModule$1($name);
  61076. t1.$indexSet(0, $name, index);
  61077. t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
  61078. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  61079. },
  61080. _async_environment0$_getFunctionFromGlobalModule$1: function($name) {
  61081. return this._async_environment0$_fromOneModule$3($name, "function", new Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0($name));
  61082. },
  61083. _async_environment0$_functionIndex$1: function($name) {
  61084. var t1, i;
  61085. for (t1 = this._async_environment0$_functions, i = t1.length - 1; i >= 0; --i)
  61086. if (t1[i].containsKey$1($name))
  61087. return i;
  61088. return null;
  61089. },
  61090. getMixin$2$namespace: function($name, namespace) {
  61091. var t1, index, _this = this;
  61092. if (namespace != null)
  61093. return _this._async_environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  61094. t1 = _this._async_environment0$_mixinIndices;
  61095. index = t1.$index(0, $name);
  61096. if (index != null) {
  61097. t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
  61098. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  61099. }
  61100. index = _this._async_environment0$_mixinIndex$1($name);
  61101. if (index == null)
  61102. return _this._async_environment0$_getMixinFromGlobalModule$1($name);
  61103. t1.$indexSet(0, $name, index);
  61104. t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
  61105. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  61106. },
  61107. _async_environment0$_getMixinFromGlobalModule$1: function($name) {
  61108. return this._async_environment0$_fromOneModule$3($name, "mixin", new Q.AsyncEnvironment__getMixinFromGlobalModule_closure0($name));
  61109. },
  61110. _async_environment0$_mixinIndex$1: function($name) {
  61111. var t1, i;
  61112. for (t1 = this._async_environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  61113. if (t1[i].containsKey$1($name))
  61114. return i;
  61115. return null;
  61116. },
  61117. withContent$2: function($content, callback) {
  61118. return this.withContent$body$AsyncEnvironment0($content, callback);
  61119. },
  61120. withContent$body$AsyncEnvironment0: function($content, callback) {
  61121. var $async$goto = 0,
  61122. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  61123. $async$self = this, oldContent;
  61124. var $async$withContent$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61125. if ($async$errorCode === 1)
  61126. return P._asyncRethrow($async$result, $async$completer);
  61127. while (true)
  61128. switch ($async$goto) {
  61129. case 0:
  61130. // Function start
  61131. oldContent = $async$self._async_environment0$_content;
  61132. $async$self._async_environment0$_content = $content;
  61133. $async$goto = 2;
  61134. return P._asyncAwait(callback.call$0(), $async$withContent$2);
  61135. case 2:
  61136. // returning from await.
  61137. $async$self._async_environment0$_content = oldContent;
  61138. // implicit return
  61139. return P._asyncReturn(null, $async$completer);
  61140. }
  61141. });
  61142. return P._asyncStartSync($async$withContent$2, $async$completer);
  61143. },
  61144. asMixin$1: function(callback) {
  61145. var $async$goto = 0,
  61146. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  61147. $async$self = this, oldInMixin;
  61148. var $async$asMixin$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61149. if ($async$errorCode === 1)
  61150. return P._asyncRethrow($async$result, $async$completer);
  61151. while (true)
  61152. switch ($async$goto) {
  61153. case 0:
  61154. // Function start
  61155. oldInMixin = $async$self._async_environment0$_inMixin;
  61156. $async$self._async_environment0$_inMixin = true;
  61157. $async$goto = 2;
  61158. return P._asyncAwait(callback.call$0(), $async$asMixin$1);
  61159. case 2:
  61160. // returning from await.
  61161. $async$self._async_environment0$_inMixin = oldInMixin;
  61162. // implicit return
  61163. return P._asyncReturn(null, $async$completer);
  61164. }
  61165. });
  61166. return P._asyncStartSync($async$asMixin$1, $async$completer);
  61167. },
  61168. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when, $T) {
  61169. return this.scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $T._eval$1("0*"));
  61170. },
  61171. scope$1$1: function(callback, $T) {
  61172. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  61173. },
  61174. scope$1$2$when: function(callback, when, $T) {
  61175. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  61176. },
  61177. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  61178. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  61179. },
  61180. scope$body$AsyncEnvironment0: function(callback, semiGlobal, when, $T, $async$type) {
  61181. var $async$goto = 0,
  61182. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  61183. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5;
  61184. var $async$scope$1$3$semiGlobal$when = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61185. if ($async$errorCode === 1) {
  61186. $async$currentError = $async$result;
  61187. $async$goto = $async$handler;
  61188. }
  61189. while (true)
  61190. switch ($async$goto) {
  61191. case 0:
  61192. // Function start
  61193. $async$goto = !when ? 3 : 4;
  61194. break;
  61195. case 3:
  61196. // then
  61197. wasInSemiGlobalScope = $async$self._async_environment0$_inSemiGlobalScope;
  61198. $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
  61199. $async$handler = 5;
  61200. $async$goto = 8;
  61201. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  61202. case 8:
  61203. // returning from await.
  61204. t1 = $async$result;
  61205. $async$returnValue = t1;
  61206. $async$next = [1];
  61207. // goto finally
  61208. $async$goto = 6;
  61209. break;
  61210. $async$next.push(7);
  61211. // goto finally
  61212. $async$goto = 6;
  61213. break;
  61214. case 5:
  61215. // uncaught
  61216. $async$next = [2];
  61217. case 6:
  61218. // finally
  61219. $async$handler = 2;
  61220. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  61221. // goto the next finally handler
  61222. $async$goto = $async$next.pop();
  61223. break;
  61224. case 7:
  61225. // after finally
  61226. case 4:
  61227. // join
  61228. semiGlobal = semiGlobal && $async$self._async_environment0$_inSemiGlobalScope;
  61229. wasInSemiGlobalScope0 = $async$self._async_environment0$_inSemiGlobalScope;
  61230. $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
  61231. t1 = $async$self._async_environment0$_variables;
  61232. t2 = type$.legacy_String;
  61233. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_Value_2));
  61234. t3 = $async$self._async_environment0$_variableNodes;
  61235. if (t3 != null)
  61236. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_AstNode_2));
  61237. t3 = $async$self._async_environment0$_functions;
  61238. t4 = type$.legacy_AsyncCallable_2;
  61239. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  61240. t5 = $async$self._async_environment0$_mixins;
  61241. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  61242. t4 = $async$self._async_environment0$_nestedForwardedModules;
  61243. if (t4 != null)
  61244. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable_2));
  61245. $async$handler = 9;
  61246. $async$goto = 12;
  61247. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  61248. case 12:
  61249. // returning from await.
  61250. t2 = $async$result;
  61251. $async$returnValue = t2;
  61252. $async$next = [1];
  61253. // goto finally
  61254. $async$goto = 10;
  61255. break;
  61256. $async$next.push(11);
  61257. // goto finally
  61258. $async$goto = 10;
  61259. break;
  61260. case 9:
  61261. // uncaught
  61262. $async$next = [2];
  61263. case 10:
  61264. // finally
  61265. $async$handler = 2;
  61266. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope0;
  61267. $async$self._async_environment0$_lastVariableIndex = $async$self._async_environment0$_lastVariableName = null;
  61268. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = $async$self._async_environment0$_variableIndices; t1.moveNext$0();) {
  61269. $name = t1.get$current(t1);
  61270. t2.remove$1(0, $name);
  61271. }
  61272. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = $async$self._async_environment0$_functionIndices; t1.moveNext$0();) {
  61273. name0 = t1.get$current(t1);
  61274. t2.remove$1(0, name0);
  61275. }
  61276. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = $async$self._async_environment0$_mixinIndices; t1.moveNext$0();) {
  61277. name1 = t1.get$current(t1);
  61278. t2.remove$1(0, name1);
  61279. }
  61280. t1 = $async$self._async_environment0$_nestedForwardedModules;
  61281. if (t1 != null)
  61282. C.JSArray_methods.removeLast$0(t1);
  61283. // goto the next finally handler
  61284. $async$goto = $async$next.pop();
  61285. break;
  61286. case 11:
  61287. // after finally
  61288. case 1:
  61289. // return
  61290. return P._asyncReturn($async$returnValue, $async$completer);
  61291. case 2:
  61292. // rethrow
  61293. return P._asyncRethrow($async$currentError, $async$completer);
  61294. }
  61295. });
  61296. return P._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  61297. },
  61298. toImplicitConfiguration$0: function() {
  61299. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  61300. t1 = type$.legacy_String,
  61301. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ConfiguredValue_2);
  61302. for (t2 = this._async_environment0$_variables, t3 = this._async_environment0$_variableNodes, t4 = t3 == null, t5 = type$.legacy_AstNode_2, i = 0; i < t2.length; ++i) {
  61303. values = t2[i];
  61304. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  61305. for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
  61306. t7 = t6.get$current(t6);
  61307. configuration.$indexSet(0, t7, new Z.ConfiguredValue0(values.$index(0, t7), null, nodes.$index(0, t7)));
  61308. }
  61309. }
  61310. return new A.Configuration0(configuration, null, true);
  61311. },
  61312. _async_environment0$_getModule$1: function(namespace) {
  61313. var module = this._async_environment0$_modules.$index(0, namespace);
  61314. if (module != null)
  61315. return module;
  61316. throw H.wrapException(E.SassScriptException$0('There is no module with the namespace "' + namespace + '".'));
  61317. },
  61318. _async_environment0$_fromOneModule$1$3: function($name, type, callback) {
  61319. var cur, t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  61320. t1 = this._async_environment0$_nestedForwardedModules;
  61321. if (t1 != null)
  61322. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  61323. cur = t1.__internal$_current;
  61324. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  61325. cur = t2.__internal$_current;
  61326. value = callback.call$1(cur);
  61327. if (value != null)
  61328. return value;
  61329. }
  61330. }
  61331. for (t1 = this._async_environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.legacy_AsyncCallable_2, value = null, identity = null; t1.moveNext$0();) {
  61332. t3 = t1._collection$_current;
  61333. valueInModule = callback.call$1(t3);
  61334. if (valueInModule == null)
  61335. continue;
  61336. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  61337. if (identityFromModule.$eq(0, identity))
  61338. continue;
  61339. if (value != null) {
  61340. t1 = "This " + type + string$.x20is_av;
  61341. t2 = type + " use";
  61342. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  61343. for (t4 = this._async_environment0$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  61344. t5 = t4.get$current(t4);
  61345. if (callback.call$1(t5.key) != null)
  61346. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  61347. }
  61348. throw H.wrapException(E.MultiSpanSassScriptException$0(t1, t2, t3));
  61349. }
  61350. identity = identityFromModule;
  61351. value = valueInModule;
  61352. }
  61353. return value;
  61354. },
  61355. _async_environment0$_fromOneModule$3: function($name, type, callback) {
  61356. return this._async_environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  61357. }
  61358. };
  61359. Q.AsyncEnvironment_importForwards_closure3.prototype = {
  61360. call$1: function(module) {
  61361. return module.get$variables().get$keys();
  61362. }
  61363. };
  61364. Q.AsyncEnvironment_importForwards_closure4.prototype = {
  61365. call$1: function(module) {
  61366. return module.get$functions(module).get$keys();
  61367. }
  61368. };
  61369. Q.AsyncEnvironment_importForwards_closure5.prototype = {
  61370. call$1: function(module) {
  61371. return module.get$mixins().get$keys();
  61372. }
  61373. };
  61374. Q.AsyncEnvironment_importForwards_closure6.prototype = {
  61375. call$1: function(_) {
  61376. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable_2);
  61377. },
  61378. $signature: 109
  61379. };
  61380. Q.AsyncEnvironment__getVariableFromGlobalModule_closure0.prototype = {
  61381. call$1: function(module) {
  61382. return module.get$variables().$index(0, this.name);
  61383. }
  61384. };
  61385. Q.AsyncEnvironment_setVariable_closure2.prototype = {
  61386. call$0: function() {
  61387. var t1 = this.$this;
  61388. t1._async_environment0$_lastVariableName = this.name;
  61389. return t1._async_environment0$_lastVariableIndex = 0;
  61390. },
  61391. $signature: 7
  61392. };
  61393. Q.AsyncEnvironment_setVariable_closure3.prototype = {
  61394. call$1: function(module) {
  61395. return module.get$variables().containsKey$1(this.name) ? module : null;
  61396. }
  61397. };
  61398. Q.AsyncEnvironment_setVariable_closure4.prototype = {
  61399. call$0: function() {
  61400. var t1 = this.$this,
  61401. t2 = t1._async_environment0$_variableIndex$1(this.name);
  61402. return t2 == null ? t1._async_environment0$_variables.length - 1 : t2;
  61403. },
  61404. $signature: 7
  61405. };
  61406. Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0.prototype = {
  61407. call$1: function(module) {
  61408. return module.get$functions(module).$index(0, this.name);
  61409. }
  61410. };
  61411. Q.AsyncEnvironment__getMixinFromGlobalModule_closure0.prototype = {
  61412. call$1: function(module) {
  61413. return module.get$mixins().$index(0, this.name);
  61414. }
  61415. };
  61416. Q._EnvironmentModule2.prototype = {
  61417. get$url: function() {
  61418. return this.css.get$span().file.url;
  61419. },
  61420. setVariable$3: function($name, value, nodeWithSpan) {
  61421. var t1, t2,
  61422. module = this._async_environment0$_modulesByVariable.$index(0, $name);
  61423. if (module != null) {
  61424. module.setVariable$3($name, value, nodeWithSpan);
  61425. return;
  61426. }
  61427. t1 = this._async_environment0$_environment;
  61428. t2 = t1._async_environment0$_variables;
  61429. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  61430. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  61431. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  61432. t1 = t1._async_environment0$_variableNodes;
  61433. if (t1 != null)
  61434. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  61435. return;
  61436. },
  61437. variableIdentity$1: function($name) {
  61438. var module = this._async_environment0$_modulesByVariable.$index(0, $name);
  61439. return module == null ? this : module.variableIdentity$1($name);
  61440. },
  61441. cloneCss$0: function() {
  61442. var newCssAndExtender, _this = this,
  61443. t1 = _this.css;
  61444. if (J.get$isEmpty$asx(t1.get$children()))
  61445. return _this;
  61446. newCssAndExtender = V.cloneCssStylesheet0(t1, _this.extender);
  61447. return Q._EnvironmentModule$_2(_this._async_environment0$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._async_environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  61448. },
  61449. toString$0: function(_) {
  61450. var t1 = this.css;
  61451. if (t1.get$span().file.url == null)
  61452. t1 = "<unknown url>";
  61453. else {
  61454. t1 = t1.get$span();
  61455. t1 = $.$get$context().prettyUri$1(t1.file.url);
  61456. }
  61457. return t1;
  61458. },
  61459. $isModule0: 1,
  61460. get$upstream: function() {
  61461. return this.upstream;
  61462. },
  61463. get$variables: function() {
  61464. return this.variables;
  61465. },
  61466. get$variableNodes: function() {
  61467. return this.variableNodes;
  61468. },
  61469. get$functions: function(receiver) {
  61470. return this.functions;
  61471. },
  61472. get$mixins: function() {
  61473. return this.mixins;
  61474. },
  61475. get$extender: function() {
  61476. return this.extender;
  61477. },
  61478. get$css: function(receiver) {
  61479. return this.css;
  61480. },
  61481. get$transitivelyContainsCss: function() {
  61482. return this.transitivelyContainsCss;
  61483. },
  61484. get$transitivelyContainsExtensions: function() {
  61485. return this.transitivelyContainsExtensions;
  61486. }
  61487. };
  61488. Q._EnvironmentModule__EnvironmentModule_closure17.prototype = {
  61489. call$1: function(module) {
  61490. return module.get$variables();
  61491. }
  61492. };
  61493. Q._EnvironmentModule__EnvironmentModule_closure18.prototype = {
  61494. call$1: function(module) {
  61495. return module.get$variableNodes();
  61496. }
  61497. };
  61498. Q._EnvironmentModule__EnvironmentModule_closure19.prototype = {
  61499. call$1: function(module) {
  61500. return module.get$functions(module);
  61501. }
  61502. };
  61503. Q._EnvironmentModule__EnvironmentModule_closure20.prototype = {
  61504. call$1: function(module) {
  61505. return module.get$mixins();
  61506. }
  61507. };
  61508. Q._EnvironmentModule__EnvironmentModule_closure21.prototype = {
  61509. call$1: function(module) {
  61510. return module.get$transitivelyContainsCss();
  61511. }
  61512. };
  61513. Q._EnvironmentModule__EnvironmentModule_closure22.prototype = {
  61514. call$1: function(module) {
  61515. return module.get$transitivelyContainsExtensions();
  61516. }
  61517. };
  61518. E._EvaluateVisitor2.prototype = {
  61519. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap2: function(functions, importCache, logger, nodeImporter, sourceMap) {
  61520. var t6, t7, t8, t9, t10, t11, t12, metaFunctions, metaMixins, cur, _i, metaModule, module, $function, _this = this,
  61521. _s9_ = "sass:meta",
  61522. t1 = type$.legacy_String,
  61523. t2 = type$.legacy_VariableDeclaration_2,
  61524. t3 = S.SpanScanner$(string$.x40functgl, _s9_),
  61525. t4 = type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2,
  61526. t5 = type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2;
  61527. t3 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t3, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure29(_this), t4)], t5);
  61528. t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
  61529. t6 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t6, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure30(_this), t4)], t5);
  61530. t7 = S.SpanScanner$(string$.x40functf, _s9_);
  61531. t7 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t7, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure31(_this), t4)], t5);
  61532. t8 = S.SpanScanner$(string$.x40functm, _s9_);
  61533. t8 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t8, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure32(_this), t4)], t5);
  61534. t9 = S.SpanScanner$("@function content-exists() {", _s9_);
  61535. t9 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t9, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure33(_this), t4)], t5);
  61536. t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
  61537. t10 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t10, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure34(_this), t4)], t5);
  61538. t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
  61539. t11 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t11, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure35(_this), t4)], t5);
  61540. t12 = S.SpanScanner$(string$.x40functge, _s9_);
  61541. t4 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t12, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure36(_this), t4)], t5);
  61542. t5 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
  61543. metaFunctions = [new Q.BuiltInCallable0("global-variable-exists", t3), new Q.BuiltInCallable0("variable-exists", t6), new Q.BuiltInCallable0("function-exists", t7), new Q.BuiltInCallable0("mixin-exists", t8), new Q.BuiltInCallable0("content-exists", t9), new Q.BuiltInCallable0("module-variables", t10), new Q.BuiltInCallable0("module-functions", t11), new Q.BuiltInCallable0("get-function", t4), new S.AsyncBuiltInCallable0("call", new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t5, C.C_StderrLogger).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure37(_this))];
  61544. t1 = type$.JSArray_legacy_AsyncBuiltInCallable_2;
  61545. metaMixins = H.setRuntimeTypeInfo([S.AsyncBuiltInCallable$mixin0("load-css", "$module, $with: null", new E._EvaluateVisitor_closure38(_this), _s9_)], t1);
  61546. t1 = H.setRuntimeTypeInfo([], t1);
  61547. for (t2 = $.$get$global6(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  61548. cur = t2.__internal$_current;
  61549. t1.push(cur);
  61550. }
  61551. for (_i = 0; _i < 9; ++_i)
  61552. t1.push(metaFunctions[_i]);
  61553. metaModule = Q.BuiltInModule$0("meta", t1, metaMixins, null, type$.legacy_AsyncBuiltInCallable_2);
  61554. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInModule_legacy_AsyncBuiltInCallable_2);
  61555. for (t2 = $.$get$coreModules0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  61556. cur = t2.__internal$_current;
  61557. t1.push(cur);
  61558. }
  61559. t1.push(metaModule);
  61560. t2 = t1.length;
  61561. t3 = _this._async_evaluate0$_builtInModules;
  61562. _i = 0;
  61563. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  61564. module = t1[_i];
  61565. t3.$indexSet(0, module.url, module);
  61566. }
  61567. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncCallable);
  61568. for (t2 = functions.length, _i = 0; _i < functions.length; functions.length === t2 || (0, H.throwConcurrentModificationError)(functions), ++_i)
  61569. t1.push(functions[_i]);
  61570. for (t2 = $.$get$globalFunctions0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  61571. cur = t2.__internal$_current;
  61572. t1.push(cur);
  61573. }
  61574. for (_i = 0; _i < 9; ++_i)
  61575. t1.push(metaFunctions[_i]);
  61576. for (t2 = t1.length, t3 = _this._async_evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  61577. $function = t1[_i];
  61578. t4 = $function.get$name();
  61579. t4.toString;
  61580. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  61581. }
  61582. },
  61583. run$2: function(_, importer, node) {
  61584. return this.run$body$_EvaluateVisitor0(_, importer, node);
  61585. },
  61586. run$body$_EvaluateVisitor0: function(_, importer, node) {
  61587. var $async$goto = 0,
  61588. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_EvaluateResult_2),
  61589. $async$returnValue, $async$self = this;
  61590. var $async$run$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61591. if ($async$errorCode === 1)
  61592. return P._asyncRethrow($async$result, $async$completer);
  61593. while (true)
  61594. switch ($async$goto) {
  61595. case 0:
  61596. // Function start
  61597. $async$returnValue = $async$self._async_evaluate0$_withWarnCallback$1$1(new E._EvaluateVisitor_run_closure2($async$self, node, importer), type$.legacy_FutureOr_legacy_EvaluateResult_2);
  61598. // goto return
  61599. $async$goto = 1;
  61600. break;
  61601. case 1:
  61602. // return
  61603. return P._asyncReturn($async$returnValue, $async$completer);
  61604. }
  61605. });
  61606. return P._asyncStartSync($async$run$2, $async$completer);
  61607. },
  61608. _async_evaluate0$_withWarnCallback$1$1: function(callback, $T) {
  61609. return N.withWarnCallback0(new E._EvaluateVisitor__withWarnCallback_closure2(this), callback, $T._eval$1("0*"));
  61610. },
  61611. _async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  61612. return this._loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  61613. },
  61614. _async_evaluate0$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  61615. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  61616. },
  61617. _async_evaluate0$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  61618. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  61619. },
  61620. _loadModule$body$_EvaluateVisitor0: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  61621. var $async$goto = 0,
  61622. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  61623. $async$returnValue, $async$self = this, t1, builtInModule;
  61624. var $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61625. if ($async$errorCode === 1)
  61626. return P._asyncRethrow($async$result, $async$completer);
  61627. while (true)
  61628. switch ($async$goto) {
  61629. case 0:
  61630. // Function start
  61631. builtInModule = $async$self._async_evaluate0$_builtInModules.$index(0, url);
  61632. if (builtInModule != null) {
  61633. if (configuration != null && !configuration.isImplicit) {
  61634. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  61635. throw H.wrapException($async$self._async_evaluate0$_exception$2(t1, nodeWithSpan.get$span()));
  61636. }
  61637. $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__loadModule_closure5(callback, builtInModule));
  61638. // goto return
  61639. $async$goto = 1;
  61640. break;
  61641. }
  61642. $async$goto = 3;
  61643. return P._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3(stackFrame, nodeWithSpan, new E._EvaluateVisitor__loadModule_closure6($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
  61644. case 3:
  61645. // returning from await.
  61646. case 1:
  61647. // return
  61648. return P._asyncReturn($async$returnValue, $async$completer);
  61649. }
  61650. });
  61651. return P._asyncStartSync($async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  61652. },
  61653. _async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  61654. return this._execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  61655. },
  61656. _async_evaluate0$_execute$2: function(importer, stylesheet) {
  61657. return this._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  61658. },
  61659. _execute$body$_EvaluateVisitor0: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  61660. var $async$goto = 0,
  61661. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Module_legacy_AsyncCallable_2),
  61662. $async$returnValue, $async$self = this, message, existingNode, environment, t3, extender, module, t1, url, t2, alreadyLoaded;
  61663. var $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61664. if ($async$errorCode === 1)
  61665. return P._asyncRethrow($async$result, $async$completer);
  61666. while (true)
  61667. switch ($async$goto) {
  61668. case 0:
  61669. // Function start
  61670. t1 = {};
  61671. url = stylesheet.span.file.url;
  61672. t2 = $async$self._async_evaluate0$_modules;
  61673. alreadyLoaded = t2.$index(0, url);
  61674. if (alreadyLoaded != null) {
  61675. t1 = configuration == null;
  61676. if (!(t1 ? $async$self._async_evaluate0$_configuration : configuration).isImplicit) {
  61677. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + string$.x20was_a : string$.This_mw;
  61678. existingNode = $async$self._async_evaluate0$_moduleNodes.$index(0, url);
  61679. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  61680. if (existingNode != null)
  61681. t2.$indexSet(0, existingNode.get$span(), "original load");
  61682. if (t1)
  61683. t2.$indexSet(0, $async$self._async_evaluate0$_configuration.nodeWithSpan.get$span(), "configuration");
  61684. throw H.wrapException(t2.get$isEmpty(t2) ? $async$self._async_evaluate0$_exception$1(message) : $async$self._async_evaluate0$_multiSpanException$3(message, "new load", t2));
  61685. }
  61686. $async$returnValue = alreadyLoaded;
  61687. // goto return
  61688. $async$goto = 1;
  61689. break;
  61690. }
  61691. environment = Q.AsyncEnvironment$0($async$self._async_evaluate0$_sourceMap);
  61692. t1.css = null;
  61693. t3 = type$.legacy_SimpleSelector_2;
  61694. extender = new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_List_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2, type$.legacy_List_legacy_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2), C.ExtendMode_normal0);
  61695. $async$goto = 3;
  61696. return P._asyncAwait($async$self._async_evaluate0$_withEnvironment$1$2(environment, new E._EvaluateVisitor__execute_closure2(t1, $async$self, importer, stylesheet, extender, configuration), type$.Null), $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan);
  61697. case 3:
  61698. // returning from await.
  61699. module = Q._EnvironmentModule__EnvironmentModule2(environment, t1.css, extender, environment._async_environment0$_forwardedModules);
  61700. t2.$indexSet(0, url, module);
  61701. $async$self._async_evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  61702. $async$returnValue = module;
  61703. // goto return
  61704. $async$goto = 1;
  61705. break;
  61706. case 1:
  61707. // return
  61708. return P._asyncReturn($async$returnValue, $async$completer);
  61709. }
  61710. });
  61711. return P._asyncStartSync($async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  61712. },
  61713. _async_evaluate0$_addOutOfOrderImports$0: function() {
  61714. var t1, statements, _this = this;
  61715. if (_this._async_evaluate0$_outOfOrderImports == null)
  61716. return _this._async_evaluate0$_root.children;
  61717. t1 = new Array(J.get$length$asx(_this._async_evaluate0$_root.children._collection$_source) + _this._async_evaluate0$_outOfOrderImports.length);
  61718. t1.fixed$length = Array;
  61719. statements = new G.FixedLengthListBuilder0(H.setRuntimeTypeInfo(t1, type$.JSArray_legacy_ModifiableCssNode_2), type$.FixedLengthListBuilder_legacy_ModifiableCssNode_2);
  61720. statements.addRange$3(_this._async_evaluate0$_root.children, 0, _this._async_evaluate0$_endOfImports);
  61721. statements.addAll$1(0, _this._async_evaluate0$_outOfOrderImports);
  61722. statements.addRange$2(_this._async_evaluate0$_root.children, _this._async_evaluate0$_endOfImports);
  61723. return statements.build$0();
  61724. },
  61725. _async_evaluate0$_combineCss$2$clone: function(root, clone) {
  61726. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, cur, statements, index, t2, _this = this;
  61727. if (!C.JSArray_methods.any$1(root.get$upstream(), new E._EvaluateVisitor__combineCss_closure8())) {
  61728. selectors = root.get$extender().get$simpleSelectors();
  61729. unsatisfiedExtension = B.firstOrNull0(root.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__combineCss_closure9(selectors)));
  61730. if (unsatisfiedExtension != null)
  61731. _this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  61732. return root.get$css(root);
  61733. }
  61734. sortedModules = _this._async_evaluate0$_topologicalModules$1(root);
  61735. if (clone) {
  61736. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<AsyncCallable0*>*>");
  61737. sortedModules = P.List_List$from(new H.MappedListIterable(sortedModules, new E._EvaluateVisitor__combineCss_closure10(), t1), true, t1._eval$1("ListIterable.E"));
  61738. }
  61739. _this._async_evaluate0$_extendModules$1(sortedModules);
  61740. t1 = type$.JSArray_legacy_CssNode_2;
  61741. imports = H.setRuntimeTypeInfo([], t1);
  61742. css = H.setRuntimeTypeInfo([], t1);
  61743. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  61744. cur = t1.__internal$_current;
  61745. statements = cur.get$css(cur).get$children();
  61746. index = _this._async_evaluate0$_indexAfterImports$1(statements);
  61747. t2 = J.getInterceptor$ax(statements);
  61748. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  61749. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  61750. }
  61751. return new V.CssStylesheet0(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_legacy_CssNode_2), root.get$css(root).get$span());
  61752. },
  61753. _async_evaluate0$_combineCss$1: function(root) {
  61754. return this._async_evaluate0$_combineCss$2$clone(root, false);
  61755. },
  61756. _async_evaluate0$_extendModules$1: function(sortedModules) {
  61757. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  61758. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_List_legacy_Extender_2),
  61759. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_Extension_2);
  61760. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  61761. t2 = t1.get$current(t1);
  61762. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  61763. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__extendModules_closure5(originalSelectors)));
  61764. extenders = downstreamExtenders.$index(0, t2.get$url());
  61765. if (extenders != null)
  61766. t2.get$extender().addExtensions$1(extenders);
  61767. t3 = t2.get$extender();
  61768. if (t3.get$isEmpty(t3))
  61769. continue;
  61770. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  61771. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new E._EvaluateVisitor__extendModules_closure6()), t2.get$extender());
  61772. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  61773. }
  61774. if (unsatisfiedExtensions._collection$_length !== 0)
  61775. this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  61776. },
  61777. _async_evaluate0$_throwForUnsatisfiedExtension$1: function(extension) {
  61778. throw H.wrapException(E.SassException$0(string$.The_ta + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  61779. },
  61780. _async_evaluate0$_topologicalModules$1: function(root) {
  61781. var t1 = type$.legacy_Module_legacy_AsyncCallable_2,
  61782. sorted = Q.QueueList$(null, t1);
  61783. new E._EvaluateVisitor__topologicalModules_visitModule2(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  61784. return sorted;
  61785. },
  61786. _async_evaluate0$_indexAfterImports$1: function(statements) {
  61787. var t1, t2, t3, lastImport, i, statement;
  61788. for (t1 = J.getInterceptor$asx(statements), t2 = type$.legacy_CssComment_2, t3 = type$.legacy_CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  61789. statement = t1.$index(statements, i);
  61790. if (t3._is(statement))
  61791. lastImport = i;
  61792. else if (!t2._is(statement))
  61793. break;
  61794. }
  61795. return lastImport + 1;
  61796. },
  61797. visitStylesheet$1: function(node) {
  61798. return this.visitStylesheet$body$_EvaluateVisitor0(node);
  61799. },
  61800. visitStylesheet$body$_EvaluateVisitor0: function(node) {
  61801. var $async$goto = 0,
  61802. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  61803. $async$returnValue, $async$self = this, t1, t2, _i;
  61804. var $async$visitStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61805. if ($async$errorCode === 1)
  61806. return P._asyncRethrow($async$result, $async$completer);
  61807. while (true)
  61808. switch ($async$goto) {
  61809. case 0:
  61810. // Function start
  61811. t1 = node.children, t2 = t1.length, _i = 0;
  61812. case 3:
  61813. // for condition
  61814. if (!(_i < t2)) {
  61815. // goto after for
  61816. $async$goto = 5;
  61817. break;
  61818. }
  61819. $async$goto = 6;
  61820. return P._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  61821. case 6:
  61822. // returning from await.
  61823. case 4:
  61824. // for update
  61825. ++_i;
  61826. // goto for condition
  61827. $async$goto = 3;
  61828. break;
  61829. case 5:
  61830. // after for
  61831. $async$returnValue = null;
  61832. // goto return
  61833. $async$goto = 1;
  61834. break;
  61835. case 1:
  61836. // return
  61837. return P._asyncReturn($async$returnValue, $async$completer);
  61838. }
  61839. });
  61840. return P._asyncStartSync($async$visitStylesheet$1, $async$completer);
  61841. },
  61842. visitAtRootRule$1: function(node) {
  61843. return this.visitAtRootRule$body$_EvaluateVisitor0(node);
  61844. },
  61845. visitAtRootRule$body$_EvaluateVisitor0: function(node) {
  61846. var $async$goto = 0,
  61847. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  61848. $async$returnValue, $async$self = this, root, innerCopy, outerCopy, cur, copy, t1, query, $parent, included, $async$temp1, $async$temp2;
  61849. var $async$visitAtRootRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61850. if ($async$errorCode === 1)
  61851. return P._asyncRethrow($async$result, $async$completer);
  61852. while (true)
  61853. switch ($async$goto) {
  61854. case 0:
  61855. // Function start
  61856. t1 = node.query;
  61857. $async$goto = t1 != null ? 3 : 5;
  61858. break;
  61859. case 3:
  61860. // then
  61861. $async$temp1 = t1;
  61862. $async$temp2 = E;
  61863. $async$goto = 6;
  61864. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(t1, true), $async$visitAtRootRule$1);
  61865. case 6:
  61866. // returning from await.
  61867. $async$result = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure8($async$self, $async$result));
  61868. // goto join
  61869. $async$goto = 4;
  61870. break;
  61871. case 5:
  61872. // else
  61873. $async$result = C.AtRootQuery_UsS0;
  61874. case 4:
  61875. // join
  61876. query = $async$result;
  61877. $parent = $async$self._async_evaluate0$_parent;
  61878. included = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssParentNode_2);
  61879. for (t1 = type$.legacy_CssStylesheet_2; !t1._is($parent);) {
  61880. if (!query.excludes$1($parent))
  61881. included.push($parent);
  61882. $parent = $parent._node2$_parent;
  61883. }
  61884. root = $async$self._async_evaluate0$_trimIncluded$1(included);
  61885. $async$goto = root == $async$self._async_evaluate0$_parent ? 7 : 8;
  61886. break;
  61887. case 7:
  61888. // then
  61889. $async$goto = 9;
  61890. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new E._EvaluateVisitor_visitAtRootRule_closure9($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  61891. case 9:
  61892. // returning from await.
  61893. $async$returnValue = null;
  61894. // goto return
  61895. $async$goto = 1;
  61896. break;
  61897. case 8:
  61898. // join
  61899. innerCopy = included.length === 0 ? null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  61900. for (t1 = H.SubListIterable$(included, 1, null, type$.legacy_ModifiableCssParentNode_2), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  61901. cur = t1.__internal$_current;
  61902. copy = cur.copyWithoutChildren$0();
  61903. copy.addChild$1(outerCopy);
  61904. }
  61905. if (outerCopy != null)
  61906. root.addChild$1(outerCopy);
  61907. $async$goto = 10;
  61908. return P._asyncAwait($async$self._async_evaluate0$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new E._EvaluateVisitor_visitAtRootRule_closure10($async$self, node)), $async$visitAtRootRule$1);
  61909. case 10:
  61910. // returning from await.
  61911. $async$returnValue = null;
  61912. // goto return
  61913. $async$goto = 1;
  61914. break;
  61915. case 1:
  61916. // return
  61917. return P._asyncReturn($async$returnValue, $async$completer);
  61918. }
  61919. });
  61920. return P._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  61921. },
  61922. _async_evaluate0$_trimIncluded$1: function(nodes) {
  61923. var $parent, innermostContiguous, i, t2, root,
  61924. t1 = nodes.length;
  61925. if (t1 === 0)
  61926. return this._async_evaluate0$_root;
  61927. $parent = this._async_evaluate0$_parent;
  61928. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  61929. for (; $parent != nodes[i]; innermostContiguous = null)
  61930. $parent = $parent._node2$_parent;
  61931. if (innermostContiguous == null)
  61932. innermostContiguous = i;
  61933. $parent = $parent._node2$_parent;
  61934. }
  61935. t2 = this._async_evaluate0$_root;
  61936. if ($parent != t2)
  61937. return t2;
  61938. root = nodes[innermostContiguous];
  61939. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  61940. return root;
  61941. },
  61942. _async_evaluate0$_scopeForAtRoot$4: function(node, newParent, query, included) {
  61943. var _this = this,
  61944. scope = new E._EvaluateVisitor__scopeForAtRoot_closure17(_this, newParent, node),
  61945. t1 = query._at_root_query0$_all,
  61946. t2 = t1 || query._at_root_query0$_rule,
  61947. t3 = query.include;
  61948. if (t2 !== t3)
  61949. scope = new E._EvaluateVisitor__scopeForAtRoot_closure18(_this, scope);
  61950. if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
  61951. scope = new E._EvaluateVisitor__scopeForAtRoot_closure19(_this, scope);
  61952. if (_this._async_evaluate0$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
  61953. scope = new E._EvaluateVisitor__scopeForAtRoot_closure20(_this, scope);
  61954. return _this._async_evaluate0$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new E._EvaluateVisitor__scopeForAtRoot_closure21()) ? new E._EvaluateVisitor__scopeForAtRoot_closure22(_this, scope) : scope;
  61955. },
  61956. visitContentBlock$1: function(node) {
  61957. return H.throwExpression(P.UnsupportedError$(string$.Evalua));
  61958. },
  61959. visitContentRule$1: function(node) {
  61960. return this.visitContentRule$body$_EvaluateVisitor0(node);
  61961. },
  61962. visitContentRule$body$_EvaluateVisitor0: function(node) {
  61963. var $async$goto = 0,
  61964. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  61965. $async$returnValue, $async$self = this, $content;
  61966. var $async$visitContentRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  61967. if ($async$errorCode === 1)
  61968. return P._asyncRethrow($async$result, $async$completer);
  61969. while (true)
  61970. switch ($async$goto) {
  61971. case 0:
  61972. // Function start
  61973. $content = $async$self._async_evaluate0$_environment._async_environment0$_content;
  61974. if ($content == null) {
  61975. $async$returnValue = null;
  61976. // goto return
  61977. $async$goto = 1;
  61978. break;
  61979. }
  61980. $async$goto = 3;
  61981. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4(node.$arguments, $content, node, new E._EvaluateVisitor_visitContentRule_closure2($async$self, $content)), $async$visitContentRule$1);
  61982. case 3:
  61983. // returning from await.
  61984. $async$returnValue = null;
  61985. // goto return
  61986. $async$goto = 1;
  61987. break;
  61988. case 1:
  61989. // return
  61990. return P._asyncReturn($async$returnValue, $async$completer);
  61991. }
  61992. });
  61993. return P._asyncStartSync($async$visitContentRule$1, $async$completer);
  61994. },
  61995. visitDebugRule$1: function(node) {
  61996. return this.visitDebugRule$body$_EvaluateVisitor0(node);
  61997. },
  61998. visitDebugRule$body$_EvaluateVisitor0: function(node) {
  61999. var $async$goto = 0,
  62000. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62001. $async$returnValue, $async$self = this, value, t1;
  62002. var $async$visitDebugRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62003. if ($async$errorCode === 1)
  62004. return P._asyncRethrow($async$result, $async$completer);
  62005. while (true)
  62006. switch ($async$goto) {
  62007. case 0:
  62008. // Function start
  62009. $async$goto = 3;
  62010. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  62011. case 3:
  62012. // returning from await.
  62013. value = $async$result;
  62014. t1 = value instanceof D.SassString0 ? value.text : J.toString$0$(value);
  62015. $async$self._async_evaluate0$_logger.debug$2(t1, node.span);
  62016. $async$returnValue = null;
  62017. // goto return
  62018. $async$goto = 1;
  62019. break;
  62020. case 1:
  62021. // return
  62022. return P._asyncReturn($async$returnValue, $async$completer);
  62023. }
  62024. });
  62025. return P._asyncStartSync($async$visitDebugRule$1, $async$completer);
  62026. },
  62027. visitDeclaration$1: function(node) {
  62028. return this.visitDeclaration$body$_EvaluateVisitor0(node);
  62029. },
  62030. visitDeclaration$body$_EvaluateVisitor0: function(node) {
  62031. var $async$goto = 0,
  62032. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62033. $async$returnValue, $async$self = this, $name, t1, cssValue, t2, oldDeclarationName, $async$temp1;
  62034. var $async$visitDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62035. if ($async$errorCode === 1)
  62036. return P._asyncRethrow($async$result, $async$completer);
  62037. while (true)
  62038. switch ($async$goto) {
  62039. case 0:
  62040. // Function start
  62041. if (!($async$self._async_evaluate0$_styleRule != null && !$async$self._async_evaluate0$_atRootExcludingStyleRule) && !$async$self._async_evaluate0$_inUnknownAtRule && !$async$self._async_evaluate0$_inKeyframes)
  62042. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Declar, node.span));
  62043. $async$goto = 3;
  62044. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(node.name, true), $async$visitDeclaration$1);
  62045. case 3:
  62046. // returning from await.
  62047. $name = $async$result;
  62048. t1 = $async$self._async_evaluate0$_declarationName;
  62049. if (t1 != null)
  62050. $name = new F.CssValue0(t1 + "-" + H.S($name.get$value($name)), $name.get$span(), type$.CssValue_legacy_String_2);
  62051. t1 = node.value;
  62052. $async$goto = t1 == null ? 4 : 6;
  62053. break;
  62054. case 4:
  62055. // then
  62056. $async$result = null;
  62057. // goto join
  62058. $async$goto = 5;
  62059. break;
  62060. case 6:
  62061. // else
  62062. $async$temp1 = F;
  62063. $async$goto = 7;
  62064. return P._asyncAwait(t1.accept$1($async$self), $async$visitDeclaration$1);
  62065. case 7:
  62066. // returning from await.
  62067. $async$result = new $async$temp1.CssValue0($async$result, t1.get$span(), type$.CssValue_legacy_Value_2);
  62068. case 5:
  62069. // join
  62070. cssValue = $async$result;
  62071. if (cssValue != null) {
  62072. t2 = cssValue.value;
  62073. t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
  62074. } else
  62075. t2 = false;
  62076. if (t2) {
  62077. t2 = $async$self._async_evaluate0$_parent;
  62078. t1 = $async$self._async_evaluate0$_expressionNode$1(t1);
  62079. t1 = t1 == null ? null : t1.get$span();
  62080. t2.addChild$1(L.ModifiableCssDeclaration$0($name, cssValue, node.span, t1));
  62081. } else if (J.startsWith$1$s($name.get$value($name), "--"))
  62082. throw H.wrapException($async$self._async_evaluate0$_exception$2("Custom property values may not be empty.", t1.get$span()));
  62083. $async$goto = node.children != null ? 8 : 9;
  62084. break;
  62085. case 8:
  62086. // then
  62087. oldDeclarationName = $async$self._async_evaluate0$_declarationName;
  62088. $async$self._async_evaluate0$_declarationName = $name.get$value($name);
  62089. $async$goto = 10;
  62090. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new E._EvaluateVisitor_visitDeclaration_closure2($async$self, node), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  62091. case 10:
  62092. // returning from await.
  62093. $async$self._async_evaluate0$_declarationName = oldDeclarationName;
  62094. case 9:
  62095. // join
  62096. $async$returnValue = null;
  62097. // goto return
  62098. $async$goto = 1;
  62099. break;
  62100. case 1:
  62101. // return
  62102. return P._asyncReturn($async$returnValue, $async$completer);
  62103. }
  62104. });
  62105. return P._asyncStartSync($async$visitDeclaration$1, $async$completer);
  62106. },
  62107. visitEachRule$1: function(node) {
  62108. return this.visitEachRule$body$_EvaluateVisitor0(node);
  62109. },
  62110. visitEachRule$body$_EvaluateVisitor0: function(node) {
  62111. var $async$goto = 0,
  62112. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62113. $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
  62114. var $async$visitEachRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62115. if ($async$errorCode === 1)
  62116. return P._asyncRethrow($async$result, $async$completer);
  62117. while (true)
  62118. switch ($async$goto) {
  62119. case 0:
  62120. // Function start
  62121. t1 = node.list;
  62122. $async$goto = 3;
  62123. return P._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  62124. case 3:
  62125. // returning from await.
  62126. list = $async$result;
  62127. nodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t1);
  62128. setVariables = node.variables.length === 1 ? new E._EvaluateVisitor_visitEachRule_closure8($async$self, node, nodeWithSpan) : new E._EvaluateVisitor_visitEachRule_closure9($async$self, node, nodeWithSpan);
  62129. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitEachRule_closure10($async$self, list, setVariables, node), true, type$.legacy_Value_2);
  62130. // goto return
  62131. $async$goto = 1;
  62132. break;
  62133. case 1:
  62134. // return
  62135. return P._asyncReturn($async$returnValue, $async$completer);
  62136. }
  62137. });
  62138. return P._asyncStartSync($async$visitEachRule$1, $async$completer);
  62139. },
  62140. _async_evaluate0$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  62141. var i,
  62142. list = value.get$asList(),
  62143. t1 = variables.length,
  62144. minLength = Math.min(t1, list.length);
  62145. for (i = 0; i < minLength; ++i)
  62146. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  62147. for (i = minLength; i < t1; ++i)
  62148. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], C.C_SassNull, nodeWithSpan);
  62149. },
  62150. visitErrorRule$1: function(node) {
  62151. return this.visitErrorRule$body$_EvaluateVisitor0(node);
  62152. },
  62153. visitErrorRule$body$_EvaluateVisitor0: function(node) {
  62154. var $async$goto = 0,
  62155. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62156. $async$self = this, $async$temp1, $async$temp2;
  62157. var $async$visitErrorRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62158. if ($async$errorCode === 1)
  62159. return P._asyncRethrow($async$result, $async$completer);
  62160. while (true)
  62161. switch ($async$goto) {
  62162. case 0:
  62163. // Function start
  62164. $async$temp1 = H;
  62165. $async$temp2 = J;
  62166. $async$goto = 2;
  62167. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  62168. case 2:
  62169. // returning from await.
  62170. throw $async$temp1.wrapException($async$self._async_evaluate0$_exception$2($async$temp2.toString$0$($async$result), node.span));
  62171. // implicit return
  62172. return P._asyncReturn(null, $async$completer);
  62173. }
  62174. });
  62175. return P._asyncStartSync($async$visitErrorRule$1, $async$completer);
  62176. },
  62177. visitExtendRule$1: function(node) {
  62178. return this.visitExtendRule$body$_EvaluateVisitor0(node);
  62179. },
  62180. visitExtendRule$body$_EvaluateVisitor0: function(node) {
  62181. var $async$goto = 0,
  62182. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62183. $async$returnValue, $async$self = this, targetText, t1, t2, t3, _i, t4;
  62184. var $async$visitExtendRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62185. if ($async$errorCode === 1)
  62186. return P._asyncRethrow($async$result, $async$completer);
  62187. while (true)
  62188. switch ($async$goto) {
  62189. case 0:
  62190. // Function start
  62191. if (!($async$self._async_evaluate0$_styleRule != null && !$async$self._async_evaluate0$_atRootExcludingStyleRule) || $async$self._async_evaluate0$_declarationName != null)
  62192. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.x40exten, node.span));
  62193. $async$goto = 3;
  62194. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  62195. case 3:
  62196. // returning from await.
  62197. targetText = $async$result;
  62198. for (t1 = $async$self._async_evaluate0$_adjustParseError$2(targetText, new E._EvaluateVisitor_visitExtendRule_closure2($async$self, targetText)).components, t2 = t1.length, t3 = type$.legacy_CompoundSelector_2, _i = 0; _i < t2; ++_i) {
  62199. t4 = t1[_i].components;
  62200. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector0))
  62201. throw H.wrapException(E.SassFormatException$0("complex selectors may not be extended.", targetText.get$span()));
  62202. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  62203. if (t4.length !== 1)
  62204. throw H.wrapException(E.SassFormatException$0(string$.compou + C.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.get$span()));
  62205. $async$self._async_evaluate0$_extender.addExtension$4($async$self._async_evaluate0$_styleRule.selector, C.JSArray_methods.get$first(t4), node, $async$self._async_evaluate0$_mediaQueries);
  62206. }
  62207. $async$returnValue = null;
  62208. // goto return
  62209. $async$goto = 1;
  62210. break;
  62211. case 1:
  62212. // return
  62213. return P._asyncReturn($async$returnValue, $async$completer);
  62214. }
  62215. });
  62216. return P._asyncStartSync($async$visitExtendRule$1, $async$completer);
  62217. },
  62218. visitAtRule$1: function(node) {
  62219. return this.visitAtRule$body$_EvaluateVisitor0(node);
  62220. },
  62221. visitAtRule$body$_EvaluateVisitor0: function(node) {
  62222. var $async$goto = 0,
  62223. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62224. $async$returnValue, $async$self = this, $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule;
  62225. var $async$visitAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62226. if ($async$errorCode === 1)
  62227. return P._asyncRethrow($async$result, $async$completer);
  62228. while (true)
  62229. switch ($async$goto) {
  62230. case 0:
  62231. // Function start
  62232. if ($async$self._async_evaluate0$_declarationName != null)
  62233. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
  62234. $async$goto = 3;
  62235. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  62236. case 3:
  62237. // returning from await.
  62238. $name = $async$result;
  62239. t1 = node.value;
  62240. $async$goto = t1 == null ? 4 : 6;
  62241. break;
  62242. case 4:
  62243. // then
  62244. $async$result = null;
  62245. // goto join
  62246. $async$goto = 5;
  62247. break;
  62248. case 6:
  62249. // else
  62250. $async$goto = 7;
  62251. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitAtRule$1);
  62252. case 7:
  62253. // returning from await.
  62254. case 5:
  62255. // join
  62256. value = $async$result;
  62257. if (node.children == null) {
  62258. t1 = $async$self._async_evaluate0$_parent;
  62259. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  62260. t1.addChild$1(new U.ModifiableCssAtRule0($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2));
  62261. $async$returnValue = null;
  62262. // goto return
  62263. $async$goto = 1;
  62264. break;
  62265. }
  62266. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  62267. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  62268. if (B.unvendor0($name.get$value($name)) === "keyframes")
  62269. $async$self._async_evaluate0$_inKeyframes = true;
  62270. else
  62271. $async$self._async_evaluate0$_inUnknownAtRule = true;
  62272. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  62273. $async$goto = 8;
  62274. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitAtRule_closure5($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitAtRule_closure6(), type$.legacy_ModifiableCssAtRule_2, type$.Null), $async$visitAtRule$1);
  62275. case 8:
  62276. // returning from await.
  62277. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  62278. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  62279. $async$returnValue = null;
  62280. // goto return
  62281. $async$goto = 1;
  62282. break;
  62283. case 1:
  62284. // return
  62285. return P._asyncReturn($async$returnValue, $async$completer);
  62286. }
  62287. });
  62288. return P._asyncStartSync($async$visitAtRule$1, $async$completer);
  62289. },
  62290. visitForRule$1: function(node) {
  62291. return this.visitForRule$body$_EvaluateVisitor0(node);
  62292. },
  62293. visitForRule$body$_EvaluateVisitor0: function(node) {
  62294. var $async$goto = 0,
  62295. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62296. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  62297. var $async$visitForRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62298. if ($async$errorCode === 1)
  62299. return P._asyncRethrow($async$result, $async$completer);
  62300. while (true)
  62301. switch ($async$goto) {
  62302. case 0:
  62303. // Function start
  62304. t1 = {};
  62305. t2 = node.from;
  62306. t3 = type$.legacy_SassNumber_2;
  62307. $async$goto = 3;
  62308. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t2, new E._EvaluateVisitor_visitForRule_closure14($async$self, node), t3), $async$visitForRule$1);
  62309. case 3:
  62310. // returning from await.
  62311. fromNumber = $async$result;
  62312. t4 = node.to;
  62313. $async$goto = 4;
  62314. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t4, new E._EvaluateVisitor_visitForRule_closure15($async$self, node), t3), $async$visitForRule$1);
  62315. case 4:
  62316. // returning from await.
  62317. toNumber = $async$result;
  62318. from = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitForRule_closure16(fromNumber, toNumber));
  62319. to = t1.to = $async$self._async_evaluate0$_addExceptionSpan$2(t4, new E._EvaluateVisitor_visitForRule_closure17(toNumber));
  62320. direction = from > to ? -1 : 1;
  62321. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  62322. $async$returnValue = null;
  62323. // goto return
  62324. $async$goto = 1;
  62325. break;
  62326. }
  62327. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitForRule_closure18(t1, $async$self, node, from, direction), true, type$.legacy_Value_2);
  62328. // goto return
  62329. $async$goto = 1;
  62330. break;
  62331. case 1:
  62332. // return
  62333. return P._asyncReturn($async$returnValue, $async$completer);
  62334. }
  62335. });
  62336. return P._asyncStartSync($async$visitForRule$1, $async$completer);
  62337. },
  62338. visitForwardRule$1: function(node) {
  62339. return this.visitForwardRule$body$_EvaluateVisitor0(node);
  62340. },
  62341. visitForwardRule$body$_EvaluateVisitor0: function(node) {
  62342. var $async$goto = 0,
  62343. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62344. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  62345. var $async$visitForwardRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62346. if ($async$errorCode === 1)
  62347. return P._asyncRethrow($async$result, $async$completer);
  62348. while (true)
  62349. switch ($async$goto) {
  62350. case 0:
  62351. // Function start
  62352. oldConfiguration = $async$self._async_evaluate0$_configuration;
  62353. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  62354. t1 = node.configuration;
  62355. t2 = t1.length;
  62356. t3 = node.url;
  62357. $async$goto = t2 !== 0 ? 3 : 5;
  62358. break;
  62359. case 3:
  62360. // then
  62361. $async$goto = 6;
  62362. return P._asyncAwait($async$self._async_evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  62363. case 6:
  62364. // returning from await.
  62365. newConfiguration = $async$result;
  62366. $async$goto = 7;
  62367. return P._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure5($async$self, node), newConfiguration), $async$visitForwardRule$1);
  62368. case 7:
  62369. // returning from await.
  62370. t3 = type$.legacy_String;
  62371. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  62372. for (_i = 0; _i < t2; ++_i) {
  62373. variable = t1[_i];
  62374. if (!variable.isGuarded)
  62375. t4.add$1(0, variable.name);
  62376. }
  62377. $async$self._async_evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  62378. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  62379. for (_i = 0; _i < t2; ++_i)
  62380. t3.add$1(0, t1[_i].name);
  62381. $async$self._async_evaluate0$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  62382. // goto join
  62383. $async$goto = 4;
  62384. break;
  62385. case 5:
  62386. // else
  62387. $async$self._async_evaluate0$_configuration = adjustedConfiguration;
  62388. $async$goto = 8;
  62389. return P._asyncAwait($async$self._async_evaluate0$_loadModule$4(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure6($async$self, node)), $async$visitForwardRule$1);
  62390. case 8:
  62391. // returning from await.
  62392. $async$self._async_evaluate0$_configuration = oldConfiguration;
  62393. case 4:
  62394. // join
  62395. $async$returnValue = null;
  62396. // goto return
  62397. $async$goto = 1;
  62398. break;
  62399. case 1:
  62400. // return
  62401. return P._asyncReturn($async$returnValue, $async$completer);
  62402. }
  62403. });
  62404. return P._asyncStartSync($async$visitForwardRule$1, $async$completer);
  62405. },
  62406. _async_evaluate0$_addForwardConfiguration$2: function(configuration, node) {
  62407. return this._addForwardConfiguration$body$_EvaluateVisitor0(configuration, node);
  62408. },
  62409. _addForwardConfiguration$body$_EvaluateVisitor0: function(configuration, node) {
  62410. var $async$goto = 0,
  62411. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Configuration_2),
  62412. $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  62413. var $async$_async_evaluate0$_addForwardConfiguration$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62414. if ($async$errorCode === 1)
  62415. return P._asyncRethrow($async$result, $async$completer);
  62416. while (true)
  62417. switch ($async$goto) {
  62418. case 0:
  62419. // Function start
  62420. t1 = configuration._configuration$_values;
  62421. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue_2), type$.legacy_String, type$.legacy_ConfiguredValue_2);
  62422. t2 = node.configuration, t3 = t2.length, _i = 0;
  62423. case 3:
  62424. // for condition
  62425. if (!(_i < t3)) {
  62426. // goto after for
  62427. $async$goto = 5;
  62428. break;
  62429. }
  62430. variable = t2[_i];
  62431. if (variable.isGuarded) {
  62432. t4 = variable.name;
  62433. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  62434. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull)) {
  62435. newValues.$indexSet(0, t4, t5);
  62436. // goto for update
  62437. $async$goto = 4;
  62438. break;
  62439. }
  62440. }
  62441. t4 = variable.name;
  62442. t5 = variable.expression;
  62443. $async$temp1 = newValues;
  62444. $async$temp2 = t4;
  62445. $async$temp3 = Z;
  62446. $async$goto = 6;
  62447. return P._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate0$_addForwardConfiguration$2);
  62448. case 6:
  62449. // returning from await.
  62450. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate0$_expressionNode$1(t5)));
  62451. case 4:
  62452. // for update
  62453. ++_i;
  62454. // goto for condition
  62455. $async$goto = 3;
  62456. break;
  62457. case 5:
  62458. // after for
  62459. $async$returnValue = new A.Configuration0(newValues, node, false);
  62460. // goto return
  62461. $async$goto = 1;
  62462. break;
  62463. case 1:
  62464. // return
  62465. return P._asyncReturn($async$returnValue, $async$completer);
  62466. }
  62467. });
  62468. return P._asyncStartSync($async$_async_evaluate0$_addForwardConfiguration$2, $async$completer);
  62469. },
  62470. _async_evaluate0$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  62471. var t1, t2, t3, _i, $name;
  62472. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys()), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  62473. $name = t2[_i];
  62474. if (except.contains$1(0, $name))
  62475. continue;
  62476. if (!downstream._configuration$_values.containsKey$1($name))
  62477. if (!t1.get$isEmpty(t1))
  62478. t1.remove$1(0, $name);
  62479. }
  62480. },
  62481. _async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  62482. configuration._configuration$_values.forEach$1(0, new E._EvaluateVisitor__assertConfigurationIsEmpty_closure2(this, only, nameInError));
  62483. },
  62484. _async_evaluate0$_assertConfigurationIsEmpty$1: function(configuration) {
  62485. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  62486. },
  62487. _async_evaluate0$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  62488. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  62489. },
  62490. _async_evaluate0$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  62491. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  62492. },
  62493. visitFunctionRule$1: function(node) {
  62494. return this.visitFunctionRule$body$_EvaluateVisitor0(node);
  62495. },
  62496. visitFunctionRule$body$_EvaluateVisitor0: function(node) {
  62497. var $async$goto = 0,
  62498. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62499. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  62500. var $async$visitFunctionRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62501. if ($async$errorCode === 1)
  62502. return P._asyncRethrow($async$result, $async$completer);
  62503. while (true)
  62504. switch ($async$goto) {
  62505. case 0:
  62506. // Function start
  62507. t1 = $async$self._async_evaluate0$_environment;
  62508. t2 = t1.closure$0();
  62509. t3 = t1._async_environment0$_functions;
  62510. index = t3.length - 1;
  62511. t4 = node.name;
  62512. t1._async_environment0$_functionIndices.$indexSet(0, t4, index);
  62513. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_legacy_AsyncEnvironment_2));
  62514. $async$returnValue = null;
  62515. // goto return
  62516. $async$goto = 1;
  62517. break;
  62518. case 1:
  62519. // return
  62520. return P._asyncReturn($async$returnValue, $async$completer);
  62521. }
  62522. });
  62523. return P._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  62524. },
  62525. visitIfRule$1: function(node) {
  62526. return this.visitIfRule$body$_EvaluateVisitor0(node);
  62527. },
  62528. visitIfRule$body$_EvaluateVisitor0: function(node) {
  62529. var $async$goto = 0,
  62530. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62531. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
  62532. var $async$visitIfRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62533. if ($async$errorCode === 1)
  62534. return P._asyncRethrow($async$result, $async$completer);
  62535. while (true)
  62536. switch ($async$goto) {
  62537. case 0:
  62538. // Function start
  62539. _box_0 = {};
  62540. _box_0.clause = node.lastClause;
  62541. t1 = node.clauses, t2 = t1.length, _i = 0;
  62542. case 3:
  62543. // for condition
  62544. if (!(_i < t2)) {
  62545. // goto after for
  62546. $async$goto = 5;
  62547. break;
  62548. }
  62549. clauseToCheck = t1[_i];
  62550. $async$goto = 6;
  62551. return P._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  62552. case 6:
  62553. // returning from await.
  62554. if ($async$result.get$isTruthy()) {
  62555. _box_0.clause = clauseToCheck;
  62556. // goto after for
  62557. $async$goto = 5;
  62558. break;
  62559. }
  62560. case 4:
  62561. // for update
  62562. ++_i;
  62563. // goto for condition
  62564. $async$goto = 3;
  62565. break;
  62566. case 5:
  62567. // after for
  62568. t1 = _box_0.clause;
  62569. if (t1 == null) {
  62570. $async$returnValue = null;
  62571. // goto return
  62572. $async$goto = 1;
  62573. break;
  62574. }
  62575. $async$goto = 7;
  62576. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitIfRule_closure2(_box_0, $async$self), true, t1.hasDeclarations, type$.legacy_Value_2), $async$visitIfRule$1);
  62577. case 7:
  62578. // returning from await.
  62579. $async$returnValue = $async$result;
  62580. // goto return
  62581. $async$goto = 1;
  62582. break;
  62583. case 1:
  62584. // return
  62585. return P._asyncReturn($async$returnValue, $async$completer);
  62586. }
  62587. });
  62588. return P._asyncStartSync($async$visitIfRule$1, $async$completer);
  62589. },
  62590. visitImportRule$1: function(node) {
  62591. return this.visitImportRule$body$_EvaluateVisitor0(node);
  62592. },
  62593. visitImportRule$body$_EvaluateVisitor0: function(node) {
  62594. var $async$goto = 0,
  62595. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62596. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  62597. var $async$visitImportRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62598. if ($async$errorCode === 1)
  62599. return P._asyncRethrow($async$result, $async$completer);
  62600. while (true)
  62601. switch ($async$goto) {
  62602. case 0:
  62603. // Function start
  62604. t1 = node.imports, t2 = t1.length, t3 = type$.legacy_StaticImport_2, _i = 0;
  62605. case 3:
  62606. // for condition
  62607. if (!(_i < t2)) {
  62608. // goto after for
  62609. $async$goto = 5;
  62610. break;
  62611. }
  62612. $import = t1[_i];
  62613. $async$goto = $import instanceof B.DynamicImport0 ? 6 : 8;
  62614. break;
  62615. case 6:
  62616. // then
  62617. $async$goto = 9;
  62618. return P._asyncAwait($async$self._async_evaluate0$_visitDynamicImport$1($import), $async$visitImportRule$1);
  62619. case 9:
  62620. // returning from await.
  62621. // goto join
  62622. $async$goto = 7;
  62623. break;
  62624. case 8:
  62625. // else
  62626. $async$goto = 10;
  62627. return P._asyncAwait($async$self._async_evaluate0$_visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  62628. case 10:
  62629. // returning from await.
  62630. case 7:
  62631. // join
  62632. case 4:
  62633. // for update
  62634. ++_i;
  62635. // goto for condition
  62636. $async$goto = 3;
  62637. break;
  62638. case 5:
  62639. // after for
  62640. $async$returnValue = null;
  62641. // goto return
  62642. $async$goto = 1;
  62643. break;
  62644. case 1:
  62645. // return
  62646. return P._asyncReturn($async$returnValue, $async$completer);
  62647. }
  62648. });
  62649. return P._asyncStartSync($async$visitImportRule$1, $async$completer);
  62650. },
  62651. _async_evaluate0$_visitDynamicImport$1: function($import) {
  62652. return this._async_evaluate0$_withStackFrame$1$3("@import", $import, new E._EvaluateVisitor__visitDynamicImport_closure2(this, $import), type$.void);
  62653. },
  62654. _async_evaluate0$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  62655. return this._loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport);
  62656. },
  62657. _async_evaluate0$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  62658. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  62659. },
  62660. _async_evaluate0$_loadStylesheet$3$forImport: function(url, span, forImport) {
  62661. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  62662. },
  62663. _loadStylesheet$body$_EvaluateVisitor0: function(url, span, baseUrl, forImport) {
  62664. var $async$goto = 0,
  62665. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2),
  62666. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, stylesheet, tuple, error, error0, message, t1, t2, t3, exception, $async$exception;
  62667. var $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62668. if ($async$errorCode === 1) {
  62669. $async$currentError = $async$result;
  62670. $async$goto = $async$handler;
  62671. }
  62672. while (true)
  62673. switch ($async$goto) {
  62674. case 0:
  62675. // Function start
  62676. $async$handler = 4;
  62677. $async$self._async_evaluate0$_importSpan = span;
  62678. $async$goto = $async$self._async_evaluate0$_nodeImporter != null ? 7 : 9;
  62679. break;
  62680. case 7:
  62681. // then
  62682. $async$goto = 10;
  62683. return P._asyncAwait($async$self._async_evaluate0$_importLikeNode$2(url, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  62684. case 10:
  62685. // returning from await.
  62686. stylesheet = $async$result;
  62687. if (stylesheet != null) {
  62688. $async$returnValue = new S.Tuple2(null, stylesheet, type$.Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2);
  62689. $async$next = [1];
  62690. // goto finally
  62691. $async$goto = 5;
  62692. break;
  62693. }
  62694. // goto join
  62695. $async$goto = 8;
  62696. break;
  62697. case 9:
  62698. // else
  62699. t1 = P.Uri_parse(url);
  62700. t2 = $async$self._async_evaluate0$_importer;
  62701. if (baseUrl == null) {
  62702. t3 = $async$self._async_evaluate0$_stylesheet;
  62703. t3 = t3 == null ? null : t3.span;
  62704. t3 = t3 == null ? null : t3.file.url;
  62705. } else
  62706. t3 = baseUrl;
  62707. $async$goto = 11;
  62708. return P._asyncAwait($async$self._async_evaluate0$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  62709. case 11:
  62710. // returning from await.
  62711. tuple = $async$result;
  62712. if (tuple != null) {
  62713. $async$returnValue = tuple;
  62714. $async$next = [1];
  62715. // goto finally
  62716. $async$goto = 5;
  62717. break;
  62718. }
  62719. case 8:
  62720. // join
  62721. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  62722. throw H.wrapException(string$.x22packa);
  62723. else
  62724. throw H.wrapException("Can't find stylesheet to import.");
  62725. $async$next.push(6);
  62726. // goto finally
  62727. $async$goto = 5;
  62728. break;
  62729. case 4:
  62730. // catch
  62731. $async$handler = 3;
  62732. $async$exception = $async$currentError;
  62733. t1 = H.unwrapException($async$exception);
  62734. if (t1 instanceof E.SassException0) {
  62735. error = t1;
  62736. t1 = $async$self._async_evaluate0$_exception$2(error._span_exception$_message, error.get$span());
  62737. throw H.wrapException(t1);
  62738. } else {
  62739. error0 = t1;
  62740. message = null;
  62741. try {
  62742. message = H._asStringS(J.get$message$x(error0));
  62743. } catch (exception) {
  62744. H.unwrapException($async$exception);
  62745. message = J.toString$0$(error0);
  62746. }
  62747. t1 = $async$self._async_evaluate0$_exception$1(message);
  62748. throw H.wrapException(t1);
  62749. }
  62750. $async$next.push(6);
  62751. // goto finally
  62752. $async$goto = 5;
  62753. break;
  62754. case 3:
  62755. // uncaught
  62756. $async$next = [2];
  62757. case 5:
  62758. // finally
  62759. $async$handler = 2;
  62760. $async$self._async_evaluate0$_importSpan = null;
  62761. // goto the next finally handler
  62762. $async$goto = $async$next.pop();
  62763. break;
  62764. case 6:
  62765. // after finally
  62766. case 1:
  62767. // return
  62768. return P._asyncReturn($async$returnValue, $async$completer);
  62769. case 2:
  62770. // rethrow
  62771. return P._asyncRethrow($async$currentError, $async$completer);
  62772. }
  62773. });
  62774. return P._asyncStartSync($async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  62775. },
  62776. _async_evaluate0$_importLikeNode$2: function(originalUrl, forImport) {
  62777. return this._importLikeNode$body$_EvaluateVisitor(originalUrl, forImport);
  62778. },
  62779. _importLikeNode$body$_EvaluateVisitor: function(originalUrl, forImport) {
  62780. var $async$goto = 0,
  62781. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet),
  62782. $async$returnValue, $async$self = this, contents, url, t1, result;
  62783. var $async$_async_evaluate0$_importLikeNode$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62784. if ($async$errorCode === 1)
  62785. return P._asyncRethrow($async$result, $async$completer);
  62786. while (true)
  62787. switch ($async$goto) {
  62788. case 0:
  62789. // Function start
  62790. t1 = $async$self._async_evaluate0$_stylesheet.span;
  62791. $async$goto = 3;
  62792. return P._asyncAwait($async$self._async_evaluate0$_nodeImporter.loadAsync$3(originalUrl, t1.file.url, forImport), $async$_async_evaluate0$_importLikeNode$2);
  62793. case 3:
  62794. // returning from await.
  62795. result = $async$result;
  62796. if (result == null) {
  62797. $async$returnValue = null;
  62798. // goto return
  62799. $async$goto = 1;
  62800. break;
  62801. }
  62802. contents = result.item1;
  62803. url = result.item2;
  62804. t1 = J.getInterceptor$s(url).startsWith$1(url, "file:") ? $.$get$context().style.pathFromUri$1(M._parseUri(url)) : url;
  62805. $async$self._async_evaluate0$_includedFiles.add$1(0, t1);
  62806. t1 = C.JSString_methods.startsWith$1(url, "file") ? M.Syntax_forPath0(url) : C.Syntax_SCSS0;
  62807. $async$returnValue = V.Stylesheet_Stylesheet$parse0(contents, t1, $async$self._async_evaluate0$_logger, url);
  62808. // goto return
  62809. $async$goto = 1;
  62810. break;
  62811. case 1:
  62812. // return
  62813. return P._asyncReturn($async$returnValue, $async$completer);
  62814. }
  62815. });
  62816. return P._asyncStartSync($async$_async_evaluate0$_importLikeNode$2, $async$completer);
  62817. },
  62818. _async_evaluate0$_visitStaticImport$1: function($import) {
  62819. return this._visitStaticImport$body$_EvaluateVisitor0($import);
  62820. },
  62821. _visitStaticImport$body$_EvaluateVisitor0: function($import) {
  62822. var $async$goto = 0,
  62823. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  62824. $async$returnValue, $async$self = this, resolvedSupports, t1, mediaQuery, node, t2, url, supports, $async$temp1, $async$temp2;
  62825. var $async$_async_evaluate0$_visitStaticImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62826. if ($async$errorCode === 1)
  62827. return P._asyncRethrow($async$result, $async$completer);
  62828. while (true)
  62829. switch ($async$goto) {
  62830. case 0:
  62831. // Function start
  62832. $async$goto = 3;
  62833. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1($import.url), $async$_async_evaluate0$_visitStaticImport$1);
  62834. case 3:
  62835. // returning from await.
  62836. url = $async$result;
  62837. supports = $import.supports;
  62838. $async$goto = supports instanceof L.SupportsDeclaration0 ? 4 : 6;
  62839. break;
  62840. case 4:
  62841. // then
  62842. $async$temp1 = H;
  62843. $async$goto = 7;
  62844. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(supports.name), $async$_async_evaluate0$_visitStaticImport$1);
  62845. case 7:
  62846. // returning from await.
  62847. $async$temp1 = $async$temp1.S($async$result) + ": ";
  62848. $async$temp2 = H;
  62849. $async$goto = 8;
  62850. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(supports.value), $async$_async_evaluate0$_visitStaticImport$1);
  62851. case 8:
  62852. // returning from await.
  62853. resolvedSupports = $async$temp1 + $async$temp2.S($async$result);
  62854. // goto join
  62855. $async$goto = 5;
  62856. break;
  62857. case 6:
  62858. // else
  62859. $async$goto = supports == null ? 9 : 11;
  62860. break;
  62861. case 9:
  62862. // then
  62863. $async$result = null;
  62864. // goto join
  62865. $async$goto = 10;
  62866. break;
  62867. case 11:
  62868. // else
  62869. $async$goto = 12;
  62870. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(supports), $async$_async_evaluate0$_visitStaticImport$1);
  62871. case 12:
  62872. // returning from await.
  62873. case 10:
  62874. // join
  62875. resolvedSupports = $async$result;
  62876. case 5:
  62877. // join
  62878. t1 = $import.media;
  62879. $async$goto = t1 == null ? 13 : 15;
  62880. break;
  62881. case 13:
  62882. // then
  62883. $async$result = null;
  62884. // goto join
  62885. $async$goto = 14;
  62886. break;
  62887. case 15:
  62888. // else
  62889. $async$goto = 16;
  62890. return P._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(t1), $async$_async_evaluate0$_visitStaticImport$1);
  62891. case 16:
  62892. // returning from await.
  62893. case 14:
  62894. // join
  62895. mediaQuery = $async$result;
  62896. t1 = $import.span;
  62897. node = F.ModifiableCssImport$0(url, t1, mediaQuery, resolvedSupports == null ? null : new F.CssValue0("supports(" + resolvedSupports + ")", supports.get$span(), type$.CssValue_legacy_String_2));
  62898. t1 = $async$self._async_evaluate0$_parent;
  62899. t2 = $async$self._async_evaluate0$_root;
  62900. if (t1 != t2)
  62901. t1.addChild$1(node);
  62902. else if ($async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  62903. $async$self._async_evaluate0$_root.addChild$1(node);
  62904. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  62905. } else {
  62906. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  62907. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t1).push(node);
  62908. }
  62909. $async$returnValue = null;
  62910. // goto return
  62911. $async$goto = 1;
  62912. break;
  62913. case 1:
  62914. // return
  62915. return P._asyncReturn($async$returnValue, $async$completer);
  62916. }
  62917. });
  62918. return P._asyncStartSync($async$_async_evaluate0$_visitStaticImport$1, $async$completer);
  62919. },
  62920. visitIncludeRule$1: function(node) {
  62921. return this.visitIncludeRule$body$_EvaluateVisitor0(node);
  62922. },
  62923. visitIncludeRule$body$_EvaluateVisitor0: function(node) {
  62924. var $async$goto = 0,
  62925. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62926. $async$returnValue, $async$self = this, nodeWithSpan, t1, t2, contentCallable, mixin;
  62927. var $async$visitIncludeRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62928. if ($async$errorCode === 1)
  62929. return P._asyncRethrow($async$result, $async$completer);
  62930. while (true)
  62931. switch ($async$goto) {
  62932. case 0:
  62933. // Function start
  62934. mixin = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitIncludeRule_closure8($async$self, node));
  62935. if (mixin == null)
  62936. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined mixin.", node.span));
  62937. nodeWithSpan = new B._FakeAstNode0(new E._EvaluateVisitor_visitIncludeRule_closure9(node));
  62938. $async$goto = type$.legacy_AsyncBuiltInCallable_2._is(mixin) ? 3 : 5;
  62939. break;
  62940. case 3:
  62941. // then
  62942. if (node.content != null)
  62943. throw H.wrapException($async$self._async_evaluate0$_exception$2("Mixin doesn't accept a content block.", node.span));
  62944. $async$goto = 6;
  62945. return P._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
  62946. case 6:
  62947. // returning from await.
  62948. // goto join
  62949. $async$goto = 4;
  62950. break;
  62951. case 5:
  62952. // else
  62953. $async$goto = type$.legacy_UserDefinedCallable_legacy_AsyncEnvironment_2._is(mixin) ? 7 : 9;
  62954. break;
  62955. case 7:
  62956. // then
  62957. t1 = node.content;
  62958. t2 = t1 == null;
  62959. if (!t2 && !type$.legacy_MixinRule_2._as(mixin.declaration).hasContent)
  62960. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Mixin doesn't accept a content block.", node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
  62961. contentCallable = t2 ? null : new E.UserDefinedCallable0(t1, $async$self._async_evaluate0$_environment.closure$0(), type$.UserDefinedCallable_legacy_AsyncEnvironment_2);
  62962. $async$goto = 10;
  62963. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new E._EvaluateVisitor_visitIncludeRule_closure10($async$self, contentCallable, mixin, nodeWithSpan)), $async$visitIncludeRule$1);
  62964. case 10:
  62965. // returning from await.
  62966. // goto join
  62967. $async$goto = 8;
  62968. break;
  62969. case 9:
  62970. // else
  62971. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  62972. case 8:
  62973. // join
  62974. case 4:
  62975. // join
  62976. $async$returnValue = null;
  62977. // goto return
  62978. $async$goto = 1;
  62979. break;
  62980. case 1:
  62981. // return
  62982. return P._asyncReturn($async$returnValue, $async$completer);
  62983. }
  62984. });
  62985. return P._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  62986. },
  62987. visitMixinRule$1: function(node) {
  62988. return this.visitMixinRule$body$_EvaluateVisitor0(node);
  62989. },
  62990. visitMixinRule$body$_EvaluateVisitor0: function(node) {
  62991. var $async$goto = 0,
  62992. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  62993. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  62994. var $async$visitMixinRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62995. if ($async$errorCode === 1)
  62996. return P._asyncRethrow($async$result, $async$completer);
  62997. while (true)
  62998. switch ($async$goto) {
  62999. case 0:
  63000. // Function start
  63001. t1 = $async$self._async_evaluate0$_environment;
  63002. t2 = t1.closure$0();
  63003. t3 = t1._async_environment0$_mixins;
  63004. index = t3.length - 1;
  63005. t4 = node.name;
  63006. t1._async_environment0$_mixinIndices.$indexSet(0, t4, index);
  63007. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_legacy_AsyncEnvironment_2));
  63008. $async$returnValue = null;
  63009. // goto return
  63010. $async$goto = 1;
  63011. break;
  63012. case 1:
  63013. // return
  63014. return P._asyncReturn($async$returnValue, $async$completer);
  63015. }
  63016. });
  63017. return P._asyncStartSync($async$visitMixinRule$1, $async$completer);
  63018. },
  63019. visitLoudComment$1: function(node) {
  63020. return this.visitLoudComment$body$_EvaluateVisitor0(node);
  63021. },
  63022. visitLoudComment$body$_EvaluateVisitor0: function(node) {
  63023. var $async$goto = 0,
  63024. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63025. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  63026. var $async$visitLoudComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63027. if ($async$errorCode === 1)
  63028. return P._asyncRethrow($async$result, $async$completer);
  63029. while (true)
  63030. switch ($async$goto) {
  63031. case 0:
  63032. // Function start
  63033. if ($async$self._async_evaluate0$_inFunction) {
  63034. $async$returnValue = null;
  63035. // goto return
  63036. $async$goto = 1;
  63037. break;
  63038. }
  63039. t1 = $async$self._async_evaluate0$_parent;
  63040. t2 = $async$self._async_evaluate0$_root;
  63041. if (t1 == t2 && $async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  63042. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  63043. t1 = node.text;
  63044. $async$temp1 = $async$self._async_evaluate0$_parent;
  63045. $async$temp2 = R;
  63046. $async$goto = 3;
  63047. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$visitLoudComment$1);
  63048. case 3:
  63049. // returning from await.
  63050. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment0($async$result, t1.span));
  63051. $async$returnValue = null;
  63052. // goto return
  63053. $async$goto = 1;
  63054. break;
  63055. case 1:
  63056. // return
  63057. return P._asyncReturn($async$returnValue, $async$completer);
  63058. }
  63059. });
  63060. return P._asyncStartSync($async$visitLoudComment$1, $async$completer);
  63061. },
  63062. visitMediaRule$1: function(node) {
  63063. return this.visitMediaRule$body$_EvaluateVisitor0(node);
  63064. },
  63065. visitMediaRule$body$_EvaluateVisitor0: function(node) {
  63066. var $async$goto = 0,
  63067. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63068. $async$returnValue, $async$self = this, queries, t1, mergedQueries;
  63069. var $async$visitMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63070. if ($async$errorCode === 1)
  63071. return P._asyncRethrow($async$result, $async$completer);
  63072. while (true)
  63073. switch ($async$goto) {
  63074. case 0:
  63075. // Function start
  63076. if ($async$self._async_evaluate0$_declarationName != null)
  63077. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
  63078. $async$goto = 3;
  63079. return P._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  63080. case 3:
  63081. // returning from await.
  63082. queries = $async$result;
  63083. t1 = $async$self._async_evaluate0$_mediaQueries;
  63084. mergedQueries = t1 == null ? null : $async$self._async_evaluate0$_mergeMediaQueries$2(t1, queries);
  63085. t1 = mergedQueries == null;
  63086. if (!t1 && mergedQueries.length === 0) {
  63087. $async$returnValue = null;
  63088. // goto return
  63089. $async$goto = 1;
  63090. break;
  63091. }
  63092. t1 = t1 ? queries : mergedQueries;
  63093. $async$goto = 4;
  63094. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new E._EvaluateVisitor_visitMediaRule_closure5($async$self, mergedQueries, queries, node), node.hasDeclarations, new E._EvaluateVisitor_visitMediaRule_closure6(mergedQueries), type$.legacy_ModifiableCssMediaRule_2, type$.Null), $async$visitMediaRule$1);
  63095. case 4:
  63096. // returning from await.
  63097. $async$returnValue = null;
  63098. // goto return
  63099. $async$goto = 1;
  63100. break;
  63101. case 1:
  63102. // return
  63103. return P._asyncReturn($async$returnValue, $async$completer);
  63104. }
  63105. });
  63106. return P._asyncStartSync($async$visitMediaRule$1, $async$completer);
  63107. },
  63108. _async_evaluate0$_visitMediaQueries$1: function(interpolation) {
  63109. return this._visitMediaQueries$body$_EvaluateVisitor0(interpolation);
  63110. },
  63111. _visitMediaQueries$body$_EvaluateVisitor0: function(interpolation) {
  63112. var $async$goto = 0,
  63113. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_List_legacy_CssMediaQuery_2),
  63114. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  63115. var $async$_async_evaluate0$_visitMediaQueries$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63116. if ($async$errorCode === 1)
  63117. return P._asyncRethrow($async$result, $async$completer);
  63118. while (true)
  63119. switch ($async$goto) {
  63120. case 0:
  63121. // Function start
  63122. $async$temp1 = interpolation;
  63123. $async$temp2 = E;
  63124. $async$goto = 3;
  63125. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate0$_visitMediaQueries$1);
  63126. case 3:
  63127. // returning from await.
  63128. $async$returnValue = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure2($async$self, $async$result));
  63129. // goto return
  63130. $async$goto = 1;
  63131. break;
  63132. case 1:
  63133. // return
  63134. return P._asyncReturn($async$returnValue, $async$completer);
  63135. }
  63136. });
  63137. return P._asyncStartSync($async$_async_evaluate0$_visitMediaQueries$1, $async$completer);
  63138. },
  63139. _async_evaluate0$_mergeMediaQueries$2: function(queries1, queries2) {
  63140. var t1, t2, t3, t4, t5, result,
  63141. queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery_2);
  63142. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.legacy_MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
  63143. t4 = t1.get$current(t1);
  63144. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  63145. result = t4.merge$1(t5.get$current(t5));
  63146. if (result === C._SingletonCssMediaQueryMergeResult_empty0)
  63147. continue;
  63148. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable0)
  63149. return null;
  63150. queries.push(t3._as(result).query);
  63151. }
  63152. }
  63153. return queries;
  63154. },
  63155. visitReturnRule$1: function(node) {
  63156. return node.expression.accept$1(this);
  63157. },
  63158. visitSilentComment$1: function(node) {
  63159. return this.visitSilentComment$body$_EvaluateVisitor0(node);
  63160. },
  63161. visitSilentComment$body$_EvaluateVisitor0: function(node) {
  63162. var $async$goto = 0,
  63163. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63164. $async$returnValue;
  63165. var $async$visitSilentComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63166. if ($async$errorCode === 1)
  63167. return P._asyncRethrow($async$result, $async$completer);
  63168. while (true)
  63169. switch ($async$goto) {
  63170. case 0:
  63171. // Function start
  63172. $async$returnValue = null;
  63173. // goto return
  63174. $async$goto = 1;
  63175. break;
  63176. case 1:
  63177. // return
  63178. return P._asyncReturn($async$returnValue, $async$completer);
  63179. }
  63180. });
  63181. return P._asyncStartSync($async$visitSilentComment$1, $async$completer);
  63182. },
  63183. visitStyleRule$1: function(node) {
  63184. return this.visitStyleRule$body$_EvaluateVisitor0(node);
  63185. },
  63186. visitStyleRule$body$_EvaluateVisitor0: function(node) {
  63187. var $async$goto = 0,
  63188. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63189. $async$returnValue, $async$self = this, t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, t1;
  63190. var $async$visitStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63191. if ($async$errorCode === 1)
  63192. return P._asyncRethrow($async$result, $async$completer);
  63193. while (true)
  63194. switch ($async$goto) {
  63195. case 0:
  63196. // Function start
  63197. t1 = {};
  63198. if ($async$self._async_evaluate0$_declarationName != null)
  63199. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_, node.span));
  63200. t2 = node.selector;
  63201. $async$goto = 3;
  63202. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t2, true, true), $async$visitStyleRule$1);
  63203. case 3:
  63204. // returning from await.
  63205. selectorText = $async$result;
  63206. $async$goto = $async$self._async_evaluate0$_inKeyframes ? 4 : 5;
  63207. break;
  63208. case 4:
  63209. // then
  63210. t1 = P.List_List$unmodifiable($async$self._async_evaluate0$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure20($async$self, selectorText)), type$.legacy_String);
  63211. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  63212. $async$goto = 6;
  63213. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(new F.CssValue0(t1, t2.span, type$.CssValue_legacy_List_legacy_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t3), new E._EvaluateVisitor_visitStyleRule_closure21($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure22(), type$.legacy_ModifiableCssKeyframeBlock_2, type$.Null), $async$visitStyleRule$1);
  63214. case 6:
  63215. // returning from await.
  63216. $async$returnValue = null;
  63217. // goto return
  63218. $async$goto = 1;
  63219. break;
  63220. case 5:
  63221. // join
  63222. t1.parsedSelector = $async$self._async_evaluate0$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure23($async$self, selectorText));
  63223. parsedSelector = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitStyleRule_closure24(t1, $async$self));
  63224. t1.parsedSelector = parsedSelector;
  63225. rule = X.ModifiableCssStyleRule$0($async$self._async_evaluate0$_extender.addSelector$3(parsedSelector, t2.span, $async$self._async_evaluate0$_mediaQueries), node.span, t1.parsedSelector);
  63226. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  63227. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  63228. $async$goto = 7;
  63229. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitStyleRule_closure25($async$self, rule, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure26(), type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$visitStyleRule$1);
  63230. case 7:
  63231. // returning from await.
  63232. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  63233. if (!($async$self._async_evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  63234. t1 = $async$self._async_evaluate0$_parent.children;
  63235. t1 = !t1.get$isEmpty(t1);
  63236. } else
  63237. t1 = false;
  63238. if (t1) {
  63239. t1 = $async$self._async_evaluate0$_parent.children;
  63240. t1.get$last(t1).isGroupEnd = true;
  63241. }
  63242. $async$returnValue = null;
  63243. // goto return
  63244. $async$goto = 1;
  63245. break;
  63246. case 1:
  63247. // return
  63248. return P._asyncReturn($async$returnValue, $async$completer);
  63249. }
  63250. });
  63251. return P._asyncStartSync($async$visitStyleRule$1, $async$completer);
  63252. },
  63253. visitSupportsRule$1: function(node) {
  63254. return this.visitSupportsRule$body$_EvaluateVisitor0(node);
  63255. },
  63256. visitSupportsRule$body$_EvaluateVisitor0: function(node) {
  63257. var $async$goto = 0,
  63258. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63259. $async$returnValue, $async$self = this, t1, t2, t3;
  63260. var $async$visitSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63261. if ($async$errorCode === 1)
  63262. return P._asyncRethrow($async$result, $async$completer);
  63263. while (true)
  63264. switch ($async$goto) {
  63265. case 0:
  63266. // Function start
  63267. if ($async$self._async_evaluate0$_declarationName != null)
  63268. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
  63269. t1 = node.condition;
  63270. $async$goto = 3;
  63271. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  63272. case 3:
  63273. // returning from await.
  63274. t2 = $async$result;
  63275. t1 = t1.get$span();
  63276. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  63277. $async$goto = 4;
  63278. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(new F.CssValue0(t2, t1, type$.CssValue_legacy_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t3), new E._EvaluateVisitor_visitSupportsRule_closure5($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitSupportsRule_closure6(), type$.legacy_ModifiableCssSupportsRule_2, type$.Null), $async$visitSupportsRule$1);
  63279. case 4:
  63280. // returning from await.
  63281. $async$returnValue = null;
  63282. // goto return
  63283. $async$goto = 1;
  63284. break;
  63285. case 1:
  63286. // return
  63287. return P._asyncReturn($async$returnValue, $async$completer);
  63288. }
  63289. });
  63290. return P._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  63291. },
  63292. _async_evaluate0$_visitSupportsCondition$1: function(condition) {
  63293. return this._visitSupportsCondition$body$_EvaluateVisitor0(condition);
  63294. },
  63295. _visitSupportsCondition$body$_EvaluateVisitor0: function(condition) {
  63296. var $async$goto = 0,
  63297. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  63298. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  63299. var $async$_async_evaluate0$_visitSupportsCondition$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63300. if ($async$errorCode === 1)
  63301. return P._asyncRethrow($async$result, $async$completer);
  63302. while (true)
  63303. switch ($async$goto) {
  63304. case 0:
  63305. // Function start
  63306. $async$goto = condition instanceof U.SupportsOperation0 ? 3 : 5;
  63307. break;
  63308. case 3:
  63309. // then
  63310. t1 = condition.left;
  63311. t2 = condition.operator;
  63312. $async$temp1 = H;
  63313. $async$goto = 6;
  63314. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$2(t1, t2), $async$_async_evaluate0$_visitSupportsCondition$1);
  63315. case 6:
  63316. // returning from await.
  63317. $async$temp1 = $async$temp1.S($async$result) + " " + t2 + " ";
  63318. $async$temp2 = H;
  63319. $async$goto = 7;
  63320. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.right, t2), $async$_async_evaluate0$_visitSupportsCondition$1);
  63321. case 7:
  63322. // returning from await.
  63323. $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
  63324. // goto return
  63325. $async$goto = 1;
  63326. break;
  63327. // goto join
  63328. $async$goto = 4;
  63329. break;
  63330. case 5:
  63331. // else
  63332. $async$goto = condition instanceof M.SupportsNegation0 ? 8 : 10;
  63333. break;
  63334. case 8:
  63335. // then
  63336. $async$temp1 = H;
  63337. $async$goto = 11;
  63338. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$1(condition.condition), $async$_async_evaluate0$_visitSupportsCondition$1);
  63339. case 11:
  63340. // returning from await.
  63341. $async$returnValue = "not " + $async$temp1.S($async$result);
  63342. // goto return
  63343. $async$goto = 1;
  63344. break;
  63345. // goto join
  63346. $async$goto = 9;
  63347. break;
  63348. case 10:
  63349. // else
  63350. $async$goto = condition instanceof X.SupportsInterpolation0 ? 12 : 14;
  63351. break;
  63352. case 12:
  63353. // then
  63354. $async$goto = 15;
  63355. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate0$_visitSupportsCondition$1);
  63356. case 15:
  63357. // returning from await.
  63358. $async$returnValue = $async$result;
  63359. // goto return
  63360. $async$goto = 1;
  63361. break;
  63362. // goto join
  63363. $async$goto = 13;
  63364. break;
  63365. case 14:
  63366. // else
  63367. $async$goto = condition instanceof L.SupportsDeclaration0 ? 16 : 18;
  63368. break;
  63369. case 16:
  63370. // then
  63371. $async$temp1 = H;
  63372. $async$goto = 19;
  63373. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
  63374. case 19:
  63375. // returning from await.
  63376. $async$temp1 = "(" + $async$temp1.S($async$result) + ": ";
  63377. $async$temp2 = H;
  63378. $async$goto = 20;
  63379. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.value), $async$_async_evaluate0$_visitSupportsCondition$1);
  63380. case 20:
  63381. // returning from await.
  63382. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  63383. // goto return
  63384. $async$goto = 1;
  63385. break;
  63386. // goto join
  63387. $async$goto = 17;
  63388. break;
  63389. case 18:
  63390. // else
  63391. $async$returnValue = null;
  63392. // goto return
  63393. $async$goto = 1;
  63394. break;
  63395. case 17:
  63396. // join
  63397. case 13:
  63398. // join
  63399. case 9:
  63400. // join
  63401. case 4:
  63402. // join
  63403. case 1:
  63404. // return
  63405. return P._asyncReturn($async$returnValue, $async$completer);
  63406. }
  63407. });
  63408. return P._asyncStartSync($async$_async_evaluate0$_visitSupportsCondition$1, $async$completer);
  63409. },
  63410. _async_evaluate0$_parenthesize$2: function(condition, operator) {
  63411. return this._parenthesize$body$_EvaluateVisitor0(condition, operator);
  63412. },
  63413. _async_evaluate0$_parenthesize$1: function(condition) {
  63414. return this._async_evaluate0$_parenthesize$2(condition, null);
  63415. },
  63416. _parenthesize$body$_EvaluateVisitor0: function(condition, operator) {
  63417. var $async$goto = 0,
  63418. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  63419. $async$returnValue, $async$self = this, t1, $async$temp1;
  63420. var $async$_async_evaluate0$_parenthesize$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63421. if ($async$errorCode === 1)
  63422. return P._asyncRethrow($async$result, $async$completer);
  63423. while (true)
  63424. switch ($async$goto) {
  63425. case 0:
  63426. // Function start
  63427. if (!(condition instanceof M.SupportsNegation0))
  63428. if (condition instanceof U.SupportsOperation0)
  63429. t1 = operator == null || operator !== condition.operator;
  63430. else
  63431. t1 = false;
  63432. else
  63433. t1 = true;
  63434. $async$goto = t1 ? 3 : 5;
  63435. break;
  63436. case 3:
  63437. // then
  63438. $async$temp1 = H;
  63439. $async$goto = 6;
  63440. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  63441. case 6:
  63442. // returning from await.
  63443. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  63444. // goto return
  63445. $async$goto = 1;
  63446. break;
  63447. // goto join
  63448. $async$goto = 4;
  63449. break;
  63450. case 5:
  63451. // else
  63452. $async$goto = 7;
  63453. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  63454. case 7:
  63455. // returning from await.
  63456. $async$returnValue = $async$result;
  63457. // goto return
  63458. $async$goto = 1;
  63459. break;
  63460. case 4:
  63461. // join
  63462. case 1:
  63463. // return
  63464. return P._asyncReturn($async$returnValue, $async$completer);
  63465. }
  63466. });
  63467. return P._asyncStartSync($async$_async_evaluate0$_parenthesize$2, $async$completer);
  63468. },
  63469. visitVariableDeclaration$1: function(node) {
  63470. return this.visitVariableDeclaration$body$_EvaluateVisitor0(node);
  63471. },
  63472. visitVariableDeclaration$body$_EvaluateVisitor0: function(node) {
  63473. var $async$goto = 0,
  63474. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63475. $async$returnValue, $async$self = this, t1, value, t2, $async$temp1, $async$temp2, $async$temp3;
  63476. var $async$visitVariableDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63477. if ($async$errorCode === 1)
  63478. return P._asyncRethrow($async$result, $async$completer);
  63479. while (true)
  63480. switch ($async$goto) {
  63481. case 0:
  63482. // Function start
  63483. if (node.isGuarded) {
  63484. if (node.namespace == null && $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1) {
  63485. t1 = $async$self._async_evaluate0$_configuration._configuration$_values;
  63486. t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
  63487. if (t1 != null) {
  63488. $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure8($async$self, node, t1));
  63489. $async$returnValue = null;
  63490. // goto return
  63491. $async$goto = 1;
  63492. break;
  63493. }
  63494. }
  63495. value = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure9($async$self, node));
  63496. if (value != null && !value.$eq(0, C.C_SassNull)) {
  63497. $async$returnValue = null;
  63498. // goto return
  63499. $async$goto = 1;
  63500. break;
  63501. }
  63502. }
  63503. if (node.isGlobal && !$async$self._async_evaluate0$_environment.globalVariableExists$1(node.name)) {
  63504. t1 = $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_C + B.declarationName0(node.span) + ": null` at the root of the\nstylesheet.";
  63505. t2 = node.span;
  63506. $async$self._async_evaluate0$_logger.warn$4$deprecation$span$trace(t1, true, t2, $async$self._async_evaluate0$_stackTrace$1(t2));
  63507. }
  63508. $async$temp1 = node;
  63509. $async$temp2 = E;
  63510. $async$temp3 = node;
  63511. $async$goto = 3;
  63512. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitVariableDeclaration$1);
  63513. case 3:
  63514. // returning from await.
  63515. $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure10($async$self, $async$temp3, $async$result.withoutSlash$0()));
  63516. $async$returnValue = null;
  63517. // goto return
  63518. $async$goto = 1;
  63519. break;
  63520. case 1:
  63521. // return
  63522. return P._asyncReturn($async$returnValue, $async$completer);
  63523. }
  63524. });
  63525. return P._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  63526. },
  63527. visitUseRule$1: function(node) {
  63528. return this.visitUseRule$body$_EvaluateVisitor0(node);
  63529. },
  63530. visitUseRule$body$_EvaluateVisitor0: function(node) {
  63531. var $async$goto = 0,
  63532. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63533. $async$returnValue, $async$self = this, configuration, t3, _i, variable, t4, t5, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  63534. var $async$visitUseRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63535. if ($async$errorCode === 1)
  63536. return P._asyncRethrow($async$result, $async$completer);
  63537. while (true)
  63538. switch ($async$goto) {
  63539. case 0:
  63540. // Function start
  63541. t1 = node.configuration;
  63542. t2 = t1.length;
  63543. $async$goto = t2 === 0 ? 3 : 5;
  63544. break;
  63545. case 3:
  63546. // then
  63547. configuration = C.Configuration_Map_empty_null_true0;
  63548. // goto join
  63549. $async$goto = 4;
  63550. break;
  63551. case 5:
  63552. // else
  63553. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue_2);
  63554. _i = 0;
  63555. case 6:
  63556. // for condition
  63557. if (!(_i < t2)) {
  63558. // goto after for
  63559. $async$goto = 8;
  63560. break;
  63561. }
  63562. variable = t1[_i];
  63563. t4 = variable.name;
  63564. t5 = variable.expression;
  63565. $async$temp1 = t3;
  63566. $async$temp2 = t4;
  63567. $async$temp3 = Z;
  63568. $async$goto = 9;
  63569. return P._asyncAwait(t5.accept$1($async$self), $async$visitUseRule$1);
  63570. case 9:
  63571. // returning from await.
  63572. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate0$_expressionNode$1(t5)));
  63573. case 7:
  63574. // for update
  63575. ++_i;
  63576. // goto for condition
  63577. $async$goto = 6;
  63578. break;
  63579. case 8:
  63580. // after for
  63581. configuration = new A.Configuration0(t3, node, false);
  63582. case 4:
  63583. // join
  63584. $async$goto = 10;
  63585. return P._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(node.url, "@use", node, new E._EvaluateVisitor_visitUseRule_closure2($async$self, node), configuration), $async$visitUseRule$1);
  63586. case 10:
  63587. // returning from await.
  63588. $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(configuration);
  63589. $async$returnValue = null;
  63590. // goto return
  63591. $async$goto = 1;
  63592. break;
  63593. case 1:
  63594. // return
  63595. return P._asyncReturn($async$returnValue, $async$completer);
  63596. }
  63597. });
  63598. return P._asyncStartSync($async$visitUseRule$1, $async$completer);
  63599. },
  63600. visitWarnRule$1: function(node) {
  63601. return this.visitWarnRule$body$_EvaluateVisitor0(node);
  63602. },
  63603. visitWarnRule$body$_EvaluateVisitor0: function(node) {
  63604. var $async$goto = 0,
  63605. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63606. $async$returnValue, $async$self = this, value, t1;
  63607. var $async$visitWarnRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63608. if ($async$errorCode === 1)
  63609. return P._asyncRethrow($async$result, $async$completer);
  63610. while (true)
  63611. switch ($async$goto) {
  63612. case 0:
  63613. // Function start
  63614. $async$goto = 3;
  63615. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitWarnRule_closure2($async$self, node), type$.legacy_Value_2), $async$visitWarnRule$1);
  63616. case 3:
  63617. // returning from await.
  63618. value = $async$result;
  63619. t1 = value instanceof D.SassString0 ? value.text : $async$self._async_evaluate0$_serialize$2(value, node.expression);
  63620. $async$self._async_evaluate0$_logger.warn$2$trace(t1, $async$self._async_evaluate0$_stackTrace$1(node.span));
  63621. $async$returnValue = null;
  63622. // goto return
  63623. $async$goto = 1;
  63624. break;
  63625. case 1:
  63626. // return
  63627. return P._asyncReturn($async$returnValue, $async$completer);
  63628. }
  63629. });
  63630. return P._asyncStartSync($async$visitWarnRule$1, $async$completer);
  63631. },
  63632. visitWhileRule$1: function(node) {
  63633. return this._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitWhileRule_closure2(this, node), true, node.hasDeclarations, type$.legacy_Value_2);
  63634. },
  63635. visitBinaryOperationExpression$1: function(node) {
  63636. return this._async_evaluate0$_addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitBinaryOperationExpression_closure2(this, node), type$.legacy_Value_2);
  63637. },
  63638. visitValueExpression$1: function(node) {
  63639. return this.visitValueExpression$body$_EvaluateVisitor0(node);
  63640. },
  63641. visitValueExpression$body$_EvaluateVisitor0: function(node) {
  63642. var $async$goto = 0,
  63643. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63644. $async$returnValue;
  63645. var $async$visitValueExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63646. if ($async$errorCode === 1)
  63647. return P._asyncRethrow($async$result, $async$completer);
  63648. while (true)
  63649. switch ($async$goto) {
  63650. case 0:
  63651. // Function start
  63652. $async$returnValue = node.value;
  63653. // goto return
  63654. $async$goto = 1;
  63655. break;
  63656. case 1:
  63657. // return
  63658. return P._asyncReturn($async$returnValue, $async$completer);
  63659. }
  63660. });
  63661. return P._asyncStartSync($async$visitValueExpression$1, $async$completer);
  63662. },
  63663. visitVariableExpression$1: function(node) {
  63664. return this.visitVariableExpression$body$_EvaluateVisitor0(node);
  63665. },
  63666. visitVariableExpression$body$_EvaluateVisitor0: function(node) {
  63667. var $async$goto = 0,
  63668. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63669. $async$returnValue, $async$self = this, result;
  63670. var $async$visitVariableExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63671. if ($async$errorCode === 1)
  63672. return P._asyncRethrow($async$result, $async$completer);
  63673. while (true)
  63674. switch ($async$goto) {
  63675. case 0:
  63676. // Function start
  63677. result = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableExpression_closure2($async$self, node));
  63678. if (result != null) {
  63679. $async$returnValue = result;
  63680. // goto return
  63681. $async$goto = 1;
  63682. break;
  63683. }
  63684. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined variable.", node.span));
  63685. case 1:
  63686. // return
  63687. return P._asyncReturn($async$returnValue, $async$completer);
  63688. }
  63689. });
  63690. return P._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  63691. },
  63692. visitUnaryOperationExpression$1: function(node) {
  63693. return this.visitUnaryOperationExpression$body$_EvaluateVisitor0(node);
  63694. },
  63695. visitUnaryOperationExpression$body$_EvaluateVisitor0: function(node) {
  63696. var $async$goto = 0,
  63697. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63698. $async$returnValue, $async$self = this, operand, t1;
  63699. var $async$visitUnaryOperationExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63700. if ($async$errorCode === 1)
  63701. return P._asyncRethrow($async$result, $async$completer);
  63702. while (true)
  63703. $async$outer:
  63704. switch ($async$goto) {
  63705. case 0:
  63706. // Function start
  63707. $async$goto = 3;
  63708. return P._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  63709. case 3:
  63710. // returning from await.
  63711. operand = $async$result;
  63712. t1 = node.operator;
  63713. switch (t1) {
  63714. case C.UnaryOperator_j2w0:
  63715. $async$returnValue = operand.unaryPlus$0();
  63716. // goto return
  63717. $async$goto = 1;
  63718. break $async$outer;
  63719. case C.UnaryOperator_U4G0:
  63720. $async$returnValue = operand.unaryMinus$0();
  63721. // goto return
  63722. $async$goto = 1;
  63723. break $async$outer;
  63724. case C.UnaryOperator_zDx0:
  63725. operand.toString;
  63726. $async$returnValue = new D.SassString0("/" + N.serializeValue(operand, false, true), false);
  63727. // goto return
  63728. $async$goto = 1;
  63729. break $async$outer;
  63730. case C.UnaryOperator_not_not0:
  63731. $async$returnValue = operand.unaryNot$0();
  63732. // goto return
  63733. $async$goto = 1;
  63734. break $async$outer;
  63735. default:
  63736. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  63737. }
  63738. case 1:
  63739. // return
  63740. return P._asyncReturn($async$returnValue, $async$completer);
  63741. }
  63742. });
  63743. return P._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  63744. },
  63745. visitBooleanExpression$1: function(node) {
  63746. return this.visitBooleanExpression$body$_EvaluateVisitor0(node);
  63747. },
  63748. visitBooleanExpression$body$_EvaluateVisitor0: function(node) {
  63749. var $async$goto = 0,
  63750. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassBoolean_2),
  63751. $async$returnValue;
  63752. var $async$visitBooleanExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63753. if ($async$errorCode === 1)
  63754. return P._asyncRethrow($async$result, $async$completer);
  63755. while (true)
  63756. switch ($async$goto) {
  63757. case 0:
  63758. // Function start
  63759. $async$returnValue = node.value ? C.SassBoolean_true : C.SassBoolean_false;
  63760. // goto return
  63761. $async$goto = 1;
  63762. break;
  63763. case 1:
  63764. // return
  63765. return P._asyncReturn($async$returnValue, $async$completer);
  63766. }
  63767. });
  63768. return P._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  63769. },
  63770. visitIfExpression$1: function(node) {
  63771. return this.visitIfExpression$body$_EvaluateVisitor0(node);
  63772. },
  63773. visitIfExpression$body$_EvaluateVisitor0: function(node) {
  63774. var $async$goto = 0,
  63775. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63776. $async$returnValue, $async$self = this, condition, ifTrue, ifFalse, pair, positional, named, t1;
  63777. var $async$visitIfExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63778. if ($async$errorCode === 1)
  63779. return P._asyncRethrow($async$result, $async$completer);
  63780. while (true)
  63781. switch ($async$goto) {
  63782. case 0:
  63783. // Function start
  63784. $async$goto = 3;
  63785. return P._asyncAwait($async$self._async_evaluate0$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  63786. case 3:
  63787. // returning from await.
  63788. pair = $async$result;
  63789. positional = pair.item1;
  63790. named = pair.item2;
  63791. t1 = J.getInterceptor$asx(positional);
  63792. $async$self._async_evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
  63793. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  63794. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  63795. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  63796. $async$goto = 5;
  63797. return P._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  63798. case 5:
  63799. // returning from await.
  63800. $async$goto = 4;
  63801. return P._asyncAwait(($async$result.get$isTruthy() ? ifTrue : ifFalse).accept$1($async$self), $async$visitIfExpression$1);
  63802. case 4:
  63803. // returning from await.
  63804. $async$returnValue = $async$result;
  63805. // goto return
  63806. $async$goto = 1;
  63807. break;
  63808. case 1:
  63809. // return
  63810. return P._asyncReturn($async$returnValue, $async$completer);
  63811. }
  63812. });
  63813. return P._asyncStartSync($async$visitIfExpression$1, $async$completer);
  63814. },
  63815. visitNullExpression$1: function(node) {
  63816. return this.visitNullExpression$body$_EvaluateVisitor0(node);
  63817. },
  63818. visitNullExpression$body$_EvaluateVisitor0: function(node) {
  63819. var $async$goto = 0,
  63820. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNull_2),
  63821. $async$returnValue;
  63822. var $async$visitNullExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63823. if ($async$errorCode === 1)
  63824. return P._asyncRethrow($async$result, $async$completer);
  63825. while (true)
  63826. switch ($async$goto) {
  63827. case 0:
  63828. // Function start
  63829. $async$returnValue = C.C_SassNull;
  63830. // goto return
  63831. $async$goto = 1;
  63832. break;
  63833. case 1:
  63834. // return
  63835. return P._asyncReturn($async$returnValue, $async$completer);
  63836. }
  63837. });
  63838. return P._asyncStartSync($async$visitNullExpression$1, $async$completer);
  63839. },
  63840. visitNumberExpression$1: function(node) {
  63841. return this.visitNumberExpression$body$_EvaluateVisitor0(node);
  63842. },
  63843. visitNumberExpression$body$_EvaluateVisitor0: function(node) {
  63844. var $async$goto = 0,
  63845. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber_2),
  63846. $async$returnValue, t1;
  63847. var $async$visitNumberExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63848. if ($async$errorCode === 1)
  63849. return P._asyncRethrow($async$result, $async$completer);
  63850. while (true)
  63851. switch ($async$goto) {
  63852. case 0:
  63853. // Function start
  63854. t1 = node.unit;
  63855. t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_legacy_String);
  63856. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.legacy_String);
  63857. $async$returnValue = new T.SassNumber0(node.value, t1, C.List_empty, null);
  63858. // goto return
  63859. $async$goto = 1;
  63860. break;
  63861. case 1:
  63862. // return
  63863. return P._asyncReturn($async$returnValue, $async$completer);
  63864. }
  63865. });
  63866. return P._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  63867. },
  63868. visitParenthesizedExpression$1: function(node) {
  63869. return node.expression.accept$1(this);
  63870. },
  63871. visitColorExpression$1: function(node) {
  63872. return this.visitColorExpression$body$_EvaluateVisitor0(node);
  63873. },
  63874. visitColorExpression$body$_EvaluateVisitor0: function(node) {
  63875. var $async$goto = 0,
  63876. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassColor_2),
  63877. $async$returnValue;
  63878. var $async$visitColorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63879. if ($async$errorCode === 1)
  63880. return P._asyncRethrow($async$result, $async$completer);
  63881. while (true)
  63882. switch ($async$goto) {
  63883. case 0:
  63884. // Function start
  63885. $async$returnValue = node.value;
  63886. // goto return
  63887. $async$goto = 1;
  63888. break;
  63889. case 1:
  63890. // return
  63891. return P._asyncReturn($async$returnValue, $async$completer);
  63892. }
  63893. });
  63894. return P._asyncStartSync($async$visitColorExpression$1, $async$completer);
  63895. },
  63896. visitListExpression$1: function(node) {
  63897. return this.visitListExpression$body$_EvaluateVisitor0(node);
  63898. },
  63899. visitListExpression$body$_EvaluateVisitor0: function(node) {
  63900. var $async$goto = 0,
  63901. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassList_2),
  63902. $async$returnValue, $async$self = this, $async$temp1;
  63903. var $async$visitListExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63904. if ($async$errorCode === 1)
  63905. return P._asyncRethrow($async$result, $async$completer);
  63906. while (true)
  63907. switch ($async$goto) {
  63908. case 0:
  63909. // Function start
  63910. $async$temp1 = D;
  63911. $async$goto = 3;
  63912. return P._asyncAwait(B.mapAsync0(node.contents, new E._EvaluateVisitor_visitListExpression_closure2($async$self), type$.legacy_Expression_2, type$.legacy_Value_2), $async$visitListExpression$1);
  63913. case 3:
  63914. // returning from await.
  63915. $async$returnValue = $async$temp1.SassList$0($async$result, node.separator, node.hasBrackets);
  63916. // goto return
  63917. $async$goto = 1;
  63918. break;
  63919. case 1:
  63920. // return
  63921. return P._asyncReturn($async$returnValue, $async$completer);
  63922. }
  63923. });
  63924. return P._asyncStartSync($async$visitListExpression$1, $async$completer);
  63925. },
  63926. visitMapExpression$1: function(node) {
  63927. return this.visitMapExpression$body$_EvaluateVisitor0(node);
  63928. },
  63929. visitMapExpression$body$_EvaluateVisitor0: function(node) {
  63930. var $async$goto = 0,
  63931. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassMap_2),
  63932. $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, t1, map, keyNodes;
  63933. var $async$visitMapExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63934. if ($async$errorCode === 1)
  63935. return P._asyncRethrow($async$result, $async$completer);
  63936. while (true)
  63937. switch ($async$goto) {
  63938. case 0:
  63939. // Function start
  63940. t1 = type$.legacy_Value_2;
  63941. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  63942. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AstNode_2);
  63943. t2 = node.pairs, t3 = t2.length, _i = 0;
  63944. case 3:
  63945. // for condition
  63946. if (!(_i < t3)) {
  63947. // goto after for
  63948. $async$goto = 5;
  63949. break;
  63950. }
  63951. pair = t2[_i];
  63952. t4 = pair.item1;
  63953. $async$goto = 6;
  63954. return P._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
  63955. case 6:
  63956. // returning from await.
  63957. keyValue = $async$result;
  63958. $async$goto = 7;
  63959. return P._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
  63960. case 7:
  63961. // returning from await.
  63962. valueValue = $async$result;
  63963. if (map.containsKey$1(keyValue))
  63964. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate0$_stackTrace$1(t4.get$span())));
  63965. map.$indexSet(0, keyValue, valueValue);
  63966. keyNodes.$indexSet(0, keyValue, t4);
  63967. case 4:
  63968. // for update
  63969. ++_i;
  63970. // goto for condition
  63971. $async$goto = 3;
  63972. break;
  63973. case 5:
  63974. // after for
  63975. $async$returnValue = new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  63976. // goto return
  63977. $async$goto = 1;
  63978. break;
  63979. case 1:
  63980. // return
  63981. return P._asyncReturn($async$returnValue, $async$completer);
  63982. }
  63983. });
  63984. return P._asyncStartSync($async$visitMapExpression$1, $async$completer);
  63985. },
  63986. visitFunctionExpression$1: function(node) {
  63987. return this.visitFunctionExpression$body$_EvaluateVisitor0(node);
  63988. },
  63989. visitFunctionExpression$body$_EvaluateVisitor0: function(node) {
  63990. var $async$goto = 0,
  63991. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63992. $async$returnValue, $async$self = this, oldInFunction, result, t1, t2, plainName, $async$temp1, $async$temp2;
  63993. var $async$visitFunctionExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63994. if ($async$errorCode === 1)
  63995. return P._asyncRethrow($async$result, $async$completer);
  63996. while (true)
  63997. switch ($async$goto) {
  63998. case 0:
  63999. // Function start
  64000. t1 = {};
  64001. t2 = node.name;
  64002. plainName = t2.get$asPlain();
  64003. t1.$function = null;
  64004. $async$goto = (plainName != null ? t1.$function = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure5($async$self, node, plainName)) : null) == null ? 3 : 4;
  64005. break;
  64006. case 3:
  64007. // then
  64008. if (node.namespace != null)
  64009. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined function.", node.span));
  64010. $async$temp1 = t1;
  64011. $async$temp2 = L;
  64012. $async$goto = 5;
  64013. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t2), $async$visitFunctionExpression$1);
  64014. case 5:
  64015. // returning from await.
  64016. $async$temp1.$function = new $async$temp2.PlainCssCallable0($async$result);
  64017. case 4:
  64018. // join
  64019. oldInFunction = $async$self._async_evaluate0$_inFunction;
  64020. $async$self._async_evaluate0$_inFunction = true;
  64021. $async$goto = 6;
  64022. return P._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure6(t1, $async$self, node), type$.legacy_Value_2), $async$visitFunctionExpression$1);
  64023. case 6:
  64024. // returning from await.
  64025. result = $async$result;
  64026. $async$self._async_evaluate0$_inFunction = oldInFunction;
  64027. $async$returnValue = result;
  64028. // goto return
  64029. $async$goto = 1;
  64030. break;
  64031. case 1:
  64032. // return
  64033. return P._asyncReturn($async$returnValue, $async$completer);
  64034. }
  64035. });
  64036. return P._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  64037. },
  64038. _async_evaluate0$_getFunction$2$namespace: function($name, namespace) {
  64039. var local = this._async_evaluate0$_environment.getFunction$2$namespace($name, namespace);
  64040. if (local != null || namespace != null)
  64041. return local;
  64042. return this._async_evaluate0$_builtInFunctions.$index(0, $name);
  64043. },
  64044. _async_evaluate0$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  64045. return this._runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run);
  64046. },
  64047. _runUserDefinedCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan, run) {
  64048. var $async$goto = 0,
  64049. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64050. $async$returnValue, $async$self = this, evaluated, t1, $name;
  64051. var $async$_async_evaluate0$_runUserDefinedCallable$4 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64052. if ($async$errorCode === 1)
  64053. return P._asyncRethrow($async$result, $async$completer);
  64054. while (true)
  64055. switch ($async$goto) {
  64056. case 0:
  64057. // Function start
  64058. $async$goto = 3;
  64059. return P._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runUserDefinedCallable$4);
  64060. case 3:
  64061. // returning from await.
  64062. evaluated = $async$result;
  64063. t1 = callable.declaration.name;
  64064. $name = t1 == null ? "@content" : t1 + "()";
  64065. $async$goto = 4;
  64066. return P._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3($name, nodeWithSpan, new E._EvaluateVisitor__runUserDefinedCallable_closure2($async$self, callable, evaluated, nodeWithSpan, run), type$.legacy_Value_2), $async$_async_evaluate0$_runUserDefinedCallable$4);
  64067. case 4:
  64068. // returning from await.
  64069. $async$returnValue = $async$result;
  64070. // goto return
  64071. $async$goto = 1;
  64072. break;
  64073. case 1:
  64074. // return
  64075. return P._asyncReturn($async$returnValue, $async$completer);
  64076. }
  64077. });
  64078. return P._asyncStartSync($async$_async_evaluate0$_runUserDefinedCallable$4, $async$completer);
  64079. },
  64080. _async_evaluate0$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  64081. return this._runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  64082. },
  64083. _runFunctionCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan) {
  64084. var $async$goto = 0,
  64085. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64086. $async$returnValue, $async$self = this, result, t1, t2, t3, first, _i, argument, rest, $async$temp1;
  64087. var $async$_async_evaluate0$_runFunctionCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64088. if ($async$errorCode === 1)
  64089. return P._asyncRethrow($async$result, $async$completer);
  64090. while (true)
  64091. switch ($async$goto) {
  64092. case 0:
  64093. // Function start
  64094. $async$goto = type$.legacy_AsyncBuiltInCallable_2._is(callable) ? 3 : 5;
  64095. break;
  64096. case 3:
  64097. // then
  64098. $async$goto = 6;
  64099. return P._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate0$_runFunctionCallable$3);
  64100. case 6:
  64101. // returning from await.
  64102. result = $async$result;
  64103. if (result == null)
  64104. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Custom, nodeWithSpan.get$span()));
  64105. $async$returnValue = result.withoutSlash$0();
  64106. // goto return
  64107. $async$goto = 1;
  64108. break;
  64109. // goto join
  64110. $async$goto = 4;
  64111. break;
  64112. case 5:
  64113. // else
  64114. $async$goto = type$.legacy_UserDefinedCallable_legacy_AsyncEnvironment_2._is(callable) ? 7 : 9;
  64115. break;
  64116. case 7:
  64117. // then
  64118. $async$goto = 10;
  64119. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new E._EvaluateVisitor__runFunctionCallable_closure2($async$self, callable)), $async$_async_evaluate0$_runFunctionCallable$3);
  64120. case 10:
  64121. // returning from await.
  64122. $async$returnValue = $async$result.withoutSlash$0();
  64123. // goto return
  64124. $async$goto = 1;
  64125. break;
  64126. // goto join
  64127. $async$goto = 8;
  64128. break;
  64129. case 9:
  64130. // else
  64131. $async$goto = callable instanceof L.PlainCssCallable0 ? 11 : 13;
  64132. break;
  64133. case 11:
  64134. // then
  64135. t1 = $arguments.named;
  64136. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  64137. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span()));
  64138. t1 = H.S(callable.name) + "(";
  64139. t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
  64140. case 14:
  64141. // for condition
  64142. if (!(_i < t3)) {
  64143. // goto after for
  64144. $async$goto = 16;
  64145. break;
  64146. }
  64147. argument = t2[_i];
  64148. if (first)
  64149. first = false;
  64150. else
  64151. t1 += ", ";
  64152. $async$temp1 = H;
  64153. $async$goto = 17;
  64154. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(argument), $async$_async_evaluate0$_runFunctionCallable$3);
  64155. case 17:
  64156. // returning from await.
  64157. t1 += $async$temp1.S($async$result);
  64158. case 15:
  64159. // for update
  64160. ++_i;
  64161. // goto for condition
  64162. $async$goto = 14;
  64163. break;
  64164. case 16:
  64165. // after for
  64166. t2 = $arguments.rest;
  64167. $async$goto = 18;
  64168. return P._asyncAwait(t2 == null ? null : t2.accept$1($async$self), $async$_async_evaluate0$_runFunctionCallable$3);
  64169. case 18:
  64170. // returning from await.
  64171. rest = $async$result;
  64172. if (rest != null) {
  64173. if (!first)
  64174. t1 += ", ";
  64175. t2 = t1 + H.S($async$self._async_evaluate0$_serialize$2(rest, t2));
  64176. t1 = t2;
  64177. }
  64178. t1 += H.Primitives_stringFromCharCode(41);
  64179. $async$returnValue = new D.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  64180. // goto return
  64181. $async$goto = 1;
  64182. break;
  64183. // goto join
  64184. $async$goto = 12;
  64185. break;
  64186. case 13:
  64187. // else
  64188. $async$returnValue = null;
  64189. // goto return
  64190. $async$goto = 1;
  64191. break;
  64192. case 12:
  64193. // join
  64194. case 8:
  64195. // join
  64196. case 4:
  64197. // join
  64198. case 1:
  64199. // return
  64200. return P._asyncReturn($async$returnValue, $async$completer);
  64201. }
  64202. });
  64203. return P._asyncStartSync($async$_async_evaluate0$_runFunctionCallable$3, $async$completer);
  64204. },
  64205. _async_evaluate0$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  64206. return this._runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  64207. },
  64208. _runBuiltInCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan) {
  64209. var $async$goto = 0,
  64210. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64211. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, evaluated, oldCallableNode, $async$exception;
  64212. var $async$_async_evaluate0$_runBuiltInCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64213. if ($async$errorCode === 1) {
  64214. $async$currentError = $async$result;
  64215. $async$goto = $async$handler;
  64216. }
  64217. while (true)
  64218. switch ($async$goto) {
  64219. case 0:
  64220. // Function start
  64221. $async$goto = 3;
  64222. return P._asyncAwait($async$self._async_evaluate0$_evaluateArguments$2$trackSpans($arguments, false), $async$_async_evaluate0$_runBuiltInCallable$3);
  64223. case 3:
  64224. // returning from await.
  64225. evaluated = $async$result;
  64226. oldCallableNode = $async$self._async_evaluate0$_callableNode;
  64227. $async$self._async_evaluate0$_callableNode = nodeWithSpan;
  64228. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_legacy_String);
  64229. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  64230. overload = tuple.item1;
  64231. callback = tuple.item2;
  64232. $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__runBuiltInCallable_closure5(overload, evaluated, namedSet));
  64233. declaredArguments = overload.$arguments;
  64234. i = evaluated.positional.length, t1 = declaredArguments.length;
  64235. case 4:
  64236. // for condition
  64237. if (!(i < t1)) {
  64238. // goto after for
  64239. $async$goto = 6;
  64240. break;
  64241. }
  64242. argument = declaredArguments[i];
  64243. t2 = evaluated.positional;
  64244. t3 = evaluated.named.remove$1(0, argument.name);
  64245. $async$goto = t3 == null ? 7 : 8;
  64246. break;
  64247. case 7:
  64248. // then
  64249. t3 = argument.defaultValue;
  64250. $async$goto = 9;
  64251. return P._asyncAwait(t3 == null ? null : t3.accept$1($async$self), $async$_async_evaluate0$_runBuiltInCallable$3);
  64252. case 9:
  64253. // returning from await.
  64254. t3 = $async$result;
  64255. case 8:
  64256. // join
  64257. t2.push(t3);
  64258. case 5:
  64259. // for update
  64260. ++i;
  64261. // goto for condition
  64262. $async$goto = 4;
  64263. break;
  64264. case 6:
  64265. // after for
  64266. if (overload.restArgument != null) {
  64267. if (evaluated.positional.length > t1) {
  64268. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  64269. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  64270. } else
  64271. rest = C.List_empty16;
  64272. t1 = evaluated.named;
  64273. t2 = evaluated.separator === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : evaluated.separator;
  64274. t3 = type$.legacy_Value_2;
  64275. argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t1, type$.legacy_String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  64276. argumentList.SassList$3$brackets0(rest, t2, false);
  64277. evaluated.positional.push(argumentList);
  64278. } else
  64279. argumentList = null;
  64280. result = null;
  64281. $async$handler = 11;
  64282. $async$goto = 14;
  64283. return P._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate0$_runBuiltInCallable$3);
  64284. case 14:
  64285. // returning from await.
  64286. result = $async$result;
  64287. $async$handler = 2;
  64288. // goto after finally
  64289. $async$goto = 13;
  64290. break;
  64291. case 11:
  64292. // catch
  64293. $async$handler = 10;
  64294. $async$exception = $async$currentError;
  64295. t1 = H.unwrapException($async$exception);
  64296. if (type$.legacy_SassRuntimeException_2._is(t1))
  64297. throw $async$exception;
  64298. else if (t1 instanceof E.MultiSpanSassScriptException0) {
  64299. error = t1;
  64300. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  64301. } else if (t1 instanceof E.MultiSpanSassException0) {
  64302. error0 = t1;
  64303. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(error0.get$span())));
  64304. } else {
  64305. error1 = t1;
  64306. message = null;
  64307. try {
  64308. message = H._asStringS(J.get$message$x(error1));
  64309. } catch (exception) {
  64310. H.unwrapException($async$exception);
  64311. message = J.toString$0$(error1);
  64312. }
  64313. throw H.wrapException($async$self._async_evaluate0$_exception$2(message, nodeWithSpan.get$span()));
  64314. }
  64315. // goto after finally
  64316. $async$goto = 13;
  64317. break;
  64318. case 10:
  64319. // uncaught
  64320. // goto rethrow
  64321. $async$goto = 2;
  64322. break;
  64323. case 13:
  64324. // after finally
  64325. $async$self._async_evaluate0$_callableNode = oldCallableNode;
  64326. if (argumentList == null) {
  64327. $async$returnValue = result;
  64328. // goto return
  64329. $async$goto = 1;
  64330. break;
  64331. }
  64332. t1 = evaluated.named;
  64333. if (t1.get$isEmpty(t1)) {
  64334. $async$returnValue = result;
  64335. // goto return
  64336. $async$goto = 1;
  64337. break;
  64338. }
  64339. if (argumentList._argument_list$_wereKeywordsAccessed) {
  64340. $async$returnValue = result;
  64341. // goto return
  64342. $async$goto = 1;
  64343. break;
  64344. }
  64345. t1 = evaluated.named.get$keys();
  64346. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + B.pluralize0("argument", t1.get$length(t1), null) + " named " + H.S(B.toSentence0(evaluated.named.get$keys().map$1$1(0, new E._EvaluateVisitor__runBuiltInCallable_closure6(), type$.legacy_Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  64347. case 1:
  64348. // return
  64349. return P._asyncReturn($async$returnValue, $async$completer);
  64350. case 2:
  64351. // rethrow
  64352. return P._asyncRethrow($async$currentError, $async$completer);
  64353. }
  64354. });
  64355. return P._asyncStartSync($async$_async_evaluate0$_runBuiltInCallable$3, $async$completer);
  64356. },
  64357. _async_evaluate0$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  64358. return this._evaluateArguments$body$_EvaluateVisitor0($arguments, trackSpans);
  64359. },
  64360. _async_evaluate0$_evaluateArguments$1: function($arguments) {
  64361. return this._async_evaluate0$_evaluateArguments$2$trackSpans($arguments, null);
  64362. },
  64363. _evaluateArguments$body$_EvaluateVisitor0: function($arguments, trackSpans) {
  64364. var $async$goto = 0,
  64365. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy__ArgumentResults_2),
  64366. $async$returnValue, $async$self = this, t1, t2, t3, _i, t4, t5, t6, t7, t8, t9, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, $async$temp1, $async$temp2;
  64367. var $async$_async_evaluate0$_evaluateArguments$2$trackSpans = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64368. if ($async$errorCode === 1)
  64369. return P._asyncRethrow($async$result, $async$completer);
  64370. while (true)
  64371. switch ($async$goto) {
  64372. case 0:
  64373. // Function start
  64374. if (trackSpans == null)
  64375. trackSpans = $async$self._async_evaluate0$_sourceMap;
  64376. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  64377. t2 = $arguments.positional, t3 = t2.length, _i = 0;
  64378. case 3:
  64379. // for condition
  64380. if (!(_i < t3)) {
  64381. // goto after for
  64382. $async$goto = 5;
  64383. break;
  64384. }
  64385. $async$temp1 = t1;
  64386. $async$goto = 6;
  64387. return P._asyncAwait(t2[_i].accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  64388. case 6:
  64389. // returning from await.
  64390. $async$temp1.push($async$result);
  64391. case 4:
  64392. // for update
  64393. ++_i;
  64394. // goto for condition
  64395. $async$goto = 3;
  64396. break;
  64397. case 5:
  64398. // after for
  64399. t4 = type$.legacy_String;
  64400. t5 = type$.legacy_Value_2;
  64401. t6 = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  64402. t7 = $arguments.named, t8 = t7.get$entries(), t8 = t8.get$iterator(t8);
  64403. case 7:
  64404. // for condition
  64405. if (!t8.moveNext$0()) {
  64406. // goto after for
  64407. $async$goto = 8;
  64408. break;
  64409. }
  64410. t9 = t8.get$current(t8);
  64411. $async$temp1 = t6;
  64412. $async$temp2 = t9.key;
  64413. $async$goto = 9;
  64414. return P._asyncAwait(t9.value.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  64415. case 9:
  64416. // returning from await.
  64417. $async$temp1.$indexSet(0, $async$temp2, $async$result);
  64418. // goto for condition
  64419. $async$goto = 7;
  64420. break;
  64421. case 8:
  64422. // after for
  64423. if (trackSpans) {
  64424. t8 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AstNode_2);
  64425. for (_i = 0; _i < t3; ++_i)
  64426. t8.push($async$self._async_evaluate0$_expressionNode$1(t2[_i]));
  64427. positionalNodes = t8;
  64428. } else
  64429. positionalNodes = null;
  64430. if (trackSpans) {
  64431. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  64432. for (t3 = t7.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  64433. t7 = t3.get$current(t3);
  64434. t2.$indexSet(0, t7.key, $async$self._async_evaluate0$_expressionNode$1(t7.value));
  64435. }
  64436. namedNodes = t2;
  64437. } else
  64438. namedNodes = null;
  64439. t2 = $arguments.rest;
  64440. if (t2 == null) {
  64441. $async$returnValue = E._ArgumentResults$2(t1, t6, C.ListSeparator_undecided0, namedNodes, positionalNodes);
  64442. // goto return
  64443. $async$goto = 1;
  64444. break;
  64445. }
  64446. $async$goto = 10;
  64447. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  64448. case 10:
  64449. // returning from await.
  64450. rest = $async$result;
  64451. restNodeForSpan = trackSpans ? $async$self._async_evaluate0$_expressionNode$1(t2) : null;
  64452. if (rest instanceof A.SassMap0) {
  64453. $async$self._async_evaluate0$_addRestMap$1$3(t6, rest, t2, t5);
  64454. if (namedNodes != null) {
  64455. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  64456. for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t7 = type$.legacy_SassString_2; t3.moveNext$0();)
  64457. t2.$indexSet(0, t7._as(t3.get$current(t3)).text, restNodeForSpan);
  64458. namedNodes.addAll$1(0, t2);
  64459. }
  64460. separator = C.ListSeparator_undecided0;
  64461. } else if (rest instanceof D.SassList0) {
  64462. t2 = rest._list1$_contents;
  64463. C.JSArray_methods.addAll$1(t1, t2);
  64464. if (positionalNodes != null)
  64465. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, false, type$.legacy_AstNode_2));
  64466. separator = rest.separator;
  64467. if (rest instanceof D.SassArgumentList0) {
  64468. rest._argument_list$_wereKeywordsAccessed = true;
  64469. rest._argument_list$_keywords.forEach$1(0, new E._EvaluateVisitor__evaluateArguments_closure2(t6, namedNodes, restNodeForSpan));
  64470. }
  64471. } else {
  64472. t1.push(rest);
  64473. if (positionalNodes != null)
  64474. positionalNodes.push(restNodeForSpan);
  64475. separator = C.ListSeparator_undecided0;
  64476. }
  64477. t2 = $arguments.keywordRest;
  64478. if (t2 == null) {
  64479. $async$returnValue = E._ArgumentResults$2(t1, t6, separator, namedNodes, positionalNodes);
  64480. // goto return
  64481. $async$goto = 1;
  64482. break;
  64483. }
  64484. $async$goto = 11;
  64485. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  64486. case 11:
  64487. // returning from await.
  64488. keywordRest = $async$result;
  64489. keywordRestNodeForSpan = trackSpans ? $async$self._async_evaluate0$_expressionNode$1(t2) : null;
  64490. if (keywordRest instanceof A.SassMap0) {
  64491. $async$self._async_evaluate0$_addRestMap$1$3(t6, keywordRest, t2, t5);
  64492. if (namedNodes != null) {
  64493. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  64494. for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.legacy_SassString_2; t3.moveNext$0();)
  64495. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  64496. namedNodes.addAll$1(0, t2);
  64497. }
  64498. $async$returnValue = E._ArgumentResults$2(t1, t6, separator, namedNodes, positionalNodes);
  64499. // goto return
  64500. $async$goto = 1;
  64501. break;
  64502. } else
  64503. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + H.S(keywordRest) + ").", t2.get$span()));
  64504. case 1:
  64505. // return
  64506. return P._asyncReturn($async$returnValue, $async$completer);
  64507. }
  64508. });
  64509. return P._asyncStartSync($async$_async_evaluate0$_evaluateArguments$2$trackSpans, $async$completer);
  64510. },
  64511. _async_evaluate0$_evaluateMacroArguments$1: function(invocation) {
  64512. return this._evaluateMacroArguments$body$_EvaluateVisitor0(invocation);
  64513. },
  64514. _evaluateMacroArguments$body$_EvaluateVisitor0: function(invocation) {
  64515. var $async$goto = 0,
  64516. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2),
  64517. $async$returnValue, $async$self = this, t3, positional, named, rest, keywordRest, t1, t2;
  64518. var $async$_async_evaluate0$_evaluateMacroArguments$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64519. if ($async$errorCode === 1)
  64520. return P._asyncRethrow($async$result, $async$completer);
  64521. while (true)
  64522. switch ($async$goto) {
  64523. case 0:
  64524. // Function start
  64525. t1 = invocation.$arguments;
  64526. t2 = t1.rest;
  64527. if (t2 == null) {
  64528. $async$returnValue = new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  64529. // goto return
  64530. $async$goto = 1;
  64531. break;
  64532. }
  64533. t3 = t1.positional;
  64534. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  64535. t3 = type$.legacy_Expression_2;
  64536. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.legacy_String, t3);
  64537. $async$goto = 3;
  64538. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  64539. case 3:
  64540. // returning from await.
  64541. rest = $async$result;
  64542. if (rest instanceof A.SassMap0)
  64543. $async$self._async_evaluate0$_addRestMap$1$4(named, rest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure11(), t3);
  64544. else if (rest instanceof D.SassList0) {
  64545. t2 = rest._list1$_contents;
  64546. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new E._EvaluateVisitor__evaluateMacroArguments_closure12(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0*>")));
  64547. if (rest instanceof D.SassArgumentList0) {
  64548. rest._argument_list$_wereKeywordsAccessed = true;
  64549. rest._argument_list$_keywords.forEach$1(0, new E._EvaluateVisitor__evaluateMacroArguments_closure13(named));
  64550. }
  64551. } else
  64552. positional.push(new F.ValueExpression0(rest, null));
  64553. t1 = t1.keywordRest;
  64554. if (t1 == null) {
  64555. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  64556. // goto return
  64557. $async$goto = 1;
  64558. break;
  64559. }
  64560. $async$goto = 4;
  64561. return P._asyncAwait(t1.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  64562. case 4:
  64563. // returning from await.
  64564. keywordRest = $async$result;
  64565. if (keywordRest instanceof A.SassMap0) {
  64566. $async$self._async_evaluate0$_addRestMap$1$4(named, keywordRest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure14(), t3);
  64567. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  64568. // goto return
  64569. $async$goto = 1;
  64570. break;
  64571. } else
  64572. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + H.S(keywordRest) + ").", invocation.span));
  64573. case 1:
  64574. // return
  64575. return P._asyncReturn($async$returnValue, $async$completer);
  64576. }
  64577. });
  64578. return P._asyncStartSync($async$_async_evaluate0$_evaluateMacroArguments$1, $async$completer);
  64579. },
  64580. _async_evaluate0$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  64581. var t1 = {};
  64582. t1.convert = convert;
  64583. if (convert == null)
  64584. t1.convert = new E._EvaluateVisitor__addRestMap_closure5($T);
  64585. map.contents.forEach$1(0, new E._EvaluateVisitor__addRestMap_closure6(t1, this, values, map, nodeWithSpan));
  64586. },
  64587. _async_evaluate0$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  64588. return this._async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  64589. },
  64590. _async_evaluate0$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  64591. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__verifyArguments_closure2($arguments, positional, named));
  64592. },
  64593. visitSelectorExpression$1: function(node) {
  64594. return this.visitSelectorExpression$body$_EvaluateVisitor0(node);
  64595. },
  64596. visitSelectorExpression$body$_EvaluateVisitor0: function(node) {
  64597. var $async$goto = 0,
  64598. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64599. $async$returnValue, $async$self = this, t1;
  64600. var $async$visitSelectorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64601. if ($async$errorCode === 1)
  64602. return P._asyncRethrow($async$result, $async$completer);
  64603. while (true)
  64604. switch ($async$goto) {
  64605. case 0:
  64606. // Function start
  64607. t1 = $async$self._async_evaluate0$_styleRule;
  64608. if (t1 == null) {
  64609. $async$returnValue = C.C_SassNull;
  64610. // goto return
  64611. $async$goto = 1;
  64612. break;
  64613. }
  64614. $async$returnValue = t1.originalSelector.get$asSassList();
  64615. // goto return
  64616. $async$goto = 1;
  64617. break;
  64618. case 1:
  64619. // return
  64620. return P._asyncReturn($async$returnValue, $async$completer);
  64621. }
  64622. });
  64623. return P._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  64624. },
  64625. visitStringExpression$1: function(node) {
  64626. return this.visitStringExpression$body$_EvaluateVisitor0(node);
  64627. },
  64628. visitStringExpression$body$_EvaluateVisitor0: function(node) {
  64629. var $async$goto = 0,
  64630. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassString_2),
  64631. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  64632. var $async$visitStringExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64633. if ($async$errorCode === 1)
  64634. return P._asyncRethrow($async$result, $async$completer);
  64635. while (true)
  64636. switch ($async$goto) {
  64637. case 0:
  64638. // Function start
  64639. $async$temp1 = D;
  64640. $async$temp2 = J;
  64641. $async$goto = 3;
  64642. return P._asyncAwait(B.mapAsync0(node.text.contents, new E._EvaluateVisitor_visitStringExpression_closure2($async$self), type$.legacy_Object, type$.legacy_String), $async$visitStringExpression$1);
  64643. case 3:
  64644. // returning from await.
  64645. $async$returnValue = new $async$temp1.SassString0($async$temp2.join$0$ax($async$result), node.hasQuotes);
  64646. // goto return
  64647. $async$goto = 1;
  64648. break;
  64649. case 1:
  64650. // return
  64651. return P._asyncReturn($async$returnValue, $async$completer);
  64652. }
  64653. });
  64654. return P._asyncStartSync($async$visitStringExpression$1, $async$completer);
  64655. },
  64656. visitCssAtRule$1: function(node) {
  64657. return this.visitCssAtRule$body$_EvaluateVisitor0(node);
  64658. },
  64659. visitCssAtRule$body$_EvaluateVisitor0: function(node) {
  64660. var $async$goto = 0,
  64661. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64662. $async$returnValue, $async$self = this, t1, t2, wasInKeyframes, wasInUnknownAtRule;
  64663. var $async$visitCssAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64664. if ($async$errorCode === 1)
  64665. return P._asyncRethrow($async$result, $async$completer);
  64666. while (true)
  64667. switch ($async$goto) {
  64668. case 0:
  64669. // Function start
  64670. if ($async$self._async_evaluate0$_declarationName != null)
  64671. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
  64672. if (node.isChildless) {
  64673. t1 = $async$self._async_evaluate0$_parent;
  64674. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  64675. t1.addChild$1(new U.ModifiableCssAtRule0(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2));
  64676. $async$returnValue = null;
  64677. // goto return
  64678. $async$goto = 1;
  64679. break;
  64680. }
  64681. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  64682. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  64683. t1 = node.name;
  64684. if (B.unvendor0(t1.get$value(t1)) === "keyframes")
  64685. $async$self._async_evaluate0$_inKeyframes = true;
  64686. else
  64687. $async$self._async_evaluate0$_inUnknownAtRule = true;
  64688. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  64689. $async$goto = 3;
  64690. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2), new E._EvaluateVisitor_visitCssAtRule_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssAtRule_closure6(), type$.legacy_ModifiableCssAtRule_2, type$.Null), $async$visitCssAtRule$1);
  64691. case 3:
  64692. // returning from await.
  64693. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  64694. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  64695. case 1:
  64696. // return
  64697. return P._asyncReturn($async$returnValue, $async$completer);
  64698. }
  64699. });
  64700. return P._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  64701. },
  64702. visitCssComment$1: function(node) {
  64703. return this.visitCssComment$body$_EvaluateVisitor0(node);
  64704. },
  64705. visitCssComment$body$_EvaluateVisitor0: function(node) {
  64706. var $async$goto = 0,
  64707. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64708. $async$self = this, t1, t2;
  64709. var $async$visitCssComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64710. if ($async$errorCode === 1)
  64711. return P._asyncRethrow($async$result, $async$completer);
  64712. while (true)
  64713. switch ($async$goto) {
  64714. case 0:
  64715. // Function start
  64716. t1 = $async$self._async_evaluate0$_parent;
  64717. t2 = $async$self._async_evaluate0$_root;
  64718. if (t1 == t2 && $async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  64719. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  64720. $async$self._async_evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(node.text, node.span));
  64721. // implicit return
  64722. return P._asyncReturn(null, $async$completer);
  64723. }
  64724. });
  64725. return P._asyncStartSync($async$visitCssComment$1, $async$completer);
  64726. },
  64727. visitCssDeclaration$1: function(node) {
  64728. return this.visitCssDeclaration$body$_EvaluateVisitor0(node);
  64729. },
  64730. visitCssDeclaration$body$_EvaluateVisitor0: function(node) {
  64731. var $async$goto = 0,
  64732. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64733. $async$self = this;
  64734. var $async$visitCssDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64735. if ($async$errorCode === 1)
  64736. return P._asyncRethrow($async$result, $async$completer);
  64737. while (true)
  64738. switch ($async$goto) {
  64739. case 0:
  64740. // Function start
  64741. $async$self._async_evaluate0$_parent.addChild$1(L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap));
  64742. // implicit return
  64743. return P._asyncReturn(null, $async$completer);
  64744. }
  64745. });
  64746. return P._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  64747. },
  64748. visitCssImport$1: function(node) {
  64749. return this.visitCssImport$body$_EvaluateVisitor0(node);
  64750. },
  64751. visitCssImport$body$_EvaluateVisitor0: function(node) {
  64752. var $async$goto = 0,
  64753. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64754. $async$self = this, modifiableNode, t1, t2;
  64755. var $async$visitCssImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64756. if ($async$errorCode === 1)
  64757. return P._asyncRethrow($async$result, $async$completer);
  64758. while (true)
  64759. switch ($async$goto) {
  64760. case 0:
  64761. // Function start
  64762. modifiableNode = F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports);
  64763. t1 = $async$self._async_evaluate0$_parent;
  64764. t2 = $async$self._async_evaluate0$_root;
  64765. if (t1 != t2)
  64766. t1.addChild$1(modifiableNode);
  64767. else if ($async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  64768. $async$self._async_evaluate0$_root.addChild$1(modifiableNode);
  64769. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  64770. } else {
  64771. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  64772. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t1).push(modifiableNode);
  64773. }
  64774. // implicit return
  64775. return P._asyncReturn(null, $async$completer);
  64776. }
  64777. });
  64778. return P._asyncStartSync($async$visitCssImport$1, $async$completer);
  64779. },
  64780. visitCssKeyframeBlock$1: function(node) {
  64781. return this.visitCssKeyframeBlock$body$_EvaluateVisitor0(node);
  64782. },
  64783. visitCssKeyframeBlock$body$_EvaluateVisitor0: function(node) {
  64784. var $async$goto = 0,
  64785. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64786. $async$self = this, t1;
  64787. var $async$visitCssKeyframeBlock$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64788. if ($async$errorCode === 1)
  64789. return P._asyncRethrow($async$result, $async$completer);
  64790. while (true)
  64791. switch ($async$goto) {
  64792. case 0:
  64793. // Function start
  64794. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  64795. $async$goto = 2;
  64796. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitCssKeyframeBlock_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssKeyframeBlock_closure6(), type$.legacy_ModifiableCssKeyframeBlock_2, type$.Null), $async$visitCssKeyframeBlock$1);
  64797. case 2:
  64798. // returning from await.
  64799. // implicit return
  64800. return P._asyncReturn(null, $async$completer);
  64801. }
  64802. });
  64803. return P._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  64804. },
  64805. visitCssMediaRule$1: function(node) {
  64806. return this.visitCssMediaRule$body$_EvaluateVisitor0(node);
  64807. },
  64808. visitCssMediaRule$body$_EvaluateVisitor0: function(node) {
  64809. var $async$goto = 0,
  64810. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64811. $async$returnValue, $async$self = this, t1, mergedQueries;
  64812. var $async$visitCssMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64813. if ($async$errorCode === 1)
  64814. return P._asyncRethrow($async$result, $async$completer);
  64815. while (true)
  64816. switch ($async$goto) {
  64817. case 0:
  64818. // Function start
  64819. if ($async$self._async_evaluate0$_declarationName != null)
  64820. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
  64821. t1 = $async$self._async_evaluate0$_mediaQueries;
  64822. mergedQueries = t1 == null ? null : $async$self._async_evaluate0$_mergeMediaQueries$2(t1, node.queries);
  64823. t1 = mergedQueries == null;
  64824. if (!t1 && mergedQueries.length === 0) {
  64825. $async$returnValue = null;
  64826. // goto return
  64827. $async$goto = 1;
  64828. break;
  64829. }
  64830. t1 = t1 ? node.queries : mergedQueries;
  64831. $async$goto = 3;
  64832. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new E._EvaluateVisitor_visitCssMediaRule_closure5($async$self, mergedQueries, node), false, new E._EvaluateVisitor_visitCssMediaRule_closure6(mergedQueries), type$.legacy_ModifiableCssMediaRule_2, type$.Null), $async$visitCssMediaRule$1);
  64833. case 3:
  64834. // returning from await.
  64835. case 1:
  64836. // return
  64837. return P._asyncReturn($async$returnValue, $async$completer);
  64838. }
  64839. });
  64840. return P._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  64841. },
  64842. visitCssStyleRule$1: function(node) {
  64843. return this.visitCssStyleRule$body$_EvaluateVisitor0(node);
  64844. },
  64845. visitCssStyleRule$body$_EvaluateVisitor0: function(node) {
  64846. var $async$goto = 0,
  64847. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64848. $async$self = this, t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule;
  64849. var $async$visitCssStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64850. if ($async$errorCode === 1)
  64851. return P._asyncRethrow($async$result, $async$completer);
  64852. while (true)
  64853. switch ($async$goto) {
  64854. case 0:
  64855. // Function start
  64856. if ($async$self._async_evaluate0$_declarationName != null)
  64857. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_, node.span));
  64858. t1 = node.selector;
  64859. t2 = t1.value;
  64860. t3 = $async$self._async_evaluate0$_styleRule;
  64861. t3 = t3 == null ? null : t3.originalSelector;
  64862. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !$async$self._async_evaluate0$_atRootExcludingStyleRule);
  64863. rule = X.ModifiableCssStyleRule$0($async$self._async_evaluate0$_extender.addSelector$3(originalSelector, t1.span, $async$self._async_evaluate0$_mediaQueries), node.span, originalSelector);
  64864. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  64865. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  64866. $async$goto = 2;
  64867. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitCssStyleRule_closure5($async$self, rule, node), false, new E._EvaluateVisitor_visitCssStyleRule_closure6(), type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$visitCssStyleRule$1);
  64868. case 2:
  64869. // returning from await.
  64870. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  64871. if (!($async$self._async_evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  64872. t1 = $async$self._async_evaluate0$_parent.children;
  64873. t1 = !t1.get$isEmpty(t1);
  64874. } else
  64875. t1 = false;
  64876. if (t1) {
  64877. t1 = $async$self._async_evaluate0$_parent.children;
  64878. t1.get$last(t1).isGroupEnd = true;
  64879. }
  64880. // implicit return
  64881. return P._asyncReturn(null, $async$completer);
  64882. }
  64883. });
  64884. return P._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  64885. },
  64886. visitCssStylesheet$1: function(node) {
  64887. return this.visitCssStylesheet$body$_EvaluateVisitor0(node);
  64888. },
  64889. visitCssStylesheet$body$_EvaluateVisitor0: function(node) {
  64890. var $async$goto = 0,
  64891. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64892. $async$self = this, t1;
  64893. var $async$visitCssStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64894. if ($async$errorCode === 1)
  64895. return P._asyncRethrow($async$result, $async$completer);
  64896. while (true)
  64897. switch ($async$goto) {
  64898. case 0:
  64899. // Function start
  64900. t1 = J.get$iterator$ax(node.get$children());
  64901. case 2:
  64902. // for condition
  64903. if (!t1.moveNext$0()) {
  64904. // goto after for
  64905. $async$goto = 3;
  64906. break;
  64907. }
  64908. $async$goto = 4;
  64909. return P._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  64910. case 4:
  64911. // returning from await.
  64912. // goto for condition
  64913. $async$goto = 2;
  64914. break;
  64915. case 3:
  64916. // after for
  64917. // implicit return
  64918. return P._asyncReturn(null, $async$completer);
  64919. }
  64920. });
  64921. return P._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  64922. },
  64923. visitCssSupportsRule$1: function(node) {
  64924. return this.visitCssSupportsRule$body$_EvaluateVisitor0(node);
  64925. },
  64926. visitCssSupportsRule$body$_EvaluateVisitor0: function(node) {
  64927. var $async$goto = 0,
  64928. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64929. $async$self = this, t1;
  64930. var $async$visitCssSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64931. if ($async$errorCode === 1)
  64932. return P._asyncRethrow($async$result, $async$completer);
  64933. while (true)
  64934. switch ($async$goto) {
  64935. case 0:
  64936. // Function start
  64937. if ($async$self._async_evaluate0$_declarationName != null)
  64938. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
  64939. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  64940. $async$goto = 2;
  64941. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitCssSupportsRule_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssSupportsRule_closure6(), type$.legacy_ModifiableCssSupportsRule_2, type$.Null), $async$visitCssSupportsRule$1);
  64942. case 2:
  64943. // returning from await.
  64944. // implicit return
  64945. return P._asyncReturn(null, $async$completer);
  64946. }
  64947. });
  64948. return P._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  64949. },
  64950. _async_evaluate0$_handleReturn$1$2: function(list, callback) {
  64951. return this._handleReturn$body$_EvaluateVisitor0(list, callback);
  64952. },
  64953. _async_evaluate0$_handleReturn$2: function(list, callback) {
  64954. return this._async_evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  64955. },
  64956. _handleReturn$body$_EvaluateVisitor0: function(list, callback) {
  64957. var $async$goto = 0,
  64958. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64959. $async$returnValue, t1, _i, result;
  64960. var $async$_async_evaluate0$_handleReturn$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64961. if ($async$errorCode === 1)
  64962. return P._asyncRethrow($async$result, $async$completer);
  64963. while (true)
  64964. switch ($async$goto) {
  64965. case 0:
  64966. // Function start
  64967. t1 = list.length, _i = 0;
  64968. case 3:
  64969. // for condition
  64970. if (!(_i < list.length)) {
  64971. // goto after for
  64972. $async$goto = 5;
  64973. break;
  64974. }
  64975. $async$goto = 6;
  64976. return P._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate0$_handleReturn$1$2);
  64977. case 6:
  64978. // returning from await.
  64979. result = $async$result;
  64980. if (result != null) {
  64981. $async$returnValue = result;
  64982. // goto return
  64983. $async$goto = 1;
  64984. break;
  64985. }
  64986. case 4:
  64987. // for update
  64988. list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i;
  64989. // goto for condition
  64990. $async$goto = 3;
  64991. break;
  64992. case 5:
  64993. // after for
  64994. $async$returnValue = null;
  64995. // goto return
  64996. $async$goto = 1;
  64997. break;
  64998. case 1:
  64999. // return
  65000. return P._asyncReturn($async$returnValue, $async$completer);
  65001. }
  65002. });
  65003. return P._asyncStartSync($async$_async_evaluate0$_handleReturn$1$2, $async$completer);
  65004. },
  65005. _async_evaluate0$_withEnvironment$1$2: function(environment, callback, $T) {
  65006. return this._withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $T._eval$1("0*"));
  65007. },
  65008. _withEnvironment$body$_EvaluateVisitor0: function(environment, callback, $T, $async$type) {
  65009. var $async$goto = 0,
  65010. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65011. $async$returnValue, $async$self = this, result, oldEnvironment;
  65012. var $async$_async_evaluate0$_withEnvironment$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65013. if ($async$errorCode === 1)
  65014. return P._asyncRethrow($async$result, $async$completer);
  65015. while (true)
  65016. switch ($async$goto) {
  65017. case 0:
  65018. // Function start
  65019. oldEnvironment = $async$self._async_evaluate0$_environment;
  65020. $async$self._async_evaluate0$_environment = environment;
  65021. $async$goto = 3;
  65022. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withEnvironment$1$2);
  65023. case 3:
  65024. // returning from await.
  65025. result = $async$result;
  65026. $async$self._async_evaluate0$_environment = oldEnvironment;
  65027. $async$returnValue = result;
  65028. // goto return
  65029. $async$goto = 1;
  65030. break;
  65031. case 1:
  65032. // return
  65033. return P._asyncReturn($async$returnValue, $async$completer);
  65034. }
  65035. });
  65036. return P._asyncStartSync($async$_async_evaluate0$_withEnvironment$1$2, $async$completer);
  65037. },
  65038. _async_evaluate0$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  65039. return this._interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor);
  65040. },
  65041. _async_evaluate0$_interpolationToValue$1: function(interpolation) {
  65042. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  65043. },
  65044. _async_evaluate0$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  65045. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  65046. },
  65047. _interpolationToValue$body$_EvaluateVisitor0: function(interpolation, trim, warnForColor) {
  65048. var $async$goto = 0,
  65049. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CssValue_legacy_String_2),
  65050. $async$returnValue, $async$self = this, result, t1;
  65051. var $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65052. if ($async$errorCode === 1)
  65053. return P._asyncRethrow($async$result, $async$completer);
  65054. while (true)
  65055. switch ($async$goto) {
  65056. case 0:
  65057. // Function start
  65058. $async$goto = 3;
  65059. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor);
  65060. case 3:
  65061. // returning from await.
  65062. result = $async$result;
  65063. t1 = trim ? B.trimAscii0(result, true) : result;
  65064. $async$returnValue = new F.CssValue0(t1, interpolation.span, type$.CssValue_legacy_String_2);
  65065. // goto return
  65066. $async$goto = 1;
  65067. break;
  65068. case 1:
  65069. // return
  65070. return P._asyncReturn($async$returnValue, $async$completer);
  65071. }
  65072. });
  65073. return P._asyncStartSync($async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor, $async$completer);
  65074. },
  65075. _async_evaluate0$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  65076. return this._performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor);
  65077. },
  65078. _async_evaluate0$_performInterpolation$1: function(interpolation) {
  65079. return this._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  65080. },
  65081. _performInterpolation$body$_EvaluateVisitor0: function(interpolation, warnForColor) {
  65082. var $async$goto = 0,
  65083. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  65084. $async$returnValue, $async$self = this, $async$temp1;
  65085. var $async$_async_evaluate0$_performInterpolation$2$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65086. if ($async$errorCode === 1)
  65087. return P._asyncRethrow($async$result, $async$completer);
  65088. while (true)
  65089. switch ($async$goto) {
  65090. case 0:
  65091. // Function start
  65092. $async$temp1 = J;
  65093. $async$goto = 3;
  65094. return P._asyncAwait(B.mapAsync0(interpolation.contents, new E._EvaluateVisitor__performInterpolation_closure2($async$self, warnForColor), type$.legacy_Object, type$.legacy_String), $async$_async_evaluate0$_performInterpolation$2$warnForColor);
  65095. case 3:
  65096. // returning from await.
  65097. $async$returnValue = $async$temp1.join$0$ax($async$result);
  65098. // goto return
  65099. $async$goto = 1;
  65100. break;
  65101. case 1:
  65102. // return
  65103. return P._asyncReturn($async$returnValue, $async$completer);
  65104. }
  65105. });
  65106. return P._asyncStartSync($async$_async_evaluate0$_performInterpolation$2$warnForColor, $async$completer);
  65107. },
  65108. _async_evaluate0$_evaluateToCss$2$quote: function(expression, quote) {
  65109. return this._evaluateToCss$body$_EvaluateVisitor0(expression, quote);
  65110. },
  65111. _async_evaluate0$_evaluateToCss$1: function(expression) {
  65112. return this._async_evaluate0$_evaluateToCss$2$quote(expression, true);
  65113. },
  65114. _evaluateToCss$body$_EvaluateVisitor0: function(expression, quote) {
  65115. var $async$goto = 0,
  65116. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  65117. $async$returnValue, $async$self = this;
  65118. var $async$_async_evaluate0$_evaluateToCss$2$quote = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65119. if ($async$errorCode === 1)
  65120. return P._asyncRethrow($async$result, $async$completer);
  65121. while (true)
  65122. switch ($async$goto) {
  65123. case 0:
  65124. // Function start
  65125. $async$goto = 3;
  65126. return P._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate0$_evaluateToCss$2$quote);
  65127. case 3:
  65128. // returning from await.
  65129. $async$returnValue = $async$self._async_evaluate0$_serialize$3$quote($async$result, expression, quote);
  65130. // goto return
  65131. $async$goto = 1;
  65132. break;
  65133. case 1:
  65134. // return
  65135. return P._asyncReturn($async$returnValue, $async$completer);
  65136. }
  65137. });
  65138. return P._asyncStartSync($async$_async_evaluate0$_evaluateToCss$2$quote, $async$completer);
  65139. },
  65140. _async_evaluate0$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  65141. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__serialize_closure2(value, quote));
  65142. },
  65143. _async_evaluate0$_serialize$2: function(value, nodeWithSpan) {
  65144. return this._async_evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  65145. },
  65146. _async_evaluate0$_expressionNode$1: function(expression) {
  65147. var t1;
  65148. if (!this._async_evaluate0$_sourceMap)
  65149. return null;
  65150. if (expression instanceof S.VariableExpression0) {
  65151. t1 = this._async_evaluate0$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  65152. return t1 == null ? expression : t1;
  65153. } else
  65154. return expression;
  65155. },
  65156. _async_evaluate0$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  65157. return this._withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $T._eval$1("0*"));
  65158. },
  65159. _async_evaluate0$_withParent$2$2: function(node, callback, $S, $T) {
  65160. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  65161. },
  65162. _async_evaluate0$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  65163. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  65164. },
  65165. _withParent$body$_EvaluateVisitor0: function(node, callback, scopeWhen, through, $S, $T, $async$type) {
  65166. var $async$goto = 0,
  65167. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65168. $async$returnValue, $async$self = this, oldParent, result;
  65169. var $async$_async_evaluate0$_withParent$2$4$scopeWhen$through = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65170. if ($async$errorCode === 1)
  65171. return P._asyncRethrow($async$result, $async$completer);
  65172. while (true)
  65173. switch ($async$goto) {
  65174. case 0:
  65175. // Function start
  65176. $async$self._async_evaluate0$_addChild$2$through(node, through);
  65177. oldParent = $async$self._async_evaluate0$_parent;
  65178. $async$self._async_evaluate0$_parent = node;
  65179. $async$goto = 3;
  65180. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T._eval$1("0*")), $async$_async_evaluate0$_withParent$2$4$scopeWhen$through);
  65181. case 3:
  65182. // returning from await.
  65183. result = $async$result;
  65184. $async$self._async_evaluate0$_parent = oldParent;
  65185. $async$returnValue = result;
  65186. // goto return
  65187. $async$goto = 1;
  65188. break;
  65189. case 1:
  65190. // return
  65191. return P._asyncReturn($async$returnValue, $async$completer);
  65192. }
  65193. });
  65194. return P._asyncStartSync($async$_async_evaluate0$_withParent$2$4$scopeWhen$through, $async$completer);
  65195. },
  65196. _async_evaluate0$_addChild$2$through: function(node, through) {
  65197. var grandparent,
  65198. $parent = this._async_evaluate0$_parent;
  65199. if (through != null) {
  65200. for (; through.call$1($parent);)
  65201. $parent = $parent._node2$_parent;
  65202. if ($parent.get$hasFollowingSibling()) {
  65203. grandparent = $parent._node2$_parent;
  65204. $parent = $parent.copyWithoutChildren$0();
  65205. grandparent.addChild$1($parent);
  65206. }
  65207. }
  65208. $parent.addChild$1(node);
  65209. },
  65210. _async_evaluate0$_addChild$1: function(node) {
  65211. return this._async_evaluate0$_addChild$2$through(node, null);
  65212. },
  65213. _async_evaluate0$_withStyleRule$1$2: function(rule, callback, $T) {
  65214. return this._withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $T._eval$1("0*"));
  65215. },
  65216. _withStyleRule$body$_EvaluateVisitor0: function(rule, callback, $T, $async$type) {
  65217. var $async$goto = 0,
  65218. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65219. $async$returnValue, $async$self = this, result, oldRule;
  65220. var $async$_async_evaluate0$_withStyleRule$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65221. if ($async$errorCode === 1)
  65222. return P._asyncRethrow($async$result, $async$completer);
  65223. while (true)
  65224. switch ($async$goto) {
  65225. case 0:
  65226. // Function start
  65227. oldRule = $async$self._async_evaluate0$_styleRule;
  65228. $async$self._async_evaluate0$_styleRule = rule;
  65229. $async$goto = 3;
  65230. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStyleRule$1$2);
  65231. case 3:
  65232. // returning from await.
  65233. result = $async$result;
  65234. $async$self._async_evaluate0$_styleRule = oldRule;
  65235. $async$returnValue = result;
  65236. // goto return
  65237. $async$goto = 1;
  65238. break;
  65239. case 1:
  65240. // return
  65241. return P._asyncReturn($async$returnValue, $async$completer);
  65242. }
  65243. });
  65244. return P._asyncStartSync($async$_async_evaluate0$_withStyleRule$1$2, $async$completer);
  65245. },
  65246. _async_evaluate0$_withMediaQueries$1$2: function(queries, callback, $T) {
  65247. return this._withMediaQueries$body$_EvaluateVisitor0(queries, callback, $T, $T._eval$1("0*"));
  65248. },
  65249. _withMediaQueries$body$_EvaluateVisitor0: function(queries, callback, $T, $async$type) {
  65250. var $async$goto = 0,
  65251. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65252. $async$returnValue, $async$self = this, result, oldMediaQueries;
  65253. var $async$_async_evaluate0$_withMediaQueries$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65254. if ($async$errorCode === 1)
  65255. return P._asyncRethrow($async$result, $async$completer);
  65256. while (true)
  65257. switch ($async$goto) {
  65258. case 0:
  65259. // Function start
  65260. oldMediaQueries = $async$self._async_evaluate0$_mediaQueries;
  65261. $async$self._async_evaluate0$_mediaQueries = queries;
  65262. $async$goto = 3;
  65263. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withMediaQueries$1$2);
  65264. case 3:
  65265. // returning from await.
  65266. result = $async$result;
  65267. $async$self._async_evaluate0$_mediaQueries = oldMediaQueries;
  65268. $async$returnValue = result;
  65269. // goto return
  65270. $async$goto = 1;
  65271. break;
  65272. case 1:
  65273. // return
  65274. return P._asyncReturn($async$returnValue, $async$completer);
  65275. }
  65276. });
  65277. return P._asyncStartSync($async$_async_evaluate0$_withMediaQueries$1$2, $async$completer);
  65278. },
  65279. _async_evaluate0$_withStackFrame$1$3: function(member, nodeWithSpan, callback, $T) {
  65280. return this._withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $T._eval$1("0*"));
  65281. },
  65282. _withStackFrame$body$_EvaluateVisitor0: function(member, nodeWithSpan, callback, $T, $async$type) {
  65283. var $async$goto = 0,
  65284. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65285. $async$returnValue, $async$self = this, oldMember, result, t1;
  65286. var $async$_async_evaluate0$_withStackFrame$1$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65287. if ($async$errorCode === 1)
  65288. return P._asyncRethrow($async$result, $async$completer);
  65289. while (true)
  65290. switch ($async$goto) {
  65291. case 0:
  65292. // Function start
  65293. t1 = $async$self._async_evaluate0$_stack;
  65294. t1.push(new S.Tuple2($async$self._async_evaluate0$_member, nodeWithSpan, type$.Tuple2_of_legacy_String_and_legacy_AstNode_2));
  65295. oldMember = $async$self._async_evaluate0$_member;
  65296. $async$self._async_evaluate0$_member = member;
  65297. $async$goto = 3;
  65298. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStackFrame$1$3);
  65299. case 3:
  65300. // returning from await.
  65301. result = $async$result;
  65302. $async$self._async_evaluate0$_member = oldMember;
  65303. t1.pop();
  65304. $async$returnValue = result;
  65305. // goto return
  65306. $async$goto = 1;
  65307. break;
  65308. case 1:
  65309. // return
  65310. return P._asyncReturn($async$returnValue, $async$completer);
  65311. }
  65312. });
  65313. return P._asyncStartSync($async$_async_evaluate0$_withStackFrame$1$3, $async$completer);
  65314. },
  65315. _async_evaluate0$_stackFrame$2: function(member, span) {
  65316. var url = span.file.url;
  65317. return B.frameForSpan0(span, member, url != null && this._async_evaluate0$_importCache != null ? this._async_evaluate0$_importCache.humanize$1(url) : url);
  65318. },
  65319. _async_evaluate0$_stackTrace$1: function(span) {
  65320. var t2, cur, _this = this,
  65321. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  65322. for (t2 = _this._async_evaluate0$_stack, t2 = new H.MappedListIterable(t2, new E._EvaluateVisitor__stackTrace_closure2(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame*>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  65323. cur = t2.__internal$_current;
  65324. t1.push(cur);
  65325. }
  65326. if (span != null)
  65327. t1.push(_this._async_evaluate0$_stackFrame$2(_this._async_evaluate0$_member, span));
  65328. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  65329. },
  65330. _async_evaluate0$_stackTrace$0: function() {
  65331. return this._async_evaluate0$_stackTrace$1(null);
  65332. },
  65333. _async_evaluate0$_warn$3$deprecation: function(message, span, deprecation) {
  65334. return this._async_evaluate0$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._async_evaluate0$_stackTrace$1(span));
  65335. },
  65336. _async_evaluate0$_warn$2: function(message, span) {
  65337. return this._async_evaluate0$_warn$3$deprecation(message, span, false);
  65338. },
  65339. _async_evaluate0$_exception$2: function(message, span) {
  65340. var t1 = span == null ? C.JSArray_methods.get$last(this._async_evaluate0$_stack).item2.get$span() : span;
  65341. return new E.SassRuntimeException0(this._async_evaluate0$_stackTrace$1(span), message, t1);
  65342. },
  65343. _async_evaluate0$_exception$1: function(message) {
  65344. return this._async_evaluate0$_exception$2(message, null);
  65345. },
  65346. _async_evaluate0$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  65347. var t1 = C.JSArray_methods.get$last(this._async_evaluate0$_stack).item2.get$span();
  65348. return new E.MultiSpanSassRuntimeException0(this._async_evaluate0$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.legacy_FileSpan, type$.legacy_String), message, t1);
  65349. },
  65350. _async_evaluate0$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  65351. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  65352. try {
  65353. t1 = callback.call$0();
  65354. return t1;
  65355. } catch (exception) {
  65356. t1 = H.unwrapException(exception);
  65357. if (t1 instanceof E.SassFormatException0) {
  65358. error = t1;
  65359. t1 = error;
  65360. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  65361. span = nodeWithSpan.get$span();
  65362. t1 = span;
  65363. t2 = span;
  65364. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  65365. t2 = syntheticFile;
  65366. t1 = span.file.url;
  65367. t2.toString;
  65368. t2 = new H.CodeUnits(t2);
  65369. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  65370. t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  65371. t3.SourceFile$decoded$2$url(t2, t1);
  65372. t1 = span;
  65373. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  65374. t2 = error;
  65375. t2 = G.SourceSpanException.prototype.get$span.call(t2);
  65376. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  65377. t4 = span;
  65378. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  65379. t5 = error;
  65380. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  65381. syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  65382. throw H.wrapException(this._async_evaluate0$_exception$2(error._span_exception$_message, syntheticSpan));
  65383. } else
  65384. throw exception;
  65385. }
  65386. },
  65387. _async_evaluate0$_adjustParseError$2: function(nodeWithSpan, callback) {
  65388. return this._async_evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  65389. },
  65390. _async_evaluate0$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  65391. var error, error0, t1, exception;
  65392. try {
  65393. t1 = callback.call$0();
  65394. return t1;
  65395. } catch (exception) {
  65396. t1 = H.unwrapException(exception);
  65397. if (t1 instanceof E.MultiSpanSassScriptException0) {
  65398. error = t1;
  65399. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  65400. } else if (t1 instanceof E.SassScriptException0) {
  65401. error0 = t1;
  65402. throw H.wrapException(this._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  65403. } else
  65404. throw exception;
  65405. }
  65406. },
  65407. _async_evaluate0$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  65408. return this._async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  65409. },
  65410. _async_evaluate0$_addExceptionSpanAsync$1$2: function(nodeWithSpan, callback, $T) {
  65411. return this._addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T._eval$1("0*"));
  65412. },
  65413. _addExceptionSpanAsync$body$_EvaluateVisitor0: function(nodeWithSpan, callback, $T, $async$type) {
  65414. var $async$goto = 0,
  65415. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65416. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, error0, t1, exception, $async$exception;
  65417. var $async$_async_evaluate0$_addExceptionSpanAsync$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65418. if ($async$errorCode === 1) {
  65419. $async$currentError = $async$result;
  65420. $async$goto = $async$handler;
  65421. }
  65422. while (true)
  65423. switch ($async$goto) {
  65424. case 0:
  65425. // Function start
  65426. $async$handler = 4;
  65427. $async$goto = 7;
  65428. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addExceptionSpanAsync$1$2);
  65429. case 7:
  65430. // returning from await.
  65431. t1 = $async$result;
  65432. $async$returnValue = t1;
  65433. // goto return
  65434. $async$goto = 1;
  65435. break;
  65436. $async$handler = 2;
  65437. // goto after finally
  65438. $async$goto = 6;
  65439. break;
  65440. case 4:
  65441. // catch
  65442. $async$handler = 3;
  65443. $async$exception = $async$currentError;
  65444. t1 = H.unwrapException($async$exception);
  65445. if (t1 instanceof E.MultiSpanSassScriptException0) {
  65446. error = t1;
  65447. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  65448. } else if (t1 instanceof E.SassScriptException0) {
  65449. error0 = t1;
  65450. throw H.wrapException($async$self._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  65451. } else
  65452. throw $async$exception;
  65453. // goto after finally
  65454. $async$goto = 6;
  65455. break;
  65456. case 3:
  65457. // uncaught
  65458. // goto rethrow
  65459. $async$goto = 2;
  65460. break;
  65461. case 6:
  65462. // after finally
  65463. case 1:
  65464. // return
  65465. return P._asyncReturn($async$returnValue, $async$completer);
  65466. case 2:
  65467. // rethrow
  65468. return P._asyncRethrow($async$currentError, $async$completer);
  65469. }
  65470. });
  65471. return P._asyncStartSync($async$_async_evaluate0$_addExceptionSpanAsync$1$2, $async$completer);
  65472. },
  65473. _async_evaluate0$_addErrorSpan$1$2: function(nodeWithSpan, callback, $T) {
  65474. return this._addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T._eval$1("0*"));
  65475. },
  65476. _addErrorSpan$body$_EvaluateVisitor0: function(nodeWithSpan, callback, $T, $async$type) {
  65477. var $async$goto = 0,
  65478. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  65479. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, t1, exception, $async$exception;
  65480. var $async$_async_evaluate0$_addErrorSpan$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65481. if ($async$errorCode === 1) {
  65482. $async$currentError = $async$result;
  65483. $async$goto = $async$handler;
  65484. }
  65485. while (true)
  65486. switch ($async$goto) {
  65487. case 0:
  65488. // Function start
  65489. $async$handler = 4;
  65490. $async$goto = 7;
  65491. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addErrorSpan$1$2);
  65492. case 7:
  65493. // returning from await.
  65494. t1 = $async$result;
  65495. $async$returnValue = t1;
  65496. // goto return
  65497. $async$goto = 1;
  65498. break;
  65499. $async$handler = 2;
  65500. // goto after finally
  65501. $async$goto = 6;
  65502. break;
  65503. case 4:
  65504. // catch
  65505. $async$handler = 3;
  65506. $async$exception = $async$currentError;
  65507. t1 = H.unwrapException($async$exception);
  65508. if (type$.legacy_SassRuntimeException_2._is(t1)) {
  65509. error = t1;
  65510. t1 = error.get$span();
  65511. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  65512. throw $async$exception;
  65513. throw H.wrapException(E.SassRuntimeException$0(error._span_exception$_message, nodeWithSpan.get$span(), $async$self._async_evaluate0$_stackTrace$0()));
  65514. } else
  65515. throw $async$exception;
  65516. // goto after finally
  65517. $async$goto = 6;
  65518. break;
  65519. case 3:
  65520. // uncaught
  65521. // goto rethrow
  65522. $async$goto = 2;
  65523. break;
  65524. case 6:
  65525. // after finally
  65526. case 1:
  65527. // return
  65528. return P._asyncReturn($async$returnValue, $async$completer);
  65529. case 2:
  65530. // rethrow
  65531. return P._asyncRethrow($async$currentError, $async$completer);
  65532. }
  65533. });
  65534. return P._asyncStartSync($async$_async_evaluate0$_addErrorSpan$1$2, $async$completer);
  65535. }
  65536. };
  65537. E._EvaluateVisitor_closure29.prototype = {
  65538. call$1: function($arguments) {
  65539. var module, t2,
  65540. t1 = J.getInterceptor$asx($arguments),
  65541. variable = t1.$index($arguments, 0).assertString$1("name");
  65542. t1 = t1.$index($arguments, 1).get$realNull();
  65543. module = t1 == null ? null : t1.assertString$1("module");
  65544. t1 = this.$this._async_evaluate0$_environment;
  65545. t2 = variable.text;
  65546. t2.toString;
  65547. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  65548. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true : C.SassBoolean_false;
  65549. },
  65550. $signature: 14
  65551. };
  65552. E._EvaluateVisitor_closure30.prototype = {
  65553. call$1: function($arguments) {
  65554. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  65555. t1 = this.$this._async_evaluate0$_environment,
  65556. t2 = variable.text;
  65557. t2.toString;
  65558. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true : C.SassBoolean_false;
  65559. },
  65560. $signature: 14
  65561. };
  65562. E._EvaluateVisitor_closure31.prototype = {
  65563. call$1: function($arguments) {
  65564. var module, t2, t3, t4,
  65565. t1 = J.getInterceptor$asx($arguments),
  65566. variable = t1.$index($arguments, 0).assertString$1("name");
  65567. t1 = t1.$index($arguments, 1).get$realNull();
  65568. module = t1 == null ? null : t1.assertString$1("module");
  65569. t1 = this.$this;
  65570. t2 = t1._async_evaluate0$_environment;
  65571. t3 = variable.text;
  65572. t3.toString;
  65573. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  65574. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._async_evaluate0$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true : C.SassBoolean_false;
  65575. },
  65576. $signature: 14
  65577. };
  65578. E._EvaluateVisitor_closure32.prototype = {
  65579. call$1: function($arguments) {
  65580. var module, t2,
  65581. t1 = J.getInterceptor$asx($arguments),
  65582. variable = t1.$index($arguments, 0).assertString$1("name");
  65583. t1 = t1.$index($arguments, 1).get$realNull();
  65584. module = t1 == null ? null : t1.assertString$1("module");
  65585. t1 = this.$this._async_evaluate0$_environment;
  65586. t2 = variable.text;
  65587. t2.toString;
  65588. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  65589. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true : C.SassBoolean_false;
  65590. },
  65591. $signature: 14
  65592. };
  65593. E._EvaluateVisitor_closure33.prototype = {
  65594. call$1: function($arguments) {
  65595. var t1 = this.$this._async_evaluate0$_environment;
  65596. if (!t1._async_environment0$_inMixin)
  65597. throw H.wrapException(E.SassScriptException$0(string$.conten));
  65598. return t1._async_environment0$_content != null ? C.SassBoolean_true : C.SassBoolean_false;
  65599. },
  65600. $signature: 14
  65601. };
  65602. E._EvaluateVisitor_closure34.prototype = {
  65603. call$1: function($arguments) {
  65604. var t2, t3, t4,
  65605. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  65606. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  65607. if (module == null)
  65608. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  65609. t1 = type$.legacy_Value_2;
  65610. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  65611. for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  65612. t4 = t3.get$current(t3);
  65613. t2.$indexSet(0, new D.SassString0(t4.key, true), t4.value);
  65614. }
  65615. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  65616. },
  65617. $signature: 28
  65618. };
  65619. E._EvaluateVisitor_closure35.prototype = {
  65620. call$1: function($arguments) {
  65621. var t2, t3, t4,
  65622. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  65623. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  65624. if (module == null)
  65625. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  65626. t1 = type$.legacy_Value_2;
  65627. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  65628. for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  65629. t4 = t3.get$current(t3);
  65630. t2.$indexSet(0, new D.SassString0(t4.key, true), new F.SassFunction0(t4.value));
  65631. }
  65632. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  65633. },
  65634. $signature: 28
  65635. };
  65636. E._EvaluateVisitor_closure36.prototype = {
  65637. call$1: function($arguments) {
  65638. var module, callable,
  65639. t1 = J.getInterceptor$asx($arguments),
  65640. $name = t1.$index($arguments, 0).assertString$1("name"),
  65641. css = t1.$index($arguments, 1).get$isTruthy();
  65642. t1 = t1.$index($arguments, 2).get$realNull();
  65643. module = t1 == null ? null : t1.assertString$1("module");
  65644. if (css && module != null)
  65645. throw H.wrapException(string$.x24css_a);
  65646. if (css)
  65647. callable = new L.PlainCssCallable0($name.text);
  65648. else {
  65649. t1 = this.$this;
  65650. callable = t1._async_evaluate0$_addExceptionSpan$2(t1._async_evaluate0$_callableNode, new E._EvaluateVisitor__closure10(t1, $name, module));
  65651. }
  65652. if (callable != null)
  65653. return new F.SassFunction0(callable);
  65654. throw H.wrapException("Function not found: " + $name.toString$0(0));
  65655. },
  65656. $signature: 86
  65657. };
  65658. E._EvaluateVisitor__closure10.prototype = {
  65659. call$0: function() {
  65660. var t2,
  65661. t1 = this.name.text;
  65662. t1.toString;
  65663. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  65664. t2 = this.module;
  65665. t2 = t2 == null ? null : t2.text;
  65666. return this.$this._async_evaluate0$_getFunction$2$namespace(t1, t2);
  65667. },
  65668. $signature: 61
  65669. };
  65670. E._EvaluateVisitor_closure37.prototype = {
  65671. call$1: function($arguments) {
  65672. return this.$call$body$_EvaluateVisitor_closure2($arguments);
  65673. },
  65674. $call$body$_EvaluateVisitor_closure2: function($arguments) {
  65675. var $async$goto = 0,
  65676. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65677. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, invocation, callable, t1, $function, args;
  65678. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65679. if ($async$errorCode === 1)
  65680. return P._asyncRethrow($async$result, $async$completer);
  65681. while (true)
  65682. switch ($async$goto) {
  65683. case 0:
  65684. // Function start
  65685. t1 = J.getInterceptor$asx($arguments);
  65686. $function = t1.$index($arguments, 0);
  65687. args = type$.legacy_SassArgumentList_2._as(t1.$index($arguments, 1));
  65688. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  65689. t2 = $async$self.$this;
  65690. t3 = t2._async_evaluate0$_callableNode.get$span();
  65691. t4 = t2._async_evaluate0$_callableNode.get$span();
  65692. args._argument_list$_wereKeywordsAccessed = true;
  65693. t5 = args._argument_list$_keywords;
  65694. if (t5.get$isEmpty(t5))
  65695. t5 = null;
  65696. else {
  65697. t6 = type$.legacy_Value_2;
  65698. t7 = P.LinkedHashMap_LinkedHashMap$_empty(t6, t6);
  65699. for (args._argument_list$_wereKeywordsAccessed = true, t5 = t5.get$entries(), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  65700. t8 = t5.get$current(t5);
  65701. t7.$indexSet(0, new D.SassString0(t8.key, false), t8.value);
  65702. }
  65703. t5 = new F.ValueExpression0(new A.SassMap0(H.ConstantMap_ConstantMap$from(t7, t6, t6)), t2._async_evaluate0$_callableNode.get$span());
  65704. }
  65705. invocation = X.ArgumentInvocation$0(t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Expression_2), t3, t5, new F.ValueExpression0(args, t4));
  65706. $async$goto = $function instanceof D.SassString0 ? 3 : 4;
  65707. break;
  65708. case 3:
  65709. // then
  65710. N.warn0(string$.Passins + $function.toString$0(0) + ")) instead.", true);
  65711. $async$goto = 5;
  65712. return P._asyncAwait(t2.visitFunctionExpression$1(new F.FunctionExpression0(null, X.Interpolation$0(H.setRuntimeTypeInfo([$function.text], type$.JSArray_legacy_Object), t2._async_evaluate0$_callableNode.get$span()), invocation, t2._async_evaluate0$_callableNode.get$span())), $async$call$1);
  65713. case 5:
  65714. // returning from await.
  65715. $async$returnValue = $async$result;
  65716. // goto return
  65717. $async$goto = 1;
  65718. break;
  65719. case 4:
  65720. // join
  65721. callable = $function.assertFunction$1("function").callable;
  65722. $async$goto = type$.legacy_AsyncCallable_2._is(callable) ? 6 : 8;
  65723. break;
  65724. case 6:
  65725. // then
  65726. $async$goto = 9;
  65727. return P._asyncAwait(t2._async_evaluate0$_runFunctionCallable$3(invocation, callable, t2._async_evaluate0$_callableNode), $async$call$1);
  65728. case 9:
  65729. // returning from await.
  65730. $async$returnValue = $async$result;
  65731. // goto return
  65732. $async$goto = 1;
  65733. break;
  65734. // goto join
  65735. $async$goto = 7;
  65736. break;
  65737. case 8:
  65738. // else
  65739. throw H.wrapException(E.SassScriptException$0("The function " + H.S(callable.get$name()) + string$.x20is_as));
  65740. case 7:
  65741. // join
  65742. case 1:
  65743. // return
  65744. return P._asyncReturn($async$returnValue, $async$completer);
  65745. }
  65746. });
  65747. return P._asyncStartSync($async$call$1, $async$completer);
  65748. }
  65749. };
  65750. E._EvaluateVisitor_closure38.prototype = {
  65751. call$1: function($arguments) {
  65752. return this.$call$body$_EvaluateVisitor_closure1($arguments);
  65753. },
  65754. $call$body$_EvaluateVisitor_closure1: function($arguments) {
  65755. var $async$goto = 0,
  65756. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65757. $async$returnValue, $async$self = this, withMap, values, configuration, t2, t3, t1, url;
  65758. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65759. if ($async$errorCode === 1)
  65760. return P._asyncRethrow($async$result, $async$completer);
  65761. while (true)
  65762. switch ($async$goto) {
  65763. case 0:
  65764. // Function start
  65765. t1 = J.getInterceptor$asx($arguments);
  65766. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
  65767. t1 = t1.$index($arguments, 1).get$realNull();
  65768. t1 = t1 == null ? null : t1.assertMap$1("with");
  65769. withMap = t1 == null ? null : t1.contents;
  65770. if (withMap != null) {
  65771. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue_2);
  65772. t1 = $async$self.$this;
  65773. withMap.forEach$1(0, new E._EvaluateVisitor__closure8(values, t1._async_evaluate0$_callableNode.get$span()));
  65774. configuration = new A.Configuration0(values, t1._async_evaluate0$_callableNode, false);
  65775. } else
  65776. configuration = C.Configuration_Map_empty_null_true0;
  65777. t1 = $async$self.$this;
  65778. t2 = t1._async_evaluate0$_callableNode;
  65779. t3 = t2.get$span();
  65780. t3 = t3 == null ? null : t3.file.url;
  65781. $async$goto = 3;
  65782. return P._asyncAwait(t1._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new E._EvaluateVisitor__closure9(t1), t3, configuration, true), $async$call$1);
  65783. case 3:
  65784. // returning from await.
  65785. t1._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  65786. $async$returnValue = null;
  65787. // goto return
  65788. $async$goto = 1;
  65789. break;
  65790. case 1:
  65791. // return
  65792. return P._asyncReturn($async$returnValue, $async$completer);
  65793. }
  65794. });
  65795. return P._asyncStartSync($async$call$1, $async$completer);
  65796. }
  65797. };
  65798. E._EvaluateVisitor__closure8.prototype = {
  65799. call$2: function(variable, value) {
  65800. var $name,
  65801. t1 = variable.assertString$1("with key").text;
  65802. t1.toString;
  65803. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  65804. t1 = this.values;
  65805. if (t1.containsKey$1($name))
  65806. throw H.wrapException("The variable $" + $name + " was configured twice.");
  65807. t1.$indexSet(0, $name, new Z.ConfiguredValue0(value, this.span, null));
  65808. }
  65809. };
  65810. E._EvaluateVisitor__closure9.prototype = {
  65811. call$1: function(module) {
  65812. var t1 = this.$this;
  65813. return t1._async_evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  65814. }
  65815. };
  65816. E._EvaluateVisitor_run_closure2.prototype = {
  65817. call$0: function() {
  65818. var $async$goto = 0,
  65819. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_EvaluateResult_2),
  65820. $async$returnValue, $async$self = this, t2, t1, url, $async$temp1, $async$temp2;
  65821. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65822. if ($async$errorCode === 1)
  65823. return P._asyncRethrow($async$result, $async$completer);
  65824. while (true)
  65825. switch ($async$goto) {
  65826. case 0:
  65827. // Function start
  65828. t1 = $async$self.node;
  65829. url = t1.span.file.url;
  65830. if (url != null) {
  65831. t2 = $async$self.$this;
  65832. t2._async_evaluate0$_activeModules.$indexSet(0, url, null);
  65833. if (t2._async_evaluate0$_nodeImporter != null)
  65834. if (url.get$scheme() === "file")
  65835. t2._async_evaluate0$_includedFiles.add$1(0, $.$get$context().style.pathFromUri$1(M._parseUri(url)));
  65836. else if (url.toString$0(0) !== "stdin")
  65837. t2._async_evaluate0$_includedFiles.add$1(0, url.toString$0(0));
  65838. }
  65839. t2 = $async$self.$this;
  65840. $async$temp1 = E;
  65841. $async$temp2 = t2;
  65842. $async$goto = 3;
  65843. return P._asyncAwait(t2._async_evaluate0$_execute$2($async$self.importer, t1), $async$call$0);
  65844. case 3:
  65845. // returning from await.
  65846. $async$returnValue = new $async$temp1.EvaluateResult0($async$temp2._async_evaluate0$_combineCss$1($async$result), t2._async_evaluate0$_includedFiles);
  65847. // goto return
  65848. $async$goto = 1;
  65849. break;
  65850. case 1:
  65851. // return
  65852. return P._asyncReturn($async$returnValue, $async$completer);
  65853. }
  65854. });
  65855. return P._asyncStartSync($async$call$0, $async$completer);
  65856. },
  65857. $signature: 114
  65858. };
  65859. E._EvaluateVisitor__withWarnCallback_closure2.prototype = {
  65860. call$2: function(message, deprecation) {
  65861. var t1 = this.$this,
  65862. t2 = t1._async_evaluate0$_importSpan;
  65863. return t1._async_evaluate0$_warn$3$deprecation(message, t2 == null ? t1._async_evaluate0$_callableNode.get$span() : t2, deprecation);
  65864. },
  65865. "call*": "call$2",
  65866. $requiredArgCount: 2
  65867. };
  65868. E._EvaluateVisitor__loadModule_closure5.prototype = {
  65869. call$0: function() {
  65870. return this.callback.call$1(this.builtInModule);
  65871. },
  65872. $signature: 1
  65873. };
  65874. E._EvaluateVisitor__loadModule_closure6.prototype = {
  65875. call$0: function() {
  65876. var $async$goto = 0,
  65877. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65878. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, module, error, error0, error1, error2, message, previousLoad, exception, t1, t2, result, importer, stylesheet, canonicalUrl, t3, $async$exception;
  65879. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65880. if ($async$errorCode === 1) {
  65881. $async$currentError = $async$result;
  65882. $async$goto = $async$handler;
  65883. }
  65884. while (true)
  65885. switch ($async$goto) {
  65886. case 0:
  65887. // Function start
  65888. t1 = $async$self.$this;
  65889. t2 = $async$self.nodeWithSpan;
  65890. $async$goto = 2;
  65891. return P._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$baseUrl(J.toString$0$($async$self.url), t2.get$span(), $async$self.baseUrl), $async$call$0);
  65892. case 2:
  65893. // returning from await.
  65894. result = $async$result;
  65895. importer = result.item1;
  65896. stylesheet = result.item2;
  65897. canonicalUrl = stylesheet.span.file.url;
  65898. t3 = t1._async_evaluate0$_activeModules;
  65899. if (t3.containsKey$1(canonicalUrl)) {
  65900. message = $async$self.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : string$.Module;
  65901. previousLoad = t3.$index(0, canonicalUrl);
  65902. throw H.wrapException(previousLoad == null ? t1._async_evaluate0$_exception$1(message) : t1._async_evaluate0$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  65903. }
  65904. t3.$indexSet(0, canonicalUrl, t2);
  65905. module = null;
  65906. $async$handler = 3;
  65907. $async$goto = 6;
  65908. return P._asyncAwait(t1._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
  65909. case 6:
  65910. // returning from await.
  65911. module = $async$result;
  65912. $async$next.push(5);
  65913. // goto finally
  65914. $async$goto = 4;
  65915. break;
  65916. case 3:
  65917. // uncaught
  65918. $async$next = [1];
  65919. case 4:
  65920. // finally
  65921. $async$handler = 1;
  65922. t3.remove$1(0, canonicalUrl);
  65923. // goto the next finally handler
  65924. $async$goto = $async$next.pop();
  65925. break;
  65926. case 5:
  65927. // after finally
  65928. $async$handler = 8;
  65929. $async$goto = 11;
  65930. return P._asyncAwait($async$self.callback.call$1(module), $async$call$0);
  65931. case 11:
  65932. // returning from await.
  65933. $async$handler = 1;
  65934. // goto after finally
  65935. $async$goto = 10;
  65936. break;
  65937. case 8:
  65938. // catch
  65939. $async$handler = 7;
  65940. $async$exception = $async$currentError;
  65941. t2 = H.unwrapException($async$exception);
  65942. if (type$.legacy_SassRuntimeException_2._is(t2))
  65943. throw $async$exception;
  65944. else if (t2 instanceof E.MultiSpanSassException0) {
  65945. error = t2;
  65946. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._async_evaluate0$_stackTrace$1(error.get$span())));
  65947. } else if (t2 instanceof E.SassException0) {
  65948. error0 = t2;
  65949. throw H.wrapException(t1._async_evaluate0$_exception$2(error0._span_exception$_message, error0.get$span()));
  65950. } else if (t2 instanceof E.MultiSpanSassScriptException0) {
  65951. error1 = t2;
  65952. throw H.wrapException(t1._async_evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  65953. } else if (t2 instanceof E.SassScriptException0) {
  65954. error2 = t2;
  65955. throw H.wrapException(t1._async_evaluate0$_exception$1(error2.message));
  65956. } else
  65957. throw $async$exception;
  65958. // goto after finally
  65959. $async$goto = 10;
  65960. break;
  65961. case 7:
  65962. // uncaught
  65963. // goto rethrow
  65964. $async$goto = 1;
  65965. break;
  65966. case 10:
  65967. // after finally
  65968. // implicit return
  65969. return P._asyncReturn(null, $async$completer);
  65970. case 1:
  65971. // rethrow
  65972. return P._asyncRethrow($async$currentError, $async$completer);
  65973. }
  65974. });
  65975. return P._asyncStartSync($async$call$0, $async$completer);
  65976. },
  65977. $signature: 2
  65978. };
  65979. E._EvaluateVisitor__execute_closure2.prototype = {
  65980. call$0: function() {
  65981. var $async$goto = 0,
  65982. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  65983. $async$self = this, t2, t3, t4, css, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtender, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldAtRootExcludingStyleRule, oldInKeyframes, oldConfiguration;
  65984. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65985. if ($async$errorCode === 1)
  65986. return P._asyncRethrow($async$result, $async$completer);
  65987. while (true)
  65988. switch ($async$goto) {
  65989. case 0:
  65990. // Function start
  65991. t1 = $async$self.$this;
  65992. oldImporter = t1._async_evaluate0$_importer;
  65993. oldStylesheet = t1._async_evaluate0$_stylesheet;
  65994. oldRoot = t1._async_evaluate0$_root;
  65995. oldParent = t1._async_evaluate0$_parent;
  65996. oldEndOfImports = t1._async_evaluate0$_endOfImports;
  65997. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  65998. oldExtender = t1._async_evaluate0$_extender;
  65999. oldStyleRule = t1._async_evaluate0$_styleRule;
  66000. oldMediaQueries = t1._async_evaluate0$_mediaQueries;
  66001. oldDeclarationName = t1._async_evaluate0$_declarationName;
  66002. oldInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  66003. oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
  66004. oldInKeyframes = t1._async_evaluate0$_inKeyframes;
  66005. oldConfiguration = t1._async_evaluate0$_configuration;
  66006. t1._async_evaluate0$_importer = $async$self.importer;
  66007. t2 = t1._async_evaluate0$_stylesheet = $async$self.stylesheet;
  66008. t3 = t2.span;
  66009. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  66010. t1._async_evaluate0$_parent = t1._async_evaluate0$_root = new V.ModifiableCssStylesheet0(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t4);
  66011. t1._async_evaluate0$_endOfImports = 0;
  66012. t1._async_evaluate0$_outOfOrderImports = null;
  66013. t1._async_evaluate0$_extender = $async$self.extender;
  66014. t1._async_evaluate0$_declarationName = t1._async_evaluate0$_mediaQueries = t1._async_evaluate0$_styleRule = null;
  66015. t1._async_evaluate0$_inKeyframes = t1._async_evaluate0$_atRootExcludingStyleRule = t1._async_evaluate0$_inUnknownAtRule = false;
  66016. t4 = $async$self.configuration;
  66017. if (t4 != null)
  66018. t1._async_evaluate0$_configuration = t4;
  66019. $async$goto = 2;
  66020. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  66021. case 2:
  66022. // returning from await.
  66023. css = t1._async_evaluate0$_outOfOrderImports == null ? t1._async_evaluate0$_root : new V.CssStylesheet0(new P.UnmodifiableListView(t1._async_evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_legacy_CssNode_2), t3);
  66024. $async$self._box_0.css = css;
  66025. t1._async_evaluate0$_importer = oldImporter;
  66026. t1._async_evaluate0$_stylesheet = oldStylesheet;
  66027. t1._async_evaluate0$_root = oldRoot;
  66028. t1._async_evaluate0$_parent = oldParent;
  66029. t1._async_evaluate0$_endOfImports = oldEndOfImports;
  66030. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  66031. t1._async_evaluate0$_extender = oldExtender;
  66032. t1._async_evaluate0$_styleRule = oldStyleRule;
  66033. t1._async_evaluate0$_mediaQueries = oldMediaQueries;
  66034. t1._async_evaluate0$_declarationName = oldDeclarationName;
  66035. t1._async_evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  66036. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  66037. t1._async_evaluate0$_inKeyframes = oldInKeyframes;
  66038. t1._async_evaluate0$_configuration = oldConfiguration;
  66039. // implicit return
  66040. return P._asyncReturn(null, $async$completer);
  66041. }
  66042. });
  66043. return P._asyncStartSync($async$call$0, $async$completer);
  66044. },
  66045. $signature: 2
  66046. };
  66047. E._EvaluateVisitor__combineCss_closure8.prototype = {
  66048. call$1: function(module) {
  66049. return module.get$transitivelyContainsCss();
  66050. }
  66051. };
  66052. E._EvaluateVisitor__combineCss_closure9.prototype = {
  66053. call$1: function(target) {
  66054. return !this.selectors.contains$1(0, target);
  66055. }
  66056. };
  66057. E._EvaluateVisitor__combineCss_closure10.prototype = {
  66058. call$1: function(module) {
  66059. return module.cloneCss$0();
  66060. }
  66061. };
  66062. E._EvaluateVisitor__extendModules_closure5.prototype = {
  66063. call$1: function(target) {
  66064. return !this.originalSelectors.contains$1(0, target);
  66065. }
  66066. };
  66067. E._EvaluateVisitor__extendModules_closure6.prototype = {
  66068. call$0: function() {
  66069. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extender_2);
  66070. },
  66071. $signature: 83
  66072. };
  66073. E._EvaluateVisitor__topologicalModules_visitModule2.prototype = {
  66074. call$1: function(module) {
  66075. var t1, t2, t3, _i, upstream;
  66076. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  66077. upstream = t1[_i];
  66078. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  66079. this.call$1(upstream);
  66080. }
  66081. this.sorted.addFirst$1(module);
  66082. }
  66083. };
  66084. E._EvaluateVisitor_visitAtRootRule_closure8.prototype = {
  66085. call$0: function() {
  66086. var t1 = S.SpanScanner$(this.resolved, null);
  66087. return new V.AtRootQueryParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
  66088. },
  66089. $signature: 56
  66090. };
  66091. E._EvaluateVisitor_visitAtRootRule_closure9.prototype = {
  66092. call$0: function() {
  66093. var $async$goto = 0,
  66094. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66095. $async$self = this, t1, t2, t3, _i;
  66096. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66097. if ($async$errorCode === 1)
  66098. return P._asyncRethrow($async$result, $async$completer);
  66099. while (true)
  66100. switch ($async$goto) {
  66101. case 0:
  66102. // Function start
  66103. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66104. case 2:
  66105. // for condition
  66106. if (!(_i < t2)) {
  66107. // goto after for
  66108. $async$goto = 4;
  66109. break;
  66110. }
  66111. $async$goto = 5;
  66112. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66113. case 5:
  66114. // returning from await.
  66115. case 3:
  66116. // for update
  66117. ++_i;
  66118. // goto for condition
  66119. $async$goto = 2;
  66120. break;
  66121. case 4:
  66122. // after for
  66123. // implicit return
  66124. return P._asyncReturn(null, $async$completer);
  66125. }
  66126. });
  66127. return P._asyncStartSync($async$call$0, $async$completer);
  66128. },
  66129. $signature: 2
  66130. };
  66131. E._EvaluateVisitor_visitAtRootRule_closure10.prototype = {
  66132. call$0: function() {
  66133. var $async$goto = 0,
  66134. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66135. $async$self = this, t1, t2, t3, _i;
  66136. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66137. if ($async$errorCode === 1)
  66138. return P._asyncRethrow($async$result, $async$completer);
  66139. while (true)
  66140. switch ($async$goto) {
  66141. case 0:
  66142. // Function start
  66143. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66144. case 2:
  66145. // for condition
  66146. if (!(_i < t2)) {
  66147. // goto after for
  66148. $async$goto = 4;
  66149. break;
  66150. }
  66151. $async$goto = 5;
  66152. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66153. case 5:
  66154. // returning from await.
  66155. case 3:
  66156. // for update
  66157. ++_i;
  66158. // goto for condition
  66159. $async$goto = 2;
  66160. break;
  66161. case 4:
  66162. // after for
  66163. // implicit return
  66164. return P._asyncReturn(null, $async$completer);
  66165. }
  66166. });
  66167. return P._asyncStartSync($async$call$0, $async$completer);
  66168. },
  66169. "call*": "call$0",
  66170. $requiredArgCount: 0,
  66171. $signature: 2
  66172. };
  66173. E._EvaluateVisitor__scopeForAtRoot_closure17.prototype = {
  66174. call$1: function(callback) {
  66175. var $async$goto = 0,
  66176. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66177. $async$self = this, t1, oldParent;
  66178. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66179. if ($async$errorCode === 1)
  66180. return P._asyncRethrow($async$result, $async$completer);
  66181. while (true)
  66182. switch ($async$goto) {
  66183. case 0:
  66184. // Function start
  66185. t1 = $async$self.$this;
  66186. oldParent = t1._async_evaluate0$_parent;
  66187. t1._async_evaluate0$_parent = $async$self.newParent;
  66188. $async$goto = 2;
  66189. return P._asyncAwait(t1._async_evaluate0$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  66190. case 2:
  66191. // returning from await.
  66192. t1._async_evaluate0$_parent = oldParent;
  66193. // implicit return
  66194. return P._asyncReturn(null, $async$completer);
  66195. }
  66196. });
  66197. return P._asyncStartSync($async$call$1, $async$completer);
  66198. }
  66199. };
  66200. E._EvaluateVisitor__scopeForAtRoot_closure18.prototype = {
  66201. call$1: function(callback) {
  66202. var $async$goto = 0,
  66203. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66204. $async$self = this, t1, oldAtRootExcludingStyleRule;
  66205. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66206. if ($async$errorCode === 1)
  66207. return P._asyncRethrow($async$result, $async$completer);
  66208. while (true)
  66209. switch ($async$goto) {
  66210. case 0:
  66211. // Function start
  66212. t1 = $async$self.$this;
  66213. oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
  66214. t1._async_evaluate0$_atRootExcludingStyleRule = true;
  66215. $async$goto = 2;
  66216. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  66217. case 2:
  66218. // returning from await.
  66219. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  66220. // implicit return
  66221. return P._asyncReturn(null, $async$completer);
  66222. }
  66223. });
  66224. return P._asyncStartSync($async$call$1, $async$completer);
  66225. }
  66226. };
  66227. E._EvaluateVisitor__scopeForAtRoot_closure19.prototype = {
  66228. call$1: function(callback) {
  66229. return this.$this._async_evaluate0$_withMediaQueries$1$2(null, new E._EvaluateVisitor__scopeForAtRoot__closure2(this.innerScope, callback), type$.Null);
  66230. }
  66231. };
  66232. E._EvaluateVisitor__scopeForAtRoot__closure2.prototype = {
  66233. call$0: function() {
  66234. return this.innerScope.call$1(this.callback);
  66235. },
  66236. $signature: 2
  66237. };
  66238. E._EvaluateVisitor__scopeForAtRoot_closure20.prototype = {
  66239. call$1: function(callback) {
  66240. var $async$goto = 0,
  66241. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66242. $async$self = this, t1, wasInKeyframes;
  66243. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66244. if ($async$errorCode === 1)
  66245. return P._asyncRethrow($async$result, $async$completer);
  66246. while (true)
  66247. switch ($async$goto) {
  66248. case 0:
  66249. // Function start
  66250. t1 = $async$self.$this;
  66251. wasInKeyframes = t1._async_evaluate0$_inKeyframes;
  66252. t1._async_evaluate0$_inKeyframes = false;
  66253. $async$goto = 2;
  66254. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  66255. case 2:
  66256. // returning from await.
  66257. t1._async_evaluate0$_inKeyframes = wasInKeyframes;
  66258. // implicit return
  66259. return P._asyncReturn(null, $async$completer);
  66260. }
  66261. });
  66262. return P._asyncStartSync($async$call$1, $async$completer);
  66263. }
  66264. };
  66265. E._EvaluateVisitor__scopeForAtRoot_closure21.prototype = {
  66266. call$1: function($parent) {
  66267. return type$.legacy_CssAtRule_2._is($parent);
  66268. }
  66269. };
  66270. E._EvaluateVisitor__scopeForAtRoot_closure22.prototype = {
  66271. call$1: function(callback) {
  66272. var $async$goto = 0,
  66273. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66274. $async$self = this, t1, wasInUnknownAtRule;
  66275. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66276. if ($async$errorCode === 1)
  66277. return P._asyncRethrow($async$result, $async$completer);
  66278. while (true)
  66279. switch ($async$goto) {
  66280. case 0:
  66281. // Function start
  66282. t1 = $async$self.$this;
  66283. wasInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  66284. t1._async_evaluate0$_inUnknownAtRule = false;
  66285. $async$goto = 2;
  66286. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  66287. case 2:
  66288. // returning from await.
  66289. t1._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  66290. // implicit return
  66291. return P._asyncReturn(null, $async$completer);
  66292. }
  66293. });
  66294. return P._asyncStartSync($async$call$1, $async$completer);
  66295. }
  66296. };
  66297. E._EvaluateVisitor_visitContentRule_closure2.prototype = {
  66298. call$0: function() {
  66299. var $async$goto = 0,
  66300. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66301. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  66302. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66303. if ($async$errorCode === 1)
  66304. return P._asyncRethrow($async$result, $async$completer);
  66305. while (true)
  66306. switch ($async$goto) {
  66307. case 0:
  66308. // Function start
  66309. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66310. case 3:
  66311. // for condition
  66312. if (!(_i < t2)) {
  66313. // goto after for
  66314. $async$goto = 5;
  66315. break;
  66316. }
  66317. $async$goto = 6;
  66318. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66319. case 6:
  66320. // returning from await.
  66321. case 4:
  66322. // for update
  66323. ++_i;
  66324. // goto for condition
  66325. $async$goto = 3;
  66326. break;
  66327. case 5:
  66328. // after for
  66329. $async$returnValue = null;
  66330. // goto return
  66331. $async$goto = 1;
  66332. break;
  66333. case 1:
  66334. // return
  66335. return P._asyncReturn($async$returnValue, $async$completer);
  66336. }
  66337. });
  66338. return P._asyncStartSync($async$call$0, $async$completer);
  66339. },
  66340. $signature: 2
  66341. };
  66342. E._EvaluateVisitor_visitDeclaration_closure2.prototype = {
  66343. call$0: function() {
  66344. var $async$goto = 0,
  66345. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66346. $async$self = this, t1, t2, t3, _i;
  66347. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66348. if ($async$errorCode === 1)
  66349. return P._asyncRethrow($async$result, $async$completer);
  66350. while (true)
  66351. switch ($async$goto) {
  66352. case 0:
  66353. // Function start
  66354. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66355. case 2:
  66356. // for condition
  66357. if (!(_i < t2)) {
  66358. // goto after for
  66359. $async$goto = 4;
  66360. break;
  66361. }
  66362. $async$goto = 5;
  66363. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66364. case 5:
  66365. // returning from await.
  66366. case 3:
  66367. // for update
  66368. ++_i;
  66369. // goto for condition
  66370. $async$goto = 2;
  66371. break;
  66372. case 4:
  66373. // after for
  66374. // implicit return
  66375. return P._asyncReturn(null, $async$completer);
  66376. }
  66377. });
  66378. return P._asyncStartSync($async$call$0, $async$completer);
  66379. },
  66380. $signature: 2
  66381. };
  66382. E._EvaluateVisitor_visitEachRule_closure8.prototype = {
  66383. call$1: function(value) {
  66384. return this.$this._async_evaluate0$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  66385. }
  66386. };
  66387. E._EvaluateVisitor_visitEachRule_closure9.prototype = {
  66388. call$1: function(value) {
  66389. return this.$this._async_evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  66390. }
  66391. };
  66392. E._EvaluateVisitor_visitEachRule_closure10.prototype = {
  66393. call$0: function() {
  66394. var _this = this,
  66395. t1 = _this.$this;
  66396. return t1._async_evaluate0$_handleReturn$2(_this.list.get$asList(), new E._EvaluateVisitor_visitEachRule__closure2(t1, _this.setVariables, _this.node));
  66397. },
  66398. $signature: 20
  66399. };
  66400. E._EvaluateVisitor_visitEachRule__closure2.prototype = {
  66401. call$1: function(element) {
  66402. var t1;
  66403. this.setVariables.call$1(element);
  66404. t1 = this.$this;
  66405. return t1._async_evaluate0$_handleReturn$2(this.node.children, new E._EvaluateVisitor_visitEachRule___closure2(t1));
  66406. }
  66407. };
  66408. E._EvaluateVisitor_visitEachRule___closure2.prototype = {
  66409. call$1: function(child) {
  66410. return child.accept$1(this.$this);
  66411. }
  66412. };
  66413. E._EvaluateVisitor_visitExtendRule_closure2.prototype = {
  66414. call$0: function() {
  66415. var t1 = this.targetText;
  66416. return D.SelectorList_SelectorList$parse0(B.trimAscii0(t1.get$value(t1), true), false, true, this.$this._async_evaluate0$_logger);
  66417. },
  66418. $signature: 32
  66419. };
  66420. E._EvaluateVisitor_visitAtRule_closure5.prototype = {
  66421. call$0: function() {
  66422. var $async$goto = 0,
  66423. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66424. $async$self = this, t3, _i, t1, t2;
  66425. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66426. if ($async$errorCode === 1)
  66427. return P._asyncRethrow($async$result, $async$completer);
  66428. while (true)
  66429. switch ($async$goto) {
  66430. case 0:
  66431. // Function start
  66432. t1 = $async$self.$this;
  66433. t2 = t1._async_evaluate0$_styleRule;
  66434. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) || t1._async_evaluate0$_inKeyframes ? 2 : 4;
  66435. break;
  66436. case 2:
  66437. // then
  66438. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  66439. case 5:
  66440. // for condition
  66441. if (!(_i < t3)) {
  66442. // goto after for
  66443. $async$goto = 7;
  66444. break;
  66445. }
  66446. $async$goto = 8;
  66447. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  66448. case 8:
  66449. // returning from await.
  66450. case 6:
  66451. // for update
  66452. ++_i;
  66453. // goto for condition
  66454. $async$goto = 5;
  66455. break;
  66456. case 7:
  66457. // after for
  66458. // goto join
  66459. $async$goto = 3;
  66460. break;
  66461. case 4:
  66462. // else
  66463. $async$goto = 9;
  66464. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitAtRule__closure2(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  66465. case 9:
  66466. // returning from await.
  66467. case 3:
  66468. // join
  66469. // implicit return
  66470. return P._asyncReturn(null, $async$completer);
  66471. }
  66472. });
  66473. return P._asyncStartSync($async$call$0, $async$completer);
  66474. },
  66475. $signature: 2
  66476. };
  66477. E._EvaluateVisitor_visitAtRule__closure2.prototype = {
  66478. call$0: function() {
  66479. var $async$goto = 0,
  66480. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66481. $async$self = this, t1, t2, t3, _i;
  66482. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66483. if ($async$errorCode === 1)
  66484. return P._asyncRethrow($async$result, $async$completer);
  66485. while (true)
  66486. switch ($async$goto) {
  66487. case 0:
  66488. // Function start
  66489. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  66490. case 2:
  66491. // for condition
  66492. if (!(_i < t2)) {
  66493. // goto after for
  66494. $async$goto = 4;
  66495. break;
  66496. }
  66497. $async$goto = 5;
  66498. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  66499. case 5:
  66500. // returning from await.
  66501. case 3:
  66502. // for update
  66503. ++_i;
  66504. // goto for condition
  66505. $async$goto = 2;
  66506. break;
  66507. case 4:
  66508. // after for
  66509. // implicit return
  66510. return P._asyncReturn(null, $async$completer);
  66511. }
  66512. });
  66513. return P._asyncStartSync($async$call$0, $async$completer);
  66514. },
  66515. $signature: 2
  66516. };
  66517. E._EvaluateVisitor_visitAtRule_closure6.prototype = {
  66518. call$1: function(node) {
  66519. return type$.legacy_CssStyleRule_2._is(node);
  66520. }
  66521. };
  66522. E._EvaluateVisitor_visitForRule_closure14.prototype = {
  66523. call$0: function() {
  66524. var $async$goto = 0,
  66525. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber_2),
  66526. $async$returnValue, $async$self = this;
  66527. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66528. if ($async$errorCode === 1)
  66529. return P._asyncRethrow($async$result, $async$completer);
  66530. while (true)
  66531. switch ($async$goto) {
  66532. case 0:
  66533. // Function start
  66534. $async$goto = 3;
  66535. return P._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  66536. case 3:
  66537. // returning from await.
  66538. $async$returnValue = $async$result.assertNumber$0();
  66539. // goto return
  66540. $async$goto = 1;
  66541. break;
  66542. case 1:
  66543. // return
  66544. return P._asyncReturn($async$returnValue, $async$completer);
  66545. }
  66546. });
  66547. return P._asyncStartSync($async$call$0, $async$completer);
  66548. },
  66549. $signature: 79
  66550. };
  66551. E._EvaluateVisitor_visitForRule_closure15.prototype = {
  66552. call$0: function() {
  66553. var $async$goto = 0,
  66554. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber_2),
  66555. $async$returnValue, $async$self = this;
  66556. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66557. if ($async$errorCode === 1)
  66558. return P._asyncRethrow($async$result, $async$completer);
  66559. while (true)
  66560. switch ($async$goto) {
  66561. case 0:
  66562. // Function start
  66563. $async$goto = 3;
  66564. return P._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  66565. case 3:
  66566. // returning from await.
  66567. $async$returnValue = $async$result.assertNumber$0();
  66568. // goto return
  66569. $async$goto = 1;
  66570. break;
  66571. case 1:
  66572. // return
  66573. return P._asyncReturn($async$returnValue, $async$completer);
  66574. }
  66575. });
  66576. return P._asyncStartSync($async$call$0, $async$completer);
  66577. },
  66578. $signature: 79
  66579. };
  66580. E._EvaluateVisitor_visitForRule_closure16.prototype = {
  66581. call$0: function() {
  66582. var t1 = this.toNumber,
  66583. t2 = t1.numeratorUnits;
  66584. t1 = t1.denominatorUnits;
  66585. return T.SassNumber$withUnits0(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
  66586. },
  66587. $signature: 7
  66588. };
  66589. E._EvaluateVisitor_visitForRule_closure17.prototype = {
  66590. call$0: function() {
  66591. return this.toNumber.assertInt$0();
  66592. },
  66593. $signature: 7
  66594. };
  66595. E._EvaluateVisitor_visitForRule_closure18.prototype = {
  66596. call$0: function() {
  66597. var $async$goto = 0,
  66598. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  66599. $async$returnValue, $async$self = this, i, t3, t4, t5, t6, result, t1, t2, nodeWithSpan;
  66600. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66601. if ($async$errorCode === 1)
  66602. return P._asyncRethrow($async$result, $async$completer);
  66603. while (true)
  66604. switch ($async$goto) {
  66605. case 0:
  66606. // Function start
  66607. t1 = $async$self.$this;
  66608. t2 = $async$self.node;
  66609. nodeWithSpan = t1._async_evaluate0$_expressionNode$1(t2.from);
  66610. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.children, t2 = t2.variable;
  66611. case 3:
  66612. // for condition
  66613. if (!(i !== t3.to)) {
  66614. // goto after for
  66615. $async$goto = 5;
  66616. break;
  66617. }
  66618. t6 = t1._async_evaluate0$_environment;
  66619. t6.setLocalVariable$3(t2, new T.SassNumber0(i, C.List_empty, C.List_empty, null), nodeWithSpan);
  66620. $async$goto = 6;
  66621. return P._asyncAwait(t1._async_evaluate0$_handleReturn$2(t5, new E._EvaluateVisitor_visitForRule__closure2(t1)), $async$call$0);
  66622. case 6:
  66623. // returning from await.
  66624. result = $async$result;
  66625. if (result != null) {
  66626. $async$returnValue = result;
  66627. // goto return
  66628. $async$goto = 1;
  66629. break;
  66630. }
  66631. case 4:
  66632. // for update
  66633. i += t4;
  66634. // goto for condition
  66635. $async$goto = 3;
  66636. break;
  66637. case 5:
  66638. // after for
  66639. $async$returnValue = null;
  66640. // goto return
  66641. $async$goto = 1;
  66642. break;
  66643. case 1:
  66644. // return
  66645. return P._asyncReturn($async$returnValue, $async$completer);
  66646. }
  66647. });
  66648. return P._asyncStartSync($async$call$0, $async$completer);
  66649. },
  66650. $signature: 20
  66651. };
  66652. E._EvaluateVisitor_visitForRule__closure2.prototype = {
  66653. call$1: function(child) {
  66654. return child.accept$1(this.$this);
  66655. }
  66656. };
  66657. E._EvaluateVisitor_visitForwardRule_closure5.prototype = {
  66658. call$1: function(module) {
  66659. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  66660. }
  66661. };
  66662. E._EvaluateVisitor_visitForwardRule_closure6.prototype = {
  66663. call$1: function(module) {
  66664. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  66665. }
  66666. };
  66667. E._EvaluateVisitor__assertConfigurationIsEmpty_closure2.prototype = {
  66668. call$2: function($name, value) {
  66669. var t1 = this.only;
  66670. if (t1 != null && !t1.contains$1(0, $name))
  66671. return;
  66672. t1 = this.nameInError ? "$" + H.S($name) + string$.x20was_n : string$.This_v;
  66673. throw H.wrapException(this.$this._async_evaluate0$_exception$2(t1, value.configurationSpan));
  66674. }
  66675. };
  66676. E._EvaluateVisitor_visitIfRule_closure2.prototype = {
  66677. call$0: function() {
  66678. var t1 = this.$this;
  66679. return t1._async_evaluate0$_handleReturn$2(this._box_0.clause.children, new E._EvaluateVisitor_visitIfRule__closure2(t1));
  66680. },
  66681. $signature: 20
  66682. };
  66683. E._EvaluateVisitor_visitIfRule__closure2.prototype = {
  66684. call$1: function(child) {
  66685. return child.accept$1(this.$this);
  66686. }
  66687. };
  66688. E._EvaluateVisitor__visitDynamicImport_closure2.prototype = {
  66689. call$0: function() {
  66690. return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure0();
  66691. },
  66692. $call$body$_EvaluateVisitor__visitDynamicImport_closure0: function() {
  66693. var $async$goto = 0,
  66694. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66695. $async$returnValue, $async$self = this, previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _box_0, t1, t2, result, importer, stylesheet, url, t3;
  66696. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66697. if ($async$errorCode === 1)
  66698. return P._asyncRethrow($async$result, $async$completer);
  66699. while (true)
  66700. switch ($async$goto) {
  66701. case 0:
  66702. // Function start
  66703. _box_0 = {};
  66704. t1 = $async$self.$this;
  66705. t2 = $async$self.$import;
  66706. $async$goto = 3;
  66707. return P._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$forImport(t2.url, t2.span, true), $async$call$0);
  66708. case 3:
  66709. // returning from await.
  66710. result = $async$result;
  66711. importer = result.item1;
  66712. stylesheet = result.item2;
  66713. url = stylesheet.span.file.url;
  66714. t3 = t1._async_evaluate0$_activeModules;
  66715. if (t3.containsKey$1(url)) {
  66716. previousLoad = t3.$index(0, url);
  66717. throw H.wrapException(previousLoad == null ? t1._async_evaluate0$_exception$1("This file is already being loaded.") : t1._async_evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  66718. }
  66719. t3.$indexSet(0, url, t2);
  66720. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_uses, type$.UnmodifiableListView_legacy_UseRule_2);
  66721. if (t2.get$length(t2) === 0) {
  66722. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_legacy_ForwardRule_2);
  66723. t2 = t2.get$length(t2) === 0;
  66724. } else
  66725. t2 = false;
  66726. $async$goto = t2 ? 4 : 5;
  66727. break;
  66728. case 4:
  66729. // then
  66730. oldImporter = t1._async_evaluate0$_importer;
  66731. oldStylesheet = t1._async_evaluate0$_stylesheet;
  66732. t1._async_evaluate0$_importer = importer;
  66733. t1._async_evaluate0$_stylesheet = stylesheet;
  66734. $async$goto = 6;
  66735. return P._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
  66736. case 6:
  66737. // returning from await.
  66738. t1._async_evaluate0$_importer = oldImporter;
  66739. t1._async_evaluate0$_stylesheet = oldStylesheet;
  66740. t3.remove$1(0, url);
  66741. // goto return
  66742. $async$goto = 1;
  66743. break;
  66744. case 5:
  66745. // join
  66746. _box_0.children = null;
  66747. t2 = t1._async_evaluate0$_environment;
  66748. t4 = type$.legacy_String;
  66749. t5 = type$.legacy_Module_legacy_AsyncCallable_2;
  66750. t6 = type$.legacy_AstNode_2;
  66751. t7 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable_2);
  66752. t8 = t2._async_environment0$_variables;
  66753. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  66754. t9 = t2._async_environment0$_variableNodes;
  66755. if (t9 == null)
  66756. t9 = null;
  66757. else
  66758. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  66759. t10 = t2._async_environment0$_functions;
  66760. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  66761. t11 = t2._async_environment0$_mixins;
  66762. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  66763. environment = Q.AsyncEnvironment$_0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), null, null, null, t7, t8, t9, t10, t11, t2._async_environment0$_content);
  66764. $async$goto = 7;
  66765. return P._asyncAwait(t1._async_evaluate0$_withEnvironment$1$2(environment, new E._EvaluateVisitor__visitDynamicImport__closure2(_box_0, t1, importer, stylesheet, environment), type$.Null), $async$call$0);
  66766. case 7:
  66767. // returning from await.
  66768. module = Q._EnvironmentModule__EnvironmentModule2(environment, new V.CssStylesheet0(new P.UnmodifiableListView(C.List_empty12, type$.UnmodifiableListView_legacy_CssNode_2), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender0, environment._async_environment0$_forwardedModules);
  66769. t1._async_evaluate0$_environment.importForwards$1(module);
  66770. $async$goto = module.transitivelyContainsCss ? 8 : 9;
  66771. break;
  66772. case 8:
  66773. // then
  66774. $async$goto = 10;
  66775. return P._asyncAwait(t1._async_evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  66776. case 10:
  66777. // returning from await.
  66778. case 9:
  66779. // join
  66780. visitor = new E._ImportedCssVisitor2(t1);
  66781. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  66782. t1.get$current(t1).accept$1(visitor);
  66783. t3.remove$1(0, url);
  66784. case 1:
  66785. // return
  66786. return P._asyncReturn($async$returnValue, $async$completer);
  66787. }
  66788. });
  66789. return P._asyncStartSync($async$call$0, $async$completer);
  66790. },
  66791. $signature: 2
  66792. };
  66793. E._EvaluateVisitor__visitDynamicImport__closure2.prototype = {
  66794. call$0: function() {
  66795. var $async$goto = 0,
  66796. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66797. $async$self = this, t2, t3, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldConfiguration;
  66798. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66799. if ($async$errorCode === 1)
  66800. return P._asyncRethrow($async$result, $async$completer);
  66801. while (true)
  66802. switch ($async$goto) {
  66803. case 0:
  66804. // Function start
  66805. t1 = $async$self.$this;
  66806. oldImporter = t1._async_evaluate0$_importer;
  66807. oldStylesheet = t1._async_evaluate0$_stylesheet;
  66808. oldRoot = t1._async_evaluate0$_root;
  66809. oldParent = t1._async_evaluate0$_parent;
  66810. oldEndOfImports = t1._async_evaluate0$_endOfImports;
  66811. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  66812. oldConfiguration = t1._async_evaluate0$_configuration;
  66813. t1._async_evaluate0$_importer = $async$self.importer;
  66814. t2 = t1._async_evaluate0$_stylesheet = $async$self.stylesheet;
  66815. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  66816. t1._async_evaluate0$_parent = t1._async_evaluate0$_root = new V.ModifiableCssStylesheet0(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t3);
  66817. t1._async_evaluate0$_endOfImports = 0;
  66818. t1._async_evaluate0$_outOfOrderImports = null;
  66819. t3 = new P.UnmodifiableListView(t2._stylesheet1$_forwards, type$.UnmodifiableListView_legacy_ForwardRule_2);
  66820. if (!t3.get$isEmpty(t3))
  66821. t1._async_evaluate0$_configuration = $async$self.environment.toImplicitConfiguration$0();
  66822. $async$goto = 2;
  66823. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  66824. case 2:
  66825. // returning from await.
  66826. $async$self._box_0.children = t1._async_evaluate0$_addOutOfOrderImports$0();
  66827. t1._async_evaluate0$_importer = oldImporter;
  66828. t1._async_evaluate0$_stylesheet = oldStylesheet;
  66829. t1._async_evaluate0$_root = oldRoot;
  66830. t1._async_evaluate0$_parent = oldParent;
  66831. t1._async_evaluate0$_endOfImports = oldEndOfImports;
  66832. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  66833. t1._async_evaluate0$_configuration = oldConfiguration;
  66834. // implicit return
  66835. return P._asyncReturn(null, $async$completer);
  66836. }
  66837. });
  66838. return P._asyncStartSync($async$call$0, $async$completer);
  66839. },
  66840. $signature: 2
  66841. };
  66842. E._EvaluateVisitor_visitIncludeRule_closure8.prototype = {
  66843. call$0: function() {
  66844. var t1 = this.node;
  66845. return this.$this._async_evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  66846. },
  66847. $signature: 61
  66848. };
  66849. E._EvaluateVisitor_visitIncludeRule_closure9.prototype = {
  66850. call$0: function() {
  66851. return this.node.get$spanWithoutContent();
  66852. },
  66853. "call*": "call$0",
  66854. $requiredArgCount: 0,
  66855. $signature: 26
  66856. };
  66857. E._EvaluateVisitor_visitIncludeRule_closure10.prototype = {
  66858. call$0: function() {
  66859. var $async$goto = 0,
  66860. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66861. $async$returnValue, $async$self = this, t1;
  66862. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66863. if ($async$errorCode === 1)
  66864. return P._asyncRethrow($async$result, $async$completer);
  66865. while (true)
  66866. switch ($async$goto) {
  66867. case 0:
  66868. // Function start
  66869. t1 = $async$self.$this;
  66870. $async$goto = 3;
  66871. return P._asyncAwait(t1._async_evaluate0$_environment.withContent$2($async$self.contentCallable, new E._EvaluateVisitor_visitIncludeRule__closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  66872. case 3:
  66873. // returning from await.
  66874. $async$returnValue = null;
  66875. // goto return
  66876. $async$goto = 1;
  66877. break;
  66878. case 1:
  66879. // return
  66880. return P._asyncReturn($async$returnValue, $async$completer);
  66881. }
  66882. });
  66883. return P._asyncStartSync($async$call$0, $async$completer);
  66884. },
  66885. $signature: 2
  66886. };
  66887. E._EvaluateVisitor_visitIncludeRule__closure2.prototype = {
  66888. call$0: function() {
  66889. var $async$goto = 0,
  66890. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66891. $async$returnValue, $async$self = this, t1;
  66892. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66893. if ($async$errorCode === 1)
  66894. return P._asyncRethrow($async$result, $async$completer);
  66895. while (true)
  66896. switch ($async$goto) {
  66897. case 0:
  66898. // Function start
  66899. t1 = $async$self.$this;
  66900. $async$goto = 3;
  66901. return P._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new E._EvaluateVisitor_visitIncludeRule___closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  66902. case 3:
  66903. // returning from await.
  66904. $async$returnValue = null;
  66905. // goto return
  66906. $async$goto = 1;
  66907. break;
  66908. case 1:
  66909. // return
  66910. return P._asyncReturn($async$returnValue, $async$completer);
  66911. }
  66912. });
  66913. return P._asyncStartSync($async$call$0, $async$completer);
  66914. },
  66915. $signature: 2
  66916. };
  66917. E._EvaluateVisitor_visitIncludeRule___closure2.prototype = {
  66918. call$0: function() {
  66919. var $async$goto = 0,
  66920. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66921. $async$self = this, t1, t2, t3, t4, t5, _i;
  66922. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66923. if ($async$errorCode === 1)
  66924. return P._asyncRethrow($async$result, $async$completer);
  66925. while (true)
  66926. switch ($async$goto) {
  66927. case 0:
  66928. // Function start
  66929. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.legacy_Value_2, _i = 0;
  66930. case 2:
  66931. // for condition
  66932. if (!(_i < t2)) {
  66933. // goto after for
  66934. $async$goto = 4;
  66935. break;
  66936. }
  66937. $async$goto = 5;
  66938. return P._asyncAwait(t3._async_evaluate0$_addErrorSpan$1$2(t4, new E._EvaluateVisitor_visitIncludeRule____closure2(t3, t1[_i]), t5), $async$call$0);
  66939. case 5:
  66940. // returning from await.
  66941. case 3:
  66942. // for update
  66943. ++_i;
  66944. // goto for condition
  66945. $async$goto = 2;
  66946. break;
  66947. case 4:
  66948. // after for
  66949. // implicit return
  66950. return P._asyncReturn(null, $async$completer);
  66951. }
  66952. });
  66953. return P._asyncStartSync($async$call$0, $async$completer);
  66954. },
  66955. $signature: 2
  66956. };
  66957. E._EvaluateVisitor_visitIncludeRule____closure2.prototype = {
  66958. call$0: function() {
  66959. return this.statement.accept$1(this.$this);
  66960. },
  66961. $signature: 20
  66962. };
  66963. E._EvaluateVisitor_visitMediaRule_closure5.prototype = {
  66964. call$0: function() {
  66965. var $async$goto = 0,
  66966. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66967. $async$self = this, t1, t2;
  66968. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66969. if ($async$errorCode === 1)
  66970. return P._asyncRethrow($async$result, $async$completer);
  66971. while (true)
  66972. switch ($async$goto) {
  66973. case 0:
  66974. // Function start
  66975. t1 = $async$self.$this;
  66976. t2 = $async$self.mergedQueries;
  66977. if (t2 == null)
  66978. t2 = $async$self.queries;
  66979. $async$goto = 2;
  66980. return P._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  66981. case 2:
  66982. // returning from await.
  66983. // implicit return
  66984. return P._asyncReturn(null, $async$completer);
  66985. }
  66986. });
  66987. return P._asyncStartSync($async$call$0, $async$completer);
  66988. },
  66989. $signature: 2
  66990. };
  66991. E._EvaluateVisitor_visitMediaRule__closure2.prototype = {
  66992. call$0: function() {
  66993. var $async$goto = 0,
  66994. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  66995. $async$self = this, t3, _i, t1, t2;
  66996. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66997. if ($async$errorCode === 1)
  66998. return P._asyncRethrow($async$result, $async$completer);
  66999. while (true)
  67000. switch ($async$goto) {
  67001. case 0:
  67002. // Function start
  67003. t1 = $async$self.$this;
  67004. t2 = t1._async_evaluate0$_styleRule;
  67005. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  67006. break;
  67007. case 2:
  67008. // then
  67009. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  67010. case 5:
  67011. // for condition
  67012. if (!(_i < t3)) {
  67013. // goto after for
  67014. $async$goto = 7;
  67015. break;
  67016. }
  67017. $async$goto = 8;
  67018. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  67019. case 8:
  67020. // returning from await.
  67021. case 6:
  67022. // for update
  67023. ++_i;
  67024. // goto for condition
  67025. $async$goto = 5;
  67026. break;
  67027. case 7:
  67028. // after for
  67029. // goto join
  67030. $async$goto = 3;
  67031. break;
  67032. case 4:
  67033. // else
  67034. $async$goto = 9;
  67035. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitMediaRule___closure2(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  67036. case 9:
  67037. // returning from await.
  67038. case 3:
  67039. // join
  67040. // implicit return
  67041. return P._asyncReturn(null, $async$completer);
  67042. }
  67043. });
  67044. return P._asyncStartSync($async$call$0, $async$completer);
  67045. },
  67046. $signature: 2
  67047. };
  67048. E._EvaluateVisitor_visitMediaRule___closure2.prototype = {
  67049. call$0: function() {
  67050. var $async$goto = 0,
  67051. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67052. $async$self = this, t1, t2, t3, _i;
  67053. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67054. if ($async$errorCode === 1)
  67055. return P._asyncRethrow($async$result, $async$completer);
  67056. while (true)
  67057. switch ($async$goto) {
  67058. case 0:
  67059. // Function start
  67060. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67061. case 2:
  67062. // for condition
  67063. if (!(_i < t2)) {
  67064. // goto after for
  67065. $async$goto = 4;
  67066. break;
  67067. }
  67068. $async$goto = 5;
  67069. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67070. case 5:
  67071. // returning from await.
  67072. case 3:
  67073. // for update
  67074. ++_i;
  67075. // goto for condition
  67076. $async$goto = 2;
  67077. break;
  67078. case 4:
  67079. // after for
  67080. // implicit return
  67081. return P._asyncReturn(null, $async$completer);
  67082. }
  67083. });
  67084. return P._asyncStartSync($async$call$0, $async$completer);
  67085. },
  67086. $signature: 2
  67087. };
  67088. E._EvaluateVisitor_visitMediaRule_closure6.prototype = {
  67089. call$1: function(node) {
  67090. var t1;
  67091. if (!type$.legacy_CssStyleRule_2._is(node))
  67092. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule_2._is(node);
  67093. else
  67094. t1 = true;
  67095. return t1;
  67096. }
  67097. };
  67098. E._EvaluateVisitor__visitMediaQueries_closure2.prototype = {
  67099. call$0: function() {
  67100. var t1 = S.SpanScanner$(this.resolved, null);
  67101. return new F.MediaQueryParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
  67102. },
  67103. $signature: 59
  67104. };
  67105. E._EvaluateVisitor_visitStyleRule_closure20.prototype = {
  67106. call$0: function() {
  67107. var t1 = this.selectorText;
  67108. t1 = S.SpanScanner$(t1.get$value(t1), null);
  67109. return new E.KeyframeSelectorParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
  67110. },
  67111. $signature: 33
  67112. };
  67113. E._EvaluateVisitor_visitStyleRule_closure21.prototype = {
  67114. call$0: function() {
  67115. var $async$goto = 0,
  67116. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67117. $async$self = this, t1, t2, t3, _i;
  67118. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67119. if ($async$errorCode === 1)
  67120. return P._asyncRethrow($async$result, $async$completer);
  67121. while (true)
  67122. switch ($async$goto) {
  67123. case 0:
  67124. // Function start
  67125. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67126. case 2:
  67127. // for condition
  67128. if (!(_i < t2)) {
  67129. // goto after for
  67130. $async$goto = 4;
  67131. break;
  67132. }
  67133. $async$goto = 5;
  67134. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67135. case 5:
  67136. // returning from await.
  67137. case 3:
  67138. // for update
  67139. ++_i;
  67140. // goto for condition
  67141. $async$goto = 2;
  67142. break;
  67143. case 4:
  67144. // after for
  67145. // implicit return
  67146. return P._asyncReturn(null, $async$completer);
  67147. }
  67148. });
  67149. return P._asyncStartSync($async$call$0, $async$completer);
  67150. },
  67151. $signature: 2
  67152. };
  67153. E._EvaluateVisitor_visitStyleRule_closure22.prototype = {
  67154. call$1: function(node) {
  67155. return type$.legacy_CssStyleRule_2._is(node);
  67156. }
  67157. };
  67158. E._EvaluateVisitor_visitStyleRule_closure23.prototype = {
  67159. call$0: function() {
  67160. var t2, t3,
  67161. t1 = this.selectorText;
  67162. t1 = t1.get$value(t1);
  67163. t2 = this.$this;
  67164. t3 = !t2._async_evaluate0$_stylesheet.plainCss;
  67165. return D.SelectorList_SelectorList$parse0(t1, t3, t3, t2._async_evaluate0$_logger);
  67166. },
  67167. $signature: 32
  67168. };
  67169. E._EvaluateVisitor_visitStyleRule_closure24.prototype = {
  67170. call$0: function() {
  67171. var t1 = this._box_0.parsedSelector,
  67172. t2 = this.$this,
  67173. t3 = t2._async_evaluate0$_styleRule;
  67174. t3 = t3 == null ? null : t3.originalSelector;
  67175. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate0$_atRootExcludingStyleRule);
  67176. },
  67177. $signature: 32
  67178. };
  67179. E._EvaluateVisitor_visitStyleRule_closure25.prototype = {
  67180. call$0: function() {
  67181. var $async$goto = 0,
  67182. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67183. $async$self = this, t1;
  67184. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67185. if ($async$errorCode === 1)
  67186. return P._asyncRethrow($async$result, $async$completer);
  67187. while (true)
  67188. switch ($async$goto) {
  67189. case 0:
  67190. // Function start
  67191. t1 = $async$self.$this;
  67192. $async$goto = 2;
  67193. return P._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  67194. case 2:
  67195. // returning from await.
  67196. // implicit return
  67197. return P._asyncReturn(null, $async$completer);
  67198. }
  67199. });
  67200. return P._asyncStartSync($async$call$0, $async$completer);
  67201. },
  67202. $signature: 2
  67203. };
  67204. E._EvaluateVisitor_visitStyleRule__closure2.prototype = {
  67205. call$0: function() {
  67206. var $async$goto = 0,
  67207. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67208. $async$self = this, t1, t2, t3, _i;
  67209. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67210. if ($async$errorCode === 1)
  67211. return P._asyncRethrow($async$result, $async$completer);
  67212. while (true)
  67213. switch ($async$goto) {
  67214. case 0:
  67215. // Function start
  67216. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67217. case 2:
  67218. // for condition
  67219. if (!(_i < t2)) {
  67220. // goto after for
  67221. $async$goto = 4;
  67222. break;
  67223. }
  67224. $async$goto = 5;
  67225. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67226. case 5:
  67227. // returning from await.
  67228. case 3:
  67229. // for update
  67230. ++_i;
  67231. // goto for condition
  67232. $async$goto = 2;
  67233. break;
  67234. case 4:
  67235. // after for
  67236. // implicit return
  67237. return P._asyncReturn(null, $async$completer);
  67238. }
  67239. });
  67240. return P._asyncStartSync($async$call$0, $async$completer);
  67241. },
  67242. $signature: 2
  67243. };
  67244. E._EvaluateVisitor_visitStyleRule_closure26.prototype = {
  67245. call$1: function(node) {
  67246. return type$.legacy_CssStyleRule_2._is(node);
  67247. }
  67248. };
  67249. E._EvaluateVisitor_visitSupportsRule_closure5.prototype = {
  67250. call$0: function() {
  67251. var $async$goto = 0,
  67252. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67253. $async$self = this, t3, _i, t1, t2;
  67254. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67255. if ($async$errorCode === 1)
  67256. return P._asyncRethrow($async$result, $async$completer);
  67257. while (true)
  67258. switch ($async$goto) {
  67259. case 0:
  67260. // Function start
  67261. t1 = $async$self.$this;
  67262. t2 = t1._async_evaluate0$_styleRule;
  67263. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  67264. break;
  67265. case 2:
  67266. // then
  67267. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  67268. case 5:
  67269. // for condition
  67270. if (!(_i < t3)) {
  67271. // goto after for
  67272. $async$goto = 7;
  67273. break;
  67274. }
  67275. $async$goto = 8;
  67276. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  67277. case 8:
  67278. // returning from await.
  67279. case 6:
  67280. // for update
  67281. ++_i;
  67282. // goto for condition
  67283. $async$goto = 5;
  67284. break;
  67285. case 7:
  67286. // after for
  67287. // goto join
  67288. $async$goto = 3;
  67289. break;
  67290. case 4:
  67291. // else
  67292. $async$goto = 9;
  67293. return P._asyncAwait(t1._async_evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitSupportsRule__closure2(t1, $async$self.node), type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  67294. case 9:
  67295. // returning from await.
  67296. case 3:
  67297. // join
  67298. // implicit return
  67299. return P._asyncReturn(null, $async$completer);
  67300. }
  67301. });
  67302. return P._asyncStartSync($async$call$0, $async$completer);
  67303. },
  67304. $signature: 2
  67305. };
  67306. E._EvaluateVisitor_visitSupportsRule__closure2.prototype = {
  67307. call$0: function() {
  67308. var $async$goto = 0,
  67309. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67310. $async$self = this, t1, t2, t3, _i;
  67311. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67312. if ($async$errorCode === 1)
  67313. return P._asyncRethrow($async$result, $async$completer);
  67314. while (true)
  67315. switch ($async$goto) {
  67316. case 0:
  67317. // Function start
  67318. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67319. case 2:
  67320. // for condition
  67321. if (!(_i < t2)) {
  67322. // goto after for
  67323. $async$goto = 4;
  67324. break;
  67325. }
  67326. $async$goto = 5;
  67327. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67328. case 5:
  67329. // returning from await.
  67330. case 3:
  67331. // for update
  67332. ++_i;
  67333. // goto for condition
  67334. $async$goto = 2;
  67335. break;
  67336. case 4:
  67337. // after for
  67338. // implicit return
  67339. return P._asyncReturn(null, $async$completer);
  67340. }
  67341. });
  67342. return P._asyncStartSync($async$call$0, $async$completer);
  67343. },
  67344. $signature: 2
  67345. };
  67346. E._EvaluateVisitor_visitSupportsRule_closure6.prototype = {
  67347. call$1: function(node) {
  67348. return type$.legacy_CssStyleRule_2._is(node);
  67349. }
  67350. };
  67351. E._EvaluateVisitor_visitVariableDeclaration_closure8.prototype = {
  67352. call$0: function() {
  67353. var t1 = this.override;
  67354. this.$this._async_evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  67355. },
  67356. $signature: 0
  67357. };
  67358. E._EvaluateVisitor_visitVariableDeclaration_closure9.prototype = {
  67359. call$0: function() {
  67360. var t1 = this.node;
  67361. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  67362. },
  67363. $signature: 12
  67364. };
  67365. E._EvaluateVisitor_visitVariableDeclaration_closure10.prototype = {
  67366. call$0: function() {
  67367. var t1 = this.$this,
  67368. t2 = this.node;
  67369. t1._async_evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  67370. },
  67371. $signature: 0
  67372. };
  67373. E._EvaluateVisitor_visitUseRule_closure2.prototype = {
  67374. call$1: function(module) {
  67375. var t1 = this.node;
  67376. this.$this._async_evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
  67377. }
  67378. };
  67379. E._EvaluateVisitor_visitWarnRule_closure2.prototype = {
  67380. call$0: function() {
  67381. return this.node.expression.accept$1(this.$this);
  67382. },
  67383. $signature: 20
  67384. };
  67385. E._EvaluateVisitor_visitWhileRule_closure2.prototype = {
  67386. call$0: function() {
  67387. var $async$goto = 0,
  67388. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  67389. $async$returnValue, $async$self = this, t1, t2, t3, result;
  67390. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67391. if ($async$errorCode === 1)
  67392. return P._asyncRethrow($async$result, $async$completer);
  67393. while (true)
  67394. switch ($async$goto) {
  67395. case 0:
  67396. // Function start
  67397. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  67398. case 3:
  67399. // for condition
  67400. $async$goto = 5;
  67401. return P._asyncAwait(t2.accept$1(t3), $async$call$0);
  67402. case 5:
  67403. // returning from await.
  67404. if (!$async$result.get$isTruthy()) {
  67405. // goto after for
  67406. $async$goto = 4;
  67407. break;
  67408. }
  67409. $async$goto = 6;
  67410. return P._asyncAwait(t3._async_evaluate0$_handleReturn$2(t1, new E._EvaluateVisitor_visitWhileRule__closure2(t3)), $async$call$0);
  67411. case 6:
  67412. // returning from await.
  67413. result = $async$result;
  67414. if (result != null) {
  67415. $async$returnValue = result;
  67416. // goto return
  67417. $async$goto = 1;
  67418. break;
  67419. }
  67420. // goto for condition
  67421. $async$goto = 3;
  67422. break;
  67423. case 4:
  67424. // after for
  67425. $async$returnValue = null;
  67426. // goto return
  67427. $async$goto = 1;
  67428. break;
  67429. case 1:
  67430. // return
  67431. return P._asyncReturn($async$returnValue, $async$completer);
  67432. }
  67433. });
  67434. return P._asyncStartSync($async$call$0, $async$completer);
  67435. },
  67436. $signature: 20
  67437. };
  67438. E._EvaluateVisitor_visitWhileRule__closure2.prototype = {
  67439. call$1: function(child) {
  67440. return child.accept$1(this.$this);
  67441. }
  67442. };
  67443. E._EvaluateVisitor_visitBinaryOperationExpression_closure2.prototype = {
  67444. call$0: function() {
  67445. var $async$goto = 0,
  67446. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  67447. $async$returnValue, $async$self = this, right, result, t1, t2, left, $async$temp1, $async$temp2;
  67448. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67449. if ($async$errorCode === 1)
  67450. return P._asyncRethrow($async$result, $async$completer);
  67451. while (true)
  67452. switch ($async$goto) {
  67453. case 0:
  67454. // Function start
  67455. t1 = $async$self.node;
  67456. t2 = $async$self.$this;
  67457. $async$goto = 3;
  67458. return P._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  67459. case 3:
  67460. // returning from await.
  67461. left = $async$result;
  67462. case 4:
  67463. // switch
  67464. switch (t1.operator) {
  67465. case C.BinaryOperator_kjl0:
  67466. // goto case
  67467. $async$goto = 6;
  67468. break;
  67469. case C.BinaryOperator_or_or_10:
  67470. // goto case
  67471. $async$goto = 7;
  67472. break;
  67473. case C.BinaryOperator_and_and_20:
  67474. // goto case
  67475. $async$goto = 8;
  67476. break;
  67477. case C.BinaryOperator_YlX0:
  67478. // goto case
  67479. $async$goto = 9;
  67480. break;
  67481. case C.BinaryOperator_i5H0:
  67482. // goto case
  67483. $async$goto = 10;
  67484. break;
  67485. case C.BinaryOperator_AcR2:
  67486. // goto case
  67487. $async$goto = 11;
  67488. break;
  67489. case C.BinaryOperator_1da0:
  67490. // goto case
  67491. $async$goto = 12;
  67492. break;
  67493. case C.BinaryOperator_8qt0:
  67494. // goto case
  67495. $async$goto = 13;
  67496. break;
  67497. case C.BinaryOperator_33h0:
  67498. // goto case
  67499. $async$goto = 14;
  67500. break;
  67501. case C.BinaryOperator_AcR1:
  67502. // goto case
  67503. $async$goto = 15;
  67504. break;
  67505. case C.BinaryOperator_iyO0:
  67506. // goto case
  67507. $async$goto = 16;
  67508. break;
  67509. case C.BinaryOperator_O1M0:
  67510. // goto case
  67511. $async$goto = 17;
  67512. break;
  67513. case C.BinaryOperator_RTB0:
  67514. // goto case
  67515. $async$goto = 18;
  67516. break;
  67517. case C.BinaryOperator_2ad0:
  67518. // goto case
  67519. $async$goto = 19;
  67520. break;
  67521. default:
  67522. // goto default
  67523. $async$goto = 20;
  67524. break;
  67525. }
  67526. break;
  67527. case 6:
  67528. // case
  67529. $async$goto = 21;
  67530. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67531. case 21:
  67532. // returning from await.
  67533. right = $async$result;
  67534. left.toString;
  67535. t1 = N.serializeValue(left, false, true) + "=";
  67536. right.toString;
  67537. $async$returnValue = new D.SassString0(t1 + N.serializeValue(right, false, true), false);
  67538. // goto return
  67539. $async$goto = 1;
  67540. break;
  67541. case 7:
  67542. // case
  67543. $async$goto = left.get$isTruthy() ? 22 : 24;
  67544. break;
  67545. case 22:
  67546. // then
  67547. $async$result = left;
  67548. // goto join
  67549. $async$goto = 23;
  67550. break;
  67551. case 24:
  67552. // else
  67553. $async$goto = 25;
  67554. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67555. case 25:
  67556. // returning from await.
  67557. case 23:
  67558. // join
  67559. $async$returnValue = $async$result;
  67560. // goto return
  67561. $async$goto = 1;
  67562. break;
  67563. case 8:
  67564. // case
  67565. $async$goto = left.get$isTruthy() ? 26 : 28;
  67566. break;
  67567. case 26:
  67568. // then
  67569. $async$goto = 29;
  67570. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67571. case 29:
  67572. // returning from await.
  67573. // goto join
  67574. $async$goto = 27;
  67575. break;
  67576. case 28:
  67577. // else
  67578. $async$result = left;
  67579. case 27:
  67580. // join
  67581. $async$returnValue = $async$result;
  67582. // goto return
  67583. $async$goto = 1;
  67584. break;
  67585. case 9:
  67586. // case
  67587. $async$temp1 = J;
  67588. $async$temp2 = left;
  67589. $async$goto = 30;
  67590. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67591. case 30:
  67592. // returning from await.
  67593. $async$returnValue = $async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true : C.SassBoolean_false;
  67594. // goto return
  67595. $async$goto = 1;
  67596. break;
  67597. case 10:
  67598. // case
  67599. $async$temp1 = J;
  67600. $async$temp2 = left;
  67601. $async$goto = 31;
  67602. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67603. case 31:
  67604. // returning from await.
  67605. $async$returnValue = !$async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true : C.SassBoolean_false;
  67606. // goto return
  67607. $async$goto = 1;
  67608. break;
  67609. case 11:
  67610. // case
  67611. $async$temp1 = left;
  67612. $async$goto = 32;
  67613. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67614. case 32:
  67615. // returning from await.
  67616. $async$returnValue = $async$temp1.greaterThan$1($async$result);
  67617. // goto return
  67618. $async$goto = 1;
  67619. break;
  67620. case 12:
  67621. // case
  67622. $async$temp1 = left;
  67623. $async$goto = 33;
  67624. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67625. case 33:
  67626. // returning from await.
  67627. $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
  67628. // goto return
  67629. $async$goto = 1;
  67630. break;
  67631. case 13:
  67632. // case
  67633. $async$temp1 = left;
  67634. $async$goto = 34;
  67635. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67636. case 34:
  67637. // returning from await.
  67638. $async$returnValue = $async$temp1.lessThan$1($async$result);
  67639. // goto return
  67640. $async$goto = 1;
  67641. break;
  67642. case 14:
  67643. // case
  67644. $async$temp1 = left;
  67645. $async$goto = 35;
  67646. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67647. case 35:
  67648. // returning from await.
  67649. $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
  67650. // goto return
  67651. $async$goto = 1;
  67652. break;
  67653. case 15:
  67654. // case
  67655. $async$temp1 = left;
  67656. $async$goto = 36;
  67657. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67658. case 36:
  67659. // returning from await.
  67660. $async$returnValue = $async$temp1.plus$1($async$result);
  67661. // goto return
  67662. $async$goto = 1;
  67663. break;
  67664. case 16:
  67665. // case
  67666. $async$temp1 = left;
  67667. $async$goto = 37;
  67668. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67669. case 37:
  67670. // returning from await.
  67671. $async$returnValue = $async$temp1.minus$1($async$result);
  67672. // goto return
  67673. $async$goto = 1;
  67674. break;
  67675. case 17:
  67676. // case
  67677. $async$temp1 = left;
  67678. $async$goto = 38;
  67679. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67680. case 38:
  67681. // returning from await.
  67682. $async$returnValue = $async$temp1.times$1($async$result);
  67683. // goto return
  67684. $async$goto = 1;
  67685. break;
  67686. case 18:
  67687. // case
  67688. $async$goto = 39;
  67689. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67690. case 39:
  67691. // returning from await.
  67692. right = $async$result;
  67693. result = left.dividedBy$1(right);
  67694. if (t1.allowsSlash && left instanceof T.SassNumber0 && right instanceof T.SassNumber0) {
  67695. $async$returnValue = type$.legacy_SassNumber_2._as(result).withSlash$2(left, right);
  67696. // goto return
  67697. $async$goto = 1;
  67698. break;
  67699. } else {
  67700. $async$returnValue = result;
  67701. // goto return
  67702. $async$goto = 1;
  67703. break;
  67704. }
  67705. case 19:
  67706. // case
  67707. $async$temp1 = left;
  67708. $async$goto = 40;
  67709. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  67710. case 40:
  67711. // returning from await.
  67712. $async$returnValue = $async$temp1.modulo$1($async$result);
  67713. // goto return
  67714. $async$goto = 1;
  67715. break;
  67716. case 20:
  67717. // default
  67718. $async$returnValue = null;
  67719. // goto return
  67720. $async$goto = 1;
  67721. break;
  67722. case 5:
  67723. // after switch
  67724. case 1:
  67725. // return
  67726. return P._asyncReturn($async$returnValue, $async$completer);
  67727. }
  67728. });
  67729. return P._asyncStartSync($async$call$0, $async$completer);
  67730. },
  67731. $signature: 20
  67732. };
  67733. E._EvaluateVisitor_visitVariableExpression_closure2.prototype = {
  67734. call$0: function() {
  67735. var t1 = this.node;
  67736. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  67737. },
  67738. $signature: 12
  67739. };
  67740. E._EvaluateVisitor_visitListExpression_closure2.prototype = {
  67741. call$1: function(expression) {
  67742. return expression.accept$1(this.$this);
  67743. }
  67744. };
  67745. E._EvaluateVisitor_visitFunctionExpression_closure5.prototype = {
  67746. call$0: function() {
  67747. var t1 = this.node.namespace,
  67748. t2 = this.plainName;
  67749. if (t1 == null)
  67750. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  67751. return this.$this._async_evaluate0$_getFunction$2$namespace(t2, t1);
  67752. },
  67753. $signature: 61
  67754. };
  67755. E._EvaluateVisitor_visitFunctionExpression_closure6.prototype = {
  67756. call$0: function() {
  67757. var t1 = this.node;
  67758. return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  67759. },
  67760. $signature: 20
  67761. };
  67762. E._EvaluateVisitor__runUserDefinedCallable_closure2.prototype = {
  67763. call$0: function() {
  67764. var _this = this,
  67765. t1 = _this.$this,
  67766. t2 = _this.callable;
  67767. return t1._async_evaluate0$_withEnvironment$1$2(t2.environment.closure$0(), new E._EvaluateVisitor__runUserDefinedCallable__closure2(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run), type$.legacy_Value_2);
  67768. },
  67769. $signature: 20
  67770. };
  67771. E._EvaluateVisitor__runUserDefinedCallable__closure2.prototype = {
  67772. call$0: function() {
  67773. var _this = this,
  67774. t1 = _this.$this;
  67775. return t1._async_evaluate0$_environment.scope$1$1(new E._EvaluateVisitor__runUserDefinedCallable___closure2(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.legacy_Value_2);
  67776. },
  67777. $signature: 20
  67778. };
  67779. E._EvaluateVisitor__runUserDefinedCallable___closure2.prototype = {
  67780. call$0: function() {
  67781. var $async$goto = 0,
  67782. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  67783. $async$returnValue, $async$self = this, declaredArguments, minLength, t8, i, t9, t10, t11, argument, value, t12, rest, argumentList, result, argumentWord, argumentNames, t1, t2, t3, t4, t5, t6, t7;
  67784. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67785. if ($async$errorCode === 1)
  67786. return P._asyncRethrow($async$result, $async$completer);
  67787. while (true)
  67788. switch ($async$goto) {
  67789. case 0:
  67790. // Function start
  67791. t1 = $async$self.$this;
  67792. t2 = $async$self.evaluated;
  67793. t3 = t2.positional;
  67794. t4 = t3.length;
  67795. t5 = t2.named;
  67796. t6 = $async$self.callable.declaration.$arguments;
  67797. t7 = $async$self.nodeWithSpan;
  67798. t1._async_evaluate0$_verifyArguments$4(t4, t5, t6, t7);
  67799. declaredArguments = t6.$arguments;
  67800. t4 = declaredArguments.length;
  67801. minLength = Math.min(t3.length, t4);
  67802. for (t8 = t1._async_evaluate0$_sourceMap, i = 0; i < minLength; ++i) {
  67803. t9 = t1._async_evaluate0$_environment;
  67804. t10 = declaredArguments[i].name;
  67805. t11 = t3[i].withoutSlash$0();
  67806. t9.setLocalVariable$3(t10, t11, t8 ? t2.positionalNodes[i] : null);
  67807. }
  67808. i = t3.length;
  67809. case 3:
  67810. // for condition
  67811. if (!(i < t4)) {
  67812. // goto after for
  67813. $async$goto = 5;
  67814. break;
  67815. }
  67816. argument = declaredArguments[i];
  67817. t9 = argument.name;
  67818. value = t5.remove$1(0, t9);
  67819. $async$goto = value == null ? 6 : 7;
  67820. break;
  67821. case 6:
  67822. // then
  67823. $async$goto = 8;
  67824. return P._asyncAwait(argument.defaultValue.accept$1(t1), $async$call$0);
  67825. case 8:
  67826. // returning from await.
  67827. value = $async$result;
  67828. case 7:
  67829. // join
  67830. t10 = t1._async_evaluate0$_environment;
  67831. t11 = value.withoutSlash$0();
  67832. if (t8) {
  67833. t12 = t2.namedNodes.$index(0, t9);
  67834. if (t12 == null)
  67835. t12 = t1._async_evaluate0$_expressionNode$1(argument.defaultValue);
  67836. } else
  67837. t12 = null;
  67838. t10.setLocalVariable$3(t9, t11, t12);
  67839. case 4:
  67840. // for update
  67841. ++i;
  67842. // goto for condition
  67843. $async$goto = 3;
  67844. break;
  67845. case 5:
  67846. // after for
  67847. t8 = t6.restArgument;
  67848. if (t8 != null) {
  67849. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty16;
  67850. t2 = t2.separator;
  67851. if (t2 === C.ListSeparator_undecided0)
  67852. t2 = C.ListSeparator_comma0;
  67853. t3 = type$.legacy_Value_2;
  67854. argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t5, type$.legacy_String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  67855. argumentList.SassList$3$brackets0(rest, t2, false);
  67856. t1._async_evaluate0$_environment.setLocalVariable$3(t8, argumentList, t7);
  67857. } else
  67858. argumentList = null;
  67859. $async$goto = 9;
  67860. return P._asyncAwait($async$self.run.call$0(), $async$call$0);
  67861. case 9:
  67862. // returning from await.
  67863. result = $async$result;
  67864. if (argumentList == null) {
  67865. $async$returnValue = result;
  67866. // goto return
  67867. $async$goto = 1;
  67868. break;
  67869. }
  67870. if (t5.get$isEmpty(t5)) {
  67871. $async$returnValue = result;
  67872. // goto return
  67873. $async$goto = 1;
  67874. break;
  67875. }
  67876. if (argumentList._argument_list$_wereKeywordsAccessed) {
  67877. $async$returnValue = result;
  67878. // goto return
  67879. $async$goto = 1;
  67880. break;
  67881. }
  67882. t2 = t5.get$keys();
  67883. argumentWord = B.pluralize0("argument", t2.get$length(t2), null);
  67884. t5 = t5.get$keys();
  67885. argumentNames = B.toSentence0(H.MappedIterable_MappedIterable(t5, new E._EvaluateVisitor__runUserDefinedCallable____closure2(), H._instanceType(t5)._eval$1("Iterable.E"), type$.legacy_Object), "or");
  67886. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), t1._async_evaluate0$_stackTrace$1(t7.get$span())));
  67887. case 1:
  67888. // return
  67889. return P._asyncReturn($async$returnValue, $async$completer);
  67890. }
  67891. });
  67892. return P._asyncStartSync($async$call$0, $async$completer);
  67893. },
  67894. $signature: 20
  67895. };
  67896. E._EvaluateVisitor__runUserDefinedCallable____closure2.prototype = {
  67897. call$1: function($name) {
  67898. return "$" + H.S($name);
  67899. }
  67900. };
  67901. E._EvaluateVisitor__runFunctionCallable_closure2.prototype = {
  67902. call$0: function() {
  67903. var $async$goto = 0,
  67904. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  67905. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  67906. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67907. if ($async$errorCode === 1)
  67908. return P._asyncRethrow($async$result, $async$completer);
  67909. while (true)
  67910. switch ($async$goto) {
  67911. case 0:
  67912. // Function start
  67913. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  67914. case 3:
  67915. // for condition
  67916. if (!(_i < t3)) {
  67917. // goto after for
  67918. $async$goto = 5;
  67919. break;
  67920. }
  67921. $async$goto = 6;
  67922. return P._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  67923. case 6:
  67924. // returning from await.
  67925. $returnValue = $async$result;
  67926. if ($returnValue instanceof F.Value0) {
  67927. $async$returnValue = $returnValue;
  67928. // goto return
  67929. $async$goto = 1;
  67930. break;
  67931. }
  67932. case 4:
  67933. // for update
  67934. ++_i;
  67935. // goto for condition
  67936. $async$goto = 3;
  67937. break;
  67938. case 5:
  67939. // after for
  67940. throw H.wrapException(t4._async_evaluate0$_exception$2("Function finished without @return.", t1.span));
  67941. case 1:
  67942. // return
  67943. return P._asyncReturn($async$returnValue, $async$completer);
  67944. }
  67945. });
  67946. return P._asyncStartSync($async$call$0, $async$completer);
  67947. },
  67948. $signature: 20
  67949. };
  67950. E._EvaluateVisitor__runBuiltInCallable_closure5.prototype = {
  67951. call$0: function() {
  67952. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  67953. },
  67954. $signature: 1
  67955. };
  67956. E._EvaluateVisitor__runBuiltInCallable_closure6.prototype = {
  67957. call$1: function($name) {
  67958. return "$" + H.S($name);
  67959. }
  67960. };
  67961. E._EvaluateVisitor__evaluateArguments_closure2.prototype = {
  67962. call$2: function(key, value) {
  67963. var t1;
  67964. this.named.$indexSet(0, key, value);
  67965. t1 = this.namedNodes;
  67966. if (t1 != null)
  67967. t1.$indexSet(0, key, this.restNodeForSpan);
  67968. }
  67969. };
  67970. E._EvaluateVisitor__evaluateMacroArguments_closure11.prototype = {
  67971. call$1: function(value) {
  67972. return new F.ValueExpression0(value, null);
  67973. }
  67974. };
  67975. E._EvaluateVisitor__evaluateMacroArguments_closure12.prototype = {
  67976. call$1: function(value) {
  67977. return new F.ValueExpression0(value, null);
  67978. }
  67979. };
  67980. E._EvaluateVisitor__evaluateMacroArguments_closure13.prototype = {
  67981. call$2: function(key, value) {
  67982. this.named.$indexSet(0, key, new F.ValueExpression0(value, null));
  67983. }
  67984. };
  67985. E._EvaluateVisitor__evaluateMacroArguments_closure14.prototype = {
  67986. call$1: function(value) {
  67987. return new F.ValueExpression0(value, null);
  67988. }
  67989. };
  67990. E._EvaluateVisitor__addRestMap_closure5.prototype = {
  67991. call$1: function(value) {
  67992. return this.T._eval$1("0*")._as(value);
  67993. }
  67994. };
  67995. E._EvaluateVisitor__addRestMap_closure6.prototype = {
  67996. call$2: function(key, value) {
  67997. var _this = this;
  67998. if (key instanceof D.SassString0)
  67999. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  68000. else
  68001. throw H.wrapException(_this.$this._async_evaluate0$_exception$2(string$.Variab_ + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  68002. }
  68003. };
  68004. E._EvaluateVisitor__verifyArguments_closure2.prototype = {
  68005. call$0: function() {
  68006. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_legacy_String));
  68007. },
  68008. $signature: 1
  68009. };
  68010. E._EvaluateVisitor_visitStringExpression_closure2.prototype = {
  68011. call$1: function(value) {
  68012. var $async$goto = 0,
  68013. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  68014. $async$returnValue, $async$self = this, t1, result;
  68015. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68016. if ($async$errorCode === 1)
  68017. return P._asyncRethrow($async$result, $async$completer);
  68018. while (true)
  68019. switch ($async$goto) {
  68020. case 0:
  68021. // Function start
  68022. if (typeof value == "string") {
  68023. $async$returnValue = value;
  68024. // goto return
  68025. $async$goto = 1;
  68026. break;
  68027. }
  68028. type$.legacy_Expression_2._as(value);
  68029. t1 = $async$self.$this;
  68030. $async$goto = 3;
  68031. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  68032. case 3:
  68033. // returning from await.
  68034. result = $async$result;
  68035. $async$returnValue = result instanceof D.SassString0 ? result.text : t1._async_evaluate0$_serialize$3$quote(result, value, false);
  68036. // goto return
  68037. $async$goto = 1;
  68038. break;
  68039. case 1:
  68040. // return
  68041. return P._asyncReturn($async$returnValue, $async$completer);
  68042. }
  68043. });
  68044. return P._asyncStartSync($async$call$1, $async$completer);
  68045. },
  68046. $signature: 42
  68047. };
  68048. E._EvaluateVisitor_visitCssAtRule_closure5.prototype = {
  68049. call$0: function() {
  68050. var $async$goto = 0,
  68051. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68052. $async$self = this, t1, t2, cur;
  68053. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68054. if ($async$errorCode === 1)
  68055. return P._asyncRethrow($async$result, $async$completer);
  68056. while (true)
  68057. switch ($async$goto) {
  68058. case 0:
  68059. // Function start
  68060. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  68061. case 2:
  68062. // for condition
  68063. if (!t1.moveNext$0()) {
  68064. // goto after for
  68065. $async$goto = 3;
  68066. break;
  68067. }
  68068. cur = t1.__internal$_current;
  68069. $async$goto = 4;
  68070. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  68071. case 4:
  68072. // returning from await.
  68073. // goto for condition
  68074. $async$goto = 2;
  68075. break;
  68076. case 3:
  68077. // after for
  68078. // implicit return
  68079. return P._asyncReturn(null, $async$completer);
  68080. }
  68081. });
  68082. return P._asyncStartSync($async$call$0, $async$completer);
  68083. },
  68084. $signature: 2
  68085. };
  68086. E._EvaluateVisitor_visitCssAtRule_closure6.prototype = {
  68087. call$1: function(node) {
  68088. return type$.legacy_CssStyleRule_2._is(node);
  68089. }
  68090. };
  68091. E._EvaluateVisitor_visitCssKeyframeBlock_closure5.prototype = {
  68092. call$0: function() {
  68093. var $async$goto = 0,
  68094. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68095. $async$self = this, t1, t2, cur;
  68096. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68097. if ($async$errorCode === 1)
  68098. return P._asyncRethrow($async$result, $async$completer);
  68099. while (true)
  68100. switch ($async$goto) {
  68101. case 0:
  68102. // Function start
  68103. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  68104. case 2:
  68105. // for condition
  68106. if (!t1.moveNext$0()) {
  68107. // goto after for
  68108. $async$goto = 3;
  68109. break;
  68110. }
  68111. cur = t1.__internal$_current;
  68112. $async$goto = 4;
  68113. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  68114. case 4:
  68115. // returning from await.
  68116. // goto for condition
  68117. $async$goto = 2;
  68118. break;
  68119. case 3:
  68120. // after for
  68121. // implicit return
  68122. return P._asyncReturn(null, $async$completer);
  68123. }
  68124. });
  68125. return P._asyncStartSync($async$call$0, $async$completer);
  68126. },
  68127. $signature: 2
  68128. };
  68129. E._EvaluateVisitor_visitCssKeyframeBlock_closure6.prototype = {
  68130. call$1: function(node) {
  68131. return type$.legacy_CssStyleRule_2._is(node);
  68132. }
  68133. };
  68134. E._EvaluateVisitor_visitCssMediaRule_closure5.prototype = {
  68135. call$0: function() {
  68136. var $async$goto = 0,
  68137. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68138. $async$self = this, t1, t2;
  68139. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68140. if ($async$errorCode === 1)
  68141. return P._asyncRethrow($async$result, $async$completer);
  68142. while (true)
  68143. switch ($async$goto) {
  68144. case 0:
  68145. // Function start
  68146. t1 = $async$self.$this;
  68147. t2 = $async$self.mergedQueries;
  68148. if (t2 == null)
  68149. t2 = $async$self.node.queries;
  68150. $async$goto = 2;
  68151. return P._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitCssMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  68152. case 2:
  68153. // returning from await.
  68154. // implicit return
  68155. return P._asyncReturn(null, $async$completer);
  68156. }
  68157. });
  68158. return P._asyncStartSync($async$call$0, $async$completer);
  68159. },
  68160. $signature: 2
  68161. };
  68162. E._EvaluateVisitor_visitCssMediaRule__closure2.prototype = {
  68163. call$0: function() {
  68164. var $async$goto = 0,
  68165. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68166. $async$self = this, cur, t1, t2;
  68167. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68168. if ($async$errorCode === 1)
  68169. return P._asyncRethrow($async$result, $async$completer);
  68170. while (true)
  68171. switch ($async$goto) {
  68172. case 0:
  68173. // Function start
  68174. t1 = $async$self.$this;
  68175. t2 = t1._async_evaluate0$_styleRule;
  68176. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  68177. break;
  68178. case 2:
  68179. // then
  68180. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  68181. case 5:
  68182. // for condition
  68183. if (!t2.moveNext$0()) {
  68184. // goto after for
  68185. $async$goto = 6;
  68186. break;
  68187. }
  68188. cur = t2.__internal$_current;
  68189. $async$goto = 7;
  68190. return P._asyncAwait(cur.accept$1(t1), $async$call$0);
  68191. case 7:
  68192. // returning from await.
  68193. // goto for condition
  68194. $async$goto = 5;
  68195. break;
  68196. case 6:
  68197. // after for
  68198. // goto join
  68199. $async$goto = 3;
  68200. break;
  68201. case 4:
  68202. // else
  68203. $async$goto = 8;
  68204. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssMediaRule___closure2(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  68205. case 8:
  68206. // returning from await.
  68207. case 3:
  68208. // join
  68209. // implicit return
  68210. return P._asyncReturn(null, $async$completer);
  68211. }
  68212. });
  68213. return P._asyncStartSync($async$call$0, $async$completer);
  68214. },
  68215. $signature: 2
  68216. };
  68217. E._EvaluateVisitor_visitCssMediaRule___closure2.prototype = {
  68218. call$0: function() {
  68219. var $async$goto = 0,
  68220. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68221. $async$self = this, t1, t2, cur;
  68222. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68223. if ($async$errorCode === 1)
  68224. return P._asyncRethrow($async$result, $async$completer);
  68225. while (true)
  68226. switch ($async$goto) {
  68227. case 0:
  68228. // Function start
  68229. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  68230. case 2:
  68231. // for condition
  68232. if (!t1.moveNext$0()) {
  68233. // goto after for
  68234. $async$goto = 3;
  68235. break;
  68236. }
  68237. cur = t1.__internal$_current;
  68238. $async$goto = 4;
  68239. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  68240. case 4:
  68241. // returning from await.
  68242. // goto for condition
  68243. $async$goto = 2;
  68244. break;
  68245. case 3:
  68246. // after for
  68247. // implicit return
  68248. return P._asyncReturn(null, $async$completer);
  68249. }
  68250. });
  68251. return P._asyncStartSync($async$call$0, $async$completer);
  68252. },
  68253. $signature: 2
  68254. };
  68255. E._EvaluateVisitor_visitCssMediaRule_closure6.prototype = {
  68256. call$1: function(node) {
  68257. var t1;
  68258. if (!type$.legacy_CssStyleRule_2._is(node))
  68259. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule_2._is(node);
  68260. else
  68261. t1 = true;
  68262. return t1;
  68263. }
  68264. };
  68265. E._EvaluateVisitor_visitCssStyleRule_closure5.prototype = {
  68266. call$0: function() {
  68267. var $async$goto = 0,
  68268. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68269. $async$self = this, t1;
  68270. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68271. if ($async$errorCode === 1)
  68272. return P._asyncRethrow($async$result, $async$completer);
  68273. while (true)
  68274. switch ($async$goto) {
  68275. case 0:
  68276. // Function start
  68277. t1 = $async$self.$this;
  68278. $async$goto = 2;
  68279. return P._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitCssStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  68280. case 2:
  68281. // returning from await.
  68282. // implicit return
  68283. return P._asyncReturn(null, $async$completer);
  68284. }
  68285. });
  68286. return P._asyncStartSync($async$call$0, $async$completer);
  68287. },
  68288. $signature: 2
  68289. };
  68290. E._EvaluateVisitor_visitCssStyleRule__closure2.prototype = {
  68291. call$0: function() {
  68292. var $async$goto = 0,
  68293. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68294. $async$self = this, t1, t2, cur;
  68295. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68296. if ($async$errorCode === 1)
  68297. return P._asyncRethrow($async$result, $async$completer);
  68298. while (true)
  68299. switch ($async$goto) {
  68300. case 0:
  68301. // Function start
  68302. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  68303. case 2:
  68304. // for condition
  68305. if (!t1.moveNext$0()) {
  68306. // goto after for
  68307. $async$goto = 3;
  68308. break;
  68309. }
  68310. cur = t1.__internal$_current;
  68311. $async$goto = 4;
  68312. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  68313. case 4:
  68314. // returning from await.
  68315. // goto for condition
  68316. $async$goto = 2;
  68317. break;
  68318. case 3:
  68319. // after for
  68320. // implicit return
  68321. return P._asyncReturn(null, $async$completer);
  68322. }
  68323. });
  68324. return P._asyncStartSync($async$call$0, $async$completer);
  68325. },
  68326. $signature: 2
  68327. };
  68328. E._EvaluateVisitor_visitCssStyleRule_closure6.prototype = {
  68329. call$1: function(node) {
  68330. return type$.legacy_CssStyleRule_2._is(node);
  68331. }
  68332. };
  68333. E._EvaluateVisitor_visitCssSupportsRule_closure5.prototype = {
  68334. call$0: function() {
  68335. var $async$goto = 0,
  68336. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68337. $async$self = this, cur, t1, t2;
  68338. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68339. if ($async$errorCode === 1)
  68340. return P._asyncRethrow($async$result, $async$completer);
  68341. while (true)
  68342. switch ($async$goto) {
  68343. case 0:
  68344. // Function start
  68345. t1 = $async$self.$this;
  68346. t2 = t1._async_evaluate0$_styleRule;
  68347. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  68348. break;
  68349. case 2:
  68350. // then
  68351. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  68352. case 5:
  68353. // for condition
  68354. if (!t2.moveNext$0()) {
  68355. // goto after for
  68356. $async$goto = 6;
  68357. break;
  68358. }
  68359. cur = t2.__internal$_current;
  68360. $async$goto = 7;
  68361. return P._asyncAwait(cur.accept$1(t1), $async$call$0);
  68362. case 7:
  68363. // returning from await.
  68364. // goto for condition
  68365. $async$goto = 5;
  68366. break;
  68367. case 6:
  68368. // after for
  68369. // goto join
  68370. $async$goto = 3;
  68371. break;
  68372. case 4:
  68373. // else
  68374. $async$goto = 8;
  68375. return P._asyncAwait(t1._async_evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssSupportsRule__closure2(t1, $async$self.node), type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  68376. case 8:
  68377. // returning from await.
  68378. case 3:
  68379. // join
  68380. // implicit return
  68381. return P._asyncReturn(null, $async$completer);
  68382. }
  68383. });
  68384. return P._asyncStartSync($async$call$0, $async$completer);
  68385. },
  68386. $signature: 2
  68387. };
  68388. E._EvaluateVisitor_visitCssSupportsRule__closure2.prototype = {
  68389. call$0: function() {
  68390. var $async$goto = 0,
  68391. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68392. $async$self = this, t1, t2, cur;
  68393. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68394. if ($async$errorCode === 1)
  68395. return P._asyncRethrow($async$result, $async$completer);
  68396. while (true)
  68397. switch ($async$goto) {
  68398. case 0:
  68399. // Function start
  68400. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  68401. case 2:
  68402. // for condition
  68403. if (!t1.moveNext$0()) {
  68404. // goto after for
  68405. $async$goto = 3;
  68406. break;
  68407. }
  68408. cur = t1.__internal$_current;
  68409. $async$goto = 4;
  68410. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  68411. case 4:
  68412. // returning from await.
  68413. // goto for condition
  68414. $async$goto = 2;
  68415. break;
  68416. case 3:
  68417. // after for
  68418. // implicit return
  68419. return P._asyncReturn(null, $async$completer);
  68420. }
  68421. });
  68422. return P._asyncStartSync($async$call$0, $async$completer);
  68423. },
  68424. $signature: 2
  68425. };
  68426. E._EvaluateVisitor_visitCssSupportsRule_closure6.prototype = {
  68427. call$1: function(node) {
  68428. return type$.legacy_CssStyleRule_2._is(node);
  68429. }
  68430. };
  68431. E._EvaluateVisitor__performInterpolation_closure2.prototype = {
  68432. call$1: function(value) {
  68433. var $async$goto = 0,
  68434. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  68435. $async$returnValue, $async$self = this, t1, result, t2, t3;
  68436. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68437. if ($async$errorCode === 1)
  68438. return P._asyncRethrow($async$result, $async$completer);
  68439. while (true)
  68440. switch ($async$goto) {
  68441. case 0:
  68442. // Function start
  68443. if (typeof value == "string") {
  68444. $async$returnValue = value;
  68445. // goto return
  68446. $async$goto = 1;
  68447. break;
  68448. }
  68449. type$.legacy_Expression_2._as(value);
  68450. t1 = $async$self.$this;
  68451. $async$goto = 3;
  68452. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  68453. case 3:
  68454. // returning from await.
  68455. result = $async$result;
  68456. if ($async$self.warnForColor && result instanceof K.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
  68457. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([""], type$.JSArray_legacy_Object), null);
  68458. t3 = $.$get$namesByColor0();
  68459. t1._async_evaluate0$_warn$2(string$.You_pr + H.S(t3.$index(0, result)) + string$.x20in_in + H.S(result) + string$.x2c_whic + H.S(t3.$index(0, result)) + string$.x22x29__If + new V.BinaryOperationExpression0(C.BinaryOperator_AcR1, new D.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  68460. }
  68461. $async$returnValue = t1._async_evaluate0$_serialize$3$quote(result, value, false);
  68462. // goto return
  68463. $async$goto = 1;
  68464. break;
  68465. case 1:
  68466. // return
  68467. return P._asyncReturn($async$returnValue, $async$completer);
  68468. }
  68469. });
  68470. return P._asyncStartSync($async$call$1, $async$completer);
  68471. },
  68472. $signature: 42
  68473. };
  68474. E._EvaluateVisitor__serialize_closure2.prototype = {
  68475. call$0: function() {
  68476. var t1 = this.value;
  68477. t1.toString;
  68478. return N.serializeValue(t1, false, this.quote);
  68479. },
  68480. $signature: 9
  68481. };
  68482. E._EvaluateVisitor__stackTrace_closure2.prototype = {
  68483. call$1: function(tuple) {
  68484. return this.$this._async_evaluate0$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  68485. }
  68486. };
  68487. E._ImportedCssVisitor2.prototype = {
  68488. visitCssAtRule$1: function(node) {
  68489. var t1 = node.isChildless ? null : new E._ImportedCssVisitor_visitCssAtRule_closure2();
  68490. this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, t1);
  68491. },
  68492. visitCssComment$1: function(node) {
  68493. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$1(node);
  68494. },
  68495. visitCssDeclaration$1: function(node) {
  68496. },
  68497. visitCssImport$1: function(node) {
  68498. var t1 = this._async_evaluate0$_visitor,
  68499. t2 = t1._async_evaluate0$_parent,
  68500. t3 = t1._async_evaluate0$_root;
  68501. if (t2 != t3)
  68502. t1._async_evaluate0$_addChild$1(node);
  68503. else if (t1._async_evaluate0$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  68504. t1._async_evaluate0$_addChild$1(node);
  68505. t1._async_evaluate0$_endOfImports = t1._async_evaluate0$_endOfImports + 1;
  68506. } else {
  68507. t2 = t1._async_evaluate0$_outOfOrderImports;
  68508. (t2 == null ? t1._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t2).push(node);
  68509. }
  68510. },
  68511. visitCssKeyframeBlock$1: function(node) {
  68512. },
  68513. visitCssMediaRule$1: function(node) {
  68514. var t1 = this._async_evaluate0$_visitor,
  68515. t2 = t1._async_evaluate0$_mediaQueries;
  68516. t1._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssMediaRule_closure2(t2 == null || t1._async_evaluate0$_mergeMediaQueries$2(t2, node.queries) != null));
  68517. },
  68518. visitCssStyleRule$1: function(node) {
  68519. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssStyleRule_closure2());
  68520. },
  68521. visitCssStylesheet$1: function(node) {
  68522. var t1, cur;
  68523. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  68524. cur = t1.__internal$_current;
  68525. cur.accept$1(this);
  68526. }
  68527. },
  68528. visitCssSupportsRule$1: function(node) {
  68529. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssSupportsRule_closure2());
  68530. }
  68531. };
  68532. E._ImportedCssVisitor_visitCssAtRule_closure2.prototype = {
  68533. call$1: function(node) {
  68534. return type$.legacy_CssStyleRule_2._is(node);
  68535. }
  68536. };
  68537. E._ImportedCssVisitor_visitCssMediaRule_closure2.prototype = {
  68538. call$1: function(node) {
  68539. var t1;
  68540. if (!type$.legacy_CssStyleRule_2._is(node))
  68541. t1 = this.hasBeenMerged && type$.legacy_CssMediaRule_2._is(node);
  68542. else
  68543. t1 = true;
  68544. return t1;
  68545. }
  68546. };
  68547. E._ImportedCssVisitor_visitCssStyleRule_closure2.prototype = {
  68548. call$1: function(node) {
  68549. return type$.legacy_CssStyleRule_2._is(node);
  68550. }
  68551. };
  68552. E._ImportedCssVisitor_visitCssSupportsRule_closure2.prototype = {
  68553. call$1: function(node) {
  68554. return type$.legacy_CssStyleRule_2._is(node);
  68555. }
  68556. };
  68557. E.EvaluateResult0.prototype = {};
  68558. E._ArgumentResults2.prototype = {};
  68559. O.AsyncImportCache0.prototype = {
  68560. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  68561. return this.canonicalize$body$AsyncImportCache0(url, baseImporter, baseUrl, forImport);
  68562. },
  68563. canonicalize$body$AsyncImportCache0: function(url, baseImporter, baseUrl, forImport) {
  68564. var $async$goto = 0,
  68565. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri),
  68566. $async$returnValue, $async$self = this, resolvedUrl, canonicalUrl;
  68567. var $async$canonicalize$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68568. if ($async$errorCode === 1)
  68569. return P._asyncRethrow($async$result, $async$completer);
  68570. while (true)
  68571. switch ($async$goto) {
  68572. case 0:
  68573. // Function start
  68574. $async$goto = baseImporter != null ? 3 : 4;
  68575. break;
  68576. case 3:
  68577. // then
  68578. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  68579. $async$goto = 5;
  68580. return P._asyncAwait($async$self._async_import_cache0$_canonicalize$3(baseImporter, resolvedUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  68581. case 5:
  68582. // returning from await.
  68583. canonicalUrl = $async$result;
  68584. if (canonicalUrl != null) {
  68585. $async$returnValue = new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2);
  68586. // goto return
  68587. $async$goto = 1;
  68588. break;
  68589. }
  68590. case 4:
  68591. // join
  68592. $async$goto = 6;
  68593. return P._asyncAwait(B.putIfAbsentAsync0($async$self._async_import_cache0$_canonicalizeCache, new S.Tuple2(url, forImport, type$.Tuple2_of_legacy_Uri_and_legacy_bool), new O.AsyncImportCache_canonicalize_closure0($async$self, url, forImport), type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  68594. case 6:
  68595. // returning from await.
  68596. $async$returnValue = $async$result;
  68597. // goto return
  68598. $async$goto = 1;
  68599. break;
  68600. case 1:
  68601. // return
  68602. return P._asyncReturn($async$returnValue, $async$completer);
  68603. }
  68604. });
  68605. return P._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  68606. },
  68607. _async_import_cache0$_canonicalize$3: function(importer, url, forImport) {
  68608. return this._canonicalize$body$AsyncImportCache0(importer, url, forImport);
  68609. },
  68610. _canonicalize$body$AsyncImportCache0: function(importer, url, forImport) {
  68611. var $async$goto = 0,
  68612. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Uri),
  68613. $async$returnValue, $async$self = this, result;
  68614. var $async$_async_import_cache0$_canonicalize$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68615. if ($async$errorCode === 1)
  68616. return P._asyncRethrow($async$result, $async$completer);
  68617. while (true)
  68618. switch ($async$goto) {
  68619. case 0:
  68620. // Function start
  68621. $async$goto = 3;
  68622. return P._asyncAwait(forImport ? B.inImportRule0(new O.AsyncImportCache__canonicalize_closure0(importer, url)) : importer.canonicalize$1(url), $async$_async_import_cache0$_canonicalize$3);
  68623. case 3:
  68624. // returning from await.
  68625. result = $async$result;
  68626. if ((result == null ? null : result.get$scheme()) === "")
  68627. $async$self._async_import_cache0$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + url.toString$0(0) + " to " + H.S(result) + string$.x2ex0aRela, true);
  68628. $async$returnValue = result;
  68629. // goto return
  68630. $async$goto = 1;
  68631. break;
  68632. case 1:
  68633. // return
  68634. return P._asyncReturn($async$returnValue, $async$completer);
  68635. }
  68636. });
  68637. return P._asyncStartSync($async$_async_import_cache0$_canonicalize$3, $async$completer);
  68638. },
  68639. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  68640. return this.import$body$AsyncImportCache0(url, baseImporter, baseUrl, forImport);
  68641. },
  68642. import$body$AsyncImportCache0: function(url, baseImporter, baseUrl, forImport) {
  68643. var $async$goto = 0,
  68644. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2),
  68645. $async$returnValue, $async$self = this, t1, tuple, $async$temp1, $async$temp2;
  68646. var $async$import$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68647. if ($async$errorCode === 1)
  68648. return P._asyncRethrow($async$result, $async$completer);
  68649. while (true)
  68650. switch ($async$goto) {
  68651. case 0:
  68652. // Function start
  68653. $async$goto = 3;
  68654. return P._asyncAwait($async$self.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport), $async$import$4$baseImporter$baseUrl$forImport);
  68655. case 3:
  68656. // returning from await.
  68657. tuple = $async$result;
  68658. if (tuple == null) {
  68659. $async$returnValue = null;
  68660. // goto return
  68661. $async$goto = 1;
  68662. break;
  68663. }
  68664. t1 = tuple.item1;
  68665. $async$temp1 = S;
  68666. $async$temp2 = t1;
  68667. $async$goto = 4;
  68668. return P._asyncAwait($async$self.importCanonical$3(t1, tuple.item2, tuple.item3), $async$import$4$baseImporter$baseUrl$forImport);
  68669. case 4:
  68670. // returning from await.
  68671. $async$returnValue = new $async$temp1.Tuple2($async$temp2, $async$result, type$.Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2);
  68672. // goto return
  68673. $async$goto = 1;
  68674. break;
  68675. case 1:
  68676. // return
  68677. return P._asyncReturn($async$returnValue, $async$completer);
  68678. }
  68679. });
  68680. return P._asyncStartSync($async$import$4$baseImporter$baseUrl$forImport, $async$completer);
  68681. },
  68682. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  68683. return this.importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl);
  68684. },
  68685. importCanonical$body$AsyncImportCache0: function(importer, canonicalUrl, originalUrl) {
  68686. var $async$goto = 0,
  68687. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet),
  68688. $async$returnValue, $async$self = this;
  68689. var $async$importCanonical$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68690. if ($async$errorCode === 1)
  68691. return P._asyncRethrow($async$result, $async$completer);
  68692. while (true)
  68693. switch ($async$goto) {
  68694. case 0:
  68695. // Function start
  68696. $async$goto = 3;
  68697. return P._asyncAwait(B.putIfAbsentAsync0($async$self._async_import_cache0$_importCache, canonicalUrl, new O.AsyncImportCache_importCanonical_closure0($async$self, importer, canonicalUrl, originalUrl), type$.legacy_Uri, type$.legacy_Stylesheet), $async$importCanonical$3);
  68698. case 3:
  68699. // returning from await.
  68700. $async$returnValue = $async$result;
  68701. // goto return
  68702. $async$goto = 1;
  68703. break;
  68704. case 1:
  68705. // return
  68706. return P._asyncReturn($async$returnValue, $async$completer);
  68707. }
  68708. });
  68709. return P._asyncStartSync($async$importCanonical$3, $async$completer);
  68710. },
  68711. humanize$1: function(canonicalUrl) {
  68712. var t1 = this._async_import_cache0$_canonicalizeCache.get$values(),
  68713. t2 = H._instanceType(t1),
  68714. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new O.AsyncImportCache_humanize_closure2(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new O.AsyncImportCache_humanize_closure3(), t2._eval$1("MappedIterable<Iterable.E,Uri*>")), new O.AsyncImportCache_humanize_closure4(), type$.legacy_Uri, type$.dynamic);
  68715. if (url == null)
  68716. return canonicalUrl;
  68717. t1 = $.$get$url();
  68718. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  68719. }
  68720. };
  68721. O.AsyncImportCache_canonicalize_closure0.prototype = {
  68722. call$0: function() {
  68723. var $async$goto = 0,
  68724. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri),
  68725. $async$returnValue, $async$self = this, t1, t2, t3, _i, importer, canonicalUrl;
  68726. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68727. if ($async$errorCode === 1)
  68728. return P._asyncRethrow($async$result, $async$completer);
  68729. while (true)
  68730. switch ($async$goto) {
  68731. case 0:
  68732. // Function start
  68733. t1 = $async$self.$this, t2 = $async$self.url, t3 = $async$self.forImport, _i = 0;
  68734. case 3:
  68735. // for condition
  68736. if (!false) {
  68737. // goto after for
  68738. $async$goto = 5;
  68739. break;
  68740. }
  68741. importer = C.List_empty23[_i];
  68742. $async$goto = 6;
  68743. return P._asyncAwait(t1._async_import_cache0$_canonicalize$3(importer, t2, t3), $async$call$0);
  68744. case 6:
  68745. // returning from await.
  68746. canonicalUrl = $async$result;
  68747. if (canonicalUrl != null) {
  68748. $async$returnValue = new S.Tuple3(importer, canonicalUrl, t2, type$.Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2);
  68749. // goto return
  68750. $async$goto = 1;
  68751. break;
  68752. }
  68753. case 4:
  68754. // for update
  68755. ++_i;
  68756. // goto for condition
  68757. $async$goto = 3;
  68758. break;
  68759. case 5:
  68760. // after for
  68761. $async$returnValue = null;
  68762. // goto return
  68763. $async$goto = 1;
  68764. break;
  68765. case 1:
  68766. // return
  68767. return P._asyncReturn($async$returnValue, $async$completer);
  68768. }
  68769. });
  68770. return P._asyncStartSync($async$call$0, $async$completer);
  68771. },
  68772. $signature: 122
  68773. };
  68774. O.AsyncImportCache__canonicalize_closure0.prototype = {
  68775. call$0: function() {
  68776. return this.importer.canonicalize$1(this.url);
  68777. },
  68778. $signature: 93
  68779. };
  68780. O.AsyncImportCache_importCanonical_closure0.prototype = {
  68781. call$0: function() {
  68782. var $async$goto = 0,
  68783. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet),
  68784. $async$returnValue, $async$self = this, t2, t3, t4, t5, t1, result;
  68785. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68786. if ($async$errorCode === 1)
  68787. return P._asyncRethrow($async$result, $async$completer);
  68788. while (true)
  68789. switch ($async$goto) {
  68790. case 0:
  68791. // Function start
  68792. t1 = $async$self.canonicalUrl;
  68793. $async$goto = 3;
  68794. return P._asyncAwait($async$self.importer.load$1(t1), $async$call$0);
  68795. case 3:
  68796. // returning from await.
  68797. result = $async$result;
  68798. if (result == null) {
  68799. $async$returnValue = null;
  68800. // goto return
  68801. $async$goto = 1;
  68802. break;
  68803. }
  68804. t2 = $async$self.$this;
  68805. t2._async_import_cache0$_resultsCache.$indexSet(0, t1, result);
  68806. t3 = result.contents;
  68807. t4 = result.syntax;
  68808. t5 = $async$self.originalUrl;
  68809. t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
  68810. $async$returnValue = V.Stylesheet_Stylesheet$parse0(t3, t4, t2._async_import_cache0$_logger, t1);
  68811. // goto return
  68812. $async$goto = 1;
  68813. break;
  68814. case 1:
  68815. // return
  68816. return P._asyncReturn($async$returnValue, $async$completer);
  68817. }
  68818. });
  68819. return P._asyncStartSync($async$call$0, $async$completer);
  68820. },
  68821. $signature: 123
  68822. };
  68823. O.AsyncImportCache_humanize_closure2.prototype = {
  68824. call$1: function(tuple) {
  68825. var t1 = tuple == null ? null : tuple.item2;
  68826. return J.$eq$(t1, this.canonicalUrl);
  68827. }
  68828. };
  68829. O.AsyncImportCache_humanize_closure3.prototype = {
  68830. call$1: function(tuple) {
  68831. return tuple.item3;
  68832. }
  68833. };
  68834. O.AsyncImportCache_humanize_closure4.prototype = {
  68835. call$1: function(url) {
  68836. return J.get$length$asx(J.get$path$x(url));
  68837. },
  68838. $signature: 30
  68839. };
  68840. V.AtRootQueryParser0.prototype = {
  68841. parse$0: function() {
  68842. return this.wrapSpanFormatException$1(new V.AtRootQueryParser_parse_closure0(this));
  68843. }
  68844. };
  68845. V.AtRootQueryParser_parse_closure0.prototype = {
  68846. call$0: function() {
  68847. var include, atRules,
  68848. t1 = this.$this,
  68849. t2 = t1.scanner;
  68850. t2.expectChar$1(40);
  68851. t1.whitespace$0();
  68852. include = t1.scanIdentifier$1("with");
  68853. if (!include)
  68854. t1.expectIdentifier$2$name("without", '"with" or "without"');
  68855. t1.whitespace$0();
  68856. t2.expectChar$1(58);
  68857. t1.whitespace$0();
  68858. atRules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  68859. do {
  68860. atRules.add$1(0, t1.identifier$0().toLowerCase());
  68861. t1.whitespace$0();
  68862. } while (t1.lookingAtIdentifier$0());
  68863. t2.expectChar$1(41);
  68864. t2.expectDone$0();
  68865. return new V.AtRootQuery0(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  68866. },
  68867. $signature: 56
  68868. };
  68869. V.AtRootQuery0.prototype = {
  68870. excludes$1: function(node) {
  68871. var _this = this;
  68872. if (_this._at_root_query0$_all)
  68873. return !_this.include;
  68874. if (_this._at_root_query0$_rule && type$.legacy_CssStyleRule_2._is(node))
  68875. return !_this.include;
  68876. return _this.names.contains$1(0, _this._at_root_query0$_nameFor$1(node)) !== _this.include;
  68877. },
  68878. _at_root_query0$_nameFor$1: function(node) {
  68879. var t1;
  68880. if (type$.legacy_CssMediaRule_2._is(node))
  68881. return "media";
  68882. if (type$.legacy_CssSupportsRule_2._is(node))
  68883. return "supports";
  68884. if (type$.legacy_CssAtRule_2._is(node)) {
  68885. t1 = node.name;
  68886. return t1.get$value(t1).toLowerCase();
  68887. }
  68888. return null;
  68889. }
  68890. };
  68891. V.AtRootRule0.prototype = {
  68892. accept$1$1: function(visitor) {
  68893. return visitor.visitAtRootRule$1(this);
  68894. },
  68895. accept$1: function(visitor) {
  68896. return this.accept$1$1(visitor, type$.dynamic);
  68897. },
  68898. toString$0: function(_) {
  68899. var buffer = new P.StringBuffer("@at-root "),
  68900. t1 = this.query;
  68901. if (t1 != null)
  68902. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  68903. t1 = this.children;
  68904. return buffer.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  68905. },
  68906. get$span: function() {
  68907. return this.span;
  68908. }
  68909. };
  68910. U.ModifiableCssAtRule0.prototype = {
  68911. accept$1$1: function(visitor) {
  68912. return visitor.visitCssAtRule$1(this);
  68913. },
  68914. accept$1: function(visitor) {
  68915. return this.accept$1$1(visitor, type$.dynamic);
  68916. },
  68917. copyWithoutChildren$0: function() {
  68918. var _this = this,
  68919. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  68920. return new U.ModifiableCssAtRule0(_this.name, _this.value, _this.isChildless, _this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
  68921. },
  68922. addChild$1: function(child) {
  68923. this.super$ModifiableCssParentNode$addChild0(child);
  68924. },
  68925. $isCssAtRule0: 1,
  68926. get$isChildless: function() {
  68927. return this.isChildless;
  68928. },
  68929. get$span: function() {
  68930. return this.span;
  68931. }
  68932. };
  68933. U.AtRule0.prototype = {
  68934. accept$1$1: function(visitor) {
  68935. return visitor.visitAtRule$1(this);
  68936. },
  68937. accept$1: function(visitor) {
  68938. return this.accept$1$1(visitor, type$.dynamic);
  68939. },
  68940. toString$0: function(_) {
  68941. var t1 = "@" + this.name.toString$0(0),
  68942. buffer = new P.StringBuffer(t1),
  68943. t2 = this.value;
  68944. if (t2 != null)
  68945. buffer._contents = t1 + (" " + t2.toString$0(0));
  68946. t1 = this.children;
  68947. return t1 == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + C.JSArray_methods.join$1(t1, " ") + "}";
  68948. },
  68949. get$span: function() {
  68950. return this.span;
  68951. }
  68952. };
  68953. N.AttributeSelector0.prototype = {
  68954. accept$1$1: function(visitor) {
  68955. var t2, _this = this,
  68956. t1 = visitor._buffer;
  68957. t1.writeCharCode$1(91);
  68958. t1.write$1(0, _this.name);
  68959. t2 = _this.op;
  68960. if (t2 != null) {
  68961. t1.write$1(0, t2);
  68962. t2 = _this.value;
  68963. if (G.Parser_isIdentifier0(t2) && !J.startsWith$1$s(t2, "--")) {
  68964. t1.write$1(0, t2);
  68965. t2 = _this.modifier;
  68966. if (t2 != null)
  68967. t1.writeCharCode$1(32);
  68968. } else {
  68969. visitor._serialize0$_visitQuotedString$1(t2);
  68970. t2 = _this.modifier;
  68971. if (t2 != null)
  68972. if (visitor._serialize0$_style !== C.OutputStyle_compressed0)
  68973. t1.writeCharCode$1(32);
  68974. }
  68975. if (t2 != null)
  68976. t1.write$1(0, t2);
  68977. }
  68978. t1.writeCharCode$1(93);
  68979. return null;
  68980. },
  68981. accept$1: function(visitor) {
  68982. return this.accept$1$1(visitor, type$.dynamic);
  68983. },
  68984. $eq: function(_, other) {
  68985. var _this = this;
  68986. if (other == null)
  68987. return false;
  68988. return other instanceof N.AttributeSelector0 && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  68989. },
  68990. get$hashCode: function(_) {
  68991. var _this = this,
  68992. t1 = _this.name;
  68993. return (C.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;
  68994. }
  68995. };
  68996. N.AttributeOperator0.prototype = {
  68997. toString$0: function(_) {
  68998. return this._attribute0$_text;
  68999. }
  69000. };
  69001. V.BinaryOperationExpression0.prototype = {
  69002. get$span: function() {
  69003. var right,
  69004. left = this.left;
  69005. for (; left instanceof V.BinaryOperationExpression0;)
  69006. left = left.left;
  69007. right = this.right;
  69008. for (; right instanceof V.BinaryOperationExpression0;)
  69009. right = right.right;
  69010. return B.spanForList0(H.setRuntimeTypeInfo([left, right], type$.JSArray_legacy_AstNode_2));
  69011. },
  69012. accept$1$1: function(visitor) {
  69013. return visitor.visitBinaryOperationExpression$1(this);
  69014. },
  69015. accept$1: function(visitor) {
  69016. return this.accept$1$1(visitor, type$.dynamic);
  69017. },
  69018. toString$0: function(_) {
  69019. var t2, right, rightNeedsParens, _this = this,
  69020. left = _this.left,
  69021. leftNeedsParens = left instanceof V.BinaryOperationExpression0 && left.operator.precedence < _this.operator.precedence,
  69022. t1 = leftNeedsParens ? H.Primitives_stringFromCharCode(40) : "";
  69023. t1 += H.S(left);
  69024. if (leftNeedsParens)
  69025. t1 += H.Primitives_stringFromCharCode(41);
  69026. t2 = _this.operator;
  69027. t1 = t1 + H.Primitives_stringFromCharCode(32) + t2.operator + H.Primitives_stringFromCharCode(32);
  69028. right = _this.right;
  69029. rightNeedsParens = right instanceof V.BinaryOperationExpression0 && right.operator.precedence <= t2.precedence;
  69030. if (rightNeedsParens)
  69031. t1 += H.Primitives_stringFromCharCode(40);
  69032. t1 += H.S(right);
  69033. if (rightNeedsParens)
  69034. t1 += H.Primitives_stringFromCharCode(41);
  69035. return t1.charCodeAt(0) == 0 ? t1 : t1;
  69036. },
  69037. $isExpression0: 1,
  69038. $isAstNode0: 1
  69039. };
  69040. V.BinaryOperator0.prototype = {
  69041. toString$0: function(_) {
  69042. return this.name;
  69043. }
  69044. };
  69045. Z.BooleanExpression0.prototype = {
  69046. accept$1$1: function(visitor) {
  69047. return visitor.visitBooleanExpression$1(this);
  69048. },
  69049. accept$1: function(visitor) {
  69050. return this.accept$1$1(visitor, type$.dynamic);
  69051. },
  69052. toString$0: function(_) {
  69053. return String(this.value);
  69054. },
  69055. $isExpression0: 1,
  69056. $isAstNode0: 1,
  69057. get$span: function() {
  69058. return this.span;
  69059. }
  69060. };
  69061. Z.closure245.prototype = {
  69062. call$0: function() {
  69063. var $constructor = P.allowInterop(new Z._closure32());
  69064. B.injectSuperclass(C.SassBoolean_true, $constructor);
  69065. self.Object.defineProperty(C.SassBoolean_true.constructor, "name", {value: "SassBoolean"});
  69066. B.forwardToString($constructor);
  69067. $constructor.prototype.getValue = P.allowInteropCaptureThis(new Z._closure33());
  69068. $constructor.TRUE = C.SassBoolean_true;
  69069. $constructor.FALSE = C.SassBoolean_false;
  69070. return $constructor;
  69071. },
  69072. $signature: 70
  69073. };
  69074. Z._closure32.prototype = {
  69075. call$1: function(_) {
  69076. throw H.wrapException("new sass.types.Boolean() isn't allowed.\nUse sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead.");
  69077. },
  69078. call$0: function() {
  69079. return this.call$1(null);
  69080. },
  69081. "call*": "call$1",
  69082. $requiredArgCount: 0,
  69083. $defaultValues: function() {
  69084. return [null];
  69085. },
  69086. $signature: 60
  69087. };
  69088. Z._closure33.prototype = {
  69089. call$1: function(thisArg) {
  69090. return thisArg === C.SassBoolean_true;
  69091. },
  69092. $signature: 15
  69093. };
  69094. Z.SassBoolean0.prototype = {
  69095. get$isTruthy: function() {
  69096. return this.value;
  69097. },
  69098. accept$1$1: function(visitor) {
  69099. return visitor._buffer.write$1(0, String(this.value));
  69100. },
  69101. accept$1: function(visitor) {
  69102. return this.accept$1$1(visitor, type$.dynamic);
  69103. },
  69104. unaryNot$0: function() {
  69105. return this.value ? C.SassBoolean_false : C.SassBoolean_true;
  69106. }
  69107. };
  69108. Q.BuiltInCallable0.prototype = {
  69109. callbackFor$2: function(positional, names) {
  69110. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  69111. for (t1 = this._built_in$_overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  69112. overload = t1[_i];
  69113. t3 = overload.item1;
  69114. if (t3.matches$2(positional, names))
  69115. return overload;
  69116. mismatchDistance = t3.$arguments.length - positional;
  69117. if (minMismatchDistance != null) {
  69118. t3 = Math.abs(mismatchDistance);
  69119. t4 = Math.abs(minMismatchDistance);
  69120. if (t3 > t4)
  69121. continue;
  69122. if (t3 === t4 && mismatchDistance < 0)
  69123. continue;
  69124. }
  69125. minMismatchDistance = mismatchDistance;
  69126. fuzzyMatch = overload;
  69127. }
  69128. return fuzzyMatch;
  69129. },
  69130. withName$1: function($name) {
  69131. return new Q.BuiltInCallable0($name, this._built_in$_overloads);
  69132. },
  69133. $isAsyncCallable0: 1,
  69134. $isAsyncBuiltInCallable0: 1,
  69135. $isCallable0: 1,
  69136. get$name: function() {
  69137. return this.name;
  69138. }
  69139. };
  69140. Q.BuiltInCallable$mixin_closure0.prototype = {
  69141. call$1: function($arguments) {
  69142. this.callback.call$1($arguments);
  69143. return null;
  69144. },
  69145. $signature: 45
  69146. };
  69147. Q.BuiltInModule0.prototype = {
  69148. get$upstream: function() {
  69149. return C.List_empty14;
  69150. },
  69151. get$variableNodes: function() {
  69152. return C.Map_empty7;
  69153. },
  69154. get$extender: function() {
  69155. return C.C_EmptyExtender0;
  69156. },
  69157. get$css: function(_) {
  69158. return new V.CssStylesheet0(C.List_empty12, Y.SourceFile$decoded(C.List_empty1, this.url).span$2(0, 0));
  69159. },
  69160. get$transitivelyContainsCss: function() {
  69161. return false;
  69162. },
  69163. get$transitivelyContainsExtensions: function() {
  69164. return false;
  69165. },
  69166. setVariable$3: function($name, value, nodeWithSpan) {
  69167. if (!this.variables.containsKey$1($name))
  69168. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  69169. throw H.wrapException(E.SassScriptException$0("Cannot modify built-in variable."));
  69170. },
  69171. variableIdentity$1: function($name) {
  69172. return this;
  69173. },
  69174. cloneCss$0: function() {
  69175. return this;
  69176. },
  69177. $isModule0: 1,
  69178. get$url: function() {
  69179. return this.url;
  69180. },
  69181. get$functions: function(receiver) {
  69182. return this.functions;
  69183. },
  69184. get$mixins: function() {
  69185. return this.mixins;
  69186. },
  69187. get$variables: function() {
  69188. return this.variables;
  69189. }
  69190. };
  69191. D.Callable0.prototype = {};
  69192. M.CallableDeclaration0.prototype = {
  69193. get$span: function() {
  69194. return this.span;
  69195. }
  69196. };
  69197. Y.Chokidar0.prototype = {};
  69198. Y.ChokidarOptions0.prototype = {};
  69199. Y.ChokidarWatcher0.prototype = {};
  69200. X.ClassSelector0.prototype = {
  69201. $eq: function(_, other) {
  69202. if (other == null)
  69203. return false;
  69204. return other instanceof X.ClassSelector0 && other.name === this.name;
  69205. },
  69206. accept$1$1: function(visitor) {
  69207. var t1 = visitor._buffer;
  69208. t1.writeCharCode$1(46);
  69209. t1.write$1(0, this.name);
  69210. return null;
  69211. },
  69212. accept$1: function(visitor) {
  69213. return this.accept$1$1(visitor, type$.dynamic);
  69214. },
  69215. addSuffix$1: function(suffix) {
  69216. return new X.ClassSelector0(this.name + suffix);
  69217. },
  69218. get$hashCode: function(_) {
  69219. return C.JSString_methods.get$hashCode(this.name);
  69220. }
  69221. };
  69222. V._CloneCssVisitor0.prototype = {
  69223. visitCssAtRule$1: function(node) {
  69224. var t1 = node.isChildless,
  69225. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2),
  69226. rule = new U.ModifiableCssAtRule0(node.name, node.value, t1, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2);
  69227. return t1 ? rule : this._clone_css$_visitChildren$2(rule, node);
  69228. },
  69229. visitCssComment$1: function(node) {
  69230. return new R.ModifiableCssComment0(node.text, node.span);
  69231. },
  69232. visitCssDeclaration$1: function(node) {
  69233. return L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap);
  69234. },
  69235. visitCssImport$1: function(node) {
  69236. return F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports);
  69237. },
  69238. visitCssKeyframeBlock$1: function(node) {
  69239. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  69240. return this._clone_css$_visitChildren$2(new U.ModifiableCssKeyframeBlock0(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1), node);
  69241. },
  69242. visitCssMediaRule$1: function(node) {
  69243. return this._clone_css$_visitChildren$2(G.ModifiableCssMediaRule$0(node.queries, node.span), node);
  69244. },
  69245. visitCssStyleRule$1: function(node) {
  69246. var newSelector = this._clone_css$_oldToNewSelectors.$index(0, node.selector);
  69247. if (newSelector == null)
  69248. throw H.wrapException(P.StateError$(string$.The_Ex));
  69249. return this._clone_css$_visitChildren$2(X.ModifiableCssStyleRule$0(newSelector, node.span, node.originalSelector), node);
  69250. },
  69251. visitCssStylesheet$1: function(node) {
  69252. var t1 = node.get$span(),
  69253. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  69254. return this._clone_css$_visitChildren$2(new V.ModifiableCssStylesheet0(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2), node);
  69255. },
  69256. visitCssSupportsRule$1: function(node) {
  69257. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  69258. return this._clone_css$_visitChildren$2(new B.ModifiableCssSupportsRule0(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1), node);
  69259. },
  69260. _clone_css$_visitChildren$1$2: function(newParent, oldParent) {
  69261. var t1, t2, newChild;
  69262. for (t1 = J.get$iterator$ax(oldParent.get$children()); t1.moveNext$0();) {
  69263. t2 = t1.get$current(t1);
  69264. newChild = t2.accept$1(this);
  69265. newChild.isGroupEnd = t2.get$isGroupEnd();
  69266. newParent.addChild$1(newChild);
  69267. }
  69268. return newParent;
  69269. },
  69270. _clone_css$_visitChildren$2: function(newParent, oldParent) {
  69271. return this._clone_css$_visitChildren$1$2(newParent, oldParent, type$.legacy_ModifiableCssParentNode_2);
  69272. }
  69273. };
  69274. K.ColorExpression0.prototype = {
  69275. get$span: function() {
  69276. return this.value.originalSpan;
  69277. },
  69278. accept$1$1: function(visitor) {
  69279. return visitor.visitColorExpression$1(this);
  69280. },
  69281. accept$1: function(visitor) {
  69282. return this.accept$1$1(visitor, type$.dynamic);
  69283. },
  69284. toString$0: function(_) {
  69285. return N.serializeValue(this.value, true, true);
  69286. },
  69287. $isExpression0: 1,
  69288. $isAstNode0: 1
  69289. };
  69290. K.closure149.prototype = {
  69291. call$1: function($arguments) {
  69292. return K._rgb0("rgb", $arguments);
  69293. },
  69294. $signature: 3
  69295. };
  69296. K.closure150.prototype = {
  69297. call$1: function($arguments) {
  69298. return K._rgb0("rgb", $arguments);
  69299. },
  69300. $signature: 3
  69301. };
  69302. K.closure151.prototype = {
  69303. call$1: function($arguments) {
  69304. return K._rgbTwoArg0("rgb", $arguments);
  69305. },
  69306. $signature: 3
  69307. };
  69308. K.closure152.prototype = {
  69309. call$1: function($arguments) {
  69310. var parsed = K._parseChannels0("rgb", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  69311. return parsed instanceof D.SassString0 ? parsed : K._rgb0("rgb", type$.legacy_List_legacy_Value_2._as(parsed));
  69312. },
  69313. $signature: 3
  69314. };
  69315. K.closure153.prototype = {
  69316. call$1: function($arguments) {
  69317. return K._rgb0("rgba", $arguments);
  69318. },
  69319. $signature: 3
  69320. };
  69321. K.closure154.prototype = {
  69322. call$1: function($arguments) {
  69323. return K._rgb0("rgba", $arguments);
  69324. },
  69325. $signature: 3
  69326. };
  69327. K.closure155.prototype = {
  69328. call$1: function($arguments) {
  69329. return K._rgbTwoArg0("rgba", $arguments);
  69330. },
  69331. $signature: 3
  69332. };
  69333. K.closure156.prototype = {
  69334. call$1: function($arguments) {
  69335. var parsed = K._parseChannels0("rgba", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  69336. return parsed instanceof D.SassString0 ? parsed : K._rgb0("rgba", type$.legacy_List_legacy_Value_2._as(parsed));
  69337. },
  69338. $signature: 3
  69339. };
  69340. K.closure157.prototype = {
  69341. call$1: function($arguments) {
  69342. var color, t2,
  69343. t1 = J.getInterceptor$asx($arguments),
  69344. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  69345. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  69346. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  69347. throw H.wrapException(string$.Only_oa);
  69348. return K._functionString0("invert", t1.take$1($arguments, 1));
  69349. }
  69350. color = t1.$index($arguments, 0).assertColor$1("color");
  69351. t1 = color.get$red();
  69352. t2 = color.get$green();
  69353. return K._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  69354. },
  69355. $signature: 3
  69356. };
  69357. K.closure158.prototype = {
  69358. call$1: function($arguments) {
  69359. return K._hsl0("hsl", $arguments);
  69360. },
  69361. $signature: 3
  69362. };
  69363. K.closure159.prototype = {
  69364. call$1: function($arguments) {
  69365. return K._hsl0("hsl", $arguments);
  69366. },
  69367. $signature: 3
  69368. };
  69369. K.closure160.prototype = {
  69370. call$1: function($arguments) {
  69371. var t1 = J.getInterceptor$asx($arguments);
  69372. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  69373. return K._functionString0("hsl", $arguments);
  69374. else
  69375. throw H.wrapException(E.SassScriptException$0("Missing argument $lightness."));
  69376. },
  69377. $signature: 10
  69378. };
  69379. K.closure161.prototype = {
  69380. call$1: function($arguments) {
  69381. var parsed = K._parseChannels0("hsl", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  69382. return parsed instanceof D.SassString0 ? parsed : K._hsl0("hsl", type$.legacy_List_legacy_Value_2._as(parsed));
  69383. },
  69384. $signature: 3
  69385. };
  69386. K.closure162.prototype = {
  69387. call$1: function($arguments) {
  69388. return K._hsl0("hsla", $arguments);
  69389. },
  69390. $signature: 3
  69391. };
  69392. K.closure163.prototype = {
  69393. call$1: function($arguments) {
  69394. return K._hsl0("hsla", $arguments);
  69395. },
  69396. $signature: 3
  69397. };
  69398. K.closure164.prototype = {
  69399. call$1: function($arguments) {
  69400. var t1 = J.getInterceptor$asx($arguments);
  69401. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  69402. return K._functionString0("hsla", $arguments);
  69403. else
  69404. throw H.wrapException(E.SassScriptException$0("Missing argument $lightness."));
  69405. },
  69406. $signature: 10
  69407. };
  69408. K.closure165.prototype = {
  69409. call$1: function($arguments) {
  69410. var parsed = K._parseChannels0("hsla", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  69411. return parsed instanceof D.SassString0 ? parsed : K._hsl0("hsla", type$.legacy_List_legacy_Value_2._as(parsed));
  69412. },
  69413. $signature: 3
  69414. };
  69415. K.closure166.prototype = {
  69416. call$1: function($arguments) {
  69417. var t1 = J.getInterceptor$asx($arguments);
  69418. if (t1.$index($arguments, 0) instanceof T.SassNumber0)
  69419. return K._functionString0("grayscale", $arguments);
  69420. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  69421. },
  69422. $signature: 3
  69423. };
  69424. K.closure167.prototype = {
  69425. call$1: function($arguments) {
  69426. var t1 = J.getInterceptor$asx($arguments),
  69427. color = t1.$index($arguments, 0).assertColor$1("color"),
  69428. degrees = t1.$index($arguments, 1).assertNumber$1("degrees");
  69429. return color.changeHsl$1$hue(color.get$hue() + degrees.value);
  69430. },
  69431. $signature: 22
  69432. };
  69433. K.closure168.prototype = {
  69434. call$1: function($arguments) {
  69435. var t1 = J.getInterceptor$asx($arguments),
  69436. color = t1.$index($arguments, 0).assertColor$1("color"),
  69437. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  69438. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  69439. },
  69440. $signature: 22
  69441. };
  69442. K.closure169.prototype = {
  69443. call$1: function($arguments) {
  69444. var t1 = J.getInterceptor$asx($arguments),
  69445. color = t1.$index($arguments, 0).assertColor$1("color"),
  69446. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  69447. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  69448. },
  69449. $signature: 22
  69450. };
  69451. K.closure170.prototype = {
  69452. call$1: function($arguments) {
  69453. return new D.SassString0("saturate(" + N.serializeValue(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  69454. },
  69455. $signature: 10
  69456. };
  69457. K.closure171.prototype = {
  69458. call$1: function($arguments) {
  69459. var t1 = J.getInterceptor$asx($arguments),
  69460. color = t1.$index($arguments, 0).assertColor$1("color"),
  69461. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  69462. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  69463. },
  69464. $signature: 22
  69465. };
  69466. K.closure172.prototype = {
  69467. call$1: function($arguments) {
  69468. var t1 = J.getInterceptor$asx($arguments),
  69469. color = t1.$index($arguments, 0).assertColor$1("color"),
  69470. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  69471. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  69472. },
  69473. $signature: 22
  69474. };
  69475. K.closure173.prototype = {
  69476. call$1: function($arguments) {
  69477. var color,
  69478. argument = J.$index$asx($arguments, 0);
  69479. if (argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0()))
  69480. return K._functionString0("alpha", $arguments);
  69481. color = argument.assertColor$1("color");
  69482. return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
  69483. },
  69484. $signature: 3
  69485. };
  69486. K.closure174.prototype = {
  69487. call$1: function($arguments) {
  69488. var t1,
  69489. argList = J.$index$asx($arguments, 0).get$asList();
  69490. if (argList.length !== 0 && C.JSArray_methods.every$1(argList, new K._closure24()))
  69491. return K._functionString0("alpha", $arguments);
  69492. t1 = argList.length;
  69493. if (t1 === 0)
  69494. throw H.wrapException(E.SassScriptException$0("Missing argument $color."));
  69495. else
  69496. throw H.wrapException(E.SassScriptException$0("Only 1 argument allowed, but " + t1 + " were passed."));
  69497. },
  69498. $signature: 10
  69499. };
  69500. K._closure24.prototype = {
  69501. call$1: function(argument) {
  69502. return argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0());
  69503. }
  69504. };
  69505. K.closure175.prototype = {
  69506. call$1: function($arguments) {
  69507. var color,
  69508. t1 = J.getInterceptor$asx($arguments);
  69509. if (t1.$index($arguments, 0) instanceof T.SassNumber0)
  69510. return K._functionString0("opacity", $arguments);
  69511. color = t1.$index($arguments, 0).assertColor$1("color");
  69512. return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
  69513. },
  69514. $signature: 3
  69515. };
  69516. K.closure200.prototype = {
  69517. call$1: function($arguments) {
  69518. var result, color, t2,
  69519. t1 = J.getInterceptor$asx($arguments),
  69520. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  69521. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  69522. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  69523. throw H.wrapException(string$.Only_oa);
  69524. result = K._functionString0("invert", t1.take$1($arguments, 1));
  69525. N.warn0(string$.Passinni + result.toString$0(0), false);
  69526. return result;
  69527. }
  69528. color = t1.$index($arguments, 0).assertColor$1("color");
  69529. t1 = color.get$red();
  69530. t2 = color.get$green();
  69531. return K._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  69532. },
  69533. $signature: 3
  69534. };
  69535. K.closure201.prototype = {
  69536. call$1: function($arguments) {
  69537. var result,
  69538. t1 = J.getInterceptor$asx($arguments);
  69539. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  69540. result = K._functionString0("grayscale", t1.take$1($arguments, 1));
  69541. N.warn0(string$.Passinng + result.toString$0(0), false);
  69542. return result;
  69543. }
  69544. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  69545. },
  69546. $signature: 3
  69547. };
  69548. K.closure202.prototype = {
  69549. call$1: function($arguments) {
  69550. var result, color,
  69551. argument = J.$index$asx($arguments, 0);
  69552. if (argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0())) {
  69553. result = K._functionString0("alpha", $arguments);
  69554. N.warn0(string$.Using_ + result.toString$0(0), false);
  69555. return result;
  69556. }
  69557. color = argument.assertColor$1("color");
  69558. return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
  69559. },
  69560. $signature: 3
  69561. };
  69562. K.closure203.prototype = {
  69563. call$1: function($arguments) {
  69564. var result,
  69565. t1 = J.getInterceptor$asx($arguments);
  69566. if (C.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new K._closure26())) {
  69567. result = K._functionString0("alpha", $arguments);
  69568. N.warn0(string$.Using_ + result.toString$0(0), false);
  69569. return result;
  69570. }
  69571. throw H.wrapException(E.SassScriptException$0("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed."));
  69572. },
  69573. $signature: 10
  69574. };
  69575. K._closure26.prototype = {
  69576. call$1: function(argument) {
  69577. return argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0());
  69578. }
  69579. };
  69580. K.closure204.prototype = {
  69581. call$1: function($arguments) {
  69582. var result, color,
  69583. t1 = J.getInterceptor$asx($arguments);
  69584. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  69585. result = K._functionString0("opacity", $arguments);
  69586. N.warn0(string$.Passinno + result.toString$0(0), false);
  69587. return result;
  69588. }
  69589. color = t1.$index($arguments, 0).assertColor$1("color");
  69590. return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
  69591. },
  69592. $signature: 3
  69593. };
  69594. K.closure187.prototype = {
  69595. call$1: function($arguments) {
  69596. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$red();
  69597. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  69598. },
  69599. $signature: 5
  69600. };
  69601. K.closure186.prototype = {
  69602. call$1: function($arguments) {
  69603. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$green();
  69604. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  69605. },
  69606. $signature: 5
  69607. };
  69608. K.closure185.prototype = {
  69609. call$1: function($arguments) {
  69610. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$blue();
  69611. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  69612. },
  69613. $signature: 5
  69614. };
  69615. K.closure184.prototype = {
  69616. call$1: function($arguments) {
  69617. var t1 = J.getInterceptor$asx($arguments);
  69618. return K._mixColors0(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
  69619. },
  69620. $signature: 22
  69621. };
  69622. K.closure183.prototype = {
  69623. call$1: function($arguments) {
  69624. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$hue(),
  69625. t2 = H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String);
  69626. t2 = P.List_List$unmodifiable(t2, type$.legacy_String);
  69627. return new T.SassNumber0(t1, t2, C.List_empty, null);
  69628. },
  69629. $signature: 5
  69630. };
  69631. K.closure182.prototype = {
  69632. call$1: function($arguments) {
  69633. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$saturation(),
  69634. t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_legacy_String);
  69635. t2 = P.List_List$unmodifiable(t2, type$.legacy_String);
  69636. return new T.SassNumber0(t1, t2, C.List_empty, null);
  69637. },
  69638. $signature: 5
  69639. };
  69640. K.closure181.prototype = {
  69641. call$1: function($arguments) {
  69642. var t1 = J.get$first$ax($arguments).assertColor$1("color").get$lightness(),
  69643. t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_legacy_String);
  69644. t2 = P.List_List$unmodifiable(t2, type$.legacy_String);
  69645. return new T.SassNumber0(t1, t2, C.List_empty, null);
  69646. },
  69647. $signature: 5
  69648. };
  69649. K.closure180.prototype = {
  69650. call$1: function($arguments) {
  69651. var color = J.$index$asx($arguments, 0).assertColor$1("color");
  69652. return color.changeHsl$1$hue(color.get$hue() + 180);
  69653. },
  69654. $signature: 22
  69655. };
  69656. K.closure178.prototype = {
  69657. call$1: function($arguments) {
  69658. var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4, t5, _null = null,
  69659. t1 = J.getInterceptor$asx($arguments),
  69660. color = t1.$index($arguments, 0).assertColor$1("color"),
  69661. argumentList = type$.legacy_SassArgumentList_2._as(t1.$index($arguments, 1));
  69662. if (argumentList._list1$_contents.length !== 0)
  69663. throw H.wrapException(E.SassScriptException$0(string$.Only_op));
  69664. argumentList._argument_list$_wereKeywordsAccessed = true;
  69665. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.legacy_String, type$.legacy_Value_2);
  69666. t1 = new K.closure_getInRange2(keywords);
  69667. t2 = t1.call$3("red", -255, 255);
  69668. red = t2 == null ? _null : T.fuzzyRound0(t2);
  69669. t2 = t1.call$3("green", -255, 255);
  69670. green = t2 == null ? _null : T.fuzzyRound0(t2);
  69671. t2 = t1.call$3("blue", -255, 255);
  69672. blue = t2 == null ? _null : T.fuzzyRound0(t2);
  69673. t2 = keywords.remove$1(0, "hue");
  69674. t2 = t2 == null ? _null : t2.assertNumber$1("hue");
  69675. hue = t2 == null ? _null : t2.value;
  69676. saturation = t1.call$3("saturation", -100, 100);
  69677. lightness = t1.call$3("lightness", -100, 100);
  69678. alpha = t1.call$3("alpha", -1, 1);
  69679. if (keywords.get$isNotEmpty(keywords))
  69680. throw H.wrapException(E.SassScriptException$0("No " + B.pluralize0("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence0(keywords.get$keys().map$1$1(0, new K._closure23(), type$.legacy_Object), "or")) + "."));
  69681. t1 = red == null;
  69682. hasRgb = !t1 || green != null || blue != null;
  69683. t2 = hue == null;
  69684. hasHsl = !t2 || saturation != null || lightness != null;
  69685. if (hasRgb) {
  69686. if (hasHsl)
  69687. throw H.wrapException(E.SassScriptException$0(string$.RGB_pa));
  69688. t2 = color.get$red();
  69689. t2 = H._asIntS(C.JSInt_methods.clamp$2(t2 + (t1 ? 0 : red), 0, 255));
  69690. t3 = color.get$green();
  69691. t1 = H._asIntS(C.JSInt_methods.clamp$2(t3 + (green == null ? 0 : green), 0, 255));
  69692. t3 = color.get$blue();
  69693. t3 = H._asIntS(C.JSInt_methods.clamp$2(t3 + (blue == null ? 0 : blue), 0, 255));
  69694. t4 = alpha == null ? 0 : alpha;
  69695. return color.changeRgb$4$alpha$blue$green$red(C.JSNumber_methods.clamp$2(color.alpha + t4, 0, 1), t3, t1, t2);
  69696. } else if (hasHsl) {
  69697. t1 = color.get$hue();
  69698. t2 = t2 ? 0 : hue;
  69699. t3 = color.get$saturation();
  69700. t3 = C.JSNumber_methods.clamp$2(t3 + (saturation == null ? 0 : saturation), 0, 100);
  69701. t4 = color.get$lightness();
  69702. t4 = C.JSNumber_methods.clamp$2(t4 + (lightness == null ? 0 : lightness), 0, 100);
  69703. t5 = alpha == null ? 0 : alpha;
  69704. return color.changeHsl$4$alpha$hue$lightness$saturation(C.JSNumber_methods.clamp$2(color.alpha + t5, 0, 1), t1 + t2, t4, t3);
  69705. } else if (alpha != null)
  69706. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + alpha, 0, 1));
  69707. else
  69708. return color;
  69709. },
  69710. $signature: 22
  69711. };
  69712. K.closure_getInRange2.prototype = {
  69713. call$3: function($name, min, max) {
  69714. var t1 = this.keywords.remove$1(0, $name);
  69715. t1 = t1 == null ? null : t1.assertNumber$1($name);
  69716. return t1 == null ? null : t1.valueInRange$3(min, max, $name);
  69717. }
  69718. };
  69719. K._closure23.prototype = {
  69720. call$1: function($name) {
  69721. return "$" + H.S($name);
  69722. }
  69723. };
  69724. K.closure177.prototype = {
  69725. call$1: function($arguments) {
  69726. var keywords, t2, red, green, blue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4,
  69727. t1 = J.getInterceptor$asx($arguments),
  69728. color = t1.$index($arguments, 0).assertColor$1("color"),
  69729. argumentList = type$.legacy_SassArgumentList_2._as(t1.$index($arguments, 1));
  69730. if (argumentList._list1$_contents.length !== 0)
  69731. throw H.wrapException(E.SassScriptException$0(string$.Only_op));
  69732. argumentList._argument_list$_wereKeywordsAccessed = true;
  69733. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.legacy_String, type$.legacy_Value_2);
  69734. t1 = new K.closure_getScale0(keywords);
  69735. t2 = new K.closure_scaleValue0();
  69736. red = t1.call$1("red");
  69737. green = t1.call$1("green");
  69738. blue = t1.call$1("blue");
  69739. saturation = t1.call$1("saturation");
  69740. lightness = t1.call$1("lightness");
  69741. alpha = t1.call$1("alpha");
  69742. if (keywords.get$isNotEmpty(keywords))
  69743. throw H.wrapException(E.SassScriptException$0("No " + B.pluralize0("argument", keywords.get$length(keywords), null) + " named " + H.S(B.toSentence0(keywords.get$keys().map$1$1(0, new K._closure22(), type$.legacy_Object), "or")) + "."));
  69744. hasRgb = red != null || green != null || blue != null;
  69745. hasHsl = saturation != null || lightness != null;
  69746. if (hasRgb) {
  69747. if (hasHsl)
  69748. throw H.wrapException(E.SassScriptException$0(string$.RGB_pa));
  69749. t1 = T.fuzzyRound0(t2.call$3(color.get$red(), red, 255));
  69750. t3 = T.fuzzyRound0(t2.call$3(color.get$green(), green, 255));
  69751. t4 = T.fuzzyRound0(t2.call$3(color.get$blue(), blue, 255));
  69752. return color.changeRgb$4$alpha$blue$green$red(t2.call$3(color.alpha, alpha, 1), t4, t3, t1);
  69753. } else if (hasHsl) {
  69754. t1 = t2.call$3(color.get$saturation(), saturation, 100);
  69755. t3 = t2.call$3(color.get$lightness(), lightness, 100);
  69756. return color.changeHsl$3$alpha$lightness$saturation(t2.call$3(color.alpha, alpha, 1), t3, t1);
  69757. } else if (alpha != null)
  69758. return color.changeAlpha$1(t2.call$3(color.alpha, alpha, 1));
  69759. else
  69760. return color;
  69761. },
  69762. $signature: 22
  69763. };
  69764. K.closure_getScale0.prototype = {
  69765. call$1: function($name) {
  69766. var number,
  69767. value = this.keywords.remove$1(0, $name);
  69768. if (value == null)
  69769. return null;
  69770. number = value.assertNumber$1($name);
  69771. number.assertUnit$2("%", $name);
  69772. return number.valueInRange$3(-100, 100, $name) / 100;
  69773. }
  69774. };
  69775. K.closure_scaleValue0.prototype = {
  69776. call$3: function(current, scale, max) {
  69777. if (scale == null)
  69778. return current;
  69779. return current + (scale > 0 ? max - current : current) * scale;
  69780. }
  69781. };
  69782. K._closure22.prototype = {
  69783. call$1: function($name) {
  69784. return "$" + H.S($name);
  69785. }
  69786. };
  69787. K.closure176.prototype = {
  69788. call$1: function($arguments) {
  69789. var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, _null = null,
  69790. t1 = J.getInterceptor$asx($arguments),
  69791. color = t1.$index($arguments, 0).assertColor$1("color"),
  69792. argumentList = type$.legacy_SassArgumentList_2._as(t1.$index($arguments, 1));
  69793. if (argumentList._list1$_contents.length !== 0)
  69794. throw H.wrapException(E.SassScriptException$0(string$.Only_op));
  69795. argumentList._argument_list$_wereKeywordsAccessed = true;
  69796. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.legacy_String, type$.legacy_Value_2);
  69797. t1 = new K.closure_getInRange1(keywords);
  69798. t2 = t1.call$3("red", 0, 255);
  69799. red = t2 == null ? _null : T.fuzzyRound0(t2);
  69800. t2 = t1.call$3("green", 0, 255);
  69801. green = t2 == null ? _null : T.fuzzyRound0(t2);
  69802. t2 = t1.call$3("blue", 0, 255);
  69803. blue = t2 == null ? _null : T.fuzzyRound0(t2);
  69804. t2 = keywords.remove$1(0, "hue");
  69805. t2 = t2 == null ? _null : t2.assertNumber$1("hue");
  69806. hue = t2 == null ? _null : t2.value;
  69807. saturation = t1.call$3("saturation", 0, 100);
  69808. lightness = t1.call$3("lightness", 0, 100);
  69809. alpha = t1.call$3("alpha", 0, 1);
  69810. if (keywords.get$isNotEmpty(keywords))
  69811. throw H.wrapException(E.SassScriptException$0("No " + B.pluralize0("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence0(keywords.get$keys().map$1$1(0, new K._closure21(), type$.legacy_Object), "or")) + "."));
  69812. hasRgb = red != null || green != null || blue != null;
  69813. hasHsl = hue != null || saturation != null || lightness != null;
  69814. if (hasRgb) {
  69815. if (hasHsl)
  69816. throw H.wrapException(E.SassScriptException$0(string$.RGB_pa));
  69817. return color.changeRgb$4$alpha$blue$green$red(alpha, blue, green, red);
  69818. } else if (hasHsl)
  69819. return color.changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation);
  69820. else if (alpha != null)
  69821. return color.changeAlpha$1(alpha);
  69822. else
  69823. return color;
  69824. },
  69825. $signature: 22
  69826. };
  69827. K.closure_getInRange1.prototype = {
  69828. call$3: function($name, min, max) {
  69829. var t1 = this.keywords.remove$1(0, $name);
  69830. t1 = t1 == null ? null : t1.assertNumber$1($name);
  69831. return t1 == null ? null : t1.valueInRange$3(min, max, $name);
  69832. }
  69833. };
  69834. K._closure21.prototype = {
  69835. call$1: function($name) {
  69836. return "$" + H.S($name);
  69837. }
  69838. };
  69839. K.closure179.prototype = {
  69840. call$1: function($arguments) {
  69841. var color = J.$index$asx($arguments, 0).assertColor$1("color"),
  69842. t1 = new K.closure_hexString0();
  69843. return new D.SassString0("#" + H.S(t1.call$1(T.fuzzyRound0(color.alpha * 255))) + H.S(t1.call$1(color.get$red())) + H.S(t1.call$1(color.get$green())) + H.S(t1.call$1(color.get$blue())), false);
  69844. },
  69845. $signature: 10
  69846. };
  69847. K.closure_hexString0.prototype = {
  69848. call$1: function(component) {
  69849. return C.JSString_methods.padLeft$2(J.toRadixString$1$n(component, 16), 2, "0").toUpperCase();
  69850. },
  69851. $signature: 55
  69852. };
  69853. K._functionString_closure0.prototype = {
  69854. call$1: function(argument) {
  69855. argument.toString;
  69856. return N.serializeValue(argument, false, true);
  69857. }
  69858. };
  69859. K._removedColorFunction_closure0.prototype = {
  69860. call$1: function($arguments) {
  69861. var t1 = this.name,
  69862. t2 = J.getInterceptor$asx($arguments),
  69863. t3 = "The function " + t1 + string$.x28__isn + H.S(t2.$index($arguments, 0)) + ", $" + this.argument + ": ";
  69864. throw H.wrapException(E.SassScriptException$0(t3 + (this.negative ? "-" : "") + H.S(t2.$index($arguments, 1)) + string$.x29__Mor + t1));
  69865. },
  69866. $signature: 45
  69867. };
  69868. K._parseChannels_closure0.prototype = {
  69869. call$1: function(value) {
  69870. return value.get$isVar();
  69871. }
  69872. };
  69873. K._NodeSassColor.prototype = {};
  69874. K.closure235.prototype = {
  69875. call$6: function(thisArg, redOrArgb, green, blue, alpha, dartValue) {
  69876. var red, t1, t2, t3, t4;
  69877. if (dartValue != null) {
  69878. J.set$dartValue$x(thisArg, dartValue);
  69879. return;
  69880. }
  69881. if (green == null) {
  69882. H._asIntS(redOrArgb);
  69883. alpha = C.JSInt_methods._shrOtherPositive$1(redOrArgb, 24) / 255;
  69884. red = C.JSInt_methods.$mod(C.JSInt_methods._shrOtherPositive$1(redOrArgb, 16), 256);
  69885. green = C.JSInt_methods.$mod(C.JSInt_methods._shrOtherPositive$1(redOrArgb, 8), 256);
  69886. blue = C.JSInt_methods.$mod(redOrArgb, 256);
  69887. } else
  69888. red = redOrArgb;
  69889. t1 = C.JSNumber_methods.round$0(J.clamp$2$n(red, 0, 255));
  69890. t2 = C.JSNumber_methods.round$0(C.JSNumber_methods.clamp$2(green, 0, 255));
  69891. t3 = C.JSNumber_methods.round$0(J.clamp$2$n(blue, 0, 255));
  69892. t4 = alpha == null ? null : C.JSNumber_methods.clamp$2(alpha, 0, 1);
  69893. J.set$dartValue$x(thisArg, K.SassColor$rgb0(t1, t2, t3, t4 == null ? 1 : t4, null));
  69894. },
  69895. call$2: function(thisArg, redOrArgb) {
  69896. return this.call$6(thisArg, redOrArgb, null, null, null, null);
  69897. },
  69898. call$3: function(thisArg, redOrArgb, green) {
  69899. return this.call$6(thisArg, redOrArgb, green, null, null, null);
  69900. },
  69901. call$4: function(thisArg, redOrArgb, green, blue) {
  69902. return this.call$6(thisArg, redOrArgb, green, blue, null, null);
  69903. },
  69904. call$5: function(thisArg, redOrArgb, green, blue, alpha) {
  69905. return this.call$6(thisArg, redOrArgb, green, blue, alpha, null);
  69906. },
  69907. "call*": "call$6",
  69908. $requiredArgCount: 2,
  69909. $defaultValues: function() {
  69910. return [null, null, null, null];
  69911. }
  69912. };
  69913. K.closure236.prototype = {
  69914. call$1: function(thisArg) {
  69915. return J.get$dartValue$x(thisArg).get$red();
  69916. }
  69917. };
  69918. K.closure237.prototype = {
  69919. call$1: function(thisArg) {
  69920. return J.get$dartValue$x(thisArg).get$green();
  69921. }
  69922. };
  69923. K.closure238.prototype = {
  69924. call$1: function(thisArg) {
  69925. return J.get$dartValue$x(thisArg).get$blue();
  69926. }
  69927. };
  69928. K.closure239.prototype = {
  69929. call$1: function(thisArg) {
  69930. return J.get$dartValue$x(thisArg).alpha;
  69931. }
  69932. };
  69933. K.closure240.prototype = {
  69934. call$2: function(thisArg, value) {
  69935. var t1 = J.getInterceptor$x(thisArg);
  69936. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$red(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  69937. },
  69938. "call*": "call$2",
  69939. $requiredArgCount: 2
  69940. };
  69941. K.closure241.prototype = {
  69942. call$2: function(thisArg, value) {
  69943. var t1 = J.getInterceptor$x(thisArg);
  69944. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$green(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  69945. },
  69946. "call*": "call$2",
  69947. $requiredArgCount: 2
  69948. };
  69949. K.closure242.prototype = {
  69950. call$2: function(thisArg, value) {
  69951. var t1 = J.getInterceptor$x(thisArg);
  69952. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$blue(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  69953. },
  69954. "call*": "call$2",
  69955. $requiredArgCount: 2
  69956. };
  69957. K.closure243.prototype = {
  69958. call$2: function(thisArg, value) {
  69959. var t1 = J.getInterceptor$x(thisArg);
  69960. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$alpha(J.clamp$2$n(value, 0, 1)));
  69961. },
  69962. "call*": "call$2",
  69963. $requiredArgCount: 2
  69964. };
  69965. K.closure244.prototype = {
  69966. call$1: function(thisArg) {
  69967. return J.toString$0$(J.get$dartValue$x(thisArg));
  69968. }
  69969. };
  69970. K.SassColor0.prototype = {
  69971. get$red: function() {
  69972. if (this._color1$_red == null)
  69973. this._color1$_hslToRgb$0();
  69974. return this._color1$_red;
  69975. },
  69976. get$green: function() {
  69977. if (this._color1$_green == null)
  69978. this._color1$_hslToRgb$0();
  69979. return this._color1$_green;
  69980. },
  69981. get$blue: function() {
  69982. if (this._color1$_blue == null)
  69983. this._color1$_hslToRgb$0();
  69984. return this._color1$_blue;
  69985. },
  69986. get$hue: function() {
  69987. if (this._color1$_hue == null)
  69988. this._color1$_rgbToHsl$0();
  69989. return this._color1$_hue;
  69990. },
  69991. get$saturation: function() {
  69992. if (this._color1$_saturation == null)
  69993. this._color1$_rgbToHsl$0();
  69994. return this._color1$_saturation;
  69995. },
  69996. get$lightness: function() {
  69997. if (this._color1$_lightness == null)
  69998. this._color1$_rgbToHsl$0();
  69999. return this._color1$_lightness;
  70000. },
  70001. get$original: function() {
  70002. var t1 = this.originalSpan;
  70003. return t1 == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  70004. },
  70005. accept$1$1: function(visitor) {
  70006. return visitor.visitColor$1(this);
  70007. },
  70008. accept$1: function(visitor) {
  70009. return this.accept$1$1(visitor, type$.dynamic);
  70010. },
  70011. assertColor$1: function($name) {
  70012. return this;
  70013. },
  70014. changeRgb$4$alpha$blue$green$red: function(alpha, blue, green, red) {
  70015. var _this = this,
  70016. t1 = red == null ? _this.get$red() : red,
  70017. t2 = green == null ? _this.get$green() : green,
  70018. t3 = blue == null ? _this.get$blue() : blue;
  70019. return K.SassColor$rgb0(t1, t2, t3, alpha == null ? _this.alpha : alpha, null);
  70020. },
  70021. changeRgb$3$blue$green$red: function(blue, green, red) {
  70022. return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
  70023. },
  70024. changeRgb$1$alpha: function(alpha) {
  70025. return this.changeRgb$4$alpha$blue$green$red(alpha, null, null, null);
  70026. },
  70027. changeRgb$1$blue: function(blue) {
  70028. return this.changeRgb$4$alpha$blue$green$red(null, blue, null, null);
  70029. },
  70030. changeRgb$1$green: function(green) {
  70031. return this.changeRgb$4$alpha$blue$green$red(null, null, green, null);
  70032. },
  70033. changeRgb$1$red: function(red) {
  70034. return this.changeRgb$4$alpha$blue$green$red(null, null, null, red);
  70035. },
  70036. changeHsl$4$alpha$hue$lightness$saturation: function(alpha, hue, lightness, saturation) {
  70037. var _this = this,
  70038. t1 = hue == null ? _this.get$hue() : hue,
  70039. t2 = saturation == null ? _this.get$saturation() : saturation,
  70040. t3 = lightness == null ? _this.get$lightness() : lightness;
  70041. return K.SassColor$hsl0(t1, t2, t3, alpha == null ? _this.alpha : alpha);
  70042. },
  70043. changeHsl$3$alpha$lightness$saturation: function(alpha, lightness, saturation) {
  70044. return this.changeHsl$4$alpha$hue$lightness$saturation(alpha, null, lightness, saturation);
  70045. },
  70046. changeHsl$1$saturation: function(saturation) {
  70047. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
  70048. },
  70049. changeHsl$1$lightness: function(lightness) {
  70050. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
  70051. },
  70052. changeHsl$1$hue: function(hue) {
  70053. return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
  70054. },
  70055. changeAlpha$1: function(alpha) {
  70056. var _this = this;
  70057. return new K.SassColor0(_this._color1$_red, _this._color1$_green, _this._color1$_blue, _this._color1$_hue, _this._color1$_saturation, _this._color1$_lightness, T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), null);
  70058. },
  70059. plus$1: function(other) {
  70060. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  70061. return this.super$Value$plus0(other);
  70062. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + H.S(other) + '".'));
  70063. },
  70064. minus$1: function(other) {
  70065. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  70066. return this.super$Value$minus0(other);
  70067. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + H.S(other) + '".'));
  70068. },
  70069. dividedBy$1: function(other) {
  70070. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  70071. return this.super$Value$dividedBy0(other);
  70072. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " / " + H.S(other) + '".'));
  70073. },
  70074. modulo$1: function(other) {
  70075. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  70076. },
  70077. $eq: function(_, other) {
  70078. var _this = this;
  70079. if (other == null)
  70080. return false;
  70081. return other instanceof K.SassColor0 && other.get$red() == _this.get$red() && other.get$green() == _this.get$green() && other.get$blue() == _this.get$blue() && other.alpha === _this.alpha;
  70082. },
  70083. get$hashCode: function(_) {
  70084. var _this = this;
  70085. return J.get$hashCode$(_this.get$red()) ^ J.get$hashCode$(_this.get$green()) ^ J.get$hashCode$(_this.get$blue()) ^ C.JSNumber_methods.get$hashCode(_this.alpha);
  70086. },
  70087. _color1$_rgbToHsl$0: function() {
  70088. var t2, t3, _this = this,
  70089. scaledRed = _this.get$red() / 255,
  70090. scaledGreen = _this.get$green() / 255,
  70091. scaledBlue = _this.get$blue() / 255,
  70092. max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
  70093. min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
  70094. delta = max - min,
  70095. t1 = max === min;
  70096. if (t1)
  70097. _this._color1$_hue = 0;
  70098. else if (max === scaledRed)
  70099. _this._color1$_hue = C.JSDouble_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
  70100. else if (max === scaledGreen)
  70101. _this._color1$_hue = C.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
  70102. else if (max === scaledBlue)
  70103. _this._color1$_hue = C.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
  70104. t2 = max + min;
  70105. t3 = 50 * t2;
  70106. _this._color1$_lightness = t3;
  70107. if (t1)
  70108. _this._color1$_saturation = 0;
  70109. else {
  70110. t1 = 100 * delta;
  70111. if (t3 < 50)
  70112. _this._color1$_saturation = t1 / t2;
  70113. else
  70114. _this._color1$_saturation = t1 / (2 - max - min);
  70115. }
  70116. },
  70117. _color1$_hslToRgb$0: function() {
  70118. var _this = this,
  70119. scaledHue = _this.get$hue() / 360,
  70120. scaledSaturation = _this.get$saturation() / 100,
  70121. scaledLightness = _this.get$lightness() / 100,
  70122. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  70123. m1 = scaledLightness * 2 - m2;
  70124. _this._color1$_red = _this._color1$_hueToRgb$3(m1, m2, scaledHue + 0.3333333333333333);
  70125. _this._color1$_green = _this._color1$_hueToRgb$3(m1, m2, scaledHue);
  70126. _this._color1$_blue = _this._color1$_hueToRgb$3(m1, m2, scaledHue - 0.3333333333333333);
  70127. },
  70128. _color1$_hueToRgb$3: function(m1, m2, hue) {
  70129. var result;
  70130. if (hue < 0)
  70131. ++hue;
  70132. if (hue > 1)
  70133. --hue;
  70134. if (hue < 0.16666666666666666)
  70135. result = m1 + (m2 - m1) * hue * 6;
  70136. else if (hue < 0.5)
  70137. result = m2;
  70138. else
  70139. result = hue < 0.6666666666666666 ? m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6 : m1;
  70140. return T.fuzzyRound0(result * 255);
  70141. }
  70142. };
  70143. R.ModifiableCssComment0.prototype = {
  70144. accept$1$1: function(visitor) {
  70145. return visitor.visitCssComment$1(this);
  70146. },
  70147. accept$1: function(visitor) {
  70148. return this.accept$1$1(visitor, type$.dynamic);
  70149. },
  70150. $isCssComment0: 1,
  70151. get$span: function() {
  70152. return this.span;
  70153. }
  70154. };
  70155. U._compileStylesheet_closure1.prototype = {
  70156. call$1: function(url) {
  70157. var t1, t2, _null = null;
  70158. if (url === "")
  70159. t1 = P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null).get$_text();
  70160. else {
  70161. t1 = P.Uri_parse(url);
  70162. t2 = this.importCache._import_cache$_resultsCache.$index(0, t1);
  70163. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  70164. t1 = (t2 == null ? t1 : t2).toString$0(0);
  70165. }
  70166. return t1;
  70167. }
  70168. };
  70169. S.ComplexSelector0.prototype = {
  70170. get$minSpecificity: function() {
  70171. if (this._complex0$_minSpecificity == null)
  70172. this._complex0$_computeSpecificity$0();
  70173. return this._complex0$_minSpecificity;
  70174. },
  70175. get$maxSpecificity: function() {
  70176. if (this._complex0$_maxSpecificity == null)
  70177. this._complex0$_computeSpecificity$0();
  70178. return this._complex0$_maxSpecificity;
  70179. },
  70180. get$isInvisible: function() {
  70181. var t1 = this._complex0$_isInvisible;
  70182. if (t1 != null)
  70183. return t1;
  70184. return this._complex0$_isInvisible = C.JSArray_methods.any$1(this.components, new S.ComplexSelector_isInvisible_closure0());
  70185. },
  70186. accept$1$1: function(visitor) {
  70187. return visitor.visitComplexSelector$1(this);
  70188. },
  70189. accept$1: function(visitor) {
  70190. return this.accept$1$1(visitor, type$.dynamic);
  70191. },
  70192. _complex0$_computeSpecificity$0: function() {
  70193. var t1, t2, component, t3, _this = this,
  70194. _i = _this._complex0$_maxSpecificity = _this._complex0$_minSpecificity = 0;
  70195. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  70196. component = t1[_i];
  70197. if (component instanceof X.CompoundSelector0) {
  70198. t3 = _this._complex0$_minSpecificity;
  70199. if (component._compound0$_minSpecificity == null)
  70200. component._compound0$_computeSpecificity$0();
  70201. _this._complex0$_minSpecificity = t3 + component._compound0$_minSpecificity;
  70202. t3 = _this._complex0$_maxSpecificity;
  70203. if (component._compound0$_maxSpecificity == null)
  70204. component._compound0$_computeSpecificity$0();
  70205. _this._complex0$_maxSpecificity = t3 + component._compound0$_maxSpecificity;
  70206. }
  70207. }
  70208. },
  70209. get$hashCode: function(_) {
  70210. return C.C_ListEquality.hash$1(this.components);
  70211. },
  70212. $eq: function(_, other) {
  70213. if (other == null)
  70214. return false;
  70215. return other instanceof S.ComplexSelector0 && C.C_ListEquality.equals$2(this.components, other.components);
  70216. }
  70217. };
  70218. S.ComplexSelector_isInvisible_closure0.prototype = {
  70219. call$1: function(component) {
  70220. return component instanceof X.CompoundSelector0 && component.get$isInvisible();
  70221. }
  70222. };
  70223. S.ComplexSelectorComponent0.prototype = {};
  70224. S.Combinator0.prototype = {
  70225. toString$0: function(_) {
  70226. return this._complex0$_text;
  70227. },
  70228. $isComplexSelectorComponent0: 1
  70229. };
  70230. X.CompoundSelector0.prototype = {
  70231. get$isInvisible: function() {
  70232. return C.JSArray_methods.any$1(this.components, new X.CompoundSelector_isInvisible_closure0());
  70233. },
  70234. accept$1$1: function(visitor) {
  70235. return visitor.visitCompoundSelector$1(this);
  70236. },
  70237. accept$1: function(visitor) {
  70238. return this.accept$1$1(visitor, type$.dynamic);
  70239. },
  70240. _compound0$_computeSpecificity$0: function() {
  70241. var t1, t2, simple, _this = this,
  70242. _i = _this._compound0$_maxSpecificity = _this._compound0$_minSpecificity = 0;
  70243. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  70244. simple = t1[_i];
  70245. _this._compound0$_minSpecificity = _this._compound0$_minSpecificity + simple.get$minSpecificity();
  70246. _this._compound0$_maxSpecificity = _this._compound0$_maxSpecificity + simple.get$maxSpecificity();
  70247. }
  70248. },
  70249. get$hashCode: function(_) {
  70250. return C.C_ListEquality.hash$1(this.components);
  70251. },
  70252. $eq: function(_, other) {
  70253. if (other == null)
  70254. return false;
  70255. return other instanceof X.CompoundSelector0 && C.C_ListEquality.equals$2(this.components, other.components);
  70256. },
  70257. $isComplexSelectorComponent0: 1
  70258. };
  70259. X.CompoundSelector_isInvisible_closure0.prototype = {
  70260. call$1: function(component) {
  70261. return component.get$isInvisible();
  70262. }
  70263. };
  70264. A.Configuration0.prototype = {
  70265. throughForward$1: function($forward) {
  70266. var t1, t2,
  70267. newValues = this._configuration$_values;
  70268. if (newValues.get$isEmpty(newValues))
  70269. return C.Configuration_Map_empty_null_true0;
  70270. t1 = $forward.prefix;
  70271. if (t1 != null)
  70272. newValues = new R.UnprefixedMapView0(newValues, t1, type$.UnprefixedMapView_legacy_ConfiguredValue_2);
  70273. t1 = $forward.shownVariables;
  70274. if (t1 != null)
  70275. newValues = K.LimitedMapView$safelist0(newValues, t1, type$.legacy_String, type$.legacy_ConfiguredValue_2);
  70276. else {
  70277. t1 = $forward.hiddenVariables;
  70278. if (t1 == null)
  70279. t2 = null;
  70280. else {
  70281. t2 = t1._base;
  70282. t2 = t2.get$isNotEmpty(t2);
  70283. }
  70284. if (t2 === true)
  70285. newValues = K.LimitedMapView$blocklist0(newValues, t1, type$.legacy_String, type$.legacy_ConfiguredValue_2);
  70286. }
  70287. return this.isImplicit ? new A.Configuration0(newValues, null, true) : new A.Configuration0(newValues, this.nodeWithSpan, false);
  70288. }
  70289. };
  70290. Z.ConfiguredValue0.prototype = {};
  70291. Z.ConfiguredVariable0.prototype = {
  70292. toString$0: function(_) {
  70293. var t1 = "$" + this.name + ": " + H.S(this.expression);
  70294. return t1 + (this.isGuarded ? " !default" : "");
  70295. },
  70296. $isAstNode0: 1,
  70297. get$span: function() {
  70298. return this.span;
  70299. }
  70300. };
  70301. Y.ContentBlock0.prototype = {
  70302. accept$1$1: function(visitor) {
  70303. return visitor.visitContentBlock$1(this);
  70304. },
  70305. accept$1: function(visitor) {
  70306. return this.accept$1$1(visitor, type$.dynamic);
  70307. },
  70308. toString$0: function(_) {
  70309. var t2,
  70310. t1 = this.$arguments;
  70311. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  70312. t2 = this.children;
  70313. return t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  70314. }
  70315. };
  70316. Q.ContentRule0.prototype = {
  70317. accept$1$1: function(visitor) {
  70318. return visitor.visitContentRule$1(this);
  70319. },
  70320. accept$1: function(visitor) {
  70321. return this.accept$1$1(visitor, type$.dynamic);
  70322. },
  70323. toString$0: function(_) {
  70324. var t1 = this.$arguments;
  70325. return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  70326. },
  70327. $isAstNode0: 1,
  70328. $isStatement0: 1,
  70329. get$span: function() {
  70330. return this.span;
  70331. }
  70332. };
  70333. Q.closure209.prototype = {
  70334. call$1: function($function) {
  70335. return $function.name;
  70336. }
  70337. };
  70338. Q.CssParser0.prototype = {
  70339. get$plainCss: function() {
  70340. return true;
  70341. },
  70342. silentComment$0: function() {
  70343. var t1 = this.scanner,
  70344. t2 = t1._string_scanner$_position;
  70345. this.super$Parser$silentComment0();
  70346. this.error$2(string$.Silent, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  70347. },
  70348. atRule$2$root: function(child, root) {
  70349. var $name, urlStart, next, url, urlSpan, queries, t2, t3, t4, t5, _this = this,
  70350. t1 = _this.scanner,
  70351. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  70352. t1.expectChar$1(64);
  70353. $name = _this.interpolatedIdentifier$0();
  70354. _this.whitespace$0();
  70355. switch ($name.get$asPlain()) {
  70356. case "at-root":
  70357. case "content":
  70358. case "debug":
  70359. case "each":
  70360. case "error":
  70361. case "extend":
  70362. case "for":
  70363. case "function":
  70364. case "if":
  70365. case "include":
  70366. case "mixin":
  70367. case "return":
  70368. case "warn":
  70369. case "while":
  70370. _this.almostAnyValue$0();
  70371. _this.error$2("This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
  70372. break;
  70373. case "charset":
  70374. _this.string$0();
  70375. if (!root)
  70376. _this.error$2("This at-rule is not allowed here.", t1.spanFrom$1(start));
  70377. return null;
  70378. case "import":
  70379. urlStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
  70380. next = t1.peekChar$0();
  70381. url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new D.StringExpression0(_this.interpolatedString$0().asInterpolation$1$static(true), false);
  70382. urlSpan = t1.spanFrom$1(urlStart);
  70383. _this.whitespace$0();
  70384. queries = _this.tryImportQueries$0();
  70385. _this.expectStatementSeparator$1("@import rule");
  70386. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([url], type$.JSArray_legacy_Object), urlSpan);
  70387. t3 = t1.spanFrom$1(urlStart);
  70388. t4 = queries == null;
  70389. t5 = t4 ? null : queries.item1;
  70390. t2 = H.setRuntimeTypeInfo([new Q.StaticImport0(t2, t5, t4 ? null : queries.item2, t3)], type$.JSArray_legacy_Import_2);
  70391. t1 = t1.spanFrom$1(start);
  70392. return new B.ImportRule0(P.List_List$unmodifiable(t2, type$.legacy_Import_2), t1);
  70393. case "media":
  70394. return _this.mediaRule$1(start);
  70395. case "-moz-document":
  70396. return _this.mozDocumentRule$2(start, $name);
  70397. case "supports":
  70398. return _this.supportsRule$1(start);
  70399. default:
  70400. return _this.unknownAtRule$2(start, $name);
  70401. }
  70402. },
  70403. identifierLike$0: function() {
  70404. var t2, $arguments, _this = this,
  70405. t1 = _this.scanner,
  70406. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  70407. identifier = _this.interpolatedIdentifier$0(),
  70408. plain = identifier.get$asPlain(),
  70409. specialFunction = _this.trySpecialFunction$2(plain.toLowerCase(), start);
  70410. if (specialFunction != null)
  70411. return specialFunction;
  70412. t2 = t1._string_scanner$_position;
  70413. if (!t1.scanChar$1(40))
  70414. return new D.StringExpression0(identifier, false);
  70415. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  70416. if (!t1.scanChar$1(41)) {
  70417. do {
  70418. _this.whitespace$0();
  70419. $arguments.push(_this.expression$1$singleEquals(true));
  70420. _this.whitespace$0();
  70421. } while (t1.scanChar$1(44));
  70422. t1.expectChar$1(41);
  70423. }
  70424. if ($.$get$_disallowedFunctionNames0().contains$1(0, plain))
  70425. _this.error$2(string$.This_f, t1.spanFrom$1(start));
  70426. return new F.FunctionExpression0(null, X.Interpolation$0(H.setRuntimeTypeInfo([new D.StringExpression0(identifier, false)], type$.JSArray_legacy_Object), identifier.span), X.ArgumentInvocation$0($arguments, C.Map_empty9, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), null, null), t1.spanFrom$1(start));
  70427. }
  70428. };
  70429. Q.DebugRule0.prototype = {
  70430. accept$1$1: function(visitor) {
  70431. return visitor.visitDebugRule$1(this);
  70432. },
  70433. accept$1: function(visitor) {
  70434. return this.accept$1$1(visitor, type$.dynamic);
  70435. },
  70436. toString$0: function(_) {
  70437. return "@debug " + H.S(this.expression) + ";";
  70438. },
  70439. $isAstNode0: 1,
  70440. $isStatement0: 1,
  70441. get$span: function() {
  70442. return this.span;
  70443. }
  70444. };
  70445. L.ModifiableCssDeclaration0.prototype = {
  70446. accept$1$1: function(visitor) {
  70447. return visitor.visitCssDeclaration$1(this);
  70448. },
  70449. accept$1: function(visitor) {
  70450. return this.accept$1$1(visitor, type$.dynamic);
  70451. },
  70452. get$span: function() {
  70453. return this.span;
  70454. }
  70455. };
  70456. L.Declaration0.prototype = {
  70457. accept$1$1: function(visitor) {
  70458. return visitor.visitDeclaration$1(this);
  70459. },
  70460. accept$1: function(visitor) {
  70461. return this.accept$1$1(visitor, type$.dynamic);
  70462. },
  70463. toString$0: function(_) {
  70464. return H.S(this.name) + ": " + H.S(this.value) + ";";
  70465. },
  70466. get$span: function() {
  70467. return this.span;
  70468. }
  70469. };
  70470. L.SupportsDeclaration0.prototype = {
  70471. toString$0: function(_) {
  70472. return "(" + H.S(this.name) + ": " + H.S(this.value) + ")";
  70473. },
  70474. $isAstNode0: 1,
  70475. get$span: function() {
  70476. return this.span;
  70477. }
  70478. };
  70479. B.DynamicImport0.prototype = {
  70480. toString$0: function(_) {
  70481. return new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([this.url], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain();
  70482. },
  70483. $isImport0: 1,
  70484. $isAstNode0: 1,
  70485. get$span: function() {
  70486. return this.span;
  70487. }
  70488. };
  70489. V.EachRule0.prototype = {
  70490. accept$1$1: function(visitor) {
  70491. return visitor.visitEachRule$1(this);
  70492. },
  70493. accept$1: function(visitor) {
  70494. return this.accept$1$1(visitor, type$.dynamic);
  70495. },
  70496. toString$0: function(_) {
  70497. var t1 = this.variables,
  70498. t2 = this.children;
  70499. return "@each " + new H.MappedListIterable(t1, new V.EachRule_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$1(0, ", ") + " in " + H.S(this.list) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  70500. },
  70501. get$span: function() {
  70502. return this.span;
  70503. }
  70504. };
  70505. V.EachRule_toString_closure0.prototype = {
  70506. call$1: function(variable) {
  70507. return C.JSString_methods.$add("$", variable);
  70508. }
  70509. };
  70510. T.EmptyExtender0.prototype = {
  70511. get$isEmpty: function(_) {
  70512. return true;
  70513. },
  70514. get$simpleSelectors: function() {
  70515. return C.C_EmptyUnmodifiableSet0;
  70516. },
  70517. extensionsWhereTarget$1: function(callback) {
  70518. return C.List_empty13;
  70519. },
  70520. addExtensions$1: function(extenders) {
  70521. throw H.wrapException(P.UnsupportedError$(string$.addExt));
  70522. },
  70523. clone$0: function() {
  70524. return C.Tuple2_EmptyExtender_Map_empty0;
  70525. },
  70526. $isExtender0: 1
  70527. };
  70528. O.Environment0.prototype = {
  70529. closure$0: function() {
  70530. var t5, t6, t7, _this = this,
  70531. t1 = _this._environment0$_forwardedModules,
  70532. t2 = _this._environment0$_forwardedModuleNodes,
  70533. t3 = _this._environment0$_nestedForwardedModules,
  70534. t4 = _this._environment0$_variables;
  70535. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  70536. t5 = _this._environment0$_variableNodes;
  70537. if (t5 == null)
  70538. t5 = null;
  70539. else
  70540. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  70541. t6 = _this._environment0$_functions;
  70542. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  70543. t7 = _this._environment0$_mixins;
  70544. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  70545. return O.Environment$_0(_this._environment0$_modules, _this._environment0$_namespaceNodes, _this._environment0$_globalModules, _this._environment0$_globalModuleNodes, t1, t2, t3, _this._environment0$_allModules, t4, t5, t6, t7, _this._environment0$_content);
  70546. },
  70547. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  70548. var t1, t2, _this = this;
  70549. if (namespace == null) {
  70550. _this._environment0$_globalModules.add$1(0, module);
  70551. _this._environment0$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  70552. _this._environment0$_allModules.push(module);
  70553. for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._environment0$_variables).get$keys()); t1.moveNext$0();) {
  70554. t2 = t1.get$current(t1);
  70555. if (module.get$variables().containsKey$1(t2))
  70556. throw H.wrapException(E.SassScriptException$0(string$.This_ma + H.S(t2) + '".'));
  70557. }
  70558. } else {
  70559. t1 = _this._environment0$_modules;
  70560. if (t1.containsKey$1(namespace))
  70561. throw H.wrapException(E.MultiSpanSassScriptException$0(string$.There_ + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._environment0$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.legacy_FileSpan, type$.legacy_String)));
  70562. t1.$indexSet(0, namespace, module);
  70563. _this._environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  70564. _this._environment0$_allModules.push(module);
  70565. }
  70566. },
  70567. forwardModule$2: function(module, rule) {
  70568. var view, t1, t2, _this = this;
  70569. if (_this._environment0$_forwardedModules == null)
  70570. _this._environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_Callable_2);
  70571. if (_this._environment0$_forwardedModuleNodes == null)
  70572. _this._environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_Callable_2, type$.legacy_AstNode_2);
  70573. view = R.ForwardedModuleView_ifNecessary0(module, rule, type$.legacy_Callable_2);
  70574. for (t1 = _this._environment0$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  70575. t2 = t1._collection$_current;
  70576. _this._environment0$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  70577. _this._environment0$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  70578. _this._environment0$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  70579. }
  70580. _this._environment0$_allModules.push(module);
  70581. _this._environment0$_forwardedModules.add$1(0, view);
  70582. _this._environment0$_forwardedModuleNodes.$indexSet(0, view, rule);
  70583. },
  70584. _environment0$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  70585. var larger, smaller, t1, t2, $name;
  70586. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  70587. larger = oldMembers;
  70588. smaller = newMembers;
  70589. } else {
  70590. larger = newMembers;
  70591. smaller = oldMembers;
  70592. }
  70593. for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
  70594. $name = t1.get$current(t1);
  70595. if (!larger.containsKey$1($name))
  70596. continue;
  70597. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  70598. continue;
  70599. if (t2)
  70600. $name = "$" + H.S($name);
  70601. throw H.wrapException(E.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._environment0$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.legacy_FileSpan, type$.legacy_String)));
  70602. }
  70603. },
  70604. importForwards$1: function(module) {
  70605. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  70606. t1 = module._environment0$_environment,
  70607. forwarded = t1._environment0$_forwardedModules;
  70608. if (forwarded == null)
  70609. return;
  70610. if (_this._environment0$_forwardedModules != null) {
  70611. t2 = P.LinkedHashSet_LinkedHashSet(type$.legacy_Module_legacy_Callable_2);
  70612. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._environment0$_globalModules; t3.moveNext$0();) {
  70613. t5 = t3._collection$_current;
  70614. if (!_this._environment0$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  70615. t2.add$1(0, t5);
  70616. }
  70617. forwarded = t2;
  70618. }
  70619. if (_this._environment0$_forwardedModules == null)
  70620. _this._environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_Callable_2);
  70621. if (_this._environment0$_forwardedModuleNodes == null)
  70622. _this._environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_Callable_2, type$.legacy_AstNode_2);
  70623. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String*>");
  70624. t3 = t2._eval$1("Iterable.E");
  70625. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure3(), t2), t3);
  70626. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure4(), t2), t3);
  70627. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure5(), t2), t3);
  70628. t2 = _this._environment0$_variables;
  70629. t3 = t2.length;
  70630. if (t3 === 1) {
  70631. for (t3 = _this._environment0$_globalModules, t4 = P.List_List$from(t3, true, H._instanceType(t3)._precomputed1), t5 = t4.length, t6 = type$.legacy_Callable_2, t7 = _this._environment0$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  70632. module = t4[_i];
  70633. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  70634. if (shadowed != null) {
  70635. t3.remove$1(0, module);
  70636. t8 = shadowed.variables;
  70637. if (t8.get$isEmpty(t8)) {
  70638. t8 = shadowed.functions;
  70639. if (t8.get$isEmpty(t8)) {
  70640. t8 = shadowed.mixins;
  70641. if (t8.get$isEmpty(t8)) {
  70642. t8 = shadowed._shadowed_view0$_inner;
  70643. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  70644. } else
  70645. t8 = false;
  70646. } else
  70647. t8 = false;
  70648. } else
  70649. t8 = false;
  70650. if (!t8) {
  70651. t3.add$1(0, shadowed);
  70652. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  70653. }
  70654. }
  70655. }
  70656. t4 = _this._environment0$_forwardedModules;
  70657. t4.toString;
  70658. t4 = P.List_List$from(t4, true, H._instanceType(t4)._precomputed1);
  70659. t5 = t4.length;
  70660. _i = 0;
  70661. for (; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  70662. module = t4[_i];
  70663. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  70664. if (shadowed != null) {
  70665. _this._environment0$_forwardedModules.remove$1(0, module);
  70666. t8 = shadowed.variables;
  70667. if (t8.get$isEmpty(t8)) {
  70668. t8 = shadowed.functions;
  70669. if (t8.get$isEmpty(t8)) {
  70670. t8 = shadowed.mixins;
  70671. if (t8.get$isEmpty(t8)) {
  70672. t8 = shadowed._shadowed_view0$_inner;
  70673. t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
  70674. } else
  70675. t8 = false;
  70676. } else
  70677. t8 = false;
  70678. } else
  70679. t8 = false;
  70680. if (!t8) {
  70681. _this._environment0$_forwardedModules.add$1(0, shadowed);
  70682. t8 = _this._environment0$_forwardedModuleNodes;
  70683. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  70684. }
  70685. }
  70686. }
  70687. t3.addAll$1(0, forwarded);
  70688. t7.addAll$1(0, t1._environment0$_forwardedModuleNodes);
  70689. _this._environment0$_forwardedModules.addAll$1(0, forwarded);
  70690. _this._environment0$_forwardedModuleNodes.addAll$1(0, t1._environment0$_forwardedModuleNodes);
  70691. } else {
  70692. t1 = _this._environment0$_nestedForwardedModules;
  70693. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._environment0$_nestedForwardedModules = P.List_List$generate(t3 - 1, new O.Environment_importForwards_closure6(), true, type$.legacy_List_legacy_Module_legacy_Callable_2) : t1), forwarded);
  70694. }
  70695. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._environment0$_variableNodes, t4 = t3 != null, t5 = _this._environment0$_variableIndices; t1.moveNext$0();) {
  70696. t6 = t1._collection$_current;
  70697. t5.remove$1(0, t6);
  70698. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  70699. if (t4)
  70700. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  70701. }
  70702. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._environment0$_functionIndices, t3 = _this._environment0$_functions; t1.moveNext$0();) {
  70703. t4 = t1._collection$_current;
  70704. t2.remove$1(0, t4);
  70705. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  70706. }
  70707. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._environment0$_mixinIndices, t3 = _this._environment0$_mixins; t1.moveNext$0();) {
  70708. t4 = t1._collection$_current;
  70709. t2.remove$1(0, t4);
  70710. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  70711. }
  70712. },
  70713. getVariable$2$namespace: function($name, namespace) {
  70714. var t1, index, _this = this;
  70715. if (namespace != null)
  70716. return _this._environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  70717. if (_this._environment0$_lastVariableName === $name) {
  70718. t1 = J.$index$asx(_this._environment0$_variables[_this._environment0$_lastVariableIndex], $name);
  70719. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  70720. }
  70721. t1 = _this._environment0$_variableIndices;
  70722. index = t1.$index(0, $name);
  70723. if (index != null) {
  70724. _this._environment0$_lastVariableName = $name;
  70725. _this._environment0$_lastVariableIndex = index;
  70726. t1 = J.$index$asx(_this._environment0$_variables[index], $name);
  70727. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  70728. }
  70729. index = _this._environment0$_variableIndex$1($name);
  70730. if (index == null)
  70731. return _this._environment0$_getVariableFromGlobalModule$1($name);
  70732. _this._environment0$_lastVariableName = $name;
  70733. _this._environment0$_lastVariableIndex = index;
  70734. t1.$indexSet(0, $name, index);
  70735. t1 = J.$index$asx(_this._environment0$_variables[index], $name);
  70736. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  70737. },
  70738. getVariable$1: function($name) {
  70739. return this.getVariable$2$namespace($name, null);
  70740. },
  70741. _environment0$_getVariableFromGlobalModule$1: function($name) {
  70742. return this._environment0$_fromOneModule$3($name, "variable", new O.Environment__getVariableFromGlobalModule_closure0($name));
  70743. },
  70744. getVariableNode$2$namespace: function($name, namespace) {
  70745. var t1, index, _this = this;
  70746. if (namespace != null)
  70747. return _this._environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  70748. if (_this._environment0$_lastVariableName === $name) {
  70749. t1 = J.$index$asx(_this._environment0$_variableNodes[_this._environment0$_lastVariableIndex], $name);
  70750. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  70751. }
  70752. t1 = _this._environment0$_variableIndices;
  70753. index = t1.$index(0, $name);
  70754. if (index != null) {
  70755. _this._environment0$_lastVariableName = $name;
  70756. _this._environment0$_lastVariableIndex = index;
  70757. t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
  70758. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  70759. }
  70760. index = _this._environment0$_variableIndex$1($name);
  70761. if (index == null)
  70762. return _this._environment0$_getVariableNodeFromGlobalModule$1($name);
  70763. _this._environment0$_lastVariableName = $name;
  70764. _this._environment0$_lastVariableIndex = index;
  70765. t1.$indexSet(0, $name, index);
  70766. t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
  70767. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  70768. },
  70769. _environment0$_getVariableNodeFromGlobalModule$1: function($name) {
  70770. var t1, value;
  70771. for (t1 = this._environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  70772. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  70773. if (value != null)
  70774. return value;
  70775. }
  70776. return null;
  70777. },
  70778. globalVariableExists$2$namespace: function($name, namespace) {
  70779. if (namespace != null)
  70780. return this._environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  70781. if (C.JSArray_methods.get$first(this._environment0$_variables).containsKey$1($name))
  70782. return true;
  70783. return this._environment0$_getVariableFromGlobalModule$1($name) != null;
  70784. },
  70785. globalVariableExists$1: function($name) {
  70786. return this.globalVariableExists$2$namespace($name, null);
  70787. },
  70788. _environment0$_variableIndex$1: function($name) {
  70789. var t1, i;
  70790. for (t1 = this._environment0$_variables, i = t1.length - 1; i >= 0; --i)
  70791. if (t1[i].containsKey$1($name))
  70792. return i;
  70793. return null;
  70794. },
  70795. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  70796. var t1, moduleWithName, cur, t2, index, _this = this;
  70797. if (namespace != null) {
  70798. _this._environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  70799. return;
  70800. }
  70801. if (global || _this._environment0$_variables.length === 1) {
  70802. _this._environment0$_variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure2(_this, $name));
  70803. t1 = _this._environment0$_variables;
  70804. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  70805. moduleWithName = _this._environment0$_fromOneModule$3($name, "variable", new O.Environment_setVariable_closure3($name));
  70806. if (moduleWithName != null) {
  70807. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  70808. return;
  70809. }
  70810. }
  70811. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  70812. t1 = _this._environment0$_variableNodes;
  70813. if (t1 != null)
  70814. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  70815. return;
  70816. }
  70817. if (_this._environment0$_nestedForwardedModules != null && !_this._environment0$_variableIndices.containsKey$1($name) && _this._environment0$_variableIndex$1($name) == null) {
  70818. t1 = _this._environment0$_nestedForwardedModules;
  70819. t1.toString;
  70820. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  70821. t1 = new H.ListIterator(t1, t1.get$length(t1));
  70822. for (; t1.moveNext$0();) {
  70823. cur = t1.__internal$_current;
  70824. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  70825. cur = t2.__internal$_current;
  70826. if (cur.get$variables().containsKey$1($name)) {
  70827. cur.setVariable$3($name, value, nodeWithSpan);
  70828. return;
  70829. }
  70830. }
  70831. }
  70832. }
  70833. index = _this._environment0$_lastVariableName === $name ? _this._environment0$_lastVariableIndex : _this._environment0$_variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure4(_this, $name));
  70834. if (!_this._environment0$_inSemiGlobalScope && index === 0) {
  70835. index = _this._environment0$_variables.length - 1;
  70836. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  70837. }
  70838. _this._environment0$_lastVariableName = $name;
  70839. _this._environment0$_lastVariableIndex = index;
  70840. J.$indexSet$ax(_this._environment0$_variables[index], $name, value);
  70841. t1 = _this._environment0$_variableNodes;
  70842. if (t1 != null)
  70843. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  70844. },
  70845. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  70846. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  70847. },
  70848. setLocalVariable$3: function($name, value, nodeWithSpan) {
  70849. var index, _this = this,
  70850. t1 = _this._environment0$_variables,
  70851. t2 = t1.length;
  70852. _this._environment0$_lastVariableName = $name;
  70853. index = _this._environment0$_lastVariableIndex = t2 - 1;
  70854. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  70855. J.$indexSet$ax(t1[index], $name, value);
  70856. t1 = _this._environment0$_variableNodes;
  70857. if (t1 != null)
  70858. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  70859. },
  70860. getFunction$2$namespace: function($name, namespace) {
  70861. var t1, index, _this = this;
  70862. if (namespace != null) {
  70863. t1 = _this._environment0$_getModule$1(namespace);
  70864. return t1.get$functions(t1).$index(0, $name);
  70865. }
  70866. t1 = _this._environment0$_functionIndices;
  70867. index = t1.$index(0, $name);
  70868. if (index != null) {
  70869. t1 = J.$index$asx(_this._environment0$_functions[index], $name);
  70870. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  70871. }
  70872. index = _this._environment0$_functionIndex$1($name);
  70873. if (index == null)
  70874. return _this._environment0$_getFunctionFromGlobalModule$1($name);
  70875. t1.$indexSet(0, $name, index);
  70876. t1 = J.$index$asx(_this._environment0$_functions[index], $name);
  70877. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  70878. },
  70879. _environment0$_getFunctionFromGlobalModule$1: function($name) {
  70880. return this._environment0$_fromOneModule$3($name, "function", new O.Environment__getFunctionFromGlobalModule_closure0($name));
  70881. },
  70882. _environment0$_functionIndex$1: function($name) {
  70883. var t1, i;
  70884. for (t1 = this._environment0$_functions, i = t1.length - 1; i >= 0; --i)
  70885. if (t1[i].containsKey$1($name))
  70886. return i;
  70887. return null;
  70888. },
  70889. getMixin$2$namespace: function($name, namespace) {
  70890. var t1, index, _this = this;
  70891. if (namespace != null)
  70892. return _this._environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  70893. t1 = _this._environment0$_mixinIndices;
  70894. index = t1.$index(0, $name);
  70895. if (index != null) {
  70896. t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
  70897. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  70898. }
  70899. index = _this._environment0$_mixinIndex$1($name);
  70900. if (index == null)
  70901. return _this._environment0$_getMixinFromGlobalModule$1($name);
  70902. t1.$indexSet(0, $name, index);
  70903. t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
  70904. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  70905. },
  70906. _environment0$_getMixinFromGlobalModule$1: function($name) {
  70907. return this._environment0$_fromOneModule$3($name, "mixin", new O.Environment__getMixinFromGlobalModule_closure0($name));
  70908. },
  70909. _environment0$_mixinIndex$1: function($name) {
  70910. var t1, i;
  70911. for (t1 = this._environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  70912. if (t1[i].containsKey$1($name))
  70913. return i;
  70914. return null;
  70915. },
  70916. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when) {
  70917. var wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5, _this = this;
  70918. if (!when) {
  70919. wasInSemiGlobalScope = _this._environment0$_inSemiGlobalScope;
  70920. _this._environment0$_inSemiGlobalScope = semiGlobal;
  70921. try {
  70922. t1 = callback.call$0();
  70923. return t1;
  70924. } finally {
  70925. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  70926. }
  70927. }
  70928. semiGlobal = semiGlobal && _this._environment0$_inSemiGlobalScope;
  70929. wasInSemiGlobalScope0 = _this._environment0$_inSemiGlobalScope;
  70930. _this._environment0$_inSemiGlobalScope = semiGlobal;
  70931. t1 = _this._environment0$_variables;
  70932. t2 = type$.legacy_String;
  70933. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_Value_2));
  70934. t3 = _this._environment0$_variableNodes;
  70935. if (t3 != null)
  70936. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_AstNode_2));
  70937. t3 = _this._environment0$_functions;
  70938. t4 = type$.legacy_Callable_2;
  70939. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  70940. t5 = _this._environment0$_mixins;
  70941. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  70942. t4 = _this._environment0$_nestedForwardedModules;
  70943. if (t4 != null)
  70944. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable_2));
  70945. try {
  70946. t2 = callback.call$0();
  70947. return t2;
  70948. } finally {
  70949. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope0;
  70950. _this._environment0$_lastVariableIndex = _this._environment0$_lastVariableName = null;
  70951. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = _this._environment0$_variableIndices; t1.moveNext$0();) {
  70952. $name = t1.get$current(t1);
  70953. t2.remove$1(0, $name);
  70954. }
  70955. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = _this._environment0$_functionIndices; t1.moveNext$0();) {
  70956. name0 = t1.get$current(t1);
  70957. t2.remove$1(0, name0);
  70958. }
  70959. for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = _this._environment0$_mixinIndices; t1.moveNext$0();) {
  70960. name1 = t1.get$current(t1);
  70961. t2.remove$1(0, name1);
  70962. }
  70963. t1 = _this._environment0$_nestedForwardedModules;
  70964. if (t1 != null)
  70965. C.JSArray_methods.removeLast$0(t1);
  70966. }
  70967. },
  70968. scope$1$1: function(callback, $T) {
  70969. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  70970. },
  70971. scope$1$2$when: function(callback, when, $T) {
  70972. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  70973. },
  70974. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  70975. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  70976. },
  70977. toImplicitConfiguration$0: function() {
  70978. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  70979. t1 = type$.legacy_String,
  70980. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ConfiguredValue_2);
  70981. for (t2 = this._environment0$_variables, t3 = this._environment0$_variableNodes, t4 = t3 == null, t5 = type$.legacy_AstNode_2, i = 0; i < t2.length; ++i) {
  70982. values = t2[i];
  70983. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  70984. for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
  70985. t7 = t6.get$current(t6);
  70986. configuration.$indexSet(0, t7, new Z.ConfiguredValue0(values.$index(0, t7), null, nodes.$index(0, t7)));
  70987. }
  70988. }
  70989. return new A.Configuration0(configuration, null, true);
  70990. },
  70991. _environment0$_getModule$1: function(namespace) {
  70992. var module = this._environment0$_modules.$index(0, namespace);
  70993. if (module != null)
  70994. return module;
  70995. throw H.wrapException(E.SassScriptException$0('There is no module with the namespace "' + namespace + '".'));
  70996. },
  70997. _environment0$_fromOneModule$1$3: function($name, type, callback) {
  70998. var cur, t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  70999. t1 = this._environment0$_nestedForwardedModules;
  71000. if (t1 != null)
  71001. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  71002. cur = t1.__internal$_current;
  71003. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  71004. cur = t2.__internal$_current;
  71005. value = callback.call$1(cur);
  71006. if (value != null)
  71007. return value;
  71008. }
  71009. }
  71010. for (t1 = this._environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.legacy_Callable_2, value = null, identity = null; t1.moveNext$0();) {
  71011. t3 = t1._collection$_current;
  71012. valueInModule = callback.call$1(t3);
  71013. if (valueInModule == null)
  71014. continue;
  71015. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  71016. if (identityFromModule.$eq(0, identity))
  71017. continue;
  71018. if (value != null) {
  71019. t1 = "This " + type + string$.x20is_av;
  71020. t2 = type + " use";
  71021. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  71022. for (t4 = this._environment0$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  71023. t5 = t4.get$current(t4);
  71024. if (callback.call$1(t5.key) != null)
  71025. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  71026. }
  71027. throw H.wrapException(E.MultiSpanSassScriptException$0(t1, t2, t3));
  71028. }
  71029. identity = identityFromModule;
  71030. value = valueInModule;
  71031. }
  71032. return value;
  71033. },
  71034. _environment0$_fromOneModule$3: function($name, type, callback) {
  71035. return this._environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  71036. }
  71037. };
  71038. O.Environment_importForwards_closure3.prototype = {
  71039. call$1: function(module) {
  71040. return module.get$variables().get$keys();
  71041. }
  71042. };
  71043. O.Environment_importForwards_closure4.prototype = {
  71044. call$1: function(module) {
  71045. return module.get$functions(module).get$keys();
  71046. }
  71047. };
  71048. O.Environment_importForwards_closure5.prototype = {
  71049. call$1: function(module) {
  71050. return module.get$mixins().get$keys();
  71051. }
  71052. };
  71053. O.Environment_importForwards_closure6.prototype = {
  71054. call$1: function(_) {
  71055. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable_2);
  71056. },
  71057. $signature: 130
  71058. };
  71059. O.Environment__getVariableFromGlobalModule_closure0.prototype = {
  71060. call$1: function(module) {
  71061. return module.get$variables().$index(0, this.name);
  71062. }
  71063. };
  71064. O.Environment_setVariable_closure2.prototype = {
  71065. call$0: function() {
  71066. var t1 = this.$this;
  71067. t1._environment0$_lastVariableName = this.name;
  71068. return t1._environment0$_lastVariableIndex = 0;
  71069. },
  71070. $signature: 7
  71071. };
  71072. O.Environment_setVariable_closure3.prototype = {
  71073. call$1: function(module) {
  71074. return module.get$variables().containsKey$1(this.name) ? module : null;
  71075. }
  71076. };
  71077. O.Environment_setVariable_closure4.prototype = {
  71078. call$0: function() {
  71079. var t1 = this.$this,
  71080. t2 = t1._environment0$_variableIndex$1(this.name);
  71081. return t2 == null ? t1._environment0$_variables.length - 1 : t2;
  71082. },
  71083. $signature: 7
  71084. };
  71085. O.Environment__getFunctionFromGlobalModule_closure0.prototype = {
  71086. call$1: function(module) {
  71087. return module.get$functions(module).$index(0, this.name);
  71088. }
  71089. };
  71090. O.Environment__getMixinFromGlobalModule_closure0.prototype = {
  71091. call$1: function(module) {
  71092. return module.get$mixins().$index(0, this.name);
  71093. }
  71094. };
  71095. O._EnvironmentModule1.prototype = {
  71096. get$url: function() {
  71097. return this.css.get$span().file.url;
  71098. },
  71099. setVariable$3: function($name, value, nodeWithSpan) {
  71100. var t1, t2,
  71101. module = this._environment0$_modulesByVariable.$index(0, $name);
  71102. if (module != null) {
  71103. module.setVariable$3($name, value, nodeWithSpan);
  71104. return;
  71105. }
  71106. t1 = this._environment0$_environment;
  71107. t2 = t1._environment0$_variables;
  71108. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  71109. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  71110. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  71111. t1 = t1._environment0$_variableNodes;
  71112. if (t1 != null)
  71113. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  71114. return;
  71115. },
  71116. variableIdentity$1: function($name) {
  71117. var module = this._environment0$_modulesByVariable.$index(0, $name);
  71118. return module == null ? this : module.variableIdentity$1($name);
  71119. },
  71120. cloneCss$0: function() {
  71121. var newCssAndExtender, _this = this,
  71122. t1 = _this.css;
  71123. if (J.get$isEmpty$asx(t1.get$children()))
  71124. return _this;
  71125. newCssAndExtender = V.cloneCssStylesheet0(t1, _this.extender);
  71126. return O._EnvironmentModule$_1(_this._environment0$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  71127. },
  71128. toString$0: function(_) {
  71129. var t1 = this.css;
  71130. if (t1.get$span().file.url == null)
  71131. t1 = "<unknown url>";
  71132. else {
  71133. t1 = t1.get$span();
  71134. t1 = $.$get$context().prettyUri$1(t1.file.url);
  71135. }
  71136. return t1;
  71137. },
  71138. $isModule0: 1,
  71139. get$upstream: function() {
  71140. return this.upstream;
  71141. },
  71142. get$variables: function() {
  71143. return this.variables;
  71144. },
  71145. get$variableNodes: function() {
  71146. return this.variableNodes;
  71147. },
  71148. get$functions: function(receiver) {
  71149. return this.functions;
  71150. },
  71151. get$mixins: function() {
  71152. return this.mixins;
  71153. },
  71154. get$extender: function() {
  71155. return this.extender;
  71156. },
  71157. get$css: function(receiver) {
  71158. return this.css;
  71159. },
  71160. get$transitivelyContainsCss: function() {
  71161. return this.transitivelyContainsCss;
  71162. },
  71163. get$transitivelyContainsExtensions: function() {
  71164. return this.transitivelyContainsExtensions;
  71165. }
  71166. };
  71167. O._EnvironmentModule__EnvironmentModule_closure11.prototype = {
  71168. call$1: function(module) {
  71169. return module.get$variables();
  71170. }
  71171. };
  71172. O._EnvironmentModule__EnvironmentModule_closure12.prototype = {
  71173. call$1: function(module) {
  71174. return module.get$variableNodes();
  71175. }
  71176. };
  71177. O._EnvironmentModule__EnvironmentModule_closure13.prototype = {
  71178. call$1: function(module) {
  71179. return module.get$functions(module);
  71180. }
  71181. };
  71182. O._EnvironmentModule__EnvironmentModule_closure14.prototype = {
  71183. call$1: function(module) {
  71184. return module.get$mixins();
  71185. }
  71186. };
  71187. O._EnvironmentModule__EnvironmentModule_closure15.prototype = {
  71188. call$1: function(module) {
  71189. return module.get$transitivelyContainsCss();
  71190. }
  71191. };
  71192. O._EnvironmentModule__EnvironmentModule_closure16.prototype = {
  71193. call$1: function(module) {
  71194. return module.get$transitivelyContainsExtensions();
  71195. }
  71196. };
  71197. V.JSError.prototype = {};
  71198. D.ErrorRule0.prototype = {
  71199. accept$1$1: function(visitor) {
  71200. return visitor.visitErrorRule$1(this);
  71201. },
  71202. accept$1: function(visitor) {
  71203. return this.accept$1$1(visitor, type$.dynamic);
  71204. },
  71205. toString$0: function(_) {
  71206. return "@error " + H.S(this.expression) + ";";
  71207. },
  71208. $isAstNode0: 1,
  71209. $isStatement0: 1,
  71210. get$span: function() {
  71211. return this.span;
  71212. }
  71213. };
  71214. R._EvaluateVisitor1.prototype = {
  71215. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap1: function(functions, importCache, logger, nodeImporter, sourceMap) {
  71216. var t6, t7, t8, t9, t10, t11, t12, t13, metaFunctions, metaMixins, cur, _i, metaModule, module, $function, _this = this,
  71217. _s9_ = "sass:meta",
  71218. t1 = type$.legacy_String,
  71219. t2 = type$.legacy_VariableDeclaration_2,
  71220. t3 = S.SpanScanner$(string$.x40functgl, _s9_),
  71221. t4 = type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2,
  71222. t5 = type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2;
  71223. t3 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t3, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure19(_this), t4)], t5);
  71224. t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
  71225. t6 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t6, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure20(_this), t4)], t5);
  71226. t7 = S.SpanScanner$(string$.x40functf, _s9_);
  71227. t7 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t7, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure21(_this), t4)], t5);
  71228. t8 = S.SpanScanner$(string$.x40functm, _s9_);
  71229. t8 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t8, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure22(_this), t4)], t5);
  71230. t9 = S.SpanScanner$("@function content-exists() {", _s9_);
  71231. t9 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t9, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure23(_this), t4)], t5);
  71232. t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
  71233. t10 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t10, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure24(_this), t4)], t5);
  71234. t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
  71235. t11 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t11, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure25(_this), t4)], t5);
  71236. t12 = S.SpanScanner$(string$.x40functge, _s9_);
  71237. t12 = H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t12, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure26(_this), t4)], t5);
  71238. t13 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
  71239. metaFunctions = [new Q.BuiltInCallable0("global-variable-exists", t3), new Q.BuiltInCallable0("variable-exists", t6), new Q.BuiltInCallable0("function-exists", t7), new Q.BuiltInCallable0("mixin-exists", t8), new Q.BuiltInCallable0("content-exists", t9), new Q.BuiltInCallable0("module-variables", t10), new Q.BuiltInCallable0("module-functions", t11), new Q.BuiltInCallable0("get-function", t12), new Q.BuiltInCallable0("call", H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t13, C.C_StderrLogger).parseArgumentDeclaration$0(), new R._EvaluateVisitor_closure27(_this), t4)], t5))];
  71240. t1 = type$.JSArray_legacy_BuiltInCallable_2;
  71241. metaMixins = H.setRuntimeTypeInfo([Q.BuiltInCallable$mixin0("load-css", "$module, $with: null", new R._EvaluateVisitor_closure28(_this), _s9_)], t1);
  71242. t1 = H.setRuntimeTypeInfo([], t1);
  71243. for (t2 = $.$get$global6(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  71244. cur = t2.__internal$_current;
  71245. t1.push(cur);
  71246. }
  71247. for (_i = 0; _i < 9; ++_i)
  71248. t1.push(metaFunctions[_i]);
  71249. metaModule = Q.BuiltInModule$0("meta", t1, metaMixins, null, type$.legacy_BuiltInCallable_2);
  71250. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInModule_legacy_BuiltInCallable_2);
  71251. for (t2 = $.$get$coreModules0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  71252. cur = t2.__internal$_current;
  71253. t1.push(cur);
  71254. }
  71255. t1.push(metaModule);
  71256. t2 = t1.length;
  71257. t3 = _this._evaluate0$_builtInModules;
  71258. _i = 0;
  71259. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  71260. module = t1[_i];
  71261. t3.$indexSet(0, module.url, module);
  71262. }
  71263. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Callable_2);
  71264. for (t2 = new H.ListIterator(functions, functions.get$length(functions)); t2.moveNext$0();) {
  71265. cur = t2.__internal$_current;
  71266. t1.push(cur);
  71267. }
  71268. for (t2 = $.$get$globalFunctions0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  71269. cur = t2.__internal$_current;
  71270. t1.push(cur);
  71271. }
  71272. for (_i = 0; _i < 9; ++_i)
  71273. t1.push(metaFunctions[_i]);
  71274. for (t2 = t1.length, t3 = _this._evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  71275. $function = t1[_i];
  71276. t4 = $function.get$name();
  71277. t4.toString;
  71278. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  71279. }
  71280. },
  71281. run$2: function(_, importer, node) {
  71282. return this._evaluate0$_withWarnCallback$1$1(new R._EvaluateVisitor_run_closure1(this, node, importer), type$.legacy_EvaluateResult_2);
  71283. },
  71284. _evaluate0$_withWarnCallback$1$1: function(callback, $T) {
  71285. return N.withWarnCallback0(new R._EvaluateVisitor__withWarnCallback_closure1(this), callback, $T._eval$1("0*"));
  71286. },
  71287. _evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  71288. var t1, _this = this,
  71289. builtInModule = _this._evaluate0$_builtInModules.$index(0, url);
  71290. if (builtInModule != null) {
  71291. if (configuration != null && !configuration.isImplicit) {
  71292. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  71293. throw H.wrapException(_this._evaluate0$_exception$2(t1, nodeWithSpan.get$span()));
  71294. }
  71295. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__loadModule_closure3(callback, builtInModule));
  71296. return;
  71297. }
  71298. _this._evaluate0$_withStackFrame$3(stackFrame, nodeWithSpan, new R._EvaluateVisitor__loadModule_closure4(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  71299. },
  71300. _evaluate0$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  71301. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  71302. },
  71303. _evaluate0$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  71304. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  71305. },
  71306. _evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  71307. var message, existingNode, environment, t3, extender, module, _this = this, t1 = {},
  71308. url = stylesheet.span.file.url,
  71309. t2 = _this._evaluate0$_modules,
  71310. alreadyLoaded = t2.$index(0, url);
  71311. if (alreadyLoaded != null) {
  71312. t1 = configuration == null;
  71313. if (!(t1 ? _this._evaluate0$_configuration : configuration).isImplicit) {
  71314. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + string$.x20was_a : string$.This_mw;
  71315. existingNode = _this._evaluate0$_moduleNodes.$index(0, url);
  71316. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  71317. if (existingNode != null)
  71318. t2.$indexSet(0, existingNode.get$span(), "original load");
  71319. if (t1)
  71320. t2.$indexSet(0, _this._evaluate0$_configuration.nodeWithSpan.get$span(), "configuration");
  71321. throw H.wrapException(t2.get$isEmpty(t2) ? _this._evaluate0$_exception$1(message) : _this._evaluate0$_multiSpanException$3(message, "new load", t2));
  71322. }
  71323. return alreadyLoaded;
  71324. }
  71325. environment = O.Environment$0(_this._evaluate0$_sourceMap);
  71326. t1.css = null;
  71327. t3 = type$.legacy_SimpleSelector_2;
  71328. extender = new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_List_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2, type$.legacy_List_legacy_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2), C.ExtendMode_normal0);
  71329. _this._evaluate0$_withEnvironment$2(environment, new R._EvaluateVisitor__execute_closure1(t1, _this, importer, stylesheet, extender, configuration));
  71330. module = O._EnvironmentModule__EnvironmentModule1(environment, t1.css, extender, environment._environment0$_forwardedModules);
  71331. t2.$indexSet(0, url, module);
  71332. _this._evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  71333. return module;
  71334. },
  71335. _evaluate0$_execute$2: function(importer, stylesheet) {
  71336. return this._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  71337. },
  71338. _evaluate0$_addOutOfOrderImports$0: function() {
  71339. var t1, statements, _this = this;
  71340. if (_this._evaluate0$_outOfOrderImports == null)
  71341. return _this._evaluate0$_root.children;
  71342. t1 = new Array(J.get$length$asx(_this._evaluate0$_root.children._collection$_source) + _this._evaluate0$_outOfOrderImports.length);
  71343. t1.fixed$length = Array;
  71344. statements = new G.FixedLengthListBuilder0(H.setRuntimeTypeInfo(t1, type$.JSArray_legacy_ModifiableCssNode_2), type$.FixedLengthListBuilder_legacy_ModifiableCssNode_2);
  71345. statements.addRange$3(_this._evaluate0$_root.children, 0, _this._evaluate0$_endOfImports);
  71346. statements.addAll$1(0, _this._evaluate0$_outOfOrderImports);
  71347. statements.addRange$2(_this._evaluate0$_root.children, _this._evaluate0$_endOfImports);
  71348. return statements.build$0();
  71349. },
  71350. _evaluate0$_combineCss$2$clone: function(root, clone) {
  71351. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, cur, statements, index, t2, _this = this;
  71352. if (!C.JSArray_methods.any$1(root.get$upstream(), new R._EvaluateVisitor__combineCss_closure5())) {
  71353. selectors = root.get$extender().get$simpleSelectors();
  71354. unsatisfiedExtension = B.firstOrNull0(root.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__combineCss_closure6(selectors)));
  71355. if (unsatisfiedExtension != null)
  71356. _this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  71357. return root.get$css(root);
  71358. }
  71359. sortedModules = _this._evaluate0$_topologicalModules$1(root);
  71360. if (clone) {
  71361. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<Callable0*>*>");
  71362. sortedModules = P.List_List$from(new H.MappedListIterable(sortedModules, new R._EvaluateVisitor__combineCss_closure7(), t1), true, t1._eval$1("ListIterable.E"));
  71363. }
  71364. _this._evaluate0$_extendModules$1(sortedModules);
  71365. t1 = type$.JSArray_legacy_CssNode_2;
  71366. imports = H.setRuntimeTypeInfo([], t1);
  71367. css = H.setRuntimeTypeInfo([], t1);
  71368. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  71369. cur = t1.__internal$_current;
  71370. statements = cur.get$css(cur).get$children();
  71371. index = _this._evaluate0$_indexAfterImports$1(statements);
  71372. t2 = J.getInterceptor$ax(statements);
  71373. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  71374. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  71375. }
  71376. return new V.CssStylesheet0(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_legacy_CssNode_2), root.get$css(root).get$span());
  71377. },
  71378. _evaluate0$_combineCss$1: function(root) {
  71379. return this._evaluate0$_combineCss$2$clone(root, false);
  71380. },
  71381. _evaluate0$_extendModules$1: function(sortedModules) {
  71382. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  71383. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_List_legacy_Extender_2),
  71384. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_Extension_2);
  71385. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  71386. t2 = t1.get$current(t1);
  71387. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  71388. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__extendModules_closure3(originalSelectors)));
  71389. extenders = downstreamExtenders.$index(0, t2.get$url());
  71390. if (extenders != null)
  71391. t2.get$extender().addExtensions$1(extenders);
  71392. t3 = t2.get$extender();
  71393. if (t3.get$isEmpty(t3))
  71394. continue;
  71395. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  71396. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new R._EvaluateVisitor__extendModules_closure4()), t2.get$extender());
  71397. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  71398. }
  71399. if (unsatisfiedExtensions._collection$_length !== 0)
  71400. this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  71401. },
  71402. _evaluate0$_throwForUnsatisfiedExtension$1: function(extension) {
  71403. throw H.wrapException(E.SassException$0(string$.The_ta + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  71404. },
  71405. _evaluate0$_topologicalModules$1: function(root) {
  71406. var t1 = type$.legacy_Module_legacy_Callable_2,
  71407. sorted = Q.QueueList$(null, t1);
  71408. new R._EvaluateVisitor__topologicalModules_visitModule1(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  71409. return sorted;
  71410. },
  71411. _evaluate0$_indexAfterImports$1: function(statements) {
  71412. var t1, t2, t3, lastImport, i, statement;
  71413. for (t1 = J.getInterceptor$asx(statements), t2 = type$.legacy_CssComment_2, t3 = type$.legacy_CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  71414. statement = t1.$index(statements, i);
  71415. if (t3._is(statement))
  71416. lastImport = i;
  71417. else if (!t2._is(statement))
  71418. break;
  71419. }
  71420. return lastImport + 1;
  71421. },
  71422. visitStylesheet$1: function(node) {
  71423. var t1, t2, _i;
  71424. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  71425. t1[_i].accept$1(this);
  71426. return null;
  71427. },
  71428. visitAtRootRule$1: function(node) {
  71429. var root, innerCopy, outerCopy, cur, copy, _this = this, _null = null,
  71430. t1 = node.query,
  71431. query = t1 != null ? _this._evaluate0$_adjustParseError$2(t1, new R._EvaluateVisitor_visitAtRootRule_closure5(_this, _this._evaluate0$_performInterpolation$2$warnForColor(t1, true))) : C.AtRootQuery_UsS0,
  71432. $parent = _this._evaluate0$_parent,
  71433. included = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssParentNode_2);
  71434. for (t1 = type$.legacy_CssStylesheet_2; !t1._is($parent);) {
  71435. if (!query.excludes$1($parent))
  71436. included.push($parent);
  71437. $parent = $parent._node2$_parent;
  71438. }
  71439. root = _this._evaluate0$_trimIncluded$1(included);
  71440. if (root == _this._evaluate0$_parent) {
  71441. _this._evaluate0$_environment.scope$1$2$when(new R._EvaluateVisitor_visitAtRootRule_closure6(_this, node), node.hasDeclarations, type$.Null);
  71442. return _null;
  71443. }
  71444. innerCopy = included.length === 0 ? _null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  71445. for (t1 = H.SubListIterable$(included, 1, _null, type$.legacy_ModifiableCssParentNode_2), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  71446. cur = t1.__internal$_current;
  71447. copy = cur.copyWithoutChildren$0();
  71448. copy.addChild$1(outerCopy);
  71449. }
  71450. if (outerCopy != null)
  71451. root.addChild$1(outerCopy);
  71452. _this._evaluate0$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new R._EvaluateVisitor_visitAtRootRule_closure7(_this, node));
  71453. return _null;
  71454. },
  71455. _evaluate0$_trimIncluded$1: function(nodes) {
  71456. var $parent, innermostContiguous, i, t2, root,
  71457. t1 = nodes.length;
  71458. if (t1 === 0)
  71459. return this._evaluate0$_root;
  71460. $parent = this._evaluate0$_parent;
  71461. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  71462. for (; $parent != nodes[i]; innermostContiguous = null)
  71463. $parent = $parent._node2$_parent;
  71464. if (innermostContiguous == null)
  71465. innermostContiguous = i;
  71466. $parent = $parent._node2$_parent;
  71467. }
  71468. t2 = this._evaluate0$_root;
  71469. if ($parent != t2)
  71470. return t2;
  71471. root = nodes[innermostContiguous];
  71472. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  71473. return root;
  71474. },
  71475. _evaluate0$_scopeForAtRoot$4: function(node, newParent, query, included) {
  71476. var _this = this,
  71477. scope = new R._EvaluateVisitor__scopeForAtRoot_closure11(_this, newParent, node),
  71478. t1 = query._at_root_query0$_all,
  71479. t2 = t1 || query._at_root_query0$_rule,
  71480. t3 = query.include;
  71481. if (t2 !== t3)
  71482. scope = new R._EvaluateVisitor__scopeForAtRoot_closure12(_this, scope);
  71483. if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
  71484. scope = new R._EvaluateVisitor__scopeForAtRoot_closure13(_this, scope);
  71485. if (_this._evaluate0$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
  71486. scope = new R._EvaluateVisitor__scopeForAtRoot_closure14(_this, scope);
  71487. return _this._evaluate0$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new R._EvaluateVisitor__scopeForAtRoot_closure15()) ? new R._EvaluateVisitor__scopeForAtRoot_closure16(_this, scope) : scope;
  71488. },
  71489. visitContentBlock$1: function(node) {
  71490. return H.throwExpression(P.UnsupportedError$(string$.Evalua));
  71491. },
  71492. visitContentRule$1: function(node) {
  71493. var $content = this._evaluate0$_environment._environment0$_content;
  71494. if ($content == null)
  71495. return null;
  71496. this._evaluate0$_runUserDefinedCallable$4(node.$arguments, $content, node, new R._EvaluateVisitor_visitContentRule_closure1(this, $content));
  71497. return null;
  71498. },
  71499. visitDebugRule$1: function(node) {
  71500. var value = node.expression.accept$1(this),
  71501. t1 = value instanceof D.SassString0 ? value.text : J.toString$0$(value);
  71502. this._evaluate0$_logger.debug$2(t1, node.span);
  71503. return null;
  71504. },
  71505. visitDeclaration$1: function(node) {
  71506. var $name, t1, cssValue, t2, oldDeclarationName, _this = this;
  71507. if (!(_this._evaluate0$_styleRule != null && !_this._evaluate0$_atRootExcludingStyleRule) && !_this._evaluate0$_inUnknownAtRule && !_this._evaluate0$_inKeyframes)
  71508. throw H.wrapException(_this._evaluate0$_exception$2(string$.Declar, node.span));
  71509. $name = _this._evaluate0$_interpolationToValue$2$warnForColor(node.name, true);
  71510. t1 = _this._evaluate0$_declarationName;
  71511. if (t1 != null)
  71512. $name = new F.CssValue0(t1 + "-" + H.S($name.value), $name.span, type$.CssValue_legacy_String_2);
  71513. t1 = node.value;
  71514. cssValue = t1 == null ? null : new F.CssValue0(t1.accept$1(_this), t1.get$span(), type$.CssValue_legacy_Value_2);
  71515. if (cssValue != null) {
  71516. t2 = cssValue.value;
  71517. t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
  71518. } else
  71519. t2 = false;
  71520. if (t2) {
  71521. t2 = _this._evaluate0$_parent;
  71522. t1 = _this._evaluate0$_expressionNode$1(t1);
  71523. t1 = t1 == null ? null : t1.get$span();
  71524. t2.addChild$1(L.ModifiableCssDeclaration$0($name, cssValue, node.span, t1));
  71525. } else if (J.startsWith$1$s($name.value, "--"))
  71526. throw H.wrapException(_this._evaluate0$_exception$2("Custom property values may not be empty.", t1.get$span()));
  71527. if (node.children != null) {
  71528. oldDeclarationName = _this._evaluate0$_declarationName;
  71529. _this._evaluate0$_declarationName = $name.value;
  71530. _this._evaluate0$_environment.scope$1$2$when(new R._EvaluateVisitor_visitDeclaration_closure1(_this, node), node.hasDeclarations, type$.Null);
  71531. _this._evaluate0$_declarationName = oldDeclarationName;
  71532. }
  71533. return null;
  71534. },
  71535. visitEachRule$1: function(node) {
  71536. var _this = this,
  71537. t1 = node.list,
  71538. list = t1.accept$1(_this),
  71539. nodeWithSpan = _this._evaluate0$_expressionNode$1(t1),
  71540. setVariables = node.variables.length === 1 ? new R._EvaluateVisitor_visitEachRule_closure5(_this, node, nodeWithSpan) : new R._EvaluateVisitor_visitEachRule_closure6(_this, node, nodeWithSpan);
  71541. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitEachRule_closure7(_this, list, setVariables, node), true, type$.legacy_Value_2);
  71542. },
  71543. _evaluate0$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  71544. var i,
  71545. list = value.get$asList(),
  71546. t1 = variables.length,
  71547. minLength = Math.min(t1, list.length);
  71548. for (i = 0; i < minLength; ++i)
  71549. this._evaluate0$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  71550. for (i = minLength; i < t1; ++i)
  71551. this._evaluate0$_environment.setLocalVariable$3(variables[i], C.C_SassNull, nodeWithSpan);
  71552. },
  71553. visitErrorRule$1: function(node) {
  71554. throw H.wrapException(this._evaluate0$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  71555. },
  71556. visitExtendRule$1: function(node) {
  71557. var targetText, t1, t2, t3, _i, t4, _this = this;
  71558. if (!(_this._evaluate0$_styleRule != null && !_this._evaluate0$_atRootExcludingStyleRule) || _this._evaluate0$_declarationName != null)
  71559. throw H.wrapException(_this._evaluate0$_exception$2(string$.x40exten, node.span));
  71560. targetText = _this._evaluate0$_interpolationToValue$2$warnForColor(node.selector, true);
  71561. for (t1 = _this._evaluate0$_adjustParseError$2(targetText, new R._EvaluateVisitor_visitExtendRule_closure1(_this, targetText)).components, t2 = t1.length, t3 = type$.legacy_CompoundSelector_2, _i = 0; _i < t2; ++_i) {
  71562. t4 = t1[_i].components;
  71563. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector0))
  71564. throw H.wrapException(E.SassFormatException$0("complex selectors may not be extended.", targetText.span));
  71565. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  71566. if (t4.length !== 1)
  71567. throw H.wrapException(E.SassFormatException$0(string$.compou + C.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.span));
  71568. _this._evaluate0$_extender.addExtension$4(_this._evaluate0$_styleRule.selector, C.JSArray_methods.get$first(t4), node, _this._evaluate0$_mediaQueries);
  71569. }
  71570. return null;
  71571. },
  71572. visitAtRule$1: function(node) {
  71573. var $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
  71574. if (_this._evaluate0$_declarationName != null)
  71575. throw H.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
  71576. $name = _this._evaluate0$_interpolationToValue$1(node.name);
  71577. t1 = node.value;
  71578. value = t1 == null ? null : _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true);
  71579. if (node.children == null) {
  71580. t1 = _this._evaluate0$_parent;
  71581. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  71582. t1.addChild$1(new U.ModifiableCssAtRule0($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2));
  71583. return null;
  71584. }
  71585. wasInKeyframes = _this._evaluate0$_inKeyframes;
  71586. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  71587. if (B.unvendor0($name.value) === "keyframes")
  71588. _this._evaluate0$_inKeyframes = true;
  71589. else
  71590. _this._evaluate0$_inUnknownAtRule = true;
  71591. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  71592. _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitAtRule_closure3(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitAtRule_closure4(), type$.legacy_ModifiableCssAtRule_2, type$.Null);
  71593. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  71594. _this._evaluate0$_inKeyframes = wasInKeyframes;
  71595. return null;
  71596. },
  71597. visitForRule$1: function(node) {
  71598. var _this = this, t1 = {},
  71599. t2 = node.from,
  71600. fromNumber = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure9(_this, node)),
  71601. t3 = node.to,
  71602. toNumber = _this._evaluate0$_addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure10(_this, node)),
  71603. from = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure11(fromNumber, toNumber)),
  71604. to = t1.to = _this._evaluate0$_addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure12(toNumber)),
  71605. direction = from > to ? -1 : 1;
  71606. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  71607. return null;
  71608. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitForRule_closure13(t1, _this, node, from, direction), true, type$.legacy_Value_2);
  71609. },
  71610. visitForwardRule$1: function(node) {
  71611. var newConfiguration, t4, _i, variable, _this = this,
  71612. _s8_ = "@forward",
  71613. oldConfiguration = _this._evaluate0$_configuration,
  71614. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  71615. t1 = node.configuration,
  71616. t2 = t1.length,
  71617. t3 = node.url;
  71618. if (t2 !== 0) {
  71619. newConfiguration = _this._evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node);
  71620. _this._evaluate0$_loadModule$5$configuration(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure3(_this, node), newConfiguration);
  71621. t3 = type$.legacy_String;
  71622. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  71623. for (_i = 0; _i < t2; ++_i) {
  71624. variable = t1[_i];
  71625. if (!variable.isGuarded)
  71626. t4.add$1(0, variable.name);
  71627. }
  71628. _this._evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  71629. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  71630. for (_i = 0; _i < t2; ++_i)
  71631. t3.add$1(0, t1[_i].name);
  71632. _this._evaluate0$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  71633. } else {
  71634. _this._evaluate0$_configuration = adjustedConfiguration;
  71635. _this._evaluate0$_loadModule$4(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure4(_this, node));
  71636. _this._evaluate0$_configuration = oldConfiguration;
  71637. }
  71638. return null;
  71639. },
  71640. _evaluate0$_addForwardConfiguration$2: function(configuration, node) {
  71641. var t2, t3, _i, variable, t4, t5,
  71642. t1 = configuration._configuration$_values,
  71643. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue_2), type$.legacy_String, type$.legacy_ConfiguredValue_2);
  71644. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  71645. variable = t2[_i];
  71646. if (variable.isGuarded) {
  71647. t4 = variable.name;
  71648. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  71649. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull)) {
  71650. newValues.$indexSet(0, t4, t5);
  71651. continue;
  71652. }
  71653. }
  71654. t4 = variable.name;
  71655. t5 = variable.expression;
  71656. newValues.$indexSet(0, t4, new Z.ConfiguredValue0(t5.accept$1(this).withoutSlash$0(), variable.span, this._evaluate0$_expressionNode$1(t5)));
  71657. }
  71658. return new A.Configuration0(newValues, node, false);
  71659. },
  71660. _evaluate0$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  71661. var t1, t2, t3, t4, _i, $name;
  71662. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys()), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  71663. $name = t2[_i];
  71664. if (except.contains$1(0, $name))
  71665. continue;
  71666. if (!t4.containsKey$1($name))
  71667. if (!t1.get$isEmpty(t1))
  71668. t1.remove$1(0, $name);
  71669. }
  71670. },
  71671. _evaluate0$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  71672. configuration._configuration$_values.forEach$1(0, new R._EvaluateVisitor__assertConfigurationIsEmpty_closure1(this, only, nameInError));
  71673. },
  71674. _evaluate0$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  71675. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  71676. },
  71677. _evaluate0$_assertConfigurationIsEmpty$1: function(configuration) {
  71678. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  71679. },
  71680. _evaluate0$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  71681. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  71682. },
  71683. visitFunctionRule$1: function(node) {
  71684. var t1 = this._evaluate0$_environment,
  71685. t2 = t1.closure$0(),
  71686. t3 = t1._environment0$_functions,
  71687. index = t3.length - 1,
  71688. t4 = node.name;
  71689. t1._environment0$_functionIndices.$indexSet(0, t4, index);
  71690. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_legacy_Environment_2));
  71691. return null;
  71692. },
  71693. visitIfRule$1: function(node) {
  71694. var t1, t2, _i, clauseToCheck, _box_0 = {};
  71695. _box_0.clause = node.lastClause;
  71696. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  71697. clauseToCheck = t1[_i];
  71698. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  71699. _box_0.clause = clauseToCheck;
  71700. break;
  71701. }
  71702. }
  71703. t1 = _box_0.clause;
  71704. if (t1 == null)
  71705. return null;
  71706. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitIfRule_closure1(_box_0, this), true, t1.hasDeclarations, type$.legacy_Value_2);
  71707. },
  71708. visitImportRule$1: function(node) {
  71709. var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, supports, t8, t9, resolvedSupports, mediaQuery, t10, result0, _this = this, _null = null;
  71710. for (t1 = node.imports, t2 = t1.length, t3 = type$.legacy_CssMediaQuery_2, t4 = type$.CssValue_legacy_String_2, t5 = type$.legacy_StaticImport_2, t6 = type$.JSArray_legacy_ModifiableCssImport_2, _i = 0; _i < t2; ++_i) {
  71711. $import = t1[_i];
  71712. if ($import instanceof B.DynamicImport0)
  71713. _this._evaluate0$_visitDynamicImport$1($import);
  71714. else {
  71715. t5._as($import);
  71716. t7 = $import.url;
  71717. result = _this._evaluate0$_performInterpolation$2$warnForColor(t7, false);
  71718. supports = $import.supports;
  71719. if (supports instanceof L.SupportsDeclaration0) {
  71720. t8 = supports.name;
  71721. t8 = H.S(_this._evaluate0$_serialize$3$quote(t8.accept$1(_this), t8, true)) + ": ";
  71722. t9 = supports.value;
  71723. resolvedSupports = t8 + H.S(_this._evaluate0$_serialize$3$quote(t9.accept$1(_this), t9, true));
  71724. } else
  71725. resolvedSupports = supports == null ? _null : _this._evaluate0$_visitSupportsCondition$1(supports);
  71726. t8 = $import.media;
  71727. mediaQuery = t8 == null ? _null : _this._evaluate0$_visitMediaQueries$1(t8);
  71728. t8 = $import.span;
  71729. t9 = resolvedSupports == null ? _null : new F.CssValue0("supports(" + resolvedSupports + ")", supports.get$span(), t4);
  71730. if (mediaQuery == null)
  71731. t10 = _null;
  71732. else {
  71733. result0 = P.List_List$from(mediaQuery, false, t3);
  71734. result0.fixed$length = Array;
  71735. result0.immutable$list = Array;
  71736. t10 = result0;
  71737. }
  71738. node = new F.ModifiableCssImport0(new F.CssValue0(result, t7.span, t4), t9, t10, t8);
  71739. t7 = _this._evaluate0$_parent;
  71740. t8 = _this._evaluate0$_root;
  71741. if (t7 != t8)
  71742. t7.addChild$1(node);
  71743. else if (_this._evaluate0$_endOfImports === J.get$length$asx(t8.children._collection$_source)) {
  71744. t7 = _this._evaluate0$_root;
  71745. t7.toString;
  71746. node._node2$_parent = t7;
  71747. t7 = t7._node2$_children;
  71748. node._node2$_indexInParent = t7.length;
  71749. t7.push(node);
  71750. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  71751. } else {
  71752. t7 = _this._evaluate0$_outOfOrderImports;
  71753. (t7 == null ? _this._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], t6) : t7).push(node);
  71754. }
  71755. }
  71756. }
  71757. return _null;
  71758. },
  71759. _evaluate0$_visitDynamicImport$1: function($import) {
  71760. return this._evaluate0$_withStackFrame$3("@import", $import, new R._EvaluateVisitor__visitDynamicImport_closure1(this, $import));
  71761. },
  71762. _evaluate0$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  71763. var stylesheet, tuple, error, error0, message, t1, t2, t3, exception, _this = this;
  71764. try {
  71765. _this._evaluate0$_importSpan = span;
  71766. if (_this._nodeImporter != null) {
  71767. stylesheet = _this._importLikeNode$2(url, forImport);
  71768. if (stylesheet != null)
  71769. return new S.Tuple2(null, stylesheet, type$.Tuple2_of_legacy_Importer_and_legacy_Stylesheet_2);
  71770. } else {
  71771. t1 = P.Uri_parse(url);
  71772. t2 = _this._evaluate0$_importer;
  71773. if (baseUrl == null) {
  71774. t3 = _this._evaluate0$_stylesheet;
  71775. t3 = t3 == null ? null : t3.span;
  71776. t3 = t3 == null ? null : t3.file.url;
  71777. } else
  71778. t3 = baseUrl;
  71779. tuple = _this._evaluate0$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport);
  71780. if (tuple != null)
  71781. return tuple;
  71782. }
  71783. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  71784. throw H.wrapException(string$.x22packa);
  71785. else
  71786. throw H.wrapException("Can't find stylesheet to import.");
  71787. } catch (exception) {
  71788. t1 = H.unwrapException(exception);
  71789. if (t1 instanceof E.SassException0) {
  71790. error = t1;
  71791. t1 = _this._evaluate0$_exception$2(error._span_exception$_message, error.get$span());
  71792. throw H.wrapException(t1);
  71793. } else {
  71794. error0 = t1;
  71795. message = null;
  71796. try {
  71797. message = H._asStringS(J.get$message$x(error0));
  71798. } catch (exception) {
  71799. H.unwrapException(exception);
  71800. message = J.toString$0$(error0);
  71801. }
  71802. t1 = _this._evaluate0$_exception$1(message);
  71803. throw H.wrapException(t1);
  71804. }
  71805. } finally {
  71806. _this._evaluate0$_importSpan = null;
  71807. }
  71808. },
  71809. _evaluate0$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  71810. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  71811. },
  71812. _evaluate0$_loadStylesheet$3$forImport: function(url, span, forImport) {
  71813. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  71814. },
  71815. _importLikeNode$2: function(originalUrl, forImport) {
  71816. var contents, url, _this = this,
  71817. t1 = _this._evaluate0$_stylesheet.span,
  71818. result = _this._nodeImporter.load$3(originalUrl, t1.file.url, forImport);
  71819. if (result == null)
  71820. return null;
  71821. contents = result.item1;
  71822. url = result.item2;
  71823. t1 = J.getInterceptor$s(url).startsWith$1(url, "file:") ? $.$get$context().style.pathFromUri$1(M._parseUri(url)) : url;
  71824. _this._includedFiles.add$1(0, t1);
  71825. t1 = C.JSString_methods.startsWith$1(url, "file") ? M.Syntax_forPath0(url) : C.Syntax_SCSS0;
  71826. return V.Stylesheet_Stylesheet$parse0(contents, t1, _this._evaluate0$_logger, url);
  71827. },
  71828. visitIncludeRule$1: function(node) {
  71829. var nodeWithSpan, t1, t2, contentCallable, _this = this,
  71830. _s37_ = "Mixin doesn't accept a content block.",
  71831. mixin = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitIncludeRule_closure5(_this, node));
  71832. if (mixin == null)
  71833. throw H.wrapException(_this._evaluate0$_exception$2("Undefined mixin.", node.span));
  71834. nodeWithSpan = new B._FakeAstNode0(new R._EvaluateVisitor_visitIncludeRule_closure6(node));
  71835. if (mixin instanceof Q.BuiltInCallable0) {
  71836. if (node.content != null)
  71837. throw H.wrapException(_this._evaluate0$_exception$2(_s37_, node.span));
  71838. _this._evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
  71839. } else if (type$.legacy_UserDefinedCallable_legacy_Environment_2._is(mixin)) {
  71840. t1 = node.content;
  71841. t2 = t1 == null;
  71842. if (!t2 && !type$.legacy_MixinRule_2._as(mixin.declaration).hasContent)
  71843. throw H.wrapException(E.MultiSpanSassRuntimeException$0(_s37_, node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), _this._evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
  71844. contentCallable = t2 ? null : new E.UserDefinedCallable0(t1, _this._evaluate0$_environment.closure$0(), type$.UserDefinedCallable_legacy_Environment_2);
  71845. _this._evaluate0$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new R._EvaluateVisitor_visitIncludeRule_closure7(_this, contentCallable, mixin, nodeWithSpan));
  71846. } else
  71847. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  71848. return null;
  71849. },
  71850. visitMixinRule$1: function(node) {
  71851. var t1 = this._evaluate0$_environment,
  71852. t2 = t1.closure$0(),
  71853. t3 = t1._environment0$_mixins,
  71854. index = t3.length - 1,
  71855. t4 = node.name;
  71856. t1._environment0$_mixinIndices.$indexSet(0, t4, index);
  71857. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_legacy_Environment_2));
  71858. return null;
  71859. },
  71860. visitLoudComment$1: function(node) {
  71861. var t1, t2, _this = this;
  71862. if (_this._evaluate0$_inFunction)
  71863. return null;
  71864. t1 = _this._evaluate0$_parent;
  71865. t2 = _this._evaluate0$_root;
  71866. if (t1 == t2 && _this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  71867. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  71868. t1 = node.text;
  71869. _this._evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(_this._evaluate0$_performInterpolation$1(t1), t1.span));
  71870. return null;
  71871. },
  71872. visitMediaRule$1: function(node) {
  71873. var queries, t1, mergedQueries, _this = this;
  71874. if (_this._evaluate0$_declarationName != null)
  71875. throw H.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
  71876. queries = _this._evaluate0$_visitMediaQueries$1(node.query);
  71877. t1 = _this._evaluate0$_mediaQueries;
  71878. mergedQueries = t1 == null ? null : _this._evaluate0$_mergeMediaQueries$2(t1, queries);
  71879. t1 = mergedQueries == null;
  71880. if (!t1 && mergedQueries.length === 0)
  71881. return null;
  71882. t1 = t1 ? queries : mergedQueries;
  71883. _this._evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new R._EvaluateVisitor_visitMediaRule_closure3(_this, mergedQueries, queries, node), node.hasDeclarations, new R._EvaluateVisitor_visitMediaRule_closure4(mergedQueries), type$.legacy_ModifiableCssMediaRule_2, type$.Null);
  71884. return null;
  71885. },
  71886. _evaluate0$_visitMediaQueries$1: function(interpolation) {
  71887. return this._evaluate0$_adjustParseError$2(interpolation, new R._EvaluateVisitor__visitMediaQueries_closure1(this, this._evaluate0$_performInterpolation$2$warnForColor(interpolation, true)));
  71888. },
  71889. _evaluate0$_mergeMediaQueries$2: function(queries1, queries2) {
  71890. var t1, t2, t3, t4, t5, result,
  71891. queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery_2);
  71892. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.legacy_MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
  71893. t4 = t1.get$current(t1);
  71894. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  71895. result = t4.merge$1(t5.get$current(t5));
  71896. if (result === C._SingletonCssMediaQueryMergeResult_empty0)
  71897. continue;
  71898. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable0)
  71899. return null;
  71900. queries.push(t3._as(result).query);
  71901. }
  71902. }
  71903. return queries;
  71904. },
  71905. visitReturnRule$1: function(node) {
  71906. return node.expression.accept$1(this);
  71907. },
  71908. visitSilentComment$1: function(node) {
  71909. return null;
  71910. },
  71911. visitStyleRule$1: function(node) {
  71912. var t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, _this = this, t1 = {};
  71913. if (_this._evaluate0$_declarationName != null)
  71914. throw H.wrapException(_this._evaluate0$_exception$2(string$.Style_, node.span));
  71915. t2 = node.selector;
  71916. selectorText = _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t2, true, true);
  71917. if (_this._evaluate0$_inKeyframes) {
  71918. t1 = P.List_List$unmodifiable(_this._evaluate0$_adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure13(_this, selectorText)), type$.legacy_String);
  71919. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  71920. _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(new F.CssValue0(t1, t2.span, type$.CssValue_legacy_List_legacy_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t3), new R._EvaluateVisitor_visitStyleRule_closure14(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure15(), type$.legacy_ModifiableCssKeyframeBlock_2, type$.Null);
  71921. return null;
  71922. }
  71923. t1.parsedSelector = _this._evaluate0$_adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure16(_this, selectorText));
  71924. parsedSelector = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitStyleRule_closure17(t1, _this));
  71925. t1.parsedSelector = parsedSelector;
  71926. rule = X.ModifiableCssStyleRule$0(_this._evaluate0$_extender.addSelector$3(parsedSelector, t2.span, _this._evaluate0$_mediaQueries), node.span, t1.parsedSelector);
  71927. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  71928. _this._evaluate0$_atRootExcludingStyleRule = false;
  71929. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitStyleRule_closure18(_this, rule, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure19(), type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  71930. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  71931. if (!(_this._evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  71932. t1 = _this._evaluate0$_parent.children;
  71933. t1 = !t1.get$isEmpty(t1);
  71934. } else
  71935. t1 = false;
  71936. if (t1) {
  71937. t1 = _this._evaluate0$_parent.children;
  71938. t1.get$last(t1).isGroupEnd = true;
  71939. }
  71940. return null;
  71941. },
  71942. visitSupportsRule$1: function(node) {
  71943. var t1, t2, t3, _this = this;
  71944. if (_this._evaluate0$_declarationName != null)
  71945. throw H.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
  71946. t1 = node.condition;
  71947. t2 = _this._evaluate0$_visitSupportsCondition$1(t1);
  71948. t1 = t1.get$span();
  71949. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  71950. _this._evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(new F.CssValue0(t2, t1, type$.CssValue_legacy_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t3), new R._EvaluateVisitor_visitSupportsRule_closure3(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitSupportsRule_closure4(), type$.legacy_ModifiableCssSupportsRule_2, type$.Null);
  71951. return null;
  71952. },
  71953. _evaluate0$_visitSupportsCondition$1: function(condition) {
  71954. var t1, t2, _this = this;
  71955. if (condition instanceof U.SupportsOperation0) {
  71956. t1 = condition.left;
  71957. t2 = condition.operator;
  71958. return H.S(_this._evaluate0$_parenthesize$2(t1, t2)) + " " + t2 + " " + H.S(_this._evaluate0$_parenthesize$2(condition.right, t2));
  71959. } else if (condition instanceof M.SupportsNegation0)
  71960. return "not " + H.S(_this._evaluate0$_parenthesize$1(condition.condition));
  71961. else if (condition instanceof X.SupportsInterpolation0) {
  71962. t1 = condition.expression;
  71963. return _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, false);
  71964. } else if (condition instanceof L.SupportsDeclaration0) {
  71965. t1 = condition.name;
  71966. t1 = "(" + H.S(_this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, true)) + ": ";
  71967. t2 = condition.value;
  71968. return t1 + H.S(_this._evaluate0$_serialize$3$quote(t2.accept$1(_this), t2, true)) + ")";
  71969. } else
  71970. return null;
  71971. },
  71972. _evaluate0$_parenthesize$2: function(condition, operator) {
  71973. var t1;
  71974. if (!(condition instanceof M.SupportsNegation0))
  71975. if (condition instanceof U.SupportsOperation0)
  71976. t1 = operator == null || operator !== condition.operator;
  71977. else
  71978. t1 = false;
  71979. else
  71980. t1 = true;
  71981. if (t1)
  71982. return "(" + H.S(this._evaluate0$_visitSupportsCondition$1(condition)) + ")";
  71983. else
  71984. return this._evaluate0$_visitSupportsCondition$1(condition);
  71985. },
  71986. _evaluate0$_parenthesize$1: function(condition) {
  71987. return this._evaluate0$_parenthesize$2(condition, null);
  71988. },
  71989. visitVariableDeclaration$1: function(node) {
  71990. var t1, value, t2, _this = this, _null = null;
  71991. if (node.isGuarded) {
  71992. if (node.namespace == null && _this._evaluate0$_environment._environment0$_variables.length === 1) {
  71993. t1 = _this._evaluate0$_configuration._configuration$_values;
  71994. t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
  71995. if (t1 != null) {
  71996. _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure5(_this, node, t1));
  71997. return _null;
  71998. }
  71999. }
  72000. value = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure6(_this, node));
  72001. if (value != null && !value.$eq(0, C.C_SassNull))
  72002. return _null;
  72003. }
  72004. if (node.isGlobal && !_this._evaluate0$_environment.globalVariableExists$1(node.name)) {
  72005. t1 = _this._evaluate0$_environment._environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_C + B.declarationName0(node.span) + ": null` at the root of the\nstylesheet.";
  72006. t2 = node.span;
  72007. _this._evaluate0$_logger.warn$4$deprecation$span$trace(t1, true, t2, _this._evaluate0$_stackTrace$1(t2));
  72008. }
  72009. _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure7(_this, node, node.expression.accept$1(_this).withoutSlash$0()));
  72010. return _null;
  72011. },
  72012. visitUseRule$1: function(node) {
  72013. var configuration, t3, _i, variable, t4, t5, _this = this,
  72014. t1 = node.configuration,
  72015. t2 = t1.length;
  72016. if (t2 === 0)
  72017. configuration = C.Configuration_Map_empty_null_true0;
  72018. else {
  72019. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue_2);
  72020. for (_i = 0; _i < t2; ++_i) {
  72021. variable = t1[_i];
  72022. t4 = variable.name;
  72023. t5 = variable.expression;
  72024. t3.$indexSet(0, t4, new Z.ConfiguredValue0(t5.accept$1(_this).withoutSlash$0(), variable.span, _this._evaluate0$_expressionNode$1(t5)));
  72025. }
  72026. configuration = new A.Configuration0(t3, node, false);
  72027. }
  72028. _this._evaluate0$_loadModule$5$configuration(node.url, "@use", node, new R._EvaluateVisitor_visitUseRule_closure1(_this, node), configuration);
  72029. _this._evaluate0$_assertConfigurationIsEmpty$1(configuration);
  72030. return null;
  72031. },
  72032. visitWarnRule$1: function(node) {
  72033. var _this = this,
  72034. value = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitWarnRule_closure1(_this, node)),
  72035. t1 = value instanceof D.SassString0 ? value.text : _this._evaluate0$_serialize$2(value, node.expression);
  72036. _this._evaluate0$_logger.warn$2$trace(t1, _this._evaluate0$_stackTrace$1(node.span));
  72037. return null;
  72038. },
  72039. visitWhileRule$1: function(node) {
  72040. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitWhileRule_closure1(this, node), true, node.hasDeclarations, type$.legacy_Value_2);
  72041. },
  72042. visitBinaryOperationExpression$1: function(node) {
  72043. return this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitBinaryOperationExpression_closure1(this, node));
  72044. },
  72045. visitValueExpression$1: function(node) {
  72046. return node.value;
  72047. },
  72048. visitVariableExpression$1: function(node) {
  72049. var result = this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableExpression_closure1(this, node));
  72050. if (result != null)
  72051. return result;
  72052. throw H.wrapException(this._evaluate0$_exception$2("Undefined variable.", node.span));
  72053. },
  72054. visitUnaryOperationExpression$1: function(node) {
  72055. var operand = node.operand.accept$1(this),
  72056. t1 = node.operator;
  72057. switch (t1) {
  72058. case C.UnaryOperator_j2w0:
  72059. return operand.unaryPlus$0();
  72060. case C.UnaryOperator_U4G0:
  72061. return operand.unaryMinus$0();
  72062. case C.UnaryOperator_zDx0:
  72063. operand.toString;
  72064. return new D.SassString0("/" + N.serializeValue(operand, false, true), false);
  72065. case C.UnaryOperator_not_not0:
  72066. return operand.unaryNot$0();
  72067. default:
  72068. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  72069. }
  72070. },
  72071. visitBooleanExpression$1: function(node) {
  72072. return node.value ? C.SassBoolean_true : C.SassBoolean_false;
  72073. },
  72074. visitIfExpression$1: function(node) {
  72075. var condition, ifTrue, ifFalse, _this = this,
  72076. pair = _this._evaluate0$_evaluateMacroArguments$1(node),
  72077. positional = pair.item1,
  72078. named = pair.item2,
  72079. t1 = J.getInterceptor$asx(positional);
  72080. _this._evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
  72081. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  72082. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  72083. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  72084. return (condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse).accept$1(_this);
  72085. },
  72086. visitNullExpression$1: function(node) {
  72087. return C.C_SassNull;
  72088. },
  72089. visitNumberExpression$1: function(node) {
  72090. var t1 = node.unit;
  72091. t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_legacy_String);
  72092. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.legacy_String);
  72093. return new T.SassNumber0(node.value, t1, C.List_empty, null);
  72094. },
  72095. visitParenthesizedExpression$1: function(node) {
  72096. return node.expression.accept$1(this);
  72097. },
  72098. visitColorExpression$1: function(node) {
  72099. return node.value;
  72100. },
  72101. visitListExpression$1: function(node) {
  72102. var t1 = node.contents;
  72103. return D.SassList$0(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitListExpression_closure1(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0*>")), node.separator, node.hasBrackets);
  72104. },
  72105. visitMapExpression$1: function(node) {
  72106. var t2, t3, _i, pair, t4, keyValue, valueValue,
  72107. t1 = type$.legacy_Value_2,
  72108. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  72109. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AstNode_2);
  72110. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  72111. pair = t2[_i];
  72112. t4 = pair.item1;
  72113. keyValue = t4.accept$1(this);
  72114. valueValue = pair.item2.accept$1(this);
  72115. if (map.containsKey$1(keyValue))
  72116. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.legacy_FileSpan, type$.legacy_String), this._evaluate0$_stackTrace$1(t4.get$span())));
  72117. map.$indexSet(0, keyValue, valueValue);
  72118. keyNodes.$indexSet(0, keyValue, t4);
  72119. }
  72120. return new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  72121. },
  72122. visitFunctionExpression$1: function(node) {
  72123. var oldInFunction, result, _this = this, t1 = {},
  72124. t2 = node.name,
  72125. plainName = t2.get$asPlain();
  72126. t1.$function = null;
  72127. if ((plainName != null ? t1.$function = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure3(_this, node, plainName)) : null) == null) {
  72128. if (node.namespace != null)
  72129. throw H.wrapException(_this._evaluate0$_exception$2("Undefined function.", node.span));
  72130. t1.$function = new L.PlainCssCallable0(_this._evaluate0$_performInterpolation$1(t2));
  72131. }
  72132. oldInFunction = _this._evaluate0$_inFunction;
  72133. _this._evaluate0$_inFunction = true;
  72134. result = _this._evaluate0$_addErrorSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure4(t1, _this, node));
  72135. _this._evaluate0$_inFunction = oldInFunction;
  72136. return result;
  72137. },
  72138. _evaluate0$_getFunction$2$namespace: function($name, namespace) {
  72139. var local = this._evaluate0$_environment.getFunction$2$namespace($name, namespace);
  72140. if (local != null || namespace != null)
  72141. return local;
  72142. return this._evaluate0$_builtInFunctions.$index(0, $name);
  72143. },
  72144. _evaluate0$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  72145. var evaluated = this._evaluate0$_evaluateArguments$1($arguments),
  72146. t1 = callable.declaration.name,
  72147. $name = t1 == null ? "@content" : t1 + "()";
  72148. return this._evaluate0$_withStackFrame$3($name, nodeWithSpan, new R._EvaluateVisitor__runUserDefinedCallable_closure1(this, callable, evaluated, nodeWithSpan, run));
  72149. },
  72150. _evaluate0$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  72151. var result, t1, t2, t3, first, _i, argument, rest, _this = this;
  72152. if (callable instanceof Q.BuiltInCallable0) {
  72153. result = _this._evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan);
  72154. if (result == null)
  72155. throw H.wrapException(_this._evaluate0$_exception$2(string$.Custom, nodeWithSpan.get$span()));
  72156. return result.withoutSlash$0();
  72157. } else if (type$.legacy_UserDefinedCallable_legacy_Environment_2._is(callable))
  72158. return _this._evaluate0$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new R._EvaluateVisitor__runFunctionCallable_closure1(_this, callable)).withoutSlash$0();
  72159. else if (callable instanceof L.PlainCssCallable0) {
  72160. t1 = $arguments.named;
  72161. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  72162. throw H.wrapException(_this._evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span()));
  72163. t1 = H.S(callable.name) + "(";
  72164. for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
  72165. argument = t2[_i];
  72166. if (first)
  72167. first = false;
  72168. else
  72169. t1 += ", ";
  72170. t1 += H.S(_this._evaluate0$_serialize$3$quote(argument.accept$1(_this), argument, true));
  72171. }
  72172. t2 = $arguments.rest;
  72173. rest = t2 == null ? null : t2.accept$1(_this);
  72174. if (rest != null) {
  72175. if (!first)
  72176. t1 += ", ";
  72177. t2 = t1 + H.S(_this._evaluate0$_serialize$2(rest, t2));
  72178. t1 = t2;
  72179. }
  72180. t1 += H.Primitives_stringFromCharCode(41);
  72181. return new D.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  72182. } else
  72183. return null;
  72184. },
  72185. _evaluate0$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  72186. var callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, _this = this,
  72187. evaluated = _this._evaluate0$_evaluateArguments$2$trackSpans($arguments, false),
  72188. oldCallableNode = _this._evaluate0$_callableNode;
  72189. _this._evaluate0$_callableNode = nodeWithSpan;
  72190. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_legacy_String);
  72191. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  72192. overload = tuple.item1;
  72193. callback = tuple.item2;
  72194. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__runBuiltInCallable_closure3(overload, evaluated, namedSet));
  72195. declaredArguments = overload.$arguments;
  72196. for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
  72197. argument = declaredArguments[i];
  72198. t2 = evaluated.positional;
  72199. t3 = evaluated.named.remove$1(0, argument.name);
  72200. if (t3 == null) {
  72201. t3 = argument.defaultValue;
  72202. t3 = t3 == null ? null : t3.accept$1(_this);
  72203. }
  72204. t2.push(t3);
  72205. }
  72206. if (overload.restArgument != null) {
  72207. if (evaluated.positional.length > t1) {
  72208. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  72209. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  72210. } else
  72211. rest = C.List_empty16;
  72212. t1 = evaluated.named;
  72213. t2 = evaluated.separator === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : evaluated.separator;
  72214. t3 = type$.legacy_Value_2;
  72215. argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t1, type$.legacy_String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  72216. argumentList.SassList$3$brackets0(rest, t2, false);
  72217. evaluated.positional.push(argumentList);
  72218. } else
  72219. argumentList = null;
  72220. result = null;
  72221. try {
  72222. result = callback.call$1(evaluated.positional);
  72223. } catch (exception) {
  72224. t1 = H.unwrapException(exception);
  72225. if (type$.legacy_SassRuntimeException_2._is(t1))
  72226. throw exception;
  72227. else if (t1 instanceof E.MultiSpanSassScriptException0) {
  72228. error = t1;
  72229. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  72230. } else if (t1 instanceof E.MultiSpanSassException0) {
  72231. error0 = t1;
  72232. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, _this._evaluate0$_stackTrace$1(error0.get$span())));
  72233. } else {
  72234. error1 = t1;
  72235. message = null;
  72236. try {
  72237. message = H._asStringS(J.get$message$x(error1));
  72238. } catch (exception) {
  72239. H.unwrapException(exception);
  72240. message = J.toString$0$(error1);
  72241. }
  72242. throw H.wrapException(_this._evaluate0$_exception$2(message, nodeWithSpan.get$span()));
  72243. }
  72244. }
  72245. _this._evaluate0$_callableNode = oldCallableNode;
  72246. if (argumentList == null)
  72247. return result;
  72248. t1 = evaluated.named;
  72249. if (t1.get$isEmpty(t1))
  72250. return result;
  72251. if (argumentList._argument_list$_wereKeywordsAccessed)
  72252. return result;
  72253. t1 = evaluated.named.get$keys();
  72254. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + B.pluralize0("argument", t1.get$length(t1), null) + " named " + H.S(B.toSentence0(evaluated.named.get$keys().map$1$1(0, new R._EvaluateVisitor__runBuiltInCallable_closure4(), type$.legacy_Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  72255. },
  72256. _evaluate0$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  72257. var t1, t2, t3, _i, t4, t5, t6, t7, t8, t9, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, _this = this, _null = null;
  72258. if (trackSpans == null)
  72259. trackSpans = _this._evaluate0$_sourceMap;
  72260. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  72261. for (t2 = $arguments.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  72262. t1.push(t2[_i].accept$1(_this));
  72263. t4 = type$.legacy_String;
  72264. t5 = type$.legacy_Value_2;
  72265. t6 = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  72266. for (t7 = $arguments.named, t8 = t7.get$entries(), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  72267. t9 = t8.get$current(t8);
  72268. t6.$indexSet(0, t9.key, t9.value.accept$1(_this));
  72269. }
  72270. if (trackSpans) {
  72271. t8 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AstNode_2);
  72272. for (_i = 0; _i < t3; ++_i)
  72273. t8.push(_this._evaluate0$_expressionNode$1(t2[_i]));
  72274. positionalNodes = t8;
  72275. } else
  72276. positionalNodes = _null;
  72277. if (trackSpans) {
  72278. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  72279. for (t3 = t7.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  72280. t7 = t3.get$current(t3);
  72281. t2.$indexSet(0, t7.key, _this._evaluate0$_expressionNode$1(t7.value));
  72282. }
  72283. namedNodes = t2;
  72284. } else
  72285. namedNodes = _null;
  72286. t2 = $arguments.rest;
  72287. if (t2 == null)
  72288. return R._ArgumentResults$1(t1, t6, C.ListSeparator_undecided0, namedNodes, positionalNodes);
  72289. rest = t2.accept$1(_this);
  72290. restNodeForSpan = trackSpans ? _this._evaluate0$_expressionNode$1(t2) : _null;
  72291. if (rest instanceof A.SassMap0) {
  72292. _this._evaluate0$_addRestMap$1$3(t6, rest, t2, t5);
  72293. if (namedNodes != null) {
  72294. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  72295. for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t7 = type$.legacy_SassString_2; t3.moveNext$0();)
  72296. t2.$indexSet(0, t7._as(t3.get$current(t3)).text, restNodeForSpan);
  72297. namedNodes.addAll$1(0, t2);
  72298. }
  72299. separator = C.ListSeparator_undecided0;
  72300. } else if (rest instanceof D.SassList0) {
  72301. t2 = rest._list1$_contents;
  72302. C.JSArray_methods.addAll$1(t1, t2);
  72303. if (positionalNodes != null)
  72304. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, false, type$.legacy_AstNode_2));
  72305. separator = rest.separator;
  72306. if (rest instanceof D.SassArgumentList0) {
  72307. rest._argument_list$_wereKeywordsAccessed = true;
  72308. rest._argument_list$_keywords.forEach$1(0, new R._EvaluateVisitor__evaluateArguments_closure1(t6, namedNodes, restNodeForSpan));
  72309. }
  72310. } else {
  72311. t1.push(rest);
  72312. if (positionalNodes != null)
  72313. positionalNodes.push(restNodeForSpan);
  72314. separator = C.ListSeparator_undecided0;
  72315. }
  72316. t2 = $arguments.keywordRest;
  72317. if (t2 == null)
  72318. return R._ArgumentResults$1(t1, t6, separator, namedNodes, positionalNodes);
  72319. keywordRest = t2.accept$1(_this);
  72320. keywordRestNodeForSpan = trackSpans ? _this._evaluate0$_expressionNode$1(t2) : _null;
  72321. if (keywordRest instanceof A.SassMap0) {
  72322. _this._evaluate0$_addRestMap$1$3(t6, keywordRest, t2, t5);
  72323. if (namedNodes != null) {
  72324. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  72325. for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.legacy_SassString_2; t3.moveNext$0();)
  72326. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  72327. namedNodes.addAll$1(0, t2);
  72328. }
  72329. return R._ArgumentResults$1(t1, t6, separator, namedNodes, positionalNodes);
  72330. } else
  72331. throw H.wrapException(_this._evaluate0$_exception$2(string$.Variabs + H.S(keywordRest) + ").", t2.get$span()));
  72332. },
  72333. _evaluate0$_evaluateArguments$1: function($arguments) {
  72334. return this._evaluate0$_evaluateArguments$2$trackSpans($arguments, null);
  72335. },
  72336. _evaluate0$_evaluateMacroArguments$1: function(invocation) {
  72337. var t3, positional, named, rest, keywordRest, _this = this,
  72338. t1 = invocation.$arguments,
  72339. t2 = t1.rest;
  72340. if (t2 == null)
  72341. return new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  72342. t3 = t1.positional;
  72343. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  72344. t3 = type$.legacy_Expression_2;
  72345. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.legacy_String, t3);
  72346. rest = t2.accept$1(_this);
  72347. if (rest instanceof A.SassMap0)
  72348. _this._evaluate0$_addRestMap$1$4(named, rest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure7(), t3);
  72349. else if (rest instanceof D.SassList0) {
  72350. t2 = rest._list1$_contents;
  72351. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new R._EvaluateVisitor__evaluateMacroArguments_closure8(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0*>")));
  72352. if (rest instanceof D.SassArgumentList0) {
  72353. rest._argument_list$_wereKeywordsAccessed = true;
  72354. rest._argument_list$_keywords.forEach$1(0, new R._EvaluateVisitor__evaluateMacroArguments_closure9(named));
  72355. }
  72356. } else
  72357. positional.push(new F.ValueExpression0(rest, null));
  72358. t1 = t1.keywordRest;
  72359. if (t1 == null)
  72360. return new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  72361. keywordRest = t1.accept$1(_this);
  72362. if (keywordRest instanceof A.SassMap0) {
  72363. _this._evaluate0$_addRestMap$1$4(named, keywordRest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure10(), t3);
  72364. return new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  72365. } else
  72366. throw H.wrapException(_this._evaluate0$_exception$2(string$.Variabs + H.S(keywordRest) + ").", invocation.span));
  72367. },
  72368. _evaluate0$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  72369. var t1 = {};
  72370. t1.convert = convert;
  72371. if (convert == null)
  72372. t1.convert = new R._EvaluateVisitor__addRestMap_closure3($T);
  72373. map.contents.forEach$1(0, new R._EvaluateVisitor__addRestMap_closure4(t1, this, values, map, nodeWithSpan));
  72374. },
  72375. _evaluate0$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  72376. return this._evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  72377. },
  72378. _evaluate0$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  72379. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__verifyArguments_closure1($arguments, positional, named));
  72380. },
  72381. visitSelectorExpression$1: function(node) {
  72382. var t1 = this._evaluate0$_styleRule;
  72383. if (t1 == null)
  72384. return C.C_SassNull;
  72385. return t1.originalSelector.get$asSassList();
  72386. },
  72387. visitStringExpression$1: function(node) {
  72388. var t1 = node.text.contents;
  72389. return new D.SassString0(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitStringExpression_closure1(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0), node.hasQuotes);
  72390. },
  72391. visitCssAtRule$1: function(node) {
  72392. var t1, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
  72393. if (_this._evaluate0$_declarationName != null)
  72394. throw H.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
  72395. if (node.isChildless) {
  72396. t1 = _this._evaluate0$_parent;
  72397. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  72398. t1.addChild$1(new U.ModifiableCssAtRule0(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2));
  72399. return null;
  72400. }
  72401. wasInKeyframes = _this._evaluate0$_inKeyframes;
  72402. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  72403. t1 = node.name;
  72404. if (B.unvendor0(t1.get$value(t1)) === "keyframes")
  72405. _this._evaluate0$_inKeyframes = true;
  72406. else
  72407. _this._evaluate0$_inUnknownAtRule = true;
  72408. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  72409. _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2), new R._EvaluateVisitor_visitCssAtRule_closure3(_this, node), false, new R._EvaluateVisitor_visitCssAtRule_closure4(), type$.legacy_ModifiableCssAtRule_2, type$.Null);
  72410. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  72411. _this._evaluate0$_inKeyframes = wasInKeyframes;
  72412. },
  72413. visitCssComment$1: function(node) {
  72414. var _this = this,
  72415. t1 = _this._evaluate0$_parent,
  72416. t2 = _this._evaluate0$_root;
  72417. if (t1 == t2 && _this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  72418. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  72419. _this._evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(node.text, node.span));
  72420. },
  72421. visitCssDeclaration$1: function(node) {
  72422. this._evaluate0$_parent.addChild$1(L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap));
  72423. },
  72424. visitCssImport$1: function(node) {
  72425. var _this = this,
  72426. modifiableNode = F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports),
  72427. t1 = _this._evaluate0$_parent,
  72428. t2 = _this._evaluate0$_root;
  72429. if (t1 != t2)
  72430. t1.addChild$1(modifiableNode);
  72431. else if (_this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  72432. _this._evaluate0$_root.addChild$1(modifiableNode);
  72433. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  72434. } else {
  72435. t1 = _this._evaluate0$_outOfOrderImports;
  72436. (t1 == null ? _this._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t1).push(modifiableNode);
  72437. }
  72438. },
  72439. visitCssKeyframeBlock$1: function(node) {
  72440. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  72441. this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitCssKeyframeBlock_closure3(this, node), false, new R._EvaluateVisitor_visitCssKeyframeBlock_closure4(), type$.legacy_ModifiableCssKeyframeBlock_2, type$.Null);
  72442. },
  72443. visitCssMediaRule$1: function(node) {
  72444. var t1, mergedQueries, _this = this;
  72445. if (_this._evaluate0$_declarationName != null)
  72446. throw H.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
  72447. t1 = _this._evaluate0$_mediaQueries;
  72448. mergedQueries = t1 == null ? null : _this._evaluate0$_mergeMediaQueries$2(t1, node.queries);
  72449. t1 = mergedQueries == null;
  72450. if (!t1 && mergedQueries.length === 0)
  72451. return null;
  72452. t1 = t1 ? node.queries : mergedQueries;
  72453. _this._evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new R._EvaluateVisitor_visitCssMediaRule_closure3(_this, mergedQueries, node), false, new R._EvaluateVisitor_visitCssMediaRule_closure4(mergedQueries), type$.legacy_ModifiableCssMediaRule_2, type$.Null);
  72454. },
  72455. visitCssStyleRule$1: function(node) {
  72456. var t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this;
  72457. if (_this._evaluate0$_declarationName != null)
  72458. throw H.wrapException(_this._evaluate0$_exception$2(string$.Style_, node.span));
  72459. t1 = node.selector;
  72460. t2 = t1.value;
  72461. t3 = _this._evaluate0$_styleRule;
  72462. t3 = t3 == null ? null : t3.originalSelector;
  72463. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !_this._evaluate0$_atRootExcludingStyleRule);
  72464. rule = X.ModifiableCssStyleRule$0(_this._evaluate0$_extender.addSelector$3(originalSelector, t1.span, _this._evaluate0$_mediaQueries), node.span, originalSelector);
  72465. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  72466. _this._evaluate0$_atRootExcludingStyleRule = false;
  72467. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitCssStyleRule_closure3(_this, rule, node), false, new R._EvaluateVisitor_visitCssStyleRule_closure4(), type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  72468. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  72469. if (!(_this._evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  72470. t1 = _this._evaluate0$_parent.children;
  72471. t1 = !t1.get$isEmpty(t1);
  72472. } else
  72473. t1 = false;
  72474. if (t1) {
  72475. t1 = _this._evaluate0$_parent.children;
  72476. t1.get$last(t1).isGroupEnd = true;
  72477. }
  72478. },
  72479. visitCssStylesheet$1: function(node) {
  72480. var t1;
  72481. for (t1 = J.get$iterator$ax(node.get$children()); t1.moveNext$0();)
  72482. t1.get$current(t1).accept$1(this);
  72483. },
  72484. visitCssSupportsRule$1: function(node) {
  72485. var t1, _this = this;
  72486. if (_this._evaluate0$_declarationName != null)
  72487. throw H.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
  72488. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  72489. _this._evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitCssSupportsRule_closure3(_this, node), false, new R._EvaluateVisitor_visitCssSupportsRule_closure4(), type$.legacy_ModifiableCssSupportsRule_2, type$.Null);
  72490. },
  72491. _evaluate0$_handleReturn$1$2: function(list, callback) {
  72492. var t1, _i, result;
  72493. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i) {
  72494. result = callback.call$1(list[_i]);
  72495. if (result != null)
  72496. return result;
  72497. }
  72498. return null;
  72499. },
  72500. _evaluate0$_handleReturn$2: function(list, callback) {
  72501. return this._evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  72502. },
  72503. _evaluate0$_withEnvironment$1$2: function(environment, callback) {
  72504. var result,
  72505. oldEnvironment = this._evaluate0$_environment;
  72506. this._evaluate0$_environment = environment;
  72507. result = callback.call$0();
  72508. this._evaluate0$_environment = oldEnvironment;
  72509. return result;
  72510. },
  72511. _evaluate0$_withEnvironment$2: function(environment, callback) {
  72512. return this._evaluate0$_withEnvironment$1$2(environment, callback, type$.dynamic);
  72513. },
  72514. _evaluate0$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  72515. var result = this._evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor),
  72516. t1 = trim ? B.trimAscii0(result, true) : result;
  72517. return new F.CssValue0(t1, interpolation.span, type$.CssValue_legacy_String_2);
  72518. },
  72519. _evaluate0$_interpolationToValue$1: function(interpolation) {
  72520. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  72521. },
  72522. _evaluate0$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  72523. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  72524. },
  72525. _evaluate0$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  72526. var t1 = interpolation.contents;
  72527. return new H.MappedListIterable(t1, new R._EvaluateVisitor__performInterpolation_closure1(this, warnForColor), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  72528. },
  72529. _evaluate0$_performInterpolation$1: function(interpolation) {
  72530. return this._evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  72531. },
  72532. _evaluate0$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  72533. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__serialize_closure1(value, quote));
  72534. },
  72535. _evaluate0$_serialize$2: function(value, nodeWithSpan) {
  72536. return this._evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  72537. },
  72538. _evaluate0$_expressionNode$1: function(expression) {
  72539. var t1;
  72540. if (!this._evaluate0$_sourceMap)
  72541. return null;
  72542. if (expression instanceof S.VariableExpression0) {
  72543. t1 = this._evaluate0$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  72544. return t1 == null ? expression : t1;
  72545. } else
  72546. return expression;
  72547. },
  72548. _evaluate0$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  72549. var oldParent, result, _this = this;
  72550. _this._evaluate0$_addChild$2$through(node, through);
  72551. oldParent = _this._evaluate0$_parent;
  72552. _this._evaluate0$_parent = node;
  72553. result = _this._evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T._eval$1("0*"));
  72554. _this._evaluate0$_parent = oldParent;
  72555. return result;
  72556. },
  72557. _evaluate0$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  72558. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  72559. },
  72560. _evaluate0$_withParent$2$2: function(node, callback, $S, $T) {
  72561. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  72562. },
  72563. _evaluate0$_addChild$2$through: function(node, through) {
  72564. var grandparent,
  72565. $parent = this._evaluate0$_parent;
  72566. if (through != null) {
  72567. for (; through.call$1($parent);)
  72568. $parent = $parent._node2$_parent;
  72569. if ($parent.get$hasFollowingSibling()) {
  72570. grandparent = $parent._node2$_parent;
  72571. $parent = $parent.copyWithoutChildren$0();
  72572. grandparent.addChild$1($parent);
  72573. }
  72574. }
  72575. $parent.addChild$1(node);
  72576. },
  72577. _evaluate0$_addChild$1: function(node) {
  72578. return this._evaluate0$_addChild$2$through(node, null);
  72579. },
  72580. _evaluate0$_withStyleRule$1$2: function(rule, callback) {
  72581. var result,
  72582. oldRule = this._evaluate0$_styleRule;
  72583. this._evaluate0$_styleRule = rule;
  72584. result = callback.call$0();
  72585. this._evaluate0$_styleRule = oldRule;
  72586. return result;
  72587. },
  72588. _evaluate0$_withStyleRule$2: function(rule, callback) {
  72589. return this._evaluate0$_withStyleRule$1$2(rule, callback, type$.dynamic);
  72590. },
  72591. _evaluate0$_withMediaQueries$1$2: function(queries, callback) {
  72592. var result,
  72593. oldMediaQueries = this._evaluate0$_mediaQueries;
  72594. this._evaluate0$_mediaQueries = queries;
  72595. result = callback.call$0();
  72596. this._evaluate0$_mediaQueries = oldMediaQueries;
  72597. return result;
  72598. },
  72599. _evaluate0$_withMediaQueries$2: function(queries, callback) {
  72600. return this._evaluate0$_withMediaQueries$1$2(queries, callback, type$.dynamic);
  72601. },
  72602. _evaluate0$_withStackFrame$1$3: function(member, nodeWithSpan, callback) {
  72603. var oldMember, result, _this = this,
  72604. t1 = _this._evaluate0$_stack;
  72605. t1.push(new S.Tuple2(_this._evaluate0$_member, nodeWithSpan, type$.Tuple2_of_legacy_String_and_legacy_AstNode_2));
  72606. oldMember = _this._evaluate0$_member;
  72607. _this._evaluate0$_member = member;
  72608. result = callback.call$0();
  72609. _this._evaluate0$_member = oldMember;
  72610. t1.pop();
  72611. return result;
  72612. },
  72613. _evaluate0$_withStackFrame$3: function(member, nodeWithSpan, callback) {
  72614. return this._evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  72615. },
  72616. _evaluate0$_stackFrame$2: function(member, span) {
  72617. var url = span.file.url;
  72618. return B.frameForSpan0(span, member, url != null && this._evaluate0$_importCache != null ? this._evaluate0$_importCache.humanize$1(url) : url);
  72619. },
  72620. _evaluate0$_stackTrace$1: function(span) {
  72621. var t2, cur, _this = this,
  72622. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  72623. for (t2 = _this._evaluate0$_stack, t2 = new H.MappedListIterable(t2, new R._EvaluateVisitor__stackTrace_closure1(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame*>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  72624. cur = t2.__internal$_current;
  72625. t1.push(cur);
  72626. }
  72627. if (span != null)
  72628. t1.push(_this._evaluate0$_stackFrame$2(_this._evaluate0$_member, span));
  72629. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  72630. },
  72631. _evaluate0$_stackTrace$0: function() {
  72632. return this._evaluate0$_stackTrace$1(null);
  72633. },
  72634. _evaluate0$_warn$3$deprecation: function(message, span, deprecation) {
  72635. return this._evaluate0$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._evaluate0$_stackTrace$1(span));
  72636. },
  72637. _evaluate0$_warn$2: function(message, span) {
  72638. return this._evaluate0$_warn$3$deprecation(message, span, false);
  72639. },
  72640. _evaluate0$_exception$2: function(message, span) {
  72641. var t1 = span == null ? C.JSArray_methods.get$last(this._evaluate0$_stack).item2.get$span() : span;
  72642. return new E.SassRuntimeException0(this._evaluate0$_stackTrace$1(span), message, t1);
  72643. },
  72644. _evaluate0$_exception$1: function(message) {
  72645. return this._evaluate0$_exception$2(message, null);
  72646. },
  72647. _evaluate0$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  72648. var t1 = C.JSArray_methods.get$last(this._evaluate0$_stack).item2.get$span();
  72649. return new E.MultiSpanSassRuntimeException0(this._evaluate0$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.legacy_FileSpan, type$.legacy_String), message, t1);
  72650. },
  72651. _evaluate0$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  72652. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  72653. try {
  72654. t1 = callback.call$0();
  72655. return t1;
  72656. } catch (exception) {
  72657. t1 = H.unwrapException(exception);
  72658. if (t1 instanceof E.SassFormatException0) {
  72659. error = t1;
  72660. t1 = error;
  72661. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  72662. span = nodeWithSpan.get$span();
  72663. t1 = span;
  72664. t2 = span;
  72665. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  72666. t2 = syntheticFile;
  72667. t1 = span.file.url;
  72668. t2.toString;
  72669. t2 = new H.CodeUnits(t2);
  72670. t3 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  72671. t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
  72672. t3.SourceFile$decoded$2$url(t2, t1);
  72673. t1 = span;
  72674. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  72675. t2 = error;
  72676. t2 = G.SourceSpanException.prototype.get$span.call(t2);
  72677. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  72678. t4 = span;
  72679. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  72680. t5 = error;
  72681. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  72682. syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  72683. throw H.wrapException(this._evaluate0$_exception$2(error._span_exception$_message, syntheticSpan));
  72684. } else
  72685. throw exception;
  72686. }
  72687. },
  72688. _evaluate0$_adjustParseError$2: function(nodeWithSpan, callback) {
  72689. return this._evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  72690. },
  72691. _evaluate0$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  72692. var error, error0, t1, exception;
  72693. try {
  72694. t1 = callback.call$0();
  72695. return t1;
  72696. } catch (exception) {
  72697. t1 = H.unwrapException(exception);
  72698. if (t1 instanceof E.MultiSpanSassScriptException0) {
  72699. error = t1;
  72700. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  72701. } else if (t1 instanceof E.SassScriptException0) {
  72702. error0 = t1;
  72703. throw H.wrapException(this._evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  72704. } else
  72705. throw exception;
  72706. }
  72707. },
  72708. _evaluate0$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  72709. return this._evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  72710. },
  72711. _evaluate0$_addErrorSpan$1$2: function(nodeWithSpan, callback) {
  72712. var error, t1, exception;
  72713. try {
  72714. t1 = callback.call$0();
  72715. return t1;
  72716. } catch (exception) {
  72717. t1 = H.unwrapException(exception);
  72718. if (type$.legacy_SassRuntimeException_2._is(t1)) {
  72719. error = t1;
  72720. t1 = error.get$span();
  72721. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  72722. throw exception;
  72723. throw H.wrapException(E.SassRuntimeException$0(error._span_exception$_message, nodeWithSpan.get$span(), this._evaluate0$_stackTrace$0()));
  72724. } else
  72725. throw exception;
  72726. }
  72727. },
  72728. _evaluate0$_addErrorSpan$2: function(nodeWithSpan, callback) {
  72729. return this._evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  72730. }
  72731. };
  72732. R._EvaluateVisitor_closure19.prototype = {
  72733. call$1: function($arguments) {
  72734. var module, t2,
  72735. t1 = J.getInterceptor$asx($arguments),
  72736. variable = t1.$index($arguments, 0).assertString$1("name");
  72737. t1 = t1.$index($arguments, 1).get$realNull();
  72738. module = t1 == null ? null : t1.assertString$1("module");
  72739. t1 = this.$this._evaluate0$_environment;
  72740. t2 = variable.text;
  72741. t2.toString;
  72742. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  72743. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true : C.SassBoolean_false;
  72744. },
  72745. $signature: 14
  72746. };
  72747. R._EvaluateVisitor_closure20.prototype = {
  72748. call$1: function($arguments) {
  72749. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  72750. t1 = this.$this._evaluate0$_environment,
  72751. t2 = variable.text;
  72752. t2.toString;
  72753. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true : C.SassBoolean_false;
  72754. },
  72755. $signature: 14
  72756. };
  72757. R._EvaluateVisitor_closure21.prototype = {
  72758. call$1: function($arguments) {
  72759. var module, t2, t3, t4,
  72760. t1 = J.getInterceptor$asx($arguments),
  72761. variable = t1.$index($arguments, 0).assertString$1("name");
  72762. t1 = t1.$index($arguments, 1).get$realNull();
  72763. module = t1 == null ? null : t1.assertString$1("module");
  72764. t1 = this.$this;
  72765. t2 = t1._evaluate0$_environment;
  72766. t3 = variable.text;
  72767. t3.toString;
  72768. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  72769. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._evaluate0$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true : C.SassBoolean_false;
  72770. },
  72771. $signature: 14
  72772. };
  72773. R._EvaluateVisitor_closure22.prototype = {
  72774. call$1: function($arguments) {
  72775. var module, t2,
  72776. t1 = J.getInterceptor$asx($arguments),
  72777. variable = t1.$index($arguments, 0).assertString$1("name");
  72778. t1 = t1.$index($arguments, 1).get$realNull();
  72779. module = t1 == null ? null : t1.assertString$1("module");
  72780. t1 = this.$this._evaluate0$_environment;
  72781. t2 = variable.text;
  72782. t2.toString;
  72783. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  72784. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true : C.SassBoolean_false;
  72785. },
  72786. $signature: 14
  72787. };
  72788. R._EvaluateVisitor_closure23.prototype = {
  72789. call$1: function($arguments) {
  72790. var t1 = this.$this._evaluate0$_environment;
  72791. if (!t1._environment0$_inMixin)
  72792. throw H.wrapException(E.SassScriptException$0(string$.conten));
  72793. return t1._environment0$_content != null ? C.SassBoolean_true : C.SassBoolean_false;
  72794. },
  72795. $signature: 14
  72796. };
  72797. R._EvaluateVisitor_closure24.prototype = {
  72798. call$1: function($arguments) {
  72799. var t2, t3, t4,
  72800. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  72801. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  72802. if (module == null)
  72803. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  72804. t1 = type$.legacy_Value_2;
  72805. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  72806. for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  72807. t4 = t3.get$current(t3);
  72808. t2.$indexSet(0, new D.SassString0(t4.key, true), t4.value);
  72809. }
  72810. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  72811. },
  72812. $signature: 28
  72813. };
  72814. R._EvaluateVisitor_closure25.prototype = {
  72815. call$1: function($arguments) {
  72816. var t2, t3, t4,
  72817. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  72818. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  72819. if (module == null)
  72820. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  72821. t1 = type$.legacy_Value_2;
  72822. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  72823. for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  72824. t4 = t3.get$current(t3);
  72825. t2.$indexSet(0, new D.SassString0(t4.key, true), new F.SassFunction0(t4.value));
  72826. }
  72827. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  72828. },
  72829. $signature: 28
  72830. };
  72831. R._EvaluateVisitor_closure26.prototype = {
  72832. call$1: function($arguments) {
  72833. var module, callable,
  72834. t1 = J.getInterceptor$asx($arguments),
  72835. $name = t1.$index($arguments, 0).assertString$1("name"),
  72836. css = t1.$index($arguments, 1).get$isTruthy();
  72837. t1 = t1.$index($arguments, 2).get$realNull();
  72838. module = t1 == null ? null : t1.assertString$1("module");
  72839. if (css && module != null)
  72840. throw H.wrapException(string$.x24css_a);
  72841. if (css)
  72842. callable = new L.PlainCssCallable0($name.text);
  72843. else {
  72844. t1 = this.$this;
  72845. callable = t1._evaluate0$_addExceptionSpan$2(t1._evaluate0$_callableNode, new R._EvaluateVisitor__closure7(t1, $name, module));
  72846. }
  72847. if (callable != null)
  72848. return new F.SassFunction0(callable);
  72849. throw H.wrapException("Function not found: " + $name.toString$0(0));
  72850. },
  72851. $signature: 86
  72852. };
  72853. R._EvaluateVisitor__closure7.prototype = {
  72854. call$0: function() {
  72855. var t2,
  72856. t1 = this.name.text;
  72857. t1.toString;
  72858. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  72859. t2 = this.module;
  72860. t2 = t2 == null ? null : t2.text;
  72861. return this.$this._evaluate0$_getFunction$2$namespace(t1, t2);
  72862. },
  72863. $signature: 54
  72864. };
  72865. R._EvaluateVisitor_closure27.prototype = {
  72866. call$1: function($arguments) {
  72867. var t2, t3, t4, t5, t6, t7, t8, invocation, callable,
  72868. t1 = J.getInterceptor$asx($arguments),
  72869. $function = t1.$index($arguments, 0),
  72870. args = type$.legacy_SassArgumentList_2._as(t1.$index($arguments, 1));
  72871. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  72872. t2 = this.$this;
  72873. t3 = t2._evaluate0$_callableNode.get$span();
  72874. t4 = t2._evaluate0$_callableNode.get$span();
  72875. args._argument_list$_wereKeywordsAccessed = true;
  72876. t5 = args._argument_list$_keywords;
  72877. if (t5.get$isEmpty(t5))
  72878. t5 = null;
  72879. else {
  72880. t6 = type$.legacy_Value_2;
  72881. t7 = P.LinkedHashMap_LinkedHashMap$_empty(t6, t6);
  72882. for (args._argument_list$_wereKeywordsAccessed = true, t5 = t5.get$entries(), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  72883. t8 = t5.get$current(t5);
  72884. t7.$indexSet(0, new D.SassString0(t8.key, false), t8.value);
  72885. }
  72886. t5 = new F.ValueExpression0(new A.SassMap0(H.ConstantMap_ConstantMap$from(t7, t6, t6)), t2._evaluate0$_callableNode.get$span());
  72887. }
  72888. invocation = X.ArgumentInvocation$0(t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Expression_2), t3, t5, new F.ValueExpression0(args, t4));
  72889. if ($function instanceof D.SassString0) {
  72890. N.warn0(string$.Passins + $function.toString$0(0) + ")) instead.", true);
  72891. return t2.visitFunctionExpression$1(new F.FunctionExpression0(null, X.Interpolation$0(H.setRuntimeTypeInfo([$function.text], type$.JSArray_legacy_Object), t2._evaluate0$_callableNode.get$span()), invocation, t2._evaluate0$_callableNode.get$span()));
  72892. }
  72893. callable = $function.assertFunction$1("function").callable;
  72894. if (type$.legacy_Callable_2._is(callable))
  72895. return t2._evaluate0$_runFunctionCallable$3(invocation, callable, t2._evaluate0$_callableNode);
  72896. else
  72897. throw H.wrapException(E.SassScriptException$0("The function " + H.S(callable.get$name()) + string$.x20is_as));
  72898. },
  72899. $signature: 3
  72900. };
  72901. R._EvaluateVisitor_closure28.prototype = {
  72902. call$1: function($arguments) {
  72903. var withMap, values, configuration, t2, t3, _null = null,
  72904. t1 = J.getInterceptor$asx($arguments),
  72905. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
  72906. t1 = t1.$index($arguments, 1).get$realNull();
  72907. t1 = t1 == null ? _null : t1.assertMap$1("with");
  72908. withMap = t1 == null ? _null : t1.contents;
  72909. if (withMap != null) {
  72910. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue_2);
  72911. t1 = this.$this;
  72912. withMap.forEach$1(0, new R._EvaluateVisitor__closure5(values, t1._evaluate0$_callableNode.get$span()));
  72913. configuration = new A.Configuration0(values, t1._evaluate0$_callableNode, false);
  72914. } else
  72915. configuration = C.Configuration_Map_empty_null_true0;
  72916. t1 = this.$this;
  72917. t2 = t1._evaluate0$_callableNode;
  72918. t3 = t2.get$span();
  72919. t3 = t3 == null ? _null : t3.file.url;
  72920. t1._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new R._EvaluateVisitor__closure6(t1), t3, configuration, true);
  72921. t1._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  72922. return _null;
  72923. },
  72924. $signature: 45
  72925. };
  72926. R._EvaluateVisitor__closure5.prototype = {
  72927. call$2: function(variable, value) {
  72928. var $name,
  72929. t1 = variable.assertString$1("with key").text;
  72930. t1.toString;
  72931. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  72932. t1 = this.values;
  72933. if (t1.containsKey$1($name))
  72934. throw H.wrapException("The variable $" + $name + " was configured twice.");
  72935. t1.$indexSet(0, $name, new Z.ConfiguredValue0(value, this.span, null));
  72936. }
  72937. };
  72938. R._EvaluateVisitor__closure6.prototype = {
  72939. call$1: function(module) {
  72940. var t1 = this.$this;
  72941. return t1._evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  72942. }
  72943. };
  72944. R._EvaluateVisitor_run_closure1.prototype = {
  72945. call$0: function() {
  72946. var t2, _this = this,
  72947. t1 = _this.node,
  72948. url = t1.span.file.url;
  72949. if (url != null) {
  72950. t2 = _this.$this;
  72951. t2._evaluate0$_activeModules.$indexSet(0, url, null);
  72952. if (t2._nodeImporter != null)
  72953. if (url.get$scheme() === "file")
  72954. t2._includedFiles.add$1(0, $.$get$context().style.pathFromUri$1(M._parseUri(url)));
  72955. else if (url.toString$0(0) !== "stdin")
  72956. t2._includedFiles.add$1(0, url.toString$0(0));
  72957. }
  72958. t2 = _this.$this;
  72959. return new E.EvaluateResult0(t2._evaluate0$_combineCss$1(t2._evaluate0$_execute$2(_this.importer, t1)), t2._includedFiles);
  72960. },
  72961. $signature: 132
  72962. };
  72963. R._EvaluateVisitor__withWarnCallback_closure1.prototype = {
  72964. call$2: function(message, deprecation) {
  72965. var t1 = this.$this,
  72966. t2 = t1._evaluate0$_importSpan;
  72967. return t1._evaluate0$_warn$3$deprecation(message, t2 == null ? t1._evaluate0$_callableNode.get$span() : t2, deprecation);
  72968. },
  72969. "call*": "call$2",
  72970. $requiredArgCount: 2
  72971. };
  72972. R._EvaluateVisitor__loadModule_closure3.prototype = {
  72973. call$0: function() {
  72974. return this.callback.call$1(this.builtInModule);
  72975. },
  72976. $signature: 1
  72977. };
  72978. R._EvaluateVisitor__loadModule_closure4.prototype = {
  72979. call$0: function() {
  72980. var module, error, error0, error1, error2, message, previousLoad, exception, _this = this,
  72981. t1 = _this.$this,
  72982. t2 = _this.nodeWithSpan,
  72983. result = t1._evaluate0$_loadStylesheet$3$baseUrl(J.toString$0$(_this.url), t2.get$span(), _this.baseUrl),
  72984. importer = result.item1,
  72985. stylesheet = result.item2,
  72986. canonicalUrl = stylesheet.span.file.url,
  72987. t3 = t1._evaluate0$_activeModules;
  72988. if (t3.containsKey$1(canonicalUrl)) {
  72989. message = _this.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : string$.Module;
  72990. previousLoad = t3.$index(0, canonicalUrl);
  72991. throw H.wrapException(previousLoad == null ? t1._evaluate0$_exception$1(message) : t1._evaluate0$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  72992. }
  72993. t3.$indexSet(0, canonicalUrl, t2);
  72994. module = null;
  72995. try {
  72996. module = t1._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
  72997. } finally {
  72998. t3.remove$1(0, canonicalUrl);
  72999. }
  73000. try {
  73001. _this.callback.call$1(module);
  73002. } catch (exception) {
  73003. t2 = H.unwrapException(exception);
  73004. if (type$.legacy_SassRuntimeException_2._is(t2))
  73005. throw exception;
  73006. else if (t2 instanceof E.MultiSpanSassException0) {
  73007. error = t2;
  73008. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._evaluate0$_stackTrace$1(error.get$span())));
  73009. } else if (t2 instanceof E.SassException0) {
  73010. error0 = t2;
  73011. throw H.wrapException(t1._evaluate0$_exception$2(error0._span_exception$_message, error0.get$span()));
  73012. } else if (t2 instanceof E.MultiSpanSassScriptException0) {
  73013. error1 = t2;
  73014. throw H.wrapException(t1._evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  73015. } else if (t2 instanceof E.SassScriptException0) {
  73016. error2 = t2;
  73017. throw H.wrapException(t1._evaluate0$_exception$1(error2.message));
  73018. } else
  73019. throw exception;
  73020. }
  73021. },
  73022. $signature: 0
  73023. };
  73024. R._EvaluateVisitor__execute_closure1.prototype = {
  73025. call$0: function() {
  73026. var t2, t3, t4, css, _this = this,
  73027. t1 = _this.$this,
  73028. oldImporter = t1._evaluate0$_importer,
  73029. oldStylesheet = t1._evaluate0$_stylesheet,
  73030. oldRoot = t1._evaluate0$_root,
  73031. oldParent = t1._evaluate0$_parent,
  73032. oldEndOfImports = t1._evaluate0$_endOfImports,
  73033. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  73034. oldExtender = t1._evaluate0$_extender,
  73035. oldStyleRule = t1._evaluate0$_styleRule,
  73036. oldMediaQueries = t1._evaluate0$_mediaQueries,
  73037. oldDeclarationName = t1._evaluate0$_declarationName,
  73038. oldInUnknownAtRule = t1._evaluate0$_inUnknownAtRule,
  73039. oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule,
  73040. oldInKeyframes = t1._evaluate0$_inKeyframes,
  73041. oldConfiguration = t1._evaluate0$_configuration;
  73042. t1._evaluate0$_importer = _this.importer;
  73043. t2 = t1._evaluate0$_stylesheet = _this.stylesheet;
  73044. t3 = t2.span;
  73045. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  73046. t1._evaluate0$_parent = t1._evaluate0$_root = new V.ModifiableCssStylesheet0(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t4);
  73047. t1._evaluate0$_endOfImports = 0;
  73048. t1._evaluate0$_outOfOrderImports = null;
  73049. t1._evaluate0$_extender = _this.extender;
  73050. t1._evaluate0$_declarationName = t1._evaluate0$_mediaQueries = t1._evaluate0$_styleRule = null;
  73051. t1._evaluate0$_inKeyframes = t1._evaluate0$_atRootExcludingStyleRule = t1._evaluate0$_inUnknownAtRule = false;
  73052. t4 = _this.configuration;
  73053. if (t4 != null)
  73054. t1._evaluate0$_configuration = t4;
  73055. t1.visitStylesheet$1(t2);
  73056. css = t1._evaluate0$_outOfOrderImports == null ? t1._evaluate0$_root : new V.CssStylesheet0(new P.UnmodifiableListView(t1._evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_legacy_CssNode_2), t3);
  73057. _this._box_0.css = css;
  73058. t1._evaluate0$_importer = oldImporter;
  73059. t1._evaluate0$_stylesheet = oldStylesheet;
  73060. t1._evaluate0$_root = oldRoot;
  73061. t1._evaluate0$_parent = oldParent;
  73062. t1._evaluate0$_endOfImports = oldEndOfImports;
  73063. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  73064. t1._evaluate0$_extender = oldExtender;
  73065. t1._evaluate0$_styleRule = oldStyleRule;
  73066. t1._evaluate0$_mediaQueries = oldMediaQueries;
  73067. t1._evaluate0$_declarationName = oldDeclarationName;
  73068. t1._evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  73069. t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  73070. t1._evaluate0$_inKeyframes = oldInKeyframes;
  73071. t1._evaluate0$_configuration = oldConfiguration;
  73072. },
  73073. $signature: 0
  73074. };
  73075. R._EvaluateVisitor__combineCss_closure5.prototype = {
  73076. call$1: function(module) {
  73077. return module.get$transitivelyContainsCss();
  73078. }
  73079. };
  73080. R._EvaluateVisitor__combineCss_closure6.prototype = {
  73081. call$1: function(target) {
  73082. return !this.selectors.contains$1(0, target);
  73083. }
  73084. };
  73085. R._EvaluateVisitor__combineCss_closure7.prototype = {
  73086. call$1: function(module) {
  73087. return module.cloneCss$0();
  73088. }
  73089. };
  73090. R._EvaluateVisitor__extendModules_closure3.prototype = {
  73091. call$1: function(target) {
  73092. return !this.originalSelectors.contains$1(0, target);
  73093. }
  73094. };
  73095. R._EvaluateVisitor__extendModules_closure4.prototype = {
  73096. call$0: function() {
  73097. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extender_2);
  73098. },
  73099. $signature: 83
  73100. };
  73101. R._EvaluateVisitor__topologicalModules_visitModule1.prototype = {
  73102. call$1: function(module) {
  73103. var t1, t2, t3, _i, upstream;
  73104. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  73105. upstream = t1[_i];
  73106. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  73107. this.call$1(upstream);
  73108. }
  73109. this.sorted.addFirst$1(module);
  73110. }
  73111. };
  73112. R._EvaluateVisitor_visitAtRootRule_closure5.prototype = {
  73113. call$0: function() {
  73114. var t1 = S.SpanScanner$(this.resolved, null);
  73115. return new V.AtRootQueryParser0(t1, this.$this._evaluate0$_logger).parse$0();
  73116. },
  73117. $signature: 56
  73118. };
  73119. R._EvaluateVisitor_visitAtRootRule_closure6.prototype = {
  73120. call$0: function() {
  73121. var t1, t2, t3, _i;
  73122. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73123. t1[_i].accept$1(t3);
  73124. },
  73125. $signature: 0
  73126. };
  73127. R._EvaluateVisitor_visitAtRootRule_closure7.prototype = {
  73128. call$0: function() {
  73129. var t1, t2, t3, _i;
  73130. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73131. t1[_i].accept$1(t3);
  73132. },
  73133. "call*": "call$0",
  73134. $requiredArgCount: 0,
  73135. $signature: 0
  73136. };
  73137. R._EvaluateVisitor__scopeForAtRoot_closure11.prototype = {
  73138. call$1: function(callback) {
  73139. var t1 = this.$this,
  73140. oldParent = t1._evaluate0$_parent;
  73141. t1._evaluate0$_parent = this.newParent;
  73142. t1._evaluate0$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  73143. t1._evaluate0$_parent = oldParent;
  73144. }
  73145. };
  73146. R._EvaluateVisitor__scopeForAtRoot_closure12.prototype = {
  73147. call$1: function(callback) {
  73148. var t1 = this.$this,
  73149. oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule;
  73150. t1._evaluate0$_atRootExcludingStyleRule = true;
  73151. this.innerScope.call$1(callback);
  73152. t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  73153. }
  73154. };
  73155. R._EvaluateVisitor__scopeForAtRoot_closure13.prototype = {
  73156. call$1: function(callback) {
  73157. return this.$this._evaluate0$_withMediaQueries$2(null, new R._EvaluateVisitor__scopeForAtRoot__closure1(this.innerScope, callback));
  73158. }
  73159. };
  73160. R._EvaluateVisitor__scopeForAtRoot__closure1.prototype = {
  73161. call$0: function() {
  73162. return this.innerScope.call$1(this.callback);
  73163. },
  73164. $signature: 0
  73165. };
  73166. R._EvaluateVisitor__scopeForAtRoot_closure14.prototype = {
  73167. call$1: function(callback) {
  73168. var t1 = this.$this,
  73169. wasInKeyframes = t1._evaluate0$_inKeyframes;
  73170. t1._evaluate0$_inKeyframes = false;
  73171. this.innerScope.call$1(callback);
  73172. t1._evaluate0$_inKeyframes = wasInKeyframes;
  73173. }
  73174. };
  73175. R._EvaluateVisitor__scopeForAtRoot_closure15.prototype = {
  73176. call$1: function($parent) {
  73177. return type$.legacy_CssAtRule_2._is($parent);
  73178. }
  73179. };
  73180. R._EvaluateVisitor__scopeForAtRoot_closure16.prototype = {
  73181. call$1: function(callback) {
  73182. var t1 = this.$this,
  73183. wasInUnknownAtRule = t1._evaluate0$_inUnknownAtRule;
  73184. t1._evaluate0$_inUnknownAtRule = false;
  73185. this.innerScope.call$1(callback);
  73186. t1._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  73187. }
  73188. };
  73189. R._EvaluateVisitor_visitContentRule_closure1.prototype = {
  73190. call$0: function() {
  73191. var t1, t2, t3, _i;
  73192. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73193. t1[_i].accept$1(t3);
  73194. return null;
  73195. },
  73196. $signature: 0
  73197. };
  73198. R._EvaluateVisitor_visitDeclaration_closure1.prototype = {
  73199. call$0: function() {
  73200. var t1, t2, t3, _i;
  73201. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73202. t1[_i].accept$1(t3);
  73203. },
  73204. $signature: 0
  73205. };
  73206. R._EvaluateVisitor_visitEachRule_closure5.prototype = {
  73207. call$1: function(value) {
  73208. return this.$this._evaluate0$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  73209. }
  73210. };
  73211. R._EvaluateVisitor_visitEachRule_closure6.prototype = {
  73212. call$1: function(value) {
  73213. return this.$this._evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  73214. }
  73215. };
  73216. R._EvaluateVisitor_visitEachRule_closure7.prototype = {
  73217. call$0: function() {
  73218. var _this = this,
  73219. t1 = _this.$this;
  73220. return t1._evaluate0$_handleReturn$2(_this.list.get$asList(), new R._EvaluateVisitor_visitEachRule__closure1(t1, _this.setVariables, _this.node));
  73221. },
  73222. $signature: 12
  73223. };
  73224. R._EvaluateVisitor_visitEachRule__closure1.prototype = {
  73225. call$1: function(element) {
  73226. var t1;
  73227. this.setVariables.call$1(element);
  73228. t1 = this.$this;
  73229. return t1._evaluate0$_handleReturn$2(this.node.children, new R._EvaluateVisitor_visitEachRule___closure1(t1));
  73230. }
  73231. };
  73232. R._EvaluateVisitor_visitEachRule___closure1.prototype = {
  73233. call$1: function(child) {
  73234. return child.accept$1(this.$this);
  73235. }
  73236. };
  73237. R._EvaluateVisitor_visitExtendRule_closure1.prototype = {
  73238. call$0: function() {
  73239. return D.SelectorList_SelectorList$parse0(B.trimAscii0(this.targetText.value, true), false, true, this.$this._evaluate0$_logger);
  73240. },
  73241. $signature: 32
  73242. };
  73243. R._EvaluateVisitor_visitAtRule_closure3.prototype = {
  73244. call$0: function() {
  73245. var t3, _i,
  73246. t1 = this.$this,
  73247. t2 = t1._evaluate0$_styleRule;
  73248. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule) || t1._evaluate0$_inKeyframes)
  73249. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  73250. t2[_i].accept$1(t1);
  73251. else
  73252. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitAtRule__closure1(t1, this.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  73253. },
  73254. $signature: 0
  73255. };
  73256. R._EvaluateVisitor_visitAtRule__closure1.prototype = {
  73257. call$0: function() {
  73258. var t1, t2, t3, _i;
  73259. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73260. t1[_i].accept$1(t3);
  73261. },
  73262. $signature: 0
  73263. };
  73264. R._EvaluateVisitor_visitAtRule_closure4.prototype = {
  73265. call$1: function(node) {
  73266. return type$.legacy_CssStyleRule_2._is(node);
  73267. }
  73268. };
  73269. R._EvaluateVisitor_visitForRule_closure9.prototype = {
  73270. call$0: function() {
  73271. return this.node.from.accept$1(this.$this).assertNumber$0();
  73272. },
  73273. $signature: 90
  73274. };
  73275. R._EvaluateVisitor_visitForRule_closure10.prototype = {
  73276. call$0: function() {
  73277. return this.node.to.accept$1(this.$this).assertNumber$0();
  73278. },
  73279. $signature: 90
  73280. };
  73281. R._EvaluateVisitor_visitForRule_closure11.prototype = {
  73282. call$0: function() {
  73283. var t1 = this.toNumber,
  73284. t2 = t1.numeratorUnits;
  73285. t1 = t1.denominatorUnits;
  73286. return T.SassNumber$withUnits0(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
  73287. },
  73288. $signature: 7
  73289. };
  73290. R._EvaluateVisitor_visitForRule_closure12.prototype = {
  73291. call$0: function() {
  73292. return this.toNumber.assertInt$0();
  73293. },
  73294. $signature: 7
  73295. };
  73296. R._EvaluateVisitor_visitForRule_closure13.prototype = {
  73297. call$0: function() {
  73298. var i, t3, t4, t5, t6, result, _this = this,
  73299. t1 = _this.$this,
  73300. t2 = _this.node,
  73301. nodeWithSpan = t1._evaluate0$_expressionNode$1(t2.from);
  73302. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.children, t2 = t2.variable; i !== t3.to; i += t4) {
  73303. t6 = t1._evaluate0$_environment;
  73304. t6.setLocalVariable$3(t2, new T.SassNumber0(i, C.List_empty, C.List_empty, null), nodeWithSpan);
  73305. result = t1._evaluate0$_handleReturn$2(t5, new R._EvaluateVisitor_visitForRule__closure1(t1));
  73306. if (result != null)
  73307. return result;
  73308. }
  73309. return null;
  73310. },
  73311. $signature: 12
  73312. };
  73313. R._EvaluateVisitor_visitForRule__closure1.prototype = {
  73314. call$1: function(child) {
  73315. return child.accept$1(this.$this);
  73316. }
  73317. };
  73318. R._EvaluateVisitor_visitForwardRule_closure3.prototype = {
  73319. call$1: function(module) {
  73320. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  73321. }
  73322. };
  73323. R._EvaluateVisitor_visitForwardRule_closure4.prototype = {
  73324. call$1: function(module) {
  73325. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  73326. }
  73327. };
  73328. R._EvaluateVisitor__assertConfigurationIsEmpty_closure1.prototype = {
  73329. call$2: function($name, value) {
  73330. var t1 = this.only;
  73331. if (t1 != null && !t1.contains$1(0, $name))
  73332. return;
  73333. t1 = this.nameInError ? "$" + H.S($name) + string$.x20was_n : string$.This_v;
  73334. throw H.wrapException(this.$this._evaluate0$_exception$2(t1, value.configurationSpan));
  73335. }
  73336. };
  73337. R._EvaluateVisitor_visitIfRule_closure1.prototype = {
  73338. call$0: function() {
  73339. var t1 = this.$this;
  73340. return t1._evaluate0$_handleReturn$2(this._box_0.clause.children, new R._EvaluateVisitor_visitIfRule__closure1(t1));
  73341. },
  73342. $signature: 12
  73343. };
  73344. R._EvaluateVisitor_visitIfRule__closure1.prototype = {
  73345. call$1: function(child) {
  73346. return child.accept$1(this.$this);
  73347. }
  73348. };
  73349. R._EvaluateVisitor__visitDynamicImport_closure1.prototype = {
  73350. call$0: function() {
  73351. var previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _null = null,
  73352. _s34_ = "This file is already being loaded.",
  73353. _box_0 = {},
  73354. t1 = this.$this,
  73355. t2 = this.$import,
  73356. result = t1._evaluate0$_loadStylesheet$3$forImport(t2.url, t2.span, true),
  73357. importer = result.item1,
  73358. stylesheet = result.item2,
  73359. url = stylesheet.span.file.url,
  73360. t3 = t1._evaluate0$_activeModules;
  73361. if (t3.containsKey$1(url)) {
  73362. previousLoad = t3.$index(0, url);
  73363. throw H.wrapException(previousLoad == null ? t1._evaluate0$_exception$1(_s34_) : t1._evaluate0$_multiSpanException$3(_s34_, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  73364. }
  73365. t3.$indexSet(0, url, t2);
  73366. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_uses, type$.UnmodifiableListView_legacy_UseRule_2);
  73367. if (t2.get$length(t2) === 0) {
  73368. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_legacy_ForwardRule_2);
  73369. t2 = t2.get$length(t2) === 0;
  73370. } else
  73371. t2 = false;
  73372. if (t2) {
  73373. oldImporter = t1._evaluate0$_importer;
  73374. oldStylesheet = t1._evaluate0$_stylesheet;
  73375. t1._evaluate0$_importer = importer;
  73376. t1._evaluate0$_stylesheet = stylesheet;
  73377. t1.visitStylesheet$1(stylesheet);
  73378. t1._evaluate0$_importer = oldImporter;
  73379. t1._evaluate0$_stylesheet = oldStylesheet;
  73380. t3.remove$1(0, url);
  73381. return;
  73382. }
  73383. _box_0.children = null;
  73384. t2 = t1._evaluate0$_environment;
  73385. t4 = type$.legacy_String;
  73386. t5 = type$.legacy_Module_legacy_Callable_2;
  73387. t6 = type$.legacy_AstNode_2;
  73388. t7 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable_2);
  73389. t8 = t2._environment0$_variables;
  73390. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  73391. t9 = t2._environment0$_variableNodes;
  73392. if (t9 == null)
  73393. t9 = _null;
  73394. else
  73395. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  73396. t10 = t2._environment0$_functions;
  73397. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  73398. t11 = t2._environment0$_mixins;
  73399. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  73400. environment = O.Environment$_0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), _null, _null, _null, t7, t8, t9, t10, t11, t2._environment0$_content);
  73401. t1._evaluate0$_withEnvironment$2(environment, new R._EvaluateVisitor__visitDynamicImport__closure1(_box_0, t1, importer, stylesheet, environment));
  73402. module = O._EnvironmentModule__EnvironmentModule1(environment, new V.CssStylesheet0(new P.UnmodifiableListView(C.List_empty12, type$.UnmodifiableListView_legacy_CssNode_2), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender0, environment._environment0$_forwardedModules);
  73403. t1._evaluate0$_environment.importForwards$1(module);
  73404. if (module.transitivelyContainsCss)
  73405. t1._evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  73406. visitor = new R._ImportedCssVisitor1(t1);
  73407. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  73408. t1.get$current(t1).accept$1(visitor);
  73409. t3.remove$1(0, url);
  73410. },
  73411. $signature: 0
  73412. };
  73413. R._EvaluateVisitor__visitDynamicImport__closure1.prototype = {
  73414. call$0: function() {
  73415. var t2, t3, _this = this,
  73416. t1 = _this.$this,
  73417. oldImporter = t1._evaluate0$_importer,
  73418. oldStylesheet = t1._evaluate0$_stylesheet,
  73419. oldRoot = t1._evaluate0$_root,
  73420. oldParent = t1._evaluate0$_parent,
  73421. oldEndOfImports = t1._evaluate0$_endOfImports,
  73422. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  73423. oldConfiguration = t1._evaluate0$_configuration;
  73424. t1._evaluate0$_importer = _this.importer;
  73425. t2 = t1._evaluate0$_stylesheet = _this.stylesheet;
  73426. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  73427. t1._evaluate0$_parent = t1._evaluate0$_root = new V.ModifiableCssStylesheet0(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t3);
  73428. t1._evaluate0$_endOfImports = 0;
  73429. t1._evaluate0$_outOfOrderImports = null;
  73430. t3 = new P.UnmodifiableListView(t2._stylesheet1$_forwards, type$.UnmodifiableListView_legacy_ForwardRule_2);
  73431. if (!t3.get$isEmpty(t3))
  73432. t1._evaluate0$_configuration = _this.environment.toImplicitConfiguration$0();
  73433. t1.visitStylesheet$1(t2);
  73434. _this._box_0.children = t1._evaluate0$_addOutOfOrderImports$0();
  73435. t1._evaluate0$_importer = oldImporter;
  73436. t1._evaluate0$_stylesheet = oldStylesheet;
  73437. t1._evaluate0$_root = oldRoot;
  73438. t1._evaluate0$_parent = oldParent;
  73439. t1._evaluate0$_endOfImports = oldEndOfImports;
  73440. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  73441. t1._evaluate0$_configuration = oldConfiguration;
  73442. },
  73443. $signature: 0
  73444. };
  73445. R._EvaluateVisitor_visitIncludeRule_closure5.prototype = {
  73446. call$0: function() {
  73447. var t1 = this.node;
  73448. return this.$this._evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  73449. },
  73450. $signature: 54
  73451. };
  73452. R._EvaluateVisitor_visitIncludeRule_closure6.prototype = {
  73453. call$0: function() {
  73454. return this.node.get$spanWithoutContent();
  73455. },
  73456. "call*": "call$0",
  73457. $requiredArgCount: 0,
  73458. $signature: 26
  73459. };
  73460. R._EvaluateVisitor_visitIncludeRule_closure7.prototype = {
  73461. call$0: function() {
  73462. var _this = this,
  73463. t1 = _this.$this,
  73464. t2 = t1._evaluate0$_environment,
  73465. oldContent = t2._environment0$_content;
  73466. t2._environment0$_content = _this.contentCallable;
  73467. new R._EvaluateVisitor_visitIncludeRule__closure1(t1, _this.mixin, _this.nodeWithSpan).call$0();
  73468. t2._environment0$_content = oldContent;
  73469. return null;
  73470. },
  73471. $signature: 0
  73472. };
  73473. R._EvaluateVisitor_visitIncludeRule__closure1.prototype = {
  73474. call$0: function() {
  73475. var t1 = this.$this,
  73476. t2 = t1._evaluate0$_environment,
  73477. oldInMixin = t2._environment0$_inMixin;
  73478. t2._environment0$_inMixin = true;
  73479. new R._EvaluateVisitor_visitIncludeRule___closure1(t1, this.mixin, this.nodeWithSpan).call$0();
  73480. t2._environment0$_inMixin = oldInMixin;
  73481. return null;
  73482. },
  73483. $signature: 0
  73484. };
  73485. R._EvaluateVisitor_visitIncludeRule___closure1.prototype = {
  73486. call$0: function() {
  73487. var t1, t2, t3, t4, _i;
  73488. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
  73489. t3._evaluate0$_addErrorSpan$2(t4, new R._EvaluateVisitor_visitIncludeRule____closure1(t3, t1[_i]));
  73490. },
  73491. $signature: 0
  73492. };
  73493. R._EvaluateVisitor_visitIncludeRule____closure1.prototype = {
  73494. call$0: function() {
  73495. return this.statement.accept$1(this.$this);
  73496. },
  73497. $signature: 12
  73498. };
  73499. R._EvaluateVisitor_visitMediaRule_closure3.prototype = {
  73500. call$0: function() {
  73501. var _this = this,
  73502. t1 = _this.$this,
  73503. t2 = _this.mergedQueries;
  73504. if (t2 == null)
  73505. t2 = _this.queries;
  73506. t1._evaluate0$_withMediaQueries$2(t2, new R._EvaluateVisitor_visitMediaRule__closure1(t1, _this.node));
  73507. },
  73508. $signature: 0
  73509. };
  73510. R._EvaluateVisitor_visitMediaRule__closure1.prototype = {
  73511. call$0: function() {
  73512. var t3, _i,
  73513. t1 = this.$this,
  73514. t2 = t1._evaluate0$_styleRule;
  73515. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  73516. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  73517. t2[_i].accept$1(t1);
  73518. else
  73519. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitMediaRule___closure1(t1, this.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  73520. },
  73521. $signature: 0
  73522. };
  73523. R._EvaluateVisitor_visitMediaRule___closure1.prototype = {
  73524. call$0: function() {
  73525. var t1, t2, t3, _i;
  73526. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73527. t1[_i].accept$1(t3);
  73528. },
  73529. $signature: 0
  73530. };
  73531. R._EvaluateVisitor_visitMediaRule_closure4.prototype = {
  73532. call$1: function(node) {
  73533. var t1;
  73534. if (!type$.legacy_CssStyleRule_2._is(node))
  73535. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule_2._is(node);
  73536. else
  73537. t1 = true;
  73538. return t1;
  73539. }
  73540. };
  73541. R._EvaluateVisitor__visitMediaQueries_closure1.prototype = {
  73542. call$0: function() {
  73543. var t1 = S.SpanScanner$(this.resolved, null);
  73544. return new F.MediaQueryParser0(t1, this.$this._evaluate0$_logger).parse$0();
  73545. },
  73546. $signature: 59
  73547. };
  73548. R._EvaluateVisitor_visitStyleRule_closure13.prototype = {
  73549. call$0: function() {
  73550. var t1 = S.SpanScanner$(this.selectorText.value, null);
  73551. return new E.KeyframeSelectorParser0(t1, this.$this._evaluate0$_logger).parse$0();
  73552. },
  73553. $signature: 33
  73554. };
  73555. R._EvaluateVisitor_visitStyleRule_closure14.prototype = {
  73556. call$0: function() {
  73557. var t1, t2, t3, _i;
  73558. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73559. t1[_i].accept$1(t3);
  73560. },
  73561. $signature: 0
  73562. };
  73563. R._EvaluateVisitor_visitStyleRule_closure15.prototype = {
  73564. call$1: function(node) {
  73565. return type$.legacy_CssStyleRule_2._is(node);
  73566. }
  73567. };
  73568. R._EvaluateVisitor_visitStyleRule_closure16.prototype = {
  73569. call$0: function() {
  73570. var t1 = this.$this,
  73571. t2 = !t1._evaluate0$_stylesheet.plainCss;
  73572. return D.SelectorList_SelectorList$parse0(this.selectorText.value, t2, t2, t1._evaluate0$_logger);
  73573. },
  73574. $signature: 32
  73575. };
  73576. R._EvaluateVisitor_visitStyleRule_closure17.prototype = {
  73577. call$0: function() {
  73578. var t1 = this._box_0.parsedSelector,
  73579. t2 = this.$this,
  73580. t3 = t2._evaluate0$_styleRule;
  73581. t3 = t3 == null ? null : t3.originalSelector;
  73582. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._evaluate0$_atRootExcludingStyleRule);
  73583. },
  73584. $signature: 32
  73585. };
  73586. R._EvaluateVisitor_visitStyleRule_closure18.prototype = {
  73587. call$0: function() {
  73588. var t1 = this.$this;
  73589. t1._evaluate0$_withStyleRule$2(this.rule, new R._EvaluateVisitor_visitStyleRule__closure1(t1, this.node));
  73590. },
  73591. $signature: 0
  73592. };
  73593. R._EvaluateVisitor_visitStyleRule__closure1.prototype = {
  73594. call$0: function() {
  73595. var t1, t2, t3, _i;
  73596. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73597. t1[_i].accept$1(t3);
  73598. },
  73599. $signature: 0
  73600. };
  73601. R._EvaluateVisitor_visitStyleRule_closure19.prototype = {
  73602. call$1: function(node) {
  73603. return type$.legacy_CssStyleRule_2._is(node);
  73604. }
  73605. };
  73606. R._EvaluateVisitor_visitSupportsRule_closure3.prototype = {
  73607. call$0: function() {
  73608. var t3, _i,
  73609. t1 = this.$this,
  73610. t2 = t1._evaluate0$_styleRule;
  73611. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  73612. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  73613. t2[_i].accept$1(t1);
  73614. else
  73615. t1._evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitSupportsRule__closure1(t1, this.node), type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  73616. },
  73617. $signature: 0
  73618. };
  73619. R._EvaluateVisitor_visitSupportsRule__closure1.prototype = {
  73620. call$0: function() {
  73621. var t1, t2, t3, _i;
  73622. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  73623. t1[_i].accept$1(t3);
  73624. },
  73625. $signature: 0
  73626. };
  73627. R._EvaluateVisitor_visitSupportsRule_closure4.prototype = {
  73628. call$1: function(node) {
  73629. return type$.legacy_CssStyleRule_2._is(node);
  73630. }
  73631. };
  73632. R._EvaluateVisitor_visitVariableDeclaration_closure5.prototype = {
  73633. call$0: function() {
  73634. var t1 = this.override;
  73635. this.$this._evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  73636. },
  73637. $signature: 0
  73638. };
  73639. R._EvaluateVisitor_visitVariableDeclaration_closure6.prototype = {
  73640. call$0: function() {
  73641. var t1 = this.node;
  73642. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  73643. },
  73644. $signature: 12
  73645. };
  73646. R._EvaluateVisitor_visitVariableDeclaration_closure7.prototype = {
  73647. call$0: function() {
  73648. var t1 = this.$this,
  73649. t2 = this.node;
  73650. t1._evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  73651. },
  73652. $signature: 0
  73653. };
  73654. R._EvaluateVisitor_visitUseRule_closure1.prototype = {
  73655. call$1: function(module) {
  73656. var t1 = this.node;
  73657. this.$this._evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
  73658. }
  73659. };
  73660. R._EvaluateVisitor_visitWarnRule_closure1.prototype = {
  73661. call$0: function() {
  73662. return this.node.expression.accept$1(this.$this);
  73663. },
  73664. $signature: 12
  73665. };
  73666. R._EvaluateVisitor_visitWhileRule_closure1.prototype = {
  73667. call$0: function() {
  73668. var t1, t2, t3, result;
  73669. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  73670. result = t3._evaluate0$_handleReturn$2(t1, new R._EvaluateVisitor_visitWhileRule__closure1(t3));
  73671. if (result != null)
  73672. return result;
  73673. }
  73674. return null;
  73675. },
  73676. $signature: 12
  73677. };
  73678. R._EvaluateVisitor_visitWhileRule__closure1.prototype = {
  73679. call$1: function(child) {
  73680. return child.accept$1(this.$this);
  73681. }
  73682. };
  73683. R._EvaluateVisitor_visitBinaryOperationExpression_closure1.prototype = {
  73684. call$0: function() {
  73685. var right, result,
  73686. t1 = this.node,
  73687. t2 = this.$this,
  73688. left = t1.left.accept$1(t2);
  73689. switch (t1.operator) {
  73690. case C.BinaryOperator_kjl0:
  73691. right = t1.right.accept$1(t2);
  73692. left.toString;
  73693. t1 = N.serializeValue(left, false, true) + "=";
  73694. right.toString;
  73695. return new D.SassString0(t1 + N.serializeValue(right, false, true), false);
  73696. case C.BinaryOperator_or_or_10:
  73697. return left.get$isTruthy() ? left : t1.right.accept$1(t2);
  73698. case C.BinaryOperator_and_and_20:
  73699. return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  73700. case C.BinaryOperator_YlX0:
  73701. return J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
  73702. case C.BinaryOperator_i5H0:
  73703. return !J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
  73704. case C.BinaryOperator_AcR2:
  73705. return left.greaterThan$1(t1.right.accept$1(t2));
  73706. case C.BinaryOperator_1da0:
  73707. return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  73708. case C.BinaryOperator_8qt0:
  73709. return left.lessThan$1(t1.right.accept$1(t2));
  73710. case C.BinaryOperator_33h0:
  73711. return left.lessThanOrEquals$1(t1.right.accept$1(t2));
  73712. case C.BinaryOperator_AcR1:
  73713. return left.plus$1(t1.right.accept$1(t2));
  73714. case C.BinaryOperator_iyO0:
  73715. return left.minus$1(t1.right.accept$1(t2));
  73716. case C.BinaryOperator_O1M0:
  73717. return left.times$1(t1.right.accept$1(t2));
  73718. case C.BinaryOperator_RTB0:
  73719. right = t1.right.accept$1(t2);
  73720. result = left.dividedBy$1(right);
  73721. if (t1.allowsSlash && left instanceof T.SassNumber0 && right instanceof T.SassNumber0)
  73722. return type$.legacy_SassNumber_2._as(result).withSlash$2(left, right);
  73723. else
  73724. return result;
  73725. case C.BinaryOperator_2ad0:
  73726. return left.modulo$1(t1.right.accept$1(t2));
  73727. default:
  73728. return null;
  73729. }
  73730. },
  73731. $signature: 12
  73732. };
  73733. R._EvaluateVisitor_visitVariableExpression_closure1.prototype = {
  73734. call$0: function() {
  73735. var t1 = this.node;
  73736. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  73737. },
  73738. $signature: 12
  73739. };
  73740. R._EvaluateVisitor_visitListExpression_closure1.prototype = {
  73741. call$1: function(expression) {
  73742. return expression.accept$1(this.$this);
  73743. }
  73744. };
  73745. R._EvaluateVisitor_visitFunctionExpression_closure3.prototype = {
  73746. call$0: function() {
  73747. var t1 = this.node.namespace,
  73748. t2 = this.plainName;
  73749. if (t1 == null)
  73750. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  73751. return this.$this._evaluate0$_getFunction$2$namespace(t2, t1);
  73752. },
  73753. $signature: 54
  73754. };
  73755. R._EvaluateVisitor_visitFunctionExpression_closure4.prototype = {
  73756. call$0: function() {
  73757. var t1 = this.node;
  73758. return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  73759. },
  73760. $signature: 12
  73761. };
  73762. R._EvaluateVisitor__runUserDefinedCallable_closure1.prototype = {
  73763. call$0: function() {
  73764. var _this = this,
  73765. t1 = _this.$this,
  73766. t2 = _this.callable;
  73767. return t1._evaluate0$_withEnvironment$2(t2.environment.closure$0(), new R._EvaluateVisitor__runUserDefinedCallable__closure1(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run));
  73768. },
  73769. $signature: 12
  73770. };
  73771. R._EvaluateVisitor__runUserDefinedCallable__closure1.prototype = {
  73772. call$0: function() {
  73773. var _this = this,
  73774. t1 = _this.$this;
  73775. return t1._evaluate0$_environment.scope$1$1(new R._EvaluateVisitor__runUserDefinedCallable___closure1(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.legacy_Value_2);
  73776. },
  73777. $signature: 12
  73778. };
  73779. R._EvaluateVisitor__runUserDefinedCallable___closure1.prototype = {
  73780. call$0: function() {
  73781. var declaredArguments, minLength, t8, t9, i, t10, t11, t12, argument, value, t13, rest, argumentList, result, argumentWord, argumentNames, _this = this, _null = null,
  73782. t1 = _this.$this,
  73783. t2 = _this.evaluated,
  73784. t3 = t2.positional,
  73785. t4 = t3.length,
  73786. t5 = t2.named,
  73787. t6 = _this.callable.declaration.$arguments,
  73788. t7 = _this.nodeWithSpan;
  73789. t1._evaluate0$_verifyArguments$4(t4, t5, t6, t7);
  73790. declaredArguments = t6.$arguments;
  73791. t4 = declaredArguments.length;
  73792. minLength = Math.min(t3.length, t4);
  73793. for (t8 = t1._evaluate0$_sourceMap, t9 = t2.positionalNodes, i = 0; i < minLength; ++i) {
  73794. t10 = t1._evaluate0$_environment;
  73795. t11 = declaredArguments[i].name;
  73796. t12 = t3[i].withoutSlash$0();
  73797. t10.setLocalVariable$3(t11, t12, t8 ? t9[i] : _null);
  73798. }
  73799. for (i = t3.length, t9 = t2.namedNodes; i < t4; ++i) {
  73800. argument = declaredArguments[i];
  73801. t10 = argument.name;
  73802. value = t5.remove$1(0, t10);
  73803. if (value == null)
  73804. value = argument.defaultValue.accept$1(t1);
  73805. t11 = t1._evaluate0$_environment;
  73806. t12 = value.withoutSlash$0();
  73807. if (t8) {
  73808. t13 = t9.$index(0, t10);
  73809. if (t13 == null)
  73810. t13 = t1._evaluate0$_expressionNode$1(argument.defaultValue);
  73811. } else
  73812. t13 = _null;
  73813. t11.setLocalVariable$3(t10, t12, t13);
  73814. }
  73815. t8 = t6.restArgument;
  73816. if (t8 != null) {
  73817. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty16;
  73818. t2 = t2.separator;
  73819. if (t2 === C.ListSeparator_undecided0)
  73820. t2 = C.ListSeparator_comma0;
  73821. t3 = type$.legacy_Value_2;
  73822. argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t5, type$.legacy_String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
  73823. argumentList.SassList$3$brackets0(rest, t2, false);
  73824. t1._evaluate0$_environment.setLocalVariable$3(t8, argumentList, t7);
  73825. } else
  73826. argumentList = _null;
  73827. result = _this.run.call$0();
  73828. if (argumentList == null)
  73829. return result;
  73830. if (t5.get$isEmpty(t5))
  73831. return result;
  73832. if (argumentList._argument_list$_wereKeywordsAccessed)
  73833. return result;
  73834. t2 = t5.get$keys();
  73835. argumentWord = B.pluralize0("argument", t2.get$length(t2), _null);
  73836. t5 = t5.get$keys();
  73837. argumentNames = B.toSentence0(H.MappedIterable_MappedIterable(t5, new R._EvaluateVisitor__runUserDefinedCallable____closure1(), H._instanceType(t5)._eval$1("Iterable.E"), type$.legacy_Object), "or");
  73838. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), t1._evaluate0$_stackTrace$1(t7.get$span())));
  73839. },
  73840. $signature: 12
  73841. };
  73842. R._EvaluateVisitor__runUserDefinedCallable____closure1.prototype = {
  73843. call$1: function($name) {
  73844. return "$" + H.S($name);
  73845. }
  73846. };
  73847. R._EvaluateVisitor__runFunctionCallable_closure1.prototype = {
  73848. call$0: function() {
  73849. var t1, t2, t3, t4, _i, $returnValue;
  73850. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  73851. $returnValue = t2[_i].accept$1(t4);
  73852. if ($returnValue instanceof F.Value0)
  73853. return $returnValue;
  73854. }
  73855. throw H.wrapException(t4._evaluate0$_exception$2("Function finished without @return.", t1.span));
  73856. },
  73857. $signature: 12
  73858. };
  73859. R._EvaluateVisitor__runBuiltInCallable_closure3.prototype = {
  73860. call$0: function() {
  73861. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  73862. },
  73863. $signature: 1
  73864. };
  73865. R._EvaluateVisitor__runBuiltInCallable_closure4.prototype = {
  73866. call$1: function($name) {
  73867. return "$" + H.S($name);
  73868. }
  73869. };
  73870. R._EvaluateVisitor__evaluateArguments_closure1.prototype = {
  73871. call$2: function(key, value) {
  73872. var t1;
  73873. this.named.$indexSet(0, key, value);
  73874. t1 = this.namedNodes;
  73875. if (t1 != null)
  73876. t1.$indexSet(0, key, this.restNodeForSpan);
  73877. }
  73878. };
  73879. R._EvaluateVisitor__evaluateMacroArguments_closure7.prototype = {
  73880. call$1: function(value) {
  73881. return new F.ValueExpression0(value, null);
  73882. }
  73883. };
  73884. R._EvaluateVisitor__evaluateMacroArguments_closure8.prototype = {
  73885. call$1: function(value) {
  73886. return new F.ValueExpression0(value, null);
  73887. }
  73888. };
  73889. R._EvaluateVisitor__evaluateMacroArguments_closure9.prototype = {
  73890. call$2: function(key, value) {
  73891. this.named.$indexSet(0, key, new F.ValueExpression0(value, null));
  73892. }
  73893. };
  73894. R._EvaluateVisitor__evaluateMacroArguments_closure10.prototype = {
  73895. call$1: function(value) {
  73896. return new F.ValueExpression0(value, null);
  73897. }
  73898. };
  73899. R._EvaluateVisitor__addRestMap_closure3.prototype = {
  73900. call$1: function(value) {
  73901. return this.T._eval$1("0*")._as(value);
  73902. }
  73903. };
  73904. R._EvaluateVisitor__addRestMap_closure4.prototype = {
  73905. call$2: function(key, value) {
  73906. var _this = this;
  73907. if (key instanceof D.SassString0)
  73908. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  73909. else
  73910. throw H.wrapException(_this.$this._evaluate0$_exception$2(string$.Variab_ + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  73911. }
  73912. };
  73913. R._EvaluateVisitor__verifyArguments_closure1.prototype = {
  73914. call$0: function() {
  73915. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_legacy_String));
  73916. },
  73917. $signature: 1
  73918. };
  73919. R._EvaluateVisitor_visitStringExpression_closure1.prototype = {
  73920. call$1: function(value) {
  73921. var t1, result;
  73922. if (typeof value == "string")
  73923. return value;
  73924. type$.legacy_Expression_2._as(value);
  73925. t1 = this.$this;
  73926. result = value.accept$1(t1);
  73927. return result instanceof D.SassString0 ? result.text : t1._evaluate0$_serialize$3$quote(result, value, false);
  73928. },
  73929. $signature: 27
  73930. };
  73931. R._EvaluateVisitor_visitCssAtRule_closure3.prototype = {
  73932. call$0: function() {
  73933. var t1, t2, cur;
  73934. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  73935. cur = t1.__internal$_current;
  73936. cur.accept$1(t2);
  73937. }
  73938. },
  73939. $signature: 0
  73940. };
  73941. R._EvaluateVisitor_visitCssAtRule_closure4.prototype = {
  73942. call$1: function(node) {
  73943. return type$.legacy_CssStyleRule_2._is(node);
  73944. }
  73945. };
  73946. R._EvaluateVisitor_visitCssKeyframeBlock_closure3.prototype = {
  73947. call$0: function() {
  73948. var t1, t2, cur;
  73949. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  73950. cur = t1.__internal$_current;
  73951. cur.accept$1(t2);
  73952. }
  73953. },
  73954. $signature: 0
  73955. };
  73956. R._EvaluateVisitor_visitCssKeyframeBlock_closure4.prototype = {
  73957. call$1: function(node) {
  73958. return type$.legacy_CssStyleRule_2._is(node);
  73959. }
  73960. };
  73961. R._EvaluateVisitor_visitCssMediaRule_closure3.prototype = {
  73962. call$0: function() {
  73963. var _this = this,
  73964. t1 = _this.$this,
  73965. t2 = _this.mergedQueries;
  73966. if (t2 == null)
  73967. t2 = _this.node.queries;
  73968. t1._evaluate0$_withMediaQueries$2(t2, new R._EvaluateVisitor_visitCssMediaRule__closure1(t1, _this.node));
  73969. },
  73970. $signature: 0
  73971. };
  73972. R._EvaluateVisitor_visitCssMediaRule__closure1.prototype = {
  73973. call$0: function() {
  73974. var cur,
  73975. t1 = this.$this,
  73976. t2 = t1._evaluate0$_styleRule;
  73977. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  73978. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  73979. cur = t2.__internal$_current;
  73980. cur.accept$1(t1);
  73981. }
  73982. else
  73983. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssMediaRule___closure1(t1, this.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  73984. },
  73985. $signature: 0
  73986. };
  73987. R._EvaluateVisitor_visitCssMediaRule___closure1.prototype = {
  73988. call$0: function() {
  73989. var t1, t2, cur;
  73990. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  73991. cur = t1.__internal$_current;
  73992. cur.accept$1(t2);
  73993. }
  73994. },
  73995. $signature: 0
  73996. };
  73997. R._EvaluateVisitor_visitCssMediaRule_closure4.prototype = {
  73998. call$1: function(node) {
  73999. var t1;
  74000. if (!type$.legacy_CssStyleRule_2._is(node))
  74001. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule_2._is(node);
  74002. else
  74003. t1 = true;
  74004. return t1;
  74005. }
  74006. };
  74007. R._EvaluateVisitor_visitCssStyleRule_closure3.prototype = {
  74008. call$0: function() {
  74009. var t1 = this.$this;
  74010. t1._evaluate0$_withStyleRule$2(this.rule, new R._EvaluateVisitor_visitCssStyleRule__closure1(t1, this.node));
  74011. },
  74012. $signature: 0
  74013. };
  74014. R._EvaluateVisitor_visitCssStyleRule__closure1.prototype = {
  74015. call$0: function() {
  74016. var t1, t2, cur;
  74017. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  74018. cur = t1.__internal$_current;
  74019. cur.accept$1(t2);
  74020. }
  74021. },
  74022. $signature: 0
  74023. };
  74024. R._EvaluateVisitor_visitCssStyleRule_closure4.prototype = {
  74025. call$1: function(node) {
  74026. return type$.legacy_CssStyleRule_2._is(node);
  74027. }
  74028. };
  74029. R._EvaluateVisitor_visitCssSupportsRule_closure3.prototype = {
  74030. call$0: function() {
  74031. var cur,
  74032. t1 = this.$this,
  74033. t2 = t1._evaluate0$_styleRule;
  74034. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  74035. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  74036. cur = t2.__internal$_current;
  74037. cur.accept$1(t1);
  74038. }
  74039. else
  74040. t1._evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssSupportsRule__closure1(t1, this.node), type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  74041. },
  74042. $signature: 0
  74043. };
  74044. R._EvaluateVisitor_visitCssSupportsRule__closure1.prototype = {
  74045. call$0: function() {
  74046. var t1, t2, cur;
  74047. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  74048. cur = t1.__internal$_current;
  74049. cur.accept$1(t2);
  74050. }
  74051. },
  74052. $signature: 0
  74053. };
  74054. R._EvaluateVisitor_visitCssSupportsRule_closure4.prototype = {
  74055. call$1: function(node) {
  74056. return type$.legacy_CssStyleRule_2._is(node);
  74057. }
  74058. };
  74059. R._EvaluateVisitor__performInterpolation_closure1.prototype = {
  74060. call$1: function(value) {
  74061. var t1, result, t2, t3;
  74062. if (typeof value == "string")
  74063. return value;
  74064. type$.legacy_Expression_2._as(value);
  74065. t1 = this.$this;
  74066. result = value.accept$1(t1);
  74067. if (this.warnForColor && result instanceof K.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
  74068. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([""], type$.JSArray_legacy_Object), null);
  74069. t3 = $.$get$namesByColor0();
  74070. t1._evaluate0$_warn$2(string$.You_pr + H.S(t3.$index(0, result)) + string$.x20in_in + H.S(result) + string$.x2c_whic + H.S(t3.$index(0, result)) + string$.x22x29__If + new V.BinaryOperationExpression0(C.BinaryOperator_AcR1, new D.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  74071. }
  74072. return t1._evaluate0$_serialize$3$quote(result, value, false);
  74073. },
  74074. $signature: 27
  74075. };
  74076. R._EvaluateVisitor__serialize_closure1.prototype = {
  74077. call$0: function() {
  74078. var t1 = this.value;
  74079. t1.toString;
  74080. return N.serializeValue(t1, false, this.quote);
  74081. },
  74082. $signature: 9
  74083. };
  74084. R._EvaluateVisitor__stackTrace_closure1.prototype = {
  74085. call$1: function(tuple) {
  74086. return this.$this._evaluate0$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  74087. }
  74088. };
  74089. R._ImportedCssVisitor1.prototype = {
  74090. visitCssAtRule$1: function(node) {
  74091. var t1 = node.isChildless ? null : new R._ImportedCssVisitor_visitCssAtRule_closure1();
  74092. this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, t1);
  74093. },
  74094. visitCssComment$1: function(node) {
  74095. return this._evaluate0$_visitor._evaluate0$_addChild$1(node);
  74096. },
  74097. visitCssDeclaration$1: function(node) {
  74098. },
  74099. visitCssImport$1: function(node) {
  74100. var t1 = this._evaluate0$_visitor,
  74101. t2 = t1._evaluate0$_parent,
  74102. t3 = t1._evaluate0$_root;
  74103. if (t2 != t3)
  74104. t1._evaluate0$_addChild$1(node);
  74105. else if (t1._evaluate0$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  74106. t1._evaluate0$_addChild$1(node);
  74107. t1._evaluate0$_endOfImports = t1._evaluate0$_endOfImports + 1;
  74108. } else {
  74109. t2 = t1._evaluate0$_outOfOrderImports;
  74110. (t2 == null ? t1._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t2).push(node);
  74111. }
  74112. },
  74113. visitCssKeyframeBlock$1: function(node) {
  74114. },
  74115. visitCssMediaRule$1: function(node) {
  74116. var t1 = this._evaluate0$_visitor,
  74117. t2 = t1._evaluate0$_mediaQueries;
  74118. t1._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssMediaRule_closure1(t2 == null || t1._evaluate0$_mergeMediaQueries$2(t2, node.queries) != null));
  74119. },
  74120. visitCssStyleRule$1: function(node) {
  74121. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssStyleRule_closure1());
  74122. },
  74123. visitCssStylesheet$1: function(node) {
  74124. var t1, cur;
  74125. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  74126. cur = t1.__internal$_current;
  74127. cur.accept$1(this);
  74128. }
  74129. },
  74130. visitCssSupportsRule$1: function(node) {
  74131. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssSupportsRule_closure1());
  74132. }
  74133. };
  74134. R._ImportedCssVisitor_visitCssAtRule_closure1.prototype = {
  74135. call$1: function(node) {
  74136. return type$.legacy_CssStyleRule_2._is(node);
  74137. }
  74138. };
  74139. R._ImportedCssVisitor_visitCssMediaRule_closure1.prototype = {
  74140. call$1: function(node) {
  74141. var t1;
  74142. if (!type$.legacy_CssStyleRule_2._is(node))
  74143. t1 = this.hasBeenMerged && type$.legacy_CssMediaRule_2._is(node);
  74144. else
  74145. t1 = true;
  74146. return t1;
  74147. }
  74148. };
  74149. R._ImportedCssVisitor_visitCssStyleRule_closure1.prototype = {
  74150. call$1: function(node) {
  74151. return type$.legacy_CssStyleRule_2._is(node);
  74152. }
  74153. };
  74154. R._ImportedCssVisitor_visitCssSupportsRule_closure1.prototype = {
  74155. call$1: function(node) {
  74156. return type$.legacy_CssStyleRule_2._is(node);
  74157. }
  74158. };
  74159. R._ArgumentResults1.prototype = {};
  74160. E.SassException0.prototype = {
  74161. get$trace: function() {
  74162. return new Y.Trace(P.List_List$unmodifiable(H.setRuntimeTypeInfo([B.frameForSpan0(G.SourceSpanException.prototype.get$span.call(this), "root stylesheet", null)], type$.JSArray_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  74163. },
  74164. get$span: function() {
  74165. return G.SourceSpanException.prototype.get$span.call(this);
  74166. },
  74167. toString$0: function(_) {
  74168. var t2, _i, frame, t3,
  74169. buffer = new P.StringBuffer(""),
  74170. t1 = "Error: " + H.S(this._span_exception$_message) + "\n";
  74171. buffer._contents = t1;
  74172. buffer._contents = t1 + G.SourceSpanException.prototype.get$span.call(this).highlight$1$color(null);
  74173. for (t1 = this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  74174. frame = t1[_i];
  74175. frame.toString;
  74176. if (J.get$length$asx(frame) === 0)
  74177. continue;
  74178. t3 = buffer._contents += "\n";
  74179. buffer._contents = t3 + (" " + H.S(frame));
  74180. }
  74181. t1 = buffer._contents;
  74182. return t1.charCodeAt(0) == 0 ? t1 : t1;
  74183. }
  74184. };
  74185. E.MultiSpanSassException0.prototype = {
  74186. toString$0: function(_) {
  74187. var t2, _i, frame, t3, _this = this,
  74188. buffer = new P.StringBuffer(""),
  74189. t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
  74190. buffer._contents = t1;
  74191. buffer._contents = t1 + U.Highlighter$multiple(G.SourceSpanException.prototype.get$span.call(_this), _this.primaryLabel, _this.secondarySpans, false, null, null).highlight$0();
  74192. for (t1 = _this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  74193. frame = t1[_i];
  74194. frame.toString;
  74195. if (J.get$length$asx(frame) === 0)
  74196. continue;
  74197. t3 = buffer._contents += "\n";
  74198. buffer._contents = t3 + (" " + H.S(frame));
  74199. }
  74200. t1 = buffer._contents;
  74201. return t1.charCodeAt(0) == 0 ? t1 : t1;
  74202. }
  74203. };
  74204. E.SassRuntimeException0.prototype = {
  74205. get$trace: function() {
  74206. return this.trace;
  74207. }
  74208. };
  74209. E.MultiSpanSassRuntimeException0.prototype = {$isSassRuntimeException0: 1,
  74210. get$trace: function() {
  74211. return this.trace;
  74212. }
  74213. };
  74214. E.SassFormatException0.prototype = {
  74215. get$source: function() {
  74216. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(this).file._decodedChars, 0, null), 0, null);
  74217. },
  74218. $isFormatException: 1,
  74219. $isSourceSpanFormatException: 1
  74220. };
  74221. E.SassScriptException0.prototype = {
  74222. toString$0: function(_) {
  74223. return this.message + string$.x0a_BUG_;
  74224. },
  74225. get$message: function(receiver) {
  74226. return this.message;
  74227. }
  74228. };
  74229. E.MultiSpanSassScriptException0.prototype = {};
  74230. D.Exports.prototype = {};
  74231. T.Expression0.prototype = {$isAstNode0: 1};
  74232. X.ExtendRule0.prototype = {
  74233. accept$1$1: function(visitor) {
  74234. return visitor.visitExtendRule$1(this);
  74235. },
  74236. accept$1: function(visitor) {
  74237. return this.accept$1$1(visitor, type$.dynamic);
  74238. },
  74239. toString$0: function(_) {
  74240. return "@extend " + this.selector.toString$0(0);
  74241. },
  74242. $isAstNode0: 1,
  74243. $isStatement0: 1,
  74244. get$span: function() {
  74245. return this.span;
  74246. }
  74247. };
  74248. F.Extender0.prototype = {
  74249. get$isEmpty: function(_) {
  74250. var t1 = this._extender$_extensions;
  74251. return t1.get$isEmpty(t1);
  74252. },
  74253. get$simpleSelectors: function() {
  74254. return new M.MapKeySet(this._extender$_selectors, type$.MapKeySet_legacy_SimpleSelector_2);
  74255. },
  74256. extensionsWhereTarget$1: function($async$callback) {
  74257. var $async$self = this;
  74258. return P._makeSyncStarIterable(function() {
  74259. var callback = $async$callback;
  74260. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4;
  74261. return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
  74262. if ($async$errorCode === 1) {
  74263. $async$currentError = $async$result;
  74264. $async$goto = $async$handler;
  74265. }
  74266. while (true)
  74267. switch ($async$goto) {
  74268. case 0:
  74269. // Function start
  74270. t1 = $async$self._extender$_extensions, t2 = t1.get$keys(), t2 = t2.get$iterator(t2);
  74271. case 2:
  74272. // for condition
  74273. if (!t2.moveNext$0()) {
  74274. // goto after for
  74275. $async$goto = 3;
  74276. break;
  74277. }
  74278. t3 = t2.get$current(t2);
  74279. if (!callback.call$1(t3)) {
  74280. // goto for condition
  74281. $async$goto = 2;
  74282. break;
  74283. }
  74284. t3 = t1.$index(0, t3).get$values(), t3 = t3.get$iterator(t3);
  74285. case 4:
  74286. // for condition
  74287. if (!t3.moveNext$0()) {
  74288. // goto after for
  74289. $async$goto = 5;
  74290. break;
  74291. }
  74292. t4 = t3.get$current(t3);
  74293. $async$goto = t4 instanceof A.MergedExtension0 ? 6 : 8;
  74294. break;
  74295. case 6:
  74296. // then
  74297. t4 = t4.unmerge$0();
  74298. $async$goto = 9;
  74299. return P._IterationMarker_yieldStar(new H.WhereIterable(t4, new F.Extender_extensionsWhereTarget_closure0(), t4.$ti._eval$1("WhereIterable<Iterable.E>")));
  74300. case 9:
  74301. // after yield
  74302. // goto join
  74303. $async$goto = 7;
  74304. break;
  74305. case 8:
  74306. // else
  74307. $async$goto = !t4.isOptional ? 10 : 11;
  74308. break;
  74309. case 10:
  74310. // then
  74311. $async$goto = 12;
  74312. return t4;
  74313. case 12:
  74314. // after yield
  74315. case 11:
  74316. // join
  74317. case 7:
  74318. // join
  74319. // goto for condition
  74320. $async$goto = 4;
  74321. break;
  74322. case 5:
  74323. // after for
  74324. // goto for condition
  74325. $async$goto = 2;
  74326. break;
  74327. case 3:
  74328. // after for
  74329. // implicit return
  74330. return P._IterationMarker_endOfIteration();
  74331. case 1:
  74332. // rethrow
  74333. return P._IterationMarker_uncaughtError($async$currentError);
  74334. }
  74335. };
  74336. }, type$.legacy_Extension_2);
  74337. },
  74338. addSelector$3: function(selector, span, mediaContext) {
  74339. var originalSelector, error, t1, t2, t3, _i, exception, modifiableSelector, _this = this;
  74340. selector = selector;
  74341. originalSelector = selector;
  74342. if (!originalSelector.get$isInvisible())
  74343. for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._extender$_originals, _i = 0; _i < t2; ++_i)
  74344. t3.add$1(0, t1[_i]);
  74345. t1 = _this._extender$_extensions;
  74346. if (t1.get$isNotEmpty(t1))
  74347. try {
  74348. selector = _this._extender$_extendList$3(originalSelector, t1, mediaContext);
  74349. } catch (exception) {
  74350. t1 = H.unwrapException(exception);
  74351. if (t1 instanceof E.SassException0) {
  74352. error = t1;
  74353. throw H.wrapException(E.SassException$0("From " + error.get$span().message$1(0, "") + "\n" + H.S(error._span_exception$_message), span));
  74354. } else
  74355. throw exception;
  74356. }
  74357. modifiableSelector = new F.ModifiableCssValue0(selector, span, type$.ModifiableCssValue_legacy_SelectorList_2);
  74358. if (mediaContext != null)
  74359. _this._extender$_mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  74360. _this._extender$_registerSelector$2(selector, modifiableSelector);
  74361. return modifiableSelector;
  74362. },
  74363. _extender$_registerSelector$2: function(list, selector) {
  74364. var t1, t2, t3, _i, t4, t5, _i0, component, t6, t7, _i1, simple;
  74365. for (t1 = list.components, t2 = t1.length, t3 = this._extender$_selectors, _i = 0; _i < t2; ++_i)
  74366. for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) {
  74367. component = t4[_i0];
  74368. if (component instanceof X.CompoundSelector0)
  74369. for (t6 = component.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
  74370. simple = t6[_i1];
  74371. J.add$1$ax(t3.putIfAbsent$2(simple, new F.Extender__registerSelector_closure0()), selector);
  74372. if (simple instanceof D.PseudoSelector0 && simple.selector != null)
  74373. this._extender$_registerSelector$2(simple.selector, selector);
  74374. }
  74375. }
  74376. },
  74377. addExtension$4: function(extender, target, extend, mediaContext) {
  74378. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, _i, complex, t12, state, existingState, t13, _i0, component, t14, t15, _i1, simple, newExtensionsByTarget, additionalExtensions, _this = this,
  74379. selectors = _this._extender$_selectors.$index(0, target),
  74380. t1 = _this._extender$_extensionsByExtender,
  74381. existingExtensions = t1.$index(0, target),
  74382. sources = _this._extender$_extensions.putIfAbsent$2(target, new F.Extender_addExtension_closure2());
  74383. for (t2 = extender.value.components, t3 = t2.length, t4 = selectors == null, t5 = _this._extender$_sourceSpecificity, t6 = extender.span, t7 = extend.span, t8 = extend.isOptional, t9 = existingExtensions != null, t10 = type$.legacy_ComplexSelector_2, t11 = type$.legacy_Extension_2, newExtensions = null, _i = 0; _i < t3; ++_i) {
  74384. complex = t2[_i];
  74385. if (complex._complex0$_maxSpecificity == null)
  74386. complex._complex0$_computeSpecificity$0();
  74387. t12 = complex._complex0$_maxSpecificity;
  74388. state = new S.Extension0(complex, target, t12, t8, false, mediaContext, t6, t7);
  74389. existingState = sources.$index(0, complex);
  74390. if (existingState != null) {
  74391. sources.$indexSet(0, complex, A.MergedExtension_merge0(existingState, state));
  74392. continue;
  74393. }
  74394. sources.$indexSet(0, complex, state);
  74395. for (t12 = complex.components, t13 = t12.length, _i0 = 0; _i0 < t13; ++_i0) {
  74396. component = t12[_i0];
  74397. if (component instanceof X.CompoundSelector0)
  74398. for (t14 = component.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1) {
  74399. simple = t14[_i1];
  74400. J.add$1$ax(t1.putIfAbsent$2(simple, new F.Extender_addExtension_closure3()), state);
  74401. t5.putIfAbsent$2(simple, new F.Extender_addExtension_closure4(complex));
  74402. }
  74403. }
  74404. if (!t4 || t9) {
  74405. if (newExtensions == null)
  74406. newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
  74407. newExtensions.$indexSet(0, complex, state);
  74408. }
  74409. }
  74410. if (newExtensions == null)
  74411. return;
  74412. newExtensionsByTarget = P.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], type$.legacy_SimpleSelector_2, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2);
  74413. if (t9) {
  74414. additionalExtensions = _this._extender$_extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  74415. if (additionalExtensions != null)
  74416. B.mapAddAll20(newExtensionsByTarget, additionalExtensions);
  74417. }
  74418. if (!t4)
  74419. _this._extender$_extendExistingSelectors$2(selectors, newExtensionsByTarget);
  74420. },
  74421. _extender$_extendExistingExtensions$2: function(extensions, newExtensions) {
  74422. var extension, selectors, error, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, sources, exception, containsExtension, t7, t8, first, _i0, complex, t9, t10, t11, t12, t13, t14, withExtender, existingExtension, _i1, component, _i2;
  74423. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extender$_extensionsByExtender, t4 = type$.legacy_SimpleSelector_2, t5 = type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2, t6 = this._extender$_extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  74424. extension = t1[_i];
  74425. sources = t6.$index(0, extension.target);
  74426. selectors = null;
  74427. try {
  74428. selectors = this._extender$_extendComplex$3(extension.extender, newExtensions, extension.mediaContext);
  74429. if (selectors == null)
  74430. continue;
  74431. } catch (exception) {
  74432. t1 = H.unwrapException(exception);
  74433. if (t1 instanceof E.SassException0) {
  74434. error = t1;
  74435. throw H.wrapException(E.SassException$0("From " + extension.extenderSpan.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  74436. } else
  74437. throw exception;
  74438. }
  74439. containsExtension = J.$eq$(J.get$first$ax(selectors), extension.extender);
  74440. for (t7 = selectors, t8 = t7.length, first = false, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, H.throwConcurrentModificationError)(t7), ++_i0) {
  74441. complex = t7[_i0];
  74442. if (containsExtension && first) {
  74443. first = false;
  74444. continue;
  74445. }
  74446. t9 = extension;
  74447. t10 = t9.target;
  74448. t11 = t9.extenderSpan;
  74449. t12 = t9.span;
  74450. t13 = t9.mediaContext;
  74451. t14 = t9.specificity;
  74452. t9 = t9.isOptional;
  74453. if (t14 == null) {
  74454. if (complex._complex0$_maxSpecificity == null)
  74455. complex._complex0$_computeSpecificity$0();
  74456. t14 = complex._complex0$_maxSpecificity;
  74457. }
  74458. withExtender = new S.Extension0(complex, t10, t14, t9, false, t13, t11, t12);
  74459. existingExtension = sources.$index(0, complex);
  74460. if (existingExtension != null)
  74461. sources.$indexSet(0, complex, A.MergedExtension_merge0(existingExtension, withExtender));
  74462. else {
  74463. sources.$indexSet(0, complex, withExtender);
  74464. for (t9 = complex.components, t10 = t9.length, _i1 = 0; _i1 < t10; ++_i1) {
  74465. component = t9[_i1];
  74466. if (component instanceof X.CompoundSelector0)
  74467. for (t11 = component.components, t12 = t11.length, _i2 = 0; _i2 < t12; ++_i2)
  74468. J.add$1$ax(t3.putIfAbsent$2(t11[_i2], new F.Extender__extendExistingExtensions_closure1()), withExtender);
  74469. }
  74470. if (newExtensions.containsKey$1(extension.target)) {
  74471. if (additionalExtensions == null)
  74472. additionalExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  74473. additionalExtensions.putIfAbsent$2(extension.target, new F.Extender__extendExistingExtensions_closure2()).$indexSet(0, complex, withExtender);
  74474. }
  74475. }
  74476. }
  74477. if (!containsExtension)
  74478. sources.remove$1(0, extension.extender);
  74479. }
  74480. return additionalExtensions;
  74481. },
  74482. _extender$_extendExistingSelectors$2: function(selectors, newExtensions) {
  74483. var selector, error, t1, t2, oldValue, exception;
  74484. for (t1 = selectors.get$iterator(selectors), t2 = this._extender$_mediaContexts; t1.moveNext$0();) {
  74485. selector = t1.get$current(t1);
  74486. oldValue = selector.value;
  74487. try {
  74488. selector.value = this._extender$_extendList$3(selector.value, newExtensions, t2.$index(0, selector));
  74489. } catch (exception) {
  74490. t1 = H.unwrapException(exception);
  74491. if (t1 instanceof E.SassException0) {
  74492. error = t1;
  74493. throw H.wrapException(E.SassException$0("From " + selector.span.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  74494. } else
  74495. throw exception;
  74496. }
  74497. if (oldValue == selector.value)
  74498. continue;
  74499. this._extender$_registerSelector$2(selector.value, selector);
  74500. }
  74501. },
  74502. addExtensions$1: function(extenders) {
  74503. var t1, t2, t3, _this = this, _box_0 = {};
  74504. _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
  74505. for (t1 = J.get$iterator$ax(extenders), t2 = _this._extender$_sourceSpecificity; t1.moveNext$0();) {
  74506. t3 = t1.get$current(t1);
  74507. if (t3.get$isEmpty(t3))
  74508. continue;
  74509. t2.addAll$1(0, t3.get$_extender$_sourceSpecificity());
  74510. t3.get$_extender$_extensions().forEach$1(0, new F.Extender_addExtensions_closure0(_box_0, _this, t3));
  74511. }
  74512. t1 = _box_0.newExtensions;
  74513. if (t1 == null)
  74514. return;
  74515. t2 = _box_0.extensionsToExtend;
  74516. if (t2 != null)
  74517. _this._extender$_extendExistingExtensions$2(t2, t1);
  74518. t1 = _box_0.selectorsToExtend;
  74519. if (t1 != null)
  74520. _this._extender$_extendExistingSelectors$2(t1, _box_0.newExtensions);
  74521. },
  74522. _extender$_extendList$3: function(list, extensions, mediaQueryContext) {
  74523. var t1, t2, t3, extended, i, complex, result, t4;
  74524. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_legacy_ComplexSelector_2, extended = null, i = 0; i < t2; ++i) {
  74525. complex = t1[i];
  74526. result = this._extender$_extendComplex$3(complex, extensions, mediaQueryContext);
  74527. if (result == null) {
  74528. if (extended != null)
  74529. extended.push(complex);
  74530. } else {
  74531. if (extended == null)
  74532. if (i === 0)
  74533. extended = H.setRuntimeTypeInfo([], t3);
  74534. else {
  74535. t4 = C.JSArray_methods.sublist$2(t1, 0, i);
  74536. extended = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4)._eval$1("JSArray<1>"));
  74537. }
  74538. C.JSArray_methods.addAll$1(extended, result);
  74539. }
  74540. }
  74541. if (extended == null)
  74542. return list;
  74543. t1 = this._extender$_originals;
  74544. return D.SelectorList$0(J.where$1$ax(this._extender$_trim$2(extended, t1.get$contains(t1)), new F.Extender__extendList_closure0()));
  74545. },
  74546. _extender$_extendComplex$3: function(complex, extensions, mediaQueryContext) {
  74547. var t1, t2, t3, t4, t5, t6, extendedNotExpanded, i, component, extended, result, t7, t8,
  74548. _s28_ = "components may not be empty.",
  74549. _box_0 = {},
  74550. isOriginal = this._extender$_originals.contains$1(0, complex);
  74551. for (t1 = complex.components, t2 = t1.length, t3 = type$.JSArray_legacy_ComplexSelector_2, t4 = type$.JSArray_legacy_ComplexSelectorComponent_2, t5 = type$.legacy_ComplexSelectorComponent_2, t6 = H._arrayInstanceType(t1)._precomputed1, extendedNotExpanded = null, i = 0; i < t2; ++i) {
  74552. component = t1[i];
  74553. if (component instanceof X.CompoundSelector0) {
  74554. extended = this._extender$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
  74555. if (extended == null) {
  74556. if (extendedNotExpanded != null) {
  74557. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  74558. result.fixed$length = Array;
  74559. result.immutable$list = Array;
  74560. t7 = result;
  74561. if (t7.length === 0)
  74562. H.throwExpression(P.ArgumentError$(_s28_));
  74563. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector0(t7, false)], t3));
  74564. }
  74565. } else {
  74566. if (extendedNotExpanded == null) {
  74567. t7 = H.SubListIterable$(t1, 0, i, t6);
  74568. t8 = t7.$ti._eval$1("MappedListIterable<ListIterable.E,List<ComplexSelector0*>*>");
  74569. extendedNotExpanded = P.List_List$from(new H.MappedListIterable(t7, new F.Extender__extendComplex_closure1(complex), t8), true, t8._eval$1("ListIterable.E"));
  74570. }
  74571. C.JSArray_methods.add$1(extendedNotExpanded, extended);
  74572. }
  74573. } else if (extendedNotExpanded != null) {
  74574. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  74575. result.fixed$length = Array;
  74576. result.immutable$list = Array;
  74577. t7 = result;
  74578. if (t7.length === 0)
  74579. H.throwExpression(P.ArgumentError$(_s28_));
  74580. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector0(t7, false)], t3));
  74581. }
  74582. }
  74583. if (extendedNotExpanded == null)
  74584. return null;
  74585. _box_0.first = true;
  74586. t1 = type$.legacy_ComplexSelector_2;
  74587. t1 = J.expand$1$1$ax(Y.paths0(extendedNotExpanded, t1), new F.Extender__extendComplex_closure2(_box_0, this, complex), t1);
  74588. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  74589. },
  74590. _extender$_extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
  74591. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, result, t12, t13, _this = this, _null = null,
  74592. _s28_ = "components may not be empty.",
  74593. _box_1 = {},
  74594. t1 = _this._extender$_mode,
  74595. targetsUsed = t1 === C.ExtendMode_normal0 || extensions.get$length(extensions) < 2 ? _null : P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_SimpleSelector_2);
  74596. for (t2 = compound.components, t3 = t2.length, t4 = type$.JSArray_legacy_List_legacy_Extension_2, t5 = type$.JSArray_legacy_Extension_2, t6 = type$.JSArray_legacy_ComplexSelectorComponent_2, t7 = type$.legacy_ComplexSelectorComponent_2, t8 = H._arrayInstanceType(t2)._precomputed1, t9 = type$.legacy_SimpleSelector_2, t10 = _this._extender$_sourceSpecificity, t11 = type$.JSArray_legacy_SimpleSelector_2, options = _null, i = 0; i < t3; ++i) {
  74597. simple = t2[i];
  74598. extended = _this._extender$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
  74599. if (extended == null) {
  74600. if (options != null) {
  74601. result = P.List_List$from(H.setRuntimeTypeInfo([simple], t11), false, t9);
  74602. result.fixed$length = Array;
  74603. result.immutable$list = Array;
  74604. t12 = result;
  74605. if (t12.length === 0)
  74606. H.throwExpression(P.ArgumentError$(_s28_));
  74607. result = P.List_List$from(H.setRuntimeTypeInfo([new X.CompoundSelector0(t12)], t6), false, t7);
  74608. result.fixed$length = Array;
  74609. result.immutable$list = Array;
  74610. t12 = result;
  74611. if (t12.length === 0)
  74612. H.throwExpression(P.ArgumentError$(_s28_));
  74613. t13 = t10.$index(0, simple);
  74614. if (t13 == null)
  74615. t13 = 0;
  74616. options.push(H.setRuntimeTypeInfo([new S.Extension0(new S.ComplexSelector0(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
  74617. }
  74618. } else {
  74619. if (options == null) {
  74620. options = H.setRuntimeTypeInfo([], t4);
  74621. if (i !== 0) {
  74622. result = P.List_List$from(H.SubListIterable$(t2, 0, i, t8), false, t9);
  74623. result.fixed$length = Array;
  74624. result.immutable$list = Array;
  74625. t12 = result;
  74626. compound = new X.CompoundSelector0(t12);
  74627. if (t12.length === 0)
  74628. H.throwExpression(P.ArgumentError$(_s28_));
  74629. result = P.List_List$from(H.setRuntimeTypeInfo([compound], t6), false, t7);
  74630. result.fixed$length = Array;
  74631. result.immutable$list = Array;
  74632. t12 = result;
  74633. if (t12.length === 0)
  74634. H.throwExpression(P.ArgumentError$(_s28_));
  74635. t13 = _this._extender$_sourceSpecificityFor$1(compound);
  74636. options.push(H.setRuntimeTypeInfo([new S.Extension0(new S.ComplexSelector0(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
  74637. }
  74638. }
  74639. C.JSArray_methods.addAll$1(options, extended);
  74640. }
  74641. }
  74642. if (options == null)
  74643. return _null;
  74644. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
  74645. return _null;
  74646. if (options.length === 1)
  74647. return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure3(mediaQueryContext), type$.legacy_ComplexSelector_2).toList$0(0);
  74648. _box_1.first = t1 !== C.ExtendMode_replace0;
  74649. t1 = J.map$1$1$ax(Y.paths0(options, type$.legacy_Extension_2), new F.Extender__extendCompound_closure4(_box_1, mediaQueryContext), type$.legacy_List_legacy_ComplexSelector_2).where$1(0, new F.Extender__extendCompound_closure5());
  74650. t2 = t1.$ti._eval$1("ExpandIterable<Iterable.E,ComplexSelector0*>");
  74651. return P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure6(), t2), true, t2._eval$1("Iterable.E"));
  74652. },
  74653. _extender$_extendSimple$4: function(simple, extensions, mediaQueryContext, targetsUsed) {
  74654. var extended, result,
  74655. t1 = new F.Extender__extendSimple_withoutPseudo0(this, extensions, targetsUsed);
  74656. if (simple instanceof D.PseudoSelector0 && simple.selector != null) {
  74657. extended = this._extender$_extendPseudo$3(simple, extensions, mediaQueryContext);
  74658. if (extended != null)
  74659. return new H.MappedListIterable(extended, new F.Extender__extendSimple_closure0(this, t1), H._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extension0*>*>"));
  74660. }
  74661. result = t1.call$1(simple);
  74662. return result == null ? null : H.setRuntimeTypeInfo([result], type$.JSArray_legacy_List_legacy_Extension_2);
  74663. },
  74664. _extender$_extensionForSimple$1: function(simple) {
  74665. var t1 = S.ComplexSelector$0(H.setRuntimeTypeInfo([X.CompoundSelector$0(H.setRuntimeTypeInfo([simple], type$.JSArray_legacy_SimpleSelector_2))], type$.JSArray_legacy_ComplexSelectorComponent_2), false),
  74666. t2 = this._extender$_sourceSpecificity.$index(0, simple);
  74667. return S.Extension$oneOff0(t1, true, t2 == null ? 0 : t2);
  74668. },
  74669. _extender$_extendPseudo$3: function(pseudo, extensions, mediaQueryContext) {
  74670. var complexes, t2, result,
  74671. t1 = pseudo.selector,
  74672. extended = this._extender$_extendList$3(t1, extensions, mediaQueryContext);
  74673. if (extended == t1)
  74674. return null;
  74675. complexes = extended.components;
  74676. t2 = pseudo.normalizedName === "not";
  74677. if (t2 && !C.JSArray_methods.any$1(t1.components, new F.Extender__extendPseudo_closure4()) && C.JSArray_methods.any$1(complexes, new F.Extender__extendPseudo_closure5()))
  74678. complexes = new H.WhereIterable(complexes, new F.Extender__extendPseudo_closure6(), H._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  74679. complexes = J.expand$1$1$ax(complexes, new F.Extender__extendPseudo_closure7(pseudo), type$.legacy_ComplexSelector_2);
  74680. if (t2 && t1.components.length === 1) {
  74681. t1 = H.MappedIterable_MappedIterable(complexes, new F.Extender__extendPseudo_closure8(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.legacy_PseudoSelector_2);
  74682. result = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  74683. return result.length === 0 ? null : result;
  74684. } else
  74685. return H.setRuntimeTypeInfo([D.PseudoSelector$0(pseudo.name, pseudo.argument, !pseudo.isClass, D.SelectorList$0(complexes))], type$.JSArray_legacy_PseudoSelector_2);
  74686. },
  74687. _extender$_trim$2: function(selectors, isOriginal) {
  74688. var result, i, t1, numOriginals, _box_0, complex1, j, t2, t3, _i, component;
  74689. if (selectors.length > 100)
  74690. return selectors;
  74691. result = Q.QueueList$(null, type$.legacy_ComplexSelector_2);
  74692. $label0$0:
  74693. for (i = selectors.length - 1, t1 = H._arrayInstanceType(selectors)._precomputed1, numOriginals = 0; i >= 0; --i) {
  74694. _box_0 = {};
  74695. complex1 = selectors[i];
  74696. if (isOriginal.call$1(complex1)) {
  74697. for (j = 0; j < numOriginals; ++j)
  74698. if (J.$eq$(result.$index(0, j), complex1)) {
  74699. B.rotateSlice0(result, 0, j + 1);
  74700. continue $label0$0;
  74701. }
  74702. ++numOriginals;
  74703. result.addFirst$1(complex1);
  74704. continue $label0$0;
  74705. }
  74706. _box_0.maxSpecificity = 0;
  74707. for (t2 = complex1.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  74708. component = t2[_i];
  74709. if (component instanceof X.CompoundSelector0)
  74710. _box_0.maxSpecificity = Math.max(_box_0.maxSpecificity, this._extender$_sourceSpecificityFor$1(component));
  74711. }
  74712. if (result.any$1(result, new F.Extender__trim_closure1(_box_0, complex1)))
  74713. continue $label0$0;
  74714. if (H.SubListIterable$(selectors, 0, i, t1).any$1(0, new F.Extender__trim_closure2(_box_0, complex1)))
  74715. continue $label0$0;
  74716. result.addFirst$1(complex1);
  74717. }
  74718. return result;
  74719. },
  74720. _extender$_sourceSpecificityFor$1: function(compound) {
  74721. var t1, t2, t3, specificity, _i, t4;
  74722. for (t1 = compound.components, t2 = t1.length, t3 = this._extender$_sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  74723. t4 = t3.$index(0, t1[_i]);
  74724. specificity = Math.max(specificity, H.checkNum(t4 == null ? 0 : t4));
  74725. }
  74726. return specificity;
  74727. },
  74728. clone$0: function() {
  74729. var t3, t4, _this = this,
  74730. t1 = type$.legacy_SimpleSelector_2,
  74731. newSelectors = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2),
  74732. t2 = type$.legacy_ModifiableCssValue_legacy_SelectorList_2,
  74733. newMediaContexts = P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_List_legacy_CssMediaQuery_2),
  74734. oldToNewSelectors = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_CssValue_legacy_SelectorList_2, t2);
  74735. _this._extender$_selectors.forEach$1(0, new F.Extender_clone_closure0(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  74736. t2 = type$.legacy_Extension_2;
  74737. t3 = B.copyMapOfMap0(_this._extender$_extensions, t1, type$.legacy_ComplexSelector_2, t2);
  74738. t2 = B.copyMapOfList0(_this._extender$_extensionsByExtender, t1, t2);
  74739. t1 = P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int);
  74740. t1.addAll$1(0, _this._extender$_sourceSpecificity);
  74741. t4 = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2);
  74742. t4.addAll$1(0, _this._extender$_originals);
  74743. return new S.Tuple2(new F.Extender0(newSelectors, t3, t2, newMediaContexts, t1, t4, C.ExtendMode_normal0), oldToNewSelectors, type$.Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList_2);
  74744. },
  74745. get$_extender$_extensions: function() {
  74746. return this._extender$_extensions;
  74747. },
  74748. get$_extender$_sourceSpecificity: function() {
  74749. return this._extender$_sourceSpecificity;
  74750. }
  74751. };
  74752. F.Extender_extensionsWhereTarget_closure0.prototype = {
  74753. call$1: function(extension) {
  74754. return !extension.isOptional;
  74755. }
  74756. };
  74757. F.Extender__registerSelector_closure0.prototype = {
  74758. call$0: function() {
  74759. return P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2);
  74760. },
  74761. $signature: 134
  74762. };
  74763. F.Extender_addExtension_closure2.prototype = {
  74764. call$0: function() {
  74765. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
  74766. },
  74767. $signature: 52
  74768. };
  74769. F.Extender_addExtension_closure3.prototype = {
  74770. call$0: function() {
  74771. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension_2);
  74772. },
  74773. $signature: 80
  74774. };
  74775. F.Extender_addExtension_closure4.prototype = {
  74776. call$0: function() {
  74777. return this.complex.get$maxSpecificity();
  74778. },
  74779. $signature: 7
  74780. };
  74781. F.Extender__extendExistingExtensions_closure1.prototype = {
  74782. call$0: function() {
  74783. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension_2);
  74784. },
  74785. $signature: 80
  74786. };
  74787. F.Extender__extendExistingExtensions_closure2.prototype = {
  74788. call$0: function() {
  74789. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
  74790. },
  74791. $signature: 52
  74792. };
  74793. F.Extender_addExtensions_closure0.prototype = {
  74794. call$2: function(target, newSources) {
  74795. var t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
  74796. if (target instanceof N.PlaceholderSelector0 && T.isPrivate0(target.name))
  74797. return;
  74798. t1 = _this.$this;
  74799. extensionsForTarget = t1._extender$_extensionsByExtender.$index(0, target);
  74800. t2 = extensionsForTarget == null;
  74801. if (!t2) {
  74802. t3 = _this._box_0;
  74803. t4 = t3.extensionsToExtend;
  74804. C.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension_2) : t4, extensionsForTarget);
  74805. }
  74806. selectorsForTarget = t1._extender$_selectors.$index(0, target);
  74807. t3 = selectorsForTarget != null;
  74808. if (t3) {
  74809. t4 = _this._box_0;
  74810. t5 = t4.selectorsToExtend;
  74811. (t5 == null ? t4.selectorsToExtend = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2) : t5).addAll$1(0, selectorsForTarget);
  74812. }
  74813. t1 = t1._extender$_extensions;
  74814. existingSources = t1.$index(0, target);
  74815. if (existingSources == null) {
  74816. t4 = _this.extender;
  74817. t1.$indexSet(0, target, t4.get$_extender$_extensions().$index(0, target));
  74818. if (!t2 || t3) {
  74819. t1 = _this._box_0;
  74820. t2 = t1.newExtensions;
  74821. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector_2, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2) : t2;
  74822. t1.$indexSet(0, target, t4.get$_extender$_extensions().$index(0, target));
  74823. }
  74824. } else
  74825. newSources.forEach$1(0, new F.Extender_addExtensions__closure0(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
  74826. }
  74827. };
  74828. F.Extender_addExtensions__closure0.prototype = {
  74829. call$2: function(extender, extension) {
  74830. var t2, _this = this,
  74831. t1 = _this.existingSources;
  74832. if (t1.containsKey$1(extender))
  74833. return;
  74834. t1.$indexSet(0, extender, extension);
  74835. if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
  74836. t1 = _this._box_0;
  74837. t2 = t1.newExtensions;
  74838. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector_2, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2) : t2;
  74839. t1.putIfAbsent$2(_this.target, new F.Extender_addExtensions___closure1()).putIfAbsent$2(extender, new F.Extender_addExtensions___closure2(extension));
  74840. }
  74841. }
  74842. };
  74843. F.Extender_addExtensions___closure1.prototype = {
  74844. call$0: function() {
  74845. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
  74846. },
  74847. $signature: 52
  74848. };
  74849. F.Extender_addExtensions___closure2.prototype = {
  74850. call$0: function() {
  74851. return this.extension;
  74852. },
  74853. $signature: 137
  74854. };
  74855. F.Extender__extendList_closure0.prototype = {
  74856. call$1: function(complex) {
  74857. return complex != null;
  74858. }
  74859. };
  74860. F.Extender__extendComplex_closure1.prototype = {
  74861. call$1: function(component) {
  74862. return H.setRuntimeTypeInfo([S.ComplexSelector$0(H.setRuntimeTypeInfo([component], type$.JSArray_legacy_ComplexSelectorComponent_2), this.complex.lineBreak)], type$.JSArray_legacy_ComplexSelector_2);
  74863. }
  74864. };
  74865. F.Extender__extendComplex_closure2.prototype = {
  74866. call$1: function(path) {
  74867. var t1 = Y.weave0(J.map$1$1$ax(path, new F.Extender__extendComplex__closure1(), type$.legacy_List_legacy_ComplexSelectorComponent_2).toList$0(0));
  74868. return new H.MappedListIterable(t1, new F.Extender__extendComplex__closure2(this._box_0, this.$this, this.complex, path), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0*>"));
  74869. }
  74870. };
  74871. F.Extender__extendComplex__closure1.prototype = {
  74872. call$1: function(complex) {
  74873. return complex.components;
  74874. }
  74875. };
  74876. F.Extender__extendComplex__closure2.prototype = {
  74877. call$1: function(components) {
  74878. var _this = this,
  74879. t1 = _this.complex,
  74880. outputComplex = S.ComplexSelector$0(components, t1.lineBreak || J.any$1$ax(_this.path, new F.Extender__extendComplex___closure0())),
  74881. t2 = _this._box_0;
  74882. if (t2.first && _this.$this._extender$_originals.contains$1(0, t1))
  74883. _this.$this._extender$_originals.add$1(0, outputComplex);
  74884. t2.first = false;
  74885. return outputComplex;
  74886. }
  74887. };
  74888. F.Extender__extendComplex___closure0.prototype = {
  74889. call$1: function(inputComplex) {
  74890. return inputComplex.lineBreak;
  74891. }
  74892. };
  74893. F.Extender__extendCompound_closure3.prototype = {
  74894. call$1: function(state) {
  74895. state.assertCompatibleMediaContext$1(this.mediaQueryContext);
  74896. return state.extender;
  74897. }
  74898. };
  74899. F.Extender__extendCompound_closure4.prototype = {
  74900. call$1: function(path) {
  74901. var complexes, toUnify, t2, t3, originals, t4, _box_0 = {},
  74902. t1 = this._box_1;
  74903. if (t1.first) {
  74904. t1.first = false;
  74905. complexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([X.CompoundSelector$0(J.expand$1$1$ax(path, new F.Extender__extendCompound__closure1(), type$.legacy_SimpleSelector_2))], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2);
  74906. } else {
  74907. toUnify = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent_2);
  74908. for (t1 = J.get$iterator$ax(path), t2 = type$.legacy_CompoundSelector_2, t3 = type$.JSArray_legacy_SimpleSelector_2, originals = null; t1.moveNext$0();) {
  74909. t4 = t1.get$current(t1);
  74910. if (t4.isOriginal) {
  74911. if (originals == null)
  74912. originals = H.setRuntimeTypeInfo([], t3);
  74913. C.JSArray_methods.addAll$1(originals, t2._as(C.JSArray_methods.get$last(t4.extender.components)).components);
  74914. } else
  74915. toUnify._queue_list$_add$1(t4.extender.components);
  74916. }
  74917. if (originals != null)
  74918. toUnify.addFirst$1(H.setRuntimeTypeInfo([X.CompoundSelector$0(originals)], type$.JSArray_legacy_ComplexSelectorComponent_2));
  74919. complexes = Y.unifyComplex0(toUnify);
  74920. if (complexes == null)
  74921. return null;
  74922. }
  74923. _box_0.lineBreak = false;
  74924. for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
  74925. t3 = t1.get$current(t1);
  74926. t3.assertCompatibleMediaContext$1(t2);
  74927. _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
  74928. }
  74929. t1 = J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure2(_box_0), type$.legacy_ComplexSelector_2);
  74930. return P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  74931. }
  74932. };
  74933. F.Extender__extendCompound__closure1.prototype = {
  74934. call$1: function(state) {
  74935. return type$.legacy_CompoundSelector_2._as(C.JSArray_methods.get$last(state.extender.components)).components;
  74936. }
  74937. };
  74938. F.Extender__extendCompound__closure2.prototype = {
  74939. call$1: function(components) {
  74940. return S.ComplexSelector$0(components, this._box_0.lineBreak);
  74941. }
  74942. };
  74943. F.Extender__extendCompound_closure5.prototype = {
  74944. call$1: function(complexes) {
  74945. return complexes != null;
  74946. }
  74947. };
  74948. F.Extender__extendCompound_closure6.prototype = {
  74949. call$1: function(l) {
  74950. return l;
  74951. }
  74952. };
  74953. F.Extender__extendSimple_withoutPseudo0.prototype = {
  74954. call$1: function(simple) {
  74955. var t1, t2,
  74956. extenders = this.extensions.$index(0, simple);
  74957. if (extenders == null)
  74958. return null;
  74959. t1 = this.targetsUsed;
  74960. if (t1 != null)
  74961. t1.add$1(0, simple);
  74962. t1 = this.$this;
  74963. if (t1._extender$_mode === C.ExtendMode_replace0) {
  74964. t1 = extenders.get$values();
  74965. return P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  74966. }
  74967. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension_2);
  74968. t2.push(t1._extender$_extensionForSimple$1(simple));
  74969. for (t1 = extenders.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  74970. t2.push(t1.get$current(t1));
  74971. return t2;
  74972. }
  74973. };
  74974. F.Extender__extendSimple_closure0.prototype = {
  74975. call$1: function(pseudo) {
  74976. var t1 = this.withoutPseudo.call$1(pseudo);
  74977. return t1 == null ? H.setRuntimeTypeInfo([this.$this._extender$_extensionForSimple$1(pseudo)], type$.JSArray_legacy_Extension_2) : t1;
  74978. }
  74979. };
  74980. F.Extender__extendPseudo_closure4.prototype = {
  74981. call$1: function(complex) {
  74982. return complex.components.length > 1;
  74983. }
  74984. };
  74985. F.Extender__extendPseudo_closure5.prototype = {
  74986. call$1: function(complex) {
  74987. return complex.components.length === 1;
  74988. }
  74989. };
  74990. F.Extender__extendPseudo_closure6.prototype = {
  74991. call$1: function(complex) {
  74992. return complex.components.length <= 1;
  74993. }
  74994. };
  74995. F.Extender__extendPseudo_closure7.prototype = {
  74996. call$1: function(complex) {
  74997. var innerPseudo, t2,
  74998. t1 = complex.components;
  74999. if (t1.length !== 1)
  75000. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  75001. if (!(C.JSArray_methods.get$first(t1) instanceof X.CompoundSelector0))
  75002. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  75003. t1 = type$.legacy_CompoundSelector_2._as(C.JSArray_methods.get$first(t1)).components;
  75004. if (t1.length !== 1)
  75005. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  75006. if (!(C.JSArray_methods.get$first(t1) instanceof D.PseudoSelector0))
  75007. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  75008. innerPseudo = type$.legacy_PseudoSelector_2._as(C.JSArray_methods.get$first(t1));
  75009. t1 = innerPseudo.selector;
  75010. if (t1 == null)
  75011. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  75012. t2 = this.pseudo;
  75013. switch (t2.normalizedName) {
  75014. case "not":
  75015. if (innerPseudo.normalizedName !== "matches")
  75016. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector_2);
  75017. return t1.components;
  75018. case "matches":
  75019. case "any":
  75020. case "current":
  75021. case "nth-child":
  75022. case "nth-last-child":
  75023. if (innerPseudo.name !== t2.name)
  75024. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector_2);
  75025. if (innerPseudo.argument != t2.argument)
  75026. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector_2);
  75027. return t1.components;
  75028. case "has":
  75029. case "host":
  75030. case "host-context":
  75031. case "slotted":
  75032. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  75033. default:
  75034. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector_2);
  75035. }
  75036. }
  75037. };
  75038. F.Extender__extendPseudo_closure8.prototype = {
  75039. call$1: function(complex) {
  75040. var t1 = this.pseudo;
  75041. return D.PseudoSelector$0(t1.name, t1.argument, !t1.isClass, D.SelectorList$0(H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2)));
  75042. }
  75043. };
  75044. F.Extender__trim_closure1.prototype = {
  75045. call$1: function(complex2) {
  75046. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  75047. }
  75048. };
  75049. F.Extender__trim_closure2.prototype = {
  75050. call$1: function(complex2) {
  75051. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  75052. }
  75053. };
  75054. F.Extender_clone_closure0.prototype = {
  75055. call$2: function(simple, selectors) {
  75056. var t1, t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
  75057. newSelectorSet = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2);
  75058. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  75059. for (t1 = selectors.get$iterator(selectors), t2 = type$.ModifiableCssValue_legacy_SelectorList_2, t3 = _this.oldToNewSelectors, t4 = _this.$this._extender$_mediaContexts, t5 = _this.newMediaContexts; t1.moveNext$0();) {
  75060. t6 = t1.get$current(t1);
  75061. newSelector = new F.ModifiableCssValue0(t6.value, t6.span, t2);
  75062. newSelectorSet.add$1(0, newSelector);
  75063. t3.$indexSet(0, t6, newSelector);
  75064. mediaContext = t4.$index(0, t6);
  75065. if (mediaContext != null)
  75066. t5.$indexSet(0, newSelector, mediaContext);
  75067. }
  75068. }
  75069. };
  75070. S.Extension0.prototype = {
  75071. assertCompatibleMediaContext$1: function(mediaContext) {
  75072. var t1 = this.mediaContext;
  75073. if (t1 == null)
  75074. return;
  75075. if (mediaContext != null && C.C_ListEquality.equals$2(t1, mediaContext))
  75076. return;
  75077. throw H.wrapException(E.SassException$0(string$.You_ma, this.span));
  75078. },
  75079. toString$0: function(_) {
  75080. var t1 = H.S(this.extender) + " {@extend " + H.S(this.target);
  75081. return t1 + (this.isOptional ? " !optional" : "") + "}";
  75082. },
  75083. get$target: function() {
  75084. return this.target;
  75085. },
  75086. get$span: function() {
  75087. return this.span;
  75088. }
  75089. };
  75090. E.FiberClass.prototype = {};
  75091. E.Fiber.prototype = {};
  75092. F.FilesystemImporter0.prototype = {
  75093. canonicalize$1: function(url) {
  75094. var t1, resolved;
  75095. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  75096. return null;
  75097. t1 = $.$get$context();
  75098. resolved = B.resolveImportPath0(D.join(this._filesystem$_loadPath, t1.style.pathFromUri$1(M._parseUri(url)), null));
  75099. return resolved == null ? null : t1.toUri$1(t1.canonicalize$1(resolved));
  75100. },
  75101. load$1: function(url) {
  75102. var t3, t4,
  75103. t1 = $.$get$context(),
  75104. path = t1.style.pathFromUri$1(M._parseUri(url)),
  75105. t2 = B.readFile0(path);
  75106. t1 = J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin") ? t1.toUri$1(F.realCasePath0(path)) : url;
  75107. t3 = M.Syntax_forPath0(path);
  75108. t4 = t1.get$scheme();
  75109. if (t4 === "")
  75110. H.throwExpression(P.ArgumentError$value(t1, "sourceMapUrl", "must be absolute"));
  75111. return new E.ImporterResult0(t2, t1, t3);
  75112. },
  75113. toString$0: function(_) {
  75114. return this._filesystem$_loadPath;
  75115. }
  75116. };
  75117. G.FixedLengthListBuilder0.prototype = {
  75118. add$1: function(_, element) {
  75119. var t1, _this = this;
  75120. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  75121. t1 = _this._fixed_length_list_builder0$_index;
  75122. _this._fixed_length_list_builder0$_list[t1] = element;
  75123. _this._fixed_length_list_builder0$_index = t1 + 1;
  75124. },
  75125. addAll$1: function(_, elements) {
  75126. var _this = this;
  75127. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  75128. C.JSArray_methods.setAll$2(_this._fixed_length_list_builder0$_list, _this._fixed_length_list_builder0$_index, elements);
  75129. _this._fixed_length_list_builder0$_index = _this._fixed_length_list_builder0$_index + elements.length;
  75130. },
  75131. addRange$3: function(elements, start, end) {
  75132. var $length, t1, _this = this;
  75133. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  75134. $length = (end == null ? J.get$length$asx(elements._collection$_source) : end) - start;
  75135. t1 = _this._fixed_length_list_builder0$_index;
  75136. C.JSArray_methods.setRange$4(_this._fixed_length_list_builder0$_list, t1, t1 + $length, elements, start);
  75137. _this._fixed_length_list_builder0$_index += $length;
  75138. },
  75139. addRange$2: function(elements, start) {
  75140. return this.addRange$3(elements, start, null);
  75141. },
  75142. build$0: function() {
  75143. this._fixed_length_list_builder0$_checkUnbuilt$0();
  75144. this._fixed_length_list_builder0$_index = -1;
  75145. return this._fixed_length_list_builder0$_list;
  75146. },
  75147. _fixed_length_list_builder0$_checkUnbuilt$0: function() {
  75148. if (this._fixed_length_list_builder0$_index === -1)
  75149. throw H.wrapException(P.StateError$("build() has already been called."));
  75150. }
  75151. };
  75152. B.ForRule0.prototype = {
  75153. accept$1$1: function(visitor) {
  75154. return visitor.visitForRule$1(this);
  75155. },
  75156. accept$1: function(visitor) {
  75157. return this.accept$1$1(visitor, type$.dynamic);
  75158. },
  75159. toString$0: function(_) {
  75160. var _this = this,
  75161. t1 = "@for $" + _this.variable + " from " + H.S(_this.from) + " ",
  75162. t2 = _this.children;
  75163. return t1 + (_this.isExclusive ? "to" : "through") + " " + H.S(_this.to) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  75164. },
  75165. get$span: function() {
  75166. return this.span;
  75167. }
  75168. };
  75169. L.ForwardRule0.prototype = {
  75170. accept$1$1: function(visitor) {
  75171. return visitor.visitForwardRule$1(this);
  75172. },
  75173. accept$1: function(visitor) {
  75174. return this.accept$1$1(visitor, type$.dynamic);
  75175. },
  75176. toString$0: function(_) {
  75177. var t3, _this = this,
  75178. t1 = "@forward " + H.S(new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([J.toString$0$(_this.url)], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain()),
  75179. t2 = _this.shownMixinsAndFunctions;
  75180. if (t2 != null)
  75181. t1 = t1 + " show " + _this._forward_rule0$_memberList$2(t2, _this.shownVariables);
  75182. else {
  75183. t2 = _this.hiddenMixinsAndFunctions;
  75184. if (t2 != null) {
  75185. t3 = t2._base;
  75186. t3 = t3.get$isNotEmpty(t3);
  75187. } else
  75188. t3 = false;
  75189. if (t3)
  75190. t1 = t1 + " hide " + _this._forward_rule0$_memberList$2(t2, _this.hiddenVariables);
  75191. }
  75192. t2 = _this.prefix;
  75193. if (t2 != null)
  75194. t1 += " as " + t2 + "*";
  75195. t2 = _this.configuration;
  75196. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  75197. return t1.charCodeAt(0) == 0 ? t1 : t1;
  75198. },
  75199. _forward_rule0$_memberList$2: function(mixinsAndFunctions, variables) {
  75200. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String),
  75201. t2 = this.shownMixinsAndFunctions;
  75202. if (t2 != null)
  75203. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  75204. t1.push(t2.get$current(t2));
  75205. t2 = this.shownVariables;
  75206. if (t2 != null)
  75207. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  75208. t1.push("$" + H.S(t2.get$current(t2)));
  75209. return C.JSArray_methods.join$1(t1, ", ");
  75210. },
  75211. $isAstNode0: 1,
  75212. $isStatement0: 1,
  75213. get$span: function() {
  75214. return this.span;
  75215. }
  75216. };
  75217. R.ForwardedModuleView0.prototype = {
  75218. get$url: function() {
  75219. return this._forwarded_view0$_inner.get$url();
  75220. },
  75221. get$upstream: function() {
  75222. return this._forwarded_view0$_inner.get$upstream();
  75223. },
  75224. get$extender: function() {
  75225. return this._forwarded_view0$_inner.get$extender();
  75226. },
  75227. get$css: function(_) {
  75228. var t1 = this._forwarded_view0$_inner;
  75229. return t1.get$css(t1);
  75230. },
  75231. get$transitivelyContainsCss: function() {
  75232. return this._forwarded_view0$_inner.get$transitivelyContainsCss();
  75233. },
  75234. get$transitivelyContainsExtensions: function() {
  75235. return this._forwarded_view0$_inner.get$transitivelyContainsExtensions();
  75236. },
  75237. setVariable$3: function($name, value, nodeWithSpan) {
  75238. var _s19_ = "Undefined variable.",
  75239. t1 = this._forwarded_view0$_rule,
  75240. t2 = t1.shownVariables;
  75241. if (t2 != null && !t2._base.contains$1(0, $name))
  75242. throw H.wrapException(E.SassScriptException$0(_s19_));
  75243. else {
  75244. t2 = t1.hiddenVariables;
  75245. if (t2 != null && t2._base.contains$1(0, $name))
  75246. throw H.wrapException(E.SassScriptException$0(_s19_));
  75247. }
  75248. t1 = t1.prefix;
  75249. if (t1 != null) {
  75250. if (!C.JSString_methods.startsWith$1($name, t1))
  75251. throw H.wrapException(E.SassScriptException$0(_s19_));
  75252. $name = C.JSString_methods.substring$1($name, t1.length);
  75253. }
  75254. return this._forwarded_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  75255. },
  75256. variableIdentity$1: function($name) {
  75257. var t1 = this._forwarded_view0$_rule.prefix;
  75258. if (t1 != null)
  75259. $name = J.substring$1$s($name, t1.length);
  75260. return this._forwarded_view0$_inner.variableIdentity$1($name);
  75261. },
  75262. $eq: function(_, other) {
  75263. if (other == null)
  75264. return false;
  75265. return other instanceof R.ForwardedModuleView0 && J.$eq$(this._forwarded_view0$_inner, other._forwarded_view0$_inner) && this._forwarded_view0$_rule === other._forwarded_view0$_rule;
  75266. },
  75267. get$hashCode: function(_) {
  75268. return (J.get$hashCode$(this._forwarded_view0$_inner) ^ H.Primitives_objectHashCode(this._forwarded_view0$_rule)) >>> 0;
  75269. },
  75270. cloneCss$0: function() {
  75271. return R.ForwardedModuleView$0(this._forwarded_view0$_inner.cloneCss$0(), this._forwarded_view0$_rule, this.$ti._eval$1("1*"));
  75272. },
  75273. toString$0: function(_) {
  75274. return "forwarded " + H.S(this._forwarded_view0$_inner);
  75275. },
  75276. $isModule0: 1,
  75277. get$variables: function() {
  75278. return this.variables;
  75279. },
  75280. get$variableNodes: function() {
  75281. return this.variableNodes;
  75282. },
  75283. get$functions: function(receiver) {
  75284. return this.functions;
  75285. },
  75286. get$mixins: function() {
  75287. return this.mixins;
  75288. }
  75289. };
  75290. F.FunctionExpression0.prototype = {
  75291. accept$1$1: function(visitor) {
  75292. return visitor.visitFunctionExpression$1(this);
  75293. },
  75294. accept$1: function(visitor) {
  75295. return this.accept$1$1(visitor, type$.dynamic);
  75296. },
  75297. toString$0: function(_) {
  75298. var t1 = this.namespace;
  75299. t1 = t1 != null ? t1 + "." : "";
  75300. t1 += this.name.toString$0(0) + this.$arguments.toString$0(0);
  75301. return t1.charCodeAt(0) == 0 ? t1 : t1;
  75302. },
  75303. $isExpression0: 1,
  75304. $isAstNode0: 1,
  75305. get$span: function() {
  75306. return this.span;
  75307. }
  75308. };
  75309. F.JSFunction0.prototype = {};
  75310. F.SassFunction0.prototype = {
  75311. accept$1$1: function(visitor) {
  75312. var t1;
  75313. if (!visitor._inspect)
  75314. H.throwExpression(E.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value."));
  75315. t1 = visitor._buffer;
  75316. t1.write$1(0, "get-function(");
  75317. visitor._serialize0$_visitQuotedString$1(this.callable.get$name());
  75318. t1.writeCharCode$1(41);
  75319. return null;
  75320. },
  75321. accept$1: function(visitor) {
  75322. return this.accept$1$1(visitor, type$.dynamic);
  75323. },
  75324. assertFunction$1: function($name) {
  75325. return this;
  75326. },
  75327. $eq: function(_, other) {
  75328. if (other == null)
  75329. return false;
  75330. return other instanceof F.SassFunction0 && J.$eq$(this.callable, other.callable);
  75331. },
  75332. get$hashCode: function(_) {
  75333. return J.get$hashCode$(this.callable);
  75334. }
  75335. };
  75336. M.FunctionRule0.prototype = {
  75337. accept$1$1: function(visitor) {
  75338. return visitor.visitFunctionRule$1(this);
  75339. },
  75340. accept$1: function(visitor) {
  75341. return this.accept$1$1(visitor, type$.dynamic);
  75342. },
  75343. toString$0: function(_) {
  75344. var t1 = this.children;
  75345. return "@function " + H.S(this.name) + "(" + H.S(this.$arguments) + ") {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  75346. }
  75347. };
  75348. Y.unifyComplex_closure0.prototype = {
  75349. call$1: function(complex) {
  75350. var t1 = J.getInterceptor$asx(complex);
  75351. return t1.sublist$2(complex, 0, t1.get$length(complex) - 1);
  75352. }
  75353. };
  75354. Y._weaveParents_closure6.prototype = {
  75355. call$2: function(group1, group2) {
  75356. var unified, t1, _null = null;
  75357. if (C.C_ListEquality.equals$2(group1, group2))
  75358. return group1;
  75359. if (!(J.get$first$ax(group1) instanceof X.CompoundSelector0) || !(J.get$first$ax(group2) instanceof X.CompoundSelector0))
  75360. return _null;
  75361. if (Y.complexIsParentSuperselector0(group1, group2))
  75362. return group2;
  75363. if (Y.complexIsParentSuperselector0(group2, group1))
  75364. return group1;
  75365. if (!Y._mustUnify0(group1, group2))
  75366. return _null;
  75367. unified = Y.unifyComplex0(H.setRuntimeTypeInfo([group1, group2], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  75368. if (unified == null)
  75369. return _null;
  75370. t1 = J.getInterceptor$asx(unified);
  75371. if (t1.get$length(unified) > 1)
  75372. return _null;
  75373. return t1.get$first(unified);
  75374. }
  75375. };
  75376. Y._weaveParents_closure7.prototype = {
  75377. call$1: function(sequence) {
  75378. return Y.complexIsParentSuperselector0(sequence.get$first(sequence), this.group);
  75379. }
  75380. };
  75381. Y._weaveParents_closure8.prototype = {
  75382. call$1: function(chunk) {
  75383. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure4(), type$.legacy_ComplexSelectorComponent_2);
  75384. }
  75385. };
  75386. Y._weaveParents__closure4.prototype = {
  75387. call$1: function(group) {
  75388. return group;
  75389. }
  75390. };
  75391. Y._weaveParents_closure9.prototype = {
  75392. call$1: function(sequence) {
  75393. return sequence.get$length(sequence) === 0;
  75394. }
  75395. };
  75396. Y._weaveParents_closure10.prototype = {
  75397. call$1: function(chunk) {
  75398. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure3(), type$.legacy_ComplexSelectorComponent_2);
  75399. }
  75400. };
  75401. Y._weaveParents__closure3.prototype = {
  75402. call$1: function(group) {
  75403. return group;
  75404. }
  75405. };
  75406. Y._weaveParents_closure11.prototype = {
  75407. call$1: function(choice) {
  75408. return J.get$isNotEmpty$asx(choice);
  75409. }
  75410. };
  75411. Y._weaveParents_closure12.prototype = {
  75412. call$1: function(path) {
  75413. var t1 = J.expand$1$1$ax(path, new Y._weaveParents__closure2(), type$.legacy_ComplexSelectorComponent_2);
  75414. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  75415. }
  75416. };
  75417. Y._weaveParents__closure2.prototype = {
  75418. call$1: function(group) {
  75419. return group;
  75420. }
  75421. };
  75422. Y._mustUnify_closure0.prototype = {
  75423. call$1: function(component) {
  75424. return component instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(component.components, new Y._mustUnify__closure0(this.uniqueSelectors));
  75425. }
  75426. };
  75427. Y._mustUnify__closure0.prototype = {
  75428. call$1: function(simple) {
  75429. var t1;
  75430. if (!(simple instanceof N.IDSelector0))
  75431. t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
  75432. else
  75433. t1 = true;
  75434. return t1 && this.uniqueSelectors.contains$1(0, simple);
  75435. }
  75436. };
  75437. Y.paths_closure0.prototype = {
  75438. call$2: function(paths, choice) {
  75439. var t1 = this.T;
  75440. t1 = J.expand$1$1$ax(choice, new Y.paths__closure0(paths, t1), t1._eval$1("List<0*>*"));
  75441. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  75442. }
  75443. };
  75444. Y.paths__closure0.prototype = {
  75445. call$1: function(option) {
  75446. var t1 = this.T;
  75447. return J.map$1$1$ax(this.paths, new Y.paths___closure0(option, t1), t1._eval$1("List<0*>*"));
  75448. },
  75449. $signature: function() {
  75450. return this.T._eval$1("Iterable<List<0*>*>*(0*)");
  75451. }
  75452. };
  75453. Y.paths___closure0.prototype = {
  75454. call$1: function(path) {
  75455. var t2,
  75456. t1 = H.setRuntimeTypeInfo([], this.T._eval$1("JSArray<0*>"));
  75457. for (t2 = J.get$iterator$ax(path); t2.moveNext$0();)
  75458. t1.push(t2.get$current(t2));
  75459. t1.push(this.option);
  75460. return t1;
  75461. }
  75462. };
  75463. Y._hasRoot_closure0.prototype = {
  75464. call$1: function(simple) {
  75465. return simple instanceof D.PseudoSelector0 && simple.isClass && simple.normalizedName === "root";
  75466. }
  75467. };
  75468. Y.listIsSuperselector_closure0.prototype = {
  75469. call$1: function(complex1) {
  75470. return C.JSArray_methods.any$1(this.list1, new Y.listIsSuperselector__closure0(complex1));
  75471. }
  75472. };
  75473. Y.listIsSuperselector__closure0.prototype = {
  75474. call$1: function(complex2) {
  75475. return Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  75476. }
  75477. };
  75478. Y._simpleIsSuperselectorOfCompound_closure0.prototype = {
  75479. call$1: function(theirSimple) {
  75480. var t1 = this.simple;
  75481. if (J.$eq$(t1, theirSimple))
  75482. return true;
  75483. if (theirSimple instanceof D.PseudoSelector0 && theirSimple.selector != null && $._subselectorPseudos0.contains$1(0, theirSimple.normalizedName))
  75484. return C.JSArray_methods.every$1(theirSimple.selector.components, new Y._simpleIsSuperselectorOfCompound__closure0(t1));
  75485. else
  75486. return false;
  75487. }
  75488. };
  75489. Y._simpleIsSuperselectorOfCompound__closure0.prototype = {
  75490. call$1: function(complex) {
  75491. var t1 = complex.components;
  75492. if (t1.length !== 1)
  75493. return false;
  75494. return C.JSArray_methods.contains$1(type$.legacy_CompoundSelector_2._as(C.JSArray_methods.get$single(t1)).components, this.simple);
  75495. }
  75496. };
  75497. Y._selectorPseudoIsSuperselector_closure6.prototype = {
  75498. call$1: function(pseudo2) {
  75499. var t1 = pseudo2.selector;
  75500. return Y.listIsSuperselector0(this.pseudo1.selector.components, t1.components);
  75501. }
  75502. };
  75503. Y._selectorPseudoIsSuperselector_closure7.prototype = {
  75504. call$1: function(complex1) {
  75505. var t1 = complex1.components,
  75506. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2),
  75507. t3 = this.parents;
  75508. if (t3 != null)
  75509. for (t3 = t3.get$iterator(t3); t3.moveNext$0();)
  75510. t2.push(t3.get$current(t3));
  75511. t2.push(this.compound2);
  75512. return Y.complexIsSuperselector0(t1, t2);
  75513. }
  75514. };
  75515. Y._selectorPseudoIsSuperselector_closure8.prototype = {
  75516. call$1: function(pseudo2) {
  75517. var t1 = pseudo2.selector;
  75518. return Y.listIsSuperselector0(this.pseudo1.selector.components, t1.components);
  75519. }
  75520. };
  75521. Y._selectorPseudoIsSuperselector_closure9.prototype = {
  75522. call$1: function(pseudo2) {
  75523. var t1 = pseudo2.selector;
  75524. return Y.listIsSuperselector0(this.pseudo1.selector.components, t1.components);
  75525. }
  75526. };
  75527. Y._selectorPseudoIsSuperselector_closure10.prototype = {
  75528. call$1: function(complex) {
  75529. return C.JSArray_methods.any$1(this.compound2.components, new Y._selectorPseudoIsSuperselector__closure0(complex, this.pseudo1));
  75530. }
  75531. };
  75532. Y._selectorPseudoIsSuperselector__closure0.prototype = {
  75533. call$1: function(simple2) {
  75534. var compound1, _this = this;
  75535. if (simple2 instanceof F.TypeSelector0) {
  75536. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  75537. return compound1 instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure1(simple2));
  75538. } else if (simple2 instanceof N.IDSelector0) {
  75539. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  75540. return compound1 instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure2(simple2));
  75541. } else if (simple2 instanceof D.PseudoSelector0 && simple2.name === _this.pseudo1.name && simple2.selector != null)
  75542. return Y.listIsSuperselector0(simple2.selector.components, H.setRuntimeTypeInfo([_this.complex], type$.JSArray_legacy_ComplexSelector_2));
  75543. else
  75544. return false;
  75545. }
  75546. };
  75547. Y._selectorPseudoIsSuperselector___closure1.prototype = {
  75548. call$1: function(simple1) {
  75549. var t1;
  75550. if (simple1 instanceof F.TypeSelector0) {
  75551. t1 = this.simple2.name.$eq(0, simple1.name);
  75552. t1 = !t1;
  75553. } else
  75554. t1 = false;
  75555. return t1;
  75556. }
  75557. };
  75558. Y._selectorPseudoIsSuperselector___closure2.prototype = {
  75559. call$1: function(simple1) {
  75560. var t1;
  75561. if (simple1 instanceof N.IDSelector0) {
  75562. t1 = simple1.name;
  75563. t1 = this.simple2.name !== t1;
  75564. } else
  75565. t1 = false;
  75566. return t1;
  75567. }
  75568. };
  75569. Y._selectorPseudoIsSuperselector_closure11.prototype = {
  75570. call$1: function(pseudo2) {
  75571. return J.$eq$(this.pseudo1.selector, pseudo2.selector);
  75572. }
  75573. };
  75574. Y._selectorPseudoIsSuperselector_closure12.prototype = {
  75575. call$1: function(pseudo2) {
  75576. var t1, t2;
  75577. if (pseudo2 instanceof D.PseudoSelector0) {
  75578. t1 = this.pseudo1;
  75579. if (pseudo2.name === t1.name)
  75580. if (pseudo2.argument == t1.argument) {
  75581. t2 = pseudo2.selector;
  75582. t2 = Y.listIsSuperselector0(t1.selector.components, t2.components);
  75583. t1 = t2;
  75584. } else
  75585. t1 = false;
  75586. else
  75587. t1 = false;
  75588. } else
  75589. t1 = false;
  75590. return t1;
  75591. }
  75592. };
  75593. Y._selectorPseudosNamed_closure0.prototype = {
  75594. call$1: function(pseudo) {
  75595. return pseudo.isClass === this.isClass && pseudo.selector != null && pseudo.name === this.name;
  75596. }
  75597. };
  75598. Y.closure105.prototype = {
  75599. call$1: function($arguments) {
  75600. var t1 = J.getInterceptor$asx($arguments);
  75601. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  75602. },
  75603. $signature: 3
  75604. };
  75605. N.IDSelector0.prototype = {
  75606. get$minSpecificity: function() {
  75607. return H._asIntS(Math.pow(M.SimpleSelector0.prototype.get$minSpecificity.call(this), 2));
  75608. },
  75609. accept$1$1: function(visitor) {
  75610. var t1 = visitor._buffer;
  75611. t1.writeCharCode$1(35);
  75612. t1.write$1(0, this.name);
  75613. return null;
  75614. },
  75615. accept$1: function(visitor) {
  75616. return this.accept$1$1(visitor, type$.dynamic);
  75617. },
  75618. addSuffix$1: function(suffix) {
  75619. return new N.IDSelector0(this.name + suffix);
  75620. },
  75621. unify$1: function(compound) {
  75622. if (C.JSArray_methods.any$1(compound, new N.IDSelector_unify_closure0(this)))
  75623. return null;
  75624. return this.super$SimpleSelector$unify0(compound);
  75625. },
  75626. $eq: function(_, other) {
  75627. if (other == null)
  75628. return false;
  75629. return other instanceof N.IDSelector0 && other.name === this.name;
  75630. },
  75631. get$hashCode: function(_) {
  75632. return C.JSString_methods.get$hashCode(this.name);
  75633. }
  75634. };
  75635. N.IDSelector_unify_closure0.prototype = {
  75636. call$1: function(simple) {
  75637. var t1;
  75638. if (simple instanceof N.IDSelector0) {
  75639. t1 = simple.name;
  75640. t1 = this.$this.name !== t1;
  75641. } else
  75642. t1 = false;
  75643. return t1;
  75644. }
  75645. };
  75646. L.IfExpression0.prototype = {
  75647. accept$1$1: function(visitor) {
  75648. return visitor.visitIfExpression$1(this);
  75649. },
  75650. accept$1: function(visitor) {
  75651. return this.accept$1$1(visitor, type$.dynamic);
  75652. },
  75653. toString$0: function(_) {
  75654. return "if" + this.$arguments.toString$0(0);
  75655. },
  75656. $isExpression0: 1,
  75657. $isAstNode0: 1,
  75658. get$span: function() {
  75659. return this.span;
  75660. }
  75661. };
  75662. V.IfRule0.prototype = {
  75663. accept$1$1: function(visitor) {
  75664. return visitor.visitIfRule$1(this);
  75665. },
  75666. accept$1: function(visitor) {
  75667. return this.accept$1$1(visitor, type$.dynamic);
  75668. },
  75669. toString$0: function(_) {
  75670. var t2, t1 = {};
  75671. t1.first = true;
  75672. t2 = this.clauses;
  75673. return new H.MappedListIterable(t2, new V.IfRule_toString_closure0(t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String*>")).join$1(0, " ");
  75674. },
  75675. $isAstNode0: 1,
  75676. $isStatement0: 1,
  75677. get$span: function() {
  75678. return this.span;
  75679. }
  75680. };
  75681. V.IfRule_toString_closure0.prototype = {
  75682. call$1: function(clause) {
  75683. var t1 = this._box_0,
  75684. $name = t1.first ? "if" : "else";
  75685. t1.first = false;
  75686. return "@" + $name + " " + H.S(clause.expression) + " {" + C.JSArray_methods.join$1(clause.children, " ") + "}";
  75687. }
  75688. };
  75689. V.IfClause0.prototype = {
  75690. toString$0: function(_) {
  75691. var t1 = this.expression;
  75692. t1 = t1 == null ? "@else" : "@if " + t1.toString$0(0);
  75693. return t1 + (" {" + C.JSArray_methods.join$1(this.children, " ") + "}");
  75694. }
  75695. };
  75696. V.IfClause$__closure0.prototype = {
  75697. call$1: function(child) {
  75698. var t1;
  75699. if (!(child instanceof Z.VariableDeclaration0))
  75700. if (!(child instanceof M.FunctionRule0))
  75701. if (!(child instanceof T.MixinRule0))
  75702. t1 = child instanceof B.ImportRule0 && C.JSArray_methods.any$1(child.imports, new V.IfClause$___closure0());
  75703. else
  75704. t1 = true;
  75705. else
  75706. t1 = true;
  75707. else
  75708. t1 = true;
  75709. return t1;
  75710. }
  75711. };
  75712. V.IfClause$___closure0.prototype = {
  75713. call$1: function($import) {
  75714. return $import instanceof B.DynamicImport0;
  75715. }
  75716. };
  75717. F.NodeImporter.prototype = {
  75718. load$3: function(url, previous, forImport) {
  75719. var result, previousString, t1, t2, t3, t4, _i, value, _this = this,
  75720. parsed = P.Uri_parse(url);
  75721. if (parsed.get$scheme() === "" || parsed.get$scheme() === "file") {
  75722. result = _this._resolveRelativePath$3($.$get$context().style.pathFromUri$1(M._parseUri(parsed)), previous, forImport);
  75723. if (result != null)
  75724. return result;
  75725. }
  75726. previousString = previous.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(M._parseUri(previous)) : previous.toString$0(0);
  75727. for (t1 = _this._implementation$_importers, t2 = t1.length, t3 = _this._implementation$_context, t4 = type$.JSArray_legacy_Object, _i = 0; _i < t2; ++_i) {
  75728. value = J.apply$2$x(t1[_i], t3, H.setRuntimeTypeInfo([url, previousString], t4));
  75729. if (value != null)
  75730. return _this._handleImportResult$4(url, previous, value, forImport);
  75731. }
  75732. return _this._resolveLoadPathFromUrl$3(parsed, previous, forImport);
  75733. },
  75734. loadAsync$3: function(url, previous, forImport) {
  75735. return this.loadAsync$body$NodeImporter(url, previous, forImport);
  75736. },
  75737. loadAsync$body$NodeImporter: function(url, previous, forImport) {
  75738. var $async$goto = 0,
  75739. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_String_and_legacy_String),
  75740. $async$returnValue, $async$self = this, result, previousString, t1, t2, _i, value, parsed;
  75741. var $async$loadAsync$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75742. if ($async$errorCode === 1)
  75743. return P._asyncRethrow($async$result, $async$completer);
  75744. while (true)
  75745. switch ($async$goto) {
  75746. case 0:
  75747. // Function start
  75748. parsed = P.Uri_parse(url);
  75749. if (parsed.get$scheme() === "" || parsed.get$scheme() === "file") {
  75750. result = $async$self._resolveRelativePath$3($.$get$context().style.pathFromUri$1(M._parseUri(parsed)), previous, forImport);
  75751. if (result != null) {
  75752. $async$returnValue = result;
  75753. // goto return
  75754. $async$goto = 1;
  75755. break;
  75756. }
  75757. }
  75758. previousString = previous.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(M._parseUri(previous)) : previous.toString$0(0);
  75759. t1 = $async$self._implementation$_importers, t2 = t1.length, _i = 0;
  75760. case 3:
  75761. // for condition
  75762. if (!(_i < t2)) {
  75763. // goto after for
  75764. $async$goto = 5;
  75765. break;
  75766. }
  75767. $async$goto = 6;
  75768. return P._asyncAwait($async$self._callImporterAsync$3(t1[_i], url, previousString), $async$loadAsync$3);
  75769. case 6:
  75770. // returning from await.
  75771. value = $async$result;
  75772. if (value != null) {
  75773. $async$returnValue = $async$self._handleImportResult$4(url, previous, value, forImport);
  75774. // goto return
  75775. $async$goto = 1;
  75776. break;
  75777. }
  75778. case 4:
  75779. // for update
  75780. ++_i;
  75781. // goto for condition
  75782. $async$goto = 3;
  75783. break;
  75784. case 5:
  75785. // after for
  75786. $async$returnValue = $async$self._resolveLoadPathFromUrl$3(parsed, previous, forImport);
  75787. // goto return
  75788. $async$goto = 1;
  75789. break;
  75790. case 1:
  75791. // return
  75792. return P._asyncReturn($async$returnValue, $async$completer);
  75793. }
  75794. });
  75795. return P._asyncStartSync($async$loadAsync$3, $async$completer);
  75796. },
  75797. _resolveRelativePath$3: function(path, previous, forImport) {
  75798. var result,
  75799. t1 = $.$get$context(),
  75800. t2 = t1.style;
  75801. if (t2.rootLength$1(path) > 0)
  75802. return this._tryPath$2(path, forImport);
  75803. if (previous.get$scheme() === "file") {
  75804. result = this._tryPath$2(D.join(t1.dirname$1(t2.pathFromUri$1(M._parseUri(previous))), path, null), forImport);
  75805. if (result != null)
  75806. return result;
  75807. }
  75808. return null;
  75809. },
  75810. _resolveLoadPathFromUrl$3: function(url, previous, forImport) {
  75811. return url.get$scheme() === "" || url.get$scheme() === "file" ? this._resolveLoadPath$3($.$get$context().style.pathFromUri$1(M._parseUri(url)), previous, forImport) : null;
  75812. },
  75813. _resolveLoadPath$3: function(path, previous, forImport) {
  75814. var t1, t2, _i, includePath, t3, result, _null = null,
  75815. cwdResult = this._tryPath$2(D.absolute(path), forImport);
  75816. if (cwdResult != null)
  75817. return cwdResult;
  75818. for (t1 = this._includePaths, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  75819. includePath = t1[_i];
  75820. t3 = $.$get$context();
  75821. result = this._tryPath$2(t3.absolute$7(t3.join$8(0, includePath, path, _null, _null, _null, _null, _null, _null), _null, _null, _null, _null, _null, _null), forImport);
  75822. if (result != null)
  75823. return result;
  75824. }
  75825. return _null;
  75826. },
  75827. _tryPath$2: function(path, forImport) {
  75828. var resolved = forImport ? B.inImportRule0(new F.NodeImporter__tryPath_closure(path)) : B.resolveImportPath0(path);
  75829. return resolved == null ? null : new S.Tuple2(B.readFile0(resolved), $.$get$context().toUri$1(resolved).toString$0(0), type$.Tuple2_of_legacy_String_and_legacy_String);
  75830. },
  75831. _handleImportResult$4: function(url, previous, value, forImport) {
  75832. var resolved,
  75833. t1 = self.Error;
  75834. if (H._asBoolS($.$get$_jsInstanceOf().call$2(value, t1)))
  75835. throw H.wrapException(value);
  75836. if (!type$.legacy_NodeImporterResult._is(value))
  75837. return null;
  75838. t1 = J.getInterceptor$x(value);
  75839. if (t1.get$file(value) == null) {
  75840. t1 = t1.get$contents(value);
  75841. if (t1 == null)
  75842. t1 = "";
  75843. return new S.Tuple2(t1, url, type$.Tuple2_of_legacy_String_and_legacy_String);
  75844. } else if (t1.get$contents(value) != null)
  75845. return new S.Tuple2(t1.get$contents(value), t1.get$file(value), type$.Tuple2_of_legacy_String_and_legacy_String);
  75846. else {
  75847. resolved = this._resolveRelativePath$3(t1.get$file(value), previous, forImport);
  75848. if (resolved == null)
  75849. resolved = this._resolveLoadPath$3(t1.get$file(value), previous, forImport);
  75850. if (resolved != null)
  75851. return resolved;
  75852. throw H.wrapException("Can't find stylesheet to import.");
  75853. }
  75854. },
  75855. _callImporterAsync$3: function(importer, url, previousString) {
  75856. return this._callImporterAsync$body$NodeImporter(importer, url, previousString);
  75857. },
  75858. _callImporterAsync$body$NodeImporter: function(importer, url, previousString) {
  75859. var $async$goto = 0,
  75860. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Object),
  75861. $async$returnValue, $async$self = this, t1, result;
  75862. var $async$_callImporterAsync$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75863. if ($async$errorCode === 1)
  75864. return P._asyncRethrow($async$result, $async$completer);
  75865. while (true)
  75866. switch ($async$goto) {
  75867. case 0:
  75868. // Function start
  75869. t1 = new P._Future($.Zone__current, type$._Future_legacy_Object);
  75870. result = J.apply$2$x(importer, $async$self._implementation$_context, H.setRuntimeTypeInfo([url, previousString, P.allowInterop(new P._AsyncCompleter(t1, type$._AsyncCompleter_legacy_Object).get$complete())], type$.JSArray_legacy_Object));
  75871. $async$goto = H._asBoolS($.$get$_isUndefined().call$1(result)) ? 3 : 4;
  75872. break;
  75873. case 3:
  75874. // then
  75875. $async$goto = 5;
  75876. return P._asyncAwait(t1, $async$_callImporterAsync$3);
  75877. case 5:
  75878. // returning from await.
  75879. $async$returnValue = $async$result;
  75880. // goto return
  75881. $async$goto = 1;
  75882. break;
  75883. case 4:
  75884. // join
  75885. $async$returnValue = result;
  75886. // goto return
  75887. $async$goto = 1;
  75888. break;
  75889. case 1:
  75890. // return
  75891. return P._asyncReturn($async$returnValue, $async$completer);
  75892. }
  75893. });
  75894. return P._asyncStartSync($async$_callImporterAsync$3, $async$completer);
  75895. }
  75896. };
  75897. F.NodeImporter__tryPath_closure.prototype = {
  75898. call$0: function() {
  75899. return B.resolveImportPath0(this.path);
  75900. },
  75901. $signature: 9
  75902. };
  75903. F.ModifiableCssImport0.prototype = {
  75904. accept$1$1: function(visitor) {
  75905. return visitor.visitCssImport$1(this);
  75906. },
  75907. accept$1: function(visitor) {
  75908. return this.accept$1$1(visitor, type$.dynamic);
  75909. },
  75910. $isCssImport0: 1,
  75911. get$span: function() {
  75912. return this.span;
  75913. }
  75914. };
  75915. F.Import0.prototype = {$isAstNode0: 1};
  75916. R.ImportCache0.prototype = {
  75917. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  75918. var resolvedUrl, canonicalUrl;
  75919. if (baseImporter != null) {
  75920. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  75921. canonicalUrl = this._import_cache$_canonicalize$3(baseImporter, resolvedUrl, forImport);
  75922. if (canonicalUrl != null)
  75923. return new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2);
  75924. }
  75925. return this._import_cache$_canonicalizeCache.putIfAbsent$2(new S.Tuple2(url, forImport, type$.Tuple2_of_legacy_Uri_and_legacy_bool), new R.ImportCache_canonicalize_closure0(this, url, forImport));
  75926. },
  75927. _import_cache$_canonicalize$3: function(importer, url, forImport) {
  75928. var result = forImport ? B.inImportRule0(new R.ImportCache__canonicalize_closure0(importer, url)) : importer.canonicalize$1(url);
  75929. if ((result == null ? null : result.get$scheme()) === "")
  75930. this._import_cache$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + url.toString$0(0) + " to " + H.S(result) + string$.x2ex0aRela, true);
  75931. return result;
  75932. },
  75933. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  75934. var t1,
  75935. tuple = this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport);
  75936. if (tuple == null)
  75937. return null;
  75938. t1 = tuple.item1;
  75939. return new S.Tuple2(t1, this.importCanonical$3(t1, tuple.item2, tuple.item3), type$.Tuple2_of_legacy_Importer_and_legacy_Stylesheet_2);
  75940. },
  75941. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  75942. return this._import_cache$_importCache.putIfAbsent$2(canonicalUrl, new R.ImportCache_importCanonical_closure0(this, importer, canonicalUrl, originalUrl));
  75943. },
  75944. humanize$1: function(canonicalUrl) {
  75945. var t1 = this._import_cache$_canonicalizeCache.get$values(),
  75946. t2 = H._instanceType(t1),
  75947. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new R.ImportCache_humanize_closure2(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new R.ImportCache_humanize_closure3(), t2._eval$1("MappedIterable<Iterable.E,Uri*>")), new R.ImportCache_humanize_closure4(), type$.legacy_Uri, type$.dynamic);
  75948. if (url == null)
  75949. return canonicalUrl;
  75950. t1 = $.$get$url();
  75951. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  75952. }
  75953. };
  75954. R.ImportCache_canonicalize_closure0.prototype = {
  75955. call$0: function() {
  75956. var t1, t2, t3, _i, importer, canonicalUrl;
  75957. for (t1 = this.$this, t2 = this.url, t3 = this.forImport, _i = 0; false; ++_i) {
  75958. importer = C.List_empty17[_i];
  75959. canonicalUrl = t1._import_cache$_canonicalize$3(importer, t2, t3);
  75960. if (canonicalUrl != null)
  75961. return new S.Tuple3(importer, canonicalUrl, t2, type$.Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2);
  75962. }
  75963. return null;
  75964. },
  75965. $signature: 138
  75966. };
  75967. R.ImportCache__canonicalize_closure0.prototype = {
  75968. call$0: function() {
  75969. return this.importer.canonicalize$1(this.url);
  75970. },
  75971. $signature: 65
  75972. };
  75973. R.ImportCache_importCanonical_closure0.prototype = {
  75974. call$0: function() {
  75975. var t3, _this = this,
  75976. t1 = _this.canonicalUrl,
  75977. result = _this.importer.load$1(t1),
  75978. t2 = _this.$this;
  75979. t2._import_cache$_resultsCache.$indexSet(0, t1, result);
  75980. t3 = _this.originalUrl;
  75981. t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
  75982. return V.Stylesheet_Stylesheet$parse0(result.contents, result.syntax, t2._import_cache$_logger, t1);
  75983. },
  75984. $signature: 98
  75985. };
  75986. R.ImportCache_humanize_closure2.prototype = {
  75987. call$1: function(tuple) {
  75988. var t1 = tuple == null ? null : tuple.item2;
  75989. return J.$eq$(t1, this.canonicalUrl);
  75990. }
  75991. };
  75992. R.ImportCache_humanize_closure3.prototype = {
  75993. call$1: function(tuple) {
  75994. return tuple.item3;
  75995. }
  75996. };
  75997. R.ImportCache_humanize_closure4.prototype = {
  75998. call$1: function(url) {
  75999. return J.get$length$asx(J.get$path$x(url));
  76000. },
  76001. $signature: 30
  76002. };
  76003. B.ImportRule0.prototype = {
  76004. accept$1$1: function(visitor) {
  76005. return visitor.visitImportRule$1(this);
  76006. },
  76007. accept$1: function(visitor) {
  76008. return this.accept$1$1(visitor, type$.dynamic);
  76009. },
  76010. toString$0: function(_) {
  76011. return "@import " + C.JSArray_methods.join$1(this.imports, ", ") + ";";
  76012. },
  76013. $isAstNode0: 1,
  76014. $isStatement0: 1,
  76015. get$span: function() {
  76016. return this.span;
  76017. }
  76018. };
  76019. M.Importer0.prototype = {};
  76020. F.NodeImporterResult0.prototype = {};
  76021. A.IncludeRule0.prototype = {
  76022. get$spanWithoutContent: function() {
  76023. var t2, t3,
  76024. t1 = this.span;
  76025. if (!(this.content == null)) {
  76026. t2 = t1.file;
  76027. t3 = this.$arguments.span;
  76028. t3 = B.SpanExtensions_trim0(t2.span$2(Y.FileLocation$_(t2, t1._file$_start).offset, Y.FileLocation$_(t3.file, t3._end).offset));
  76029. t1 = t3;
  76030. }
  76031. return t1;
  76032. },
  76033. accept$1$1: function(visitor) {
  76034. return visitor.visitIncludeRule$1(this);
  76035. },
  76036. accept$1: function(visitor) {
  76037. return this.accept$1$1(visitor, type$.dynamic);
  76038. },
  76039. toString$0: function(_) {
  76040. var t2, _this = this,
  76041. t1 = _this.namespace;
  76042. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  76043. t1 += _this.name;
  76044. t2 = _this.$arguments;
  76045. if (!t2.get$isEmpty(t2))
  76046. t1 += "(" + t2.toString$0(0) + ")";
  76047. t2 = _this.content;
  76048. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  76049. return t1.charCodeAt(0) == 0 ? t1 : t1;
  76050. },
  76051. $isAstNode0: 1,
  76052. $isStatement0: 1,
  76053. get$span: function() {
  76054. return this.span;
  76055. }
  76056. };
  76057. X.Interpolation0.prototype = {
  76058. get$asPlain: function() {
  76059. var first,
  76060. t1 = this.contents,
  76061. t2 = t1.length;
  76062. if (t2 === 0)
  76063. return "";
  76064. if (t2 > 1)
  76065. return null;
  76066. first = C.JSArray_methods.get$first(t1);
  76067. return typeof first == "string" ? first : null;
  76068. },
  76069. Interpolation$20: function(contents, span) {
  76070. var t1, t2, t3, i, t4, t5,
  76071. _s8_ = "contents";
  76072. for (t1 = this.contents, t2 = t1.length, t3 = type$.legacy_Expression_2, i = 0; i < t2; ++i) {
  76073. t4 = t1[i];
  76074. t5 = typeof t4 == "string";
  76075. if (!t5 && !t3._is(t4))
  76076. throw H.wrapException(P.ArgumentError$value(t1, _s8_, string$.May_on));
  76077. if (i !== 0 && typeof t1[i - 1] == "string" && t5)
  76078. throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  76079. }
  76080. },
  76081. toString$0: function(_) {
  76082. var t1 = this.contents;
  76083. return new H.MappedListIterable(t1, new X.Interpolation_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  76084. },
  76085. $isAstNode0: 1,
  76086. get$span: function() {
  76087. return this.span;
  76088. }
  76089. };
  76090. X.Interpolation_toString_closure0.prototype = {
  76091. call$1: function(value) {
  76092. return typeof value == "string" ? value : "#{" + H.S(value) + "}";
  76093. },
  76094. $signature: 27
  76095. };
  76096. X.SupportsInterpolation0.prototype = {
  76097. toString$0: function(_) {
  76098. return "#{" + H.S(this.expression) + "}";
  76099. },
  76100. $isAstNode0: 1,
  76101. get$span: function() {
  76102. return this.span;
  76103. }
  76104. };
  76105. Z.InterpolationBuffer0.prototype = {
  76106. add$1: function(_, expression) {
  76107. this._interpolation_buffer0$_flushText$0();
  76108. this._interpolation_buffer0$_contents.push(expression);
  76109. },
  76110. addInterpolation$1: function(interpolation) {
  76111. var first, t1, _this = this,
  76112. toAdd = interpolation.contents;
  76113. if (toAdd.length === 0)
  76114. return;
  76115. first = C.JSArray_methods.get$first(toAdd);
  76116. if (typeof first == "string") {
  76117. _this._interpolation_buffer0$_text._contents += first;
  76118. toAdd = H.SubListIterable$(toAdd, 1, null, H._arrayInstanceType(toAdd)._precomputed1);
  76119. }
  76120. _this._interpolation_buffer0$_flushText$0();
  76121. t1 = _this._interpolation_buffer0$_contents;
  76122. C.JSArray_methods.addAll$1(t1, toAdd);
  76123. if (typeof C.JSArray_methods.get$last(t1) == "string")
  76124. _this._interpolation_buffer0$_text._contents += H.S(t1.pop());
  76125. },
  76126. _interpolation_buffer0$_flushText$0: function() {
  76127. var t1 = this._interpolation_buffer0$_text,
  76128. t2 = t1._contents;
  76129. if (t2.length === 0)
  76130. return;
  76131. this._interpolation_buffer0$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  76132. t1._contents = "";
  76133. },
  76134. interpolation$1: function(span) {
  76135. var t2, t3, _i,
  76136. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  76137. for (t2 = this._interpolation_buffer0$_contents, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76138. t1.push(t2[_i]);
  76139. t2 = this._interpolation_buffer0$_text._contents;
  76140. if (t2.length !== 0)
  76141. t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  76142. return X.Interpolation$0(t1, span);
  76143. },
  76144. toString$0: function(_) {
  76145. var t1, t2, _i, t3, element;
  76146. for (t1 = this._interpolation_buffer0$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  76147. element = t1[_i];
  76148. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + H.S(element) + H.Primitives_stringFromCharCode(125);
  76149. }
  76150. t1 = t3 + this._interpolation_buffer0$_text.toString$0(0);
  76151. return t1.charCodeAt(0) == 0 ? t1 : t1;
  76152. }
  76153. };
  76154. F.realCasePath_closure0.prototype = {
  76155. call$1: function(realPath) {
  76156. return B.equalsIgnoreCase0(X.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
  76157. }
  76158. };
  76159. U.ModifiableCssKeyframeBlock0.prototype = {
  76160. accept$1$1: function(visitor) {
  76161. return visitor.visitCssKeyframeBlock$1(this);
  76162. },
  76163. accept$1: function(visitor) {
  76164. return this.accept$1$1(visitor, type$.dynamic);
  76165. },
  76166. copyWithoutChildren$0: function() {
  76167. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  76168. return new U.ModifiableCssKeyframeBlock0(this.selector, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
  76169. },
  76170. get$span: function() {
  76171. return this.span;
  76172. }
  76173. };
  76174. E.KeyframeSelectorParser0.prototype = {
  76175. parse$0: function() {
  76176. return this.wrapSpanFormatException$1(new E.KeyframeSelectorParser_parse_closure0(this));
  76177. },
  76178. _keyframe_selector$_percentage$0: function() {
  76179. var t3, next,
  76180. t1 = this.scanner,
  76181. t2 = t1.scanChar$1(43) ? H.Primitives_stringFromCharCode(43) : "",
  76182. second = t1.peekChar$0();
  76183. if (!T.isDigit0(second) && second !== 46)
  76184. t1.error$1("Expected number.");
  76185. while (true) {
  76186. t3 = t1.peekChar$0();
  76187. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  76188. break;
  76189. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  76190. }
  76191. if (t1.peekChar$0() === 46) {
  76192. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  76193. while (true) {
  76194. t3 = t1.peekChar$0();
  76195. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  76196. break;
  76197. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  76198. }
  76199. }
  76200. if (this.scanIdentifier$1("e")) {
  76201. t2 += t1.readChar$0();
  76202. next = t1.peekChar$0();
  76203. if (next === 43 || next === 45)
  76204. t2 += t1.readChar$0();
  76205. if (!T.isDigit0(t1.peekChar$0()))
  76206. t1.error$1("Expected digit.");
  76207. while (true) {
  76208. t3 = t1.peekChar$0();
  76209. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  76210. break;
  76211. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  76212. }
  76213. }
  76214. t1.expectChar$1(37);
  76215. t2 += H.Primitives_stringFromCharCode(37);
  76216. return t2.charCodeAt(0) == 0 ? t2 : t2;
  76217. }
  76218. };
  76219. E.KeyframeSelectorParser_parse_closure0.prototype = {
  76220. call$0: function() {
  76221. var selectors = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String),
  76222. t1 = this.$this,
  76223. t2 = t1.scanner;
  76224. do {
  76225. t1.whitespace$0();
  76226. if (t1.lookingAtIdentifier$0())
  76227. if (t1.scanIdentifier$1("from"))
  76228. selectors.push("from");
  76229. else {
  76230. t1.expectIdentifier$2$name("to", '"to" or "from"');
  76231. selectors.push("to");
  76232. }
  76233. else
  76234. selectors.push(t1._keyframe_selector$_percentage$0());
  76235. t1.whitespace$0();
  76236. } while (t2.scanChar$1(44));
  76237. t2.expectDone$0();
  76238. return selectors;
  76239. },
  76240. $signature: 33
  76241. };
  76242. K.LimitedMapView0.prototype = {
  76243. get$keys: function() {
  76244. return this._limited_map_view0$_keys;
  76245. },
  76246. get$length: function(_) {
  76247. return this._limited_map_view0$_keys._collection$_length;
  76248. },
  76249. get$isEmpty: function(_) {
  76250. return this._limited_map_view0$_keys._collection$_length === 0;
  76251. },
  76252. get$isNotEmpty: function(_) {
  76253. return this._limited_map_view0$_keys._collection$_length !== 0;
  76254. },
  76255. $index: function(_, key) {
  76256. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.$index(0, key) : null;
  76257. },
  76258. containsKey$1: function(key) {
  76259. return this._limited_map_view0$_keys.contains$1(0, key);
  76260. },
  76261. remove$1: function(_, key) {
  76262. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.remove$1(0, key) : null;
  76263. }
  76264. };
  76265. D.ListExpression0.prototype = {
  76266. accept$1$1: function(visitor) {
  76267. return visitor.visitListExpression$1(this);
  76268. },
  76269. accept$1: function(visitor) {
  76270. return this.accept$1$1(visitor, type$.dynamic);
  76271. },
  76272. toString$0: function(_) {
  76273. var _this = this,
  76274. t1 = _this.hasBrackets,
  76275. t2 = t1 ? H.Primitives_stringFromCharCode(91) : "",
  76276. t3 = _this.contents,
  76277. t4 = _this.separator === C.ListSeparator_comma0 ? ", " : " ";
  76278. t4 = t2 + new H.MappedListIterable(t3, new D.ListExpression_toString_closure0(_this), H._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String*>")).join$1(0, t4);
  76279. t1 = t1 ? t4 + H.Primitives_stringFromCharCode(93) : t4;
  76280. return t1.charCodeAt(0) == 0 ? t1 : t1;
  76281. },
  76282. _list3$_elementNeedsParens$1: function(expression) {
  76283. var t1, t2;
  76284. if (expression instanceof D.ListExpression0) {
  76285. if (expression.contents.length < 2)
  76286. return false;
  76287. if (expression.hasBrackets)
  76288. return false;
  76289. t1 = this.separator;
  76290. t2 = t1 === C.ListSeparator_comma0;
  76291. return t2 ? t2 : t1 !== C.ListSeparator_undecided0;
  76292. }
  76293. if (this.separator !== C.ListSeparator_space0)
  76294. return false;
  76295. if (expression instanceof X.UnaryOperationExpression0) {
  76296. t1 = expression.operator;
  76297. return t1 === C.UnaryOperator_j2w0 || t1 === C.UnaryOperator_U4G0;
  76298. }
  76299. return false;
  76300. },
  76301. $isExpression0: 1,
  76302. $isAstNode0: 1,
  76303. get$span: function() {
  76304. return this.span;
  76305. }
  76306. };
  76307. D.ListExpression_toString_closure0.prototype = {
  76308. call$1: function(element) {
  76309. return this.$this._list3$_elementNeedsParens$1(element) ? "(" + H.S(element) + ")" : J.toString$0$(element);
  76310. }
  76311. };
  76312. D.closure148.prototype = {
  76313. call$1: function($arguments) {
  76314. var t1 = J.$index$asx($arguments, 0).get$asList().length;
  76315. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  76316. },
  76317. $signature: 5
  76318. };
  76319. D.closure147.prototype = {
  76320. call$1: function($arguments) {
  76321. var t1 = J.getInterceptor$asx($arguments),
  76322. list = t1.$index($arguments, 0),
  76323. index = t1.$index($arguments, 1);
  76324. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  76325. },
  76326. $signature: 3
  76327. };
  76328. D.closure146.prototype = {
  76329. call$1: function($arguments) {
  76330. var t1 = J.getInterceptor$asx($arguments),
  76331. list = t1.$index($arguments, 0),
  76332. index = t1.$index($arguments, 1),
  76333. value = t1.$index($arguments, 2),
  76334. t2 = list.get$asList(),
  76335. newList = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2));
  76336. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  76337. return t1.$index($arguments, 0).changeListContents$1(newList);
  76338. },
  76339. $signature: 17
  76340. };
  76341. D.closure145.prototype = {
  76342. call$1: function($arguments) {
  76343. var separator, bracketed, t2, t3, _i,
  76344. t1 = J.getInterceptor$asx($arguments),
  76345. list1 = t1.$index($arguments, 0),
  76346. list2 = t1.$index($arguments, 1),
  76347. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  76348. bracketedParam = t1.$index($arguments, 3);
  76349. t1 = separatorParam.text;
  76350. if (t1 === "auto")
  76351. if (list1.get$separator() !== C.ListSeparator_undecided0)
  76352. separator = list1.get$separator();
  76353. else
  76354. separator = list2.get$separator() !== C.ListSeparator_undecided0 ? list2.get$separator() : C.ListSeparator_space0;
  76355. else if (t1 === "space")
  76356. separator = C.ListSeparator_space0;
  76357. else {
  76358. if (t1 !== "comma")
  76359. throw H.wrapException(E.SassScriptException$0(string$.x24separ));
  76360. separator = C.ListSeparator_comma0;
  76361. }
  76362. bracketed = bracketedParam instanceof D.SassString0 && bracketedParam.text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  76363. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  76364. for (t2 = list1.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76365. t1.push(t2[_i]);
  76366. for (t2 = list2.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76367. t1.push(t2[_i]);
  76368. return D.SassList$0(t1, separator, bracketed);
  76369. },
  76370. $signature: 17
  76371. };
  76372. D.closure144.prototype = {
  76373. call$1: function($arguments) {
  76374. var separator, t2, t3, _i,
  76375. t1 = J.getInterceptor$asx($arguments),
  76376. list = t1.$index($arguments, 0),
  76377. value = t1.$index($arguments, 1);
  76378. t1 = t1.$index($arguments, 2).assertString$1("separator").text;
  76379. if (t1 === "auto")
  76380. separator = list.get$separator() === C.ListSeparator_undecided0 ? C.ListSeparator_space0 : list.get$separator();
  76381. else if (t1 === "space")
  76382. separator = C.ListSeparator_space0;
  76383. else {
  76384. if (t1 !== "comma")
  76385. throw H.wrapException(E.SassScriptException$0(string$.x24separ));
  76386. separator = C.ListSeparator_comma0;
  76387. }
  76388. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  76389. for (t2 = list.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76390. t1.push(t2[_i]);
  76391. t1.push(value);
  76392. return list.changeListContents$2$separator(t1, separator);
  76393. },
  76394. $signature: 17
  76395. };
  76396. D.closure143.prototype = {
  76397. call$1: function($arguments) {
  76398. var results, result, _box_0 = {},
  76399. t1 = J.$index$asx($arguments, 0).get$asList(),
  76400. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value0*>*>"),
  76401. lists = P.List_List$from(new H.MappedListIterable(t1, new D._closure18(), t2), true, t2._eval$1("ListIterable.E"));
  76402. if (lists.length === 0)
  76403. return C.SassList_lmy0;
  76404. _box_0.i = 0;
  76405. results = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SassList_2);
  76406. for (t1 = H._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value0*>"), t2 = type$.legacy_Value_2; C.JSArray_methods.every$1(lists, new D._closure19(_box_0));) {
  76407. result = P.List_List$from(new H.MappedListIterable(lists, new D._closure20(_box_0), t1), false, t2);
  76408. result.fixed$length = Array;
  76409. result.immutable$list = Array;
  76410. results.push(new D.SassList0(result, C.ListSeparator_space0, false));
  76411. ++_box_0.i;
  76412. }
  76413. return D.SassList$0(results, C.ListSeparator_comma0, false);
  76414. },
  76415. $signature: 17
  76416. };
  76417. D._closure18.prototype = {
  76418. call$1: function(list) {
  76419. return list.get$asList();
  76420. }
  76421. };
  76422. D._closure19.prototype = {
  76423. call$1: function(list) {
  76424. return this._box_0.i !== J.get$length$asx(list);
  76425. }
  76426. };
  76427. D._closure20.prototype = {
  76428. call$1: function(list) {
  76429. return J.$index$asx(list, this._box_0.i);
  76430. },
  76431. $signature: 3
  76432. };
  76433. D.closure142.prototype = {
  76434. call$1: function($arguments) {
  76435. var t1 = J.getInterceptor$asx($arguments),
  76436. index = C.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  76437. if (index === -1)
  76438. t1 = C.C_SassNull;
  76439. else
  76440. t1 = new T.SassNumber0(index + 1, C.List_empty, C.List_empty, null);
  76441. return t1;
  76442. },
  76443. $signature: 3
  76444. };
  76445. D.closure140.prototype = {
  76446. call$1: function($arguments) {
  76447. return J.$index$asx($arguments, 0).get$separator() === C.ListSeparator_comma0 ? new D.SassString0("comma", false) : new D.SassString0("space", false);
  76448. },
  76449. $signature: 10
  76450. };
  76451. D.closure141.prototype = {
  76452. call$1: function($arguments) {
  76453. return J.$index$asx($arguments, 0).get$hasBrackets() ? C.SassBoolean_true : C.SassBoolean_false;
  76454. },
  76455. $signature: 14
  76456. };
  76457. D.SelectorList0.prototype = {
  76458. get$isInvisible: function() {
  76459. return C.JSArray_methods.every$1(this.components, new D.SelectorList_isInvisible_closure0());
  76460. },
  76461. get$asSassList: function() {
  76462. var t1 = this.components;
  76463. return D.SassList$0(new H.MappedListIterable(t1, new D.SelectorList_asSassList_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0*>")), C.ListSeparator_comma0, false);
  76464. },
  76465. accept$1$1: function(visitor) {
  76466. return visitor.visitSelectorList$1(this);
  76467. },
  76468. accept$1: function(visitor) {
  76469. return this.accept$1$1(visitor, type$.dynamic);
  76470. },
  76471. unify$1: function(other) {
  76472. var t1 = this.components,
  76473. t2 = H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector0*>"),
  76474. contents = P.List_List$from(new H.ExpandIterable(t1, new D.SelectorList_unify_closure0(other), t2), true, t2._eval$1("Iterable.E"));
  76475. return contents.length === 0 ? null : D.SelectorList$0(contents);
  76476. },
  76477. resolveParentSelectors$2$implicitParent: function($parent, implicitParent) {
  76478. var t1, _this = this;
  76479. if ($parent == null) {
  76480. if (!C.JSArray_methods.any$1(_this.components, _this.get$_list2$_complexContainsParentSelector()))
  76481. return _this;
  76482. throw H.wrapException(E.SassScriptException$0(string$.Top_le));
  76483. }
  76484. t1 = _this.components;
  76485. return D.SelectorList$0(B.flattenVertically0(new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors_closure0(_this, implicitParent, $parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector0*>*>")), type$.legacy_ComplexSelector_2));
  76486. },
  76487. resolveParentSelectors$1: function($parent) {
  76488. return this.resolveParentSelectors$2$implicitParent($parent, true);
  76489. },
  76490. _list2$_complexContainsParentSelector$1: function(complex) {
  76491. return C.JSArray_methods.any$1(complex.components, new D.SelectorList__complexContainsParentSelector_closure0());
  76492. },
  76493. _list2$_resolveParentSelectorsCompound$2: function(compound, $parent) {
  76494. var resolvedMembers0, parentSelector, t1,
  76495. resolvedMembers = compound.components,
  76496. containsSelectorPseudo = C.JSArray_methods.any$1(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure2());
  76497. if (!containsSelectorPseudo && !(C.JSArray_methods.get$first(resolvedMembers) instanceof M.ParentSelector0))
  76498. return null;
  76499. resolvedMembers0 = containsSelectorPseudo ? new H.MappedListIterable(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure3($parent), H._arrayInstanceType(resolvedMembers)._eval$1("MappedListIterable<1,SimpleSelector0*>")) : resolvedMembers;
  76500. parentSelector = C.JSArray_methods.get$first(resolvedMembers);
  76501. if (parentSelector instanceof M.ParentSelector0) {
  76502. if (resolvedMembers.length === 1 && parentSelector.suffix == null)
  76503. return $parent.components;
  76504. } else
  76505. return H.setRuntimeTypeInfo([S.ComplexSelector$0(H.setRuntimeTypeInfo([X.CompoundSelector$0(resolvedMembers0)], type$.JSArray_legacy_ComplexSelectorComponent_2), false)], type$.JSArray_legacy_ComplexSelector_2);
  76506. t1 = $parent.components;
  76507. return new H.MappedListIterable(t1, new D.SelectorList__resolveParentSelectorsCompound_closure4(compound, resolvedMembers0), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0*>"));
  76508. },
  76509. get$hashCode: function(_) {
  76510. return C.C_ListEquality.hash$1(this.components);
  76511. },
  76512. $eq: function(_, other) {
  76513. if (other == null)
  76514. return false;
  76515. return other instanceof D.SelectorList0 && C.C_ListEquality.equals$2(this.components, other.components);
  76516. }
  76517. };
  76518. D.SelectorList_isInvisible_closure0.prototype = {
  76519. call$1: function(complex) {
  76520. return complex.get$isInvisible();
  76521. }
  76522. };
  76523. D.SelectorList_asSassList_closure0.prototype = {
  76524. call$1: function(complex) {
  76525. var t1 = complex.components;
  76526. return D.SassList$0(new H.MappedListIterable(t1, new D.SelectorList_asSassList__closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0*>")), C.ListSeparator_space0, false);
  76527. }
  76528. };
  76529. D.SelectorList_asSassList__closure0.prototype = {
  76530. call$1: function(component) {
  76531. return new D.SassString0(J.toString$0$(component), false);
  76532. }
  76533. };
  76534. D.SelectorList_unify_closure0.prototype = {
  76535. call$1: function(complex1) {
  76536. var t1 = this.other.components;
  76537. return new H.ExpandIterable(t1, new D.SelectorList_unify__closure0(complex1), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector0*>"));
  76538. }
  76539. };
  76540. D.SelectorList_unify__closure0.prototype = {
  76541. call$1: function(complex2) {
  76542. var unified = Y.unifyComplex0(H.setRuntimeTypeInfo([this.complex1.components, complex2.components], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  76543. if (unified == null)
  76544. return C.List_empty15;
  76545. return J.map$1$1$ax(unified, new D.SelectorList_unify___closure0(), type$.legacy_ComplexSelector_2);
  76546. }
  76547. };
  76548. D.SelectorList_unify___closure0.prototype = {
  76549. call$1: function(complex) {
  76550. return S.ComplexSelector$0(complex, false);
  76551. }
  76552. };
  76553. D.SelectorList_resolveParentSelectors_closure0.prototype = {
  76554. call$1: function(complex) {
  76555. var t2, t3, newComplexes, t4, t5, t6, t7, _i, component, resolved, t8, _i0, previousLineBreaks, newComplexes0, t9, i, newComplex, i0, lineBreak, t10, t11, t12, t13, t14, t15, _i1, _this = this, _box_0 = {},
  76556. t1 = _this.$this;
  76557. if (!t1._list2$_complexContainsParentSelector$1(complex)) {
  76558. if (!_this.implicitParent)
  76559. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  76560. t1 = _this.parent.components;
  76561. return new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors__closure1(complex), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0*>"));
  76562. }
  76563. t2 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  76564. t3 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2;
  76565. newComplexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], t2)], t3);
  76566. t4 = type$.JSArray_legacy_bool;
  76567. _box_0.lineBreaks = H.setRuntimeTypeInfo([false], t4);
  76568. for (t5 = complex.components, t6 = t5.length, t7 = _this.parent, _i = 0; _i < t6; ++_i) {
  76569. component = t5[_i];
  76570. if (component instanceof X.CompoundSelector0) {
  76571. resolved = t1._list2$_resolveParentSelectorsCompound$2(component, t7);
  76572. if (resolved == null) {
  76573. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  76574. newComplexes[_i0].push(component);
  76575. continue;
  76576. }
  76577. previousLineBreaks = _box_0.lineBreaks;
  76578. newComplexes0 = H.setRuntimeTypeInfo([], t3);
  76579. _box_0.lineBreaks = H.setRuntimeTypeInfo([], t4);
  76580. for (t8 = newComplexes.length, t9 = J.getInterceptor$ax(resolved), i = 0, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0, i = i0) {
  76581. newComplex = newComplexes[_i0];
  76582. i0 = i + 1;
  76583. lineBreak = previousLineBreaks[i];
  76584. for (t10 = t9.get$iterator(resolved), t11 = !lineBreak; t10.moveNext$0();) {
  76585. t12 = t10.get$current(t10);
  76586. t13 = H.setRuntimeTypeInfo([], t2);
  76587. for (t14 = C.JSArray_methods.get$iterator(newComplex); t14.moveNext$0();)
  76588. t13.push(t14.get$current(t14));
  76589. for (t14 = t12.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1)
  76590. t13.push(t14[_i1]);
  76591. newComplexes0.push(t13);
  76592. t13 = _box_0.lineBreaks;
  76593. t13.push(!t11 || t12.lineBreak);
  76594. }
  76595. }
  76596. newComplexes = newComplexes0;
  76597. } else
  76598. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  76599. newComplexes[_i0].push(component);
  76600. }
  76601. _box_0.i = 0;
  76602. return new H.MappedListIterable(newComplexes, new D.SelectorList_resolveParentSelectors__closure2(_box_0), H._arrayInstanceType(newComplexes)._eval$1("MappedListIterable<1,ComplexSelector0*>"));
  76603. }
  76604. };
  76605. D.SelectorList_resolveParentSelectors__closure1.prototype = {
  76606. call$1: function(parentComplex) {
  76607. var t2, t3, _i, t4,
  76608. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2);
  76609. for (t2 = parentComplex.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  76610. t1.push(t2[_i]);
  76611. for (t2 = this.complex, t3 = t2.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  76612. t1.push(t3[_i]);
  76613. return S.ComplexSelector$0(t1, t2.lineBreak || parentComplex.lineBreak);
  76614. }
  76615. };
  76616. D.SelectorList_resolveParentSelectors__closure2.prototype = {
  76617. call$1: function(newComplex) {
  76618. var t1 = this._box_0;
  76619. return S.ComplexSelector$0(newComplex, t1.lineBreaks[t1.i++]);
  76620. }
  76621. };
  76622. D.SelectorList__complexContainsParentSelector_closure0.prototype = {
  76623. call$1: function(component) {
  76624. return component instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(component.components, new D.SelectorList__complexContainsParentSelector__closure0());
  76625. }
  76626. };
  76627. D.SelectorList__complexContainsParentSelector__closure0.prototype = {
  76628. call$1: function(simple) {
  76629. var t1;
  76630. if (!(simple instanceof M.ParentSelector0))
  76631. if (simple instanceof D.PseudoSelector0) {
  76632. t1 = simple.selector;
  76633. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector());
  76634. } else
  76635. t1 = false;
  76636. else
  76637. t1 = true;
  76638. return t1;
  76639. }
  76640. };
  76641. D.SelectorList__resolveParentSelectorsCompound_closure2.prototype = {
  76642. call$1: function(simple) {
  76643. var t1;
  76644. if (simple instanceof D.PseudoSelector0) {
  76645. t1 = simple.selector;
  76646. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector());
  76647. } else
  76648. t1 = false;
  76649. return t1;
  76650. }
  76651. };
  76652. D.SelectorList__resolveParentSelectorsCompound_closure3.prototype = {
  76653. call$1: function(simple) {
  76654. var t1, t2, t3;
  76655. if (simple instanceof D.PseudoSelector0) {
  76656. t1 = simple.selector;
  76657. if (t1 == null)
  76658. return simple;
  76659. if (!C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector()))
  76660. return simple;
  76661. t1 = t1.resolveParentSelectors$2$implicitParent(this.parent, false);
  76662. t2 = simple.name;
  76663. t3 = simple.isClass;
  76664. return D.PseudoSelector$0(t2, simple.argument, !t3, t1);
  76665. } else
  76666. return simple;
  76667. }
  76668. };
  76669. D.SelectorList__resolveParentSelectorsCompound_closure4.prototype = {
  76670. call$1: function(complex) {
  76671. var suffix, t2, t3, t4, cur, last, _i,
  76672. t1 = complex.components,
  76673. lastComponent = C.JSArray_methods.get$last(t1);
  76674. if (!(lastComponent instanceof X.CompoundSelector0))
  76675. throw H.wrapException(E.SassScriptException$0('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.'));
  76676. suffix = type$.legacy_ParentSelector_2._as(C.JSArray_methods.get$first(this.compound.components)).suffix;
  76677. t2 = type$.JSArray_legacy_SimpleSelector_2;
  76678. if (suffix != null) {
  76679. t2 = H.setRuntimeTypeInfo([], t2);
  76680. for (t3 = lastComponent.components, t4 = H.SubListIterable$(t3, 0, t3.length - 1, H._arrayInstanceType(t3)._precomputed1), t4 = new H.ListIterator(t4, t4.get$length(t4)); t4.moveNext$0();) {
  76681. cur = t4.__internal$_current;
  76682. t2.push(cur);
  76683. }
  76684. t2.push(C.JSArray_methods.get$last(t3).addSuffix$1(suffix));
  76685. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();) {
  76686. cur = t3.__internal$_current;
  76687. t2.push(cur);
  76688. }
  76689. last = X.CompoundSelector$0(t2);
  76690. } else {
  76691. t2 = H.setRuntimeTypeInfo([], t2);
  76692. for (t3 = lastComponent.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  76693. t2.push(t3[_i]);
  76694. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();) {
  76695. cur = t3.__internal$_current;
  76696. t2.push(cur);
  76697. }
  76698. last = X.CompoundSelector$0(t2);
  76699. }
  76700. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2);
  76701. for (t1 = H.SubListIterable$(t1, 0, t1.length - 1, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  76702. cur = t1.__internal$_current;
  76703. t2.push(cur);
  76704. }
  76705. t2.push(last);
  76706. return S.ComplexSelector$0(t2, complex.lineBreak);
  76707. }
  76708. };
  76709. D._NodeSassList.prototype = {};
  76710. D.closure228.prototype = {
  76711. call$4: function(thisArg, $length, commaSeparator, dartValue) {
  76712. var t1;
  76713. if (dartValue == null) {
  76714. t1 = P.Iterable_Iterable$generate($length, new D._closure31(), type$.legacy_Value_2);
  76715. t1 = D.SassList$0(t1, commaSeparator !== false ? C.ListSeparator_comma0 : C.ListSeparator_space0, false);
  76716. } else
  76717. t1 = dartValue;
  76718. J.set$dartValue$x(thisArg, t1);
  76719. },
  76720. call$2: function(thisArg, $length) {
  76721. return this.call$4(thisArg, $length, null, null);
  76722. },
  76723. call$3: function(thisArg, $length, commaSeparator) {
  76724. return this.call$4(thisArg, $length, commaSeparator, null);
  76725. },
  76726. "call*": "call$4",
  76727. $requiredArgCount: 2,
  76728. $defaultValues: function() {
  76729. return [null, null];
  76730. }
  76731. };
  76732. D._closure31.prototype = {
  76733. call$1: function(_) {
  76734. return C.C_SassNull;
  76735. },
  76736. $signature: 74
  76737. };
  76738. D.closure229.prototype = {
  76739. call$2: function(thisArg, index) {
  76740. return F.wrapValue(J.get$dartValue$x(thisArg)._list1$_contents[index]);
  76741. },
  76742. "call*": "call$2",
  76743. $requiredArgCount: 2
  76744. };
  76745. D.closure230.prototype = {
  76746. call$3: function(thisArg, index, value) {
  76747. var t1 = J.getInterceptor$x(thisArg),
  76748. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  76749. mutable = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
  76750. mutable[index] = F.unwrapValue(value);
  76751. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeListContents$1(mutable));
  76752. },
  76753. "call*": "call$3",
  76754. $requiredArgCount: 3
  76755. };
  76756. D.closure231.prototype = {
  76757. call$1: function(thisArg) {
  76758. return J.get$dartValue$x(thisArg).separator === C.ListSeparator_comma0;
  76759. }
  76760. };
  76761. D.closure232.prototype = {
  76762. call$2: function(thisArg, isComma) {
  76763. var t1 = J.getInterceptor$x(thisArg),
  76764. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  76765. t3 = isComma ? C.ListSeparator_comma0 : C.ListSeparator_space0;
  76766. t1.set$dartValue(thisArg, D.SassList$0(t2, t3, t1.get$dartValue(thisArg).hasBrackets));
  76767. },
  76768. "call*": "call$2",
  76769. $requiredArgCount: 2
  76770. };
  76771. D.closure233.prototype = {
  76772. call$1: function(thisArg) {
  76773. return J.get$dartValue$x(thisArg)._list1$_contents.length;
  76774. }
  76775. };
  76776. D.closure234.prototype = {
  76777. call$1: function(thisArg) {
  76778. return J.toString$0$(J.get$dartValue$x(thisArg));
  76779. }
  76780. };
  76781. D.SassList0.prototype = {
  76782. get$isBlank: function() {
  76783. return C.JSArray_methods.every$1(this._list1$_contents, new D.SassList_isBlank_closure0());
  76784. },
  76785. get$asList: function() {
  76786. return this._list1$_contents;
  76787. },
  76788. get$lengthAsList: function() {
  76789. return this._list1$_contents.length;
  76790. },
  76791. SassList$3$brackets0: function(contents, separator, brackets) {
  76792. if (this.separator === C.ListSeparator_undecided0 && this._list1$_contents.length > 1)
  76793. throw H.wrapException(P.ArgumentError$(string$.A_list));
  76794. },
  76795. accept$1$1: function(visitor) {
  76796. return visitor.visitList$1(this);
  76797. },
  76798. accept$1: function(visitor) {
  76799. return this.accept$1$1(visitor, type$.dynamic);
  76800. },
  76801. assertMap$1: function($name) {
  76802. return this._list1$_contents.length === 0 ? C.SassMap_Map_empty0 : this.super$Value$assertMap0($name);
  76803. },
  76804. $eq: function(_, other) {
  76805. var t1, _this = this;
  76806. if (other == null)
  76807. return false;
  76808. if (!(other instanceof D.SassList0 && other.separator === _this.separator && other.hasBrackets === _this.hasBrackets && C.C_ListEquality.equals$2(other._list1$_contents, _this._list1$_contents)))
  76809. t1 = _this._list1$_contents.length === 0 && other instanceof A.SassMap0 && other.get$asList().length === 0;
  76810. else
  76811. t1 = true;
  76812. return t1;
  76813. },
  76814. get$hashCode: function(_) {
  76815. return C.C_ListEquality.hash$1(this._list1$_contents);
  76816. },
  76817. get$separator: function() {
  76818. return this.separator;
  76819. },
  76820. get$hasBrackets: function() {
  76821. return this.hasBrackets;
  76822. }
  76823. };
  76824. D.SassList_isBlank_closure0.prototype = {
  76825. call$1: function(element) {
  76826. return element.get$isBlank();
  76827. }
  76828. };
  76829. D.ListSeparator0.prototype = {
  76830. toString$0: function(_) {
  76831. return this._list1$_name;
  76832. }
  76833. };
  76834. L.LoudComment0.prototype = {
  76835. get$span: function() {
  76836. return this.text.span;
  76837. },
  76838. accept$1$1: function(visitor) {
  76839. return visitor.visitLoudComment$1(this);
  76840. },
  76841. accept$1: function(visitor) {
  76842. return this.accept$1$1(visitor, type$.dynamic);
  76843. },
  76844. toString$0: function(_) {
  76845. return this.text.toString$0(0);
  76846. },
  76847. $isAstNode0: 1,
  76848. $isStatement0: 1
  76849. };
  76850. A.MapExpression0.prototype = {
  76851. accept$1$1: function(visitor) {
  76852. return visitor.visitMapExpression$1(this);
  76853. },
  76854. accept$1: function(visitor) {
  76855. return this.accept$1$1(visitor, type$.dynamic);
  76856. },
  76857. toString$0: function(_) {
  76858. var t1 = this.pairs;
  76859. return "(" + new H.MappedListIterable(t1, new A.MapExpression_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$1(0, ", ") + ")";
  76860. },
  76861. $isExpression0: 1,
  76862. $isAstNode0: 1,
  76863. get$span: function() {
  76864. return this.span;
  76865. }
  76866. };
  76867. A.MapExpression_toString_closure0.prototype = {
  76868. call$1: function(pair) {
  76869. return H.S(pair.item1) + ": " + H.S(pair.item2);
  76870. }
  76871. };
  76872. A.closure139.prototype = {
  76873. call$1: function($arguments) {
  76874. var t1 = J.getInterceptor$asx($arguments);
  76875. t1 = t1.$index($arguments, 0).assertMap$1("map").contents.$index(0, t1.$index($arguments, 1));
  76876. return t1 == null ? C.C_SassNull : t1;
  76877. },
  76878. $signature: 3
  76879. };
  76880. A.closure138.prototype = {
  76881. call$1: function($arguments) {
  76882. var t2, t3, t4,
  76883. t1 = J.getInterceptor$asx($arguments),
  76884. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  76885. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  76886. t1 = type$.legacy_Value_2;
  76887. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  76888. for (t3 = map1.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  76889. t4 = t3.get$current(t3);
  76890. t2.$indexSet(0, t4.key, t4.value);
  76891. }
  76892. for (t3 = map2.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  76893. t4 = t3.get$current(t3);
  76894. t2.$indexSet(0, t4.key, t4.value);
  76895. }
  76896. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  76897. },
  76898. $signature: 28
  76899. };
  76900. A.closure136.prototype = {
  76901. call$1: function($arguments) {
  76902. return J.$index$asx($arguments, 0).assertMap$1("map");
  76903. },
  76904. $signature: 28
  76905. };
  76906. A.closure137.prototype = {
  76907. call$1: function($arguments) {
  76908. var t3, _i, mutableMap,
  76909. t1 = J.getInterceptor$asx($arguments),
  76910. map = t1.$index($arguments, 0).assertMap$1("map"),
  76911. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  76912. t2.push(t1.$index($arguments, 1));
  76913. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  76914. t2.push(t1[_i]);
  76915. t1 = type$.legacy_Value_2;
  76916. mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1);
  76917. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  76918. mutableMap.remove$1(0, t2[_i]);
  76919. return new A.SassMap0(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  76920. },
  76921. $signature: 28
  76922. };
  76923. A.closure135.prototype = {
  76924. call$1: function($arguments) {
  76925. return D.SassList$0(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$keys(), C.ListSeparator_comma0, false);
  76926. },
  76927. $signature: 17
  76928. };
  76929. A.closure134.prototype = {
  76930. call$1: function($arguments) {
  76931. return D.SassList$0(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$values(), C.ListSeparator_comma0, false);
  76932. },
  76933. $signature: 17
  76934. };
  76935. A.closure133.prototype = {
  76936. call$1: function($arguments) {
  76937. var t1 = J.getInterceptor$asx($arguments);
  76938. return t1.$index($arguments, 0).assertMap$1("map").contents.containsKey$1(t1.$index($arguments, 1)) ? C.SassBoolean_true : C.SassBoolean_false;
  76939. },
  76940. $signature: 14
  76941. };
  76942. A._NodeSassMap.prototype = {};
  76943. A.closure221.prototype = {
  76944. call$3: function(thisArg, $length, dartValue) {
  76945. var t1, t2, t3, map;
  76946. if (dartValue == null) {
  76947. t1 = type$.legacy_Value_2;
  76948. t2 = P.Iterable_Iterable$generate($length, new A._closure29(), t1);
  76949. t3 = P.Iterable_Iterable$generate($length, new A._closure30(), t1);
  76950. map = P.LinkedHashMap_LinkedHashMap(null, null, null, t1, t1);
  76951. P.MapBase__fillMapWithIterables(map, t2, t3);
  76952. t1 = new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  76953. } else
  76954. t1 = dartValue;
  76955. J.set$dartValue$x(thisArg, t1);
  76956. },
  76957. call$2: function(thisArg, $length) {
  76958. return this.call$3(thisArg, $length, null);
  76959. },
  76960. "call*": "call$3",
  76961. $requiredArgCount: 2,
  76962. $defaultValues: function() {
  76963. return [null];
  76964. }
  76965. };
  76966. A._closure29.prototype = {
  76967. call$1: function(i) {
  76968. return new T.SassNumber0(i, C.List_empty, C.List_empty, null);
  76969. },
  76970. $signature: 143
  76971. };
  76972. A._closure30.prototype = {
  76973. call$1: function(_) {
  76974. return C.C_SassNull;
  76975. },
  76976. $signature: 74
  76977. };
  76978. A.closure222.prototype = {
  76979. call$2: function(thisArg, index) {
  76980. return F.wrapValue(J.elementAt$1$ax(J.get$dartValue$x(thisArg).contents.get$keys(), index));
  76981. },
  76982. "call*": "call$2",
  76983. $requiredArgCount: 2
  76984. };
  76985. A.closure223.prototype = {
  76986. call$2: function(thisArg, index) {
  76987. return F.wrapValue(J.get$dartValue$x(thisArg).contents.get$values().elementAt$1(0, index));
  76988. },
  76989. "call*": "call$2",
  76990. $requiredArgCount: 2
  76991. };
  76992. A.closure224.prototype = {
  76993. call$1: function(thisArg) {
  76994. var t1 = J.get$dartValue$x(thisArg).contents;
  76995. return t1.get$length(t1);
  76996. }
  76997. };
  76998. A.closure225.prototype = {
  76999. call$3: function(thisArg, index, key) {
  77000. var newKey, t2, newMap, t3, i, t4,
  77001. t1 = J.getInterceptor$x(thisArg),
  77002. oldMap = t1.get$dartValue(thisArg).contents;
  77003. P.RangeError_checkValidIndex(index, oldMap, "index");
  77004. newKey = F.unwrapValue(key);
  77005. t2 = type$.legacy_Value_2;
  77006. newMap = P.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
  77007. for (t3 = J.get$iterator$ax(t1.get$dartValue(thisArg).contents.get$keys()), i = 0; t3.moveNext$0();) {
  77008. t4 = t3.get$current(t3);
  77009. if (i === index)
  77010. newMap.$indexSet(0, newKey, oldMap.$index(0, t4));
  77011. else {
  77012. if (newKey.$eq(0, t4))
  77013. throw H.wrapException(P.ArgumentError$value(key, "key", "is already in the map"));
  77014. newMap.$indexSet(0, t4, oldMap.$index(0, t4));
  77015. }
  77016. ++i;
  77017. }
  77018. t1.set$dartValue(thisArg, new A.SassMap0(H.ConstantMap_ConstantMap$from(newMap, t2, t2)));
  77019. },
  77020. "call*": "call$3",
  77021. $requiredArgCount: 3
  77022. };
  77023. A.closure226.prototype = {
  77024. call$3: function(thisArg, index, value) {
  77025. var t4, t5,
  77026. t1 = J.getInterceptor$x(thisArg),
  77027. key = J.elementAt$1$ax(t1.get$dartValue(thisArg).contents.get$keys(), index),
  77028. t2 = type$.legacy_Value_2,
  77029. t3 = P.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
  77030. for (t4 = t1.get$dartValue(thisArg).contents.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  77031. t5 = t4.get$current(t4);
  77032. t3.$indexSet(0, t5.key, t5.value);
  77033. }
  77034. t3.$indexSet(0, key, F.unwrapValue(value));
  77035. t1.set$dartValue(thisArg, new A.SassMap0(H.ConstantMap_ConstantMap$from(t3, t2, t2)));
  77036. },
  77037. "call*": "call$3",
  77038. $requiredArgCount: 3
  77039. };
  77040. A.closure227.prototype = {
  77041. call$1: function(thisArg) {
  77042. return J.toString$0$(J.get$dartValue$x(thisArg));
  77043. }
  77044. };
  77045. A.SassMap0.prototype = {
  77046. get$separator: function() {
  77047. var t1 = this.contents;
  77048. return t1.get$isEmpty(t1) ? C.ListSeparator_undecided0 : C.ListSeparator_comma0;
  77049. },
  77050. get$asList: function() {
  77051. var result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  77052. this.contents.forEach$1(0, new A.SassMap_asList_closure0(result));
  77053. return result;
  77054. },
  77055. get$lengthAsList: function() {
  77056. var t1 = this.contents;
  77057. return t1.get$length(t1);
  77058. },
  77059. accept$1$1: function(visitor) {
  77060. return visitor.visitMap$1(this);
  77061. },
  77062. accept$1: function(visitor) {
  77063. return this.accept$1$1(visitor, type$.dynamic);
  77064. },
  77065. assertMap$1: function($name) {
  77066. return this;
  77067. },
  77068. $eq: function(_, other) {
  77069. var t1;
  77070. if (other == null)
  77071. return false;
  77072. if (!(other instanceof A.SassMap0 && C.C_MapEquality.equals$2(other.contents, this.contents))) {
  77073. t1 = this.contents;
  77074. t1 = t1.get$isEmpty(t1) && other instanceof D.SassList0 && other._list1$_contents.length === 0;
  77075. } else
  77076. t1 = true;
  77077. return t1;
  77078. },
  77079. get$hashCode: function(_) {
  77080. var t1 = this.contents;
  77081. return t1.get$isEmpty(t1) ? C.C_ListEquality.hash$1(C.List_empty16) : C.C_MapEquality.hash$1(t1);
  77082. }
  77083. };
  77084. A.SassMap_asList_closure0.prototype = {
  77085. call$2: function(key, value) {
  77086. this.result.push(D.SassList$0(H.setRuntimeTypeInfo([key, value], type$.JSArray_legacy_Value_2), C.ListSeparator_space0, false));
  77087. }
  77088. };
  77089. K.closure131.prototype = {
  77090. call$1: function(value) {
  77091. return J.ceil$0$n(value);
  77092. },
  77093. $signature: 34
  77094. };
  77095. K.closure195.prototype = {
  77096. call$1: function($arguments) {
  77097. var t2, t3, arg2, arg2Name, unit1, unit2,
  77098. _s11_ = "is unitless",
  77099. t1 = J.getInterceptor$asx($arguments),
  77100. min = t1.$index($arguments, 0).assertNumber$1("min"),
  77101. number = t1.$index($arguments, 1).assertNumber$1("number"),
  77102. max = t1.$index($arguments, 2).assertNumber$1("max");
  77103. t1 = min.numeratorUnits.length === 0;
  77104. t2 = !t1 || min.denominatorUnits.length !== 0;
  77105. t3 = number.numeratorUnits.length === 0;
  77106. if (t2 === (!t3 || number.denominatorUnits.length !== 0)) {
  77107. t2 = !t3 || number.denominatorUnits.length !== 0;
  77108. t2 = t2 === (max.numeratorUnits.length !== 0 || max.denominatorUnits.length !== 0);
  77109. } else
  77110. t2 = false;
  77111. if (t2) {
  77112. if (min.greaterThanOrEquals$1(max).value)
  77113. return min;
  77114. if (min.greaterThanOrEquals$1(number).value)
  77115. return min;
  77116. if (number.greaterThanOrEquals$1(max).value)
  77117. return max;
  77118. return number;
  77119. }
  77120. t2 = !t1 || min.denominatorUnits.length !== 0;
  77121. arg2 = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? number : max;
  77122. t2 = !t1 || min.denominatorUnits.length !== 0;
  77123. arg2Name = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? "$number" : "$max";
  77124. unit1 = !t1 || min.denominatorUnits.length !== 0 ? "has unit " + min.get$unitString() : _s11_;
  77125. unit2 = arg2.numeratorUnits.length !== 0 || arg2.denominatorUnits.length !== 0 ? "has unit " + arg2.get$unitString() : _s11_;
  77126. throw H.wrapException(E.SassScriptException$0("$min " + unit1 + " but " + arg2Name + " " + unit2 + string$.x2ex20Argu));
  77127. },
  77128. $signature: 5
  77129. };
  77130. K.closure130.prototype = {
  77131. call$1: function(value) {
  77132. return J.floor$0$n(value);
  77133. },
  77134. $signature: 34
  77135. };
  77136. K.closure129.prototype = {
  77137. call$1: function($arguments) {
  77138. var t1, t2, max, _i, number;
  77139. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  77140. number = t1[_i].assertNumber$0();
  77141. if (max == null || max.lessThan$1(number).value)
  77142. max = number;
  77143. }
  77144. if (max != null)
  77145. return max;
  77146. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  77147. },
  77148. $signature: 5
  77149. };
  77150. K.closure128.prototype = {
  77151. call$1: function($arguments) {
  77152. var t1, t2, min, _i, number;
  77153. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  77154. number = t1[_i].assertNumber$0();
  77155. if (min == null || min.greaterThan$1(number).value)
  77156. min = number;
  77157. }
  77158. if (min != null)
  77159. return min;
  77160. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  77161. },
  77162. $signature: 5
  77163. };
  77164. K.closure132.prototype = {
  77165. call$1: function(value) {
  77166. return Math.abs(value);
  77167. },
  77168. $signature: 94
  77169. };
  77170. K.closure193.prototype = {
  77171. call$1: function($arguments) {
  77172. var numeratorUnits, denominatorUnits, subtotal, i, number, t3, t4, t5, t6, t7, result, unit1, unit2,
  77173. _s11_ = "is unitless",
  77174. t1 = J.$index$asx($arguments, 0).get$asList(),
  77175. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber0*>"),
  77176. numbers = P.List_List$from(new H.MappedListIterable(t1, new K._closure25(), t2), true, t2._eval$1("ListIterable.E"));
  77177. if (numbers.length === 0)
  77178. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  77179. t1 = numbers[0];
  77180. numeratorUnits = t1.numeratorUnits;
  77181. denominatorUnits = t1.denominatorUnits;
  77182. for (t1 = type$.legacy_String, subtotal = 0, i = 0; i < numbers.length; ++i) {
  77183. number = numbers[i];
  77184. t2 = number.numeratorUnits;
  77185. t3 = t2.length === 0;
  77186. t4 = !t3 || number.denominatorUnits.length !== 0;
  77187. t5 = numbers[0];
  77188. t6 = t5.numeratorUnits;
  77189. t7 = t6.length === 0;
  77190. if (t4 === (!t7 || t5.denominatorUnits.length !== 0)) {
  77191. t2 = number.valueInUnits$2(numeratorUnits, denominatorUnits);
  77192. result = P.List_List$from(numeratorUnits, false, t1);
  77193. result.fixed$length = Array;
  77194. result.immutable$list = Array;
  77195. result = P.List_List$from(denominatorUnits, false, t1);
  77196. result.fixed$length = Array;
  77197. result.immutable$list = Array;
  77198. H.checkNum(t2);
  77199. subtotal += Math.pow(t2, 2);
  77200. } else {
  77201. if (!t7 || t5.denominatorUnits.length !== 0)
  77202. unit1 = "has unit " + (!t7 || t5.denominatorUnits.length !== 0 ? t5._number1$_unitString$2(t6, t5.denominatorUnits) : "");
  77203. else
  77204. unit1 = _s11_;
  77205. if (!t3 || number.denominatorUnits.length !== 0)
  77206. unit2 = "has unit " + (!t3 || number.denominatorUnits.length !== 0 ? number._number1$_unitString$2(t2, number.denominatorUnits) : "");
  77207. else
  77208. unit2 = _s11_;
  77209. throw H.wrapException(E.SassScriptException$0("Argument 1 " + unit1 + " but argument " + (i + 1) + " " + unit2 + string$.x2ex20Argu));
  77210. }
  77211. }
  77212. return T.SassNumber$withUnits0(Math.sqrt(subtotal), denominatorUnits, numeratorUnits);
  77213. },
  77214. $signature: 5
  77215. };
  77216. K._closure25.prototype = {
  77217. call$1: function(argument) {
  77218. return argument.assertNumber$0();
  77219. }
  77220. };
  77221. K.closure192.prototype = {
  77222. call$1: function($arguments) {
  77223. var numberValue, base, baseValue, t2,
  77224. _s18_ = " to have no units.",
  77225. t1 = J.getInterceptor$asx($arguments),
  77226. number = t1.$index($arguments, 0).assertNumber$1("number");
  77227. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77228. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + _s18_));
  77229. numberValue = K._fuzzyRoundIfZero0(number.value);
  77230. if (J.$eq$(t1.$index($arguments, 1), C.C_SassNull)) {
  77231. t1 = Math.log(H.checkNum(numberValue));
  77232. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77233. }
  77234. base = t1.$index($arguments, 1).assertNumber$1("base");
  77235. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  77236. throw H.wrapException(E.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_));
  77237. t1 = base.value;
  77238. baseValue = Math.abs(t1 - 1) < $.$get$epsilon0() ? T.fuzzyRound0(t1) : K._fuzzyRoundIfZero0(t1);
  77239. t1 = Math.log(H.checkNum(numberValue));
  77240. t2 = Math.log(H.checkNum(baseValue));
  77241. return new T.SassNumber0(t1 / t2, C.List_empty, C.List_empty, null);
  77242. },
  77243. $signature: 5
  77244. };
  77245. K.closure191.prototype = {
  77246. call$1: function($arguments) {
  77247. var baseValue, exponentValue, t2, _null = null,
  77248. _s18_ = " to have no units.",
  77249. t1 = J.getInterceptor$asx($arguments),
  77250. base = t1.$index($arguments, 0).assertNumber$1("base"),
  77251. exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
  77252. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  77253. throw H.wrapException(E.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_));
  77254. else if (exponent.numeratorUnits.length !== 0 || exponent.denominatorUnits.length !== 0)
  77255. throw H.wrapException(E.SassScriptException$0("$exponent: Expected " + exponent.toString$0(0) + _s18_));
  77256. baseValue = K._fuzzyRoundIfZero0(base.value);
  77257. exponentValue = K._fuzzyRoundIfZero0(exponent.value);
  77258. t1 = $.$get$epsilon0();
  77259. if (Math.abs(Math.abs(baseValue) - 1) < t1) {
  77260. exponentValue.toString;
  77261. t2 = exponentValue == 1 / 0 || exponentValue == -1 / 0;
  77262. } else
  77263. t2 = false;
  77264. if (t2)
  77265. return new T.SassNumber0(0 / 0, C.List_empty, C.List_empty, _null);
  77266. else if (Math.abs(baseValue - 0) < t1) {
  77267. exponentValue.toString;
  77268. if (isFinite(exponentValue))
  77269. if (T.fuzzyIsInt0(exponentValue))
  77270. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt0(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  77271. else
  77272. t1 = false;
  77273. else
  77274. t1 = false;
  77275. if (t1)
  77276. exponentValue = T.fuzzyRound0(exponentValue);
  77277. } else {
  77278. if (isFinite(baseValue))
  77279. if (baseValue < 0 && true) {
  77280. exponentValue.toString;
  77281. t1 = isFinite(exponentValue) && T.fuzzyIsInt0(exponentValue);
  77282. } else
  77283. t1 = false;
  77284. else
  77285. t1 = false;
  77286. if (t1)
  77287. exponentValue = T.fuzzyRound0(exponentValue);
  77288. else {
  77289. if (baseValue == 1 / 0 || baseValue == -1 / 0)
  77290. if (baseValue < 0 && true) {
  77291. exponentValue.toString;
  77292. if (isFinite(exponentValue))
  77293. if (T.fuzzyIsInt0(exponentValue))
  77294. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt0(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  77295. else
  77296. t1 = false;
  77297. else
  77298. t1 = false;
  77299. } else
  77300. t1 = false;
  77301. else
  77302. t1 = false;
  77303. if (t1)
  77304. exponentValue = T.fuzzyRound0(exponentValue);
  77305. }
  77306. }
  77307. H.checkNum(exponentValue);
  77308. t1 = Math.pow(baseValue, exponentValue);
  77309. return new T.SassNumber0(t1, C.List_empty, C.List_empty, _null);
  77310. },
  77311. $signature: 5
  77312. };
  77313. K.closure189.prototype = {
  77314. call$1: function($arguments) {
  77315. var t1,
  77316. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77317. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77318. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  77319. t1 = Math.sqrt(H.checkNum(K._fuzzyRoundIfZero0(number.value)));
  77320. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77321. },
  77322. $signature: 5
  77323. };
  77324. K.closure199.prototype = {
  77325. call$1: function($arguments) {
  77326. var numberValue,
  77327. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77328. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77329. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  77330. numberValue = number.value;
  77331. if (Math.abs(Math.abs(numberValue) - 1) < $.$get$epsilon0())
  77332. numberValue = T.fuzzyRound0(numberValue);
  77333. return T.SassNumber$withUnits0(Math.acos(numberValue) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  77334. },
  77335. $signature: 5
  77336. };
  77337. K.closure198.prototype = {
  77338. call$1: function($arguments) {
  77339. var t1,
  77340. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77341. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77342. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  77343. t1 = number.value;
  77344. return T.SassNumber$withUnits0(Math.asin(H.checkNum(Math.abs(Math.abs(t1) - 1) < $.$get$epsilon0() ? T.fuzzyRound0(t1) : K._fuzzyRoundIfZero0(t1))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  77345. },
  77346. $signature: 5
  77347. };
  77348. K.closure197.prototype = {
  77349. call$1: function($arguments) {
  77350. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77351. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  77352. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  77353. return T.SassNumber$withUnits0(Math.atan(H.checkNum(K._fuzzyRoundIfZero0(number.value))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  77354. },
  77355. $signature: 5
  77356. };
  77357. K.closure196.prototype = {
  77358. call$1: function($arguments) {
  77359. var t2, t3, t4, unit1, unit2, xValue,
  77360. _s11_ = "is unitless",
  77361. t1 = J.getInterceptor$asx($arguments),
  77362. y = t1.$index($arguments, 0).assertNumber$1("y"),
  77363. x = t1.$index($arguments, 1).assertNumber$1("x");
  77364. t1 = y.numeratorUnits;
  77365. t2 = t1.length === 0;
  77366. t3 = !t2 || y.denominatorUnits.length !== 0;
  77367. t4 = x.numeratorUnits.length === 0;
  77368. if (t3 !== (!t4 || x.denominatorUnits.length !== 0)) {
  77369. unit1 = !t2 || y.denominatorUnits.length !== 0 ? "has unit " + y.get$unitString() : _s11_;
  77370. unit2 = !t4 || x.denominatorUnits.length !== 0 ? "has unit " + x.get$unitString() : _s11_;
  77371. throw H.wrapException(E.SassScriptException$0("$y " + unit1 + " but $x " + unit2 + string$.x2ex20Argu));
  77372. }
  77373. t2 = y.denominatorUnits;
  77374. xValue = K._fuzzyRoundIfZero0(T.SassNumber$withUnits0(x.valueInUnits$2(t1, t2), t2, t1).value);
  77375. return T.SassNumber$withUnits0(Math.atan2(H.checkNum(K._fuzzyRoundIfZero0(y.value)), H.checkNum(xValue)) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  77376. },
  77377. $signature: 5
  77378. };
  77379. K.closure194.prototype = {
  77380. call$1: function($arguments) {
  77381. var t1 = Math.cos(H.checkNum(K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value));
  77382. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77383. },
  77384. $signature: 5
  77385. };
  77386. K.closure190.prototype = {
  77387. call$1: function($arguments) {
  77388. var t1 = Math.sin(H.checkNum(K._fuzzyRoundIfZero0(K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value)));
  77389. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77390. },
  77391. $signature: 5
  77392. };
  77393. K.closure188.prototype = {
  77394. call$1: function($arguments) {
  77395. var t1 = K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value,
  77396. t2 = C.JSNumber_methods.$mod(t1 - 1.5707963267948966, 6.283185307179586),
  77397. t3 = $.$get$epsilon0();
  77398. if (Math.abs(t2 - 0) < t3)
  77399. return new T.SassNumber0(1 / 0, C.List_empty, C.List_empty, null);
  77400. else if (Math.abs(C.JSNumber_methods.$mod(t1 + 1.5707963267948966, 6.283185307179586) - 0) < t3)
  77401. return new T.SassNumber0(-1 / 0, C.List_empty, C.List_empty, null);
  77402. else {
  77403. t1 = Math.tan(H.checkNum(K._fuzzyRoundIfZero0(t1)));
  77404. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77405. }
  77406. },
  77407. $signature: 5
  77408. };
  77409. K.closure124.prototype = {
  77410. call$1: function($arguments) {
  77411. var t1 = J.getInterceptor$asx($arguments);
  77412. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? C.SassBoolean_true : C.SassBoolean_false;
  77413. },
  77414. $signature: 14
  77415. };
  77416. K.closure123.prototype = {
  77417. call$1: function($arguments) {
  77418. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77419. return !(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0) ? C.SassBoolean_true : C.SassBoolean_false;
  77420. },
  77421. $signature: 14
  77422. };
  77423. K.closure125.prototype = {
  77424. call$1: function($arguments) {
  77425. return new D.SassString0(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  77426. },
  77427. $signature: 10
  77428. };
  77429. K.closure127.prototype = {
  77430. call$1: function($arguments) {
  77431. var t1,
  77432. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77433. number.assertNoUnits$1("number");
  77434. t1 = H.setRuntimeTypeInfo(["%"], type$.JSArray_legacy_String);
  77435. t1 = P.List_List$unmodifiable(t1, type$.legacy_String);
  77436. return new T.SassNumber0(number.value * 100, t1, C.List_empty, null);
  77437. },
  77438. $signature: 5
  77439. };
  77440. K.closure126.prototype = {
  77441. call$1: function($arguments) {
  77442. var limit,
  77443. t1 = J.getInterceptor$asx($arguments);
  77444. if (J.$eq$(t1.$index($arguments, 0), C.C_SassNull)) {
  77445. t1 = $.$get$_random2().nextDouble$0();
  77446. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  77447. }
  77448. limit = t1.$index($arguments, 0).assertNumber$1("limit").assertInt$1("limit");
  77449. if (limit < 1)
  77450. throw H.wrapException(E.SassScriptException$0("$limit: Must be greater than 0, was " + limit + "."));
  77451. t1 = $.$get$_random2().nextInt$1(limit);
  77452. return new T.SassNumber0(t1 + 1, C.List_empty, C.List_empty, null);
  77453. },
  77454. $signature: 5
  77455. };
  77456. K._numberFunction_closure0.prototype = {
  77457. call$1: function($arguments) {
  77458. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  77459. return T.SassNumber$withUnits0(this.transform.call$1(number.value), number.denominatorUnits, number.numeratorUnits);
  77460. },
  77461. $signature: 5
  77462. };
  77463. F.CssMediaQuery0.prototype = {
  77464. merge$1: function(other) {
  77465. var _i, t8, negativeFeatures, features, type, modifier, fewerFeatures, fewerFeatures0, moreFeatures, _this = this, _null = null, _s3_ = "all",
  77466. t1 = _this.modifier,
  77467. ourModifier = t1 == null ? _null : t1.toLowerCase(),
  77468. t2 = _this.type,
  77469. t3 = t2 == null,
  77470. ourType = t3 ? _null : t2.toLowerCase(),
  77471. t4 = other.modifier,
  77472. theirModifier = t4 == null ? _null : t4.toLowerCase(),
  77473. t5 = other.type,
  77474. t6 = t5 == null,
  77475. theirType = t6 ? _null : t5.toLowerCase(),
  77476. t7 = ourType == null;
  77477. if (t7 && theirType == null) {
  77478. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  77479. for (t2 = _this.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  77480. t1.push(t2[_i]);
  77481. for (t2 = other.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  77482. t1.push(t2[_i]);
  77483. return new F.MediaQuerySuccessfulMergeResult0(new F.CssMediaQuery0(_null, _null, P.List_List$unmodifiable(t1, type$.legacy_String)));
  77484. }
  77485. t8 = ourModifier === "not";
  77486. if (t8 !== (theirModifier === "not")) {
  77487. if (ourType == theirType) {
  77488. negativeFeatures = t8 ? _this.features : other.features;
  77489. if (C.JSArray_methods.every$1(negativeFeatures, C.JSArray_methods.get$contains(t8 ? other.features : _this.features)))
  77490. return C._SingletonCssMediaQueryMergeResult_empty0;
  77491. else
  77492. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  77493. } else if (t3 || B.equalsIgnoreCase0(t2, _s3_) || t6 || B.equalsIgnoreCase0(t5, _s3_))
  77494. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  77495. if (t8) {
  77496. features = other.features;
  77497. type = theirType;
  77498. modifier = theirModifier;
  77499. } else {
  77500. features = _this.features;
  77501. type = ourType;
  77502. modifier = ourModifier;
  77503. }
  77504. } else if (t8) {
  77505. if (ourType != theirType)
  77506. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  77507. fewerFeatures = _this.features;
  77508. fewerFeatures0 = other.features;
  77509. t3 = fewerFeatures.length > fewerFeatures0.length;
  77510. moreFeatures = t3 ? fewerFeatures : fewerFeatures0;
  77511. if (t3)
  77512. fewerFeatures = fewerFeatures0;
  77513. if (!C.JSArray_methods.every$1(fewerFeatures, C.JSArray_methods.get$contains(moreFeatures)))
  77514. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  77515. features = moreFeatures;
  77516. type = ourType;
  77517. modifier = ourModifier;
  77518. } else if (t3 || B.equalsIgnoreCase0(t2, _s3_)) {
  77519. type = (t6 || B.equalsIgnoreCase0(t5, _s3_)) && t7 ? _null : theirType;
  77520. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  77521. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77522. t3.push(t6[_i]);
  77523. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77524. t3.push(t6[_i]);
  77525. features = t3;
  77526. modifier = theirModifier;
  77527. } else {
  77528. if (t6 || B.equalsIgnoreCase0(t5, _s3_)) {
  77529. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  77530. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77531. t3.push(t6[_i]);
  77532. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77533. t3.push(t6[_i]);
  77534. features = t3;
  77535. modifier = ourModifier;
  77536. } else {
  77537. if (ourType != theirType)
  77538. return C._SingletonCssMediaQueryMergeResult_empty0;
  77539. else {
  77540. modifier = ourModifier == null ? theirModifier : ourModifier;
  77541. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  77542. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77543. t3.push(t6[_i]);
  77544. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  77545. t3.push(t6[_i]);
  77546. }
  77547. features = t3;
  77548. }
  77549. type = ourType;
  77550. }
  77551. t2 = type == ourType ? t2 : t5;
  77552. return new F.MediaQuerySuccessfulMergeResult0(F.CssMediaQuery$0(t2, features, modifier == ourModifier ? t1 : t4));
  77553. },
  77554. $eq: function(_, other) {
  77555. if (other == null)
  77556. return false;
  77557. return other instanceof F.CssMediaQuery0 && other.modifier == this.modifier && other.type == this.type && C.C_ListEquality.equals$2(other.features, this.features);
  77558. },
  77559. get$hashCode: function(_) {
  77560. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ C.C_ListEquality.hash$1(this.features);
  77561. },
  77562. toString$0: function(_) {
  77563. var t2, _this = this,
  77564. t1 = _this.modifier;
  77565. t1 = t1 != null ? t1 + " " : "";
  77566. t2 = _this.type;
  77567. if (t2 != null) {
  77568. t1 += t2;
  77569. if (_this.features.length !== 0)
  77570. t1 += " and ";
  77571. }
  77572. t1 += C.JSArray_methods.join$1(_this.features, " and ");
  77573. return t1.charCodeAt(0) == 0 ? t1 : t1;
  77574. }
  77575. };
  77576. F._SingletonCssMediaQueryMergeResult0.prototype = {
  77577. toString$0: function(_) {
  77578. return this._media_query1$_name;
  77579. }
  77580. };
  77581. F.MediaQuerySuccessfulMergeResult0.prototype = {};
  77582. F.MediaQueryParser0.prototype = {
  77583. parse$0: function() {
  77584. return this.wrapSpanFormatException$1(new F.MediaQueryParser_parse_closure0(this));
  77585. },
  77586. _media_query0$_mediaQuery$0: function() {
  77587. var identifier1, identifier2, type, modifier, features, _this = this, _null = null,
  77588. t1 = _this.scanner;
  77589. if (t1.peekChar$0() !== 40) {
  77590. identifier1 = _this.identifier$0();
  77591. _this.whitespace$0();
  77592. if (!_this.lookingAtIdentifier$0())
  77593. return F.CssMediaQuery$0(identifier1, _null, _null);
  77594. identifier2 = _this.identifier$0();
  77595. _this.whitespace$0();
  77596. if (B.equalsIgnoreCase0(identifier2, "and")) {
  77597. type = identifier1;
  77598. modifier = _null;
  77599. } else {
  77600. if (_this.scanIdentifier$1("and"))
  77601. _this.whitespace$0();
  77602. else
  77603. return F.CssMediaQuery$0(identifier2, _null, identifier1);
  77604. type = identifier2;
  77605. modifier = identifier1;
  77606. }
  77607. } else {
  77608. type = _null;
  77609. modifier = type;
  77610. }
  77611. features = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  77612. do {
  77613. _this.whitespace$0();
  77614. t1.expectChar$1(40);
  77615. features.push("(" + _this.declarationValue$0() + ")");
  77616. t1.expectChar$1(41);
  77617. _this.whitespace$0();
  77618. } while (_this.scanIdentifier$1("and"));
  77619. if (type == null)
  77620. return new F.CssMediaQuery0(_null, _null, P.List_List$unmodifiable(features, type$.legacy_String));
  77621. else
  77622. return F.CssMediaQuery$0(type, features, modifier);
  77623. }
  77624. };
  77625. F.MediaQueryParser_parse_closure0.prototype = {
  77626. call$0: function() {
  77627. var queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery_2),
  77628. t1 = this.$this,
  77629. t2 = t1.scanner;
  77630. do {
  77631. t1.whitespace$0();
  77632. queries.push(t1._media_query0$_mediaQuery$0());
  77633. } while (t2.scanChar$1(44));
  77634. t2.expectDone$0();
  77635. return queries;
  77636. },
  77637. $signature: 59
  77638. };
  77639. G.ModifiableCssMediaRule0.prototype = {
  77640. accept$1$1: function(visitor) {
  77641. return visitor.visitCssMediaRule$1(this);
  77642. },
  77643. accept$1: function(visitor) {
  77644. return this.accept$1$1(visitor, type$.dynamic);
  77645. },
  77646. copyWithoutChildren$0: function() {
  77647. return G.ModifiableCssMediaRule$0(this.queries, this.span);
  77648. },
  77649. $isCssMediaRule0: 1,
  77650. get$span: function() {
  77651. return this.span;
  77652. }
  77653. };
  77654. G.MediaRule0.prototype = {
  77655. accept$1$1: function(visitor) {
  77656. return visitor.visitMediaRule$1(this);
  77657. },
  77658. accept$1: function(visitor) {
  77659. return this.accept$1$1(visitor, type$.dynamic);
  77660. },
  77661. toString$0: function(_) {
  77662. var t1 = this.children;
  77663. return "@media " + this.query.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  77664. },
  77665. get$span: function() {
  77666. return this.span;
  77667. }
  77668. };
  77669. A.MergedExtension0.prototype = {
  77670. unmerge$0: function() {
  77671. var $async$self = this;
  77672. return P._makeSyncStarIterable(function() {
  77673. var $async$goto = 0, $async$handler = 1, $async$currentError, t1;
  77674. return function $async$unmerge$0($async$errorCode, $async$result) {
  77675. if ($async$errorCode === 1) {
  77676. $async$currentError = $async$result;
  77677. $async$goto = $async$handler;
  77678. }
  77679. while (true)
  77680. switch ($async$goto) {
  77681. case 0:
  77682. // Function start
  77683. t1 = $async$self.left;
  77684. $async$goto = t1 instanceof A.MergedExtension0 ? 2 : 4;
  77685. break;
  77686. case 2:
  77687. // then
  77688. $async$goto = 5;
  77689. return P._IterationMarker_yieldStar(t1.unmerge$0());
  77690. case 5:
  77691. // after yield
  77692. // goto join
  77693. $async$goto = 3;
  77694. break;
  77695. case 4:
  77696. // else
  77697. $async$goto = 6;
  77698. return t1;
  77699. case 6:
  77700. // after yield
  77701. case 3:
  77702. // join
  77703. $async$goto = 7;
  77704. return $async$self.right;
  77705. case 7:
  77706. // after yield
  77707. // implicit return
  77708. return P._IterationMarker_endOfIteration();
  77709. case 1:
  77710. // rethrow
  77711. return P._IterationMarker_uncaughtError($async$currentError);
  77712. }
  77713. };
  77714. }, type$.legacy_Extension_2);
  77715. }
  77716. };
  77717. Z.MergedMapView0.prototype = {
  77718. get$keys: function() {
  77719. return this._merged_map_view$_mapsByKey.get$keys();
  77720. },
  77721. get$length: function(_) {
  77722. var t1 = this._merged_map_view$_mapsByKey;
  77723. return t1.get$length(t1);
  77724. },
  77725. get$isEmpty: function(_) {
  77726. var t1 = this._merged_map_view$_mapsByKey;
  77727. return t1.get$isEmpty(t1);
  77728. },
  77729. get$isNotEmpty: function(_) {
  77730. var t1 = this._merged_map_view$_mapsByKey;
  77731. return t1.get$isNotEmpty(t1);
  77732. },
  77733. MergedMapView$10: function(maps, $K, $V) {
  77734. var t1, t2, t3, _i, map, t4, t5;
  77735. 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, H.throwConcurrentModificationError)(maps), ++_i) {
  77736. map = maps[_i];
  77737. if (t3._is(map))
  77738. for (t4 = map._merged_map_view$_mapsByKey.get$values(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  77739. t5 = t4.get$current(t4);
  77740. B.setAll0(t2, t5.get$keys(), t5);
  77741. }
  77742. else
  77743. B.setAll0(t2, map.get$keys(), map);
  77744. }
  77745. },
  77746. $index: function(_, key) {
  77747. var child = this._merged_map_view$_mapsByKey.$index(0, key);
  77748. return child == null ? null : child.$index(0, key);
  77749. },
  77750. $indexSet: function(_, key, value) {
  77751. var child = this._merged_map_view$_mapsByKey.$index(0, key);
  77752. if (child == null)
  77753. throw H.wrapException(P.UnsupportedError$(string$.New_en));
  77754. child.$indexSet(0, key, value);
  77755. },
  77756. remove$1: function(_, key) {
  77757. throw H.wrapException(P.UnsupportedError$(string$.Entrie));
  77758. },
  77759. containsKey$1: function(key) {
  77760. return this._merged_map_view$_mapsByKey.containsKey$1(key);
  77761. }
  77762. };
  77763. Q.closure205.prototype = {
  77764. call$1: function($arguments) {
  77765. return $._features0.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature").text) ? C.SassBoolean_true : C.SassBoolean_false;
  77766. },
  77767. $signature: 14
  77768. };
  77769. Q.closure206.prototype = {
  77770. call$1: function($arguments) {
  77771. return new D.SassString0(J.toString$0$(J.get$first$ax($arguments)), false);
  77772. },
  77773. $signature: 10
  77774. };
  77775. Q.closure207.prototype = {
  77776. call$1: function($arguments) {
  77777. var value = J.$index$asx($arguments, 0);
  77778. if (value instanceof D.SassArgumentList0)
  77779. return new D.SassString0("arglist", false);
  77780. if (value instanceof Z.SassBoolean0)
  77781. return new D.SassString0("bool", false);
  77782. if (value instanceof K.SassColor0)
  77783. return new D.SassString0("color", false);
  77784. if (value instanceof D.SassList0)
  77785. return new D.SassString0("list", false);
  77786. if (value instanceof A.SassMap0)
  77787. return new D.SassString0("map", false);
  77788. if (value instanceof O.SassNull0)
  77789. return new D.SassString0("null", false);
  77790. if (value instanceof T.SassNumber0)
  77791. return new D.SassString0("number", false);
  77792. if (value instanceof F.SassFunction0)
  77793. return new D.SassString0("function", false);
  77794. return new D.SassString0("string", false);
  77795. },
  77796. $signature: 10
  77797. };
  77798. Q.closure208.prototype = {
  77799. call$1: function($arguments) {
  77800. var t1, t2, t3, t4,
  77801. argumentList = J.$index$asx($arguments, 0);
  77802. if (argumentList instanceof D.SassArgumentList0) {
  77803. t1 = type$.legacy_Value_2;
  77804. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  77805. for (argumentList._argument_list$_wereKeywordsAccessed = true, t3 = argumentList._argument_list$_keywords.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  77806. t4 = t3.get$current(t3);
  77807. t2.$indexSet(0, new D.SassString0(t4.key, false), t4.value);
  77808. }
  77809. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  77810. } else
  77811. throw H.wrapException("$args: " + H.S(argumentList) + " is not an argument list.");
  77812. },
  77813. $signature: 28
  77814. };
  77815. T.MixinRule0.prototype = {
  77816. accept$1$1: function(visitor) {
  77817. return visitor.visitMixinRule$1(this);
  77818. },
  77819. accept$1: function(visitor) {
  77820. return this.accept$1$1(visitor, type$.dynamic);
  77821. },
  77822. toString$0: function(_) {
  77823. var t1 = "@mixin " + H.S(this.name),
  77824. t2 = this.$arguments;
  77825. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  77826. t1 += "(" + t2.toString$0(0) + ")";
  77827. t2 = this.children;
  77828. t2 = t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  77829. return t2.charCodeAt(0) == 0 ? t2 : t2;
  77830. }
  77831. };
  77832. L.ExtendMode0.prototype = {
  77833. toString$0: function(_) {
  77834. return this.name;
  77835. }
  77836. };
  77837. G.Module0.prototype = {};
  77838. M.SupportsNegation0.prototype = {
  77839. toString$0: function(_) {
  77840. var t1 = this.condition;
  77841. if (t1 instanceof M.SupportsNegation0 || t1 instanceof U.SupportsOperation0)
  77842. return "not (" + t1.toString$0(0) + ")";
  77843. else
  77844. return "not " + t1.toString$0(0);
  77845. },
  77846. $isAstNode0: 1,
  77847. get$span: function() {
  77848. return this.span;
  77849. }
  77850. };
  77851. N.NoSourceMapBuffer.prototype = {
  77852. get$length: function(_) {
  77853. return this._no_source_map_buffer$_buffer._contents.length;
  77854. },
  77855. get$sourceFiles: function() {
  77856. return C.Map_empty;
  77857. },
  77858. forSpan$1$2: function(span, callback) {
  77859. return callback.call$0();
  77860. },
  77861. forSpan$2: function(span, callback) {
  77862. return this.forSpan$1$2(span, callback, type$.dynamic);
  77863. },
  77864. write$1: function(_, object) {
  77865. this._no_source_map_buffer$_buffer._contents += H.S(object);
  77866. return null;
  77867. },
  77868. writeCharCode$1: function(charCode) {
  77869. this._no_source_map_buffer$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  77870. return null;
  77871. },
  77872. toString$0: function(_) {
  77873. var t1 = this._no_source_map_buffer$_buffer._contents;
  77874. return t1.charCodeAt(0) == 0 ? t1 : t1;
  77875. },
  77876. buildSourceMap$1$prefix: function(prefix) {
  77877. return H.throwExpression(P.UnsupportedError$(string$.NoSour));
  77878. },
  77879. $isStringBuffer: 1
  77880. };
  77881. B.AstNode0.prototype = {};
  77882. B._FakeAstNode0.prototype = {
  77883. get$span: function() {
  77884. return this._node3$_callback.call$0();
  77885. },
  77886. $isAstNode0: 1
  77887. };
  77888. B.CssNode0.prototype = {
  77889. toString$0: function(_) {
  77890. return N.serialize0(this, true, null, true, null, false, null, true).css;
  77891. }
  77892. };
  77893. B.CssParentNode0.prototype = {};
  77894. B._FS0.prototype = {};
  77895. B._Stat0.prototype = {};
  77896. B._Date0.prototype = {};
  77897. B._Stderr0.prototype = {};
  77898. B._Stdin0.prototype = {};
  77899. B._SystemError0.prototype = {};
  77900. B._Process0.prototype = {};
  77901. B.FileSystemException0.prototype = {
  77902. toString$0: function(_) {
  77903. var t1 = $.$get$context();
  77904. return H.S(t1.prettyUri$1(t1.toUri$1(this.path))) + ": " + this.message;
  77905. },
  77906. get$message: function(receiver) {
  77907. return this.message;
  77908. },
  77909. get$path: function(receiver) {
  77910. return this.path;
  77911. }
  77912. };
  77913. B.Stderr0.prototype = {
  77914. writeln$1: function(object) {
  77915. J.write$1$x(this._node1$_stderr, (object == null ? "" : object) + "\n");
  77916. },
  77917. writeln$0: function() {
  77918. return this.writeln$1(null);
  77919. }
  77920. };
  77921. B._readFile_closure0.prototype = {
  77922. call$0: function() {
  77923. return J.readFileSync$2$x(self.fs, this.path, this.encoding);
  77924. },
  77925. $signature: 41
  77926. };
  77927. B.fileExists_closure0.prototype = {
  77928. call$0: function() {
  77929. var error, systemError, exception,
  77930. t1 = this.path;
  77931. if (!J.existsSync$1$x(self.fs, t1))
  77932. return false;
  77933. try {
  77934. t1 = J.isFile$0$x(J.statSync$1$x(self.fs, t1));
  77935. return t1;
  77936. } catch (exception) {
  77937. error = H.unwrapException(exception);
  77938. systemError = type$.legacy__SystemError_2._as(error);
  77939. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  77940. return false;
  77941. throw exception;
  77942. }
  77943. },
  77944. $signature: 25
  77945. };
  77946. B.dirExists_closure0.prototype = {
  77947. call$0: function() {
  77948. var error, systemError, exception,
  77949. t1 = this.path;
  77950. if (!J.existsSync$1$x(self.fs, t1))
  77951. return false;
  77952. try {
  77953. t1 = J.isDirectory$0$x(J.statSync$1$x(self.fs, t1));
  77954. return t1;
  77955. } catch (exception) {
  77956. error = H.unwrapException(exception);
  77957. systemError = type$.legacy__SystemError_2._as(error);
  77958. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  77959. return false;
  77960. throw exception;
  77961. }
  77962. },
  77963. $signature: 25
  77964. };
  77965. B.listDir_closure0.prototype = {
  77966. call$0: function() {
  77967. var t1 = this.path;
  77968. if (!this.recursive)
  77969. return J.map$1$1$ax(J.readdirSync$1$x(self.fs, t1), new B.listDir__closure1(t1), type$.legacy_String).where$1(0, new B.listDir__closure2());
  77970. else
  77971. return new B.listDir_closure_list0().call$1(t1);
  77972. },
  77973. $signature: 71
  77974. };
  77975. B.listDir__closure1.prototype = {
  77976. call$1: function(child) {
  77977. return D.join(this.path, H._asStringS(child), null);
  77978. },
  77979. $signature: 27
  77980. };
  77981. B.listDir__closure2.prototype = {
  77982. call$1: function(child) {
  77983. return !B.dirExists0(child);
  77984. }
  77985. };
  77986. B.listDir_closure_list0.prototype = {
  77987. call$1: function($parent) {
  77988. return J.expand$1$1$ax(J.readdirSync$1$x(self.fs, $parent), new B.listDir__list_closure0($parent, this), type$.legacy_String);
  77989. }
  77990. };
  77991. B.listDir__list_closure0.prototype = {
  77992. call$1: function(child) {
  77993. var path = D.join(this.parent, H._asStringS(child), null);
  77994. return B.dirExists0(path) ? this.list.call$1(path) : H.setRuntimeTypeInfo([path], type$.JSArray_legacy_String);
  77995. },
  77996. $signature: 72
  77997. };
  77998. B.ModifiableCssNode0.prototype = {
  77999. get$hasFollowingSibling: function() {
  78000. var siblings, i, t2,
  78001. t1 = this._node2$_parent;
  78002. if (t1 == null)
  78003. return false;
  78004. siblings = t1.children;
  78005. for (i = this._node2$_indexInParent + 1, t1 = siblings._collection$_source, t2 = J.getInterceptor$asx(t1); i < t2.get$length(t1); ++i)
  78006. if (!this._node2$_isInvisible$1(t2.elementAt$1(t1, i)))
  78007. return true;
  78008. return false;
  78009. },
  78010. _node2$_isInvisible$1: function(node) {
  78011. if (type$.legacy_CssParentNode_2._is(node)) {
  78012. if (type$.legacy_CssAtRule_2._is(node))
  78013. return false;
  78014. if (type$.legacy_CssStyleRule_2._is(node) && node.selector.value.get$isInvisible())
  78015. return true;
  78016. return J.every$1$ax(node.get$children(), this.get$_node2$_isInvisible());
  78017. } else
  78018. return false;
  78019. },
  78020. get$isGroupEnd: function() {
  78021. return this.isGroupEnd;
  78022. }
  78023. };
  78024. B.ModifiableCssParentNode0.prototype = {
  78025. get$isChildless: function() {
  78026. return false;
  78027. },
  78028. addChild$1: function(child) {
  78029. var t1;
  78030. child._node2$_parent = this;
  78031. t1 = this._node2$_children;
  78032. child._node2$_indexInParent = t1.length;
  78033. t1.push(child);
  78034. },
  78035. $isCssParentNode0: 1,
  78036. get$children: function() {
  78037. return this.children;
  78038. }
  78039. };
  78040. B.SassNode0.prototype = {};
  78041. B._render_closure.prototype = {
  78042. call$0: function() {
  78043. var error, exception;
  78044. try {
  78045. this.callback.call$2(null, B._renderSync(this.options));
  78046. } catch (exception) {
  78047. error = H.unwrapException(exception);
  78048. this.callback.call$2(type$.legacy_JSError._as(error), null);
  78049. }
  78050. return null;
  78051. },
  78052. "call*": "call$0",
  78053. $requiredArgCount: 0,
  78054. $signature: 0
  78055. };
  78056. B._render_closure0.prototype = {
  78057. call$1: function(result) {
  78058. this.callback.call$2(null, result);
  78059. }
  78060. };
  78061. B._render_closure1.prototype = {
  78062. call$2: function(error, stackTrace) {
  78063. var _null = null,
  78064. t1 = this.callback;
  78065. if (error instanceof E.SassException0)
  78066. t1.call$2(B._wrapException(error), _null);
  78067. else
  78068. t1.call$2(B._newRenderError(J.toString$0$(error), _null, _null, _null, 3), _null);
  78069. },
  78070. "call*": "call$2",
  78071. $requiredArgCount: 2,
  78072. $signature: 145
  78073. };
  78074. B._parseFunctions_closure.prototype = {
  78075. call$2: function(signature, callback) {
  78076. var error, t1, exception, _this = this, tuple = null;
  78077. try {
  78078. t1 = S.SpanScanner$(signature, null);
  78079. tuple = new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, C.C_StderrLogger).parseSignature$0();
  78080. } catch (exception) {
  78081. t1 = H.unwrapException(exception);
  78082. if (t1 instanceof E.SassFormatException0) {
  78083. error = t1;
  78084. throw H.wrapException(E.SassFormatException$0('Invalid signature "' + H.S(signature) + '": ' + H.S(error._span_exception$_message), error.get$span()));
  78085. } else
  78086. throw exception;
  78087. }
  78088. t1 = _this.options;
  78089. if (J.get$fiber$x(t1) != null)
  78090. _this.result.push(Q.BuiltInCallable$parsed(tuple.item1, tuple.item2, new B._parseFunctions__closure(t1, callback)));
  78091. else {
  78092. t1 = _this.result;
  78093. if (!_this.asynch)
  78094. t1.push(Q.BuiltInCallable$parsed(tuple.item1, tuple.item2, new B._parseFunctions__closure0(callback)));
  78095. else
  78096. t1.push(new S.AsyncBuiltInCallable0(tuple.item1, tuple.item2, new B._parseFunctions__closure1(callback)));
  78097. }
  78098. },
  78099. $signature: 146
  78100. };
  78101. B._parseFunctions__closure.prototype = {
  78102. call$1: function($arguments) {
  78103. var t4, result,
  78104. t1 = this.options,
  78105. t2 = J.getInterceptor$x(t1),
  78106. fiber = J.get$current$x(t2.get$fiber(t1)),
  78107. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  78108. for (t4 = J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.legacy_Object), t4 = t4.get$iterator(t4); t4.moveNext$0();)
  78109. t3.push(t4.get$current(t4));
  78110. t3.push(P.allowInterop(new B._parseFunctions___closure0(fiber)));
  78111. result = P.Function_apply(type$.legacy_Function._as(this.callback), t3);
  78112. return F.unwrapValue(H._asBoolS($.$get$_isUndefined().call$1(result)) ? J.yield$0$x(t2.get$fiber(t1)) : result);
  78113. },
  78114. $signature: 3
  78115. };
  78116. B._parseFunctions___closure0.prototype = {
  78117. call$1: function(result) {
  78118. P.scheduleMicrotask(new B._parseFunctions____closure(this.fiber, result));
  78119. },
  78120. call$0: function() {
  78121. return this.call$1(null);
  78122. },
  78123. "call*": "call$1",
  78124. $requiredArgCount: 0,
  78125. $defaultValues: function() {
  78126. return [null];
  78127. },
  78128. $signature: 44
  78129. };
  78130. B._parseFunctions____closure.prototype = {
  78131. call$0: function() {
  78132. return J.run$1$x(this.fiber, this.result);
  78133. },
  78134. "call*": "call$0",
  78135. $requiredArgCount: 0,
  78136. $signature: 41
  78137. };
  78138. B._parseFunctions__closure0.prototype = {
  78139. call$1: function($arguments) {
  78140. return F.unwrapValue(P.Function_apply(type$.legacy_Function._as(this.callback), J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.legacy_Object).toList$0(0)));
  78141. },
  78142. $signature: 3
  78143. };
  78144. B._parseFunctions__closure1.prototype = {
  78145. call$1: function($arguments) {
  78146. return this.$call$body$_parseFunctions__closure($arguments);
  78147. },
  78148. $call$body$_parseFunctions__closure: function($arguments) {
  78149. var $async$goto = 0,
  78150. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  78151. $async$returnValue, $async$self = this, t2, result, completer, t1, $async$temp1;
  78152. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  78153. if ($async$errorCode === 1)
  78154. return P._asyncRethrow($async$result, $async$completer);
  78155. while (true)
  78156. switch ($async$goto) {
  78157. case 0:
  78158. // Function start
  78159. completer = new P._AsyncCompleter(new P._Future($.Zone__current, type$._Future_legacy_Object), type$._AsyncCompleter_legacy_Object);
  78160. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  78161. for (t2 = J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.legacy_Object), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  78162. t1.push(t2.get$current(t2));
  78163. t1.push(P.allowInterop(new B._parseFunctions___closure(completer)));
  78164. result = P.Function_apply(type$.legacy_Function._as($async$self.callback), t1);
  78165. $async$temp1 = F;
  78166. $async$goto = H._asBoolS($.$get$_isUndefined().call$1(result)) ? 3 : 5;
  78167. break;
  78168. case 3:
  78169. // then
  78170. $async$goto = 6;
  78171. return P._asyncAwait(completer.future, $async$call$1);
  78172. case 6:
  78173. // returning from await.
  78174. // goto join
  78175. $async$goto = 4;
  78176. break;
  78177. case 5:
  78178. // else
  78179. $async$result = result;
  78180. case 4:
  78181. // join
  78182. $async$returnValue = $async$temp1.unwrapValue($async$result);
  78183. // goto return
  78184. $async$goto = 1;
  78185. break;
  78186. case 1:
  78187. // return
  78188. return P._asyncReturn($async$returnValue, $async$completer);
  78189. }
  78190. });
  78191. return P._asyncStartSync($async$call$1, $async$completer);
  78192. }
  78193. };
  78194. B._parseFunctions___closure.prototype = {
  78195. call$1: function(result) {
  78196. return this.completer.complete$1(result);
  78197. },
  78198. call$0: function() {
  78199. return this.call$1(null);
  78200. },
  78201. "call*": "call$1",
  78202. $requiredArgCount: 0,
  78203. $defaultValues: function() {
  78204. return [null];
  78205. },
  78206. $signature: 147
  78207. };
  78208. B._parseImporter_closure.prototype = {
  78209. call$1: function(importer) {
  78210. return type$.legacy_JSFunction._as(P.allowInteropCaptureThis(new B._parseImporter__closure(this.options, importer)));
  78211. }
  78212. };
  78213. B._parseImporter__closure.prototype = {
  78214. call$4: function(thisArg, url, previous, _) {
  78215. var t1 = this.options,
  78216. t2 = J.getInterceptor$x(t1),
  78217. result = J.apply$2$x(this.importer, thisArg, H.setRuntimeTypeInfo([url, previous, P.allowInterop(new B._parseImporter___closure(J.get$current$x(t2.get$fiber(t1))))], type$.JSArray_legacy_Object));
  78218. if (H._asBoolS($.$get$_isUndefined().call$1(result)))
  78219. return J.yield$0$x(t2.get$fiber(t1));
  78220. return result;
  78221. },
  78222. call$3: function(thisArg, url, previous) {
  78223. return this.call$4(thisArg, url, previous, null);
  78224. },
  78225. "call*": "call$4",
  78226. $requiredArgCount: 3,
  78227. $defaultValues: function() {
  78228. return [null];
  78229. }
  78230. };
  78231. B._parseImporter___closure.prototype = {
  78232. call$1: function(result) {
  78233. P.scheduleMicrotask(new B._parseImporter____closure(this.fiber, result));
  78234. },
  78235. $signature: 148
  78236. };
  78237. B._parseImporter____closure.prototype = {
  78238. call$0: function() {
  78239. return J.run$1$x(this.fiber, this.result);
  78240. },
  78241. "call*": "call$0",
  78242. $requiredArgCount: 0,
  78243. $signature: 41
  78244. };
  78245. O.NullExpression0.prototype = {
  78246. accept$1$1: function(visitor) {
  78247. return visitor.visitNullExpression$1(this);
  78248. },
  78249. accept$1: function(visitor) {
  78250. return this.accept$1$1(visitor, type$.dynamic);
  78251. },
  78252. toString$0: function(_) {
  78253. return "null";
  78254. },
  78255. $isExpression0: 1,
  78256. $isAstNode0: 1,
  78257. get$span: function() {
  78258. return this.span;
  78259. }
  78260. };
  78261. O.closure220.prototype = {
  78262. call$0: function() {
  78263. var $constructor = P.allowInterop(new O._closure27());
  78264. B.injectSuperclass(C.C_SassNull, $constructor);
  78265. self.Object.defineProperty(C.C_SassNull.constructor, "name", {value: "SassNull"});
  78266. B.forwardToString($constructor);
  78267. $constructor.NULL = C.C_SassNull;
  78268. C.C_SassNull.toString = P.allowInterop(new O._closure28());
  78269. return $constructor;
  78270. },
  78271. $signature: 70
  78272. };
  78273. O._closure27.prototype = {
  78274. call$1: function(_) {
  78275. throw H.wrapException("new sass.types.Null() isn't allowed. Use sass.types.Null.NULL instead.");
  78276. },
  78277. call$0: function() {
  78278. return this.call$1(null);
  78279. },
  78280. "call*": "call$1",
  78281. $requiredArgCount: 0,
  78282. $defaultValues: function() {
  78283. return [null];
  78284. },
  78285. $signature: 60
  78286. };
  78287. O._closure28.prototype = {
  78288. call$0: function() {
  78289. return "null";
  78290. },
  78291. "call*": "call$0",
  78292. $requiredArgCount: 0,
  78293. $signature: 9
  78294. };
  78295. O.SassNull0.prototype = {
  78296. get$isTruthy: function() {
  78297. return false;
  78298. },
  78299. get$isBlank: function() {
  78300. return true;
  78301. },
  78302. get$realNull: function() {
  78303. return null;
  78304. },
  78305. accept$1$1: function(visitor) {
  78306. if (visitor._inspect)
  78307. visitor._buffer.write$1(0, "null");
  78308. return null;
  78309. },
  78310. accept$1: function(visitor) {
  78311. return this.accept$1$1(visitor, type$.dynamic);
  78312. },
  78313. unaryNot$0: function() {
  78314. return C.SassBoolean_true;
  78315. }
  78316. };
  78317. T.NumberExpression0.prototype = {
  78318. accept$1$1: function(visitor) {
  78319. return visitor.visitNumberExpression$1(this);
  78320. },
  78321. accept$1: function(visitor) {
  78322. return this.accept$1$1(visitor, type$.dynamic);
  78323. },
  78324. toString$0: function(_) {
  78325. var t1 = H.S(this.value),
  78326. t2 = this.unit;
  78327. return t1 + (t2 == null ? "" : t2);
  78328. },
  78329. $isExpression0: 1,
  78330. $isAstNode0: 1,
  78331. get$span: function() {
  78332. return this.span;
  78333. }
  78334. };
  78335. T._NodeSassNumber.prototype = {};
  78336. T.closure214.prototype = {
  78337. call$4: function(thisArg, value, unit, dartValue) {
  78338. J.set$dartValue$x(thisArg, dartValue == null ? T._parseNumber(value, unit) : dartValue);
  78339. },
  78340. call$2: function(thisArg, value) {
  78341. return this.call$4(thisArg, value, null, null);
  78342. },
  78343. call$3: function(thisArg, value, unit) {
  78344. return this.call$4(thisArg, value, unit, null);
  78345. },
  78346. "call*": "call$4",
  78347. $requiredArgCount: 2,
  78348. $defaultValues: function() {
  78349. return [null, null];
  78350. }
  78351. };
  78352. T.closure215.prototype = {
  78353. call$1: function(thisArg) {
  78354. return J.get$dartValue$x(thisArg).value;
  78355. }
  78356. };
  78357. T.closure216.prototype = {
  78358. call$2: function(thisArg, value) {
  78359. var t1 = J.getInterceptor$x(thisArg),
  78360. t2 = t1.get$dartValue(thisArg).numeratorUnits;
  78361. t1.set$dartValue(thisArg, T.SassNumber$withUnits0(value, t1.get$dartValue(thisArg).denominatorUnits, t2));
  78362. },
  78363. "call*": "call$2",
  78364. $requiredArgCount: 2
  78365. };
  78366. T.closure217.prototype = {
  78367. call$1: function(thisArg) {
  78368. var t1 = J.getInterceptor$x(thisArg),
  78369. t2 = C.JSArray_methods.join$1(t1.get$dartValue(thisArg).numeratorUnits, "*");
  78370. return t2 + (t1.get$dartValue(thisArg).denominatorUnits.length === 0 ? "" : "/") + C.JSArray_methods.join$1(t1.get$dartValue(thisArg).denominatorUnits, "*");
  78371. }
  78372. };
  78373. T.closure218.prototype = {
  78374. call$2: function(thisArg, unit) {
  78375. var t1 = J.getInterceptor$x(thisArg);
  78376. t1.set$dartValue(thisArg, T._parseNumber(t1.get$dartValue(thisArg).value, unit));
  78377. },
  78378. "call*": "call$2",
  78379. $requiredArgCount: 2
  78380. };
  78381. T.closure219.prototype = {
  78382. call$1: function(thisArg) {
  78383. return J.toString$0$(J.get$dartValue$x(thisArg));
  78384. }
  78385. };
  78386. T._parseNumber_closure.prototype = {
  78387. call$1: function(unit) {
  78388. return unit.length === 0;
  78389. }
  78390. };
  78391. T._parseNumber_closure0.prototype = {
  78392. call$1: function(unit) {
  78393. return unit.length === 0;
  78394. }
  78395. };
  78396. T.SassNumber0.prototype = {
  78397. get$unitString: function() {
  78398. var _this = this,
  78399. t1 = _this.numeratorUnits;
  78400. return t1.length !== 0 || _this.denominatorUnits.length !== 0 ? _this._number1$_unitString$2(t1, _this.denominatorUnits) : "";
  78401. },
  78402. accept$1$1: function(visitor) {
  78403. return visitor.visitNumber$1(this);
  78404. },
  78405. accept$1: function(visitor) {
  78406. return this.accept$1$1(visitor, type$.dynamic);
  78407. },
  78408. withoutSlash$0: function() {
  78409. var _this = this;
  78410. if (_this.asSlash == null)
  78411. return _this;
  78412. return new T.SassNumber0(_this.value, _this.numeratorUnits, _this.denominatorUnits, null);
  78413. },
  78414. withSlash$2: function(numerator, denominator) {
  78415. return new T.SassNumber0(this.value, this.numeratorUnits, this.denominatorUnits, new S.Tuple2(numerator, denominator, type$.Tuple2_of_legacy_SassNumber_and_legacy_SassNumber_2));
  78416. },
  78417. assertNumber$1: function($name) {
  78418. return this;
  78419. },
  78420. assertNumber$0: function() {
  78421. return this.assertNumber$1(null);
  78422. },
  78423. assertInt$1: function($name) {
  78424. var t1 = this.value,
  78425. integer = T.fuzzyIsInt0(t1) ? J.round$0$n(t1) : null;
  78426. if (integer != null)
  78427. return integer;
  78428. throw H.wrapException(this._number1$_exception$2(this.toString$0(0) + " is not an int.", $name));
  78429. },
  78430. assertInt$0: function() {
  78431. return this.assertInt$1(null);
  78432. },
  78433. valueInRange$3: function(min, max, $name) {
  78434. var _this = this,
  78435. result = T.fuzzyCheckRange0(_this.value, min, max);
  78436. if (result != null)
  78437. return result;
  78438. throw H.wrapException(_this._number1$_exception$2("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
  78439. },
  78440. hasUnit$1: function(unit) {
  78441. var t1 = this.numeratorUnits;
  78442. return t1.length === 1 && this.denominatorUnits.length === 0 && J.$eq$(C.JSArray_methods.get$first(t1), unit);
  78443. },
  78444. assertUnit$2: function(unit, $name) {
  78445. if (this.hasUnit$1(unit))
  78446. return;
  78447. throw H.wrapException(this._number1$_exception$2("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  78448. },
  78449. assertNoUnits$1: function($name) {
  78450. var _this = this;
  78451. if (!(_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0))
  78452. return;
  78453. throw H.wrapException(_this._number1$_exception$2("Expected " + _this.toString$0(0) + " to have no units.", $name));
  78454. },
  78455. valueInUnits$2: function(newNumerators, newDenominators) {
  78456. var t1, oldNumerators, t2, _i, oldDenominators, t3, _this = this, _box_0 = {};
  78457. if (!(newNumerators.length === 0 && newDenominators.length === 0)) {
  78458. t1 = _this.numeratorUnits;
  78459. if (!(t1.length === 0 && _this.denominatorUnits.length === 0))
  78460. t1 = C.C_ListEquality.equals$2(t1, newNumerators) && C.C_ListEquality.equals$2(_this.denominatorUnits, newDenominators);
  78461. else
  78462. t1 = true;
  78463. } else
  78464. t1 = true;
  78465. if (t1)
  78466. return _this.value;
  78467. _box_0.value = _this.value;
  78468. t1 = _this.numeratorUnits;
  78469. oldNumerators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
  78470. for (t2 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t2 || (0, H.throwConcurrentModificationError)(newNumerators), ++_i)
  78471. B.removeFirstWhere0(oldNumerators, new T.SassNumber_valueInUnits_closure3(_box_0, _this, newNumerators[_i]), new T.SassNumber_valueInUnits_closure4(_this, newNumerators, newDenominators));
  78472. t2 = _this.denominatorUnits;
  78473. oldDenominators = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
  78474. for (t3 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t3 || (0, H.throwConcurrentModificationError)(newDenominators), ++_i)
  78475. B.removeFirstWhere0(oldDenominators, new T.SassNumber_valueInUnits_closure5(_box_0, _this, newDenominators[_i]), new T.SassNumber_valueInUnits_closure6(_this, newNumerators, newDenominators));
  78476. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  78477. throw H.wrapException(E.SassScriptException$0("Incompatible units " + _this._number1$_unitString$2(t1, t2) + " and " + _this._number1$_unitString$2(newNumerators, newDenominators) + "."));
  78478. return _box_0.value;
  78479. },
  78480. isComparableTo$1: function(other) {
  78481. var t1, exception;
  78482. if (this.numeratorUnits.length !== 0 || this.denominatorUnits.length !== 0)
  78483. t1 = !(other.numeratorUnits.length !== 0 || other.denominatorUnits.length !== 0);
  78484. else
  78485. t1 = true;
  78486. if (t1)
  78487. return true;
  78488. try {
  78489. this.greaterThan$1(other);
  78490. return true;
  78491. } catch (exception) {
  78492. if (H.unwrapException(exception) instanceof E.SassScriptException0)
  78493. return false;
  78494. else
  78495. throw exception;
  78496. }
  78497. },
  78498. greaterThan$1: function(other) {
  78499. if (other instanceof T.SassNumber0)
  78500. return this._number1$_coerceUnits$2(other, T.number2__fuzzyGreaterThan$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  78501. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  78502. },
  78503. greaterThanOrEquals$1: function(other) {
  78504. if (other instanceof T.SassNumber0)
  78505. return this._number1$_coerceUnits$2(other, T.number2__fuzzyGreaterThanOrEquals$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  78506. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  78507. },
  78508. lessThan$1: function(other) {
  78509. if (other instanceof T.SassNumber0)
  78510. return this._number1$_coerceUnits$2(other, T.number2__fuzzyLessThan$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  78511. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  78512. },
  78513. lessThanOrEquals$1: function(other) {
  78514. if (other instanceof T.SassNumber0)
  78515. return this._number1$_coerceUnits$2(other, T.number2__fuzzyLessThanOrEquals$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  78516. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  78517. },
  78518. modulo$1: function(other) {
  78519. if (other instanceof T.SassNumber0)
  78520. return this._number1$_coerceNumber$2(other, new T.SassNumber_modulo_closure0());
  78521. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  78522. },
  78523. plus$1: function(other) {
  78524. if (other instanceof T.SassNumber0)
  78525. return this._number1$_coerceNumber$2(other, new T.SassNumber_plus_closure0());
  78526. if (!(other instanceof K.SassColor0))
  78527. return this.super$Value$plus0(other);
  78528. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".'));
  78529. },
  78530. minus$1: function(other) {
  78531. if (other instanceof T.SassNumber0)
  78532. return this._number1$_coerceNumber$2(other, new T.SassNumber_minus_closure0());
  78533. if (!(other instanceof K.SassColor0))
  78534. return this.super$Value$minus0(other);
  78535. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".'));
  78536. },
  78537. times$1: function(other) {
  78538. var _this = this;
  78539. if (other instanceof T.SassNumber0)
  78540. return _this._number1$_multiplyUnits$5(_this.value * other.value, _this.numeratorUnits, _this.denominatorUnits, other.numeratorUnits, other.denominatorUnits);
  78541. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " * " + H.S(other) + '".'));
  78542. },
  78543. dividedBy$1: function(other) {
  78544. var _this = this;
  78545. if (other instanceof T.SassNumber0)
  78546. return _this._number1$_multiplyUnits$5(_this.value / other.value, _this.numeratorUnits, _this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
  78547. return _this.super$Value$dividedBy0(other);
  78548. },
  78549. unaryPlus$0: function() {
  78550. return this;
  78551. },
  78552. unaryMinus$0: function() {
  78553. return T.SassNumber$withUnits0(-this.value, this.denominatorUnits, this.numeratorUnits);
  78554. },
  78555. _number1$_coerceNumber$2: function(other, operation) {
  78556. var _this = this,
  78557. result = _this._number1$_coerceUnits$2(other, operation),
  78558. t1 = _this.numeratorUnits,
  78559. t2 = t1.length === 0;
  78560. t1 = !t2 || _this.denominatorUnits.length !== 0 ? t1 : other.numeratorUnits;
  78561. return T.SassNumber$withUnits0(result, !t2 || _this.denominatorUnits.length !== 0 ? _this.denominatorUnits : other.denominatorUnits, t1);
  78562. },
  78563. _number1$_coerceUnits$1$2: function(other, operation) {
  78564. var num1, num2, _this = this,
  78565. t1 = _this.numeratorUnits;
  78566. if (t1.length !== 0 || _this.denominatorUnits.length !== 0) {
  78567. num1 = _this.value;
  78568. num2 = other.valueInUnits$2(t1, _this.denominatorUnits);
  78569. } else {
  78570. num1 = _this.valueInUnits$2(other.numeratorUnits, other.denominatorUnits);
  78571. num2 = other.value;
  78572. }
  78573. return operation.call$2(num1, num2);
  78574. },
  78575. _number1$_coerceUnits$2: function(other, operation) {
  78576. return this._number1$_coerceUnits$1$2(other, operation, type$.dynamic);
  78577. },
  78578. _number1$_multiplyUnits$5: function(value, numerators1, denominators1, numerators2, denominators2) {
  78579. var t1, newNumerators, mutableDenominators2, _i, numerator, mutableDenominators1, _this = this, _box_0 = {};
  78580. _box_0.value = value;
  78581. t1 = numerators1.length;
  78582. if (t1 === 0) {
  78583. if (denominators2.length === 0 && !_this._number1$_areAnyConvertible$2(denominators1, numerators2))
  78584. return T.SassNumber$withUnits0(value, denominators1, numerators2);
  78585. else if (denominators1.length === 0)
  78586. return T.SassNumber$withUnits0(value, denominators2, numerators2);
  78587. } else if (numerators2.length === 0)
  78588. if (denominators2.length === 0)
  78589. return T.SassNumber$withUnits0(value, denominators2, numerators1);
  78590. else if (denominators1.length === 0 && !_this._number1$_areAnyConvertible$2(numerators1, denominators2))
  78591. return T.SassNumber$withUnits0(value, denominators2, numerators1);
  78592. newNumerators = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  78593. mutableDenominators2 = H.setRuntimeTypeInfo(denominators2.slice(0), H._arrayInstanceType(denominators2)._eval$1("JSArray<1>"));
  78594. for (_i = 0; _i < t1; ++_i) {
  78595. numerator = numerators1[_i];
  78596. B.removeFirstWhere0(mutableDenominators2, new T.SassNumber__multiplyUnits_closure3(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure4(newNumerators, numerator));
  78597. }
  78598. mutableDenominators1 = H.setRuntimeTypeInfo(denominators1.slice(0), H._arrayInstanceType(denominators1)._eval$1("JSArray<1>"));
  78599. for (t1 = numerators2.length, _i = 0; _i < t1; ++_i) {
  78600. numerator = numerators2[_i];
  78601. B.removeFirstWhere0(mutableDenominators1, new T.SassNumber__multiplyUnits_closure5(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure6(newNumerators, numerator));
  78602. }
  78603. t1 = _box_0.value;
  78604. C.JSArray_methods.addAll$1(mutableDenominators1, mutableDenominators2);
  78605. return T.SassNumber$withUnits0(t1, mutableDenominators1, newNumerators);
  78606. },
  78607. _number1$_areAnyConvertible$2: function(units1, units2) {
  78608. return C.JSArray_methods.any$1(units1, new T.SassNumber__areAnyConvertible_closure0(this, units2));
  78609. },
  78610. _number1$_conversionFactor$2: function(unit1, unit2) {
  78611. var innerMap;
  78612. if (unit1 == unit2)
  78613. return 1;
  78614. innerMap = $.$get$_conversions0().$index(0, unit1);
  78615. if (innerMap == null)
  78616. return null;
  78617. return innerMap.$index(0, unit2);
  78618. },
  78619. _number1$_unitString$2: function(numerators, denominators) {
  78620. var t1;
  78621. if (numerators.length === 0) {
  78622. t1 = denominators.length;
  78623. if (t1 === 0)
  78624. return "no units";
  78625. if (t1 === 1)
  78626. return J.$add$ansx(C.JSArray_methods.get$single(denominators), "^-1");
  78627. return "(" + C.JSArray_methods.join$1(denominators, "*") + ")^-1";
  78628. }
  78629. if (denominators.length === 0)
  78630. return C.JSArray_methods.join$1(numerators, "*");
  78631. return C.JSArray_methods.join$1(numerators, "*") + "/" + C.JSArray_methods.join$1(denominators, "*");
  78632. },
  78633. $eq: function(_, other) {
  78634. var t1, t2, t3, exception, _this = this;
  78635. other = other;
  78636. if (other == null)
  78637. return false;
  78638. if (other instanceof T.SassNumber0) {
  78639. t1 = _this.numeratorUnits.length === 0;
  78640. t2 = !t1 || _this.denominatorUnits.length !== 0;
  78641. t3 = other;
  78642. if (t2 !== (t3.numeratorUnits.length !== 0 || t3.denominatorUnits.length !== 0))
  78643. return false;
  78644. if (!(!t1 || _this.denominatorUnits.length !== 0))
  78645. return Math.abs(_this.value - other.value) < $.$get$epsilon0();
  78646. try {
  78647. t1 = _this._number1$_coerceUnits$2(other, T.number2__fuzzyEquals$closure());
  78648. return t1;
  78649. } catch (exception) {
  78650. if (H.unwrapException(exception) instanceof E.SassScriptException0)
  78651. return false;
  78652. else
  78653. throw exception;
  78654. }
  78655. } else
  78656. return false;
  78657. },
  78658. get$hashCode: function(_) {
  78659. var _this = this;
  78660. return C.JSInt_methods.get$hashCode(C.JSDouble_methods.round$0(_this.value * _this._number1$_canonicalMultiplier$1(_this.numeratorUnits) / _this._number1$_canonicalMultiplier$1(_this.denominatorUnits) * $.$get$_inverseEpsilon0()));
  78661. },
  78662. _number1$_canonicalMultiplier$1: function(units) {
  78663. return C.JSArray_methods.fold$2(units, 1, new T.SassNumber__canonicalMultiplier_closure0());
  78664. },
  78665. _number1$_exception$2: function(message, $name) {
  78666. return new E.SassScriptException0($name == null ? message : "$" + $name + ": " + message);
  78667. }
  78668. };
  78669. T.SassNumber_valueInUnits_closure3.prototype = {
  78670. call$1: function(oldNumerator) {
  78671. var t1,
  78672. factor = this.$this._number1$_conversionFactor$2(this.newNumerator, oldNumerator);
  78673. if (factor == null)
  78674. return false;
  78675. t1 = this._box_0;
  78676. t1.value = t1.value * factor;
  78677. return true;
  78678. }
  78679. };
  78680. T.SassNumber_valueInUnits_closure4.prototype = {
  78681. call$0: function() {
  78682. var t1 = this.$this;
  78683. throw H.wrapException(E.SassScriptException$0("Incompatible units " + t1._number1$_unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._number1$_unitString$2(this.newNumerators, this.newDenominators) + "."));
  78684. },
  78685. $signature: 0
  78686. };
  78687. T.SassNumber_valueInUnits_closure5.prototype = {
  78688. call$1: function(oldDenominator) {
  78689. var t1,
  78690. factor = this.$this._number1$_conversionFactor$2(this.newDenominator, oldDenominator);
  78691. if (factor == null)
  78692. return false;
  78693. t1 = this._box_0;
  78694. t1.value = t1.value / factor;
  78695. return true;
  78696. }
  78697. };
  78698. T.SassNumber_valueInUnits_closure6.prototype = {
  78699. call$0: function() {
  78700. var t1 = this.$this;
  78701. throw H.wrapException(E.SassScriptException$0("Incompatible units " + t1._number1$_unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._number1$_unitString$2(this.newNumerators, this.newDenominators) + "."));
  78702. },
  78703. $signature: 0
  78704. };
  78705. T.SassNumber_modulo_closure0.prototype = {
  78706. call$2: function(num1, num2) {
  78707. var t1;
  78708. if (num2 > 0)
  78709. return C.JSNumber_methods.$mod(num1, num2);
  78710. if (num2 === 0)
  78711. return 0 / 0;
  78712. t1 = C.JSNumber_methods.$mod(num1, num2);
  78713. return t1 === 0 ? 0 : t1 + num2;
  78714. }
  78715. };
  78716. T.SassNumber_plus_closure0.prototype = {
  78717. call$2: function(num1, num2) {
  78718. return num1 + num2;
  78719. }
  78720. };
  78721. T.SassNumber_minus_closure0.prototype = {
  78722. call$2: function(num1, num2) {
  78723. return num1 - num2;
  78724. }
  78725. };
  78726. T.SassNumber__multiplyUnits_closure3.prototype = {
  78727. call$1: function(denominator) {
  78728. var factor = this.$this._number1$_conversionFactor$2(this.numerator, denominator);
  78729. if (factor == null)
  78730. return false;
  78731. this._box_0.value /= factor;
  78732. return true;
  78733. }
  78734. };
  78735. T.SassNumber__multiplyUnits_closure4.prototype = {
  78736. call$0: function() {
  78737. this.newNumerators.push(this.numerator);
  78738. return null;
  78739. },
  78740. $signature: 0
  78741. };
  78742. T.SassNumber__multiplyUnits_closure5.prototype = {
  78743. call$1: function(denominator) {
  78744. var factor = this.$this._number1$_conversionFactor$2(this.numerator, denominator);
  78745. if (factor == null)
  78746. return false;
  78747. this._box_0.value /= factor;
  78748. return true;
  78749. }
  78750. };
  78751. T.SassNumber__multiplyUnits_closure6.prototype = {
  78752. call$0: function() {
  78753. this.newNumerators.push(this.numerator);
  78754. return null;
  78755. },
  78756. $signature: 0
  78757. };
  78758. T.SassNumber__areAnyConvertible_closure0.prototype = {
  78759. call$1: function(unit1) {
  78760. var t1 = $.$get$_conversions0();
  78761. if (!t1.containsKey$1(unit1))
  78762. return C.JSArray_methods.contains$1(this.units2, unit1);
  78763. return C.JSArray_methods.any$1(this.units2, t1.$index(0, unit1).get$containsKey());
  78764. }
  78765. };
  78766. T.SassNumber__canonicalMultiplier_closure0.prototype = {
  78767. call$2: function(multiplier, unit) {
  78768. var t1,
  78769. innerMap = $.$get$_conversions0().$index(0, unit);
  78770. if (innerMap == null)
  78771. t1 = multiplier;
  78772. else {
  78773. t1 = innerMap.get$values();
  78774. t1 = multiplier / t1.get$first(t1);
  78775. }
  78776. return t1;
  78777. }
  78778. };
  78779. U.SupportsOperation0.prototype = {
  78780. toString$0: function(_) {
  78781. var _this = this;
  78782. return _this._operation0$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation0$_parenthesize$1(_this.right);
  78783. },
  78784. _operation0$_parenthesize$1: function(condition) {
  78785. var t1;
  78786. if (!(condition instanceof M.SupportsNegation0))
  78787. t1 = condition instanceof U.SupportsOperation0 && condition.operator === this.operator;
  78788. else
  78789. t1 = true;
  78790. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  78791. },
  78792. $isAstNode0: 1,
  78793. get$span: function() {
  78794. return this.span;
  78795. }
  78796. };
  78797. M.ParentSelector0.prototype = {
  78798. accept$1$1: function(visitor) {
  78799. var t2,
  78800. t1 = visitor._buffer;
  78801. t1.writeCharCode$1(38);
  78802. t2 = this.suffix;
  78803. if (t2 != null)
  78804. t1.write$1(0, t2);
  78805. return null;
  78806. },
  78807. accept$1: function(visitor) {
  78808. return this.accept$1$1(visitor, type$.dynamic);
  78809. },
  78810. unify$1: function(compound) {
  78811. return H.throwExpression(P.UnsupportedError$("& doesn't support unification."));
  78812. }
  78813. };
  78814. M.ParentStatement0.prototype = {$isAstNode0: 1, $isStatement0: 1};
  78815. M.ParentStatement_closure0.prototype = {
  78816. call$1: function(child) {
  78817. var t1;
  78818. if (!(child instanceof Z.VariableDeclaration0))
  78819. if (!(child instanceof M.FunctionRule0))
  78820. if (!(child instanceof T.MixinRule0))
  78821. t1 = child instanceof B.ImportRule0 && C.JSArray_methods.any$1(child.imports, new M.ParentStatement__closure0());
  78822. else
  78823. t1 = true;
  78824. else
  78825. t1 = true;
  78826. else
  78827. t1 = true;
  78828. return t1;
  78829. }
  78830. };
  78831. M.ParentStatement__closure0.prototype = {
  78832. call$1: function($import) {
  78833. return $import instanceof B.DynamicImport0;
  78834. }
  78835. };
  78836. T.ParenthesizedExpression0.prototype = {
  78837. accept$1$1: function(visitor) {
  78838. return visitor.visitParenthesizedExpression$1(this);
  78839. },
  78840. accept$1: function(visitor) {
  78841. return this.accept$1$1(visitor, type$.dynamic);
  78842. },
  78843. toString$0: function(_) {
  78844. return J.toString$0$(this.expression);
  78845. },
  78846. $isExpression0: 1,
  78847. $isAstNode0: 1,
  78848. get$span: function() {
  78849. return this.span;
  78850. }
  78851. };
  78852. G.Parser1.prototype = {
  78853. _parser$_parseIdentifier$0: function() {
  78854. return this.wrapSpanFormatException$1(new G.Parser__parseIdentifier_closure0(this));
  78855. },
  78856. whitespace$0: function() {
  78857. do
  78858. this.whitespaceWithoutComments$0();
  78859. while (this.scanComment$0());
  78860. },
  78861. whitespaceWithoutComments$0: function() {
  78862. var t3,
  78863. t1 = this.scanner,
  78864. t2 = t1.string.length;
  78865. while (true) {
  78866. if (t1._string_scanner$_position !== t2) {
  78867. t3 = t1.peekChar$0();
  78868. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  78869. } else
  78870. t3 = false;
  78871. if (!t3)
  78872. break;
  78873. t1.readChar$0();
  78874. }
  78875. },
  78876. spaces$0: function() {
  78877. var t3,
  78878. t1 = this.scanner,
  78879. t2 = t1.string.length;
  78880. while (true) {
  78881. if (t1._string_scanner$_position !== t2) {
  78882. t3 = t1.peekChar$0();
  78883. t3 = t3 === 32 || t3 === 9;
  78884. } else
  78885. t3 = false;
  78886. if (!t3)
  78887. break;
  78888. t1.readChar$0();
  78889. }
  78890. },
  78891. scanComment$0: function() {
  78892. var next,
  78893. t1 = this.scanner;
  78894. if (t1.peekChar$0() !== 47)
  78895. return false;
  78896. next = t1.peekChar$1(1);
  78897. if (next === 47) {
  78898. this.silentComment$0();
  78899. return true;
  78900. } else if (next === 42) {
  78901. this.loudComment$0();
  78902. return true;
  78903. } else
  78904. return false;
  78905. },
  78906. silentComment$0: function() {
  78907. var t2, t3,
  78908. t1 = this.scanner;
  78909. t1.expect$1("//");
  78910. t2 = t1.string.length;
  78911. while (true) {
  78912. if (t1._string_scanner$_position !== t2) {
  78913. t3 = t1.peekChar$0();
  78914. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  78915. } else
  78916. t3 = false;
  78917. if (!t3)
  78918. break;
  78919. t1.readChar$0();
  78920. }
  78921. },
  78922. loudComment$0: function() {
  78923. var next,
  78924. t1 = this.scanner;
  78925. t1.expect$1("/*");
  78926. for (; true;) {
  78927. if (t1.readChar$0() !== 42)
  78928. continue;
  78929. do
  78930. next = t1.readChar$0();
  78931. while (next === 42);
  78932. if (next === 47)
  78933. break;
  78934. }
  78935. },
  78936. identifier$2$normalize$unit: function(normalize, unit) {
  78937. var t2, first, _this = this,
  78938. _s20_ = "Expected identifier.",
  78939. text = new P.StringBuffer(""),
  78940. t1 = _this.scanner;
  78941. if (t1.scanChar$1(45)) {
  78942. t2 = text._contents = H.Primitives_stringFromCharCode(45);
  78943. if (t1.scanChar$1(45)) {
  78944. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  78945. _this._parser$_identifierBody$3$normalize$unit(text, normalize, unit);
  78946. t1 = text._contents;
  78947. return t1.charCodeAt(0) == 0 ? t1 : t1;
  78948. }
  78949. } else
  78950. t2 = "";
  78951. first = t1.peekChar$0();
  78952. if (first == null)
  78953. t1.error$1(_s20_);
  78954. else if (normalize && first === 95) {
  78955. t1.readChar$0();
  78956. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  78957. } else if (first === 95 || T.isAlphabetic1(first) || first >= 128)
  78958. text._contents = t2 + H.Primitives_stringFromCharCode(t1.readChar$0());
  78959. else if (first === 92)
  78960. text._contents = t2 + H.S(_this.escape$1$identifierStart(true));
  78961. else
  78962. t1.error$1(_s20_);
  78963. _this._parser$_identifierBody$3$normalize$unit(text, normalize, unit);
  78964. t1 = text._contents;
  78965. return t1.charCodeAt(0) == 0 ? t1 : t1;
  78966. },
  78967. identifier$0: function() {
  78968. return this.identifier$2$normalize$unit(false, false);
  78969. },
  78970. identifier$1$normalize: function(normalize) {
  78971. return this.identifier$2$normalize$unit(normalize, false);
  78972. },
  78973. identifier$1$unit: function(unit) {
  78974. return this.identifier$2$normalize$unit(false, unit);
  78975. },
  78976. _parser$_identifierBody$3$normalize$unit: function(text, normalize, unit) {
  78977. var t1, next, second, t2;
  78978. for (t1 = this.scanner; true;) {
  78979. next = t1.peekChar$0();
  78980. if (next == null)
  78981. break;
  78982. else if (unit && next === 45) {
  78983. second = t1.peekChar$1(1);
  78984. if (second != null)
  78985. if (second !== 46)
  78986. t2 = second >= 48 && second <= 57;
  78987. else
  78988. t2 = true;
  78989. else
  78990. t2 = false;
  78991. if (t2)
  78992. break;
  78993. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  78994. } else if (normalize && next === 95) {
  78995. t1.readChar$0();
  78996. text._contents += H.Primitives_stringFromCharCode(45);
  78997. } else {
  78998. if (next !== 95) {
  78999. if (!(next >= 97 && next <= 122))
  79000. t2 = next >= 65 && next <= 90;
  79001. else
  79002. t2 = true;
  79003. t2 = t2 || next >= 128;
  79004. } else
  79005. t2 = true;
  79006. if (!t2) {
  79007. t2 = next >= 48 && next <= 57;
  79008. t2 = t2 || next === 45;
  79009. } else
  79010. t2 = true;
  79011. if (t2)
  79012. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79013. else if (next === 92)
  79014. text._contents += H.S(this.escape$0());
  79015. else
  79016. break;
  79017. }
  79018. }
  79019. },
  79020. _parser$_identifierBody$1: function(text) {
  79021. return this._parser$_identifierBody$3$normalize$unit(text, false, false);
  79022. },
  79023. string$0: function() {
  79024. var t2, buffer, next,
  79025. t1 = this.scanner,
  79026. quote = t1.readChar$0();
  79027. if (quote !== 39 && quote !== 34) {
  79028. t2 = t1._string_scanner$_position;
  79029. t1.error$2$position("Expected string.", t2 - 1);
  79030. }
  79031. buffer = new P.StringBuffer("");
  79032. for (; true;) {
  79033. next = t1.peekChar$0();
  79034. if (next === quote) {
  79035. t1.readChar$0();
  79036. break;
  79037. } else if (next == null || next === 10 || next === 13 || next === 12)
  79038. t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  79039. else if (next === 92) {
  79040. t2 = t1.peekChar$1(1);
  79041. if (t2 === 10 || t2 === 13 || t2 === 12) {
  79042. t1.readChar$0();
  79043. t1.readChar$0();
  79044. } else
  79045. buffer._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  79046. } else
  79047. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79048. }
  79049. t1 = buffer._contents;
  79050. return t1.charCodeAt(0) == 0 ? t1 : t1;
  79051. },
  79052. naturalNumber$0: function() {
  79053. var number, t2,
  79054. t1 = this.scanner,
  79055. first = t1.readChar$0();
  79056. if (!T.isDigit0(first))
  79057. t1.error$2$position("Expected digit.", t1._string_scanner$_position - 1);
  79058. number = first - 48;
  79059. while (true) {
  79060. t2 = t1.peekChar$0();
  79061. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  79062. break;
  79063. number = number * 10 + (t1.readChar$0() - 48);
  79064. }
  79065. return number;
  79066. },
  79067. declarationValue$1$allowEmpty: function(allowEmpty) {
  79068. var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
  79069. buffer = new P.StringBuffer(""),
  79070. brackets = H.setRuntimeTypeInfo([], type$.JSArray_legacy_int);
  79071. $label0$1:
  79072. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  79073. next = t1.peekChar$0();
  79074. switch (next) {
  79075. case 92:
  79076. buffer._contents += H.S(_this.escape$1$identifierStart(true));
  79077. wroteNewline = false;
  79078. break;
  79079. case 34:
  79080. case 39:
  79081. start = t1._string_scanner$_position;
  79082. t2.call$0();
  79083. end = t1._string_scanner$_position;
  79084. buffer._contents += J.substring$2$s(t1.string, start, end);
  79085. wroteNewline = false;
  79086. break;
  79087. case 47:
  79088. if (t1.peekChar$1(1) === 42) {
  79089. t3 = _this.get$loudComment();
  79090. start = t1._string_scanner$_position;
  79091. t3.call$0();
  79092. end = t1._string_scanner$_position;
  79093. buffer._contents += J.substring$2$s(t1.string, start, end);
  79094. } else
  79095. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79096. wroteNewline = false;
  79097. break;
  79098. case 32:
  79099. case 9:
  79100. if (!wroteNewline) {
  79101. t3 = t1.peekChar$1(1);
  79102. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  79103. } else
  79104. t3 = true;
  79105. if (t3)
  79106. buffer._contents += H.Primitives_stringFromCharCode(32);
  79107. t1.readChar$0();
  79108. break;
  79109. case 10:
  79110. case 13:
  79111. case 12:
  79112. t3 = t1.peekChar$1(-1);
  79113. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  79114. buffer._contents += "\n";
  79115. t1.readChar$0();
  79116. wroteNewline = true;
  79117. break;
  79118. case 40:
  79119. case 123:
  79120. case 91:
  79121. buffer._contents += H.Primitives_stringFromCharCode(next);
  79122. brackets.push(T.opposite0(t1.readChar$0()));
  79123. wroteNewline = false;
  79124. break;
  79125. case 41:
  79126. case 125:
  79127. case 93:
  79128. if (brackets.length === 0)
  79129. break $label0$1;
  79130. buffer._contents += H.Primitives_stringFromCharCode(next);
  79131. t1.expectChar$1(brackets.pop());
  79132. wroteNewline = false;
  79133. break;
  79134. case 59:
  79135. if (brackets.length === 0)
  79136. break $label0$1;
  79137. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79138. break;
  79139. case 117:
  79140. case 85:
  79141. url = _this.tryUrl$0();
  79142. if (url != null)
  79143. buffer._contents += url;
  79144. else
  79145. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79146. wroteNewline = false;
  79147. break;
  79148. default:
  79149. if (next == null)
  79150. break $label0$1;
  79151. if (_this.lookingAtIdentifier$0())
  79152. buffer._contents += _this.identifier$0();
  79153. else
  79154. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79155. wroteNewline = false;
  79156. break;
  79157. }
  79158. }
  79159. if (brackets.length !== 0)
  79160. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  79161. if (!allowEmpty && buffer._contents.length === 0)
  79162. t1.error$1("Expected token.");
  79163. t1 = buffer._contents;
  79164. return t1.charCodeAt(0) == 0 ? t1 : t1;
  79165. },
  79166. declarationValue$0: function() {
  79167. return this.declarationValue$1$allowEmpty(false);
  79168. },
  79169. tryUrl$0: function() {
  79170. var buffer, next, t2, _this = this,
  79171. t1 = _this.scanner,
  79172. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  79173. if (!_this.scanIdentifier$1("url"))
  79174. return null;
  79175. if (!t1.scanChar$1(40)) {
  79176. t1.set$state(start);
  79177. return null;
  79178. }
  79179. _this.whitespace$0();
  79180. buffer = new P.StringBuffer("");
  79181. buffer._contents = "url(";
  79182. for (; true;) {
  79183. next = t1.peekChar$0();
  79184. if (next == null)
  79185. break;
  79186. else {
  79187. if (next !== 37)
  79188. if (next !== 38)
  79189. if (next !== 35)
  79190. t2 = next >= 42 && next <= 126 || next >= 128;
  79191. else
  79192. t2 = true;
  79193. else
  79194. t2 = true;
  79195. else
  79196. t2 = true;
  79197. if (t2)
  79198. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79199. else if (next === 92)
  79200. buffer._contents += H.S(_this.escape$0());
  79201. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  79202. _this.whitespace$0();
  79203. if (t1.peekChar$0() !== 41)
  79204. break;
  79205. } else if (next === 41) {
  79206. t2 = buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  79207. return t2.charCodeAt(0) == 0 ? t2 : t2;
  79208. } else
  79209. break;
  79210. }
  79211. }
  79212. t1.set$state(start);
  79213. return null;
  79214. },
  79215. variableName$0: function() {
  79216. this.scanner.expectChar$1(36);
  79217. return this.identifier$1$normalize(true);
  79218. },
  79219. escape$1$identifierStart: function(identifierStart) {
  79220. var value, first, i, next, t2, exception,
  79221. t1 = this.scanner,
  79222. start = t1._string_scanner$_position;
  79223. t1.expectChar$1(92);
  79224. value = 0;
  79225. first = t1.peekChar$0();
  79226. if (first == null)
  79227. return "";
  79228. else if (T.isNewline0(first))
  79229. t1.error$1("Expected escape sequence.");
  79230. else if (T.isHex0(first)) {
  79231. for (i = 0; i < 6; ++i) {
  79232. next = t1.peekChar$0();
  79233. if (next == null || !T.isHex0(next))
  79234. break;
  79235. value *= 16;
  79236. value += T.asHex0(t1.readChar$0());
  79237. }
  79238. this.scanCharIf$1(T.character0__isWhitespace$closure());
  79239. } else
  79240. value = t1.readChar$0();
  79241. if (identifierStart) {
  79242. t2 = value;
  79243. t2 = t2 === 95 || T.isAlphabetic1(t2) || t2 >= 128;
  79244. } else {
  79245. t2 = value;
  79246. t2 = t2 === 95 || T.isAlphabetic1(t2) || t2 >= 128 || T.isDigit0(t2) || t2 === 45;
  79247. }
  79248. if (t2)
  79249. try {
  79250. t2 = H.Primitives_stringFromCharCode(value);
  79251. return t2;
  79252. } catch (exception) {
  79253. if (type$.legacy_RangeError._is(H.unwrapException(exception)))
  79254. t1.error$3$length$position("Invalid Unicode code point.", t1._string_scanner$_position - start, start);
  79255. else
  79256. throw exception;
  79257. }
  79258. else {
  79259. if (!(value <= 31))
  79260. if (!J.$eq$(value, 127))
  79261. t1 = identifierStart && T.isDigit0(value);
  79262. else
  79263. t1 = true;
  79264. else
  79265. t1 = true;
  79266. if (t1) {
  79267. t1 = H.Primitives_stringFromCharCode(92);
  79268. if (value > 15)
  79269. t1 += H.Primitives_stringFromCharCode(T.hexCharFor0(C.JSNumber_methods._shrOtherPositive$1(value, 4)));
  79270. t1 = t1 + H.Primitives_stringFromCharCode(T.hexCharFor0(value & 15)) + H.Primitives_stringFromCharCode(32);
  79271. return t1.charCodeAt(0) == 0 ? t1 : t1;
  79272. } else
  79273. return P.String_String$fromCharCodes(H.setRuntimeTypeInfo([92, value], type$.JSArray_legacy_int), 0, null);
  79274. }
  79275. },
  79276. escape$0: function() {
  79277. return this.escape$1$identifierStart(false);
  79278. },
  79279. escapeCharacter$0: function() {
  79280. var first, value, i, next, t2,
  79281. t1 = this.scanner;
  79282. t1.expectChar$1(92);
  79283. first = t1.peekChar$0();
  79284. if (first == null)
  79285. return 65533;
  79286. else if (T.isNewline0(first))
  79287. t1.error$1("Expected escape sequence.");
  79288. else if (T.isHex0(first)) {
  79289. for (value = 0, i = 0; i < 6; ++i) {
  79290. next = t1.peekChar$0();
  79291. if (next == null || !T.isHex0(next))
  79292. break;
  79293. value = (value << 4 >>> 0) + T.asHex0(t1.readChar$0());
  79294. }
  79295. t2 = t1.peekChar$0();
  79296. if (t2 === 32 || t2 === 9 || T.isNewline0(t2))
  79297. t1.readChar$0();
  79298. if (value !== 0)
  79299. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  79300. else
  79301. t1 = true;
  79302. if (t1)
  79303. return 65533;
  79304. else
  79305. return value;
  79306. } else
  79307. return t1.readChar$0();
  79308. },
  79309. scanCharIf$1: function(condition) {
  79310. var t1 = this.scanner;
  79311. if (!condition.call$1(t1.peekChar$0()))
  79312. return false;
  79313. t1.readChar$0();
  79314. return true;
  79315. },
  79316. scanIdentChar$2$caseSensitive: function(char, caseSensitive) {
  79317. var t3,
  79318. t1 = new G.Parser_scanIdentChar_matches0(caseSensitive, char),
  79319. t2 = this.scanner,
  79320. next = t2.peekChar$0();
  79321. if (next != null && t1.call$1(next)) {
  79322. t2.readChar$0();
  79323. return true;
  79324. } else if (next === 92) {
  79325. t3 = t2._string_scanner$_position;
  79326. if (t1.call$1(this.escapeCharacter$0()))
  79327. return true;
  79328. t2.set$state(new S._SpanScannerState(t2, t3));
  79329. }
  79330. return false;
  79331. },
  79332. scanIdentChar$1: function(char) {
  79333. return this.scanIdentChar$2$caseSensitive(char, false);
  79334. },
  79335. expectIdentChar$1: function(letter) {
  79336. var t1;
  79337. if (this.scanIdentChar$2$caseSensitive(letter, false))
  79338. return;
  79339. t1 = this.scanner;
  79340. t1.error$2$position('Expected "' + H.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  79341. },
  79342. lookingAtNumber$0: function() {
  79343. var second, third,
  79344. t1 = this.scanner,
  79345. first = t1.peekChar$0();
  79346. if (first == null)
  79347. return false;
  79348. if (T.isDigit0(first))
  79349. return true;
  79350. if (first === 46) {
  79351. second = t1.peekChar$1(1);
  79352. return second != null && T.isDigit0(second);
  79353. } else if (first === 43 || first === 45) {
  79354. second = t1.peekChar$1(1);
  79355. if (second == null)
  79356. return false;
  79357. if (T.isDigit0(second))
  79358. return true;
  79359. if (second !== 46)
  79360. return false;
  79361. third = t1.peekChar$1(2);
  79362. return third != null && T.isDigit0(third);
  79363. } else
  79364. return false;
  79365. },
  79366. lookingAtIdentifier$1: function($forward) {
  79367. var t1, first, second;
  79368. if ($forward == null)
  79369. $forward = 0;
  79370. t1 = this.scanner;
  79371. first = t1.peekChar$1($forward);
  79372. if (first == null)
  79373. return false;
  79374. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || first === 92)
  79375. return true;
  79376. if (first !== 45)
  79377. return false;
  79378. second = t1.peekChar$1($forward + 1);
  79379. if (second == null)
  79380. return false;
  79381. return second === 95 || T.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
  79382. },
  79383. lookingAtIdentifier$0: function() {
  79384. return this.lookingAtIdentifier$1(null);
  79385. },
  79386. lookingAtIdentifierBody$0: function() {
  79387. var t1,
  79388. next = this.scanner.peekChar$0();
  79389. if (next != null)
  79390. t1 = next === 95 || T.isAlphabetic1(next) || next >= 128 || T.isDigit0(next) || next === 45 || next === 92;
  79391. else
  79392. t1 = false;
  79393. return t1;
  79394. },
  79395. scanIdentifier$2$caseSensitive: function(text, caseSensitive) {
  79396. var t1, start, t2, cur, _this = this;
  79397. if (!_this.lookingAtIdentifier$0())
  79398. return false;
  79399. t1 = _this.scanner;
  79400. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  79401. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  79402. cur = t2.__internal$_current;
  79403. if (_this.scanIdentChar$2$caseSensitive(cur, caseSensitive))
  79404. continue;
  79405. if (start._scanner !== t1)
  79406. H.throwExpression(P.ArgumentError$(string$.The_gi));
  79407. t2 = start.position;
  79408. if (t2 < 0 || t2 > t1.string.length)
  79409. H.throwExpression(P.ArgumentError$("Invalid position " + t2));
  79410. t1._string_scanner$_position = t2;
  79411. t1._lastMatch = null;
  79412. return false;
  79413. }
  79414. if (!_this.lookingAtIdentifierBody$0())
  79415. return true;
  79416. t1.set$state(start);
  79417. return false;
  79418. },
  79419. scanIdentifier$1: function(text) {
  79420. return this.scanIdentifier$2$caseSensitive(text, false);
  79421. },
  79422. expectIdentifier$2$name: function(text, $name) {
  79423. var t1, start, t2, cur;
  79424. if ($name == null)
  79425. $name = '"' + text + '"';
  79426. t1 = this.scanner;
  79427. start = t1._string_scanner$_position;
  79428. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  79429. cur = t2.__internal$_current;
  79430. if (this.scanIdentChar$2$caseSensitive(cur, false))
  79431. continue;
  79432. t1.error$2$position("Expected " + $name + ".", start);
  79433. }
  79434. if (!this.lookingAtIdentifierBody$0())
  79435. return;
  79436. t1.error$2$position("Expected " + $name, start);
  79437. },
  79438. expectIdentifier$1: function(text) {
  79439. return this.expectIdentifier$2$name(text, null);
  79440. },
  79441. rawText$1: function(consumer) {
  79442. var t1 = this.scanner,
  79443. start = t1._string_scanner$_position;
  79444. consumer.call$0();
  79445. return t1.substring$1(0, start);
  79446. },
  79447. error$2: function(message, span) {
  79448. return H.throwExpression(E.StringScannerException$(message, span, this.scanner.string));
  79449. },
  79450. withErrorMessage$1$2: function(message, callback) {
  79451. var error, t1, exception;
  79452. try {
  79453. t1 = callback.call$0();
  79454. return t1;
  79455. } catch (exception) {
  79456. t1 = H.unwrapException(exception);
  79457. if (type$.legacy_SourceSpanFormatException._is(t1)) {
  79458. error = t1;
  79459. throw H.wrapException(G.SourceSpanFormatException$(message, error.get$span(), error.get$source()));
  79460. } else
  79461. throw exception;
  79462. }
  79463. },
  79464. withErrorMessage$2: function(message, callback) {
  79465. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  79466. },
  79467. wrapSpanFormatException$1$1: function(callback) {
  79468. var error, span, startPosition, t1, exception;
  79469. try {
  79470. t1 = callback.call$0();
  79471. return t1;
  79472. } catch (exception) {
  79473. t1 = H.unwrapException(exception);
  79474. if (type$.legacy_SourceSpanFormatException._is(t1)) {
  79475. error = t1;
  79476. span = error.get$span();
  79477. if (B.startsWithIgnoreCase0(error._span_exception$_message, "expected")) {
  79478. t1 = span;
  79479. t1 = t1._end - t1._file$_start === 0;
  79480. } else
  79481. t1 = false;
  79482. if (t1) {
  79483. t1 = span;
  79484. startPosition = this._parser$_firstNewlineBefore$1(Y.FileLocation$_(t1.file, t1._file$_start).offset);
  79485. t1 = span;
  79486. if (!J.$eq$(startPosition, Y.FileLocation$_(t1.file, t1._file$_start).offset))
  79487. span = span.file.span$2(startPosition, startPosition);
  79488. }
  79489. throw H.wrapException(E.SassFormatException$0(error._span_exception$_message, span));
  79490. } else
  79491. throw exception;
  79492. }
  79493. },
  79494. wrapSpanFormatException$1: function(callback) {
  79495. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  79496. },
  79497. _parser$_firstNewlineBefore$1: function(position) {
  79498. var t1, t2, lastNewline, codeUnit,
  79499. index = position - 1;
  79500. for (t1 = this.scanner.string, t2 = J.getInterceptor$s(t1), lastNewline = null; index >= 0;) {
  79501. codeUnit = t2.codeUnitAt$1(t1, index);
  79502. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  79503. return lastNewline == null ? position : lastNewline;
  79504. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  79505. lastNewline = index;
  79506. --index;
  79507. }
  79508. return position;
  79509. }
  79510. };
  79511. G.Parser__parseIdentifier_closure0.prototype = {
  79512. call$0: function() {
  79513. var t1 = this.$this,
  79514. result = t1.identifier$0();
  79515. t1.scanner.expectDone$0();
  79516. return result;
  79517. },
  79518. $signature: 9
  79519. };
  79520. G.Parser_scanIdentChar_matches0.prototype = {
  79521. call$1: function(actual) {
  79522. var t1 = this.char;
  79523. return this.caseSensitive ? actual === t1 : T.characterEqualsIgnoreCase0(t1, actual);
  79524. },
  79525. $signature: 16
  79526. };
  79527. N.PlaceholderSelector0.prototype = {
  79528. get$isInvisible: function() {
  79529. return true;
  79530. },
  79531. accept$1$1: function(visitor) {
  79532. var t1 = visitor._buffer;
  79533. t1.writeCharCode$1(37);
  79534. t1.write$1(0, this.name);
  79535. return null;
  79536. },
  79537. accept$1: function(visitor) {
  79538. return this.accept$1$1(visitor, type$.dynamic);
  79539. },
  79540. addSuffix$1: function(suffix) {
  79541. return new N.PlaceholderSelector0(this.name + suffix);
  79542. },
  79543. $eq: function(_, other) {
  79544. if (other == null)
  79545. return false;
  79546. return other instanceof N.PlaceholderSelector0 && other.name === this.name;
  79547. },
  79548. get$hashCode: function(_) {
  79549. return C.JSString_methods.get$hashCode(this.name);
  79550. }
  79551. };
  79552. L.PlainCssCallable0.prototype = {
  79553. $eq: function(_, other) {
  79554. if (other == null)
  79555. return false;
  79556. return other instanceof L.PlainCssCallable0 && this.name == other.name;
  79557. },
  79558. get$hashCode: function(_) {
  79559. return J.get$hashCode$(this.name);
  79560. },
  79561. $isAsyncCallable0: 1,
  79562. $isCallable0: 1,
  79563. get$name: function() {
  79564. return this.name;
  79565. }
  79566. };
  79567. F.PrefixedMapView0.prototype = {
  79568. get$keys: function() {
  79569. return new F._PrefixedKeys0(this);
  79570. },
  79571. get$length: function(_) {
  79572. var t1 = this._prefixed_map_view0$_map;
  79573. return t1.get$length(t1);
  79574. },
  79575. get$isEmpty: function(_) {
  79576. var t1 = this._prefixed_map_view0$_map;
  79577. return t1.get$isEmpty(t1);
  79578. },
  79579. get$isNotEmpty: function(_) {
  79580. var t1 = this._prefixed_map_view0$_map;
  79581. return t1.get$isNotEmpty(t1);
  79582. },
  79583. $index: function(_, key) {
  79584. return typeof key == "string" && C.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;
  79585. },
  79586. containsKey$1: function(key) {
  79587. return typeof key == "string" && C.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));
  79588. }
  79589. };
  79590. F._PrefixedKeys0.prototype = {
  79591. get$length: function(_) {
  79592. var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
  79593. return t1.get$length(t1);
  79594. },
  79595. get$iterator: function(_) {
  79596. var t1 = J.map$1$1$ax(this._prefixed_map_view0$_view._prefixed_map_view0$_map.get$keys(), new F._PrefixedKeys_iterator_closure0(this), type$.legacy_String);
  79597. return t1.get$iterator(t1);
  79598. },
  79599. contains$1: function(_, key) {
  79600. return this._prefixed_map_view0$_view.containsKey$1(key);
  79601. }
  79602. };
  79603. F._PrefixedKeys_iterator_closure0.prototype = {
  79604. call$1: function(key) {
  79605. return this.$this._prefixed_map_view0$_view._prefixed_map_view0$_prefix + H.S(key);
  79606. }
  79607. };
  79608. D.PseudoSelector0.prototype = {
  79609. get$minSpecificity: function() {
  79610. if (this._pseudo0$_minSpecificity == null)
  79611. this._pseudo0$_computeSpecificity$0();
  79612. return this._pseudo0$_minSpecificity;
  79613. },
  79614. get$maxSpecificity: function() {
  79615. if (this._pseudo0$_maxSpecificity == null)
  79616. this._pseudo0$_computeSpecificity$0();
  79617. return this._pseudo0$_maxSpecificity;
  79618. },
  79619. get$isInvisible: function() {
  79620. var t1 = this.selector;
  79621. if (t1 == null)
  79622. return false;
  79623. return this.name !== "not" && t1.get$isInvisible();
  79624. },
  79625. addSuffix$1: function(suffix) {
  79626. var _this = this;
  79627. if (_this.argument != null || _this.selector != null)
  79628. _this.super$SimpleSelector$addSuffix0(suffix);
  79629. return D.PseudoSelector$0(_this.name + suffix, null, !_this.isClass, null);
  79630. },
  79631. unify$1: function(compound) {
  79632. var result, t1, t2, addedThis, _i, simple, _this = this;
  79633. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0)
  79634. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector_2));
  79635. if (C.JSArray_methods.contains$1(compound, _this))
  79636. return compound;
  79637. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  79638. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  79639. simple = compound[_i];
  79640. if (simple instanceof D.PseudoSelector0 && !simple.isClass) {
  79641. if (t2)
  79642. return null;
  79643. result.push(_this);
  79644. addedThis = true;
  79645. }
  79646. result.push(simple);
  79647. }
  79648. if (!addedThis)
  79649. result.push(_this);
  79650. return result;
  79651. },
  79652. _pseudo0$_computeSpecificity$0: function() {
  79653. var t1, _i, t2, complex, t3, t4, _this = this;
  79654. if (!_this.isClass) {
  79655. _this._pseudo0$_maxSpecificity = _this._pseudo0$_minSpecificity = 1;
  79656. return;
  79657. }
  79658. t1 = _this.selector;
  79659. if (t1 == null) {
  79660. _this._pseudo0$_minSpecificity = M.SimpleSelector0.prototype.get$minSpecificity.call(_this);
  79661. _this._pseudo0$_maxSpecificity = M.SimpleSelector0.prototype.get$maxSpecificity.call(_this);
  79662. return;
  79663. }
  79664. if (_this.name === "not") {
  79665. _i = _this._pseudo0$_maxSpecificity = _this._pseudo0$_minSpecificity = 0;
  79666. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  79667. complex = t1[_i];
  79668. t3 = _this._pseudo0$_minSpecificity;
  79669. if (complex._complex0$_minSpecificity == null)
  79670. complex._complex0$_computeSpecificity$0();
  79671. t4 = complex._complex0$_minSpecificity;
  79672. _this._pseudo0$_minSpecificity = Math.max(H.checkNum(t3), H.checkNum(t4));
  79673. t4 = _this._pseudo0$_maxSpecificity;
  79674. if (complex._complex0$_maxSpecificity == null)
  79675. complex._complex0$_computeSpecificity$0();
  79676. t3 = complex._complex0$_maxSpecificity;
  79677. _this._pseudo0$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  79678. }
  79679. } else {
  79680. _this._pseudo0$_minSpecificity = H._asIntS(Math.pow(M.SimpleSelector0.prototype.get$minSpecificity.call(_this), 3));
  79681. _i = _this._pseudo0$_maxSpecificity = 0;
  79682. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  79683. complex = t1[_i];
  79684. t3 = _this._pseudo0$_minSpecificity;
  79685. if (complex._complex0$_minSpecificity == null)
  79686. complex._complex0$_computeSpecificity$0();
  79687. t4 = complex._complex0$_minSpecificity;
  79688. _this._pseudo0$_minSpecificity = Math.min(H.checkNum(t3), H.checkNum(t4));
  79689. t4 = _this._pseudo0$_maxSpecificity;
  79690. if (complex._complex0$_maxSpecificity == null)
  79691. complex._complex0$_computeSpecificity$0();
  79692. t3 = complex._complex0$_maxSpecificity;
  79693. _this._pseudo0$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  79694. }
  79695. }
  79696. },
  79697. accept$1$1: function(visitor) {
  79698. return visitor.visitPseudoSelector$1(this);
  79699. },
  79700. accept$1: function(visitor) {
  79701. return this.accept$1$1(visitor, type$.dynamic);
  79702. },
  79703. $eq: function(_, other) {
  79704. var _this = this;
  79705. if (other == null)
  79706. return false;
  79707. return other instanceof D.PseudoSelector0 && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  79708. },
  79709. get$hashCode: function(_) {
  79710. var _this = this;
  79711. return (C.JSString_methods.get$hashCode(_this.name) ^ C.JSBool_methods.get$hashCode(!_this.isClass) ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector)) >>> 0;
  79712. }
  79713. };
  79714. U.PublicMemberMapView0.prototype = {
  79715. get$keys: function() {
  79716. return J.where$1$ax(this._public_member_map_view$_inner.get$keys(), B.utils0__isPublic$closure());
  79717. },
  79718. containsKey$1: function(key) {
  79719. return typeof key == "string" && B.isPublic0(key) && this._public_member_map_view$_inner.containsKey$1(key);
  79720. },
  79721. $index: function(_, key) {
  79722. if (typeof key == "string" && B.isPublic0(key))
  79723. return this._public_member_map_view$_inner.$index(0, key);
  79724. return null;
  79725. }
  79726. };
  79727. D.QualifiedName0.prototype = {
  79728. $eq: function(_, other) {
  79729. if (other == null)
  79730. return false;
  79731. return other instanceof D.QualifiedName0 && other.name === this.name && other.namespace == this.namespace;
  79732. },
  79733. get$hashCode: function(_) {
  79734. return C.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  79735. },
  79736. toString$0: function(_) {
  79737. var t1 = this.namespace,
  79738. t2 = this.name;
  79739. return t1 == null ? t2 : t1 + "|" + t2;
  79740. }
  79741. };
  79742. Z.RenderContext.prototype = {};
  79743. L.RenderContextOptions.prototype = {};
  79744. R.RenderOptions.prototype = {};
  79745. U.RenderResult.prototype = {};
  79746. U.RenderResultStats.prototype = {};
  79747. E.ImporterResult0.prototype = {
  79748. get$sourceMapUrl: function() {
  79749. return this._result$_sourceMapUrl;
  79750. }
  79751. };
  79752. B.ReturnRule0.prototype = {
  79753. accept$1$1: function(visitor) {
  79754. return visitor.visitReturnRule$1(this);
  79755. },
  79756. accept$1: function(visitor) {
  79757. return this.accept$1$1(visitor, type$.dynamic);
  79758. },
  79759. toString$0: function(_) {
  79760. return "@return " + H.S(this.expression) + ";";
  79761. },
  79762. $isAstNode0: 1,
  79763. $isStatement0: 1,
  79764. get$span: function() {
  79765. return this.span;
  79766. }
  79767. };
  79768. U.main_printError.prototype = {
  79769. call$2: function(error, stackTrace) {
  79770. var t1 = this._box_0;
  79771. if (t1.printedError)
  79772. $.$get$stderr().writeln$0();
  79773. t1.printedError = true;
  79774. t1 = $.$get$stderr();
  79775. t1.writeln$1(error);
  79776. if (stackTrace != null) {
  79777. t1.writeln$0();
  79778. t1.writeln$1(C.JSString_methods.trimRight$0(Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
  79779. }
  79780. }
  79781. };
  79782. U.main_closure.prototype = {
  79783. call$0: function() {
  79784. var t1, exception;
  79785. try {
  79786. t1 = this.destination;
  79787. if (t1 != null && !this._box_0.options.get$emitErrorCss())
  79788. B.deleteFile(t1);
  79789. } catch (exception) {
  79790. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  79791. throw exception;
  79792. }
  79793. },
  79794. $signature: 0
  79795. };
  79796. U.SassParser0.prototype = {
  79797. get$currentIndentation: function() {
  79798. return this._sass0$_currentIndentation;
  79799. },
  79800. get$indented: function() {
  79801. return true;
  79802. },
  79803. styleRuleSelector$0: function() {
  79804. var t4,
  79805. t1 = this.scanner,
  79806. t2 = t1._string_scanner$_position,
  79807. t3 = new P.StringBuffer(""),
  79808. buffer = new Z.InterpolationBuffer0(t3, []);
  79809. do {
  79810. buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
  79811. t4 = t3._contents += H.Primitives_stringFromCharCode(10);
  79812. } while (C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(T.character0__isNewline$closure()));
  79813. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  79814. },
  79815. expectStatementSeparator$1: function($name) {
  79816. var _this = this;
  79817. if (!_this.atEndOfStatement$0())
  79818. _this._sass0$_expectNewline$0();
  79819. if (_this._sass0$_peekIndentation$0() <= _this._sass0$_currentIndentation)
  79820. return;
  79821. _this.scanner.error$2$position("Nothing may be indented " + ($name == null ? "here" : "beneath a " + $name) + ".", _this._sass0$_nextIndentationEnd.position);
  79822. },
  79823. expectStatementSeparator$0: function() {
  79824. return this.expectStatementSeparator$1(null);
  79825. },
  79826. atEndOfStatement$0: function() {
  79827. var next = this.scanner.peekChar$0();
  79828. return next == null || T.isNewline0(next);
  79829. },
  79830. lookingAtChildren$0: function() {
  79831. return this.atEndOfStatement$0() && this._sass0$_peekIndentation$0() > this._sass0$_currentIndentation;
  79832. },
  79833. importArgument$0: function() {
  79834. var url, span, innerError, start, next, t2, exception, _this = this,
  79835. t1 = _this.scanner;
  79836. switch (t1.peekChar$0()) {
  79837. case 117:
  79838. case 85:
  79839. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  79840. if (_this.scanIdentifier$1("url"))
  79841. if (t1.scanChar$1(40)) {
  79842. t1.set$state(start);
  79843. return _this.super$StylesheetParser$importArgument0();
  79844. } else
  79845. t1.set$state(start);
  79846. break;
  79847. case 39:
  79848. case 34:
  79849. return _this.super$StylesheetParser$importArgument0();
  79850. }
  79851. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  79852. next = t1.peekChar$0();
  79853. while (true) {
  79854. if (next != null)
  79855. if (next !== 44)
  79856. if (next !== 59)
  79857. t2 = !(next === 10 || next === 13 || next === 12);
  79858. else
  79859. t2 = false;
  79860. else
  79861. t2 = false;
  79862. else
  79863. t2 = false;
  79864. if (!t2)
  79865. break;
  79866. t1.readChar$0();
  79867. next = t1.peekChar$0();
  79868. }
  79869. url = t1.substring$1(0, start.position);
  79870. span = t1.spanFrom$1(start);
  79871. if (_this.isPlainImportUrl$1(url))
  79872. return new Q.StaticImport0(X.Interpolation$0(H.setRuntimeTypeInfo([N.serializeValue(new D.SassString0(url, true), true, true)], type$.JSArray_legacy_Object), span), null, null, span);
  79873. else
  79874. try {
  79875. t1 = _this.parseImportUrl$1(url);
  79876. return new B.DynamicImport0(t1, span);
  79877. } catch (exception) {
  79878. t1 = H.unwrapException(exception);
  79879. if (type$.legacy_FormatException._is(t1)) {
  79880. innerError = t1;
  79881. _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), span);
  79882. } else
  79883. throw exception;
  79884. }
  79885. },
  79886. scanElse$1: function(ifIndentation) {
  79887. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  79888. if (_this._sass0$_peekIndentation$0() != ifIndentation)
  79889. return false;
  79890. t1 = _this.scanner;
  79891. t2 = t1._string_scanner$_position;
  79892. startIndentation = _this._sass0$_currentIndentation;
  79893. startNextIndentation = _this._sass0$_nextIndentation;
  79894. startNextIndentationEnd = _this._sass0$_nextIndentationEnd;
  79895. _this._sass0$_readIndentation$0();
  79896. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  79897. return true;
  79898. t1.set$state(new S._SpanScannerState(t1, t2));
  79899. _this._sass0$_currentIndentation = startIndentation;
  79900. _this._sass0$_nextIndentation = startNextIndentation;
  79901. _this._sass0$_nextIndentationEnd = startNextIndentationEnd;
  79902. return false;
  79903. },
  79904. children$1: function(child) {
  79905. var children = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement_2);
  79906. this._sass0$_whileIndentedLower$1(new U.SassParser_children_closure0(this, children, child));
  79907. return children;
  79908. },
  79909. statements$1: function(statement) {
  79910. var statements, t2, child,
  79911. t1 = this.scanner,
  79912. first = t1.peekChar$0();
  79913. if (first === 9 || first === 32)
  79914. t1.error$3$length$position(string$.Indent, t1._string_scanner$_position, 0);
  79915. statements = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement_2);
  79916. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  79917. child = this._sass0$_child$1(statement);
  79918. if (child != null)
  79919. statements.push(child);
  79920. this._sass0$_readIndentation$0();
  79921. }
  79922. return statements;
  79923. },
  79924. _sass0$_child$1: function(child) {
  79925. var _this = this,
  79926. t1 = _this.scanner;
  79927. switch (t1.peekChar$0()) {
  79928. case 13:
  79929. case 10:
  79930. case 12:
  79931. return null;
  79932. case 36:
  79933. return _this.variableDeclarationWithoutNamespace$0();
  79934. case 47:
  79935. switch (t1.peekChar$1(1)) {
  79936. case 47:
  79937. return _this._sass0$_silentComment$0();
  79938. case 42:
  79939. return _this._sass0$_loudComment$0();
  79940. default:
  79941. return child.call$0();
  79942. }
  79943. default:
  79944. return child.call$0();
  79945. }
  79946. },
  79947. _sass0$_silentComment$0: function() {
  79948. var buffer, parentIndentation, t3, commentPrefix, i, t4, i0, t5, t6, _this = this,
  79949. t1 = _this.scanner,
  79950. t2 = t1._string_scanner$_position;
  79951. t1.expect$1("//");
  79952. buffer = new P.StringBuffer("");
  79953. parentIndentation = _this._sass0$_currentIndentation;
  79954. t3 = t1.string;
  79955. $label0$0:
  79956. do {
  79957. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  79958. for (i = commentPrefix.length; true;) {
  79959. t4 = buffer._contents += commentPrefix;
  79960. for (i0 = i; i0 < _this._sass0$_currentIndentation - parentIndentation; ++i0) {
  79961. t4 += H.Primitives_stringFromCharCode(32);
  79962. buffer._contents = t4;
  79963. }
  79964. t5 = t3.length;
  79965. while (true) {
  79966. if (t1._string_scanner$_position !== t5) {
  79967. t6 = t1.peekChar$0();
  79968. t6 = !(t6 === 10 || t6 === 13 || t6 === 12);
  79969. } else
  79970. t6 = false;
  79971. if (!t6)
  79972. break;
  79973. t4 += H.Primitives_stringFromCharCode(t1.readChar$0());
  79974. buffer._contents = t4;
  79975. }
  79976. buffer._contents = t4 + "\n";
  79977. if (_this._sass0$_peekIndentation$0() < parentIndentation)
  79978. break $label0$0;
  79979. if (_this._sass0$_peekIndentation$0() === parentIndentation) {
  79980. if (t1.peekChar$1(1 + parentIndentation) === 47 && t1.peekChar$1(2 + parentIndentation) === 47)
  79981. _this._sass0$_readIndentation$0();
  79982. break;
  79983. }
  79984. _this._sass0$_readIndentation$0();
  79985. }
  79986. } while (t1.scan$1("//"));
  79987. t3 = buffer._contents;
  79988. return _this.lastSilentComment = new B.SilentComment0(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  79989. },
  79990. _sass0$_loudComment$0: function() {
  79991. var t3, t4, buffer, parentIndentation, t5, first, beginningOfComment, t6, end, i, t7, _this = this,
  79992. t1 = _this.scanner,
  79993. t2 = t1._string_scanner$_position;
  79994. t1.expect$1("/*");
  79995. t3 = new P.StringBuffer("");
  79996. t4 = [];
  79997. buffer = new Z.InterpolationBuffer0(t3, t4);
  79998. t3._contents = "/*";
  79999. parentIndentation = _this._sass0$_currentIndentation;
  80000. for (t5 = t1.string, first = true; true; first = false) {
  80001. if (first) {
  80002. beginningOfComment = t1._string_scanner$_position;
  80003. _this.spaces$0();
  80004. t6 = t1.peekChar$0();
  80005. if (t6 === 10 || t6 === 13 || t6 === 12) {
  80006. _this._sass0$_readIndentation$0();
  80007. t3._contents += H.Primitives_stringFromCharCode(32);
  80008. } else {
  80009. end = t1._string_scanner$_position;
  80010. t3._contents += J.substring$2$s(t5, beginningOfComment, end);
  80011. }
  80012. } else {
  80013. t6 = t3._contents += "\n";
  80014. t3._contents = t6 + " * ";
  80015. }
  80016. for (i = 3; i < _this._sass0$_currentIndentation - parentIndentation; ++i)
  80017. t3._contents += H.Primitives_stringFromCharCode(32);
  80018. $label0$1:
  80019. for (t6 = t5.length; t1._string_scanner$_position !== t6;)
  80020. switch (t1.peekChar$0()) {
  80021. case 10:
  80022. case 13:
  80023. case 12:
  80024. break $label0$1;
  80025. case 35:
  80026. if (t1.peekChar$1(1) === 123) {
  80027. t7 = _this.singleInterpolation$0();
  80028. buffer._interpolation_buffer0$_flushText$0();
  80029. t4.push(t7);
  80030. } else
  80031. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80032. break;
  80033. default:
  80034. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80035. break;
  80036. }
  80037. if (_this._sass0$_peekIndentation$0() <= parentIndentation)
  80038. break;
  80039. for (; _this._sass0$_lookingAtDoubleNewline$0();) {
  80040. _this._sass0$_expectNewline$0();
  80041. t6 = t3._contents += "\n";
  80042. t3._contents = t6 + " *";
  80043. }
  80044. _this._sass0$_readIndentation$0();
  80045. }
  80046. t4 = t3._contents;
  80047. if (!C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
  80048. t3._contents += " */";
  80049. return new L.LoudComment0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))));
  80050. },
  80051. whitespaceWithoutComments$0: function() {
  80052. var t1, t2, next;
  80053. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  80054. next = t1.peekChar$0();
  80055. if (next !== 9 && next !== 32)
  80056. break;
  80057. t1.readChar$0();
  80058. }
  80059. },
  80060. loudComment$0: function() {
  80061. var next,
  80062. t1 = this.scanner;
  80063. t1.expect$1("/*");
  80064. for (; true;) {
  80065. next = t1.readChar$0();
  80066. if (next === 10 || next === 13 || next === 12)
  80067. t1.error$1("expected */.");
  80068. if (next !== 42)
  80069. continue;
  80070. do
  80071. next = t1.readChar$0();
  80072. while (next === 42);
  80073. if (next === 47)
  80074. break;
  80075. }
  80076. },
  80077. _sass0$_expectNewline$0: function() {
  80078. var t1 = this.scanner;
  80079. switch (t1.peekChar$0()) {
  80080. case 59:
  80081. t1.error$1(string$.semico);
  80082. break;
  80083. case 13:
  80084. t1.readChar$0();
  80085. if (t1.peekChar$0() === 10)
  80086. t1.readChar$0();
  80087. return;
  80088. case 10:
  80089. case 12:
  80090. t1.readChar$0();
  80091. return;
  80092. default:
  80093. t1.error$1("expected newline.");
  80094. }
  80095. },
  80096. _sass0$_lookingAtDoubleNewline$0: function() {
  80097. var nextChar,
  80098. t1 = this.scanner;
  80099. switch (t1.peekChar$0()) {
  80100. case 13:
  80101. nextChar = t1.peekChar$1(1);
  80102. if (nextChar === 10)
  80103. return T.isNewline0(t1.peekChar$1(2));
  80104. return nextChar === 13 || nextChar === 12;
  80105. case 10:
  80106. case 12:
  80107. return T.isNewline0(t1.peekChar$1(1));
  80108. default:
  80109. return false;
  80110. }
  80111. },
  80112. _sass0$_whileIndentedLower$1: function(body) {
  80113. var t1, t2, childIndentation, indentation, t3, t4, t5, _this = this,
  80114. parentIndentation = _this._sass0$_currentIndentation;
  80115. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._sass0$_peekIndentation$0() > parentIndentation;) {
  80116. indentation = _this._sass0$_readIndentation$0();
  80117. if (childIndentation == null)
  80118. childIndentation = indentation;
  80119. if (childIndentation != indentation) {
  80120. t3 = "Inconsistent indentation, expected " + H.S(childIndentation) + " spaces.";
  80121. t4 = t1._string_scanner$_position;
  80122. t5 = t2.getColumn$1(t4);
  80123. t1.error$3$length$position(t3, t2.getColumn$1(t1._string_scanner$_position), t4 - t5);
  80124. }
  80125. body.call$0();
  80126. }
  80127. },
  80128. _sass0$_readIndentation$0: function() {
  80129. var _this = this;
  80130. if (_this._sass0$_nextIndentation == null)
  80131. _this._sass0$_peekIndentation$0();
  80132. _this._sass0$_currentIndentation = _this._sass0$_nextIndentation;
  80133. _this.scanner.set$state(_this._sass0$_nextIndentationEnd);
  80134. _this._sass0$_nextIndentationEnd = _this._sass0$_nextIndentation = null;
  80135. return _this._sass0$_currentIndentation;
  80136. },
  80137. _sass0$_peekIndentation$0: function() {
  80138. var t2, t3, start, containsTab, containsSpace, next, t4, _this = this,
  80139. t1 = _this._sass0$_nextIndentation;
  80140. if (t1 != null)
  80141. return t1;
  80142. t1 = _this.scanner;
  80143. t2 = t1._string_scanner$_position;
  80144. t3 = t1.string.length;
  80145. if (t2 === t3) {
  80146. _this._sass0$_nextIndentation = 0;
  80147. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t2);
  80148. return 0;
  80149. }
  80150. start = new S._SpanScannerState(t1, t2);
  80151. if (!_this.scanCharIf$1(T.character0__isNewline$closure()))
  80152. t1.error$2$position("Expected newline.", t1._string_scanner$_position);
  80153. do {
  80154. _this._sass0$_nextIndentation = 0;
  80155. for (containsTab = false, containsSpace = false; true;) {
  80156. next = t1.peekChar$0();
  80157. if (next === 32)
  80158. containsSpace = true;
  80159. else {
  80160. if (next !== 9)
  80161. break;
  80162. containsTab = true;
  80163. }
  80164. _this._sass0$_nextIndentation = _this._sass0$_nextIndentation + 1;
  80165. t1.readChar$0();
  80166. }
  80167. t2 = t1._string_scanner$_position;
  80168. if (t2 === t3) {
  80169. _this._sass0$_nextIndentation = 0;
  80170. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t2);
  80171. t1.set$state(start);
  80172. return 0;
  80173. }
  80174. } while (_this.scanCharIf$1(T.character0__isNewline$closure()));
  80175. if (containsTab) {
  80176. if (containsSpace) {
  80177. t2 = t1._string_scanner$_position;
  80178. t3 = t1._sourceFile;
  80179. t4 = t3.getColumn$1(t2);
  80180. t1.error$3$length$position("Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  80181. } else if (_this._sass0$_spaces === true) {
  80182. t2 = t1._string_scanner$_position;
  80183. t3 = t1._sourceFile;
  80184. t4 = t3.getColumn$1(t2);
  80185. t1.error$3$length$position("Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  80186. }
  80187. } else if (containsSpace && _this._sass0$_spaces === false) {
  80188. t2 = t1._string_scanner$_position;
  80189. t3 = t1._sourceFile;
  80190. t4 = t3.getColumn$1(t2);
  80191. t1.error$3$length$position("Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  80192. }
  80193. if (_this._sass0$_nextIndentation > 0)
  80194. if (_this._sass0$_spaces == null)
  80195. _this._sass0$_spaces = containsSpace;
  80196. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t1._string_scanner$_position);
  80197. t1.set$state(start);
  80198. return _this._sass0$_nextIndentation;
  80199. }
  80200. };
  80201. U.SassParser_children_closure0.prototype = {
  80202. call$0: function() {
  80203. this.children.push(this.$this._sass0$_child$1(this.child));
  80204. },
  80205. $signature: 0
  80206. };
  80207. R._Exports.prototype = {};
  80208. R._wrapMain_closure.prototype = {
  80209. call$1: function(_) {
  80210. return this.main.call$0();
  80211. },
  80212. $signature: 149
  80213. };
  80214. R._wrapMain_closure0.prototype = {
  80215. call$1: function(args) {
  80216. return this.main.call$1(P.List_List$from(type$.legacy_List_legacy_Object._as(args), true, type$.legacy_String));
  80217. },
  80218. $signature: 30
  80219. };
  80220. L.ScssParser0.prototype = {
  80221. get$indented: function() {
  80222. return false;
  80223. },
  80224. get$currentIndentation: function() {
  80225. return null;
  80226. },
  80227. styleRuleSelector$0: function() {
  80228. return this.almostAnyValue$0();
  80229. },
  80230. expectStatementSeparator$1: function($name) {
  80231. var t1, next;
  80232. this.whitespaceWithoutComments$0();
  80233. t1 = this.scanner;
  80234. if (t1._string_scanner$_position === t1.string.length)
  80235. return;
  80236. next = t1.peekChar$0();
  80237. if (next === 59 || next === 125)
  80238. return;
  80239. t1.expectChar$1(59);
  80240. },
  80241. expectStatementSeparator$0: function() {
  80242. return this.expectStatementSeparator$1(null);
  80243. },
  80244. atEndOfStatement$0: function() {
  80245. var next = this.scanner.peekChar$0();
  80246. return next == null || next === 59 || next === 125 || next === 123;
  80247. },
  80248. lookingAtChildren$0: function() {
  80249. return this.scanner.peekChar$0() === 123;
  80250. },
  80251. scanElse$1: function(_) {
  80252. var t3, _this = this,
  80253. t1 = _this.scanner,
  80254. t2 = t1._string_scanner$_position;
  80255. _this.whitespace$0();
  80256. t3 = t1._string_scanner$_position;
  80257. if (t1.scanChar$1(64)) {
  80258. if (_this.scanIdentifier$2$caseSensitive("else", true))
  80259. return true;
  80260. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  80261. _this.logger.warn$3$deprecation$span(string$.x40elsei, true, t1.spanFrom$1(new S._SpanScannerState(t1, t3)));
  80262. t1.set$position(t1._string_scanner$_position - 2);
  80263. return true;
  80264. }
  80265. }
  80266. t1.set$state(new S._SpanScannerState(t1, t2));
  80267. return false;
  80268. },
  80269. children$1: function(child) {
  80270. var children, _this = this,
  80271. t1 = _this.scanner;
  80272. t1.expectChar$1(123);
  80273. _this.whitespaceWithoutComments$0();
  80274. children = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement_2);
  80275. for (; true;)
  80276. switch (t1.peekChar$0()) {
  80277. case 36:
  80278. children.push(_this.variableDeclarationWithoutNamespace$0());
  80279. break;
  80280. case 47:
  80281. switch (t1.peekChar$1(1)) {
  80282. case 47:
  80283. children.push(_this._scss0$_silentComment$0());
  80284. _this.whitespaceWithoutComments$0();
  80285. break;
  80286. case 42:
  80287. children.push(_this._scss0$_loudComment$0());
  80288. _this.whitespaceWithoutComments$0();
  80289. break;
  80290. default:
  80291. children.push(child.call$0());
  80292. break;
  80293. }
  80294. break;
  80295. case 59:
  80296. t1.readChar$0();
  80297. _this.whitespaceWithoutComments$0();
  80298. break;
  80299. case 125:
  80300. t1.expectChar$1(125);
  80301. return children;
  80302. default:
  80303. children.push(child.call$0());
  80304. break;
  80305. }
  80306. },
  80307. statements$1: function(statement) {
  80308. var t1, t2, child, _this = this,
  80309. statements = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement_2);
  80310. _this.whitespaceWithoutComments$0();
  80311. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  80312. switch (t1.peekChar$0()) {
  80313. case 36:
  80314. statements.push(_this.variableDeclarationWithoutNamespace$0());
  80315. break;
  80316. case 47:
  80317. switch (t1.peekChar$1(1)) {
  80318. case 47:
  80319. statements.push(_this._scss0$_silentComment$0());
  80320. _this.whitespaceWithoutComments$0();
  80321. break;
  80322. case 42:
  80323. statements.push(_this._scss0$_loudComment$0());
  80324. _this.whitespaceWithoutComments$0();
  80325. break;
  80326. default:
  80327. child = statement.call$0();
  80328. if (child != null)
  80329. statements.push(child);
  80330. break;
  80331. }
  80332. break;
  80333. case 59:
  80334. t1.readChar$0();
  80335. _this.whitespaceWithoutComments$0();
  80336. break;
  80337. default:
  80338. child = statement.call$0();
  80339. if (child != null)
  80340. statements.push(child);
  80341. break;
  80342. }
  80343. return statements;
  80344. },
  80345. _scss0$_silentComment$0: function() {
  80346. var t2, t3, _this = this,
  80347. t1 = _this.scanner,
  80348. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  80349. t1.expect$1("//");
  80350. t2 = t1.string.length;
  80351. do {
  80352. while (true) {
  80353. if (t1._string_scanner$_position !== t2) {
  80354. t3 = t1.readChar$0();
  80355. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  80356. } else
  80357. t3 = false;
  80358. if (!t3)
  80359. break;
  80360. }
  80361. if (t1._string_scanner$_position === t2)
  80362. break;
  80363. _this.whitespaceWithoutComments$0();
  80364. } while (t1.scan$1("//"));
  80365. if (_this.get$plainCss())
  80366. _this.error$2(string$.Silent, t1.spanFrom$1(start));
  80367. return _this.lastSilentComment = new B.SilentComment0(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  80368. },
  80369. _scss0$_loudComment$0: function() {
  80370. var t3, t4, buffer, t5, endPosition,
  80371. t1 = this.scanner,
  80372. t2 = t1._string_scanner$_position;
  80373. t1.expect$1("/*");
  80374. t3 = new P.StringBuffer("");
  80375. t4 = [];
  80376. buffer = new Z.InterpolationBuffer0(t3, t4);
  80377. t3._contents = "/*";
  80378. for (; true;)
  80379. switch (t1.peekChar$0()) {
  80380. case 35:
  80381. if (t1.peekChar$1(1) === 123) {
  80382. t5 = this.singleInterpolation$0();
  80383. buffer._interpolation_buffer0$_flushText$0();
  80384. t4.push(t5);
  80385. } else
  80386. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80387. break;
  80388. case 42:
  80389. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80390. if (t1.peekChar$0() !== 47)
  80391. break;
  80392. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80393. endPosition = t1._string_scanner$_position;
  80394. return new L.LoudComment0(buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, new S._SpanScannerState(t1, t2).position, endPosition)));
  80395. case 13:
  80396. t1.readChar$0();
  80397. if (t1.peekChar$0() !== 10)
  80398. t3._contents += H.Primitives_stringFromCharCode(10);
  80399. break;
  80400. case 12:
  80401. t1.readChar$0();
  80402. t3._contents += H.Primitives_stringFromCharCode(10);
  80403. break;
  80404. default:
  80405. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80406. break;
  80407. }
  80408. }
  80409. };
  80410. T.Selector0.prototype = {
  80411. get$isInvisible: function() {
  80412. return false;
  80413. },
  80414. toString$0: function(_) {
  80415. var visitor = N._SerializeVisitor$(null, true, null, true, false, null, true);
  80416. this.accept$1(visitor);
  80417. return visitor._buffer.toString$0(0);
  80418. }
  80419. };
  80420. T.SelectorExpression0.prototype = {
  80421. accept$1$1: function(visitor) {
  80422. return visitor.visitSelectorExpression$1(this);
  80423. },
  80424. accept$1: function(visitor) {
  80425. return this.accept$1$1(visitor, type$.dynamic);
  80426. },
  80427. toString$0: function(_) {
  80428. return "&";
  80429. },
  80430. $isExpression0: 1,
  80431. $isAstNode0: 1,
  80432. get$span: function() {
  80433. return this.span;
  80434. }
  80435. };
  80436. T.closure119.prototype = {
  80437. call$1: function($arguments) {
  80438. var t1 = {},
  80439. selectors = J.$index$asx($arguments, 0).get$asList();
  80440. if (selectors.length === 0)
  80441. throw H.wrapException(E.SassScriptException$0(string$.x24selec));
  80442. t1.first = true;
  80443. return new H.MappedListIterable(selectors, new T._closure15(t1), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0*>")).reduce$1(0, new T._closure16()).get$asSassList();
  80444. },
  80445. $signature: 17
  80446. };
  80447. T._closure15.prototype = {
  80448. call$1: function(selector) {
  80449. var t1 = this._box_0,
  80450. result = selector.assertSelector$1$allowParent(!t1.first);
  80451. t1.first = false;
  80452. return result;
  80453. }
  80454. };
  80455. T._closure16.prototype = {
  80456. call$2: function($parent, child) {
  80457. return child.resolveParentSelectors$1($parent);
  80458. }
  80459. };
  80460. T.closure118.prototype = {
  80461. call$1: function($arguments) {
  80462. var selectors = J.$index$asx($arguments, 0).get$asList();
  80463. if (selectors.length === 0)
  80464. throw H.wrapException(E.SassScriptException$0(string$.x24selec));
  80465. return new H.MappedListIterable(selectors, new T._closure13(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0*>")).reduce$1(0, new T._closure14()).get$asSassList();
  80466. },
  80467. $signature: 17
  80468. };
  80469. T._closure13.prototype = {
  80470. call$1: function(selector) {
  80471. return selector.assertSelector$0();
  80472. }
  80473. };
  80474. T._closure14.prototype = {
  80475. call$2: function($parent, child) {
  80476. var t1 = child.components;
  80477. return D.SelectorList$0(new H.MappedListIterable(t1, new T.__closure0($parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0*>"))).resolveParentSelectors$1($parent);
  80478. }
  80479. };
  80480. T.__closure0.prototype = {
  80481. call$1: function(complex) {
  80482. var newCompound, t2, cur,
  80483. t1 = complex.components,
  80484. compound = C.JSArray_methods.get$first(t1);
  80485. if (compound instanceof X.CompoundSelector0) {
  80486. newCompound = T._prependParent0(compound);
  80487. if (newCompound == null)
  80488. throw H.wrapException(E.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  80489. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2);
  80490. t2.push(newCompound);
  80491. for (t1 = H.SubListIterable$(t1, 1, null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  80492. cur = t1.__internal$_current;
  80493. t2.push(cur);
  80494. }
  80495. return S.ComplexSelector$0(t2, false);
  80496. } else
  80497. throw H.wrapException(E.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  80498. }
  80499. };
  80500. T.closure117.prototype = {
  80501. call$1: function($arguments) {
  80502. var t1 = J.getInterceptor$asx($arguments),
  80503. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  80504. target = t1.$index($arguments, 1).assertSelector$1$name("extendee");
  80505. return F.Extender__extendOrReplace0(selector, t1.$index($arguments, 2).assertSelector$1$name("extender"), target, C.ExtendMode_allTargets0).get$asSassList();
  80506. },
  80507. $signature: 17
  80508. };
  80509. T.closure116.prototype = {
  80510. call$1: function($arguments) {
  80511. var t1 = J.getInterceptor$asx($arguments),
  80512. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  80513. target = t1.$index($arguments, 1).assertSelector$1$name("original");
  80514. return F.Extender__extendOrReplace0(selector, t1.$index($arguments, 2).assertSelector$1$name("replacement"), target, C.ExtendMode_replace0).get$asSassList();
  80515. },
  80516. $signature: 17
  80517. };
  80518. T.closure115.prototype = {
  80519. call$1: function($arguments) {
  80520. var t1 = J.getInterceptor$asx($arguments),
  80521. result = t1.$index($arguments, 0).assertSelector$1$name("selector1").unify$1(t1.$index($arguments, 1).assertSelector$1$name("selector2"));
  80522. return result == null ? C.C_SassNull : result.get$asSassList();
  80523. },
  80524. $signature: 3
  80525. };
  80526. T.closure122.prototype = {
  80527. call$1: function($arguments) {
  80528. var t1 = J.getInterceptor$asx($arguments),
  80529. selector1 = t1.$index($arguments, 0).assertSelector$1$name("super"),
  80530. selector2 = t1.$index($arguments, 1).assertSelector$1$name("sub");
  80531. return Y.listIsSuperselector0(selector1.components, selector2.components) ? C.SassBoolean_true : C.SassBoolean_false;
  80532. },
  80533. $signature: 14
  80534. };
  80535. T.closure121.prototype = {
  80536. call$1: function($arguments) {
  80537. var t1 = J.$index$asx($arguments, 0).assertCompoundSelector$1$name("selector").components;
  80538. return D.SassList$0(new H.MappedListIterable(t1, new T._closure17(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0*>")), C.ListSeparator_comma0, false);
  80539. },
  80540. $signature: 17
  80541. };
  80542. T._closure17.prototype = {
  80543. call$1: function(simple) {
  80544. return new D.SassString0(J.toString$0$(simple), false);
  80545. }
  80546. };
  80547. T.closure120.prototype = {
  80548. call$1: function($arguments) {
  80549. return J.$index$asx($arguments, 0).assertSelector$1$name("selector").get$asSassList();
  80550. },
  80551. $signature: 17
  80552. };
  80553. T.SelectorParser0.prototype = {
  80554. parse$0: function() {
  80555. return this.wrapSpanFormatException$1(new T.SelectorParser_parse_closure0(this));
  80556. },
  80557. parseCompoundSelector$0: function() {
  80558. return this.wrapSpanFormatException$1(new T.SelectorParser_parseCompoundSelector_closure0(this));
  80559. },
  80560. _selector$_selectorList$0: function() {
  80561. var t3, t4, lineBreak, _this = this,
  80562. t1 = _this.scanner,
  80563. t2 = t1._sourceFile,
  80564. previousLine = t2.getLine$1(t1._string_scanner$_position),
  80565. components = H.setRuntimeTypeInfo([_this._selector$_complexSelector$0()], type$.JSArray_legacy_ComplexSelector_2);
  80566. _this.whitespace$0();
  80567. for (t3 = t1.string; t1.scanChar$1(44);) {
  80568. _this.whitespace$0();
  80569. if (t1.peekChar$0() === 44)
  80570. continue;
  80571. t4 = t1._string_scanner$_position;
  80572. if (t4 === t3.length)
  80573. break;
  80574. lineBreak = t2.getLine$1(t4) != previousLine;
  80575. if (lineBreak)
  80576. previousLine = t2.getLine$1(t1._string_scanner$_position);
  80577. components.push(_this._selector$_complexSelector$1$lineBreak(lineBreak));
  80578. }
  80579. return D.SelectorList$0(components);
  80580. },
  80581. _selector$_complexSelector$1$lineBreak: function(lineBreak) {
  80582. var t1, next, _this = this,
  80583. _s58_ = string$.x22x26__ma,
  80584. components = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2);
  80585. $label0$1:
  80586. for (t1 = _this.scanner; true;) {
  80587. _this.whitespace$0();
  80588. next = t1.peekChar$0();
  80589. switch (next) {
  80590. case 43:
  80591. t1.readChar$0();
  80592. components.push(C.Combinator_uzg0);
  80593. break;
  80594. case 62:
  80595. t1.readChar$0();
  80596. components.push(C.Combinator_sgq0);
  80597. break;
  80598. case 126:
  80599. t1.readChar$0();
  80600. components.push(C.Combinator_CzM0);
  80601. break;
  80602. case 91:
  80603. case 46:
  80604. case 35:
  80605. case 37:
  80606. case 58:
  80607. case 38:
  80608. case 42:
  80609. case 124:
  80610. components.push(_this._selector$_compoundSelector$0());
  80611. if (t1.peekChar$0() === 38)
  80612. t1.error$1(_s58_);
  80613. break;
  80614. default:
  80615. if (next == null || !_this.lookingAtIdentifier$0())
  80616. break $label0$1;
  80617. components.push(_this._selector$_compoundSelector$0());
  80618. if (t1.peekChar$0() === 38)
  80619. t1.error$1(_s58_);
  80620. break;
  80621. }
  80622. }
  80623. if (components.length === 0)
  80624. t1.error$1("expected selector.");
  80625. return S.ComplexSelector$0(components, lineBreak);
  80626. },
  80627. _selector$_complexSelector$0: function() {
  80628. return this._selector$_complexSelector$1$lineBreak(false);
  80629. },
  80630. _selector$_compoundSelector$0: function() {
  80631. var t2,
  80632. components = H.setRuntimeTypeInfo([this._selector$_simpleSelector$0()], type$.JSArray_legacy_SimpleSelector_2),
  80633. t1 = this.scanner;
  80634. while (true) {
  80635. t2 = t1.peekChar$0();
  80636. if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
  80637. break;
  80638. components.push(this._selector$_simpleSelector$1$allowParent(false));
  80639. }
  80640. return X.CompoundSelector$0(components);
  80641. },
  80642. _selector$_simpleSelector$1$allowParent: function(allowParent) {
  80643. var $name, text, t2, suffix, _this = this,
  80644. t1 = _this.scanner,
  80645. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  80646. if (allowParent == null)
  80647. allowParent = _this._selector$_allowParent;
  80648. switch (t1.peekChar$0()) {
  80649. case 91:
  80650. return _this._selector$_attributeSelector$0();
  80651. case 46:
  80652. t1.expectChar$1(46);
  80653. return new X.ClassSelector0(_this.identifier$0());
  80654. case 35:
  80655. t1.expectChar$1(35);
  80656. return new N.IDSelector0(_this.identifier$0());
  80657. case 37:
  80658. t1.expectChar$1(37);
  80659. $name = _this.identifier$0();
  80660. if (!_this._selector$_allowPlaceholder)
  80661. _this.error$2(string$.Placeh, t1.spanFrom$1(start));
  80662. return new N.PlaceholderSelector0($name);
  80663. case 58:
  80664. return _this._selector$_pseudoSelector$0();
  80665. case 38:
  80666. t1.expectChar$1(38);
  80667. if (_this.lookingAtIdentifierBody$0()) {
  80668. text = new P.StringBuffer("");
  80669. _this._parser$_identifierBody$1(text);
  80670. if (text._contents.length === 0)
  80671. t1.error$1("Expected identifier body.");
  80672. t2 = text._contents;
  80673. suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
  80674. } else
  80675. suffix = null;
  80676. if (!allowParent)
  80677. _this.error$2("Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  80678. return new M.ParentSelector0(suffix);
  80679. default:
  80680. return _this._selector$_typeOrUniversalSelector$0();
  80681. }
  80682. },
  80683. _selector$_simpleSelector$0: function() {
  80684. return this._selector$_simpleSelector$1$allowParent(null);
  80685. },
  80686. _selector$_attributeSelector$0: function() {
  80687. var $name, operator, next, value, modifier, _this = this, _null = null,
  80688. t1 = _this.scanner;
  80689. t1.expectChar$1(91);
  80690. _this.whitespace$0();
  80691. $name = _this._selector$_attributeName$0();
  80692. _this.whitespace$0();
  80693. if (t1.scanChar$1(93))
  80694. return new N.AttributeSelector0($name, _null, _null, _null);
  80695. operator = _this._selector$_attributeOperator$0();
  80696. _this.whitespace$0();
  80697. next = t1.peekChar$0();
  80698. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  80699. _this.whitespace$0();
  80700. modifier = T.isAlphabetic1(t1.peekChar$0()) ? H.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  80701. t1.expectChar$1(93);
  80702. return new N.AttributeSelector0($name, operator, value, modifier);
  80703. },
  80704. _selector$_attributeName$0: function() {
  80705. var nameOrNamespace, _this = this,
  80706. t1 = _this.scanner;
  80707. if (t1.scanChar$1(42)) {
  80708. t1.expectChar$1(124);
  80709. return new D.QualifiedName0(_this.identifier$0(), "*");
  80710. }
  80711. nameOrNamespace = _this.identifier$0();
  80712. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  80713. return new D.QualifiedName0(nameOrNamespace, null);
  80714. t1.readChar$0();
  80715. return new D.QualifiedName0(_this.identifier$0(), nameOrNamespace);
  80716. },
  80717. _selector$_attributeOperator$0: function() {
  80718. var t1 = this.scanner,
  80719. t2 = t1._string_scanner$_position;
  80720. switch (t1.readChar$0()) {
  80721. case 61:
  80722. return C.AttributeOperator_sEs0;
  80723. case 126:
  80724. t1.expectChar$1(61);
  80725. return C.AttributeOperator_fz10;
  80726. case 124:
  80727. t1.expectChar$1(61);
  80728. return C.AttributeOperator_AuK0;
  80729. case 94:
  80730. t1.expectChar$1(61);
  80731. return C.AttributeOperator_4L50;
  80732. case 36:
  80733. t1.expectChar$1(61);
  80734. return C.AttributeOperator_mOX0;
  80735. case 42:
  80736. t1.expectChar$1(61);
  80737. return C.AttributeOperator_gqZ0;
  80738. default:
  80739. t1.error$2$position('Expected "]".', t2);
  80740. }
  80741. },
  80742. _selector$_pseudoSelector$0: function() {
  80743. var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
  80744. t1 = _this.scanner;
  80745. t1.expectChar$1(58);
  80746. element = t1.scanChar$1(58);
  80747. $name = _this.identifier$0();
  80748. if (!t1.scanChar$1(40))
  80749. return D.PseudoSelector$0($name, _null, element, _null);
  80750. _this.whitespace$0();
  80751. unvendored = B.unvendor0($name);
  80752. if (element)
  80753. if ($._selectorPseudoElements0.contains$1(0, unvendored)) {
  80754. selector = _this._selector$_selectorList$0();
  80755. argument = _null;
  80756. } else {
  80757. argument = _this.declarationValue$1$allowEmpty(true);
  80758. selector = _null;
  80759. }
  80760. else if ($._selectorPseudoClasses0.contains$1(0, unvendored)) {
  80761. selector = _this._selector$_selectorList$0();
  80762. argument = _null;
  80763. } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  80764. argument = _this._selector$_aNPlusB$0();
  80765. _this.whitespace$0();
  80766. t2 = t1.peekChar$1(-1);
  80767. if ((t2 === 32 || t2 === 9 || T.isNewline0(t2)) && t1.peekChar$0() !== 41) {
  80768. _this.expectIdentifier$1("of");
  80769. argument += " of";
  80770. _this.whitespace$0();
  80771. selector = _this._selector$_selectorList$0();
  80772. } else
  80773. selector = _null;
  80774. } else {
  80775. argument = C.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  80776. selector = _null;
  80777. }
  80778. t1.expectChar$1(41);
  80779. return D.PseudoSelector$0($name, argument, element, selector);
  80780. },
  80781. _selector$_aNPlusB$0: function() {
  80782. var t2, first, t3, next, last, _this = this,
  80783. t1 = _this.scanner;
  80784. switch (t1.peekChar$0()) {
  80785. case 101:
  80786. case 69:
  80787. _this.expectIdentifier$1("even");
  80788. return "even";
  80789. case 111:
  80790. case 79:
  80791. _this.expectIdentifier$1("odd");
  80792. return "odd";
  80793. case 43:
  80794. case 45:
  80795. t2 = H.Primitives_stringFromCharCode(t1.readChar$0());
  80796. break;
  80797. default:
  80798. t2 = "";
  80799. }
  80800. first = t1.peekChar$0();
  80801. if (first != null && T.isDigit0(first)) {
  80802. while (true) {
  80803. t3 = t1.peekChar$0();
  80804. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  80805. break;
  80806. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  80807. }
  80808. _this.whitespace$0();
  80809. if (!_this.scanIdentChar$1(110))
  80810. return t2.charCodeAt(0) == 0 ? t2 : t2;
  80811. } else
  80812. _this.expectIdentChar$1(110);
  80813. t2 += H.Primitives_stringFromCharCode(110);
  80814. _this.whitespace$0();
  80815. next = t1.peekChar$0();
  80816. if (next !== 43 && next !== 45)
  80817. return t2.charCodeAt(0) == 0 ? t2 : t2;
  80818. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  80819. _this.whitespace$0();
  80820. last = t1.peekChar$0();
  80821. if (last == null || !T.isDigit0(last))
  80822. t1.error$1("Expected a number.");
  80823. while (true) {
  80824. t3 = t1.peekChar$0();
  80825. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  80826. break;
  80827. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  80828. }
  80829. return t2.charCodeAt(0) == 0 ? t2 : t2;
  80830. },
  80831. _selector$_typeOrUniversalSelector$0: function() {
  80832. var nameOrNamespace, _this = this,
  80833. t1 = _this.scanner,
  80834. first = t1.peekChar$0();
  80835. if (first === 42) {
  80836. t1.readChar$0();
  80837. if (!t1.scanChar$1(124))
  80838. return new N.UniversalSelector0(null);
  80839. if (t1.scanChar$1(42))
  80840. return new N.UniversalSelector0("*");
  80841. else
  80842. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), "*"));
  80843. } else if (first === 124) {
  80844. t1.readChar$0();
  80845. if (t1.scanChar$1(42))
  80846. return new N.UniversalSelector0("");
  80847. else
  80848. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), ""));
  80849. }
  80850. nameOrNamespace = _this.identifier$0();
  80851. if (!t1.scanChar$1(124))
  80852. return new F.TypeSelector0(new D.QualifiedName0(nameOrNamespace, null));
  80853. else if (t1.scanChar$1(42))
  80854. return new N.UniversalSelector0(nameOrNamespace);
  80855. else
  80856. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), nameOrNamespace));
  80857. }
  80858. };
  80859. T.SelectorParser_parse_closure0.prototype = {
  80860. call$0: function() {
  80861. var t1 = this.$this,
  80862. selector = t1._selector$_selectorList$0();
  80863. t1 = t1.scanner;
  80864. if (t1._string_scanner$_position !== t1.string.length)
  80865. t1.error$1("expected selector.");
  80866. return selector;
  80867. },
  80868. $signature: 32
  80869. };
  80870. T.SelectorParser_parseCompoundSelector_closure0.prototype = {
  80871. call$0: function() {
  80872. var t1 = this.$this,
  80873. compound = t1._selector$_compoundSelector$0();
  80874. t1 = t1.scanner;
  80875. if (t1._string_scanner$_position !== t1.string.length)
  80876. t1.error$1("expected selector.");
  80877. return compound;
  80878. },
  80879. $signature: 150
  80880. };
  80881. N.serialize_closure0.prototype = {
  80882. call$1: function(codeUnit) {
  80883. return codeUnit > 127;
  80884. },
  80885. $signature: 16
  80886. };
  80887. N._SerializeVisitor.prototype = {
  80888. visitCssStylesheet$1: function(node) {
  80889. var t1, t2, t3, t4, t5, previous, i, child, _this = this;
  80890. for (t1 = _this._serialize0$_style !== C.OutputStyle_compressed0, t2 = type$.legacy_CssComment_2, t3 = type$.legacy_CssParentNode_2, t4 = _this._buffer, t5 = _this._lineFeed.text, previous = null, i = 0; i < J.get$length$asx(node.get$children()); ++i) {
  80891. child = J.$index$asx(node.get$children(), i);
  80892. if (_this._serialize0$_isInvisible$1(child))
  80893. continue;
  80894. if (previous != null) {
  80895. if (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous))
  80896. t4.writeCharCode$1(59);
  80897. if (t1)
  80898. t4.write$1(0, t5);
  80899. if (previous.get$isGroupEnd())
  80900. if (t1)
  80901. t4.write$1(0, t5);
  80902. }
  80903. child.accept$1(_this);
  80904. previous = child;
  80905. }
  80906. if (previous != null)
  80907. t1 = (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous)) && t1;
  80908. else
  80909. t1 = false;
  80910. if (t1)
  80911. t4.writeCharCode$1(59);
  80912. },
  80913. visitCssComment$1: function(node) {
  80914. this._buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssComment_closure0(this, node));
  80915. },
  80916. visitCssAtRule$1: function(node) {
  80917. var t1, _this = this;
  80918. _this._serialize0$_writeIndentation$0();
  80919. t1 = _this._buffer;
  80920. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssAtRule_closure0(_this, node));
  80921. if (!node.isChildless) {
  80922. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80923. t1.writeCharCode$1(32);
  80924. _this._serialize0$_visitChildren$1(node.children);
  80925. }
  80926. },
  80927. visitCssMediaRule$1: function(node) {
  80928. var t1, _this = this;
  80929. _this._serialize0$_writeIndentation$0();
  80930. t1 = _this._buffer;
  80931. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssMediaRule_closure0(_this, node));
  80932. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80933. t1.writeCharCode$1(32);
  80934. _this._serialize0$_visitChildren$1(node.children);
  80935. },
  80936. visitCssImport$1: function(node) {
  80937. this._serialize0$_writeIndentation$0();
  80938. this._buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssImport_closure0(this, node));
  80939. },
  80940. _serialize0$_writeImportUrl$1: function(url) {
  80941. var urlContents, maybeQuote, _this = this;
  80942. if (_this._serialize0$_style !== C.OutputStyle_compressed0 || J._codeUnitAt$1$s(url, 0) !== 117) {
  80943. _this._buffer.write$1(0, url);
  80944. return;
  80945. }
  80946. urlContents = J.substring$2$s(url, 4, url.length - 1);
  80947. maybeQuote = C.JSString_methods._codeUnitAt$1(urlContents, 0);
  80948. if (maybeQuote === 39 || maybeQuote === 34)
  80949. _this._buffer.write$1(0, urlContents);
  80950. else
  80951. _this._serialize0$_visitQuotedString$1(urlContents);
  80952. },
  80953. visitCssKeyframeBlock$1: function(node) {
  80954. var t1, _this = this;
  80955. _this._serialize0$_writeIndentation$0();
  80956. t1 = _this._buffer;
  80957. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssKeyframeBlock_closure0(_this, node));
  80958. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80959. t1.writeCharCode$1(32);
  80960. _this._serialize0$_visitChildren$1(node.children);
  80961. },
  80962. _serialize0$_visitMediaQuery$1: function(query) {
  80963. var t2, t3, _this = this,
  80964. t1 = query.modifier;
  80965. if (t1 != null) {
  80966. t2 = _this._buffer;
  80967. t2.write$1(0, t1);
  80968. t2.writeCharCode$1(32);
  80969. }
  80970. t1 = query.type;
  80971. if (t1 != null) {
  80972. t2 = _this._buffer;
  80973. t2.write$1(0, t1);
  80974. if (query.features.length !== 0)
  80975. t2.write$1(0, " and ");
  80976. }
  80977. t1 = query.features;
  80978. t2 = _this._serialize0$_style === C.OutputStyle_compressed0 ? "and " : " and ";
  80979. t3 = _this._buffer;
  80980. _this._serialize0$_writeBetween$3(t1, t2, t3.get$write(t3));
  80981. },
  80982. visitCssStyleRule$1: function(node) {
  80983. var t1, _this = this;
  80984. _this._serialize0$_writeIndentation$0();
  80985. t1 = _this._buffer;
  80986. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssStyleRule_closure0(_this, node));
  80987. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80988. t1.writeCharCode$1(32);
  80989. _this._serialize0$_visitChildren$1(node.children);
  80990. },
  80991. visitCssSupportsRule$1: function(node) {
  80992. var t1, _this = this;
  80993. _this._serialize0$_writeIndentation$0();
  80994. t1 = _this._buffer;
  80995. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssSupportsRule_closure0(_this, node));
  80996. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  80997. t1.writeCharCode$1(32);
  80998. _this._serialize0$_visitChildren$1(node.children);
  80999. },
  81000. visitCssDeclaration$1: function(node) {
  81001. var error, error0, t1, exception, _this = this;
  81002. _this._serialize0$_writeIndentation$0();
  81003. _this._serialize0$_write$1(node.name);
  81004. t1 = _this._buffer;
  81005. t1.writeCharCode$1(58);
  81006. if (_this._serialize0$_isParsedCustomProperty$1(node))
  81007. t1.forSpan$2(node.value.span, new N._SerializeVisitor_visitCssDeclaration_closure1(_this, node));
  81008. else {
  81009. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  81010. t1.writeCharCode$1(32);
  81011. try {
  81012. t1.forSpan$2(node.valueSpanForMap, new N._SerializeVisitor_visitCssDeclaration_closure2(_this, node));
  81013. } catch (exception) {
  81014. t1 = H.unwrapException(exception);
  81015. if (t1 instanceof E.MultiSpanSassScriptException0) {
  81016. error = t1;
  81017. throw H.wrapException(E.MultiSpanSassException$0(error.message, node.value.span, error.primaryLabel, error.secondarySpans));
  81018. } else if (t1 instanceof E.SassScriptException0) {
  81019. error0 = t1;
  81020. throw H.wrapException(E.SassException$0(error0.message, node.value.span));
  81021. } else
  81022. throw exception;
  81023. }
  81024. }
  81025. },
  81026. _serialize0$_isParsedCustomProperty$1: function(node) {
  81027. var value,
  81028. t1 = node.name;
  81029. if (!J.startsWith$1$s(t1.get$value(t1), "--"))
  81030. return false;
  81031. value = node.value.value;
  81032. return value instanceof D.SassString0 && !value.hasQuotes;
  81033. },
  81034. _serialize0$_writeFoldedValue$1: function(node) {
  81035. var t1, t2, next, t3,
  81036. scanner = X.StringScanner$(type$.legacy_SassString_2._as(node.value.value).text, null, null);
  81037. for (t1 = scanner.string.length, t2 = this._buffer; scanner._string_scanner$_position !== t1;) {
  81038. next = scanner.readChar$0();
  81039. if (next !== 10) {
  81040. t2.writeCharCode$1(next);
  81041. continue;
  81042. }
  81043. t2.writeCharCode$1(32);
  81044. while (true) {
  81045. t3 = scanner.peekChar$0();
  81046. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  81047. break;
  81048. scanner.readChar$0();
  81049. }
  81050. }
  81051. },
  81052. _serialize0$_writeReindentedValue$1: function(node) {
  81053. var _this = this,
  81054. t1 = node.value,
  81055. value = type$.legacy_SassString_2._as(t1.value).text,
  81056. minimumIndentation = _this._serialize0$_minimumIndentation$1(value);
  81057. if (minimumIndentation == null) {
  81058. _this._buffer.write$1(0, value);
  81059. return;
  81060. } else if (minimumIndentation === -1) {
  81061. t1 = _this._buffer;
  81062. t1.write$1(0, B.trimAsciiRight0(value, true));
  81063. t1.writeCharCode$1(32);
  81064. return;
  81065. }
  81066. if (t1.span != null) {
  81067. t1 = node.name.get$span();
  81068. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  81069. minimumIndentation = Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset));
  81070. }
  81071. _this._serialize0$_writeWithIndent$2(value, minimumIndentation);
  81072. },
  81073. _serialize0$_minimumIndentation$1: function(text) {
  81074. var character, t2, min, next, min0,
  81075. scanner = new Z.LineScanner(null, text),
  81076. t1 = text.length;
  81077. while (true) {
  81078. if (scanner._string_scanner$_position !== t1) {
  81079. character = scanner.super$StringScanner$readChar();
  81080. scanner._adjustLineAndColumn$1(character);
  81081. t2 = character !== 10;
  81082. } else
  81083. t2 = false;
  81084. if (!t2)
  81085. break;
  81086. }
  81087. if (scanner._string_scanner$_position === t1)
  81088. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  81089. for (min = null; scanner._string_scanner$_position !== t1;) {
  81090. for (; scanner._string_scanner$_position !== t1;) {
  81091. next = scanner.peekChar$0();
  81092. if (next !== 32 && next !== 9)
  81093. break;
  81094. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  81095. }
  81096. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  81097. continue;
  81098. min0 = scanner._line_scanner$_column;
  81099. min = min == null ? min0 : Math.min(min, min0);
  81100. while (true) {
  81101. if (scanner._string_scanner$_position !== t1) {
  81102. character = scanner.super$StringScanner$readChar();
  81103. scanner._adjustLineAndColumn$1(character);
  81104. t2 = character !== 10;
  81105. } else
  81106. t2 = false;
  81107. if (!t2)
  81108. break;
  81109. }
  81110. }
  81111. return min == null ? -1 : min;
  81112. },
  81113. _serialize0$_writeWithIndent$2: function(text, minimumIndentation) {
  81114. var t1, t2, character, t3, lineStart, newlines, end,
  81115. scanner = new Z.LineScanner(null, text);
  81116. for (t1 = text.length, t2 = this._buffer; scanner._string_scanner$_position !== t1;) {
  81117. character = scanner.super$StringScanner$readChar();
  81118. scanner._adjustLineAndColumn$1(character);
  81119. if (character === 10)
  81120. break;
  81121. t2.writeCharCode$1(character);
  81122. }
  81123. for (t3 = J.getInterceptor$s(text); true;) {
  81124. lineStart = scanner._string_scanner$_position;
  81125. for (newlines = 1; true;) {
  81126. if (scanner._string_scanner$_position === t1) {
  81127. t2.writeCharCode$1(32);
  81128. return;
  81129. }
  81130. character = scanner.super$StringScanner$readChar();
  81131. scanner._adjustLineAndColumn$1(character);
  81132. if (character === 32 || character === 9)
  81133. continue;
  81134. if (character !== 10)
  81135. break;
  81136. lineStart = scanner._string_scanner$_position;
  81137. ++newlines;
  81138. }
  81139. this._serialize0$_writeTimes$2(10, newlines);
  81140. this._serialize0$_writeIndentation$0();
  81141. end = scanner._string_scanner$_position;
  81142. t2.write$1(0, t3.substring$2(text, lineStart + minimumIndentation, end));
  81143. for (; true;) {
  81144. if (scanner._string_scanner$_position === t1)
  81145. return;
  81146. character = scanner.super$StringScanner$readChar();
  81147. scanner._adjustLineAndColumn$1(character);
  81148. if (character === 10)
  81149. break;
  81150. t2.writeCharCode$1(character);
  81151. }
  81152. }
  81153. },
  81154. visitColor$1: function(value) {
  81155. var $name, hexLength, t2, t3, _this = this,
  81156. t1 = _this._serialize0$_style === C.OutputStyle_compressed0;
  81157. if (t1 && Math.abs(value.alpha - 1) < $.$get$epsilon0()) {
  81158. $name = $.$get$namesByColor0().$index(0, value);
  81159. hexLength = _this._serialize0$_canUseShortHex$1(value) ? 4 : 7;
  81160. if ($name != null && $name.length <= hexLength)
  81161. _this._buffer.write$1(0, $name);
  81162. else {
  81163. t1 = _this._buffer;
  81164. if (_this._serialize0$_canUseShortHex$1(value)) {
  81165. t1.writeCharCode$1(35);
  81166. t1.writeCharCode$1(T.hexCharFor0(value.get$red() & 15));
  81167. t1.writeCharCode$1(T.hexCharFor0(value.get$green() & 15));
  81168. t1.writeCharCode$1(T.hexCharFor0(value.get$blue() & 15));
  81169. } else {
  81170. t1.writeCharCode$1(35);
  81171. _this._serialize0$_writeHexComponent$1(value.get$red());
  81172. _this._serialize0$_writeHexComponent$1(value.get$green());
  81173. _this._serialize0$_writeHexComponent$1(value.get$blue());
  81174. }
  81175. }
  81176. return;
  81177. }
  81178. if (value.get$original() != null)
  81179. _this._buffer.write$1(0, value.get$original());
  81180. else {
  81181. t2 = $.$get$namesByColor0();
  81182. if (t2.containsKey$1(value) && !(Math.abs(value.alpha - 0) < $.$get$epsilon0()))
  81183. _this._buffer.write$1(0, t2.$index(0, value));
  81184. else {
  81185. t2 = value.alpha;
  81186. t3 = _this._buffer;
  81187. if (Math.abs(t2 - 1) < $.$get$epsilon0()) {
  81188. t3.writeCharCode$1(35);
  81189. _this._serialize0$_writeHexComponent$1(value.get$red());
  81190. _this._serialize0$_writeHexComponent$1(value.get$green());
  81191. _this._serialize0$_writeHexComponent$1(value.get$blue());
  81192. } else {
  81193. t3.write$1(0, "rgba(" + H.S(value.get$red()));
  81194. t3.write$1(0, t1 ? "," : ", ");
  81195. t3.write$1(0, value.get$green());
  81196. t3.write$1(0, t1 ? "," : ", ");
  81197. t3.write$1(0, value.get$blue());
  81198. t3.write$1(0, t1 ? "," : ", ");
  81199. _this._serialize0$_writeNumber$1(t2);
  81200. t3.writeCharCode$1(41);
  81201. }
  81202. }
  81203. }
  81204. },
  81205. _serialize0$_canUseShortHex$1: function(color) {
  81206. var t1 = color.get$red();
  81207. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  81208. t1 = color.get$green();
  81209. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  81210. t1 = color.get$blue();
  81211. t1 = (t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4);
  81212. } else
  81213. t1 = false;
  81214. } else
  81215. t1 = false;
  81216. return t1;
  81217. },
  81218. _serialize0$_writeHexComponent$1: function(color) {
  81219. var t1 = this._buffer;
  81220. t1.writeCharCode$1(T.hexCharFor0(C.JSInt_methods._shrOtherPositive$1(color, 4)));
  81221. t1.writeCharCode$1(T.hexCharFor0(color & 15));
  81222. },
  81223. visitList$1: function(value) {
  81224. var t2, singleton, t3, t4, _this = this,
  81225. t1 = value.hasBrackets;
  81226. if (t1)
  81227. _this._buffer.writeCharCode$1(91);
  81228. else if (value._list1$_contents.length === 0) {
  81229. if (!_this._inspect)
  81230. throw H.wrapException(E.SassScriptException$0("() isn't a valid CSS value."));
  81231. _this._buffer.write$1(0, "()");
  81232. return;
  81233. }
  81234. t2 = _this._inspect;
  81235. singleton = t2 && value._list1$_contents.length === 1 && value.separator === C.ListSeparator_comma0;
  81236. if (singleton && !t1)
  81237. _this._buffer.writeCharCode$1(40);
  81238. t3 = value._list1$_contents;
  81239. t3 = t2 ? t3 : new H.WhereIterable(t3, new N._SerializeVisitor_visitList_closure2(), H._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  81240. if (value.separator === C.ListSeparator_space0)
  81241. t4 = " ";
  81242. else
  81243. t4 = _this._serialize0$_style === C.OutputStyle_compressed0 ? "," : ", ";
  81244. _this._serialize0$_writeBetween$3(t3, t4, t2 ? new N._SerializeVisitor_visitList_closure3(_this, value) : new N._SerializeVisitor_visitList_closure4(_this));
  81245. if (singleton) {
  81246. t2 = _this._buffer;
  81247. t2.writeCharCode$1(44);
  81248. if (!t1)
  81249. t2.writeCharCode$1(41);
  81250. }
  81251. if (t1)
  81252. _this._buffer.writeCharCode$1(93);
  81253. },
  81254. _serialize0$_elementNeedsParens$2: function(separator, value) {
  81255. var t1;
  81256. if (value instanceof D.SassList0) {
  81257. if (value._list1$_contents.length < 2)
  81258. return false;
  81259. if (value.hasBrackets)
  81260. return false;
  81261. t1 = value.separator;
  81262. return separator === C.ListSeparator_comma0 ? t1 === C.ListSeparator_comma0 : t1 !== C.ListSeparator_undecided0;
  81263. }
  81264. return false;
  81265. },
  81266. visitMap$1: function(map) {
  81267. var t1, _this = this;
  81268. if (!_this._inspect)
  81269. throw H.wrapException(E.SassScriptException$0(map.toString$0(0) + " isn't a valid CSS value."));
  81270. t1 = _this._buffer;
  81271. t1.writeCharCode$1(40);
  81272. _this._serialize0$_writeBetween$3(map.contents.get$keys(), ", ", new N._SerializeVisitor_visitMap_closure0(_this, map));
  81273. t1.writeCharCode$1(41);
  81274. },
  81275. _serialize0$_writeMapElement$1: function(value) {
  81276. var needsParens = value instanceof D.SassList0 && value.separator === C.ListSeparator_comma0 && !value.hasBrackets;
  81277. if (needsParens)
  81278. this._buffer.writeCharCode$1(40);
  81279. value.accept$1(this);
  81280. if (needsParens)
  81281. this._buffer.writeCharCode$1(41);
  81282. },
  81283. visitNumber$1: function(value) {
  81284. var t2, _this = this,
  81285. t1 = value.asSlash;
  81286. if (t1 != null) {
  81287. _this.visitNumber$1(t1.item1);
  81288. _this._buffer.writeCharCode$1(47);
  81289. _this.visitNumber$1(t1.item2);
  81290. return;
  81291. }
  81292. _this._serialize0$_writeNumber$1(value.value);
  81293. if (!_this._inspect) {
  81294. t1 = value.numeratorUnits;
  81295. t2 = t1.length;
  81296. if (t2 > 1 || value.denominatorUnits.length !== 0)
  81297. throw H.wrapException(E.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value."));
  81298. if (t2 !== 0)
  81299. _this._buffer.write$1(0, C.JSArray_methods.get$first(t1));
  81300. } else
  81301. _this._buffer.write$1(0, value.get$unitString());
  81302. },
  81303. _serialize0$_writeNumber$1: function(number) {
  81304. var t1, text, text0, _this = this,
  81305. integer = T.fuzzyIsInt0(number) ? J.round$0$n(number) : null;
  81306. if (integer != null) {
  81307. t1 = integer >= 1e21 ? _this._serialize0$_removeExponent$1(C.JSInt_methods.toString$0(integer)) : C.JSInt_methods.toString$0(integer);
  81308. _this._buffer.write$1(0, t1);
  81309. return;
  81310. }
  81311. text = number >= 1e21 ? _this._serialize0$_removeExponent$1(C.JSNumber_methods.toString$0(number)) : C.JSNumber_methods.toString$0(number);
  81312. text0 = _this._serialize0$_style === C.OutputStyle_compressed0 && C.JSString_methods._codeUnitAt$1(text, 0) === 48 ? C.JSString_methods.substring$1(text, 1) : text;
  81313. if (text.length < 12) {
  81314. _this._buffer.write$1(0, text0);
  81315. return;
  81316. }
  81317. _this._serialize0$_writeDecimal$1(text0);
  81318. },
  81319. _serialize0$_removeExponent$1: function(text) {
  81320. var buffer, exponent, t2, additionalZeroes, negative,
  81321. t1 = text.length,
  81322. i = 0;
  81323. while (true) {
  81324. if (!(i < t1)) {
  81325. buffer = null;
  81326. exponent = null;
  81327. break;
  81328. }
  81329. c$0: {
  81330. if (C.JSString_methods._codeUnitAt$1(text, i) !== 101)
  81331. break c$0;
  81332. buffer = new P.StringBuffer("");
  81333. t2 = H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(text, 0));
  81334. buffer._contents = t2;
  81335. if (i > 2)
  81336. buffer._contents = t2 + C.JSString_methods.substring$2(text, 2, i);
  81337. exponent = P.int_parse(C.JSString_methods.substring$2(text, i + 1, t1), null);
  81338. break;
  81339. }
  81340. ++i;
  81341. }
  81342. if (buffer == null)
  81343. return text;
  81344. if (exponent > 0) {
  81345. t1 = buffer._contents;
  81346. additionalZeroes = exponent - (t1.length - 1);
  81347. for (i = 0; i < additionalZeroes; ++i)
  81348. t1 = buffer._contents += H.Primitives_stringFromCharCode(48);
  81349. return t1.charCodeAt(0) == 0 ? t1 : t1;
  81350. } else {
  81351. negative = C.JSString_methods._codeUnitAt$1(text, 0) === 45;
  81352. t1 = (negative ? H.Primitives_stringFromCharCode(45) : "") + "0.";
  81353. for (i = -1; i > exponent; --i)
  81354. t1 += H.Primitives_stringFromCharCode(48);
  81355. if (negative) {
  81356. t2 = buffer._contents;
  81357. t2 = C.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  81358. } else
  81359. t2 = buffer;
  81360. t2 = t1 + H.S(t2);
  81361. return t2.charCodeAt(0) == 0 ? t2 : t2;
  81362. }
  81363. },
  81364. _serialize0$_writeDecimal$1: function(text) {
  81365. var t1, t2, textIndex, codeUnit, digits, t3, digitsIndex, digitsIndex0, textIndex0, newDigit, i;
  81366. for (t1 = text.length, t2 = this._buffer, textIndex = 0; textIndex < t1; ++textIndex) {
  81367. codeUnit = C.JSString_methods._codeUnitAt$1(text, textIndex);
  81368. if (codeUnit === 46) {
  81369. if (textIndex === t1 - 2 && C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 48)
  81370. return;
  81371. t2.writeCharCode$1(codeUnit);
  81372. ++textIndex;
  81373. break;
  81374. }
  81375. t2.writeCharCode$1(codeUnit);
  81376. }
  81377. if (textIndex === t1)
  81378. return;
  81379. digits = new Uint8Array(10);
  81380. t3 = digits.length;
  81381. digitsIndex = 0;
  81382. while (true) {
  81383. if (!(textIndex < t1 && digitsIndex < t3))
  81384. break;
  81385. digitsIndex0 = digitsIndex + 1;
  81386. textIndex0 = textIndex + 1;
  81387. digits[digitsIndex] = C.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
  81388. digitsIndex = digitsIndex0;
  81389. textIndex = textIndex0;
  81390. }
  81391. if (textIndex !== t1 && C.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
  81392. for (; digitsIndex >= 0; digitsIndex = digitsIndex0) {
  81393. digitsIndex0 = digitsIndex - 1;
  81394. newDigit = digits[digitsIndex0] + 1;
  81395. digits[digitsIndex0] = newDigit;
  81396. if (newDigit !== 10)
  81397. break;
  81398. }
  81399. while (true) {
  81400. if (!(digitsIndex > 0 && digits[digitsIndex - 1] === 0))
  81401. break;
  81402. --digitsIndex;
  81403. }
  81404. for (i = 0; i < digitsIndex; ++i)
  81405. t2.writeCharCode$1(48 + digits[i]);
  81406. },
  81407. _serialize0$_visitQuotedString$2$forceDoubleQuote: function(string, forceDoubleQuote) {
  81408. var t1, includesSingleQuote, includesDoubleQuote, i, char, t2, next, quote, _this = this,
  81409. buffer = forceDoubleQuote ? _this._buffer : new P.StringBuffer("");
  81410. if (forceDoubleQuote)
  81411. buffer.writeCharCode$1(34);
  81412. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  81413. char = C.JSString_methods._codeUnitAt$1(string, i);
  81414. switch (char) {
  81415. case 39:
  81416. if (forceDoubleQuote)
  81417. buffer.writeCharCode$1(39);
  81418. else {
  81419. if (includesDoubleQuote) {
  81420. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  81421. return;
  81422. } else
  81423. buffer.writeCharCode$1(39);
  81424. includesSingleQuote = true;
  81425. }
  81426. break;
  81427. case 34:
  81428. if (forceDoubleQuote) {
  81429. buffer.writeCharCode$1(92);
  81430. buffer.writeCharCode$1(34);
  81431. } else {
  81432. if (includesSingleQuote) {
  81433. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  81434. return;
  81435. } else
  81436. buffer.writeCharCode$1(34);
  81437. includesDoubleQuote = true;
  81438. }
  81439. break;
  81440. case 0:
  81441. case 1:
  81442. case 2:
  81443. case 3:
  81444. case 4:
  81445. case 5:
  81446. case 6:
  81447. case 7:
  81448. case 8:
  81449. case 10:
  81450. case 11:
  81451. case 12:
  81452. case 13:
  81453. case 14:
  81454. case 15:
  81455. case 16:
  81456. case 17:
  81457. case 18:
  81458. case 19:
  81459. case 20:
  81460. case 21:
  81461. case 22:
  81462. case 23:
  81463. case 24:
  81464. case 25:
  81465. case 26:
  81466. case 27:
  81467. case 28:
  81468. case 29:
  81469. case 30:
  81470. case 31:
  81471. buffer.writeCharCode$1(92);
  81472. if (char > 15) {
  81473. t2 = char >>> 4;
  81474. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  81475. }
  81476. t2 = char & 15;
  81477. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  81478. t2 = i + 1;
  81479. if (t1 === t2)
  81480. break;
  81481. next = C.JSString_methods._codeUnitAt$1(string, t2);
  81482. if (T.isHex0(next) || next === 32 || next === 9)
  81483. buffer.writeCharCode$1(32);
  81484. break;
  81485. case 92:
  81486. buffer.writeCharCode$1(92);
  81487. buffer.writeCharCode$1(92);
  81488. break;
  81489. default:
  81490. buffer.writeCharCode$1(char);
  81491. break;
  81492. }
  81493. }
  81494. if (forceDoubleQuote)
  81495. buffer.writeCharCode$1(34);
  81496. else {
  81497. quote = includesDoubleQuote ? 39 : 34;
  81498. t1 = _this._buffer;
  81499. t1.writeCharCode$1(quote);
  81500. t1.write$1(0, buffer);
  81501. t1.writeCharCode$1(quote);
  81502. }
  81503. },
  81504. _serialize0$_visitQuotedString$1: function(string) {
  81505. return this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, false);
  81506. },
  81507. _serialize0$_visitUnquotedString$1: function(string) {
  81508. var t1, t2, afterNewline, i, char;
  81509. for (t1 = string.length, t2 = this._buffer, afterNewline = false, i = 0; i < t1; ++i) {
  81510. char = C.JSString_methods._codeUnitAt$1(string, i);
  81511. switch (char) {
  81512. case 10:
  81513. t2.writeCharCode$1(32);
  81514. afterNewline = true;
  81515. break;
  81516. case 32:
  81517. if (!afterNewline)
  81518. t2.writeCharCode$1(32);
  81519. break;
  81520. default:
  81521. t2.writeCharCode$1(char);
  81522. afterNewline = false;
  81523. break;
  81524. }
  81525. }
  81526. },
  81527. visitComplexSelector$1: function(complex) {
  81528. var t1, t2, t3, t4, lastComponent, _i, component, t5;
  81529. for (t1 = complex.components, t2 = t1.length, t3 = this._buffer, t4 = this._serialize0$_style === C.OutputStyle_compressed0, lastComponent = null, _i = 0; _i < t2; ++_i, lastComponent = component) {
  81530. component = t1[_i];
  81531. if (lastComponent != null)
  81532. if (!(t4 && lastComponent instanceof S.Combinator0))
  81533. t5 = !(t4 && component instanceof S.Combinator0);
  81534. else
  81535. t5 = false;
  81536. else
  81537. t5 = false;
  81538. if (t5)
  81539. t3.write$1(0, " ");
  81540. if (component instanceof X.CompoundSelector0)
  81541. this.visitCompoundSelector$1(component);
  81542. else
  81543. t3.write$1(0, component);
  81544. }
  81545. },
  81546. visitCompoundSelector$1: function(compound) {
  81547. var t2, t3, _i,
  81548. t1 = this._buffer,
  81549. start = t1.get$length(t1);
  81550. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  81551. t2[_i].accept$1(this);
  81552. if (t1.get$length(t1) === start)
  81553. t1.writeCharCode$1(42);
  81554. },
  81555. visitSelectorList$1: function(list) {
  81556. var complexes, t1, t2, t3, t4, first, t5, _this = this;
  81557. if (_this._inspect)
  81558. complexes = list.components;
  81559. else {
  81560. t1 = list.components;
  81561. complexes = new H.WhereIterable(t1, new N._SerializeVisitor_visitSelectorList_closure0(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  81562. }
  81563. for (t1 = J.get$iterator$ax(complexes), t2 = _this._serialize0$_style !== C.OutputStyle_compressed0, t3 = _this._buffer, t4 = _this._lineFeed.text, first = true; t1.moveNext$0();) {
  81564. t5 = t1.get$current(t1);
  81565. if (first)
  81566. first = false;
  81567. else {
  81568. t3.writeCharCode$1(44);
  81569. if (t5.lineBreak) {
  81570. if (t2)
  81571. t3.write$1(0, t4);
  81572. } else if (t2)
  81573. t3.writeCharCode$1(32);
  81574. }
  81575. _this.visitComplexSelector$1(t5);
  81576. }
  81577. },
  81578. visitPseudoSelector$1: function(pseudo) {
  81579. var t4, t5, t6,
  81580. t1 = pseudo.selector,
  81581. t2 = t1 == null,
  81582. t3 = !t2;
  81583. if (t3 && pseudo.name === "not" && t1.get$isInvisible())
  81584. return;
  81585. t4 = this._buffer;
  81586. t4.writeCharCode$1(58);
  81587. if (!pseudo.isSyntacticClass)
  81588. t4.writeCharCode$1(58);
  81589. t4.write$1(0, pseudo.name);
  81590. t5 = pseudo.argument;
  81591. t6 = t5 == null;
  81592. if (t6 && t2)
  81593. return;
  81594. t4.writeCharCode$1(40);
  81595. if (!t6) {
  81596. t4.write$1(0, t5);
  81597. if (t3)
  81598. t4.writeCharCode$1(32);
  81599. }
  81600. if (t3)
  81601. this.visitSelectorList$1(t1);
  81602. t4.writeCharCode$1(41);
  81603. },
  81604. _serialize0$_write$1: function(value) {
  81605. return this._buffer.forSpan$2(value.get$span(), new N._SerializeVisitor__write_closure0(this, value));
  81606. },
  81607. _serialize0$_visitChildren$1: function(children) {
  81608. var _this = this, t1 = {},
  81609. t2 = _this._buffer;
  81610. t2.writeCharCode$1(123);
  81611. if (children.every$1(children, _this.get$_serialize0$_isInvisible())) {
  81612. t2.writeCharCode$1(125);
  81613. return;
  81614. }
  81615. _this._serialize0$_writeLineFeed$0();
  81616. t1.previous = null;
  81617. ++_this._serialize0$_indentation;
  81618. new N._SerializeVisitor__visitChildren_closure0(t1, _this, children).call$0();
  81619. --_this._serialize0$_indentation;
  81620. t1 = t1.previous;
  81621. if ((type$.legacy_CssParentNode_2._is(t1) ? t1.get$isChildless() : !type$.legacy_CssComment_2._is(t1)) && _this._serialize0$_style !== C.OutputStyle_compressed0)
  81622. t2.writeCharCode$1(59);
  81623. _this._serialize0$_writeLineFeed$0();
  81624. _this._serialize0$_writeIndentation$0();
  81625. t2.writeCharCode$1(125);
  81626. },
  81627. _serialize0$_writeLineFeed$0: function() {
  81628. if (this._serialize0$_style !== C.OutputStyle_compressed0)
  81629. this._buffer.write$1(0, this._lineFeed.text);
  81630. },
  81631. _serialize0$_writeIndentation$0: function() {
  81632. var _this = this;
  81633. if (_this._serialize0$_style === C.OutputStyle_compressed0)
  81634. return;
  81635. _this._serialize0$_writeTimes$2(_this._serialize0$_indentCharacter, _this._serialize0$_indentation * _this._serialize0$_indentWidth);
  81636. },
  81637. _serialize0$_writeTimes$2: function(char, times) {
  81638. var t1, i;
  81639. for (t1 = this._buffer, i = 0; i < times; ++i)
  81640. t1.writeCharCode$1(char);
  81641. },
  81642. _serialize0$_writeBetween$1$3: function(iterable, text, callback) {
  81643. var t1, t2, first, value;
  81644. for (t1 = J.get$iterator$ax(iterable), t2 = this._buffer, first = true; t1.moveNext$0();) {
  81645. value = t1.get$current(t1);
  81646. if (first)
  81647. first = false;
  81648. else
  81649. t2.write$1(0, text);
  81650. callback.call$1(value);
  81651. }
  81652. },
  81653. _serialize0$_writeBetween$3: function(iterable, text, callback) {
  81654. return this._serialize0$_writeBetween$1$3(iterable, text, callback, type$.dynamic);
  81655. },
  81656. _serialize0$_isInvisible$1: function(node) {
  81657. if (this._inspect)
  81658. return false;
  81659. if (this._serialize0$_style === C.OutputStyle_compressed0 && type$.legacy_CssComment_2._is(node) && J._codeUnitAt$1$s(node.text, 2) !== 33)
  81660. return true;
  81661. if (type$.legacy_CssParentNode_2._is(node)) {
  81662. if (type$.legacy_CssAtRule_2._is(node))
  81663. return false;
  81664. if (type$.legacy_CssStyleRule_2._is(node) && node.selector.value.get$isInvisible())
  81665. return true;
  81666. return J.every$1$ax(node.get$children(), this.get$_serialize0$_isInvisible());
  81667. } else
  81668. return false;
  81669. }
  81670. };
  81671. N._SerializeVisitor_visitCssComment_closure0.prototype = {
  81672. call$0: function() {
  81673. var t2, t3, minimumIndentation,
  81674. t1 = this.$this;
  81675. if (t1._serialize0$_style === C.OutputStyle_compressed0 && J._codeUnitAt$1$s(this.node.text, 2) !== 33)
  81676. return;
  81677. t2 = this.node;
  81678. t3 = t2.text;
  81679. minimumIndentation = t1._serialize0$_minimumIndentation$1(t3);
  81680. if (minimumIndentation == null) {
  81681. t1._serialize0$_writeIndentation$0();
  81682. t1._buffer.write$1(0, t3);
  81683. return;
  81684. }
  81685. t2 = t2.span;
  81686. if (t2 != null) {
  81687. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  81688. minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
  81689. }
  81690. t1._serialize0$_writeIndentation$0();
  81691. t1._serialize0$_writeWithIndent$2(t3, minimumIndentation);
  81692. },
  81693. $signature: 0
  81694. };
  81695. N._SerializeVisitor_visitCssAtRule_closure0.prototype = {
  81696. call$0: function() {
  81697. var t3,
  81698. t1 = this.$this,
  81699. t2 = t1._buffer;
  81700. t2.writeCharCode$1(64);
  81701. t3 = this.node;
  81702. t1._serialize0$_write$1(t3.name);
  81703. t3 = t3.value;
  81704. if (t3 != null) {
  81705. t2.writeCharCode$1(32);
  81706. t1._serialize0$_write$1(t3);
  81707. }
  81708. },
  81709. $signature: 0
  81710. };
  81711. N._SerializeVisitor_visitCssMediaRule_closure0.prototype = {
  81712. call$0: function() {
  81713. var t3, t4,
  81714. t1 = this.$this,
  81715. t2 = t1._buffer;
  81716. t2.write$1(0, "@media");
  81717. t3 = t1._serialize0$_style === C.OutputStyle_compressed0;
  81718. if (t3) {
  81719. t4 = C.JSArray_methods.get$first(this.node.queries);
  81720. t4 = !(t4.modifier == null && t4.type == null);
  81721. } else
  81722. t4 = true;
  81723. if (t4)
  81724. t2.writeCharCode$1(32);
  81725. t2 = t3 ? "," : ", ";
  81726. t1._serialize0$_writeBetween$3(this.node.queries, t2, t1.get$_serialize0$_visitMediaQuery());
  81727. },
  81728. $signature: 0
  81729. };
  81730. N._SerializeVisitor_visitCssImport_closure0.prototype = {
  81731. call$0: function() {
  81732. var t3, t4, t5, t6,
  81733. t1 = this.$this,
  81734. t2 = t1._buffer;
  81735. t2.write$1(0, "@import");
  81736. t3 = t1._serialize0$_style === C.OutputStyle_compressed0;
  81737. t4 = !t3;
  81738. if (t4)
  81739. t2.writeCharCode$1(32);
  81740. t5 = this.node;
  81741. t2.forSpan$2(t5.url.get$span(), new N._SerializeVisitor_visitCssImport__closure0(t1, t5));
  81742. t6 = t5.supports;
  81743. if (t6 != null) {
  81744. if (t4)
  81745. t2.writeCharCode$1(32);
  81746. t1._serialize0$_write$1(t6);
  81747. }
  81748. t5 = t5.media;
  81749. if (t5 != null) {
  81750. if (t4)
  81751. t2.writeCharCode$1(32);
  81752. t2 = t3 ? "," : ", ";
  81753. t1._serialize0$_writeBetween$3(t5, t2, t1.get$_serialize0$_visitMediaQuery());
  81754. }
  81755. },
  81756. $signature: 0
  81757. };
  81758. N._SerializeVisitor_visitCssImport__closure0.prototype = {
  81759. call$0: function() {
  81760. var t1 = this.node.url;
  81761. return this.$this._serialize0$_writeImportUrl$1(t1.get$value(t1));
  81762. },
  81763. $signature: 1
  81764. };
  81765. N._SerializeVisitor_visitCssKeyframeBlock_closure0.prototype = {
  81766. call$0: function() {
  81767. var t1 = this.$this,
  81768. t2 = t1._serialize0$_style === C.OutputStyle_compressed0 ? "," : ", ",
  81769. t3 = t1._buffer;
  81770. return t1._serialize0$_writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  81771. },
  81772. $signature: 1
  81773. };
  81774. N._SerializeVisitor_visitCssStyleRule_closure0.prototype = {
  81775. call$0: function() {
  81776. var t1 = this.node.selector.value;
  81777. t1.toString;
  81778. return this.$this.visitSelectorList$1(t1);
  81779. },
  81780. $signature: 1
  81781. };
  81782. N._SerializeVisitor_visitCssSupportsRule_closure0.prototype = {
  81783. call$0: function() {
  81784. var t1 = this.$this,
  81785. t2 = t1._buffer;
  81786. t2.write$1(0, "@supports");
  81787. if (!(t1._serialize0$_style === C.OutputStyle_compressed0 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  81788. t2.writeCharCode$1(32);
  81789. t1._serialize0$_write$1(this.node.condition);
  81790. },
  81791. $signature: 0
  81792. };
  81793. N._SerializeVisitor_visitCssDeclaration_closure1.prototype = {
  81794. call$0: function() {
  81795. var t1 = this.$this,
  81796. t2 = this.node;
  81797. if (t1._serialize0$_style === C.OutputStyle_compressed0)
  81798. t1._serialize0$_writeFoldedValue$1(t2);
  81799. else
  81800. t1._serialize0$_writeReindentedValue$1(t2);
  81801. },
  81802. $signature: 0
  81803. };
  81804. N._SerializeVisitor_visitCssDeclaration_closure2.prototype = {
  81805. call$0: function() {
  81806. return this.node.value.value.accept$1(this.$this);
  81807. },
  81808. $signature: 1
  81809. };
  81810. N._SerializeVisitor_visitList_closure2.prototype = {
  81811. call$1: function(element) {
  81812. return !element.get$isBlank();
  81813. }
  81814. };
  81815. N._SerializeVisitor_visitList_closure3.prototype = {
  81816. call$1: function(element) {
  81817. var t1 = this.$this,
  81818. needsParens = t1._serialize0$_elementNeedsParens$2(this.value.separator, element);
  81819. if (needsParens)
  81820. t1._buffer.writeCharCode$1(40);
  81821. element.accept$1(t1);
  81822. if (needsParens)
  81823. t1._buffer.writeCharCode$1(41);
  81824. }
  81825. };
  81826. N._SerializeVisitor_visitList_closure4.prototype = {
  81827. call$1: function(element) {
  81828. element.accept$1(this.$this);
  81829. }
  81830. };
  81831. N._SerializeVisitor_visitMap_closure0.prototype = {
  81832. call$1: function(key) {
  81833. var t1 = this.$this;
  81834. t1._serialize0$_writeMapElement$1(key);
  81835. t1._buffer.write$1(0, ": ");
  81836. t1._serialize0$_writeMapElement$1(this.map.contents.$index(0, key));
  81837. }
  81838. };
  81839. N._SerializeVisitor_visitSelectorList_closure0.prototype = {
  81840. call$1: function(complex) {
  81841. return !complex.get$isInvisible();
  81842. }
  81843. };
  81844. N._SerializeVisitor__write_closure0.prototype = {
  81845. call$0: function() {
  81846. var t1 = this.value;
  81847. return this.$this._buffer.write$1(0, t1.get$value(t1));
  81848. },
  81849. $signature: 1
  81850. };
  81851. N._SerializeVisitor__visitChildren_closure0.prototype = {
  81852. call$0: function() {
  81853. var t1, t2, t3, t4, t5, t6, t7, t8, i, child, t9;
  81854. for (t1 = this.children._collection$_source, t2 = J.getInterceptor$asx(t1), t3 = this._box_0, t4 = this.$this, t5 = type$.legacy_CssComment_2, t6 = type$.legacy_CssParentNode_2, t7 = t4._buffer, t8 = t4._lineFeed.text, i = 0; i < t2.get$length(t1); ++i) {
  81855. child = t2.elementAt$1(t1, i);
  81856. if (t4._serialize0$_isInvisible$1(child))
  81857. continue;
  81858. t9 = t3.previous;
  81859. if (t9 != null) {
  81860. if (t6._is(t9) ? t9.get$isChildless() : !t5._is(t9))
  81861. t7.writeCharCode$1(59);
  81862. t9 = t4._serialize0$_style !== C.OutputStyle_compressed0;
  81863. if (t9)
  81864. t7.write$1(0, t8);
  81865. if (t3.previous.get$isGroupEnd())
  81866. if (t9)
  81867. t7.write$1(0, t8);
  81868. }
  81869. t3.previous = child;
  81870. child.accept$1(t4);
  81871. }
  81872. },
  81873. $signature: 0
  81874. };
  81875. N.OutputStyle0.prototype = {
  81876. toString$0: function(_) {
  81877. return this._name;
  81878. }
  81879. };
  81880. N.LineFeed0.prototype = {
  81881. toString$0: function(_) {
  81882. return this.name;
  81883. }
  81884. };
  81885. N.SerializeResult0.prototype = {};
  81886. B.ShadowedModuleView0.prototype = {
  81887. get$url: function() {
  81888. return this._shadowed_view0$_inner.get$url();
  81889. },
  81890. get$upstream: function() {
  81891. return this._shadowed_view0$_inner.get$upstream();
  81892. },
  81893. get$extender: function() {
  81894. return this._shadowed_view0$_inner.get$extender();
  81895. },
  81896. get$css: function(_) {
  81897. var t1 = this._shadowed_view0$_inner;
  81898. return t1.get$css(t1);
  81899. },
  81900. get$transitivelyContainsCss: function() {
  81901. return this._shadowed_view0$_inner.get$transitivelyContainsCss();
  81902. },
  81903. get$transitivelyContainsExtensions: function() {
  81904. return this._shadowed_view0$_inner.get$transitivelyContainsExtensions();
  81905. },
  81906. setVariable$3: function($name, value, nodeWithSpan) {
  81907. if (!this.variables.containsKey$1($name))
  81908. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  81909. else
  81910. return this._shadowed_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  81911. },
  81912. variableIdentity$1: function($name) {
  81913. return this._shadowed_view0$_inner.variableIdentity$1($name);
  81914. },
  81915. $eq: function(_, other) {
  81916. var _this = this;
  81917. if (other == null)
  81918. return false;
  81919. return other instanceof B.ShadowedModuleView0 && _this._shadowed_view0$_inner.$eq(0, other._shadowed_view0$_inner) && C.C_IterableEquality.equals$2(_this.variables.get$keys(), other.variables.get$keys()) && C.C_IterableEquality.equals$2(_this.functions.get$keys(), other.functions.get$keys()) && C.C_IterableEquality.equals$2(_this.mixins.get$keys(), other.mixins.get$keys());
  81920. },
  81921. get$hashCode: function(_) {
  81922. var t1 = this._shadowed_view0$_inner;
  81923. return t1.get$hashCode(t1);
  81924. },
  81925. cloneCss$0: function() {
  81926. var _this = this;
  81927. return new B.ShadowedModuleView0(_this._shadowed_view0$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti._eval$1("ShadowedModuleView0<1*>"));
  81928. },
  81929. toString$0: function(_) {
  81930. return "shadowed " + this._shadowed_view0$_inner.toString$0(0);
  81931. },
  81932. $isModule0: 1,
  81933. get$variables: function() {
  81934. return this.variables;
  81935. },
  81936. get$variableNodes: function() {
  81937. return this.variableNodes;
  81938. },
  81939. get$functions: function(receiver) {
  81940. return this.functions;
  81941. },
  81942. get$mixins: function() {
  81943. return this.mixins;
  81944. }
  81945. };
  81946. B.SilentComment0.prototype = {
  81947. accept$1$1: function(visitor) {
  81948. return visitor.visitSilentComment$1(this);
  81949. },
  81950. accept$1: function(visitor) {
  81951. return this.accept$1$1(visitor, type$.dynamic);
  81952. },
  81953. toString$0: function(_) {
  81954. return this.text;
  81955. },
  81956. $isAstNode0: 1,
  81957. $isStatement0: 1,
  81958. get$span: function() {
  81959. return this.span;
  81960. }
  81961. };
  81962. M.SimpleSelector0.prototype = {
  81963. get$minSpecificity: function() {
  81964. return 1000;
  81965. },
  81966. get$maxSpecificity: function() {
  81967. return this.get$minSpecificity();
  81968. },
  81969. addSuffix$1: function(suffix) {
  81970. return H.throwExpression(E.SassScriptException$0('Invalid parent selector "' + this.toString$0(0) + '"'));
  81971. },
  81972. unify$1: function(compound) {
  81973. var result, t1, addedThis, _i, simple, _this = this;
  81974. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0)
  81975. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector_2));
  81976. if (C.JSArray_methods.contains$1(compound, _this))
  81977. return compound;
  81978. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  81979. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  81980. simple = compound[_i];
  81981. if (!addedThis && simple instanceof D.PseudoSelector0) {
  81982. result.push(_this);
  81983. addedThis = true;
  81984. }
  81985. result.push(simple);
  81986. }
  81987. if (!addedThis)
  81988. result.push(_this);
  81989. return result;
  81990. }
  81991. };
  81992. D.SourceMapBuffer.prototype = {
  81993. get$sourceFiles: function() {
  81994. var t2, t3,
  81995. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_SourceFile);
  81996. for (t2 = this._source_map_buffer$_sourceFiles.get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  81997. t3 = t2.get$current(t2);
  81998. t1.$indexSet(0, J.toString$0$(t3.key), t3.value);
  81999. }
  82000. return new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_SourceFile);
  82001. },
  82002. get$_targetLocation: function() {
  82003. var t1 = this._source_map_buffer$_buffer._contents,
  82004. t2 = this._line;
  82005. return V.SourceLocation$(t1.length, this._column, t2, null);
  82006. },
  82007. get$length: function(_) {
  82008. return this._source_map_buffer$_buffer._contents.length;
  82009. },
  82010. forSpan$1$2: function(span, callback) {
  82011. var t1, _this = this,
  82012. wasInSpan = _this._inSpan;
  82013. _this._inSpan = true;
  82014. _this._source_map_buffer$_addEntry$2(Y.FileLocation$_(span.file, span._file$_start), _this.get$_targetLocation());
  82015. try {
  82016. t1 = callback.call$0();
  82017. return t1;
  82018. } finally {
  82019. _this._inSpan = wasInSpan;
  82020. }
  82021. },
  82022. forSpan$2: function(span, callback) {
  82023. return this.forSpan$1$2(span, callback, type$.dynamic);
  82024. },
  82025. _source_map_buffer$_addEntry$2: function(source, target) {
  82026. var entry, t2,
  82027. t1 = this._entries;
  82028. if (t1.length !== 0) {
  82029. entry = C.JSArray_methods.get$last(t1);
  82030. t2 = entry.source;
  82031. if (t2.file.getLine$1(t2.offset) == source.file.getLine$1(source.offset) && entry.target.line === target.line)
  82032. return;
  82033. if (entry.target.offset === target.offset)
  82034. return;
  82035. }
  82036. this._source_map_buffer$_sourceFiles.putIfAbsent$2(source.file.url, new D.SourceMapBuffer__addEntry_closure0(source));
  82037. t1.push(new L.Entry(source, target, null));
  82038. },
  82039. write$1: function(_, object) {
  82040. var t1, i,
  82041. string = J.toString$0$(object);
  82042. this._source_map_buffer$_buffer._contents += H.S(string);
  82043. for (t1 = string.length, i = 0; i < t1; ++i)
  82044. if (C.JSString_methods._codeUnitAt$1(string, i) === 10)
  82045. this._writeLine$0();
  82046. else
  82047. ++this._column;
  82048. },
  82049. writeCharCode$1: function(charCode) {
  82050. this._source_map_buffer$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  82051. if (charCode === 10)
  82052. this._writeLine$0();
  82053. else
  82054. ++this._column;
  82055. },
  82056. _writeLine$0: function() {
  82057. var _this = this,
  82058. t1 = _this._entries;
  82059. if (C.JSArray_methods.get$last(t1).target.line === _this._line && C.JSArray_methods.get$last(t1).target.column === _this._column)
  82060. t1.pop();
  82061. ++_this._line;
  82062. _this._column = 0;
  82063. if (_this._inSpan)
  82064. t1.push(new L.Entry(C.JSArray_methods.get$last(t1).source, _this.get$_targetLocation(), null));
  82065. },
  82066. toString$0: function(_) {
  82067. var t1 = this._source_map_buffer$_buffer._contents;
  82068. return t1.charCodeAt(0) == 0 ? t1 : t1;
  82069. },
  82070. buildSourceMap$1$prefix: function(prefix) {
  82071. var i, t2, prefixColumn, _box_0 = {},
  82072. t1 = prefix.length;
  82073. if (t1 === 0)
  82074. return T.SingleMapping_SingleMapping$fromEntries(this._entries);
  82075. _box_0.prefixColumn = _box_0.prefixLines = 0;
  82076. for (i = 0, t2 = 0; i < t1; ++i)
  82077. if (C.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
  82078. ++_box_0.prefixLines;
  82079. _box_0.prefixColumn = 0;
  82080. t2 = 0;
  82081. } else {
  82082. prefixColumn = t2 + 1;
  82083. _box_0.prefixColumn = prefixColumn;
  82084. t2 = prefixColumn;
  82085. }
  82086. t2 = this._entries;
  82087. return T.SingleMapping_SingleMapping$fromEntries(new H.MappedListIterable(t2, new D.SourceMapBuffer_buildSourceMap_closure0(_box_0, t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry*>")));
  82088. },
  82089. $isStringBuffer: 1
  82090. };
  82091. D.SourceMapBuffer__addEntry_closure0.prototype = {
  82092. call$0: function() {
  82093. return this.source.file;
  82094. },
  82095. $signature: 62
  82096. };
  82097. D.SourceMapBuffer_buildSourceMap_closure0.prototype = {
  82098. call$1: function(entry) {
  82099. var t1 = entry.source,
  82100. t2 = entry.target,
  82101. t3 = t2.line,
  82102. t4 = this._box_0,
  82103. t5 = t4.prefixLines;
  82104. t4 = t3 === 0 ? t4.prefixColumn : 0;
  82105. return new L.Entry(t1, V.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
  82106. }
  82107. };
  82108. O.Statement0.prototype = {$isAstNode0: 1};
  82109. Q.StaticImport0.prototype = {
  82110. toString$0: function(_) {
  82111. var t1 = this.url.toString$0(0),
  82112. t2 = this.supports;
  82113. if (t2 != null)
  82114. t1 += " supports(" + t2.toString$0(0) + ")";
  82115. t2 = this.media;
  82116. if (t2 != null)
  82117. t1 += " " + t2.toString$0(0);
  82118. t1 += H.Primitives_stringFromCharCode(59);
  82119. return t1.charCodeAt(0) == 0 ? t1 : t1;
  82120. },
  82121. $isImport0: 1,
  82122. $isAstNode0: 1,
  82123. get$span: function() {
  82124. return this.span;
  82125. }
  82126. };
  82127. S.StderrLogger0.prototype = {
  82128. warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
  82129. var t1;
  82130. if (deprecation)
  82131. J.write$1$x($.$get$stderr0()._node1$_stderr, "DEPRECATION ");
  82132. J.write$1$x($.$get$stderr0()._node1$_stderr, "WARNING");
  82133. if (span == null) {
  82134. t1 = $.$get$stderr0();
  82135. t1.writeln$1(": " + H.S(message));
  82136. } else if (trace != null) {
  82137. t1 = $.$get$stderr0();
  82138. t1.writeln$1(": " + H.S(message) + "\n\n" + span.highlight$1$color(false));
  82139. } else {
  82140. t1 = $.$get$stderr0();
  82141. t1.writeln$1(" on " + span.message$2$color(0, C.JSString_methods.$add("\n", message), false));
  82142. }
  82143. if (trace != null)
  82144. t1.writeln$1(B.indent0(C.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
  82145. t1.writeln$0();
  82146. },
  82147. warn$2$deprecation: function(message, deprecation) {
  82148. return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
  82149. },
  82150. warn$2$span: function(message, span) {
  82151. return this.warn$4$deprecation$span$trace(message, false, span, null);
  82152. },
  82153. warn$3$deprecation$span: function(message, deprecation, span) {
  82154. return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
  82155. },
  82156. warn$2$trace: function(message, trace) {
  82157. return this.warn$4$deprecation$span$trace(message, false, null, trace);
  82158. },
  82159. debug$2: function(message, span) {
  82160. var url, t3, t4,
  82161. t1 = span.file,
  82162. t2 = span._file$_start;
  82163. if (Y.FileLocation$_(t1, t2).file.url == null)
  82164. url = "-";
  82165. else {
  82166. t3 = Y.FileLocation$_(t1, t2);
  82167. url = $.$get$context().prettyUri$1(t3.file.url);
  82168. }
  82169. t3 = $.$get$stderr0();
  82170. t4 = H.S(url) + ":";
  82171. t2 = Y.FileLocation$_(t1, t2);
  82172. t2 = t4 + (t2.file.getLine$1(t2.offset) + 1) + " ";
  82173. t4 = t3._node1$_stderr;
  82174. J.write$1$x(t4, t2);
  82175. J.write$1$x(t4, "DEBUG");
  82176. t3.writeln$1(": " + H.S(message));
  82177. }
  82178. };
  82179. D.StringExpression0.prototype = {
  82180. get$span: function() {
  82181. return this.text.span;
  82182. },
  82183. accept$1$1: function(visitor) {
  82184. return visitor.visitStringExpression$1(this);
  82185. },
  82186. accept$1: function(visitor) {
  82187. return this.accept$1$1(visitor, type$.dynamic);
  82188. },
  82189. asInterpolation$1$static: function($static) {
  82190. var quote, t1, t2, buffer, t3, t4, t5, t6, _i, value, t7, t8, i, codeUnit, next, t9, _this = this;
  82191. if (!_this.hasQuotes)
  82192. return _this.text;
  82193. quote = _this._string0$_bestQuote$0();
  82194. t1 = new P.StringBuffer("");
  82195. t2 = [];
  82196. buffer = new Z.InterpolationBuffer0(t1, t2);
  82197. t1._contents += H.Primitives_stringFromCharCode(quote);
  82198. for (t3 = _this.text, t4 = t3.contents, t5 = t4.length, t6 = type$.legacy_Expression_2, _i = 0; _i < t5; ++_i) {
  82199. value = t4[_i];
  82200. if (t6._is(value)) {
  82201. buffer._interpolation_buffer0$_flushText$0();
  82202. t2.push(value);
  82203. } else if (typeof value == "string")
  82204. for (t7 = value.length, t8 = t7 - 1, i = 0; i < t7; ++i) {
  82205. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  82206. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
  82207. t1._contents += H.Primitives_stringFromCharCode(92);
  82208. t1._contents += H.Primitives_stringFromCharCode(97);
  82209. if (i !== t8) {
  82210. next = C.JSString_methods._codeUnitAt$1(value, i + 1);
  82211. if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || T.isHex0(next))
  82212. t1._contents += H.Primitives_stringFromCharCode(32);
  82213. }
  82214. } else {
  82215. if (codeUnit !== quote)
  82216. if (codeUnit !== 92)
  82217. t9 = $static && codeUnit === 35 && i < t8 && C.JSString_methods._codeUnitAt$1(value, i + 1) === 123;
  82218. else
  82219. t9 = true;
  82220. else
  82221. t9 = true;
  82222. if (t9)
  82223. t1._contents += H.Primitives_stringFromCharCode(92);
  82224. t1._contents += H.Primitives_stringFromCharCode(codeUnit);
  82225. }
  82226. }
  82227. }
  82228. t1._contents += H.Primitives_stringFromCharCode(quote);
  82229. return buffer.interpolation$1(t3.span);
  82230. },
  82231. asInterpolation$0: function() {
  82232. return this.asInterpolation$1$static(false);
  82233. },
  82234. _string0$_bestQuote$0: function() {
  82235. var t1, t2, containsDoubleQuote, _i, value, t3, i, codeUnit;
  82236. for (t1 = this.text.contents, t2 = t1.length, containsDoubleQuote = false, _i = 0; _i < t2; ++_i) {
  82237. value = t1[_i];
  82238. if (typeof value == "string")
  82239. for (t3 = value.length, i = 0; i < t3; ++i) {
  82240. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  82241. if (codeUnit === 39)
  82242. return 34;
  82243. if (codeUnit === 34)
  82244. containsDoubleQuote = true;
  82245. }
  82246. }
  82247. return containsDoubleQuote ? 39 : 34;
  82248. },
  82249. toString$0: function(_) {
  82250. return this.asInterpolation$0().toString$0(0);
  82251. },
  82252. $isExpression0: 1,
  82253. $isAstNode0: 1
  82254. };
  82255. D.closure114.prototype = {
  82256. call$1: function($arguments) {
  82257. var string = J.$index$asx($arguments, 0).assertString$1("string");
  82258. if (!string.hasQuotes)
  82259. return string;
  82260. return new D.SassString0(string.text, false);
  82261. },
  82262. $signature: 10
  82263. };
  82264. D.closure113.prototype = {
  82265. call$1: function($arguments) {
  82266. var string = J.$index$asx($arguments, 0).assertString$1("string");
  82267. if (string.hasQuotes)
  82268. return string;
  82269. return new D.SassString0(string.text, true);
  82270. },
  82271. $signature: 10
  82272. };
  82273. D.closure109.prototype = {
  82274. call$1: function($arguments) {
  82275. var t1 = J.$index$asx($arguments, 0).assertString$1("string").get$sassLength();
  82276. return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
  82277. },
  82278. $signature: 5
  82279. };
  82280. D.closure108.prototype = {
  82281. call$1: function($arguments) {
  82282. var indexInt, codeUnitIndex, _s5_ = "index",
  82283. t1 = J.getInterceptor$asx($arguments),
  82284. string = t1.$index($arguments, 0).assertString$1("string"),
  82285. insert = t1.$index($arguments, 1).assertString$1("insert"),
  82286. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  82287. index.assertNoUnits$1(_s5_);
  82288. indexInt = index.assertInt$1(_s5_);
  82289. if (indexInt < 0)
  82290. indexInt = string.get$sassLength() + indexInt + 2;
  82291. t1 = string.text;
  82292. codeUnitIndex = B.codepointIndexToCodeUnitIndex0(t1, D._codepointForIndex0(indexInt, string.get$sassLength(), false));
  82293. return new D.SassString0(J.replaceRange$3$asx(t1, codeUnitIndex, codeUnitIndex, insert.text), string.hasQuotes);
  82294. },
  82295. $signature: 10
  82296. };
  82297. D.closure107.prototype = {
  82298. call$1: function($arguments) {
  82299. var codepointIndex,
  82300. t1 = J.getInterceptor$asx($arguments),
  82301. t2 = t1.$index($arguments, 0).assertString$1("string").text,
  82302. codeUnitIndex = J.indexOf$1$asx(t2, t1.$index($arguments, 1).assertString$1("substring").text);
  82303. if (codeUnitIndex === -1)
  82304. return C.C_SassNull;
  82305. codepointIndex = B.codeUnitIndexToCodepointIndex0(t2, codeUnitIndex);
  82306. return new T.SassNumber0(codepointIndex + 1, C.List_empty, C.List_empty, null);
  82307. },
  82308. $signature: 3
  82309. };
  82310. D.closure106.prototype = {
  82311. call$1: function($arguments) {
  82312. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  82313. t1 = J.getInterceptor$asx($arguments),
  82314. string = t1.$index($arguments, 0).assertString$1("string"),
  82315. start = t1.$index($arguments, 1).assertNumber$1("start-at"),
  82316. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  82317. start.assertNoUnits$1("start");
  82318. end.assertNoUnits$1("end");
  82319. lengthInCodepoints = string.get$sassLength();
  82320. endInt = end.assertInt$0();
  82321. if (endInt === 0)
  82322. return string.hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  82323. startCodepoint = D._codepointForIndex0(start.assertInt$0(), lengthInCodepoints, false);
  82324. endCodepoint = D._codepointForIndex0(endInt, lengthInCodepoints, true);
  82325. if (endCodepoint === lengthInCodepoints)
  82326. --endCodepoint;
  82327. if (endCodepoint < startCodepoint)
  82328. return string.hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  82329. t1 = string.text;
  82330. return new D.SassString0(J.substring$2$s(t1, B.codepointIndexToCodeUnitIndex0(t1, startCodepoint), B.codepointIndexToCodeUnitIndex0(t1, endCodepoint + 1)), string.hasQuotes);
  82331. },
  82332. $signature: 10
  82333. };
  82334. D.closure112.prototype = {
  82335. call$1: function($arguments) {
  82336. var t1, t2, t3, i, t4, t5,
  82337. string = J.$index$asx($arguments, 0).assertString$1("string");
  82338. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  82339. t5 = t3._codeUnitAt$1(t1, i);
  82340. t4 += H.Primitives_stringFromCharCode(t5 >= 97 && t5 <= 122 ? t5 & 4294967263 : t5);
  82341. }
  82342. return new D.SassString0(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  82343. },
  82344. $signature: 10
  82345. };
  82346. D.closure111.prototype = {
  82347. call$1: function($arguments) {
  82348. var t1, t2, t3, i, t4, t5,
  82349. string = J.$index$asx($arguments, 0).assertString$1("string");
  82350. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  82351. t5 = t3._codeUnitAt$1(t1, i);
  82352. t4 += H.Primitives_stringFromCharCode(t5 >= 65 && t5 <= 90 ? t5 | 32 : t5);
  82353. }
  82354. return new D.SassString0(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  82355. },
  82356. $signature: 10
  82357. };
  82358. D.closure110.prototype = {
  82359. call$1: function($arguments) {
  82360. var t1 = $.$get$_previousUniqueId0() + ($.$get$_random1().nextInt$1(36) + 1);
  82361. $._previousUniqueId0 = t1;
  82362. if (t1 > Math.pow(36, 6))
  82363. $._previousUniqueId0 = C.JSInt_methods.$mod($.$get$_previousUniqueId0(), H._asIntS(Math.pow(36, 6)));
  82364. return new D.SassString0("u" + C.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId0(), 36), 6, "0"), false);
  82365. },
  82366. $signature: 10
  82367. };
  82368. D._NodeSassString.prototype = {};
  82369. D.closure210.prototype = {
  82370. call$3: function(thisArg, value, dartValue) {
  82371. J.set$dartValue$x(thisArg, dartValue == null ? new D.SassString0(value, false) : dartValue);
  82372. },
  82373. call$2: function(thisArg, value) {
  82374. return this.call$3(thisArg, value, null);
  82375. },
  82376. "call*": "call$3",
  82377. $requiredArgCount: 2,
  82378. $defaultValues: function() {
  82379. return [null];
  82380. }
  82381. };
  82382. D.closure211.prototype = {
  82383. call$1: function(thisArg) {
  82384. return J.get$dartValue$x(thisArg).text;
  82385. }
  82386. };
  82387. D.closure212.prototype = {
  82388. call$2: function(thisArg, value) {
  82389. J.set$dartValue$x(thisArg, new D.SassString0(value, false));
  82390. },
  82391. "call*": "call$2",
  82392. $requiredArgCount: 2
  82393. };
  82394. D.closure213.prototype = {
  82395. call$1: function(thisArg) {
  82396. return J.toString$0$(J.get$dartValue$x(thisArg));
  82397. }
  82398. };
  82399. D.SassString0.prototype = {
  82400. get$sassLength: function() {
  82401. var t1 = this._string$_sassLength;
  82402. if (t1 == null) {
  82403. t1 = this.text;
  82404. t1.toString;
  82405. t1 = new P.Runes(t1);
  82406. t1 = this._string$_sassLength = t1.get$length(t1);
  82407. }
  82408. return t1;
  82409. },
  82410. get$isSpecialNumber: function() {
  82411. var t1, t2;
  82412. if (this.hasQuotes)
  82413. return false;
  82414. t1 = this.text;
  82415. if (t1.length < 6)
  82416. return false;
  82417. t2 = J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32;
  82418. if (t2 === 99) {
  82419. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  82420. return false;
  82421. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
  82422. return false;
  82423. if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
  82424. return false;
  82425. return C.JSString_methods._codeUnitAt$1(t1, 4) === 40;
  82426. } else if (t2 === 118) {
  82427. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  82428. return false;
  82429. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
  82430. return false;
  82431. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82432. } else if (t2 === 101) {
  82433. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
  82434. return false;
  82435. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
  82436. return false;
  82437. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82438. } else if (t2 === 109) {
  82439. t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  82440. if (t2 === 97) {
  82441. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
  82442. return false;
  82443. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82444. } else if (t2 === 105) {
  82445. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
  82446. return false;
  82447. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82448. } else
  82449. return false;
  82450. } else
  82451. return false;
  82452. },
  82453. get$isVar: function() {
  82454. if (this.hasQuotes)
  82455. return false;
  82456. var t1 = this.text;
  82457. if (t1.length < 8)
  82458. return false;
  82459. return (J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32) === 118 && (C.JSString_methods._codeUnitAt$1(t1, 1) | 32) === 97 && (C.JSString_methods._codeUnitAt$1(t1, 2) | 32) === 114 && C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  82460. },
  82461. get$isBlank: function() {
  82462. return !this.hasQuotes && this.text.length === 0;
  82463. },
  82464. accept$1$1: function(visitor) {
  82465. var t1 = visitor._serialize0$_quote && this.hasQuotes,
  82466. t2 = this.text;
  82467. if (t1)
  82468. visitor._serialize0$_visitQuotedString$1(t2);
  82469. else
  82470. visitor._serialize0$_visitUnquotedString$1(t2);
  82471. return null;
  82472. },
  82473. accept$1: function(visitor) {
  82474. return this.accept$1$1(visitor, type$.dynamic);
  82475. },
  82476. assertString$1: function($name) {
  82477. return this;
  82478. },
  82479. plus$1: function(other) {
  82480. var t1 = this.text,
  82481. t2 = this.hasQuotes;
  82482. if (other instanceof D.SassString0)
  82483. return new D.SassString0(J.$add$ansx(t1, other.text), t2);
  82484. else {
  82485. other.toString;
  82486. return new D.SassString0(J.$add$ansx(t1, N.serializeValue(other, false, true)), t2);
  82487. }
  82488. },
  82489. $eq: function(_, other) {
  82490. if (other == null)
  82491. return false;
  82492. return other instanceof D.SassString0 && this.text == other.text;
  82493. },
  82494. get$hashCode: function(_) {
  82495. return J.get$hashCode$(this.text);
  82496. }
  82497. };
  82498. X.ModifiableCssStyleRule0.prototype = {
  82499. accept$1$1: function(visitor) {
  82500. return visitor.visitCssStyleRule$1(this);
  82501. },
  82502. accept$1: function(visitor) {
  82503. return this.accept$1$1(visitor, type$.dynamic);
  82504. },
  82505. copyWithoutChildren$0: function() {
  82506. return X.ModifiableCssStyleRule$0(this.selector, this.span, this.originalSelector);
  82507. },
  82508. $isCssStyleRule0: 1,
  82509. get$span: function() {
  82510. return this.span;
  82511. }
  82512. };
  82513. X.StyleRule0.prototype = {
  82514. accept$1$1: function(visitor) {
  82515. return visitor.visitStyleRule$1(this);
  82516. },
  82517. accept$1: function(visitor) {
  82518. return this.accept$1$1(visitor, type$.dynamic);
  82519. },
  82520. toString$0: function(_) {
  82521. var t1 = this.children;
  82522. return this.selector.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  82523. },
  82524. get$span: function() {
  82525. return this.span;
  82526. }
  82527. };
  82528. V.CssStylesheet0.prototype = {
  82529. get$isGroupEnd: function() {
  82530. return false;
  82531. },
  82532. get$isChildless: function() {
  82533. return false;
  82534. },
  82535. accept$1$1: function(visitor) {
  82536. return visitor.visitCssStylesheet$1(this);
  82537. },
  82538. accept$1: function(visitor) {
  82539. return this.accept$1$1(visitor, type$.dynamic);
  82540. },
  82541. get$children: function() {
  82542. return this.children;
  82543. },
  82544. get$span: function() {
  82545. return this.span;
  82546. }
  82547. };
  82548. V.ModifiableCssStylesheet0.prototype = {
  82549. accept$1$1: function(visitor) {
  82550. return visitor.visitCssStylesheet$1(this);
  82551. },
  82552. accept$1: function(visitor) {
  82553. return this.accept$1$1(visitor, type$.dynamic);
  82554. },
  82555. copyWithoutChildren$0: function() {
  82556. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  82557. return new V.ModifiableCssStylesheet0(this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
  82558. },
  82559. $isCssStylesheet0: 1,
  82560. get$span: function() {
  82561. return this.span;
  82562. }
  82563. };
  82564. V.StylesheetParser0.prototype = {
  82565. parse$0: function() {
  82566. return this.wrapSpanFormatException$1(new V.StylesheetParser_parse_closure0(this));
  82567. },
  82568. parseArgumentDeclaration$0: function() {
  82569. return this._stylesheet0$_parseSingleProduction$1$1(new V.StylesheetParser_parseArgumentDeclaration_closure0(this), type$.legacy_ArgumentDeclaration_2);
  82570. },
  82571. _stylesheet0$_parseSingleProduction$1$1: function(production, $T) {
  82572. return this.wrapSpanFormatException$1(new V.StylesheetParser__parseSingleProduction_closure0(this, production, $T));
  82573. },
  82574. parseSignature$0: function() {
  82575. return this.wrapSpanFormatException$1(new V.StylesheetParser_parseSignature_closure(this));
  82576. },
  82577. _stylesheet0$_statement$1$root: function(root) {
  82578. var t2, _this = this,
  82579. t1 = _this.scanner;
  82580. switch (t1.peekChar$0()) {
  82581. case 64:
  82582. return _this.atRule$2$root(new V.StylesheetParser__statement_closure0(_this), root);
  82583. case 43:
  82584. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  82585. return _this._stylesheet0$_styleRule$0();
  82586. _this._stylesheet0$_isUseAllowed = false;
  82587. t2 = t1._string_scanner$_position;
  82588. t1.readChar$0();
  82589. return _this._stylesheet0$_includeRule$1(new S._SpanScannerState(t1, t2));
  82590. case 61:
  82591. if (!_this.get$indented())
  82592. return _this._stylesheet0$_styleRule$0();
  82593. _this._stylesheet0$_isUseAllowed = false;
  82594. t2 = t1._string_scanner$_position;
  82595. t1.readChar$0();
  82596. _this.whitespace$0();
  82597. return _this._stylesheet0$_mixinRule$1(new S._SpanScannerState(t1, t2));
  82598. case 125:
  82599. t1.error$2$length('unmatched "}".', 1);
  82600. break;
  82601. default:
  82602. return _this._stylesheet0$_inStyleRule || _this._stylesheet0$_inUnknownAtRule || _this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock ? _this._stylesheet0$_declarationOrStyleRule$0() : _this._stylesheet0$_variableDeclarationOrStyleRule$0();
  82603. }
  82604. },
  82605. _stylesheet0$_statement$0: function() {
  82606. return this._stylesheet0$_statement$1$root(false);
  82607. },
  82608. variableDeclarationWithoutNamespace$2: function(namespace, start) {
  82609. var precedingComment, t1, $name, t2, value, flagStart, guarded, global, flag, endPosition, declaration, _this = this, _box_0 = {};
  82610. _box_0.start = start;
  82611. precedingComment = _this.lastSilentComment;
  82612. _this.lastSilentComment = null;
  82613. if (start == null) {
  82614. t1 = _this.scanner;
  82615. _box_0.start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82616. }
  82617. $name = _this.variableName$0();
  82618. t1 = namespace != null;
  82619. if (t1)
  82620. _this._stylesheet0$_assertPublic$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure1(_box_0, _this));
  82621. if (_this.get$plainCss())
  82622. _this.error$2(string$.Sass_v, _this.scanner.spanFrom$1(_box_0.start));
  82623. _this.whitespace$0();
  82624. t2 = _this.scanner;
  82625. t2.expectChar$1(58);
  82626. _this.whitespace$0();
  82627. value = _this.expression$0();
  82628. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82629. for (guarded = false, global = false; t2.scanChar$1(33);) {
  82630. flag = _this.identifier$0();
  82631. if (flag === "default")
  82632. guarded = true;
  82633. else if (flag === "global") {
  82634. if (t1) {
  82635. endPosition = t2._string_scanner$_position;
  82636. _this.error$2(string$.x21globa, Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
  82637. }
  82638. global = true;
  82639. } else {
  82640. endPosition = t2._string_scanner$_position;
  82641. _this.error$2("Invalid flag name.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
  82642. }
  82643. _this.whitespace$0();
  82644. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82645. }
  82646. _this.expectStatementSeparator$1("variable declaration");
  82647. declaration = Z.VariableDeclaration$0($name, value, t2.spanFrom$1(_box_0.start), precedingComment, global, guarded, namespace);
  82648. if (global)
  82649. _this._stylesheet0$_globalVariables.putIfAbsent$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure2(declaration));
  82650. return declaration;
  82651. },
  82652. variableDeclarationWithoutNamespace$0: function() {
  82653. return this.variableDeclarationWithoutNamespace$2(null, null);
  82654. },
  82655. _stylesheet0$_variableDeclarationOrStyleRule$0: function() {
  82656. var t1, t2, variableOrInterpolation, t3, _this = this;
  82657. if (_this.get$plainCss())
  82658. return _this._stylesheet0$_styleRule$0();
  82659. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  82660. return _this._stylesheet0$_styleRule$0();
  82661. if (!_this.lookingAtIdentifier$0())
  82662. return _this._stylesheet0$_styleRule$0();
  82663. t1 = _this.scanner;
  82664. t2 = t1._string_scanner$_position;
  82665. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  82666. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  82667. return variableOrInterpolation;
  82668. else {
  82669. t3 = new Z.InterpolationBuffer0(new P.StringBuffer(""), []);
  82670. t3.addInterpolation$1(type$.legacy_Interpolation_2._as(variableOrInterpolation));
  82671. return _this._stylesheet0$_styleRule$2(t3, new S._SpanScannerState(t1, t2));
  82672. }
  82673. },
  82674. _stylesheet0$_declarationOrStyleRule$0: function() {
  82675. var t1, t2, declarationOrBuffer, _this = this;
  82676. if (_this.get$plainCss() && _this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inUnknownAtRule)
  82677. return _this._stylesheet0$_propertyOrVariableDeclaration$0();
  82678. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  82679. return _this._stylesheet0$_styleRule$0();
  82680. t1 = _this.scanner;
  82681. t2 = t1._string_scanner$_position;
  82682. declarationOrBuffer = _this._stylesheet0$_declarationOrBuffer$0();
  82683. return type$.legacy_Statement_2._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet0$_styleRule$2(type$.legacy_InterpolationBuffer_2._as(declarationOrBuffer), new S._SpanScannerState(t1, t2));
  82684. },
  82685. _stylesheet0$_declarationOrBuffer$0: function() {
  82686. var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, value, postColonWhitespace, t5, exception, _this = this, t1 = {},
  82687. t2 = _this.scanner,
  82688. start = new S._SpanScannerState(t2, t2._string_scanner$_position),
  82689. nameBuffer = new Z.InterpolationBuffer0(new P.StringBuffer(""), []),
  82690. first = t2.peekChar$0();
  82691. if (first !== 58)
  82692. if (first !== 42)
  82693. if (first !== 46)
  82694. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  82695. else
  82696. t3 = true;
  82697. else
  82698. t3 = true;
  82699. else
  82700. t3 = true;
  82701. if (t3) {
  82702. t3 = t2.readChar$0();
  82703. nameBuffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(t3);
  82704. t3 = _this.rawText$1(_this.get$whitespace());
  82705. nameBuffer._interpolation_buffer0$_text._contents += t3;
  82706. startsWithPunctuation = true;
  82707. } else
  82708. startsWithPunctuation = false;
  82709. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  82710. return nameBuffer;
  82711. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  82712. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  82713. return variableOrInterpolation;
  82714. else
  82715. nameBuffer.addInterpolation$1(type$.legacy_Interpolation_2._as(variableOrInterpolation));
  82716. _this._stylesheet0$_isUseAllowed = false;
  82717. if (t2.matches$1("/*")) {
  82718. t3 = _this.rawText$1(_this.get$loudComment());
  82719. nameBuffer._interpolation_buffer0$_text._contents += t3;
  82720. }
  82721. midBuffer = new P.StringBuffer("");
  82722. t3 = _this.get$whitespace();
  82723. midBuffer._contents += _this.rawText$1(t3);
  82724. t4 = t2._string_scanner$_position;
  82725. if (!t2.scanChar$1(58)) {
  82726. if (midBuffer._contents.length !== 0)
  82727. nameBuffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(32);
  82728. return nameBuffer;
  82729. }
  82730. midBuffer._contents += H.Primitives_stringFromCharCode(58);
  82731. $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new S._SpanScannerState(t2, t4)));
  82732. first = C.JSArray_methods.get$first($name.contents);
  82733. if (C.JSString_methods.startsWith$1(typeof first == "string" ? first : "", "--")) {
  82734. value = _this._stylesheet0$_interpolatedDeclarationValue$0();
  82735. _this.expectStatementSeparator$1("custom property");
  82736. return L.Declaration$0($name, t2.spanFrom$1(start), null, value);
  82737. }
  82738. if (t2.scanChar$1(58)) {
  82739. t1 = nameBuffer;
  82740. t2 = t1._interpolation_buffer0$_text;
  82741. t2._contents += H.S(midBuffer);
  82742. t2._contents += H.Primitives_stringFromCharCode(58);
  82743. return t1;
  82744. } else if (_this.get$indented() && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  82745. t1 = nameBuffer;
  82746. t1._interpolation_buffer0$_text._contents += H.S(midBuffer);
  82747. return t1;
  82748. }
  82749. postColonWhitespace = _this.rawText$1(t3);
  82750. if (_this.lookingAtChildren$0())
  82751. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure1($name));
  82752. midBuffer._contents += postColonWhitespace;
  82753. couldBeSelector = postColonWhitespace.length === 0 && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0();
  82754. beforeDeclaration = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82755. t1.value = null;
  82756. try {
  82757. if (_this.lookingAtChildren$0()) {
  82758. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  82759. t4 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  82760. t5 = t4.offset;
  82761. value = new D.StringExpression0(X.Interpolation$0(t3, Y._FileSpan$(t4.file, t5, t5)), true);
  82762. } else
  82763. value = _this.expression$0();
  82764. t3 = t1.value = value;
  82765. if (_this.lookingAtChildren$0()) {
  82766. if (couldBeSelector)
  82767. _this.expectStatementSeparator$0();
  82768. } else if (!_this.atEndOfStatement$0())
  82769. _this.expectStatementSeparator$0();
  82770. } catch (exception) {
  82771. if (type$.legacy_FormatException._is(H.unwrapException(exception))) {
  82772. if (!couldBeSelector)
  82773. throw exception;
  82774. t2.set$state(beforeDeclaration);
  82775. additional = _this.almostAnyValue$0();
  82776. if (!_this.get$indented() && t2.peekChar$0() === 59)
  82777. throw exception;
  82778. nameBuffer._interpolation_buffer0$_text._contents += H.S(midBuffer);
  82779. nameBuffer.addInterpolation$1(additional);
  82780. return nameBuffer;
  82781. } else
  82782. throw exception;
  82783. }
  82784. if (_this.lookingAtChildren$0())
  82785. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure2(t1, $name));
  82786. else {
  82787. _this.expectStatementSeparator$0();
  82788. return L.Declaration$0($name, t2.spanFrom$1(start), null, t3);
  82789. }
  82790. },
  82791. _stylesheet0$_variableDeclarationOrInterpolation$0: function() {
  82792. var t1, start, identifier, t2, buffer, _this = this;
  82793. if (!_this.lookingAtIdentifier$0())
  82794. return _this.interpolatedIdentifier$0();
  82795. t1 = _this.scanner;
  82796. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82797. identifier = _this.identifier$0();
  82798. if (t1.matches$1(".$")) {
  82799. t1.readChar$0();
  82800. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  82801. } else {
  82802. t2 = new P.StringBuffer("");
  82803. buffer = new Z.InterpolationBuffer0(t2, []);
  82804. t2._contents = identifier;
  82805. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  82806. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  82807. return buffer.interpolation$1(t1.spanFrom$1(start));
  82808. }
  82809. },
  82810. _stylesheet0$_styleRule$2: function(buffer, start) {
  82811. var t2, interpolation, t3, wasInStyleRule, _this = this, t1 = {};
  82812. t1.start = start;
  82813. _this._stylesheet0$_isUseAllowed = false;
  82814. if (start == null) {
  82815. t2 = _this.scanner;
  82816. t2 = t1.start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82817. } else
  82818. t2 = start;
  82819. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  82820. if (buffer != null) {
  82821. buffer.addInterpolation$1(interpolation);
  82822. t3 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(t2));
  82823. } else
  82824. t3 = interpolation;
  82825. if (t3.contents.length === 0)
  82826. _this.scanner.error$1('expected "}".');
  82827. wasInStyleRule = _this._stylesheet0$_inStyleRule;
  82828. _this._stylesheet0$_inStyleRule = true;
  82829. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), t2, new V.StylesheetParser__styleRule_closure0(t1, _this, wasInStyleRule));
  82830. },
  82831. _stylesheet0$_styleRule$0: function() {
  82832. return this._stylesheet0$_styleRule$2(null, null);
  82833. },
  82834. _stylesheet0$_propertyOrVariableDeclaration$0: function() {
  82835. var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
  82836. _s48_ = string$.Nested,
  82837. t1 = {},
  82838. t2 = _this.scanner,
  82839. start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  82840. t1.name = null;
  82841. first = t2.peekChar$0();
  82842. if (first !== 58)
  82843. if (first !== 42)
  82844. if (first !== 46)
  82845. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  82846. else
  82847. t3 = true;
  82848. else
  82849. t3 = true;
  82850. else
  82851. t3 = true;
  82852. if (t3) {
  82853. t3 = new P.StringBuffer("");
  82854. nameBuffer = new Z.InterpolationBuffer0(t3, []);
  82855. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  82856. t3._contents += _this.rawText$1(_this.get$whitespace());
  82857. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  82858. t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
  82859. } else if (!_this.get$plainCss()) {
  82860. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  82861. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  82862. return variableOrInterpolation;
  82863. else {
  82864. type$.legacy_Interpolation_2._as(variableOrInterpolation);
  82865. t1.name = variableOrInterpolation;
  82866. }
  82867. t3 = variableOrInterpolation;
  82868. } else {
  82869. $name = _this.interpolatedIdentifier$0();
  82870. t1.name = $name;
  82871. t3 = $name;
  82872. }
  82873. _this.whitespace$0();
  82874. t2.expectChar$1(58);
  82875. _this.whitespace$0();
  82876. if (_this.lookingAtChildren$0()) {
  82877. if (_this.get$plainCss())
  82878. t2.error$1(_s48_);
  82879. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure1(t1));
  82880. }
  82881. value = _this.expression$0();
  82882. if (_this.lookingAtChildren$0()) {
  82883. if (_this.get$plainCss())
  82884. t2.error$1(_s48_);
  82885. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure2(t1, value));
  82886. } else {
  82887. _this.expectStatementSeparator$0();
  82888. return L.Declaration$0(t3, t2.spanFrom$1(start), null, value);
  82889. }
  82890. },
  82891. _stylesheet0$_declarationChild$0: function() {
  82892. if (this.scanner.peekChar$0() === 64)
  82893. return this._stylesheet0$_declarationAtRule$0();
  82894. return this._stylesheet0$_propertyOrVariableDeclaration$0();
  82895. },
  82896. atRule$2$root: function(child, root) {
  82897. var $name, wasUseAllowed, value, optional, url, namespace, configuration, span, _this = this,
  82898. _s9_ = "@use rule",
  82899. t1 = _this.scanner,
  82900. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82901. t1.expectChar$2$name(64, "@-rule");
  82902. $name = _this.interpolatedIdentifier$0();
  82903. _this.whitespace$0();
  82904. wasUseAllowed = _this._stylesheet0$_isUseAllowed;
  82905. _this._stylesheet0$_isUseAllowed = false;
  82906. switch ($name.get$asPlain()) {
  82907. case "at-root":
  82908. return _this._stylesheet0$_atRootRule$1(start);
  82909. case "charset":
  82910. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  82911. if (!root)
  82912. _this._stylesheet0$_disallowedAtRule$1(start);
  82913. _this.string$0();
  82914. return null;
  82915. case "content":
  82916. return _this._stylesheet0$_contentRule$1(start);
  82917. case "debug":
  82918. return _this._stylesheet0$_debugRule$1(start);
  82919. case "each":
  82920. return _this._stylesheet0$_eachRule$2(start, child);
  82921. case "else":
  82922. return _this._stylesheet0$_disallowedAtRule$1(start);
  82923. case "error":
  82924. return _this._stylesheet0$_errorRule$1(start);
  82925. case "extend":
  82926. if (!_this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inMixin && !_this._stylesheet0$_inContentBlock)
  82927. _this.error$2(string$.x40exten, t1.spanFrom$1(start));
  82928. value = _this.almostAnyValue$0();
  82929. optional = t1.scanChar$1(33);
  82930. if (optional)
  82931. _this.expectIdentifier$1("optional");
  82932. _this.expectStatementSeparator$1("@extend rule");
  82933. return new X.ExtendRule0(value, optional, t1.spanFrom$1(start));
  82934. case "for":
  82935. return _this._stylesheet0$_forRule$2(start, child);
  82936. case "forward":
  82937. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  82938. if (!root)
  82939. _this._stylesheet0$_disallowedAtRule$1(start);
  82940. return _this._stylesheet0$_forwardRule$1(start);
  82941. case "function":
  82942. return _this._stylesheet0$_functionRule$1(start);
  82943. case "if":
  82944. return _this._stylesheet0$_ifRule$2(start, child);
  82945. case "import":
  82946. return _this._stylesheet0$_importRule$1(start);
  82947. case "include":
  82948. return _this._stylesheet0$_includeRule$1(start);
  82949. case "media":
  82950. return _this.mediaRule$1(start);
  82951. case "mixin":
  82952. return _this._stylesheet0$_mixinRule$1(start);
  82953. case "-moz-document":
  82954. return _this.mozDocumentRule$2(start, $name);
  82955. case "return":
  82956. return _this._stylesheet0$_disallowedAtRule$1(start);
  82957. case "supports":
  82958. return _this.supportsRule$1(start);
  82959. case "use":
  82960. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  82961. if (!root)
  82962. _this._stylesheet0$_disallowedAtRule$1(start);
  82963. url = _this._stylesheet0$_urlString$0();
  82964. _this.whitespace$0();
  82965. namespace = _this._stylesheet0$_useNamespace$2(url, start);
  82966. _this.whitespace$0();
  82967. configuration = _this._stylesheet0$_configuration$0();
  82968. _this.expectStatementSeparator$1(_s9_);
  82969. span = t1.spanFrom$1(start);
  82970. if (!_this._stylesheet0$_isUseAllowed)
  82971. _this.error$2(string$.x40use_r, span);
  82972. _this.expectStatementSeparator$1(_s9_);
  82973. return T.UseRule$0(url, namespace, span, configuration);
  82974. case "warn":
  82975. return _this._stylesheet0$_warnRule$1(start);
  82976. case "while":
  82977. return _this._stylesheet0$_whileRule$2(start, child);
  82978. default:
  82979. return _this.unknownAtRule$2(start, $name);
  82980. }
  82981. },
  82982. _stylesheet0$_declarationAtRule$0: function() {
  82983. var _this = this,
  82984. t1 = _this.scanner,
  82985. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82986. switch (_this._stylesheet0$_plainAtRuleName$0()) {
  82987. case "content":
  82988. return _this._stylesheet0$_contentRule$1(start);
  82989. case "debug":
  82990. return _this._stylesheet0$_debugRule$1(start);
  82991. case "each":
  82992. return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_declarationChild());
  82993. case "else":
  82994. return _this._stylesheet0$_disallowedAtRule$1(start);
  82995. case "error":
  82996. return _this._stylesheet0$_errorRule$1(start);
  82997. case "for":
  82998. return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_declarationAtRule());
  82999. case "if":
  83000. return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_declarationChild());
  83001. case "include":
  83002. return _this._stylesheet0$_includeRule$1(start);
  83003. case "warn":
  83004. return _this._stylesheet0$_warnRule$1(start);
  83005. case "while":
  83006. return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_declarationChild());
  83007. default:
  83008. return _this._stylesheet0$_disallowedAtRule$1(start);
  83009. }
  83010. },
  83011. _stylesheet0$_functionChild$0: function() {
  83012. var state, variableDeclarationError, statement, t2, namespace, exception, t3, start, value, _this = this,
  83013. t1 = _this.scanner;
  83014. if (t1.peekChar$0() !== 64) {
  83015. t2 = t1._string_scanner$_position;
  83016. state = new S._SpanScannerState(t1, t2);
  83017. try {
  83018. namespace = _this.identifier$0();
  83019. t1.expectChar$1(46);
  83020. t2 = _this.variableDeclarationWithoutNamespace$2(namespace, new S._SpanScannerState(t1, t2));
  83021. return t2;
  83022. } catch (exception) {
  83023. t2 = H.unwrapException(exception);
  83024. t3 = type$.legacy_SourceSpanFormatException;
  83025. if (t3._is(t2)) {
  83026. variableDeclarationError = t2;
  83027. t1.set$state(state);
  83028. statement = null;
  83029. try {
  83030. statement = _this._stylesheet0$_declarationOrStyleRule$0();
  83031. } catch (exception) {
  83032. if (t3._is(H.unwrapException(exception)))
  83033. throw H.wrapException(variableDeclarationError);
  83034. else
  83035. throw exception;
  83036. }
  83037. _this.error$2("@function rules may not contain " + (statement instanceof X.StyleRule0 ? "style rules" : "declarations") + ".", statement.get$span());
  83038. } else
  83039. throw exception;
  83040. }
  83041. }
  83042. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  83043. switch (_this._stylesheet0$_plainAtRuleName$0()) {
  83044. case "debug":
  83045. return _this._stylesheet0$_debugRule$1(start);
  83046. case "each":
  83047. return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_functionChild());
  83048. case "else":
  83049. return _this._stylesheet0$_disallowedAtRule$1(start);
  83050. case "error":
  83051. return _this._stylesheet0$_errorRule$1(start);
  83052. case "for":
  83053. return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_functionChild());
  83054. case "if":
  83055. return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_functionChild());
  83056. case "return":
  83057. value = _this.expression$0();
  83058. _this.expectStatementSeparator$1("@return rule");
  83059. return new B.ReturnRule0(value, t1.spanFrom$1(start));
  83060. case "warn":
  83061. return _this._stylesheet0$_warnRule$1(start);
  83062. case "while":
  83063. return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_functionChild());
  83064. default:
  83065. return _this._stylesheet0$_disallowedAtRule$1(start);
  83066. }
  83067. },
  83068. _stylesheet0$_plainAtRuleName$0: function() {
  83069. this.scanner.expectChar$2$name(64, "@-rule");
  83070. var $name = this.identifier$0();
  83071. this.whitespace$0();
  83072. return $name;
  83073. },
  83074. _stylesheet0$_atRootRule$1: function(start) {
  83075. var query, t2, t3, _this = this,
  83076. t1 = _this.scanner;
  83077. if (t1.peekChar$0() === 40) {
  83078. query = _this._stylesheet0$_atRootQuery$0();
  83079. _this.whitespace$0();
  83080. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__atRootRule_closure1(query));
  83081. } else if (_this.lookingAtChildren$0())
  83082. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__atRootRule_closure2());
  83083. else {
  83084. t2 = H.setRuntimeTypeInfo([_this._stylesheet0$_styleRule$0()], type$.JSArray_legacy_Statement_2);
  83085. t1 = t1.spanFrom$1(start);
  83086. t2 = P.List_List$unmodifiable(t2, type$.legacy_Statement_2);
  83087. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  83088. return new V.AtRootRule0(null, t1, t2, t3);
  83089. }
  83090. },
  83091. _stylesheet0$_atRootQuery$0: function() {
  83092. var interpolation, t2, t3, t4, buffer, t5, _this = this,
  83093. t1 = _this.scanner;
  83094. if (t1.peekChar$0() === 35) {
  83095. interpolation = _this.singleInterpolation$0();
  83096. return X.Interpolation$0(H.setRuntimeTypeInfo([interpolation], type$.JSArray_legacy_Object), interpolation.get$span());
  83097. }
  83098. t2 = t1._string_scanner$_position;
  83099. t3 = new P.StringBuffer("");
  83100. t4 = [];
  83101. buffer = new Z.InterpolationBuffer0(t3, t4);
  83102. t1.expectChar$1(40);
  83103. t3._contents += H.Primitives_stringFromCharCode(40);
  83104. _this.whitespace$0();
  83105. t5 = _this.expression$0();
  83106. buffer._interpolation_buffer0$_flushText$0();
  83107. t4.push(t5);
  83108. if (t1.scanChar$1(58)) {
  83109. _this.whitespace$0();
  83110. t3._contents += H.Primitives_stringFromCharCode(58);
  83111. t3._contents += H.Primitives_stringFromCharCode(32);
  83112. t5 = _this.expression$0();
  83113. buffer._interpolation_buffer0$_flushText$0();
  83114. t4.push(t5);
  83115. }
  83116. t1.expectChar$1(41);
  83117. _this.whitespace$0();
  83118. t3._contents += H.Primitives_stringFromCharCode(41);
  83119. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  83120. },
  83121. _stylesheet0$_contentRule$1: function(start) {
  83122. var t1, $arguments, t2, t3, _this = this;
  83123. if (!_this._stylesheet0$_inMixin)
  83124. _this.error$2(string$.x40conte, _this.scanner.spanFrom$1(start));
  83125. _this.whitespace$0();
  83126. t1 = _this.scanner;
  83127. if (t1.peekChar$0() === 40)
  83128. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  83129. else {
  83130. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  83131. t3 = t2.offset;
  83132. $arguments = new X.ArgumentInvocation0(C.List_empty19, C.Map_empty9, null, null, Y._FileSpan$(t2.file, t3, t3));
  83133. }
  83134. _this._stylesheet0$_mixinHasContent = true;
  83135. _this.expectStatementSeparator$1("@content rule");
  83136. return new Q.ContentRule0(t1.spanFrom$1(start), $arguments);
  83137. },
  83138. _stylesheet0$_debugRule$1: function(start) {
  83139. var value = this.expression$0();
  83140. this.expectStatementSeparator$1("@debug rule");
  83141. return new Q.DebugRule0(value, this.scanner.spanFrom$1(start));
  83142. },
  83143. _stylesheet0$_eachRule$2: function(start, child) {
  83144. var variables, t1, _this = this,
  83145. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  83146. _this._stylesheet0$_inControlDirective = true;
  83147. variables = H.setRuntimeTypeInfo([_this.variableName$0()], type$.JSArray_legacy_String);
  83148. _this.whitespace$0();
  83149. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  83150. _this.whitespace$0();
  83151. t1.expectChar$1(36);
  83152. variables.push(_this.identifier$1$normalize(true));
  83153. _this.whitespace$0();
  83154. }
  83155. _this.expectIdentifier$1("in");
  83156. _this.whitespace$0();
  83157. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__eachRule_closure0(_this, wasInControlDirective, variables, _this.expression$0()));
  83158. },
  83159. _stylesheet0$_errorRule$1: function(start) {
  83160. var value = this.expression$0();
  83161. this.expectStatementSeparator$1("@error rule");
  83162. return new D.ErrorRule0(value, this.scanner.spanFrom$1(start));
  83163. },
  83164. _stylesheet0$_functionRule$1: function(start) {
  83165. var $name, $arguments, _this = this,
  83166. precedingComment = _this.lastSilentComment;
  83167. _this.lastSilentComment = null;
  83168. $name = _this.identifier$1$normalize(true);
  83169. _this.whitespace$0();
  83170. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  83171. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  83172. _this.error$2(string$.Mixinscf, _this.scanner.spanFrom$1(start));
  83173. else if (_this._stylesheet0$_inControlDirective)
  83174. _this.error$2(string$.Functi, _this.scanner.spanFrom$1(start));
  83175. switch (B.unvendor0($name)) {
  83176. case "calc":
  83177. case "element":
  83178. case "expression":
  83179. case "url":
  83180. case "and":
  83181. case "or":
  83182. case "not":
  83183. _this.error$2("Invalid function name.", _this.scanner.spanFrom$1(start));
  83184. break;
  83185. }
  83186. _this.whitespace$0();
  83187. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_functionChild(), start, new V.StylesheetParser__functionRule_closure0($name, $arguments, precedingComment));
  83188. },
  83189. _stylesheet0$_forRule$2: function(start, child) {
  83190. var variable, from, _this = this, t1 = {},
  83191. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  83192. _this._stylesheet0$_inControlDirective = true;
  83193. variable = _this.variableName$0();
  83194. _this.whitespace$0();
  83195. _this.expectIdentifier$1("from");
  83196. _this.whitespace$0();
  83197. t1.exclusive = null;
  83198. from = _this.expression$1$until(new V.StylesheetParser__forRule_closure1(t1, _this));
  83199. if (t1.exclusive == null)
  83200. _this.scanner.error$1('Expected "to" or "through".');
  83201. _this.whitespace$0();
  83202. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__forRule_closure2(t1, _this, wasInControlDirective, variable, from, _this.expression$0()));
  83203. },
  83204. _stylesheet0$_forwardRule$1: function(start) {
  83205. var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  83206. url = _this._stylesheet0$_urlString$0();
  83207. _this.whitespace$0();
  83208. if (_this.scanIdentifier$1("as")) {
  83209. _this.whitespace$0();
  83210. prefix = _this.identifier$1$normalize(true);
  83211. _this.scanner.expectChar$1(42);
  83212. _this.whitespace$0();
  83213. } else
  83214. prefix = _null;
  83215. if (_this.scanIdentifier$1("show")) {
  83216. members = _this._stylesheet0$_memberList$0();
  83217. shownMixinsAndFunctions = members.item1;
  83218. shownVariables = members.item2;
  83219. hiddenVariables = _null;
  83220. hiddenMixinsAndFunctions = hiddenVariables;
  83221. } else {
  83222. if (_this.scanIdentifier$1("hide")) {
  83223. members = _this._stylesheet0$_memberList$0();
  83224. hiddenMixinsAndFunctions = members.item1;
  83225. hiddenVariables = members.item2;
  83226. } else {
  83227. hiddenVariables = _null;
  83228. hiddenMixinsAndFunctions = hiddenVariables;
  83229. }
  83230. shownVariables = _null;
  83231. shownMixinsAndFunctions = shownVariables;
  83232. }
  83233. configuration = _this._stylesheet0$_configuration$1$allowGuarded(true);
  83234. _this.expectStatementSeparator$1("@forward rule");
  83235. span = _this.scanner.spanFrom$1(start);
  83236. if (!_this._stylesheet0$_isUseAllowed)
  83237. _this.error$2(string$.x40forwa, span);
  83238. if (shownMixinsAndFunctions != null) {
  83239. t1 = type$.legacy_String;
  83240. t2 = P.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  83241. t3 = type$.UnmodifiableSetView_legacy_String;
  83242. t1 = P.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  83243. t4 = configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable_2);
  83244. return new L.ForwardRule0(url, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
  83245. } else if (hiddenMixinsAndFunctions != null) {
  83246. t1 = type$.legacy_String;
  83247. t2 = P.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  83248. t3 = type$.UnmodifiableSetView_legacy_String;
  83249. t1 = P.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  83250. t4 = configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable_2);
  83251. return new L.ForwardRule0(url, _null, _null, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), prefix, t4, span);
  83252. } else
  83253. return new L.ForwardRule0(url, _null, _null, _null, _null, prefix, configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable_2), span);
  83254. },
  83255. _stylesheet0$_memberList$0: function() {
  83256. var _this = this,
  83257. t1 = type$.legacy_String,
  83258. identifiers = P.LinkedHashSet_LinkedHashSet$_empty(t1),
  83259. variables = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  83260. t1 = _this.scanner;
  83261. do {
  83262. _this.whitespace$0();
  83263. _this.withErrorMessage$2(string$.Expect, new V.StylesheetParser__memberList_closure0(_this, variables, identifiers));
  83264. _this.whitespace$0();
  83265. } while (t1.scanChar$1(44));
  83266. return new S.Tuple2(identifiers, variables, type$.Tuple2_of_legacy_Set_legacy_String_and_legacy_Set_legacy_String);
  83267. },
  83268. _stylesheet0$_ifRule$2: function(start, child) {
  83269. var condition, children, t1, t2, clauses, lastClause, result, t3, span, _this = this,
  83270. ifIndentation = _this.get$currentIndentation(),
  83271. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  83272. _this._stylesheet0$_inControlDirective = true;
  83273. condition = _this.expression$0();
  83274. children = _this.children$1(child);
  83275. _this.whitespaceWithoutComments$0();
  83276. t1 = type$.legacy_Statement_2;
  83277. t2 = P.List_List$unmodifiable(children, t1);
  83278. clauses = H.setRuntimeTypeInfo([new V.IfClause0(condition, t2, C.JSArray_methods.any$1(t2, new V.IfClause$__closure0()))], type$.JSArray_legacy_IfClause_2);
  83279. while (true) {
  83280. if (!_this.scanElse$1(ifIndentation)) {
  83281. lastClause = null;
  83282. break;
  83283. }
  83284. _this.whitespace$0();
  83285. if (_this.scanIdentifier$1("if")) {
  83286. _this.whitespace$0();
  83287. t2 = _this.expression$0();
  83288. result = P.List_List$from(_this.children$1(child), false, t1);
  83289. result.fixed$length = Array;
  83290. result.immutable$list = Array;
  83291. t3 = result;
  83292. clauses.push(new V.IfClause0(t2, t3, C.JSArray_methods.any$1(t3, new V.IfClause$__closure0())));
  83293. } else {
  83294. result = P.List_List$from(_this.children$1(child), false, t1);
  83295. result.fixed$length = Array;
  83296. result.immutable$list = Array;
  83297. t1 = result;
  83298. lastClause = new V.IfClause0(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure0()));
  83299. break;
  83300. }
  83301. }
  83302. _this._stylesheet0$_inControlDirective = wasInControlDirective;
  83303. span = _this.scanner.spanFrom$1(start);
  83304. _this.whitespaceWithoutComments$0();
  83305. return new V.IfRule0(P.List_List$unmodifiable(clauses, type$.legacy_IfClause_2), lastClause, span);
  83306. },
  83307. _stylesheet0$_importRule$1: function(start) {
  83308. var argument, _this = this,
  83309. imports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Import_2),
  83310. t1 = _this.scanner;
  83311. do {
  83312. _this.whitespace$0();
  83313. argument = _this.importArgument$0();
  83314. if ((_this._stylesheet0$_inControlDirective || _this._stylesheet0$_inMixin) && argument instanceof B.DynamicImport0)
  83315. _this._stylesheet0$_disallowedAtRule$1(start);
  83316. imports.push(argument);
  83317. _this.whitespace$0();
  83318. } while (t1.scanChar$1(44));
  83319. _this.expectStatementSeparator$1("@import rule");
  83320. t1 = t1.spanFrom$1(start);
  83321. return new B.ImportRule0(P.List_List$unmodifiable(imports, type$.legacy_Import_2), t1);
  83322. },
  83323. importArgument$0: function() {
  83324. var url, urlSpan, innerError, queries, t2, t3, t4, exception, _this = this, _null = null,
  83325. t1 = _this.scanner,
  83326. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  83327. next = t1.peekChar$0();
  83328. if (next === 117 || next === 85) {
  83329. url = _this.dynamicUrl$0();
  83330. _this.whitespace$0();
  83331. queries = _this.tryImportQueries$0();
  83332. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([url], type$.JSArray_legacy_Object), t1.spanFrom$1(start));
  83333. t1 = t1.spanFrom$1(start);
  83334. t3 = queries == null;
  83335. t4 = t3 ? _null : queries.item1;
  83336. return new Q.StaticImport0(t2, t4, t3 ? _null : queries.item2, t1);
  83337. }
  83338. url = _this.string$0();
  83339. urlSpan = t1.spanFrom$1(start);
  83340. _this.whitespace$0();
  83341. queries = _this.tryImportQueries$0();
  83342. if (_this.isPlainImportUrl$1(url) || queries != null) {
  83343. t2 = urlSpan;
  83344. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null)], type$.JSArray_legacy_Object), urlSpan);
  83345. t1 = t1.spanFrom$1(start);
  83346. t3 = queries == null;
  83347. t4 = t3 ? _null : queries.item1;
  83348. return new Q.StaticImport0(t2, t4, t3 ? _null : queries.item2, t1);
  83349. } else
  83350. try {
  83351. t1 = _this.parseImportUrl$1(url);
  83352. return new B.DynamicImport0(t1, urlSpan);
  83353. } catch (exception) {
  83354. t1 = H.unwrapException(exception);
  83355. if (type$.legacy_FormatException._is(t1)) {
  83356. innerError = t1;
  83357. _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), urlSpan);
  83358. } else
  83359. throw exception;
  83360. }
  83361. },
  83362. parseImportUrl$1: function(url) {
  83363. var t1 = $.$get$windows();
  83364. if (t1.style.rootLength$1(url) > 0)
  83365. return t1.toUri$1(url).toString$0(0);
  83366. P.Uri_parse(url);
  83367. return url;
  83368. },
  83369. isPlainImportUrl$1: function(url) {
  83370. var first;
  83371. if (url.length < 5)
  83372. return false;
  83373. if (C.JSString_methods.endsWith$1(url, ".css"))
  83374. return true;
  83375. first = C.JSString_methods._codeUnitAt$1(url, 0);
  83376. if (first === 47)
  83377. return C.JSString_methods._codeUnitAt$1(url, 1) === 47;
  83378. if (first !== 104)
  83379. return false;
  83380. return C.JSString_methods.startsWith$1(url, "http://") || C.JSString_methods.startsWith$1(url, "https://");
  83381. },
  83382. tryImportQueries$0: function() {
  83383. var t1, start, supports, $name, media, _this = this;
  83384. if (_this.scanIdentifier$1("supports")) {
  83385. t1 = _this.scanner;
  83386. t1.expectChar$1(40);
  83387. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  83388. if (_this.scanIdentifier$1("not")) {
  83389. _this.whitespace$0();
  83390. supports = new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(start));
  83391. } else if (t1.peekChar$0() === 40)
  83392. supports = _this._stylesheet0$_supportsCondition$0();
  83393. else {
  83394. $name = _this.expression$0();
  83395. t1.expectChar$1(58);
  83396. _this.whitespace$0();
  83397. supports = new L.SupportsDeclaration0($name, _this.expression$0(), t1.spanFrom$1(start));
  83398. }
  83399. t1.expectChar$1(41);
  83400. _this.whitespace$0();
  83401. } else
  83402. supports = null;
  83403. media = _this._stylesheet0$_lookingAtInterpolatedIdentifier$0() || _this.scanner.peekChar$0() === 40 ? _this._stylesheet0$_mediaQueryList$0() : null;
  83404. if (supports == null && media == null)
  83405. return null;
  83406. return new S.Tuple2(supports, media, type$.Tuple2_of_legacy_SupportsCondition_and_legacy_Interpolation_2);
  83407. },
  83408. _stylesheet0$_includeRule$1: function(start) {
  83409. var name0, namespace, $arguments, t3, t4, wasInContentBlock, $content, _this = this, _null = null, t1 = {},
  83410. $name = _this.identifier$0(),
  83411. t2 = _this.scanner;
  83412. if (t2.scanChar$1(46)) {
  83413. name0 = _this._stylesheet0$_publicIdentifier$0();
  83414. namespace = $name;
  83415. $name = name0;
  83416. } else {
  83417. $name = H.stringReplaceAllUnchecked($name, "_", "-");
  83418. namespace = _null;
  83419. }
  83420. _this.whitespace$0();
  83421. if (t2.peekChar$0() === 40)
  83422. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  83423. else {
  83424. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  83425. t4 = t3.offset;
  83426. $arguments = new X.ArgumentInvocation0(C.List_empty19, C.Map_empty9, _null, _null, Y._FileSpan$(t3.file, t4, t4));
  83427. }
  83428. _this.whitespace$0();
  83429. t1.contentArguments = null;
  83430. if (_this.scanIdentifier$1("using")) {
  83431. _this.whitespace$0();
  83432. t3 = t1.contentArguments = _this._stylesheet0$_argumentDeclaration$0();
  83433. _this.whitespace$0();
  83434. } else
  83435. t3 = _null;
  83436. t3 = t3 == null;
  83437. if (!t3 || _this.lookingAtChildren$0()) {
  83438. if (t3) {
  83439. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  83440. t4 = t3.offset;
  83441. t1.contentArguments = new B.ArgumentDeclaration0(C.List_empty20, _null, Y._FileSpan$(t3.file, t4, t4));
  83442. }
  83443. wasInContentBlock = _this._stylesheet0$_inContentBlock;
  83444. _this._stylesheet0$_inContentBlock = true;
  83445. $content = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__includeRule_closure0(t1));
  83446. _this._stylesheet0$_inContentBlock = wasInContentBlock;
  83447. } else {
  83448. _this.expectStatementSeparator$0();
  83449. $content = _null;
  83450. }
  83451. t1 = t2.spanFrom$2(start, start);
  83452. return new A.IncludeRule0(namespace, $name, $arguments, $content, t1.expand$1(0, ($content == null ? $arguments : $content).get$span()));
  83453. },
  83454. mediaRule$1: function(start) {
  83455. return this._stylesheet0$_withChildren$3(this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_mediaRule_closure0(this._stylesheet0$_mediaQueryList$0()));
  83456. },
  83457. _stylesheet0$_mixinRule$1: function(start) {
  83458. var $name, t1, $arguments, t2, t3, _this = this,
  83459. precedingComment = _this.lastSilentComment;
  83460. _this.lastSilentComment = null;
  83461. $name = _this.identifier$1$normalize(true);
  83462. _this.whitespace$0();
  83463. t1 = _this.scanner;
  83464. if (t1.peekChar$0() === 40)
  83465. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  83466. else {
  83467. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  83468. t3 = t2.offset;
  83469. $arguments = new B.ArgumentDeclaration0(C.List_empty20, null, Y._FileSpan$(t2.file, t3, t3));
  83470. }
  83471. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  83472. _this.error$2(string$.Mixinscm, t1.spanFrom$1(start));
  83473. else if (_this._stylesheet0$_inControlDirective)
  83474. _this.error$2(string$.Mixinsb, t1.spanFrom$1(start));
  83475. _this.whitespace$0();
  83476. _this._stylesheet0$_inMixin = true;
  83477. _this._stylesheet0$_mixinHasContent = false;
  83478. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__mixinRule_closure0(_this, $name, $arguments, precedingComment));
  83479. },
  83480. mozDocumentRule$2: function(start, $name) {
  83481. var t5, t6, identifier, contents, argument, trailing, endPosition, start0, end, _this = this, _box_0 = {},
  83482. t1 = _this.scanner,
  83483. t2 = t1._string_scanner$_position,
  83484. t3 = new P.StringBuffer(""),
  83485. t4 = [],
  83486. buffer = new Z.InterpolationBuffer0(t3, t4);
  83487. _box_0.needsDeprecationWarning = false;
  83488. for (t5 = _this.get$whitespace(); true;) {
  83489. if (t1.peekChar$0() === 35) {
  83490. t6 = _this.singleInterpolation$0();
  83491. buffer._interpolation_buffer0$_flushText$0();
  83492. t4.push(t6);
  83493. _box_0.needsDeprecationWarning = true;
  83494. } else {
  83495. t6 = t1._string_scanner$_position;
  83496. identifier = _this.identifier$0();
  83497. switch (identifier) {
  83498. case "url":
  83499. case "url-prefix":
  83500. case "domain":
  83501. contents = _this._stylesheet0$_tryUrlContents$2$name(new S._SpanScannerState(t1, t6), identifier);
  83502. if (contents != null)
  83503. buffer.addInterpolation$1(contents);
  83504. else {
  83505. t1.expectChar$1(40);
  83506. _this.whitespace$0();
  83507. argument = _this.interpolatedString$0();
  83508. t1.expectChar$1(41);
  83509. t3._contents += identifier;
  83510. t3._contents += H.Primitives_stringFromCharCode(40);
  83511. buffer.addInterpolation$1(argument.asInterpolation$0());
  83512. t3._contents += H.Primitives_stringFromCharCode(41);
  83513. }
  83514. t6 = t3._contents;
  83515. trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
  83516. if (!C.JSString_methods.endsWith$1(trailing, "url-prefix()") && !C.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !C.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  83517. _box_0.needsDeprecationWarning = true;
  83518. break;
  83519. case "regexp":
  83520. t3._contents += "regexp(";
  83521. t1.expectChar$1(40);
  83522. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  83523. t1.expectChar$1(41);
  83524. t3._contents += H.Primitives_stringFromCharCode(41);
  83525. _box_0.needsDeprecationWarning = true;
  83526. break;
  83527. default:
  83528. endPosition = t1._string_scanner$_position;
  83529. _this.error$2("Invalid function name.", Y._FileSpan$(t1._sourceFile, t6, endPosition));
  83530. }
  83531. }
  83532. _this.whitespace$0();
  83533. if (!t1.scanChar$1(44))
  83534. break;
  83535. t3._contents += H.Primitives_stringFromCharCode(44);
  83536. start0 = t1._string_scanner$_position;
  83537. t5.call$0();
  83538. end = t1._string_scanner$_position;
  83539. t3._contents += J.substring$2$s(t1.string, start0, end);
  83540. }
  83541. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_mozDocumentRule_closure0(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)))));
  83542. },
  83543. supportsRule$1: function(start) {
  83544. var _this = this,
  83545. condition = _this._stylesheet0$_supportsCondition$0();
  83546. _this.whitespace$0();
  83547. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_supportsRule_closure0(condition));
  83548. },
  83549. _stylesheet0$_useNamespace$2: function(url, start) {
  83550. var namespace, basename, dot, t1, exception, _this = this;
  83551. if (_this.scanIdentifier$1("as")) {
  83552. _this.whitespace$0();
  83553. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  83554. }
  83555. basename = url.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(url.get$pathSegments());
  83556. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  83557. t1 = C.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  83558. namespace = C.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  83559. try {
  83560. t1 = G.Parser$1(namespace, _this.logger, null)._parser$_parseIdentifier$0();
  83561. return t1;
  83562. } catch (exception) {
  83563. if (H.unwrapException(exception) instanceof E.SassFormatException0)
  83564. _this.error$2('Invalid Sass identifier "' + H.S(namespace) + '"', _this.scanner.spanFrom$1(start));
  83565. else
  83566. throw exception;
  83567. }
  83568. },
  83569. _stylesheet0$_configuration$1$allowGuarded: function(allowGuarded) {
  83570. var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, span, _this = this;
  83571. if (!_this.scanIdentifier$1("with"))
  83572. return null;
  83573. variableNames = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  83574. configuration = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ConfiguredVariable_2);
  83575. _this.whitespace$0();
  83576. t1 = _this.scanner;
  83577. t1.expectChar$1(40);
  83578. for (; true;) {
  83579. _this.whitespace$0();
  83580. t2 = t1._string_scanner$_position;
  83581. t1.expectChar$1(36);
  83582. $name = _this.identifier$1$normalize(true);
  83583. _this.whitespace$0();
  83584. t1.expectChar$1(58);
  83585. _this.whitespace$0();
  83586. expression = _this._stylesheet0$_expressionUntilComma$0();
  83587. t3 = t1._string_scanner$_position;
  83588. if (allowGuarded && t1.scanChar$1(33))
  83589. if (_this.identifier$0() === "default")
  83590. guarded = true;
  83591. else {
  83592. endPosition = t1._string_scanner$_position;
  83593. _this.error$2("Invalid flag name.", Y._FileSpan$(t1._sourceFile, t3, endPosition));
  83594. guarded = false;
  83595. }
  83596. else
  83597. guarded = false;
  83598. endPosition = t1._string_scanner$_position;
  83599. span = Y._FileSpan$(t1._sourceFile, t2, endPosition);
  83600. if (variableNames.contains$1(0, $name))
  83601. _this.error$2(string$.The_sa, span);
  83602. variableNames.add$1(0, $name);
  83603. configuration.push(new Z.ConfiguredVariable0($name, expression, guarded, span));
  83604. if (!t1.scanChar$1(44))
  83605. break;
  83606. _this.whitespace$0();
  83607. if (!_this._stylesheet0$_lookingAtExpression$0())
  83608. break;
  83609. }
  83610. t1.expectChar$1(41);
  83611. return configuration;
  83612. },
  83613. _stylesheet0$_configuration$0: function() {
  83614. return this._stylesheet0$_configuration$1$allowGuarded(false);
  83615. },
  83616. _stylesheet0$_warnRule$1: function(start) {
  83617. var value = this.expression$0();
  83618. this.expectStatementSeparator$1("@warn rule");
  83619. return new Y.WarnRule0(value, this.scanner.spanFrom$1(start));
  83620. },
  83621. _stylesheet0$_whileRule$2: function(start, child) {
  83622. var _this = this,
  83623. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  83624. _this._stylesheet0$_inControlDirective = true;
  83625. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__whileRule_closure0(_this, wasInControlDirective, _this.expression$0()));
  83626. },
  83627. unknownAtRule$2: function(start, $name) {
  83628. var t2, t3, rule, _this = this, t1 = {},
  83629. wasInUnknownAtRule = _this._stylesheet0$_inUnknownAtRule;
  83630. _this._stylesheet0$_inUnknownAtRule = true;
  83631. t1.value = null;
  83632. t2 = _this.scanner;
  83633. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
  83634. if (_this.lookingAtChildren$0())
  83635. rule = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_unknownAtRule_closure0(t1, $name));
  83636. else {
  83637. _this.expectStatementSeparator$0();
  83638. rule = U.AtRule$0($name, t2.spanFrom$1(start), null, t3);
  83639. }
  83640. _this._stylesheet0$_inUnknownAtRule = wasInUnknownAtRule;
  83641. return rule;
  83642. },
  83643. _stylesheet0$_disallowedAtRule$1: function(start) {
  83644. this.almostAnyValue$0();
  83645. this.error$2("This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  83646. },
  83647. _stylesheet0$_argumentDeclaration$0: function() {
  83648. var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, _this = this,
  83649. t1 = _this.scanner,
  83650. t2 = t1._string_scanner$_position;
  83651. t1.expectChar$1(40);
  83652. _this.whitespace$0();
  83653. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Argument_2);
  83654. named = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  83655. while (true) {
  83656. if (!(t1.peekChar$0() === 36)) {
  83657. restArgument = null;
  83658. break;
  83659. }
  83660. t3 = t1._string_scanner$_position;
  83661. t1.expectChar$1(36);
  83662. $name = _this.identifier$1$normalize(true);
  83663. _this.whitespace$0();
  83664. if (t1.scanChar$1(58)) {
  83665. _this.whitespace$0();
  83666. defaultValue = _this._stylesheet0$_expressionUntilComma$0();
  83667. } else {
  83668. if (t1.scanChar$1(46)) {
  83669. t1.expectChar$1(46);
  83670. t1.expectChar$1(46);
  83671. _this.whitespace$0();
  83672. restArgument = $name;
  83673. break;
  83674. }
  83675. defaultValue = null;
  83676. }
  83677. endPosition = t1._string_scanner$_position;
  83678. $arguments.push(new Z.Argument0($name, defaultValue, Y._FileSpan$(t1._sourceFile, t3, endPosition)));
  83679. if (!named.add$1(0, $name))
  83680. _this.error$2("Duplicate argument.", C.JSArray_methods.get$last($arguments).span);
  83681. if (!t1.scanChar$1(44)) {
  83682. restArgument = null;
  83683. break;
  83684. }
  83685. _this.whitespace$0();
  83686. }
  83687. t1.expectChar$1(41);
  83688. t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  83689. return new B.ArgumentDeclaration0(P.List_List$unmodifiable($arguments, type$.legacy_Argument_2), restArgument, t1);
  83690. },
  83691. _stylesheet0$_argumentInvocation$1$mixin: function(mixin) {
  83692. var positional, named, keywordRest, t3, rest, expression, t4, _this = this,
  83693. t1 = _this.scanner,
  83694. t2 = t1._string_scanner$_position;
  83695. t1.expectChar$1(40);
  83696. _this.whitespace$0();
  83697. positional = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  83698. named = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Expression_2);
  83699. t3 = !mixin;
  83700. rest = null;
  83701. while (true) {
  83702. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  83703. keywordRest = null;
  83704. break;
  83705. }
  83706. expression = _this._stylesheet0$_expressionUntilComma$1$singleEquals(t3);
  83707. _this.whitespace$0();
  83708. if (expression instanceof S.VariableExpression0 && t1.scanChar$1(58)) {
  83709. _this.whitespace$0();
  83710. t4 = expression.name;
  83711. if (named.containsKey$1(t4))
  83712. _this.error$2("Duplicate argument.", expression.span);
  83713. named.$indexSet(0, t4, _this._stylesheet0$_expressionUntilComma$1$singleEquals(t3));
  83714. } else if (t1.scanChar$1(46)) {
  83715. t1.expectChar$1(46);
  83716. t1.expectChar$1(46);
  83717. if (rest != null) {
  83718. _this.whitespace$0();
  83719. keywordRest = expression;
  83720. break;
  83721. }
  83722. rest = expression;
  83723. } else if (named.get$isNotEmpty(named))
  83724. _this.error$2(string$.Positi, expression.get$span());
  83725. else
  83726. positional.push(expression);
  83727. _this.whitespace$0();
  83728. if (!t1.scanChar$1(44)) {
  83729. keywordRest = null;
  83730. break;
  83731. }
  83732. _this.whitespace$0();
  83733. }
  83734. t1.expectChar$1(41);
  83735. return X.ArgumentInvocation$0(positional, named, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), keywordRest, rest);
  83736. },
  83737. _stylesheet0$_argumentInvocation$0: function() {
  83738. return this._stylesheet0$_argumentInvocation$1$mixin(false);
  83739. },
  83740. expression$3$bracketList$singleEquals$until: function(bracketList, singleEquals, until) {
  83741. var t2, beforeBracket, t3, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, first, next, t4, _this = this,
  83742. _s20_ = "Expected expression.",
  83743. _box_0 = {},
  83744. t1 = until != null;
  83745. if (t1 && until.call$0())
  83746. _this.scanner.error$1(_s20_);
  83747. if (bracketList) {
  83748. t2 = _this.scanner;
  83749. beforeBracket = new S._SpanScannerState(t2, t2._string_scanner$_position);
  83750. t2.expectChar$1(91);
  83751. _this.whitespace$0();
  83752. if (t2.scanChar$1(93)) {
  83753. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  83754. t2 = t2.spanFrom$1(beforeBracket);
  83755. t1 = P.List_List$unmodifiable(t1, type$.legacy_Expression_2);
  83756. return new D.ListExpression0(t1, C.ListSeparator_undecided0, true, t2);
  83757. }
  83758. } else
  83759. beforeBracket = null;
  83760. t2 = _this.scanner;
  83761. t3 = t2._string_scanner$_position;
  83762. wasInParentheses = _this._stylesheet0$_inParentheses;
  83763. _box_0.operands = _box_0.operators = _box_0.spaceExpressions = _box_0.singleEqualsOperand = _box_0.commaExpressions = null;
  83764. _box_0.allowSlash = _this.lookingAtNumber$0();
  83765. _box_0.singleExpression = _this._stylesheet0$_singleExpression$0();
  83766. resetState = new V.StylesheetParser_expression_resetState0(_box_0, _this, new S._SpanScannerState(t2, t3));
  83767. resolveOneOperation = new V.StylesheetParser_expression_resolveOneOperation0(_box_0, _this);
  83768. resolveOperations = new V.StylesheetParser_expression_resolveOperations0(_box_0, resolveOneOperation);
  83769. addSingleExpression = new V.StylesheetParser_expression_addSingleExpression0(_box_0, _this, resetState, resolveOperations);
  83770. addOperator = new V.StylesheetParser_expression_addOperator0(_box_0, _this, resolveOneOperation);
  83771. resolveSpaceExpressions = new V.StylesheetParser_expression_resolveSpaceExpressions0(_box_0, resolveOperations);
  83772. $label0$0:
  83773. for (t3 = type$.JSArray_legacy_Expression_2; true;) {
  83774. _this.whitespace$0();
  83775. if (t1 && until.call$0())
  83776. break $label0$0;
  83777. first = t2.peekChar$0();
  83778. switch (first) {
  83779. case 40:
  83780. addSingleExpression.call$1(_this._stylesheet0$_parentheses$0());
  83781. break;
  83782. case 91:
  83783. addSingleExpression.call$1(_this.expression$1$bracketList(true));
  83784. break;
  83785. case 36:
  83786. addSingleExpression.call$1(_this._stylesheet0$_variable$0());
  83787. break;
  83788. case 38:
  83789. addSingleExpression.call$1(_this._stylesheet0$_selector$0());
  83790. break;
  83791. case 39:
  83792. case 34:
  83793. addSingleExpression.call$1(_this.interpolatedString$0());
  83794. break;
  83795. case 35:
  83796. addSingleExpression.call$1(_this._stylesheet0$_hashExpression$0());
  83797. break;
  83798. case 61:
  83799. t2.readChar$0();
  83800. if (singleEquals && t2.peekChar$0() !== 61) {
  83801. resolveSpaceExpressions.call$0();
  83802. _box_0.singleEqualsOperand = _box_0.singleExpression;
  83803. _box_0.singleExpression = null;
  83804. } else {
  83805. t2.expectChar$1(61);
  83806. addOperator.call$1(C.BinaryOperator_YlX0);
  83807. }
  83808. break;
  83809. case 33:
  83810. next = t2.peekChar$1(1);
  83811. if (next === 61) {
  83812. t2.readChar$0();
  83813. t2.readChar$0();
  83814. addOperator.call$1(C.BinaryOperator_i5H0);
  83815. } else {
  83816. if (next != null)
  83817. if ((next | 32) !== 105)
  83818. t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  83819. else
  83820. t4 = true;
  83821. else
  83822. t4 = true;
  83823. if (t4)
  83824. addSingleExpression.call$1(_this._stylesheet0$_importantExpression$0());
  83825. else
  83826. break $label0$0;
  83827. }
  83828. break;
  83829. case 60:
  83830. t2.readChar$0();
  83831. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_33h0 : C.BinaryOperator_8qt0);
  83832. break;
  83833. case 62:
  83834. t2.readChar$0();
  83835. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_1da0 : C.BinaryOperator_AcR2);
  83836. break;
  83837. case 42:
  83838. t2.readChar$0();
  83839. addOperator.call$1(C.BinaryOperator_O1M0);
  83840. break;
  83841. case 43:
  83842. if (_box_0.singleExpression == null)
  83843. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  83844. else {
  83845. t2.readChar$0();
  83846. addOperator.call$1(C.BinaryOperator_AcR1);
  83847. }
  83848. break;
  83849. case 45:
  83850. next = t2.peekChar$1(1);
  83851. if (next != null && next >= 48 && next <= 57 || next === 46)
  83852. if (_box_0.singleExpression != null) {
  83853. t4 = t2.peekChar$1(-1);
  83854. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  83855. } else
  83856. t4 = true;
  83857. else
  83858. t4 = false;
  83859. if (t4)
  83860. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  83861. else if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  83862. addSingleExpression.call$1(_this.identifierLike$0());
  83863. else if (_box_0.singleExpression == null)
  83864. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  83865. else {
  83866. t2.readChar$0();
  83867. addOperator.call$1(C.BinaryOperator_iyO0);
  83868. }
  83869. break;
  83870. case 47:
  83871. if (_box_0.singleExpression == null)
  83872. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  83873. else {
  83874. t2.readChar$0();
  83875. addOperator.call$1(C.BinaryOperator_RTB0);
  83876. }
  83877. break;
  83878. case 37:
  83879. t2.readChar$0();
  83880. addOperator.call$1(C.BinaryOperator_2ad0);
  83881. break;
  83882. case 48:
  83883. case 49:
  83884. case 50:
  83885. case 51:
  83886. case 52:
  83887. case 53:
  83888. case 54:
  83889. case 55:
  83890. case 56:
  83891. case 57:
  83892. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  83893. break;
  83894. case 46:
  83895. if (t2.peekChar$1(1) === 46)
  83896. break $label0$0;
  83897. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  83898. break;
  83899. case 97:
  83900. if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
  83901. addOperator.call$1(C.BinaryOperator_and_and_20);
  83902. else
  83903. addSingleExpression.call$1(_this.identifierLike$0());
  83904. break;
  83905. case 111:
  83906. if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
  83907. addOperator.call$1(C.BinaryOperator_or_or_10);
  83908. else
  83909. addSingleExpression.call$1(_this.identifierLike$0());
  83910. break;
  83911. case 117:
  83912. case 85:
  83913. if (t2.peekChar$1(1) === 43)
  83914. addSingleExpression.call$1(_this._stylesheet0$_unicodeRange$0());
  83915. else
  83916. addSingleExpression.call$1(_this.identifierLike$0());
  83917. break;
  83918. case 98:
  83919. case 99:
  83920. case 100:
  83921. case 101:
  83922. case 102:
  83923. case 103:
  83924. case 104:
  83925. case 105:
  83926. case 106:
  83927. case 107:
  83928. case 108:
  83929. case 109:
  83930. case 110:
  83931. case 112:
  83932. case 113:
  83933. case 114:
  83934. case 115:
  83935. case 116:
  83936. case 118:
  83937. case 119:
  83938. case 120:
  83939. case 121:
  83940. case 122:
  83941. case 65:
  83942. case 66:
  83943. case 67:
  83944. case 68:
  83945. case 69:
  83946. case 70:
  83947. case 71:
  83948. case 72:
  83949. case 73:
  83950. case 74:
  83951. case 75:
  83952. case 76:
  83953. case 77:
  83954. case 78:
  83955. case 79:
  83956. case 80:
  83957. case 81:
  83958. case 82:
  83959. case 83:
  83960. case 84:
  83961. case 86:
  83962. case 87:
  83963. case 88:
  83964. case 89:
  83965. case 90:
  83966. case 95:
  83967. case 92:
  83968. addSingleExpression.call$1(_this.identifierLike$0());
  83969. break;
  83970. case 44:
  83971. if (_this._stylesheet0$_inParentheses) {
  83972. _this._stylesheet0$_inParentheses = false;
  83973. if (_box_0.allowSlash) {
  83974. resetState.call$0();
  83975. break;
  83976. }
  83977. }
  83978. if (_box_0.commaExpressions == null)
  83979. _box_0.commaExpressions = H.setRuntimeTypeInfo([], t3);
  83980. if (_box_0.singleExpression == null)
  83981. t2.error$1(_s20_);
  83982. resolveSpaceExpressions.call$0();
  83983. _box_0.commaExpressions.push(_box_0.singleExpression);
  83984. t2.readChar$0();
  83985. _box_0.allowSlash = true;
  83986. _box_0.singleExpression = null;
  83987. break;
  83988. default:
  83989. if (first != null && first >= 128) {
  83990. addSingleExpression.call$1(_this.identifierLike$0());
  83991. break;
  83992. } else
  83993. break $label0$0;
  83994. }
  83995. }
  83996. if (bracketList)
  83997. t2.expectChar$1(93);
  83998. if (_box_0.commaExpressions != null) {
  83999. resolveSpaceExpressions.call$0();
  84000. _this._stylesheet0$_inParentheses = wasInParentheses;
  84001. t1 = _box_0.singleExpression;
  84002. if (t1 != null)
  84003. _box_0.commaExpressions.push(t1);
  84004. t1 = _box_0.commaExpressions;
  84005. t2 = bracketList ? t2.spanFrom$1(beforeBracket) : null;
  84006. t1 = P.List_List$unmodifiable(t1, type$.legacy_Expression_2);
  84007. return new D.ListExpression0(t1, C.ListSeparator_comma0, bracketList, t2 == null ? B.spanForList0(t1) : t2);
  84008. } else if (bracketList && _box_0.spaceExpressions != null && _box_0.singleEqualsOperand == null) {
  84009. resolveOperations.call$0();
  84010. t1 = _box_0.spaceExpressions;
  84011. t1.push(_box_0.singleExpression);
  84012. t2 = t2.spanFrom$1(beforeBracket);
  84013. t1 = P.List_List$unmodifiable(t1, type$.legacy_Expression_2);
  84014. return new D.ListExpression0(t1, C.ListSeparator_space0, true, t2);
  84015. } else {
  84016. resolveSpaceExpressions.call$0();
  84017. if (bracketList) {
  84018. t1 = H.setRuntimeTypeInfo([_box_0.singleExpression], t3);
  84019. t2 = t2.spanFrom$1(beforeBracket);
  84020. t1 = P.List_List$unmodifiable(t1, type$.legacy_Expression_2);
  84021. _box_0.singleExpression = new D.ListExpression0(t1, C.ListSeparator_undecided0, true, t2);
  84022. }
  84023. return _box_0.singleExpression;
  84024. }
  84025. },
  84026. expression$2$singleEquals$until: function(singleEquals, until) {
  84027. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  84028. },
  84029. expression$1$bracketList: function(bracketList) {
  84030. return this.expression$3$bracketList$singleEquals$until(bracketList, false, null);
  84031. },
  84032. expression$0: function() {
  84033. return this.expression$3$bracketList$singleEquals$until(false, false, null);
  84034. },
  84035. expression$1$singleEquals: function(singleEquals) {
  84036. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, null);
  84037. },
  84038. expression$1$until: function(until) {
  84039. return this.expression$3$bracketList$singleEquals$until(false, false, until);
  84040. },
  84041. _stylesheet0$_expressionUntilComma$1$singleEquals: function(singleEquals) {
  84042. return this.expression$2$singleEquals$until(singleEquals, new V.StylesheetParser__expressionUntilComma_closure0(this));
  84043. },
  84044. _stylesheet0$_expressionUntilComma$0: function() {
  84045. return this._stylesheet0$_expressionUntilComma$1$singleEquals(false);
  84046. },
  84047. _stylesheet0$_singleExpression$0: function() {
  84048. var next, _this = this,
  84049. t1 = _this.scanner,
  84050. first = t1.peekChar$0();
  84051. switch (first) {
  84052. case 40:
  84053. return _this._stylesheet0$_parentheses$0();
  84054. case 47:
  84055. return _this._stylesheet0$_unaryOperation$0();
  84056. case 46:
  84057. return _this._stylesheet0$_number$0();
  84058. case 91:
  84059. return _this.expression$1$bracketList(true);
  84060. case 36:
  84061. return _this._stylesheet0$_variable$0();
  84062. case 38:
  84063. return _this._stylesheet0$_selector$0();
  84064. case 39:
  84065. case 34:
  84066. return _this.interpolatedString$0();
  84067. case 35:
  84068. return _this._stylesheet0$_hashExpression$0();
  84069. case 43:
  84070. next = t1.peekChar$1(1);
  84071. return T.isDigit0(next) || next === 46 ? _this._stylesheet0$_number$0() : _this._stylesheet0$_unaryOperation$0();
  84072. case 45:
  84073. return _this._stylesheet0$_minusExpression$0();
  84074. case 33:
  84075. return _this._stylesheet0$_importantExpression$0();
  84076. case 117:
  84077. case 85:
  84078. if (t1.peekChar$1(1) === 43)
  84079. return _this._stylesheet0$_unicodeRange$0();
  84080. else
  84081. return _this.identifierLike$0();
  84082. case 48:
  84083. case 49:
  84084. case 50:
  84085. case 51:
  84086. case 52:
  84087. case 53:
  84088. case 54:
  84089. case 55:
  84090. case 56:
  84091. case 57:
  84092. return _this._stylesheet0$_number$0();
  84093. case 97:
  84094. case 98:
  84095. case 99:
  84096. case 100:
  84097. case 101:
  84098. case 102:
  84099. case 103:
  84100. case 104:
  84101. case 105:
  84102. case 106:
  84103. case 107:
  84104. case 108:
  84105. case 109:
  84106. case 110:
  84107. case 111:
  84108. case 112:
  84109. case 113:
  84110. case 114:
  84111. case 115:
  84112. case 116:
  84113. case 118:
  84114. case 119:
  84115. case 120:
  84116. case 121:
  84117. case 122:
  84118. case 65:
  84119. case 66:
  84120. case 67:
  84121. case 68:
  84122. case 69:
  84123. case 70:
  84124. case 71:
  84125. case 72:
  84126. case 73:
  84127. case 74:
  84128. case 75:
  84129. case 76:
  84130. case 77:
  84131. case 78:
  84132. case 79:
  84133. case 80:
  84134. case 81:
  84135. case 82:
  84136. case 83:
  84137. case 84:
  84138. case 86:
  84139. case 87:
  84140. case 88:
  84141. case 89:
  84142. case 90:
  84143. case 95:
  84144. case 92:
  84145. return _this.identifierLike$0();
  84146. default:
  84147. if (first != null && first >= 128)
  84148. return _this.identifierLike$0();
  84149. t1.error$1("Expected expression.");
  84150. }
  84151. },
  84152. _stylesheet0$_parentheses$0: function() {
  84153. var wasInParentheses, start, first, expressions, t1, t2, _this = this;
  84154. if (_this.get$plainCss())
  84155. _this.scanner.error$2$length("Parentheses aren't allowed in plain CSS.", 1);
  84156. wasInParentheses = _this._stylesheet0$_inParentheses;
  84157. _this._stylesheet0$_inParentheses = true;
  84158. try {
  84159. t1 = _this.scanner;
  84160. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84161. t1.expectChar$1(40);
  84162. _this.whitespace$0();
  84163. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  84164. t1.expectChar$1(41);
  84165. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  84166. t1 = t1.spanFrom$1(start);
  84167. t2 = P.List_List$unmodifiable(t2, type$.legacy_Expression_2);
  84168. return new D.ListExpression0(t2, C.ListSeparator_undecided0, false, t1);
  84169. }
  84170. first = _this._stylesheet0$_expressionUntilComma$0();
  84171. if (t1.scanChar$1(58)) {
  84172. _this.whitespace$0();
  84173. t1 = _this._stylesheet0$_map$2(first, start);
  84174. return t1;
  84175. }
  84176. if (!t1.scanChar$1(44)) {
  84177. t1.expectChar$1(41);
  84178. t1 = t1.spanFrom$1(start);
  84179. return new T.ParenthesizedExpression0(first, t1);
  84180. }
  84181. _this.whitespace$0();
  84182. expressions = H.setRuntimeTypeInfo([first], type$.JSArray_legacy_Expression_2);
  84183. for (; true;) {
  84184. if (!_this._stylesheet0$_lookingAtExpression$0())
  84185. break;
  84186. J.add$1$ax(expressions, _this._stylesheet0$_expressionUntilComma$0());
  84187. if (!t1.scanChar$1(44))
  84188. break;
  84189. _this.whitespace$0();
  84190. }
  84191. t1.expectChar$1(41);
  84192. t1 = t1.spanFrom$1(start);
  84193. t2 = P.List_List$unmodifiable(expressions, type$.legacy_Expression_2);
  84194. return new D.ListExpression0(t2, C.ListSeparator_comma0, false, t1);
  84195. } finally {
  84196. _this._stylesheet0$_inParentheses = wasInParentheses;
  84197. }
  84198. },
  84199. _stylesheet0$_map$2: function(first, start) {
  84200. var t2, key, _this = this,
  84201. t1 = type$.Tuple2_of_legacy_Expression_and_legacy_Expression_2,
  84202. pairs = H.setRuntimeTypeInfo([new S.Tuple2(first, _this._stylesheet0$_expressionUntilComma$0(), t1)], type$.JSArray_legacy_Tuple2_of_legacy_Expression_and_legacy_Expression_2);
  84203. for (t2 = _this.scanner; t2.scanChar$1(44);) {
  84204. _this.whitespace$0();
  84205. if (!_this._stylesheet0$_lookingAtExpression$0())
  84206. break;
  84207. key = _this._stylesheet0$_expressionUntilComma$0();
  84208. t2.expectChar$1(58);
  84209. _this.whitespace$0();
  84210. pairs.push(new S.Tuple2(key, _this._stylesheet0$_expressionUntilComma$0(), t1));
  84211. }
  84212. t2.expectChar$1(41);
  84213. t1 = t2.spanFrom$1(start);
  84214. return new A.MapExpression0(P.List_List$unmodifiable(pairs, type$.legacy_Tuple2_of_legacy_Expression_and_legacy_Expression_2), t1);
  84215. },
  84216. _stylesheet0$_hashExpression$0: function() {
  84217. var start, first, t2, identifier, buffer, _this = this,
  84218. t1 = _this.scanner;
  84219. if (t1.peekChar$1(1) === 123)
  84220. return _this.identifierLike$0();
  84221. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84222. t1.expectChar$1(35);
  84223. first = t1.peekChar$0();
  84224. if (first != null && T.isDigit0(first))
  84225. return new K.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start));
  84226. t2 = t1._string_scanner$_position;
  84227. identifier = _this.interpolatedIdentifier$0();
  84228. if (_this._stylesheet0$_isHexColor$1(identifier)) {
  84229. t1.set$state(new S._SpanScannerState(t1, t2));
  84230. return new K.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start));
  84231. }
  84232. t2 = new P.StringBuffer("");
  84233. buffer = new Z.InterpolationBuffer0(t2, []);
  84234. t2._contents += H.Primitives_stringFromCharCode(35);
  84235. buffer.addInterpolation$1(identifier);
  84236. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  84237. },
  84238. _stylesheet0$_hexColorContents$1: function(start) {
  84239. var red, green, blue, alpha, digit4, t2, t3, _this = this,
  84240. digit1 = _this._stylesheet0$_hexDigit$0(),
  84241. digit2 = _this._stylesheet0$_hexDigit$0(),
  84242. digit3 = _this._stylesheet0$_hexDigit$0(),
  84243. t1 = _this.scanner;
  84244. if (!T.isHex0(t1.peekChar$0())) {
  84245. red = (digit1 << 4 >>> 0) + digit1;
  84246. green = (digit2 << 4 >>> 0) + digit2;
  84247. blue = (digit3 << 4 >>> 0) + digit3;
  84248. alpha = 1;
  84249. } else {
  84250. digit4 = _this._stylesheet0$_hexDigit$0();
  84251. t2 = digit1 << 4 >>> 0;
  84252. t3 = digit3 << 4 >>> 0;
  84253. if (!T.isHex0(t1.peekChar$0())) {
  84254. red = t2 + digit1;
  84255. green = (digit2 << 4 >>> 0) + digit2;
  84256. blue = t3 + digit3;
  84257. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  84258. } else {
  84259. red = t2 + digit2;
  84260. green = t3 + digit4;
  84261. blue = (_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0();
  84262. alpha = T.isHex0(t1.peekChar$0()) ? ((_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0()) / 255 : 1;
  84263. }
  84264. }
  84265. return K.SassColor$rgb0(red, green, blue, alpha, t1.spanFrom$1(start));
  84266. },
  84267. _stylesheet0$_isHexColor$1: function(interpolation) {
  84268. var t1,
  84269. plain = interpolation.get$asPlain();
  84270. if (plain == null)
  84271. return false;
  84272. t1 = plain.length;
  84273. if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
  84274. return false;
  84275. t1 = new H.CodeUnits(plain);
  84276. return t1.every$1(t1, T.character0__isHex$closure());
  84277. },
  84278. _stylesheet0$_hexDigit$0: function() {
  84279. var t1 = this.scanner,
  84280. char = t1.peekChar$0();
  84281. if (char == null || !T.isHex0(char))
  84282. t1.error$1("Expected hex digit.");
  84283. return T.asHex0(t1.readChar$0());
  84284. },
  84285. _stylesheet0$_minusExpression$0: function() {
  84286. var _this = this,
  84287. next = _this.scanner.peekChar$1(1);
  84288. if (T.isDigit0(next) || next === 46)
  84289. return _this._stylesheet0$_number$0();
  84290. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  84291. return _this.identifierLike$0();
  84292. return _this._stylesheet0$_unaryOperation$0();
  84293. },
  84294. _stylesheet0$_importantExpression$0: function() {
  84295. var t1 = this.scanner,
  84296. t2 = t1._string_scanner$_position;
  84297. t1.readChar$0();
  84298. this.whitespace$0();
  84299. this.expectIdentifier$1("important");
  84300. t2 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  84301. return new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo(["!important"], type$.JSArray_legacy_Object), t2), false);
  84302. },
  84303. _stylesheet0$_unaryOperation$0: function() {
  84304. var _this = this,
  84305. t1 = _this.scanner,
  84306. t2 = t1._string_scanner$_position,
  84307. operator = _this._stylesheet0$_unaryOperatorFor$1(t1.readChar$0());
  84308. if (operator == null)
  84309. t1.error$2$position("Expected unary operator.", t1._string_scanner$_position - 1);
  84310. else if (_this.get$plainCss() && operator !== C.UnaryOperator_zDx0)
  84311. t1.error$3$length$position("Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  84312. _this.whitespace$0();
  84313. return new X.UnaryOperationExpression0(operator, _this._stylesheet0$_singleExpression$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84314. },
  84315. _stylesheet0$_unaryOperatorFor$1: function(character) {
  84316. switch (character) {
  84317. case 43:
  84318. return C.UnaryOperator_j2w0;
  84319. case 45:
  84320. return C.UnaryOperator_U4G0;
  84321. case 47:
  84322. return C.UnaryOperator_zDx0;
  84323. default:
  84324. return null;
  84325. }
  84326. },
  84327. _stylesheet0$_number$0: function() {
  84328. var number, t4, unit, t5, _this = this,
  84329. t1 = _this.scanner,
  84330. t2 = t1._string_scanner$_position,
  84331. first = t1.peekChar$0(),
  84332. t3 = first === 45,
  84333. sign = t3 ? -1 : 1;
  84334. if (first === 43 || t3)
  84335. t1.readChar$0();
  84336. number = t1.peekChar$0() === 46 ? 0 : _this.naturalNumber$0();
  84337. t3 = _this._stylesheet0$_tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
  84338. t4 = _this._stylesheet0$_tryExponent$0();
  84339. if (t1.scanChar$1(37))
  84340. unit = "%";
  84341. else {
  84342. if (_this.lookingAtIdentifier$0())
  84343. t5 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  84344. else
  84345. t5 = false;
  84346. unit = t5 ? _this.identifier$1$unit(true) : null;
  84347. }
  84348. return new T.NumberExpression0(sign * ((number + t3) * t4), unit, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84349. },
  84350. _stylesheet0$_tryDecimal$1$allowTrailingDot: function(allowTrailingDot) {
  84351. var t2,
  84352. t1 = this.scanner,
  84353. start = t1._string_scanner$_position;
  84354. if (t1.peekChar$0() !== 46)
  84355. return 0;
  84356. if (!T.isDigit0(t1.peekChar$1(1))) {
  84357. if (allowTrailingDot)
  84358. return 0;
  84359. t1.error$2$position("Expected digit.", t1._string_scanner$_position + 1);
  84360. }
  84361. t1.readChar$0();
  84362. while (true) {
  84363. t2 = t1.peekChar$0();
  84364. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  84365. break;
  84366. t1.readChar$0();
  84367. }
  84368. return P.double_parse(t1.substring$1(0, start));
  84369. },
  84370. _stylesheet0$_tryExponent$0: function() {
  84371. var next, t2, exponentSign, exponent,
  84372. t1 = this.scanner,
  84373. first = t1.peekChar$0();
  84374. if (first !== 101 && first !== 69)
  84375. return 1;
  84376. next = t1.peekChar$1(1);
  84377. if (!T.isDigit0(next) && next !== 45 && next !== 43)
  84378. return 1;
  84379. t1.readChar$0();
  84380. t2 = next === 45;
  84381. exponentSign = t2 ? -1 : 1;
  84382. if (next === 43 || t2)
  84383. t1.readChar$0();
  84384. if (!T.isDigit0(t1.peekChar$0()))
  84385. t1.error$1("Expected digit.");
  84386. exponent = 0;
  84387. while (true) {
  84388. t2 = t1.peekChar$0();
  84389. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  84390. break;
  84391. exponent = exponent * 10 + (t1.readChar$0() - 48);
  84392. }
  84393. return Math.pow(10, exponentSign * exponent);
  84394. },
  84395. _stylesheet0$_unicodeRange$0: function() {
  84396. var i, t2, j, _this = this,
  84397. t1 = _this.scanner,
  84398. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84399. _this.expectIdentChar$1(117);
  84400. t1.expectChar$1(43);
  84401. for (i = 0; i < 6; ++i)
  84402. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure1()))
  84403. break;
  84404. if (t1.scanChar$1(63)) {
  84405. ++i;
  84406. for (; i < 6; ++i)
  84407. if (!t1.scanChar$1(63))
  84408. break;
  84409. t2 = t1.substring$1(0, start.position);
  84410. t1 = t1.spanFrom$1(start);
  84411. return new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([t2], type$.JSArray_legacy_Object), t1), false);
  84412. }
  84413. if (i === 0)
  84414. t1.error$1('Expected hex digit or "?".');
  84415. if (t1.scanChar$1(45)) {
  84416. for (j = 0; j < 6; ++j)
  84417. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure2()))
  84418. break;
  84419. if (j === 0)
  84420. t1.error$1("Expected hex digit.");
  84421. }
  84422. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  84423. t1.error$1("Expected end of identifier.");
  84424. t2 = t1.substring$1(0, start.position);
  84425. t1 = t1.spanFrom$1(start);
  84426. return new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([t2], type$.JSArray_legacy_Object), t1), false);
  84427. },
  84428. _stylesheet0$_variable$0: function() {
  84429. var _this = this,
  84430. t1 = _this.scanner,
  84431. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  84432. $name = _this.variableName$0();
  84433. if (_this.get$plainCss())
  84434. _this.error$2(string$.Sass_v, t1.spanFrom$1(start));
  84435. return new S.VariableExpression0(null, $name, t1.spanFrom$1(start));
  84436. },
  84437. _stylesheet0$_selector$0: function() {
  84438. var t1, start, _this = this;
  84439. if (_this.get$plainCss())
  84440. _this.scanner.error$2$length(string$.The_pa, 1);
  84441. t1 = _this.scanner;
  84442. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84443. t1.expectChar$1(38);
  84444. if (t1.scanChar$1(38)) {
  84445. _this.logger.warn$2$span(string$.In_Sas, t1.spanFrom$1(start));
  84446. t1.set$position(t1._string_scanner$_position - 1);
  84447. }
  84448. return new T.SelectorExpression0(t1.spanFrom$1(start));
  84449. },
  84450. interpolatedString$0: function() {
  84451. var t3, t4, buffer, next, second, t5,
  84452. t1 = this.scanner,
  84453. t2 = t1._string_scanner$_position,
  84454. quote = t1.readChar$0();
  84455. if (quote !== 39 && quote !== 34)
  84456. t1.error$2$position("Expected string.", t2);
  84457. t3 = new P.StringBuffer("");
  84458. t4 = [];
  84459. buffer = new Z.InterpolationBuffer0(t3, t4);
  84460. for (; true;) {
  84461. next = t1.peekChar$0();
  84462. if (next === quote) {
  84463. t1.readChar$0();
  84464. break;
  84465. } else if (next == null || next === 10 || next === 13 || next === 12)
  84466. t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  84467. else if (next === 92) {
  84468. second = t1.peekChar$1(1);
  84469. if (second === 10 || second === 13 || second === 12) {
  84470. t1.readChar$0();
  84471. t1.readChar$0();
  84472. if (second === 13)
  84473. t1.scanChar$1(10);
  84474. } else
  84475. t3._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  84476. } else if (next === 35)
  84477. if (t1.peekChar$1(1) === 123) {
  84478. t5 = this.singleInterpolation$0();
  84479. buffer._interpolation_buffer0$_flushText$0();
  84480. t4.push(t5);
  84481. } else
  84482. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84483. else
  84484. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84485. }
  84486. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), true);
  84487. },
  84488. identifierLike$0: function() {
  84489. var invocation, lower, color, specialFunction, $name, _this = this,
  84490. t1 = _this.scanner,
  84491. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  84492. identifier = _this.interpolatedIdentifier$0(),
  84493. plain = identifier.get$asPlain(),
  84494. t2 = plain == null;
  84495. if (!t2) {
  84496. if (plain === "if") {
  84497. invocation = _this._stylesheet0$_argumentInvocation$0();
  84498. return new L.IfExpression0(invocation, B.spanForList0(H.setRuntimeTypeInfo([identifier, invocation], type$.JSArray_legacy_AstNode_2)));
  84499. } else if (plain === "not") {
  84500. _this.whitespace$0();
  84501. return new X.UnaryOperationExpression0(C.UnaryOperator_not_not0, _this._stylesheet0$_singleExpression$0(), identifier.span);
  84502. }
  84503. lower = plain.toLowerCase();
  84504. if (t1.peekChar$0() !== 40) {
  84505. switch (plain) {
  84506. case "false":
  84507. return new Z.BooleanExpression0(false, identifier.span);
  84508. case "null":
  84509. return new O.NullExpression0(identifier.span);
  84510. case "true":
  84511. return new Z.BooleanExpression0(true, identifier.span);
  84512. }
  84513. color = $.$get$colorsByName0().$index(0, lower);
  84514. if (color != null)
  84515. return new K.ColorExpression0(K.SassColor$rgb0(color.get$red(), color.get$green(), color.get$blue(), color.alpha, identifier.span));
  84516. }
  84517. specialFunction = _this.trySpecialFunction$2(lower, start);
  84518. if (specialFunction != null)
  84519. return specialFunction;
  84520. }
  84521. switch (t1.peekChar$0()) {
  84522. case 46:
  84523. if (t1.peekChar$1(1) === 46)
  84524. return new D.StringExpression0(identifier, false);
  84525. t1.readChar$0();
  84526. if (t2)
  84527. _this.error$2(string$.Interpn, identifier.span);
  84528. if (t1.peekChar$0() === 36) {
  84529. $name = _this.variableName$0();
  84530. _this._stylesheet0$_assertPublic$2($name, new V.StylesheetParser_identifierLike_closure0(_this, start));
  84531. return new S.VariableExpression0(plain, $name, t1.spanFrom$1(start));
  84532. }
  84533. t2 = t1._string_scanner$_position;
  84534. return new F.FunctionExpression0(plain, X.Interpolation$0(H.setRuntimeTypeInfo([_this._stylesheet0$_publicIdentifier$0()], type$.JSArray_legacy_Object), t1.spanFrom$1(new S._SpanScannerState(t1, t2))), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  84535. case 40:
  84536. return new F.FunctionExpression0(null, identifier, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  84537. default:
  84538. return new D.StringExpression0(identifier, false);
  84539. }
  84540. },
  84541. trySpecialFunction$2: function($name, start) {
  84542. var t1, buffer, t2, t3, next, contents, _this = this, _null = null;
  84543. switch (B.unvendor0($name)) {
  84544. case "calc":
  84545. case "element":
  84546. case "expression":
  84547. if (!_this.scanner.scanChar$1(40))
  84548. return _null;
  84549. t1 = new P.StringBuffer("");
  84550. buffer = new Z.InterpolationBuffer0(t1, []);
  84551. t1._contents = $name;
  84552. t1._contents += H.Primitives_stringFromCharCode(40);
  84553. break;
  84554. case "min":
  84555. case "max":
  84556. t1 = _this.scanner;
  84557. t2 = t1._string_scanner$_position;
  84558. if (!t1.scanChar$1(40))
  84559. return _null;
  84560. _this.whitespace$0();
  84561. t3 = new P.StringBuffer("");
  84562. buffer = new Z.InterpolationBuffer0(t3, []);
  84563. t3._contents = $name;
  84564. t3._contents += H.Primitives_stringFromCharCode(40);
  84565. if (!_this._stylesheet0$_tryMinMaxContents$1(buffer)) {
  84566. t1.set$state(new S._SpanScannerState(t1, t2));
  84567. return _null;
  84568. }
  84569. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  84570. case "progid":
  84571. t1 = _this.scanner;
  84572. if (!t1.scanChar$1(58))
  84573. return _null;
  84574. t2 = new P.StringBuffer("");
  84575. buffer = new Z.InterpolationBuffer0(t2, []);
  84576. t2._contents = $name;
  84577. t2._contents += H.Primitives_stringFromCharCode(58);
  84578. next = t1.peekChar$0();
  84579. while (true) {
  84580. if (next != null) {
  84581. if (!(next >= 97 && next <= 122))
  84582. t3 = next >= 65 && next <= 90;
  84583. else
  84584. t3 = true;
  84585. t3 = t3 || next === 46;
  84586. } else
  84587. t3 = false;
  84588. if (!t3)
  84589. break;
  84590. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84591. next = t1.peekChar$0();
  84592. }
  84593. t1.expectChar$1(40);
  84594. t2._contents += H.Primitives_stringFromCharCode(40);
  84595. break;
  84596. case "url":
  84597. contents = _this._stylesheet0$_tryUrlContents$1(start);
  84598. return contents == null ? _null : new D.StringExpression0(contents, false);
  84599. default:
  84600. return _null;
  84601. }
  84602. buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true).text);
  84603. t1 = _this.scanner;
  84604. t1.expectChar$1(41);
  84605. buffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(41);
  84606. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  84607. },
  84608. _stylesheet0$_tryMinMaxContents$2$allowComma: function(buffer, allowComma) {
  84609. var t1, t2, t3, t4, start, end, exception, t5, _this = this;
  84610. for (t1 = _this.scanner, t2 = buffer._interpolation_buffer0$_text, t3 = !allowComma, t4 = _this.get$_stylesheet0$_number(); true;) {
  84611. switch (t1.peekChar$0()) {
  84612. case 45:
  84613. case 43:
  84614. case 48:
  84615. case 49:
  84616. case 50:
  84617. case 51:
  84618. case 52:
  84619. case 53:
  84620. case 54:
  84621. case 55:
  84622. case 56:
  84623. case 57:
  84624. try {
  84625. start = t1._string_scanner$_position;
  84626. t4.call$0();
  84627. end = t1._string_scanner$_position;
  84628. t2._contents += J.substring$2$s(t1.string, start, end);
  84629. } catch (exception) {
  84630. if (type$.legacy_FormatException._is(H.unwrapException(exception)))
  84631. return false;
  84632. else
  84633. throw exception;
  84634. }
  84635. break;
  84636. case 35:
  84637. if (t1.peekChar$1(1) !== 123)
  84638. return false;
  84639. t5 = _this.singleInterpolation$0();
  84640. buffer._interpolation_buffer0$_flushText$0();
  84641. buffer._interpolation_buffer0$_contents.push(t5);
  84642. break;
  84643. case 99:
  84644. case 67:
  84645. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "calc"))
  84646. return false;
  84647. break;
  84648. case 101:
  84649. case 69:
  84650. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "env"))
  84651. return false;
  84652. break;
  84653. case 118:
  84654. case 86:
  84655. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "var"))
  84656. return false;
  84657. break;
  84658. case 40:
  84659. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84660. if (!_this._stylesheet0$_tryMinMaxContents$2$allowComma(buffer, false))
  84661. return false;
  84662. break;
  84663. case 109:
  84664. case 77:
  84665. t1.readChar$0();
  84666. if (_this.scanIdentChar$1(105)) {
  84667. if (!_this.scanIdentChar$1(110))
  84668. return false;
  84669. t2._contents += "min(";
  84670. } else if (_this.scanIdentChar$1(97)) {
  84671. if (!_this.scanIdentChar$1(120))
  84672. return false;
  84673. t2._contents += "max(";
  84674. } else
  84675. return false;
  84676. if (!t1.scanChar$1(40))
  84677. return false;
  84678. if (!_this._stylesheet0$_tryMinMaxContents$1(buffer))
  84679. return false;
  84680. break;
  84681. default:
  84682. return false;
  84683. }
  84684. _this.whitespace$0();
  84685. switch (t1.peekChar$0()) {
  84686. case 41:
  84687. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84688. return true;
  84689. case 43:
  84690. case 45:
  84691. case 42:
  84692. case 47:
  84693. t2._contents += H.Primitives_stringFromCharCode(32);
  84694. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84695. t2._contents += H.Primitives_stringFromCharCode(32);
  84696. break;
  84697. case 44:
  84698. if (t3)
  84699. return false;
  84700. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84701. t2._contents += H.Primitives_stringFromCharCode(32);
  84702. break;
  84703. default:
  84704. return false;
  84705. }
  84706. _this.whitespace$0();
  84707. }
  84708. },
  84709. _stylesheet0$_tryMinMaxContents$1: function(buffer) {
  84710. return this._stylesheet0$_tryMinMaxContents$2$allowComma(buffer, true);
  84711. },
  84712. _stylesheet0$_tryMinMaxFunction$2: function(buffer, $name) {
  84713. var t1, t2;
  84714. if (!this.scanIdentifier$1($name))
  84715. return false;
  84716. t1 = this.scanner;
  84717. if (!t1.scanChar$1(40))
  84718. return false;
  84719. t2 = buffer._interpolation_buffer0$_text;
  84720. t2._contents += $name;
  84721. t2._contents += H.Primitives_stringFromCharCode(40);
  84722. buffer.addInterpolation$1(this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true).asInterpolation$0());
  84723. t2._contents += H.Primitives_stringFromCharCode(41);
  84724. if (!t1.scanChar$1(41))
  84725. return false;
  84726. return true;
  84727. },
  84728. _stylesheet0$_tryUrlContents$2$name: function(start, $name) {
  84729. var t3, t4, buffer, next, t5, endPosition, _this = this,
  84730. t1 = _this.scanner,
  84731. t2 = t1._string_scanner$_position;
  84732. if (!t1.scanChar$1(40))
  84733. return null;
  84734. _this.whitespaceWithoutComments$0();
  84735. t3 = new P.StringBuffer("");
  84736. t4 = [];
  84737. buffer = new Z.InterpolationBuffer0(t3, t4);
  84738. t3._contents = $name == null ? "url" : $name;
  84739. t3._contents += H.Primitives_stringFromCharCode(40);
  84740. for (; true;) {
  84741. next = t1.peekChar$0();
  84742. if (next == null)
  84743. break;
  84744. else {
  84745. if (next !== 33)
  84746. if (next !== 37)
  84747. if (next !== 38)
  84748. t5 = next >= 42 && next <= 126 || next >= 128;
  84749. else
  84750. t5 = true;
  84751. else
  84752. t5 = true;
  84753. else
  84754. t5 = true;
  84755. if (t5)
  84756. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84757. else if (next === 92)
  84758. t3._contents += H.S(_this.escape$0());
  84759. else if (next === 35)
  84760. if (t1.peekChar$1(1) === 123) {
  84761. t5 = _this.singleInterpolation$0();
  84762. buffer._interpolation_buffer0$_flushText$0();
  84763. t4.push(t5);
  84764. } else
  84765. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84766. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  84767. _this.whitespaceWithoutComments$0();
  84768. if (t1.peekChar$0() !== 41)
  84769. break;
  84770. } else if (next === 41) {
  84771. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84772. endPosition = t1._string_scanner$_position;
  84773. return buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, start.position, endPosition));
  84774. } else
  84775. break;
  84776. }
  84777. }
  84778. t1.set$state(new S._SpanScannerState(t1, t2));
  84779. return null;
  84780. },
  84781. _stylesheet0$_tryUrlContents$1: function(start) {
  84782. return this._stylesheet0$_tryUrlContents$2$name(start, null);
  84783. },
  84784. dynamicUrl$0: function() {
  84785. var contents, _this = this,
  84786. t1 = _this.scanner,
  84787. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84788. _this.expectIdentifier$1("url");
  84789. contents = _this._stylesheet0$_tryUrlContents$1(start);
  84790. if (contents != null)
  84791. return new D.StringExpression0(contents, false);
  84792. return new F.FunctionExpression0(null, X.Interpolation$0(H.setRuntimeTypeInfo(["url"], type$.JSArray_legacy_Object), t1.spanFrom$1(start)), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  84793. },
  84794. almostAnyValue$1$omitComments: function(omitComments) {
  84795. var t4, t5, next, commentStart, end, t6, contents, _this = this,
  84796. t1 = _this.scanner,
  84797. t2 = t1._string_scanner$_position,
  84798. t3 = new P.StringBuffer(""),
  84799. buffer = new Z.InterpolationBuffer0(t3, []);
  84800. $label0$1:
  84801. for (t4 = t1.string, t5 = !omitComments; true;) {
  84802. next = t1.peekChar$0();
  84803. switch (next) {
  84804. case 92:
  84805. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84806. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84807. break;
  84808. case 34:
  84809. case 39:
  84810. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  84811. break;
  84812. case 47:
  84813. commentStart = t1._string_scanner$_position;
  84814. if (_this.scanComment$0()) {
  84815. if (t5) {
  84816. end = t1._string_scanner$_position;
  84817. t3._contents += J.substring$2$s(t4, commentStart, end);
  84818. }
  84819. } else
  84820. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84821. break;
  84822. case 35:
  84823. if (t1.peekChar$1(1) === 123)
  84824. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  84825. else
  84826. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84827. break;
  84828. case 13:
  84829. case 10:
  84830. case 12:
  84831. if (_this.get$indented())
  84832. break $label0$1;
  84833. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84834. break;
  84835. case 33:
  84836. case 59:
  84837. case 123:
  84838. case 125:
  84839. break $label0$1;
  84840. case 117:
  84841. case 85:
  84842. t6 = t1._string_scanner$_position;
  84843. if (!_this.scanIdentifier$1("url")) {
  84844. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84845. break;
  84846. }
  84847. contents = _this._stylesheet0$_tryUrlContents$1(new S._SpanScannerState(t1, t6));
  84848. if (contents == null) {
  84849. if (t6 < 0 || t6 > t4.length)
  84850. H.throwExpression(P.ArgumentError$("Invalid position " + t6));
  84851. t1._string_scanner$_position = t6;
  84852. t1._lastMatch = null;
  84853. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84854. } else
  84855. buffer.addInterpolation$1(contents);
  84856. break;
  84857. default:
  84858. if (next == null)
  84859. break $label0$1;
  84860. if (_this.lookingAtIdentifier$0())
  84861. t3._contents += _this.identifier$0();
  84862. else
  84863. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84864. break;
  84865. }
  84866. }
  84867. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  84868. },
  84869. almostAnyValue$0: function() {
  84870. return this.almostAnyValue$1$omitComments(false);
  84871. },
  84872. _stylesheet0$_interpolatedDeclarationValue$1$allowEmpty: function(allowEmpty) {
  84873. var t4, wroteNewline, next, t5, start, end, contents, _this = this,
  84874. t1 = _this.scanner,
  84875. t2 = t1._string_scanner$_position,
  84876. t3 = new P.StringBuffer(""),
  84877. buffer = new Z.InterpolationBuffer0(t3, []),
  84878. brackets = H.setRuntimeTypeInfo([], type$.JSArray_legacy_int);
  84879. $label0$1:
  84880. for (t4 = t1.string, wroteNewline = false; true;) {
  84881. next = t1.peekChar$0();
  84882. switch (next) {
  84883. case 92:
  84884. t3._contents += H.S(_this.escape$1$identifierStart(true));
  84885. wroteNewline = false;
  84886. break;
  84887. case 34:
  84888. case 39:
  84889. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  84890. wroteNewline = false;
  84891. break;
  84892. case 47:
  84893. if (t1.peekChar$1(1) === 42) {
  84894. t5 = _this.get$loudComment();
  84895. start = t1._string_scanner$_position;
  84896. t5.call$0();
  84897. end = t1._string_scanner$_position;
  84898. t3._contents += J.substring$2$s(t4, start, end);
  84899. } else
  84900. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84901. wroteNewline = false;
  84902. break;
  84903. case 35:
  84904. if (t1.peekChar$1(1) === 123)
  84905. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  84906. else
  84907. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84908. wroteNewline = false;
  84909. break;
  84910. case 32:
  84911. case 9:
  84912. if (!wroteNewline) {
  84913. t5 = t1.peekChar$1(1);
  84914. t5 = !(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12);
  84915. } else
  84916. t5 = true;
  84917. if (t5)
  84918. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84919. else
  84920. t1.readChar$0();
  84921. break;
  84922. case 10:
  84923. case 13:
  84924. case 12:
  84925. if (_this.get$indented())
  84926. break $label0$1;
  84927. t5 = t1.peekChar$1(-1);
  84928. if (!(t5 === 10 || t5 === 13 || t5 === 12))
  84929. t3._contents += "\n";
  84930. t1.readChar$0();
  84931. wroteNewline = true;
  84932. break;
  84933. case 40:
  84934. case 123:
  84935. case 91:
  84936. t3._contents += H.Primitives_stringFromCharCode(next);
  84937. brackets.push(T.opposite0(t1.readChar$0()));
  84938. wroteNewline = false;
  84939. break;
  84940. case 41:
  84941. case 125:
  84942. case 93:
  84943. if (brackets.length === 0)
  84944. break $label0$1;
  84945. t3._contents += H.Primitives_stringFromCharCode(next);
  84946. t1.expectChar$1(brackets.pop());
  84947. wroteNewline = false;
  84948. break;
  84949. case 59:
  84950. if (brackets.length === 0)
  84951. break $label0$1;
  84952. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84953. break;
  84954. case 117:
  84955. case 85:
  84956. t5 = t1._string_scanner$_position;
  84957. if (!_this.scanIdentifier$1("url")) {
  84958. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84959. wroteNewline = false;
  84960. break;
  84961. }
  84962. contents = _this._stylesheet0$_tryUrlContents$1(new S._SpanScannerState(t1, t5));
  84963. if (contents == null) {
  84964. if (t5 < 0 || t5 > t4.length)
  84965. H.throwExpression(P.ArgumentError$("Invalid position " + t5));
  84966. t1._string_scanner$_position = t5;
  84967. t1._lastMatch = null;
  84968. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84969. } else
  84970. buffer.addInterpolation$1(contents);
  84971. wroteNewline = false;
  84972. break;
  84973. default:
  84974. if (next == null)
  84975. break $label0$1;
  84976. if (_this.lookingAtIdentifier$0())
  84977. t3._contents += _this.identifier$0();
  84978. else
  84979. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  84980. wroteNewline = false;
  84981. break;
  84982. }
  84983. }
  84984. if (brackets.length !== 0)
  84985. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  84986. if (!allowEmpty && buffer._interpolation_buffer0$_contents.length === 0 && t3._contents.length === 0)
  84987. t1.error$1("Expected token.");
  84988. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
  84989. },
  84990. _stylesheet0$_interpolatedDeclarationValue$0: function() {
  84991. return this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(false);
  84992. },
  84993. interpolatedIdentifier$0: function() {
  84994. var first, _this = this,
  84995. _s20_ = "Expected identifier.",
  84996. t1 = _this.scanner,
  84997. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  84998. t2 = new P.StringBuffer(""),
  84999. t3 = [],
  85000. buffer = new Z.InterpolationBuffer0(t2, t3);
  85001. if (t1.scanChar$1(45)) {
  85002. t2._contents += H.Primitives_stringFromCharCode(45);
  85003. if (t1.scanChar$1(45)) {
  85004. t2._contents += H.Primitives_stringFromCharCode(45);
  85005. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  85006. return buffer.interpolation$1(t1.spanFrom$1(start));
  85007. }
  85008. }
  85009. first = t1.peekChar$0();
  85010. if (first == null)
  85011. t1.error$1(_s20_);
  85012. else if (first === 95 || T.isAlphabetic1(first) || first >= 128)
  85013. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  85014. else if (first === 92)
  85015. t2._contents += H.S(_this.escape$1$identifierStart(true));
  85016. else if (first === 35 && t1.peekChar$1(1) === 123) {
  85017. t2 = _this.singleInterpolation$0();
  85018. buffer._interpolation_buffer0$_flushText$0();
  85019. t3.push(t2);
  85020. } else
  85021. t1.error$1(_s20_);
  85022. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  85023. return buffer.interpolation$1(t1.spanFrom$1(start));
  85024. },
  85025. _stylesheet0$_interpolatedIdentifierBody$1: function(buffer) {
  85026. var t1, t2, t3, next, t4;
  85027. for (t1 = buffer._interpolation_buffer0$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer0$_text; true;) {
  85028. next = t2.peekChar$0();
  85029. if (next == null)
  85030. break;
  85031. else {
  85032. if (next !== 95)
  85033. if (next !== 45) {
  85034. if (!(next >= 97 && next <= 122))
  85035. t4 = next >= 65 && next <= 90;
  85036. else
  85037. t4 = true;
  85038. if (!t4)
  85039. t4 = next >= 48 && next <= 57;
  85040. else
  85041. t4 = true;
  85042. t4 = t4 || next >= 128;
  85043. } else
  85044. t4 = true;
  85045. else
  85046. t4 = true;
  85047. if (t4)
  85048. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  85049. else if (next === 92)
  85050. t3._contents += H.S(this.escape$0());
  85051. else if (next === 35 && t2.peekChar$1(1) === 123) {
  85052. t4 = this.singleInterpolation$0();
  85053. buffer._interpolation_buffer0$_flushText$0();
  85054. t1.push(t4);
  85055. } else
  85056. break;
  85057. }
  85058. }
  85059. },
  85060. singleInterpolation$0: function() {
  85061. var contents, _this = this,
  85062. t1 = _this.scanner,
  85063. t2 = t1._string_scanner$_position;
  85064. t1.expect$1("#{");
  85065. _this.whitespace$0();
  85066. contents = _this.expression$0();
  85067. t1.expectChar$1(125);
  85068. if (_this.get$plainCss())
  85069. _this.error$2(string$.Interpp, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  85070. return contents;
  85071. },
  85072. _stylesheet0$_mediaQueryList$0: function() {
  85073. var t1 = this.scanner,
  85074. t2 = t1._string_scanner$_position,
  85075. t3 = new P.StringBuffer(""),
  85076. buffer = new Z.InterpolationBuffer0(t3, []);
  85077. for (; true;) {
  85078. this.whitespace$0();
  85079. this._stylesheet0$_mediaQuery$1(buffer);
  85080. if (!t1.scanChar$1(44))
  85081. break;
  85082. t3._contents += H.Primitives_stringFromCharCode(44);
  85083. t3._contents += H.Primitives_stringFromCharCode(32);
  85084. }
  85085. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  85086. },
  85087. _stylesheet0$_mediaQuery$1: function(buffer) {
  85088. var t1, identifier, _this = this;
  85089. if (_this.scanner.peekChar$0() !== 40) {
  85090. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  85091. _this.whitespace$0();
  85092. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  85093. return;
  85094. t1 = buffer._interpolation_buffer0$_text;
  85095. t1._contents += H.Primitives_stringFromCharCode(32);
  85096. identifier = _this.interpolatedIdentifier$0();
  85097. _this.whitespace$0();
  85098. if (B.equalsIgnoreCase0(identifier.get$asPlain(), "and"))
  85099. t1._contents += " and ";
  85100. else {
  85101. buffer.addInterpolation$1(identifier);
  85102. if (_this.scanIdentifier$1("and")) {
  85103. _this.whitespace$0();
  85104. t1._contents += " and ";
  85105. } else
  85106. return;
  85107. }
  85108. }
  85109. for (t1 = buffer._interpolation_buffer0$_text; true;) {
  85110. _this.whitespace$0();
  85111. buffer.addInterpolation$1(_this._stylesheet0$_mediaFeature$0());
  85112. _this.whitespace$0();
  85113. if (!_this.scanIdentifier$1("and"))
  85114. break;
  85115. t1._contents += " and ";
  85116. }
  85117. },
  85118. _stylesheet0$_mediaFeature$0: function() {
  85119. var interpolation, t2, t3, t4, buffer, t5, next, isAngle, _this = this,
  85120. t1 = _this.scanner;
  85121. if (t1.peekChar$0() === 35) {
  85122. interpolation = _this.singleInterpolation$0();
  85123. return X.Interpolation$0(H.setRuntimeTypeInfo([interpolation], type$.JSArray_legacy_Object), interpolation.get$span());
  85124. }
  85125. t2 = t1._string_scanner$_position;
  85126. t3 = new P.StringBuffer("");
  85127. t4 = [];
  85128. buffer = new Z.InterpolationBuffer0(t3, t4);
  85129. t1.expectChar$1(40);
  85130. t3._contents += H.Primitives_stringFromCharCode(40);
  85131. _this.whitespace$0();
  85132. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  85133. buffer._interpolation_buffer0$_flushText$0();
  85134. t4.push(t5);
  85135. if (t1.scanChar$1(58)) {
  85136. _this.whitespace$0();
  85137. t3._contents += H.Primitives_stringFromCharCode(58);
  85138. t3._contents += H.Primitives_stringFromCharCode(32);
  85139. t5 = _this.expression$0();
  85140. buffer._interpolation_buffer0$_flushText$0();
  85141. t4.push(t5);
  85142. } else {
  85143. next = t1.peekChar$0();
  85144. isAngle = next === 60 || next === 62;
  85145. if (isAngle || next === 61) {
  85146. t3._contents += H.Primitives_stringFromCharCode(32);
  85147. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  85148. if (isAngle && t1.scanChar$1(61))
  85149. t3._contents += H.Primitives_stringFromCharCode(61);
  85150. t3._contents += H.Primitives_stringFromCharCode(32);
  85151. _this.whitespace$0();
  85152. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  85153. buffer._interpolation_buffer0$_flushText$0();
  85154. t4.push(t5);
  85155. if (isAngle && t1.scanChar$1(next)) {
  85156. t3._contents += H.Primitives_stringFromCharCode(32);
  85157. t3._contents += H.Primitives_stringFromCharCode(next);
  85158. if (t1.scanChar$1(61))
  85159. t3._contents += H.Primitives_stringFromCharCode(61);
  85160. t3._contents += H.Primitives_stringFromCharCode(32);
  85161. _this.whitespace$0();
  85162. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  85163. buffer._interpolation_buffer0$_flushText$0();
  85164. t4.push(t5);
  85165. }
  85166. }
  85167. }
  85168. t1.expectChar$1(41);
  85169. _this.whitespace$0();
  85170. t3._contents += H.Primitives_stringFromCharCode(41);
  85171. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  85172. },
  85173. _stylesheet0$_expressionUntilComparison$0: function() {
  85174. return this.expression$1$until(new V.StylesheetParser__expressionUntilComparison_closure0(this));
  85175. },
  85176. _stylesheet0$_supportsCondition$0: function() {
  85177. var condition, operator, right, endPosition, lowerOperator, _this = this,
  85178. t1 = _this.scanner,
  85179. t2 = t1._string_scanner$_position,
  85180. first = t1.peekChar$0();
  85181. if (first !== 40 && first !== 35) {
  85182. t2 = t1._string_scanner$_position;
  85183. _this.expectIdentifier$1("not");
  85184. _this.whitespace$0();
  85185. return new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  85186. }
  85187. condition = _this._stylesheet0$_supportsConditionInParens$0();
  85188. _this.whitespace$0();
  85189. for (; _this.lookingAtIdentifier$0();) {
  85190. if (_this.scanIdentifier$1("or"))
  85191. operator = "or";
  85192. else {
  85193. _this.expectIdentifier$1("and");
  85194. operator = "and";
  85195. }
  85196. _this.whitespace$0();
  85197. right = _this._stylesheet0$_supportsConditionInParens$0();
  85198. endPosition = t1._string_scanner$_position;
  85199. condition = new U.SupportsOperation0(condition, right, operator, Y._FileSpan$(t1._sourceFile, t2, endPosition));
  85200. lowerOperator = operator.toLowerCase();
  85201. if (lowerOperator !== "and" && lowerOperator !== "or")
  85202. H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  85203. _this.whitespace$0();
  85204. }
  85205. return condition;
  85206. },
  85207. _stylesheet0$_supportsConditionInParens$0: function() {
  85208. var next, condition, negation, $name, value, _this = this,
  85209. t1 = _this.scanner,
  85210. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  85211. if (t1.peekChar$0() === 35)
  85212. return new X.SupportsInterpolation0(_this.singleInterpolation$0(), t1.spanFrom$1(start));
  85213. t1.expectChar$1(40);
  85214. _this.whitespace$0();
  85215. next = t1.peekChar$0();
  85216. if (next === 40 || next === 35) {
  85217. condition = _this._stylesheet0$_supportsCondition$0();
  85218. _this.whitespace$0();
  85219. t1.expectChar$1(41);
  85220. return condition;
  85221. }
  85222. if (next === 110 || next === 78) {
  85223. negation = _this._stylesheet0$_trySupportsNegation$0();
  85224. if (negation != null) {
  85225. t1.expectChar$1(41);
  85226. return negation;
  85227. }
  85228. }
  85229. $name = _this.expression$0();
  85230. t1.expectChar$1(58);
  85231. _this.whitespace$0();
  85232. value = _this.expression$0();
  85233. t1.expectChar$1(41);
  85234. return new L.SupportsDeclaration0($name, value, t1.spanFrom$1(start));
  85235. },
  85236. _stylesheet0$_trySupportsNegation$0: function() {
  85237. var next, _this = this,
  85238. t1 = _this.scanner,
  85239. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  85240. if (!_this.scanIdentifier$1("not") || t1._string_scanner$_position === t1.string.length) {
  85241. t1.set$state(start);
  85242. return null;
  85243. }
  85244. next = t1.peekChar$0();
  85245. if (!(next === 32 || next === 9 || T.isNewline0(next)) && next !== 40) {
  85246. t1.set$state(start);
  85247. return null;
  85248. }
  85249. _this.whitespace$0();
  85250. return new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(start));
  85251. },
  85252. _stylesheet0$_lookingAtInterpolatedIdentifier$0: function() {
  85253. var second,
  85254. t1 = this.scanner,
  85255. first = t1.peekChar$0();
  85256. if (first == null)
  85257. return false;
  85258. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || first === 92)
  85259. return true;
  85260. if (first === 35)
  85261. return t1.peekChar$1(1) === 123;
  85262. if (first !== 45)
  85263. return false;
  85264. second = t1.peekChar$1(1);
  85265. if (second == null)
  85266. return false;
  85267. if (second === 35)
  85268. return t1.peekChar$1(2) === 123;
  85269. return second === 95 || T.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
  85270. },
  85271. _stylesheet0$_lookingAtInterpolatedIdentifierBody$0: function() {
  85272. var t1 = this.scanner,
  85273. first = t1.peekChar$0();
  85274. if (first == null)
  85275. return false;
  85276. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || T.isDigit0(first) || first === 45 || first === 92)
  85277. return true;
  85278. return first === 35 && t1.peekChar$1(1) === 123;
  85279. },
  85280. _stylesheet0$_lookingAtExpression$0: function() {
  85281. var next,
  85282. t1 = this.scanner,
  85283. character = t1.peekChar$0();
  85284. if (character == null)
  85285. return false;
  85286. if (character === 46)
  85287. return t1.peekChar$1(1) !== 46;
  85288. if (character === 33) {
  85289. next = t1.peekChar$1(1);
  85290. if (next != null)
  85291. if ((next | 32) !== 105)
  85292. t1 = next === 32 || next === 9 || T.isNewline0(next);
  85293. else
  85294. t1 = true;
  85295. else
  85296. t1 = true;
  85297. return t1;
  85298. }
  85299. if (character !== 40)
  85300. if (character !== 47)
  85301. if (character !== 91)
  85302. if (character !== 39)
  85303. if (character !== 34)
  85304. if (character !== 35)
  85305. if (character !== 43)
  85306. if (character !== 45)
  85307. if (character !== 92)
  85308. if (character !== 36)
  85309. if (character !== 38)
  85310. t1 = character === 95 || T.isAlphabetic1(character) || character >= 128 || T.isDigit0(character);
  85311. else
  85312. t1 = true;
  85313. else
  85314. t1 = true;
  85315. else
  85316. t1 = true;
  85317. else
  85318. t1 = true;
  85319. else
  85320. t1 = true;
  85321. else
  85322. t1 = true;
  85323. else
  85324. t1 = true;
  85325. else
  85326. t1 = true;
  85327. else
  85328. t1 = true;
  85329. else
  85330. t1 = true;
  85331. else
  85332. t1 = true;
  85333. return t1;
  85334. },
  85335. _stylesheet0$_withChildren$1$3: function(child, start, create) {
  85336. var result = create.call$2(this.children$1(child), this.scanner.spanFrom$1(start));
  85337. this.whitespaceWithoutComments$0();
  85338. return result;
  85339. },
  85340. _stylesheet0$_withChildren$3: function(child, start, create) {
  85341. return this._stylesheet0$_withChildren$1$3(child, start, create, type$.dynamic);
  85342. },
  85343. _stylesheet0$_urlString$0: function() {
  85344. var innerError, t2, exception,
  85345. t1 = this.scanner,
  85346. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  85347. url = this.string$0();
  85348. try {
  85349. t2 = P.Uri_parse(url);
  85350. return t2;
  85351. } catch (exception) {
  85352. t2 = H.unwrapException(exception);
  85353. if (type$.legacy_FormatException._is(t2)) {
  85354. innerError = t2;
  85355. this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), t1.spanFrom$1(start));
  85356. } else
  85357. throw exception;
  85358. }
  85359. },
  85360. _stylesheet0$_publicIdentifier$0: function() {
  85361. var _this = this,
  85362. t1 = _this.scanner,
  85363. t2 = t1._string_scanner$_position,
  85364. result = _this.identifier$1$normalize(true);
  85365. _this._stylesheet0$_assertPublic$2(result, new V.StylesheetParser__publicIdentifier_closure0(_this, new S._SpanScannerState(t1, t2)));
  85366. return result;
  85367. },
  85368. _stylesheet0$_assertPublic$2: function(identifier, span) {
  85369. if (!T.isPrivate0(identifier))
  85370. return;
  85371. this.error$2(string$.Privat, span.call$0());
  85372. },
  85373. get$plainCss: function() {
  85374. return false;
  85375. }
  85376. };
  85377. V.StylesheetParser_parse_closure0.prototype = {
  85378. call$0: function() {
  85379. var statements, t4,
  85380. t1 = this.$this,
  85381. t2 = t1.scanner,
  85382. t3 = t2._string_scanner$_position;
  85383. t2.scanChar$1(65279);
  85384. statements = t1.statements$1(new V.StylesheetParser_parse__closure1(t1));
  85385. t2.expectDone$0();
  85386. t4 = t1._stylesheet0$_globalVariables.get$values();
  85387. C.JSArray_methods.addAll$1(statements, H.MappedIterable_MappedIterable(t4, new V.StylesheetParser_parse__closure2(), H._instanceType(t4)._eval$1("Iterable.E"), type$.legacy_Statement_2));
  85388. return V.Stylesheet$0(statements, t2.spanFrom$1(new S._SpanScannerState(t2, t3)), t1.get$plainCss());
  85389. },
  85390. $signature: 98
  85391. };
  85392. V.StylesheetParser_parse__closure1.prototype = {
  85393. call$0: function() {
  85394. return this.$this._stylesheet0$_statement$1$root(true);
  85395. },
  85396. $signature: 37
  85397. };
  85398. V.StylesheetParser_parse__closure2.prototype = {
  85399. call$1: function(declaration) {
  85400. return Z.VariableDeclaration$0(declaration.name, new O.NullExpression0(declaration.expression.get$span()), declaration.span, null, false, true, null);
  85401. }
  85402. };
  85403. V.StylesheetParser_parseArgumentDeclaration_closure0.prototype = {
  85404. call$0: function() {
  85405. var $arguments,
  85406. t1 = this.$this,
  85407. t2 = t1.scanner;
  85408. t2.expectChar$2$name(64, "@-rule");
  85409. t1.identifier$0();
  85410. t1.whitespace$0();
  85411. t1.identifier$0();
  85412. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  85413. t1.whitespace$0();
  85414. t2.expectChar$1(123);
  85415. return $arguments;
  85416. },
  85417. $signature: 155
  85418. };
  85419. V.StylesheetParser__parseSingleProduction_closure0.prototype = {
  85420. call$0: function() {
  85421. var result = this.production.call$0();
  85422. this.$this.scanner.expectDone$0();
  85423. return result;
  85424. },
  85425. $signature: function() {
  85426. return this.T._eval$1("0*()");
  85427. }
  85428. };
  85429. V.StylesheetParser_parseSignature_closure.prototype = {
  85430. call$0: function() {
  85431. var t2, $arguments, t3,
  85432. t1 = this.$this,
  85433. $name = t1.identifier$0();
  85434. t1.whitespace$0();
  85435. t2 = t1.scanner;
  85436. if (t2.peekChar$0() === 40)
  85437. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  85438. else {
  85439. t1 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  85440. t3 = t1.offset;
  85441. $arguments = new B.ArgumentDeclaration0(C.List_empty20, null, Y._FileSpan$(t1.file, t3, t3));
  85442. }
  85443. t2.expectDone$0();
  85444. return new S.Tuple2($name, $arguments, type$.Tuple2_of_legacy_String_and_legacy_ArgumentDeclaration);
  85445. },
  85446. $signature: 156
  85447. };
  85448. V.StylesheetParser__statement_closure0.prototype = {
  85449. call$0: function() {
  85450. return this.$this._stylesheet0$_statement$0();
  85451. },
  85452. $signature: 37
  85453. };
  85454. V.StylesheetParser_variableDeclarationWithoutNamespace_closure1.prototype = {
  85455. call$0: function() {
  85456. return this.$this.scanner.spanFrom$1(this._box_0.start);
  85457. },
  85458. $signature: 26
  85459. };
  85460. V.StylesheetParser_variableDeclarationWithoutNamespace_closure2.prototype = {
  85461. call$0: function() {
  85462. return this.declaration;
  85463. },
  85464. $signature: 187
  85465. };
  85466. V.StylesheetParser__declarationOrBuffer_closure1.prototype = {
  85467. call$2: function(children, span) {
  85468. return L.Declaration$0(this.name, span, children, null);
  85469. }
  85470. };
  85471. V.StylesheetParser__declarationOrBuffer_closure2.prototype = {
  85472. call$2: function(children, span) {
  85473. return L.Declaration$0(this.name, span, children, this._box_0.value);
  85474. }
  85475. };
  85476. V.StylesheetParser__styleRule_closure0.prototype = {
  85477. call$2: function(children, span) {
  85478. var t2, t3, t4, _this = this,
  85479. t1 = _this.$this;
  85480. if (t1.get$indented() && children.length === 0)
  85481. t1.logger.warn$2$span(string$.This_s, _this._box_0.interpolation.span);
  85482. t1._stylesheet0$_inStyleRule = _this.wasInStyleRule;
  85483. t2 = _this._box_0;
  85484. t3 = t2.interpolation;
  85485. t2 = t1.scanner.spanFrom$1(t2.start);
  85486. t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  85487. t4 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85488. return new X.StyleRule0(t3, t2, t1, t4);
  85489. }
  85490. };
  85491. V.StylesheetParser__propertyOrVariableDeclaration_closure1.prototype = {
  85492. call$2: function(children, span) {
  85493. return L.Declaration$0(this._box_0.name, span, children, null);
  85494. }
  85495. };
  85496. V.StylesheetParser__propertyOrVariableDeclaration_closure2.prototype = {
  85497. call$2: function(children, span) {
  85498. return L.Declaration$0(this._box_0.name, span, children, this.value);
  85499. }
  85500. };
  85501. V.StylesheetParser__atRootRule_closure1.prototype = {
  85502. call$2: function(children, span) {
  85503. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  85504. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85505. return new V.AtRootRule0(this.query, span, t1, t2);
  85506. }
  85507. };
  85508. V.StylesheetParser__atRootRule_closure2.prototype = {
  85509. call$2: function(children, span) {
  85510. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  85511. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85512. return new V.AtRootRule0(null, span, t1, t2);
  85513. }
  85514. };
  85515. V.StylesheetParser__eachRule_closure0.prototype = {
  85516. call$2: function(children, span) {
  85517. var t1, t2, t3, _this = this;
  85518. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  85519. t1 = P.List_List$unmodifiable(_this.variables, type$.legacy_String);
  85520. t2 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  85521. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  85522. return new V.EachRule0(t1, _this.list, span, t2, t3);
  85523. }
  85524. };
  85525. V.StylesheetParser__functionRule_closure0.prototype = {
  85526. call$2: function(children, span) {
  85527. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  85528. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85529. return new M.FunctionRule0(this.name, this.$arguments, span, t1, t2);
  85530. }
  85531. };
  85532. V.StylesheetParser__forRule_closure1.prototype = {
  85533. call$0: function() {
  85534. var t1 = this.$this;
  85535. if (!t1.lookingAtIdentifier$0())
  85536. return false;
  85537. if (t1.scanIdentifier$1("to"))
  85538. return this._box_0.exclusive = true;
  85539. else if (t1.scanIdentifier$1("through")) {
  85540. this._box_0.exclusive = false;
  85541. return true;
  85542. } else
  85543. return false;
  85544. },
  85545. $signature: 25
  85546. };
  85547. V.StylesheetParser__forRule_closure2.prototype = {
  85548. call$2: function(children, span) {
  85549. var t1, t2, t3, _this = this;
  85550. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  85551. t1 = _this._box_0.exclusive;
  85552. t2 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  85553. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  85554. return new B.ForRule0(_this.variable, _this.from, _this.to, t1, span, t2, t3);
  85555. }
  85556. };
  85557. V.StylesheetParser__memberList_closure0.prototype = {
  85558. call$0: function() {
  85559. var t1 = this.$this;
  85560. if (t1.scanner.peekChar$0() === 36)
  85561. this.variables.add$1(0, t1.variableName$0());
  85562. else
  85563. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  85564. },
  85565. $signature: 0
  85566. };
  85567. V.StylesheetParser__includeRule_closure0.prototype = {
  85568. call$2: function(children, span) {
  85569. var t1 = this._box_0.contentArguments,
  85570. t2 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  85571. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  85572. return new Y.ContentBlock0(null, t1, span, t2, t3);
  85573. }
  85574. };
  85575. V.StylesheetParser_mediaRule_closure0.prototype = {
  85576. call$2: function(children, span) {
  85577. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  85578. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85579. return new G.MediaRule0(this.query, span, t1, t2);
  85580. }
  85581. };
  85582. V.StylesheetParser__mixinRule_closure0.prototype = {
  85583. call$2: function(children, span) {
  85584. var t2,
  85585. t1 = this.$this,
  85586. hadContent = t1._stylesheet0$_mixinHasContent;
  85587. t1._stylesheet0$_inMixin = false;
  85588. t1._stylesheet0$_mixinHasContent = null;
  85589. t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  85590. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85591. return new T.MixinRule0(hadContent, this.name, this.$arguments, span, t1, t2);
  85592. }
  85593. };
  85594. V.StylesheetParser_mozDocumentRule_closure0.prototype = {
  85595. call$2: function(children, span) {
  85596. var _this = this;
  85597. if (_this._box_0.needsDeprecationWarning)
  85598. _this.$this.logger.warn$3$deprecation$span(string$.x40_moz_, true, span);
  85599. return U.AtRule$0(_this.name, span, children, _this.value);
  85600. }
  85601. };
  85602. V.StylesheetParser_supportsRule_closure0.prototype = {
  85603. call$2: function(children, span) {
  85604. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  85605. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85606. return new B.SupportsRule0(this.condition, span, t1, t2);
  85607. }
  85608. };
  85609. V.StylesheetParser__whileRule_closure0.prototype = {
  85610. call$2: function(children, span) {
  85611. var t1, t2;
  85612. this.$this._stylesheet0$_inControlDirective = this.wasInControlDirective;
  85613. t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  85614. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  85615. return new G.WhileRule0(this.condition, span, t1, t2);
  85616. }
  85617. };
  85618. V.StylesheetParser_unknownAtRule_closure0.prototype = {
  85619. call$2: function(children, span) {
  85620. return U.AtRule$0(this.name, span, children, this._box_0.value);
  85621. }
  85622. };
  85623. V.StylesheetParser_expression_resetState0.prototype = {
  85624. call$0: function() {
  85625. var t2,
  85626. t1 = this._box_0;
  85627. t1.operands = t1.operators = t1.spaceExpressions = t1.commaExpressions = null;
  85628. t2 = this.$this;
  85629. t2.scanner.set$state(this.start);
  85630. t1.allowSlash = t2.lookingAtNumber$0();
  85631. t1.singleExpression = t2._stylesheet0$_singleExpression$0();
  85632. },
  85633. $signature: 1
  85634. };
  85635. V.StylesheetParser_expression_resolveOneOperation0.prototype = {
  85636. call$0: function() {
  85637. var t2, t3,
  85638. t1 = this._box_0,
  85639. operator = t1.operators.pop();
  85640. if (operator !== C.BinaryOperator_RTB0)
  85641. t1.allowSlash = false;
  85642. t2 = t1.allowSlash && !this.$this._stylesheet0$_inParentheses;
  85643. t3 = t1.operands;
  85644. if (t2)
  85645. t1.singleExpression = new V.BinaryOperationExpression0(C.BinaryOperator_RTB0, t3.pop(), t1.singleExpression, true);
  85646. else
  85647. t1.singleExpression = new V.BinaryOperationExpression0(operator, t3.pop(), t1.singleExpression, false);
  85648. },
  85649. $signature: 1
  85650. };
  85651. V.StylesheetParser_expression_resolveOperations0.prototype = {
  85652. call$0: function() {
  85653. var t2,
  85654. t1 = this._box_0;
  85655. if (t1.operators == null)
  85656. return;
  85657. for (t2 = this.resolveOneOperation; t1.operators.length !== 0;)
  85658. t2.call$0();
  85659. },
  85660. $signature: 1
  85661. };
  85662. V.StylesheetParser_expression_addSingleExpression0.prototype = {
  85663. call$2$number: function(expression, number) {
  85664. var t2, _this = this,
  85665. t1 = _this._box_0;
  85666. if (t1.singleExpression != null) {
  85667. t2 = _this.$this;
  85668. if (t2._stylesheet0$_inParentheses) {
  85669. t2._stylesheet0$_inParentheses = false;
  85670. if (t1.allowSlash) {
  85671. _this.resetState.call$0();
  85672. return;
  85673. }
  85674. }
  85675. if (t1.spaceExpressions == null)
  85676. t1.spaceExpressions = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  85677. _this.resolveOperations.call$0();
  85678. t1.spaceExpressions.push(t1.singleExpression);
  85679. t1.allowSlash = number;
  85680. } else if (!number)
  85681. t1.allowSlash = false;
  85682. t1.singleExpression = expression;
  85683. },
  85684. call$1: function(expression) {
  85685. return this.call$2$number(expression, false);
  85686. }
  85687. };
  85688. V.StylesheetParser_expression_addOperator0.prototype = {
  85689. call$1: function(operator) {
  85690. var t2, t3, t4, t5, singleExpression,
  85691. t1 = this.$this;
  85692. if (t1.get$plainCss() && operator !== C.BinaryOperator_RTB0) {
  85693. t2 = t1.scanner;
  85694. t3 = operator.operator.length;
  85695. t2.error$3$length$position("Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  85696. }
  85697. t2 = this._box_0;
  85698. t2.allowSlash = t2.allowSlash && operator === C.BinaryOperator_RTB0;
  85699. if (t2.operators == null)
  85700. t2.operators = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BinaryOperator_2);
  85701. if (t2.operands == null)
  85702. t2.operands = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  85703. t3 = this.resolveOneOperation;
  85704. t4 = operator.precedence;
  85705. while (true) {
  85706. t5 = t2.operators;
  85707. if (!(t5.length !== 0 && C.JSArray_methods.get$last(t5).precedence >= t4))
  85708. break;
  85709. t3.call$0();
  85710. }
  85711. t2.operators.push(operator);
  85712. t2.operands.push(t2.singleExpression);
  85713. t1.whitespace$0();
  85714. t2.allowSlash = t2.allowSlash && t1.lookingAtNumber$0();
  85715. singleExpression = t1._stylesheet0$_singleExpression$0();
  85716. t2.singleExpression = singleExpression;
  85717. t2.allowSlash = t2.allowSlash && singleExpression instanceof T.NumberExpression0;
  85718. }
  85719. };
  85720. V.StylesheetParser_expression_resolveSpaceExpressions0.prototype = {
  85721. call$0: function() {
  85722. var t1, t2, t3;
  85723. this.resolveOperations.call$0();
  85724. t1 = this._box_0;
  85725. t2 = t1.spaceExpressions;
  85726. if (t2 != null) {
  85727. t2.push(t1.singleExpression);
  85728. t2 = P.List_List$unmodifiable(t1.spaceExpressions, type$.legacy_Expression_2);
  85729. t3 = B.spanForList0(t2);
  85730. t1.singleExpression = new D.ListExpression0(t2, C.ListSeparator_space0, false, t3);
  85731. t1.spaceExpressions = null;
  85732. }
  85733. t2 = t1.singleEqualsOperand;
  85734. if (t2 != null) {
  85735. t1.singleExpression = new V.BinaryOperationExpression0(C.BinaryOperator_kjl0, t2, t1.singleExpression, false);
  85736. t1.singleEqualsOperand = null;
  85737. }
  85738. },
  85739. $signature: 1
  85740. };
  85741. V.StylesheetParser__expressionUntilComma_closure0.prototype = {
  85742. call$0: function() {
  85743. return this.$this.scanner.peekChar$0() === 44;
  85744. },
  85745. $signature: 25
  85746. };
  85747. V.StylesheetParser__unicodeRange_closure1.prototype = {
  85748. call$1: function(char) {
  85749. return char != null && T.isHex0(char);
  85750. },
  85751. $signature: 16
  85752. };
  85753. V.StylesheetParser__unicodeRange_closure2.prototype = {
  85754. call$1: function(char) {
  85755. return char != null && T.isHex0(char);
  85756. },
  85757. $signature: 16
  85758. };
  85759. V.StylesheetParser_identifierLike_closure0.prototype = {
  85760. call$0: function() {
  85761. return this.$this.scanner.spanFrom$1(this.start);
  85762. },
  85763. $signature: 26
  85764. };
  85765. V.StylesheetParser__expressionUntilComparison_closure0.prototype = {
  85766. call$0: function() {
  85767. var t1 = this.$this.scanner,
  85768. next = t1.peekChar$0();
  85769. if (next === 61)
  85770. return t1.peekChar$1(1) !== 61;
  85771. return next === 60 || next === 62;
  85772. },
  85773. $signature: 25
  85774. };
  85775. V.StylesheetParser__publicIdentifier_closure0.prototype = {
  85776. call$0: function() {
  85777. return this.$this.scanner.spanFrom$1(this.start);
  85778. },
  85779. $signature: 26
  85780. };
  85781. V.Stylesheet0.prototype = {
  85782. Stylesheet$3$plainCss0: function(children, span, plainCss) {
  85783. var t1, t2, t3, t4, _i, child;
  85784. for (t1 = this.children, t2 = t1.length, t3 = this._stylesheet1$_forwards, t4 = this._stylesheet1$_uses, _i = 0; _i < t2; ++_i) {
  85785. child = t1[_i];
  85786. if (child instanceof T.UseRule0)
  85787. t4.push(child);
  85788. else if (child instanceof L.ForwardRule0)
  85789. t3.push(child);
  85790. else if (!(child instanceof B.SilentComment0) && !(child instanceof L.LoudComment0) && !(child instanceof Z.VariableDeclaration0))
  85791. break;
  85792. }
  85793. },
  85794. accept$1$1: function(visitor) {
  85795. return visitor.visitStylesheet$1(this);
  85796. },
  85797. accept$1: function(visitor) {
  85798. return this.accept$1$1(visitor, type$.dynamic);
  85799. },
  85800. toString$0: function(_) {
  85801. var t1 = this.children;
  85802. return (t1 && C.JSArray_methods).join$1(t1, " ");
  85803. },
  85804. get$span: function() {
  85805. return this.span;
  85806. }
  85807. };
  85808. N.SupportsCondition0.prototype = {};
  85809. B.ModifiableCssSupportsRule0.prototype = {
  85810. accept$1$1: function(visitor) {
  85811. return visitor.visitCssSupportsRule$1(this);
  85812. },
  85813. accept$1: function(visitor) {
  85814. return this.accept$1$1(visitor, type$.dynamic);
  85815. },
  85816. copyWithoutChildren$0: function() {
  85817. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  85818. return new B.ModifiableCssSupportsRule0(this.condition, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
  85819. },
  85820. $isCssSupportsRule0: 1,
  85821. get$span: function() {
  85822. return this.span;
  85823. }
  85824. };
  85825. B.SupportsRule0.prototype = {
  85826. accept$1$1: function(visitor) {
  85827. return visitor.visitSupportsRule$1(this);
  85828. },
  85829. accept$1: function(visitor) {
  85830. return this.accept$1$1(visitor, type$.dynamic);
  85831. },
  85832. toString$0: function(_) {
  85833. var t1 = this.children;
  85834. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  85835. },
  85836. get$span: function() {
  85837. return this.span;
  85838. }
  85839. };
  85840. M.Syntax0.prototype = {
  85841. toString$0: function(_) {
  85842. return this._syntax0$_name;
  85843. }
  85844. };
  85845. F.TypeSelector0.prototype = {
  85846. get$minSpecificity: function() {
  85847. return 1;
  85848. },
  85849. accept$1$1: function(visitor) {
  85850. visitor._buffer.write$1(0, this.name);
  85851. return null;
  85852. },
  85853. accept$1: function(visitor) {
  85854. return this.accept$1$1(visitor, type$.dynamic);
  85855. },
  85856. addSuffix$1: function(suffix) {
  85857. var t1 = this.name;
  85858. return new F.TypeSelector0(new D.QualifiedName0(t1.name + suffix, t1.namespace));
  85859. },
  85860. unify$1: function(compound) {
  85861. var unified, t1, t2, cur, _i;
  85862. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0 || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector0) {
  85863. unified = Y.unifyUniversalAndElement0(this, C.JSArray_methods.get$first(compound));
  85864. if (unified == null)
  85865. return null;
  85866. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  85867. t1.push(unified);
  85868. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  85869. cur = t2.__internal$_current;
  85870. t1.push(cur);
  85871. }
  85872. return t1;
  85873. } else {
  85874. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  85875. t1.push(this);
  85876. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  85877. t1.push(compound[_i]);
  85878. return t1;
  85879. }
  85880. },
  85881. $eq: function(_, other) {
  85882. if (other == null)
  85883. return false;
  85884. return other instanceof F.TypeSelector0 && other.name.$eq(0, this.name);
  85885. },
  85886. get$hashCode: function(_) {
  85887. var t1 = this.name;
  85888. return C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  85889. }
  85890. };
  85891. G.Types.prototype = {};
  85892. X.UnaryOperationExpression0.prototype = {
  85893. accept$1$1: function(visitor) {
  85894. return visitor.visitUnaryOperationExpression$1(this);
  85895. },
  85896. accept$1: function(visitor) {
  85897. return this.accept$1$1(visitor, type$.dynamic);
  85898. },
  85899. toString$0: function(_) {
  85900. var t1 = this.operator,
  85901. t2 = t1.operator;
  85902. t1 = t1 === C.UnaryOperator_not_not0 ? t2 + H.Primitives_stringFromCharCode(32) : t2;
  85903. t1 += H.S(this.operand);
  85904. return t1.charCodeAt(0) == 0 ? t1 : t1;
  85905. },
  85906. $isExpression0: 1,
  85907. $isAstNode0: 1,
  85908. get$span: function() {
  85909. return this.span;
  85910. }
  85911. };
  85912. X.UnaryOperator0.prototype = {
  85913. toString$0: function(_) {
  85914. return this.name;
  85915. }
  85916. };
  85917. N.UniversalSelector0.prototype = {
  85918. get$minSpecificity: function() {
  85919. return 0;
  85920. },
  85921. accept$1$1: function(visitor) {
  85922. var t2,
  85923. t1 = this.namespace;
  85924. if (t1 != null) {
  85925. t2 = visitor._buffer;
  85926. t2.write$1(0, t1);
  85927. t2.writeCharCode$1(124);
  85928. }
  85929. visitor._buffer.writeCharCode$1(42);
  85930. return null;
  85931. },
  85932. accept$1: function(visitor) {
  85933. return this.accept$1$1(visitor, type$.dynamic);
  85934. },
  85935. unify$1: function(compound) {
  85936. var unified, t1, t2, cur, _i, _this = this;
  85937. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0 || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector0) {
  85938. unified = Y.unifyUniversalAndElement0(_this, C.JSArray_methods.get$first(compound));
  85939. if (unified == null)
  85940. return null;
  85941. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  85942. t1.push(unified);
  85943. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  85944. cur = t2.__internal$_current;
  85945. t1.push(cur);
  85946. }
  85947. return t1;
  85948. }
  85949. t1 = _this.namespace;
  85950. if (t1 != null && t1 !== "*") {
  85951. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  85952. t1.push(_this);
  85953. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  85954. t1.push(compound[_i]);
  85955. return t1;
  85956. }
  85957. if (compound.length !== 0)
  85958. return compound;
  85959. return H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector_2);
  85960. },
  85961. $eq: function(_, other) {
  85962. if (other == null)
  85963. return false;
  85964. return other instanceof N.UniversalSelector0 && other.namespace == this.namespace;
  85965. },
  85966. get$hashCode: function(_) {
  85967. return J.get$hashCode$(this.namespace);
  85968. }
  85969. };
  85970. R.UnprefixedMapView0.prototype = {
  85971. get$keys: function() {
  85972. return new R._UnprefixedKeys0(this);
  85973. },
  85974. $index: function(_, key) {
  85975. return typeof key == "string" ? this._unprefixed_map_view0$_map.$index(0, J.$add$ansx(this._unprefixed_map_view0$_prefix, key)) : null;
  85976. },
  85977. containsKey$1: function(key) {
  85978. return typeof key == "string" && this._unprefixed_map_view0$_map.containsKey$1(J.$add$ansx(this._unprefixed_map_view0$_prefix, key));
  85979. },
  85980. remove$1: function(_, key) {
  85981. return typeof key == "string" ? this._unprefixed_map_view0$_map.remove$1(0, J.$add$ansx(this._unprefixed_map_view0$_prefix, key)) : null;
  85982. }
  85983. };
  85984. R._UnprefixedKeys0.prototype = {
  85985. get$iterator: function(_) {
  85986. var t1 = J.where$1$ax(this._unprefixed_map_view0$_view._unprefixed_map_view0$_map.get$keys(), new R._UnprefixedKeys_iterator_closure1(this)).map$1$1(0, new R._UnprefixedKeys_iterator_closure2(this), type$.legacy_String);
  85987. return t1.get$iterator(t1);
  85988. },
  85989. contains$1: function(_, key) {
  85990. return this._unprefixed_map_view0$_view.containsKey$1(key);
  85991. }
  85992. };
  85993. R._UnprefixedKeys_iterator_closure1.prototype = {
  85994. call$1: function(key) {
  85995. return J.startsWith$1$s(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix);
  85996. }
  85997. };
  85998. R._UnprefixedKeys_iterator_closure2.prototype = {
  85999. call$1: function(key) {
  86000. return J.substring$1$s(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix.length);
  86001. }
  86002. };
  86003. T.UseRule0.prototype = {
  86004. UseRule$4$configuration0: function(url, namespace, span, configuration) {
  86005. var t1, t2, _i, variable;
  86006. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  86007. variable = t1[_i];
  86008. if (variable.isGuarded)
  86009. throw H.wrapException(P.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  86010. }
  86011. },
  86012. accept$1$1: function(visitor) {
  86013. return visitor.visitUseRule$1(this);
  86014. },
  86015. accept$1: function(visitor) {
  86016. return this.accept$1$1(visitor, type$.dynamic);
  86017. },
  86018. toString$0: function(_) {
  86019. var t1 = this.url,
  86020. t2 = "@use " + H.S(new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([J.toString$0$(t1)], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain()),
  86021. basename = t1.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(t1.get$pathSegments()),
  86022. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  86023. t1 = this.namespace;
  86024. if (t1 !== C.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  86025. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  86026. else
  86027. t1 = t2;
  86028. t2 = this.configuration;
  86029. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  86030. return t1.charCodeAt(0) == 0 ? t1 : t1;
  86031. },
  86032. $isAstNode0: 1,
  86033. $isStatement0: 1,
  86034. get$span: function() {
  86035. return this.span;
  86036. }
  86037. };
  86038. E.UserDefinedCallable0.prototype = {
  86039. get$name: function() {
  86040. return this.declaration.name;
  86041. },
  86042. $isAsyncCallable0: 1,
  86043. $isCallable0: 1
  86044. };
  86045. B.resolveImportPath_closure1.prototype = {
  86046. call$0: function() {
  86047. return B._exactlyOne0(B._tryPath0($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  86048. },
  86049. $signature: 9
  86050. };
  86051. B.resolveImportPath_closure2.prototype = {
  86052. call$0: function() {
  86053. return B._exactlyOne0(B._tryPathWithExtensions0(H.S(this.path) + ".import"));
  86054. },
  86055. $signature: 9
  86056. };
  86057. B._tryPathAsDirectory_closure0.prototype = {
  86058. call$0: function() {
  86059. return B._exactlyOne0(B._tryPathWithExtensions0(D.join(this.path, "index.import", null)));
  86060. },
  86061. $signature: 9
  86062. };
  86063. B._exactlyOne_closure0.prototype = {
  86064. call$1: function(path) {
  86065. var t1 = $.$get$context();
  86066. return C.JSString_methods.$add(" ", t1.prettyUri$1(t1.toUri$1(path)));
  86067. }
  86068. };
  86069. B.forwardToString_closure.prototype = {
  86070. call$1: function(thisArg) {
  86071. return J.toString$0$(thisArg);
  86072. },
  86073. $signature: 27
  86074. };
  86075. B.createClass_closure.prototype = {
  86076. call$2: function($name, body) {
  86077. this.$prototype[$name] = P.allowInteropCaptureThis(body);
  86078. }
  86079. };
  86080. B._PropertyDescriptor0.prototype = {};
  86081. B.indent_closure0.prototype = {
  86082. call$1: function(line) {
  86083. return C.JSString_methods.$add(C.JSString_methods.$mul(" ", this.indentation), line);
  86084. }
  86085. };
  86086. B.flattenVertically_closure1.prototype = {
  86087. call$1: function(inner) {
  86088. return Q.QueueList_QueueList$from(inner, this.T._eval$1("0*"));
  86089. }
  86090. };
  86091. B.flattenVertically_closure2.prototype = {
  86092. call$1: function(queue) {
  86093. this.result.push(queue.removeFirst$0());
  86094. return queue.get$length(queue) === 0;
  86095. }
  86096. };
  86097. B.longestCommonSubsequence_closure2.prototype = {
  86098. call$2: function(element1, element2) {
  86099. return J.$eq$(element1, element2) ? element1 : null;
  86100. },
  86101. $signature: function() {
  86102. return this.T._eval$1("0*(0*,0*)");
  86103. }
  86104. };
  86105. B.longestCommonSubsequence_closure3.prototype = {
  86106. call$1: function(_) {
  86107. return P.List_List$filled(J.get$length$asx(this.list2) + 1, 0, false, type$.legacy_int);
  86108. },
  86109. $signature: 88
  86110. };
  86111. B.longestCommonSubsequence_closure4.prototype = {
  86112. call$1: function(_) {
  86113. var t1 = new Array(J.get$length$asx(this.list2));
  86114. t1.fixed$length = Array;
  86115. return H.setRuntimeTypeInfo(t1, this.T._eval$1("JSArray<0*>"));
  86116. },
  86117. $signature: function() {
  86118. return this.T._eval$1("List<0*>*(int*)");
  86119. }
  86120. };
  86121. B.longestCommonSubsequence_backtrack0.prototype = {
  86122. call$2: function(i, j) {
  86123. var selection, t1, _this = this;
  86124. if (i === -1 || j === -1)
  86125. return H.setRuntimeTypeInfo([], _this.T._eval$1("JSArray<0*>"));
  86126. selection = J.$index$asx(_this.selections[i], j);
  86127. if (selection != null) {
  86128. t1 = _this.call$2(i - 1, j - 1);
  86129. J.add$1$ax(t1, selection);
  86130. return t1;
  86131. }
  86132. t1 = _this.lengths;
  86133. return J.$index$asx(t1[i + 1], j) > J.$index$asx(t1[i], j + 1) ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  86134. }
  86135. };
  86136. B.mapAddAll2_closure0.prototype = {
  86137. call$2: function(key, inner) {
  86138. var t1 = this.destination;
  86139. if (t1.containsKey$1(key))
  86140. t1.$index(0, key).addAll$1(0, inner);
  86141. else
  86142. t1.$indexSet(0, key, inner);
  86143. }
  86144. };
  86145. F.CssValue0.prototype = {
  86146. toString$0: function(_) {
  86147. return J.toString$0$(this.value);
  86148. },
  86149. $isAstNode0: 1,
  86150. get$value: function(receiver) {
  86151. return this.value;
  86152. },
  86153. get$span: function() {
  86154. return this.span;
  86155. }
  86156. };
  86157. F.ValueExpression0.prototype = {
  86158. accept$1$1: function(visitor) {
  86159. return visitor.visitValueExpression$1(this);
  86160. },
  86161. accept$1: function(visitor) {
  86162. return this.accept$1$1(visitor, type$.dynamic);
  86163. },
  86164. toString$0: function(_) {
  86165. return J.toString$0$(this.value);
  86166. },
  86167. $isExpression0: 1,
  86168. $isAstNode0: 1,
  86169. get$span: function() {
  86170. return this.span;
  86171. }
  86172. };
  86173. F.ModifiableCssValue0.prototype = {
  86174. toString$0: function(_) {
  86175. return J.toString$0$(this.value);
  86176. },
  86177. $isAstNode0: 1,
  86178. $isCssValue0: 1,
  86179. get$value: function(receiver) {
  86180. return this.value;
  86181. },
  86182. get$span: function() {
  86183. return this.span;
  86184. }
  86185. };
  86186. F.Value0.prototype = {
  86187. get$isTruthy: function() {
  86188. return true;
  86189. },
  86190. get$separator: function() {
  86191. return C.ListSeparator_undecided0;
  86192. },
  86193. get$hasBrackets: function() {
  86194. return false;
  86195. },
  86196. get$asList: function() {
  86197. return H.setRuntimeTypeInfo([this], type$.JSArray_legacy_Value_2);
  86198. },
  86199. get$lengthAsList: function() {
  86200. return 1;
  86201. },
  86202. get$isBlank: function() {
  86203. return false;
  86204. },
  86205. get$isSpecialNumber: function() {
  86206. return false;
  86207. },
  86208. get$isVar: function() {
  86209. return false;
  86210. },
  86211. get$realNull: function() {
  86212. return this;
  86213. },
  86214. sassIndexToListIndex$2: function(sassIndex, $name) {
  86215. var _this = this,
  86216. index = sassIndex.assertNumber$1($name).assertInt$1($name);
  86217. if (index === 0)
  86218. throw H.wrapException(_this._value0$_exception$2("List index may not be 0.", $name));
  86219. if (Math.abs(index) > _this.get$lengthAsList())
  86220. throw H.wrapException(_this._value0$_exception$2("Invalid index " + sassIndex.toString$0(0) + " for a list with " + _this.get$lengthAsList() + " elements.", $name));
  86221. return index < 0 ? _this.get$lengthAsList() + index : index - 1;
  86222. },
  86223. assertColor$1: function($name) {
  86224. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a color.", $name));
  86225. },
  86226. assertFunction$1: function($name) {
  86227. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a function reference.", $name));
  86228. },
  86229. assertMap$1: function($name) {
  86230. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a map.", $name));
  86231. },
  86232. assertNumber$1: function($name) {
  86233. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a number.", $name));
  86234. },
  86235. assertNumber$0: function() {
  86236. return this.assertNumber$1(null);
  86237. },
  86238. assertString$1: function($name) {
  86239. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a string.", $name));
  86240. },
  86241. assertSelector$2$allowParent$name: function(allowParent, $name) {
  86242. var error, t1, exception,
  86243. string = this._value0$_selectorString$1($name);
  86244. try {
  86245. t1 = D.SelectorList_SelectorList$parse0(string, allowParent, true, null);
  86246. return t1;
  86247. } catch (exception) {
  86248. t1 = H.unwrapException(exception);
  86249. if (t1 instanceof E.SassFormatException0) {
  86250. error = t1;
  86251. throw H.wrapException(this._value0$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  86252. } else
  86253. throw exception;
  86254. }
  86255. },
  86256. assertSelector$1$name: function($name) {
  86257. return this.assertSelector$2$allowParent$name(false, $name);
  86258. },
  86259. assertSelector$0: function() {
  86260. return this.assertSelector$2$allowParent$name(false, null);
  86261. },
  86262. assertSelector$1$allowParent: function(allowParent) {
  86263. return this.assertSelector$2$allowParent$name(allowParent, null);
  86264. },
  86265. assertCompoundSelector$1$name: function($name) {
  86266. var error, t1, exception,
  86267. allowParent = false,
  86268. string = this._value0$_selectorString$1($name);
  86269. try {
  86270. t1 = S.SpanScanner$(string, null);
  86271. t1 = new T.SelectorParser0(allowParent, true, t1, C.C_StderrLogger).parseCompoundSelector$0();
  86272. return t1;
  86273. } catch (exception) {
  86274. t1 = H.unwrapException(exception);
  86275. if (t1 instanceof E.SassFormatException0) {
  86276. error = t1;
  86277. throw H.wrapException(this._value0$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  86278. } else
  86279. throw exception;
  86280. }
  86281. },
  86282. _value0$_selectorString$1: function($name) {
  86283. var string = this._value0$_selectorStringOrNull$0();
  86284. if (string != null)
  86285. return string;
  86286. throw H.wrapException(this._value0$_exception$2(this.toString$0(0) + string$.x20is_no, $name));
  86287. },
  86288. _value0$_selectorString$0: function() {
  86289. return this._value0$_selectorString$1(null);
  86290. },
  86291. _value0$_selectorStringOrNull$0: function() {
  86292. var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
  86293. if (_this instanceof D.SassString0)
  86294. return _this.text;
  86295. if (!(_this instanceof D.SassList0))
  86296. return _null;
  86297. t1 = _this._list1$_contents;
  86298. t2 = t1.length;
  86299. if (t2 === 0)
  86300. return _null;
  86301. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  86302. t3 = _this.separator === C.ListSeparator_comma0;
  86303. if (t3)
  86304. for (_i = 0; _i < t2; ++_i) {
  86305. complex = t1[_i];
  86306. if (complex instanceof D.SassString0)
  86307. result.push(complex.text);
  86308. else if (complex instanceof D.SassList0 && complex.separator === C.ListSeparator_space0) {
  86309. string = complex._value0$_selectorString$0();
  86310. result.push(string);
  86311. } else
  86312. return _null;
  86313. }
  86314. else
  86315. for (_i = 0; _i < t2; ++_i) {
  86316. compound = t1[_i];
  86317. if (compound instanceof D.SassString0)
  86318. result.push(compound.text);
  86319. else
  86320. return _null;
  86321. }
  86322. return C.JSArray_methods.join$1(result, t3 ? ", " : " ");
  86323. },
  86324. changeListContents$2$separator: function(contents, separator) {
  86325. var t1 = separator == null ? this.get$separator() : separator,
  86326. t2 = this.get$hasBrackets();
  86327. return D.SassList$0(contents, t1, t2);
  86328. },
  86329. changeListContents$1: function(contents) {
  86330. return this.changeListContents$2$separator(contents, null);
  86331. },
  86332. greaterThan$1: function(other) {
  86333. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  86334. },
  86335. greaterThanOrEquals$1: function(other) {
  86336. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  86337. },
  86338. lessThan$1: function(other) {
  86339. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  86340. },
  86341. lessThanOrEquals$1: function(other) {
  86342. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  86343. },
  86344. times$1: function(other) {
  86345. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " * " + H.S(other) + '".'));
  86346. },
  86347. modulo$1: function(other) {
  86348. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  86349. },
  86350. plus$1: function(other) {
  86351. var t1;
  86352. if (other instanceof D.SassString0)
  86353. return new D.SassString0(C.JSString_methods.$add(N.serializeValue(this, false, true), other.text), other.hasQuotes);
  86354. else {
  86355. t1 = N.serializeValue(this, false, true);
  86356. other.toString;
  86357. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  86358. }
  86359. },
  86360. minus$1: function(other) {
  86361. var t1 = N.serializeValue(this, false, true) + "-";
  86362. other.toString;
  86363. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  86364. },
  86365. dividedBy$1: function(other) {
  86366. var t1 = N.serializeValue(this, false, true) + "/";
  86367. other.toString;
  86368. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  86369. },
  86370. unaryPlus$0: function() {
  86371. return new D.SassString0("+" + N.serializeValue(this, false, true), false);
  86372. },
  86373. unaryMinus$0: function() {
  86374. return new D.SassString0("-" + N.serializeValue(this, false, true), false);
  86375. },
  86376. unaryNot$0: function() {
  86377. return C.SassBoolean_false;
  86378. },
  86379. withoutSlash$0: function() {
  86380. return this;
  86381. },
  86382. toString$0: function(_) {
  86383. return N.serializeValue(this, true, true);
  86384. },
  86385. _value0$_exception$2: function(message, $name) {
  86386. return new E.SassScriptException0($name == null ? message : "$" + $name + ": " + message);
  86387. }
  86388. };
  86389. S.VariableExpression0.prototype = {
  86390. accept$1$1: function(visitor) {
  86391. return visitor.visitVariableExpression$1(this);
  86392. },
  86393. accept$1: function(visitor) {
  86394. return this.accept$1$1(visitor, type$.dynamic);
  86395. },
  86396. toString$0: function(_) {
  86397. var t1 = this.namespace;
  86398. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  86399. t1 += this.name;
  86400. return t1.charCodeAt(0) == 0 ? t1 : t1;
  86401. },
  86402. $isExpression0: 1,
  86403. $isAstNode0: 1,
  86404. get$span: function() {
  86405. return this.span;
  86406. }
  86407. };
  86408. Z.VariableDeclaration0.prototype = {
  86409. accept$1$1: function(visitor) {
  86410. return visitor.visitVariableDeclaration$1(this);
  86411. },
  86412. accept$1: function(visitor) {
  86413. return this.accept$1$1(visitor, type$.dynamic);
  86414. },
  86415. toString$0: function(_) {
  86416. var t1 = this.namespace;
  86417. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  86418. t1 += this.name + ": " + H.S(this.expression) + ";";
  86419. return t1.charCodeAt(0) == 0 ? t1 : t1;
  86420. },
  86421. $isAstNode0: 1,
  86422. $isStatement0: 1,
  86423. get$span: function() {
  86424. return this.span;
  86425. }
  86426. };
  86427. N.withWarnCallback_closure0.prototype = {
  86428. call$0: function() {
  86429. return this.callback.call$0();
  86430. },
  86431. "call*": "call$0",
  86432. $requiredArgCount: 0,
  86433. $signature: function() {
  86434. return this.T._eval$1("0*()");
  86435. }
  86436. };
  86437. Y.WarnRule0.prototype = {
  86438. accept$1$1: function(visitor) {
  86439. return visitor.visitWarnRule$1(this);
  86440. },
  86441. accept$1: function(visitor) {
  86442. return this.accept$1$1(visitor, type$.dynamic);
  86443. },
  86444. toString$0: function(_) {
  86445. return "@warn " + H.S(this.expression) + ";";
  86446. },
  86447. $isAstNode0: 1,
  86448. $isStatement0: 1,
  86449. get$span: function() {
  86450. return this.span;
  86451. }
  86452. };
  86453. G.WhileRule0.prototype = {
  86454. accept$1$1: function(visitor) {
  86455. return visitor.visitWhileRule$1(this);
  86456. },
  86457. accept$1: function(visitor) {
  86458. return this.accept$1$1(visitor, type$.dynamic);
  86459. },
  86460. toString$0: function(_) {
  86461. var t1 = this.children;
  86462. return "@while " + H.S(this.condition) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  86463. },
  86464. get$span: function() {
  86465. return this.span;
  86466. }
  86467. };
  86468. (function aliases() {
  86469. var _ = J.Interceptor.prototype;
  86470. _.super$Interceptor$noSuchMethod = _.noSuchMethod$1;
  86471. _ = J.JavaScriptObject.prototype;
  86472. _.super$JavaScriptObject$toString = _.toString$0;
  86473. _ = H.JsLinkedHashMap.prototype;
  86474. _.super$JsLinkedHashMap$internalContainsKey = _.internalContainsKey$1;
  86475. _.super$JsLinkedHashMap$internalGet = _.internalGet$1;
  86476. _.super$JsLinkedHashMap$internalSet = _.internalSet$2;
  86477. _.super$JsLinkedHashMap$internalRemove = _.internalRemove$1;
  86478. _ = P._BroadcastStreamController.prototype;
  86479. _.super$_BroadcastStreamController$_addEventError = _._addEventError$0;
  86480. _ = P._BufferingStreamSubscription.prototype;
  86481. _.super$_BufferingStreamSubscription$_add = _._async$_add$1;
  86482. _.super$_BufferingStreamSubscription$_addError = _._addError$2;
  86483. _ = P.ListMixin.prototype;
  86484. _.super$ListMixin$setRange = _.setRange$4;
  86485. _ = P.Iterable.prototype;
  86486. _.super$Iterable$where = _.where$1;
  86487. _.super$Iterable$skipWhile = _.skipWhile$1;
  86488. _ = B.ModifiableCssParentNode.prototype;
  86489. _.super$ModifiableCssParentNode$addChild = _.addChild$1;
  86490. _ = M.SimpleSelector.prototype;
  86491. _.super$SimpleSelector$addSuffix = _.addSuffix$1;
  86492. _.super$SimpleSelector$unify = _.unify$1;
  86493. _ = G.Parser.prototype;
  86494. _.super$Parser$silentComment = _.silentComment$0;
  86495. _ = V.StylesheetParser.prototype;
  86496. _.super$StylesheetParser$importArgument = _.importArgument$0;
  86497. _ = F.Value.prototype;
  86498. _.super$Value$assertMap = _.assertMap$1;
  86499. _.super$Value$plus = _.plus$1;
  86500. _.super$Value$minus = _.minus$1;
  86501. _.super$Value$dividedBy = _.dividedBy$1;
  86502. _ = Y.SourceSpanMixin.prototype;
  86503. _.super$SourceSpanMixin$compareTo = _.compareTo$1;
  86504. _.super$SourceSpanMixin$$eq = _.$eq;
  86505. _ = X.StringScanner.prototype;
  86506. _.super$StringScanner$readChar = _.readChar$0;
  86507. _.super$StringScanner$scanChar = _.scanChar$1;
  86508. _.super$StringScanner$scan = _.scan$1;
  86509. _.super$StringScanner$matches = _.matches$1;
  86510. _ = B.ModifiableCssParentNode0.prototype;
  86511. _.super$ModifiableCssParentNode$addChild0 = _.addChild$1;
  86512. _ = G.Parser1.prototype;
  86513. _.super$Parser$silentComment0 = _.silentComment$0;
  86514. _ = M.SimpleSelector0.prototype;
  86515. _.super$SimpleSelector$addSuffix0 = _.addSuffix$1;
  86516. _.super$SimpleSelector$unify0 = _.unify$1;
  86517. _ = V.StylesheetParser0.prototype;
  86518. _.super$StylesheetParser$importArgument0 = _.importArgument$0;
  86519. _ = F.Value0.prototype;
  86520. _.super$Value$assertMap0 = _.assertMap$1;
  86521. _.super$Value$plus0 = _.plus$1;
  86522. _.super$Value$minus0 = _.minus$1;
  86523. _.super$Value$dividedBy0 = _.dividedBy$1;
  86524. })();
  86525. (function installTearOffs() {
  86526. var _static_2 = hunkHelpers._static_2,
  86527. _instance_1_i = hunkHelpers._instance_1i,
  86528. _instance_1_u = hunkHelpers._instance_1u,
  86529. _static_1 = hunkHelpers._static_1,
  86530. _static_0 = hunkHelpers._static_0,
  86531. _static = hunkHelpers.installStaticTearOff,
  86532. _instance_0_u = hunkHelpers._instance_0u,
  86533. _instance = hunkHelpers.installInstanceTearOff,
  86534. _instance_2_u = hunkHelpers._instance_2u,
  86535. _instance_0_i = hunkHelpers._instance_0i;
  86536. _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 66);
  86537. _instance_1_i(J.JSArray.prototype, "get$contains", "contains$1", 21);
  86538. _instance_1_i(H._CastIterableBase.prototype, "get$contains", "contains$1", 21);
  86539. _instance_1_u(H.ConstantStringMap.prototype, "get$containsKey", "containsKey$1", 21);
  86540. _instance_1_u(H.ConstantProtoMap.prototype, "get$containsKey", "containsKey$1", 21);
  86541. _instance_1_u(H.JsLinkedHashMap.prototype, "get$containsKey", "containsKey$1", 21);
  86542. _static_1(P, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 48);
  86543. _static_1(P, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 48);
  86544. _static_1(P, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 48);
  86545. _static_0(P, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 1);
  86546. _static_1(P, "async___nullDataHandler$closure", "_nullDataHandler", 78);
  86547. _static_2(P, "async___nullErrorHandler$closure", "_nullErrorHandler", 40);
  86548. _static_0(P, "async___nullDoneHandler$closure", "_nullDoneHandler", 1);
  86549. _static(P, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 160, 0);
  86550. _static(P, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) {
  86551. return P._rootRun($self, $parent, zone, f, type$.dynamic);
  86552. }], 161, 1);
  86553. _static(P, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) {
  86554. return P._rootRunUnary($self, $parent, zone, f, arg, type$.dynamic, type$.dynamic);
  86555. }], 162, 1);
  86556. _static(P, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) {
  86557. return P._rootRunBinary($self, $parent, zone, f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
  86558. }], 163, 1);
  86559. _static(P, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) {
  86560. return P._rootRegisterCallback($self, $parent, zone, f, type$.dynamic);
  86561. }], 164, 0);
  86562. _static(P, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) {
  86563. return P._rootRegisterUnaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic);
  86564. }], 165, 0);
  86565. _static(P, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) {
  86566. return P._rootRegisterBinaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic, type$.dynamic);
  86567. }], 166, 0);
  86568. _static(P, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 167, 0);
  86569. _static(P, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 168, 0);
  86570. _static(P, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 169, 0);
  86571. _static(P, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 170, 0);
  86572. _static(P, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 171, 0);
  86573. _static_1(P, "async___printToZone$closure", "_printToZone", 172);
  86574. _static(P, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 173, 0);
  86575. var _;
  86576. _instance_0_u(_ = P._BroadcastSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  86577. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  86578. _instance(P._AsyncCompleter.prototype, "get$complete", 0, 0, function() {
  86579. return [null];
  86580. }, ["call$1", "call$0"], ["complete$1", "complete$0"], 153, 0);
  86581. _instance_2_u(P._Future.prototype, "get$_completeError", "_completeError$2", 40);
  86582. _instance_1_i(_ = P._StreamController.prototype, "get$add", "add$1", 43);
  86583. _instance(_, "get$addError", 0, 1, function() {
  86584. return [null];
  86585. }, ["call$2", "call$1"], ["addError$2", "addError$1"], 136, 0);
  86586. _instance_0_i(_, "get$close", "close$0", 135);
  86587. _instance_1_u(_, "get$_async$_add", "_async$_add$1", 43);
  86588. _instance_2_u(_, "get$_addError", "_addError$2", 40);
  86589. _instance_0_u(_, "get$_close", "_close$0", 1);
  86590. _instance_0_u(_ = P._ControllerSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  86591. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  86592. _instance(_ = P._BufferingStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 87, 0);
  86593. _instance_0_u(_, "get$resume", "resume$0", 1);
  86594. _instance_0_u(_, "get$_async$_onPause", "_async$_onPause$0", 1);
  86595. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  86596. _instance(_ = P._DoneStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 87, 0);
  86597. _instance_0_u(_, "get$resume", "resume$0", 1);
  86598. _instance_0_u(_, "get$_sendDone", "_sendDone$0", 1);
  86599. _instance_1_u(_ = P._StreamIterator.prototype, "get$_onData", "_onData$1", 43);
  86600. _instance_2_u(_, "get$_onError", "_onError$2", 40);
  86601. _instance_0_u(_, "get$_onDone", "_onDone$0", 1);
  86602. _instance_0_u(_ = P._ForwardingStreamSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  86603. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  86604. _instance_1_u(_, "get$_handleData", "_handleData$1", 43);
  86605. _instance_2_u(_, "get$_handleError", "_handleError$2", 133);
  86606. _instance_0_u(_, "get$_handleDone", "_handleDone$0", 1);
  86607. _static_2(P, "collection___defaultEquals$closure", "_defaultEquals", 68);
  86608. _static_1(P, "collection___defaultHashCode$closure", "_defaultHashCode", 85);
  86609. _static_2(P, "collection_ListMixin__compareAny$closure", "ListMixin__compareAny", 66);
  86610. _instance_1_u(P._HashMap.prototype, "get$containsKey", "containsKey$1", 21);
  86611. _instance_1_u(P._LinkedCustomHashMap.prototype, "get$containsKey", "containsKey$1", 21);
  86612. _instance(_ = P._LinkedHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 127, 0);
  86613. _instance_1_i(_, "get$contains", "contains$1", 21);
  86614. _instance(P._LinkedIdentityHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 126, 0);
  86615. _instance_1_u(P.MapMixin.prototype, "get$containsKey", "containsKey$1", 21);
  86616. _instance_1_u(P.MapView.prototype, "get$containsKey", "containsKey$1", 21);
  86617. _instance(_ = P._UnmodifiableSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 124, 0);
  86618. _instance_1_i(_, "get$contains", "contains$1", 21);
  86619. _static_1(P, "convert___defaultToEncodable$closure", "_defaultToEncodable", 30);
  86620. _static_1(P, "core__identityHashCode$closure", "identityHashCode", 85);
  86621. _static_2(P, "core__identical$closure", "identical", 68);
  86622. _static_1(P, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 176);
  86623. _instance_1_i(P.Iterable.prototype, "get$contains", "contains$1", 21);
  86624. _static(P, "math__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) {
  86625. return P.max(a, b, type$.num);
  86626. }], 177, 1);
  86627. _instance_1_u(_ = Y.StreamCompleter.prototype, "get$setSourceStream", "setSourceStream$1", 35);
  86628. _instance(_, "get$setError", 0, 1, function() {
  86629. return [null];
  86630. }, ["call$2", "call$1"], ["setError$2", "setError$1"], 110, 0);
  86631. _instance_0_u(_ = L.StreamGroup.prototype, "get$_onListen", "_onListen$0", 1);
  86632. _instance_0_u(_, "get$_onPause", "_onPause$0", 1);
  86633. _instance_0_u(_, "get$_onResume", "_onResume$0", 1);
  86634. _instance_0_u(_, "get$_onCancel", "_onCancel$0", 91);
  86635. _instance_1_i(O.EmptyUnmodifiableSet.prototype, "get$contains", "contains$1", 15);
  86636. _instance_1_i(M._DelegatingIterableBase.prototype, "get$contains", "contains$1", 15);
  86637. _instance_1_i(M.MapKeySet.prototype, "get$contains", "contains$1", 15);
  86638. _instance_1_u(B.ModifiableCssNode.prototype, "get$_node0$_isInvisible", "_node0$_isInvisible$1", 67);
  86639. _instance_1_u(D.SelectorList.prototype, "get$_complexContainsParentSelector", "_complexContainsParentSelector$1", 100);
  86640. _static_1(Y, "functions___isUnique$closure", "_isUnique", 178);
  86641. _static_1(K, "color___opacify$closure", "_opacify", 18);
  86642. _static_1(K, "color___transparentize$closure", "_transparentize", 18);
  86643. _instance_0_u(_ = G.Parser.prototype, "get$whitespace", "whitespace$0", 1);
  86644. _instance_0_u(_, "get$loudComment", "loudComment$0", 1);
  86645. _instance_0_u(_, "get$string", "string$0", 9);
  86646. _instance_0_u(U.SassParser.prototype, "get$loudComment", "loudComment$0", 1);
  86647. _instance(_ = V.StylesheetParser.prototype, "get$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_statement$1$root", "_statement$0"], 119, 0);
  86648. _instance_0_u(_, "get$_declarationChild", "_declarationChild$0", 36);
  86649. _instance_0_u(_, "get$_declarationAtRule", "_declarationAtRule$0", 36);
  86650. _instance_0_u(_, "get$_functionChild", "_functionChild$0", 36);
  86651. _instance(_, "get$expression", 0, 0, null, ["call$3$bracketList$singleEquals$until", "call$0", "call$2$singleEquals$until", "call$1$bracketList", "call$1$singleEquals", "call$1$until"], ["expression$3$bracketList$singleEquals$until", "expression$0", "expression$2$singleEquals$until", "expression$1$bracketList", "expression$1$singleEquals", "expression$1$until"], 117, 0);
  86652. _instance_0_u(_, "get$_number", "_number$0", 116);
  86653. _instance_1_u(K.LimitedMapView.prototype, "get$containsKey", "containsKey$1", 15);
  86654. _instance_1_u(Z.MergedMapView.prototype, "get$containsKey", "containsKey$1", 15);
  86655. _instance_1_i(N.NoSourceMapBuffer0.prototype, "get$write", "write$1", 35);
  86656. _instance_1_u(F.PrefixedMapView.prototype, "get$containsKey", "containsKey$1", 15);
  86657. _instance_1_u(U.PublicMemberMapView.prototype, "get$containsKey", "containsKey$1", 15);
  86658. _instance_1_i(D.SourceMapBuffer0.prototype, "get$write", "write$1", 35);
  86659. _instance_1_u(R.UnprefixedMapView.prototype, "get$containsKey", "containsKey$1", 15);
  86660. _static_1(B, "utils__isPublic$closure", "isPublic", 75);
  86661. _instance_1_u(_ = N._SerializeVisitor0.prototype, "get$_visitMediaQuery", "_visitMediaQuery$1", 101);
  86662. _instance_1_u(_, "get$_isInvisible", "_isInvisible$1", 67);
  86663. _instance(Y.SourceFile.prototype, "get$span", 0, 1, null, ["call$2", "call$1"], ["span$2", "span$1"], 103, 0);
  86664. _instance(Y.SourceSpanMixin.prototype, "get$message", 1, 1, function() {
  86665. return {color: null};
  86666. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 105, 0);
  86667. _static(L, "from_handlers__StreamTransformer__defaultHandleError$closure", 3, null, ["call$1$3", "call$3"], ["_StreamTransformer__defaultHandleError", function(error, stackTrace, sink) {
  86668. return L._StreamTransformer__defaultHandleError(error, stackTrace, sink, type$.dynamic);
  86669. }], 180, 0);
  86670. _static(R, "rate_limit___collectToList$closure", 2, null, ["call$1$2", "call$2"], ["_collectToList", function(element, soFar) {
  86671. return R._collectToList(element, soFar, type$.dynamic);
  86672. }], 181, 0);
  86673. _static_1(K, "color0___opacify$closure", "_opacify0", 22);
  86674. _static_1(K, "color0___transparentize$closure", "_transparentize0", 22);
  86675. _static_1(Y, "functions0___isUnique$closure", "_isUnique0", 182);
  86676. _instance_1_u(K.LimitedMapView0.prototype, "get$containsKey", "containsKey$1", 15);
  86677. _instance_1_u(D.SelectorList0.prototype, "get$_list2$_complexContainsParentSelector", "_list2$_complexContainsParentSelector$1", 141);
  86678. _instance_1_u(Z.MergedMapView0.prototype, "get$containsKey", "containsKey$1", 15);
  86679. _instance_1_i(N.NoSourceMapBuffer.prototype, "get$write", "write$1", 35);
  86680. _instance_1_u(B.ModifiableCssNode0.prototype, "get$_node2$_isInvisible", "_node2$_isInvisible$1", 69);
  86681. _static_2(B, "node___render$closure", "_render", 183);
  86682. _static_1(B, "node___renderSync$closure", "_renderSync", 184);
  86683. _instance_0_u(_ = G.Parser1.prototype, "get$whitespace", "whitespace$0", 1);
  86684. _instance_0_u(_, "get$loudComment", "loudComment$0", 1);
  86685. _instance_0_u(_, "get$string", "string$0", 9);
  86686. _instance_1_u(F.PrefixedMapView0.prototype, "get$containsKey", "containsKey$1", 15);
  86687. _instance_1_u(U.PublicMemberMapView0.prototype, "get$containsKey", "containsKey$1", 15);
  86688. _static_1(U, "sass__main$closure", "main", 185);
  86689. _instance_0_u(U.SassParser0.prototype, "get$loudComment", "loudComment$0", 1);
  86690. _instance_1_u(_ = N._SerializeVisitor.prototype, "get$_serialize0$_visitMediaQuery", "_serialize0$_visitMediaQuery$1", 151);
  86691. _instance_1_u(_, "get$_serialize0$_isInvisible", "_serialize0$_isInvisible$1", 69);
  86692. _instance_1_i(D.SourceMapBuffer.prototype, "get$write", "write$1", 35);
  86693. _instance(_ = V.StylesheetParser0.prototype, "get$_stylesheet0$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_stylesheet0$_statement$1$root", "_stylesheet0$_statement$0"], 152, 0);
  86694. _instance_0_u(_, "get$_stylesheet0$_declarationChild", "_stylesheet0$_declarationChild$0", 37);
  86695. _instance_0_u(_, "get$_stylesheet0$_declarationAtRule", "_stylesheet0$_declarationAtRule$0", 37);
  86696. _instance_0_u(_, "get$_stylesheet0$_functionChild", "_stylesheet0$_functionChild$0", 37);
  86697. _instance_0_u(_, "get$_stylesheet0$_number", "_stylesheet0$_number$0", 154);
  86698. _instance_1_u(R.UnprefixedMapView0.prototype, "get$containsKey", "containsKey$1", 15);
  86699. _static_1(B, "utils0__isPublic$closure", "isPublic0", 75);
  86700. _static_1(D, "path__dirname$closure", "dirname", 186);
  86701. _static_1(T, "character__isWhitespace$closure", "isWhitespace", 16);
  86702. _static_1(T, "character__isNewline$closure", "isNewline", 16);
  86703. _static_1(T, "character__isHex$closure", "isHex", 16);
  86704. _static_2(T, "number0__fuzzyEquals$closure", "fuzzyEquals", 24);
  86705. _static_2(T, "number0__fuzzyLessThan$closure", "fuzzyLessThan", 24);
  86706. _static_2(T, "number0__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals", 24);
  86707. _static_2(T, "number0__fuzzyGreaterThan$closure", "fuzzyGreaterThan", 24);
  86708. _static_2(T, "number0__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals", 24);
  86709. _static_1(T, "number0__fuzzyRound$closure", "fuzzyRound", 34);
  86710. _static_1(T, "character0__isWhitespace$closure", "isWhitespace0", 16);
  86711. _static_1(T, "character0__isNewline$closure", "isNewline0", 16);
  86712. _static_1(T, "character0__isHex$closure", "isHex0", 16);
  86713. _static_2(T, "number2__fuzzyEquals$closure", "fuzzyEquals0", 24);
  86714. _static_2(T, "number2__fuzzyLessThan$closure", "fuzzyLessThan0", 24);
  86715. _static_2(T, "number2__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals0", 24);
  86716. _static_2(T, "number2__fuzzyGreaterThan$closure", "fuzzyGreaterThan0", 24);
  86717. _static_2(T, "number2__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals0", 24);
  86718. _static_1(T, "number2__fuzzyRound$closure", "fuzzyRound0", 34);
  86719. _static_1(F, "value1__wrapValue$closure", "wrapValue", 125);
  86720. })();
  86721. (function inheritance() {
  86722. var _mixin = hunkHelpers.mixin,
  86723. _inherit = hunkHelpers.inherit,
  86724. _inheritMany = hunkHelpers.inheritMany;
  86725. _inherit(P.Object, null);
  86726. _inheritMany(P.Object, [H.JS_CONST, J.Interceptor, J.ArrayIterator, P.Iterable, H.CastIterator, H.Closure, P.Error, P._ListBase_Object_ListMixin, H.ListIterator, P.Iterator, H.ExpandIterator, H.EmptyIterator, H.FollowedByIterator, H.WhereTypeIterator, H.FixedLengthListMixin, H.UnmodifiableListMixin, H.Symbol, P.MapView, H.ConstantMap, H.JSInvocationMirror, H.TypeErrorDecoder, H.NullThrownFromJavaScriptException, H.ExceptionAndStackTrace, H._StackTrace, H._Required, P.MapMixin, H.LinkedHashMapCell, H.LinkedHashMapKeyIterator, H.JSSyntaxRegExp, H._MatchImplementation, H._AllMatchesIterator, H.StringMatch, H._StringAllMatchesIterator, H.Rti, H._FunctionParameters, H._Type, P._TimerImpl, P._AsyncAwaitCompleter, P._AsyncStarStreamController, P._IterationMarker, P._SyncStarIterator, P.Stream, P._BufferingStreamSubscription, P._BroadcastStreamController, P.Future, P._Completer, P._FutureListener, P._Future, P._AsyncCallbackEntry, P.StreamSubscription, P.EventSink, P.StreamTransformerBase, P._StreamController, P._SyncStreamControllerDispatch, P._AsyncStreamControllerDispatch, P._AddStreamState, P._DelayedEvent, P._DelayedDone, P._PendingEvents, P._DoneStreamSubscription, P._StreamIterator, P.Timer, P.AsyncError, P._ZoneFunction, P._RunNullaryZoneFunction, P._RunUnaryZoneFunction, P._RunBinaryZoneFunction, P._RegisterNullaryZoneFunction, P._RegisterUnaryZoneFunction, P._RegisterBinaryZoneFunction, P.ZoneSpecification, P._ZoneSpecification, P.ZoneDelegate, P.Zone, P._ZoneDelegate, P._Zone, P._HashMapKeyIterator, P._SetBase, P._LinkedHashSetCell, P._LinkedHashSetIterator, P.ListMixin, P._MapBaseValueIterator, P._UnmodifiableMapMixin, P.Queue, P._ListQueueIterator, P.Codec, P._Base64Encoder, P.ChunkedConversionSink, P._JsonStringifier, P.StringConversionSinkMixin, P._Utf8Encoder, P._Utf8Decoder, P.bool, P.DateTime, P.num, P.Duration, P.OutOfMemoryError, P.StackOverflowError, P._Exception, P.FormatException, P.Function, P.List, P.Map, P.MapEntry, P.Null, P.Match, P.RegExpMatch, P.StackTrace, P._StringStackTrace, P.String, P.RuneIterator, P.StringBuffer, P.StringSink, P.Symbol0, P.Uri, P._Uri, P.UriData, P._SimpleUri, P._JSRandom, P.Uint8List, N.ArgParser, V.ArgResults, G.Option, G.OptionType, G.Parser0, G.Usage, V.ErrorResult, E.Result, F.ValueResult, Y.StreamCompleter, L.StreamGroup, L._StreamGroupState, G.StreamQueue, G._EventRequest, G._NextRequest, Q.Repl, B.ReplAdapter, U.DefaultEquality, U.IterableEquality, U.ListEquality, U._MapEntry, U.MapEquality, Q._QueueList_Object_ListMixin, M._DelegatingIterableBase, L.UnmodifiableSetMixin, M.Context, M._PathDirection, M._PathRelation, O.Style, X.ParsedPath, X.PathException, F.CssMediaQuery, F._SingletonCssMediaQueryMergeResult, F.MediaQuerySuccessfulMergeResult, B.AstNode, F.ModifiableCssValue, F.CssValue, B._FakeAstNode, Z.Argument, B.ArgumentDeclaration, X.ArgumentInvocation, V.AtRootQuery, Z.ConfiguredVariable, T.Expression, V.BinaryOperationExpression, V.BinaryOperator, Z.BooleanExpression, K.ColorExpression, F.FunctionExpression, L.IfExpression, D.ListExpression, A.MapExpression, O.NullExpression, T.NumberExpression, T.ParenthesizedExpression, T.SelectorExpression, D.StringExpression, X.UnaryOperationExpression, X.UnaryOperator, F.ValueExpression, S.VariableExpression, F.Import, B.DynamicImport, Q.StaticImport, X.Interpolation, O.Statement, M.ParentStatement, Q.ContentRule, Q.DebugRule, D.ErrorRule, X.ExtendRule, L.ForwardRule, V.IfRule, V.IfClause, B.ImportRule, A.IncludeRule, L.LoudComment, B.ReturnRule, B.SilentComment, T.UseRule, Z.VariableDeclaration, Y.WarnRule, L.SupportsDeclaration, X.SupportsInterpolation, M.SupportsNegation, U.SupportsOperation, T.Selector, N.AttributeOperator, S.ComplexSelectorComponent, S.Combinator, D.QualifiedName, X.CompileResult, Q.AsyncEnvironment, Q._EnvironmentModule0, O.AsyncImportCache, B.AsyncCallable, S.AsyncBuiltInCallable, Q.BuiltInCallable, L.PlainCssCallable, E.UserDefinedCallable, A.Configuration, Z.ConfiguredValue, O.Environment, O._EnvironmentModule, G.SourceSpanException, E.SassScriptException, B.ExecutableOptions, B.UsageException, A._Watcher, T.EmptyExtender, F.Extender, S.Extension, L.ExtendMode, R.ImportCache, B.AsyncImporter, E.ImporterResult, Z.InterpolationBuffer, B.FileSystemException, B.Stderr, F._QuietLogger, S.StderrLogger, T.TrackingLogger, G.Module, Q.BuiltInModule, R.ForwardedModuleView, B.ShadowedModuleView, G.Parser, M.StylesheetGraph, M.StylesheetNode, M.Syntax, G.FixedLengthListBuilder, U.MultiDirWatcher, N.NoSourceMapBuffer0, D.SourceMapBuffer0, F.Value, D.ListSeparator, E._EvaluateVisitor0, E._ImportedCssVisitor0, E.EvaluateResult, E._ArgumentResults0, V._CloneCssVisitor, R.Evaluator, R._EvaluateVisitor, R._ImportedCssVisitor, R._ArgumentResults, D.RecursiveStatementVisitor, N._SerializeVisitor0, N.OutputStyle, N.LineFeed, N.SerializeResult, L.Entry, T.Mapping, T.TargetLineEntry, T.TargetEntry, Y.SourceFile, D.SourceLocationMixin, Y.FileSpan, Y.SourceSpanMixin, U.Highlighter, U._Highlight, U._Line, V.SourceLocation, V.SourceSpan, U.Chain, A.Frame, T.LazyTrace, Y.Trace, N.UnparsedFrame, X.StringScanner, S._SpanScannerState, A.AsciiGlyphSet, K.UnicodeGlyphSet, S.Tuple2, S.Tuple3, E.WatchEvent, E.ChangeType, Z.Argument0, B.ArgumentDeclaration0, X.ArgumentInvocation0, F.Value0, B.AsyncCallable0, B.AsyncImporter0, S.AsyncBuiltInCallable0, X.CompileResult0, Q.AsyncEnvironment0, Q._EnvironmentModule2, E._EvaluateVisitor2, E._ImportedCssVisitor2, E.EvaluateResult0, E._ArgumentResults2, O.AsyncImportCache0, G.Parser1, V.AtRootQuery0, M.ParentStatement0, B.AstNode0, T.Selector0, N.AttributeOperator0, V.BinaryOperationExpression0, V.BinaryOperator0, Z.BooleanExpression0, Q.BuiltInCallable0, Q.BuiltInModule0, V._CloneCssVisitor0, K.ColorExpression0, S.ComplexSelectorComponent0, S.Combinator0, A.Configuration0, Z.ConfiguredValue0, Z.ConfiguredVariable0, Q.ContentRule0, Q.DebugRule0, L.SupportsDeclaration0, B.DynamicImport0, T.EmptyExtender0, O.Environment0, O._EnvironmentModule1, D.ErrorRule0, R._EvaluateVisitor1, R._ImportedCssVisitor1, R._ArgumentResults1, E.SassScriptException0, T.Expression0, X.ExtendRule0, F.Extender0, S.Extension0, G.FixedLengthListBuilder0, L.ForwardRule0, R.ForwardedModuleView0, F.FunctionExpression0, L.IfExpression0, V.IfRule0, V.IfClause0, F.NodeImporter, F.Import0, R.ImportCache0, B.ImportRule0, A.IncludeRule0, X.Interpolation0, X.SupportsInterpolation0, Z.InterpolationBuffer0, D.ListExpression0, D.ListSeparator0, L.LoudComment0, A.MapExpression0, F.CssMediaQuery0, F._SingletonCssMediaQueryMergeResult0, F.MediaQuerySuccessfulMergeResult0, L.ExtendMode0, G.Module0, M.SupportsNegation0, N.NoSourceMapBuffer, B._FakeAstNode0, B.FileSystemException0, B.Stderr0, O.NullExpression0, T.NumberExpression0, U.SupportsOperation0, T.ParenthesizedExpression0, L.PlainCssCallable0, D.QualifiedName0, E.ImporterResult0, B.ReturnRule0, T.SelectorExpression0, N._SerializeVisitor, N.OutputStyle0, N.LineFeed0, N.SerializeResult0, B.ShadowedModuleView0, B.SilentComment0, D.SourceMapBuffer, O.Statement0, Q.StaticImport0, S.StderrLogger0, D.StringExpression0, M.Syntax0, X.UnaryOperationExpression0, X.UnaryOperator0, T.UseRule0, E.UserDefinedCallable0, F.CssValue0, F.ValueExpression0, F.ModifiableCssValue0, S.VariableExpression0, Z.VariableDeclaration0, Y.WarnRule0]);
  86727. _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JSArray, J.JSNumber, J.JSString, H.NativeTypedData]);
  86728. _inheritMany(J.JavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, B.Stdin, B.Stdout, B.ReadlineModule, B.ReadlineOptions, B.ReadlineInterface, B._FS, B._Stat, B._Date, B._Stderr, B._Stdin, B._SystemError, B._Process, Y.Chokidar, Y.ChokidarOptions, Y.ChokidarWatcher, F.JSFunction, F.NodeImporterResult, B._PropertyDescriptor, Y.Chokidar0, Y.ChokidarOptions0, Y.ChokidarWatcher0, K._NodeSassColor, V.JSError, D.Exports, E.FiberClass, E.Fiber, F.JSFunction0, F.NodeImporterResult0, D._NodeSassList, A._NodeSassMap, B._FS0, B._Stat0, B._Date0, B._Stderr0, B._Stdin0, B._SystemError0, B._Process0, T._NodeSassNumber, Z.RenderContext, L.RenderContextOptions, R.RenderOptions, U.RenderResult, U.RenderResultStats, R._Exports, D._NodeSassString, G.Types, B._PropertyDescriptor0]);
  86729. _inherit(J.JSUnmodifiableArray, J.JSArray);
  86730. _inheritMany(J.JSNumber, [J.JSInt, J.JSDouble]);
  86731. _inheritMany(P.Iterable, [H._CastIterableBase, H.EfficientLengthIterable, H.MappedIterable, H.WhereIterable, H.ExpandIterable, H.TakeIterable, H.SkipIterable, H.SkipWhileIterable, H.FollowedByIterable, H.WhereTypeIterable, H._ConstantMapKeyIterable, P.IterableBase, H._StringAllMatchesIterable, P.Runes]);
  86732. _inheritMany(H._CastIterableBase, [H.CastIterable, H.__CastListBase__CastIterableBase_ListMixin, H.CastSet, H.CastQueue]);
  86733. _inherit(H._EfficientLengthCastIterable, H.CastIterable);
  86734. _inherit(H._CastListBase, H.__CastListBase__CastIterableBase_ListMixin);
  86735. _inheritMany(H.Closure, [H._CastListBase_sort_closure, H.ConstantStringMap_values_closure, H.Instantiation, H.Primitives_functionNoSuchMethod_closure, H.TearOffClosure, H.JsLinkedHashMap_values_closure, H.JsLinkedHashMap_addAll_closure, H.initHooks_closure, H.initHooks_closure0, H.initHooks_closure1, P._AsyncRun__initializeScheduleImmediate_internalCallback, P._AsyncRun__initializeScheduleImmediate_closure, P._AsyncRun__scheduleImmediateJsOverride_internalCallback, P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, P._TimerImpl_internalCallback, P._TimerImpl$periodic_closure, P._awaitOnObject_closure, P._awaitOnObject_closure0, P._wrapJsFunctionForAsync_closure, P._asyncStarHelper_closure, P._asyncStarHelper_closure0, P._AsyncStarStreamController__resumeBody, P._AsyncStarStreamController__resumeBody_closure, P._AsyncStarStreamController_closure0, P._AsyncStarStreamController_closure1, P._AsyncStarStreamController_closure, P._AsyncStarStreamController__closure, P._SyncBroadcastStreamController__sendData_closure, P._SyncBroadcastStreamController__sendError_closure, P._SyncBroadcastStreamController__sendDone_closure, P.Future_wait__error_set, P.Future_wait__stackTrace_set, P.Future_wait__error_get, P.Future_wait__stackTrace_get, P.Future_wait_handleError, P.Future_wait_closure, P._Future__addListener_closure, P._Future__prependListeners_closure, P._Future__chainForeignFuture_closure, P._Future__chainForeignFuture_closure0, P._Future__chainForeignFuture_closure1, P._Future__asyncCompleteWithValue_closure, P._Future__chainFuture_closure, P._Future__asyncCompleteError_closure, P._Future__propagateToListeners_handleWhenCompleteCallback, P._Future__propagateToListeners_handleWhenCompleteCallback_closure, P._Future__propagateToListeners_handleValueCallback, P._Future__propagateToListeners_handleError, P.Stream_Stream$fromFuture_closure, P.Stream_Stream$fromFuture_closure0, P.Stream_length_closure, P.Stream_length_closure0, P._StreamController__subscribe_closure, P._StreamController__recordCancel_complete, P._AddStreamState_cancel_closure, P._BufferingStreamSubscription__sendError_sendError, P._BufferingStreamSubscription__sendDone_sendDone, P._PendingEvents_schedule_closure, P._CustomZone_bindCallback_closure, P._CustomZone_bindUnaryCallback_closure, P._CustomZone_bindCallbackGuarded_closure, P._rootHandleUncaughtError_closure, P._RootZone_bindCallback_closure, P._RootZone_bindCallbackGuarded_closure, P._HashMap_values_closure, P._HashMap_addAll_closure, P._LinkedCustomHashMap_closure, P.HashMap_HashMap$from_closure, P.LinkedHashMap_LinkedHashMap$from_closure, P.MapBase_mapToString_closure, P.MapMixin_entries_closure, P.Utf8Decoder_closure, P.Utf8Decoder_closure0, P._JsonStringifier_writeMap_closure, P.NoSuchMethodError_toString_closure, P.Duration_toString_sixDigits, P.Duration_toString_twoDigits, P.Uri__parseIPv4Address_error, P.Uri_parseIPv6Address_error, P.Uri_parseIPv6Address_parseHex, P._Uri__makePath_closure, P._createTables_closure, P._createTables_build, P._createTables_setChars, P._createTables_setRange, N.ArgParser_findByAbbreviation_closure, N.ArgParser_findByAbbreviation_closure0, G.Parser_parse_closure, G.Parser_setOption_closure, G.Usage_generate_closure, G.Usage_buildAllowedList_closure, L.StreamGroup_add_closure, L.StreamGroup_add_closure0, L.StreamGroup__onListen_closure, L.StreamGroup__onCancel_closure, L.StreamGroup__onCancel_closure0, L.StreamGroup__listenToStream_closure, G.StreamQueue__ensureListening_closure, G.StreamQueue__ensureListening_closure1, G.StreamQueue__ensureListening_closure0, Q.closure104, B.ReplAdapter_runAsync_closure, B.defaultCompare_closure, M.Context_join_closure, M.Context_joinAll_closure, M.Context_split_closure, M._validateArgList_closure, X.ParsedPath_normalize_closure, X.ParsedPath__splitExtension_closure, X.ParsedPath__splitExtension_closure0, K.PathMap__create_closure, K.PathMap__create_closure0, K.PathMap__create_closure1, L.WindowsStyle_absolutePathToUri_closure, B.ArgumentDeclaration_verify_closure, B.ArgumentDeclaration_verify_closure0, D.ListExpression_toString_closure, A.MapExpression_toString_closure, X.Interpolation_toString_closure, V.EachRule_toString_closure, V.IfRule_toString_closure, V.IfClause$__closure, V.IfClause$___closure, M.ParentStatement_closure, M.ParentStatement__closure, S.ComplexSelector_isInvisible_closure, X.CompoundSelector_isInvisible_closure, N.IDSelector_unify_closure, D.SelectorList_isInvisible_closure, D.SelectorList_asSassList_closure, D.SelectorList_asSassList__closure, D.SelectorList_unify_closure, D.SelectorList_unify__closure, D.SelectorList_unify___closure, D.SelectorList_resolveParentSelectors_closure, D.SelectorList_resolveParentSelectors__closure, D.SelectorList_resolveParentSelectors__closure0, D.SelectorList__complexContainsParentSelector_closure, D.SelectorList__complexContainsParentSelector__closure, D.SelectorList__resolveParentSelectorsCompound_closure, D.SelectorList__resolveParentSelectorsCompound_closure0, D.SelectorList__resolveParentSelectorsCompound_closure1, X._compileStylesheet_closure0, Q.AsyncEnvironment_importForwards_closure, Q.AsyncEnvironment_importForwards_closure0, Q.AsyncEnvironment_importForwards_closure1, Q.AsyncEnvironment_importForwards_closure2, Q.AsyncEnvironment__getVariableFromGlobalModule_closure, Q.AsyncEnvironment_setVariable_closure, Q.AsyncEnvironment_setVariable_closure0, Q.AsyncEnvironment_setVariable_closure1, Q.AsyncEnvironment__getFunctionFromGlobalModule_closure, Q.AsyncEnvironment__getMixinFromGlobalModule_closure, Q._EnvironmentModule__EnvironmentModule_closure5, Q._EnvironmentModule__EnvironmentModule_closure6, Q._EnvironmentModule__EnvironmentModule_closure7, Q._EnvironmentModule__EnvironmentModule_closure8, Q._EnvironmentModule__EnvironmentModule_closure9, Q._EnvironmentModule__EnvironmentModule_closure10, O.AsyncImportCache_canonicalize_closure, O.AsyncImportCache__canonicalize_closure, O.AsyncImportCache_importCanonical_closure, O.AsyncImportCache_humanize_closure, O.AsyncImportCache_humanize_closure0, O.AsyncImportCache_humanize_closure1, S.AsyncBuiltInCallable$mixin_closure, Q.BuiltInCallable$mixin_closure, U._compileStylesheet_closure, O.Environment_importForwards_closure, O.Environment_importForwards_closure0, O.Environment_importForwards_closure1, O.Environment_importForwards_closure2, O.Environment__getVariableFromGlobalModule_closure, O.Environment_setVariable_closure, O.Environment_setVariable_closure0, O.Environment_setVariable_closure1, O.Environment__getFunctionFromGlobalModule_closure, O.Environment__getMixinFromGlobalModule_closure, O._EnvironmentModule__EnvironmentModule_closure, O._EnvironmentModule__EnvironmentModule_closure0, O._EnvironmentModule__EnvironmentModule_closure1, O._EnvironmentModule__EnvironmentModule_closure2, O._EnvironmentModule__EnvironmentModule_closure3, O._EnvironmentModule__EnvironmentModule_closure4, D._writeSourceMap_closure, B.ExecutableOptions_closure, B.ExecutableOptions_emitErrorCss_closure, A.watch_closure, A._Watcher__debounceEvents_closure, A._Watcher__debounceEvents__closure, F.Extender_extensionsWhereTarget_closure, F.Extender__registerSelector_closure, F.Extender_addExtension_closure, F.Extender_addExtension_closure0, F.Extender_addExtension_closure1, F.Extender__extendExistingExtensions_closure, F.Extender__extendExistingExtensions_closure0, F.Extender_addExtensions_closure, F.Extender_addExtensions__closure, F.Extender_addExtensions___closure, F.Extender_addExtensions___closure0, F.Extender__extendList_closure, F.Extender__extendComplex_closure, F.Extender__extendComplex_closure0, F.Extender__extendComplex__closure, F.Extender__extendComplex__closure0, F.Extender__extendComplex___closure, F.Extender__extendCompound_closure, F.Extender__extendCompound_closure0, F.Extender__extendCompound__closure, F.Extender__extendCompound__closure0, F.Extender__extendCompound_closure1, F.Extender__extendCompound_closure2, F.Extender__extendSimple_withoutPseudo, F.Extender__extendSimple_closure, F.Extender__extendPseudo_closure, F.Extender__extendPseudo_closure0, F.Extender__extendPseudo_closure1, F.Extender__extendPseudo_closure2, F.Extender__extendPseudo_closure3, F.Extender__trim_closure, F.Extender__trim_closure0, F.Extender_clone_closure, Y.unifyComplex_closure, Y._weaveParents_closure, Y._weaveParents_closure0, Y._weaveParents_closure1, Y._weaveParents__closure1, Y._weaveParents_closure2, Y._weaveParents_closure3, Y._weaveParents__closure0, Y._weaveParents_closure4, Y._weaveParents_closure5, Y._weaveParents__closure, Y._mustUnify_closure, Y._mustUnify__closure, Y.paths_closure, Y.paths__closure, Y.paths___closure, Y._hasRoot_closure, Y.listIsSuperselector_closure, Y.listIsSuperselector__closure, Y._simpleIsSuperselectorOfCompound_closure, Y._simpleIsSuperselectorOfCompound__closure, Y._selectorPseudoIsSuperselector_closure, Y._selectorPseudoIsSuperselector_closure0, Y._selectorPseudoIsSuperselector_closure1, Y._selectorPseudoIsSuperselector_closure2, Y._selectorPseudoIsSuperselector_closure3, Y._selectorPseudoIsSuperselector__closure, Y._selectorPseudoIsSuperselector___closure, Y._selectorPseudoIsSuperselector___closure0, Y._selectorPseudoIsSuperselector_closure4, Y._selectorPseudoIsSuperselector_closure5, Y._selectorPseudosNamed_closure, Y.closure, K.closure43, K.closure44, K.closure45, K.closure46, K.closure47, K.closure48, K.closure49, K.closure50, K.closure51, K.closure52, K.closure53, K.closure54, K.closure55, K.closure56, K.closure57, K.closure58, K.closure59, K.closure60, K.closure61, K.closure62, K.closure63, K.closure64, K.closure65, K.closure66, K.closure67, K.closure68, K._closure10, K.closure69, K.closure94, K.closure95, K.closure96, K.closure97, K._closure12, K.closure98, K.closure81, K.closure80, K.closure79, K.closure78, K.closure77, K.closure76, K.closure75, K.closure74, K.closure72, K.closure_getInRange0, K._closure9, K.closure71, K.closure_getScale, K.closure_scaleValue, K._closure8, K.closure70, K.closure_getInRange, K._closure7, K.closure73, K.closure_hexString, K._functionString_closure, K._removedColorFunction_closure, K._parseChannels_closure, D.closure42, D.closure41, D.closure40, D.closure39, D.closure38, D.closure37, D._closure4, D._closure5, D._closure6, D.closure36, D.closure34, D.closure35, A.closure33, A.closure32, A.closure30, A.closure31, A.closure29, A.closure28, A.closure27, K.closure25, K.closure89, K.closure24, K.closure23, K.closure22, K.closure26, K.closure87, K._closure11, K.closure86, K.closure85, K.closure83, K.closure93, K.closure92, K.closure91, K.closure90, K.closure88, K.closure84, K.closure82, K.closure18, K.closure17, K.closure19, K.closure21, K.closure20, K._numberFunction_closure, Q.closure99, Q.closure100, Q.closure101, Q.closure102, T.closure13, T._closure1, T._closure2, T.closure12, T._closure, T._closure0, T.__closure, T.closure11, T.closure10, T.closure9, T.closure16, T.closure15, T._closure3, T.closure14, D.closure8, D.closure7, D.closure3, D.closure2, D.closure1, D.closure0, D.closure6, D.closure5, D.closure4, R.ImportCache_canonicalize_closure, R.ImportCache__canonicalize_closure, R.ImportCache_importCanonical_closure, R.ImportCache_humanize_closure, R.ImportCache_humanize_closure0, R.ImportCache_humanize_closure1, B.resolveImportPath_closure, B.resolveImportPath_closure0, B._tryPathAsDirectory_closure, B._exactlyOne_closure, F.realCasePath_closure, B._readFile_closure, B.writeFile_closure, B.deleteFile_closure, B.readStdin_closure, B.readStdin_closure0, B.readStdin_closure1, B.readStdin_closure2, B.fileExists_closure, B.dirExists_closure, B.ensureDir_closure, B.listDir_closure, B.listDir__closure, B.listDir__closure0, B.listDir_closure_list, B.listDir__list_closure, B.modificationTime_closure, B.watchDir_closure, B.watchDir_closure0, B.watchDir_closure1, B.watchDir_closure2, B.watchDir_closure3, B.watchDir__closure, V.AtRootQueryParser_parse_closure, Q.closure103, E.KeyframeSelectorParser_parse_closure, F.MediaQueryParser_parse_closure, G.Parser__parseIdentifier_closure, G.Parser_scanIdentChar_matches, U.SassParser_children_closure, T.SelectorParser_parse_closure, T.SelectorParser_parseCompoundSelector_closure, V.StylesheetParser_parse_closure, V.StylesheetParser_parse__closure, V.StylesheetParser_parse__closure0, V.StylesheetParser_parseArgumentDeclaration_closure, V.StylesheetParser_parseVariableDeclaration_closure, V.StylesheetParser_parseUseRule_closure, V.StylesheetParser__parseSingleProduction_closure, V.StylesheetParser__statement_closure, V.StylesheetParser_variableDeclarationWithoutNamespace_closure, V.StylesheetParser_variableDeclarationWithoutNamespace_closure0, V.StylesheetParser__declarationOrBuffer_closure, V.StylesheetParser__declarationOrBuffer_closure0, V.StylesheetParser__styleRule_closure, V.StylesheetParser__propertyOrVariableDeclaration_closure, V.StylesheetParser__propertyOrVariableDeclaration_closure0, V.StylesheetParser__atRootRule_closure, V.StylesheetParser__atRootRule_closure0, V.StylesheetParser__eachRule_closure, V.StylesheetParser__functionRule_closure, V.StylesheetParser__forRule_closure, V.StylesheetParser__forRule_closure0, V.StylesheetParser__memberList_closure, V.StylesheetParser__includeRule_closure, V.StylesheetParser_mediaRule_closure, V.StylesheetParser__mixinRule_closure, V.StylesheetParser_mozDocumentRule_closure, V.StylesheetParser_supportsRule_closure, V.StylesheetParser__whileRule_closure, V.StylesheetParser_unknownAtRule_closure, V.StylesheetParser_expression_resetState, V.StylesheetParser_expression_resolveOneOperation, V.StylesheetParser_expression_resolveOperations, V.StylesheetParser_expression_addSingleExpression, V.StylesheetParser_expression_addOperator, V.StylesheetParser_expression_resolveSpaceExpressions, V.StylesheetParser__expressionUntilComma_closure, V.StylesheetParser__unicodeRange_closure, V.StylesheetParser__unicodeRange_closure0, V.StylesheetParser_identifierLike_closure, V.StylesheetParser__expressionUntilComparison_closure, V.StylesheetParser__publicIdentifier_closure, M.StylesheetGraph_modifiedSince_transitiveModificationTime, M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure, M.StylesheetGraph__add_closure, M.StylesheetGraph_addCanonical_closure, M.StylesheetGraph_reload_closure, M.StylesheetGraph__recanonicalizeImportsForNode_closure, M.StylesheetGraph__nodeFor_closure, M.StylesheetGraph__nodeFor_closure0, F._PrefixedKeys_iterator_closure, D.SourceMapBuffer__addEntry_closure, D.SourceMapBuffer_buildSourceMap_closure, R._UnprefixedKeys_iterator_closure, R._UnprefixedKeys_iterator_closure0, B.indent_closure, B.flattenVertically_closure, B.flattenVertically_closure0, B.longestCommonSubsequence_closure, B.longestCommonSubsequence_closure0, B.longestCommonSubsequence_closure1, B.longestCommonSubsequence_backtrack, B.mapAddAll2_closure, D.SassList_isBlank_closure, A.SassMap_asList_closure, T.SassNumber_valueInUnits_closure, T.SassNumber_valueInUnits_closure0, T.SassNumber_valueInUnits_closure1, T.SassNumber_valueInUnits_closure2, T.SassNumber_modulo_closure, T.SassNumber_plus_closure, T.SassNumber_minus_closure, T.SassNumber__multiplyUnits_closure, T.SassNumber__multiplyUnits_closure0, T.SassNumber__multiplyUnits_closure1, T.SassNumber__multiplyUnits_closure2, T.SassNumber__areAnyConvertible_closure, T.SassNumber__canonicalMultiplier_closure, E._EvaluateVisitor_closure9, E._EvaluateVisitor_closure10, E._EvaluateVisitor_closure11, E._EvaluateVisitor_closure12, E._EvaluateVisitor_closure13, E._EvaluateVisitor_closure14, E._EvaluateVisitor_closure15, E._EvaluateVisitor_closure16, E._EvaluateVisitor__closure4, E._EvaluateVisitor_closure17, E._EvaluateVisitor_closure18, E._EvaluateVisitor__closure2, E._EvaluateVisitor__closure3, E._EvaluateVisitor_run_closure0, E._EvaluateVisitor__withWarnCallback_closure0, E._EvaluateVisitor__loadModule_closure1, E._EvaluateVisitor__loadModule_closure2, E._EvaluateVisitor__execute_closure0, E._EvaluateVisitor__combineCss_closure2, E._EvaluateVisitor__combineCss_closure3, E._EvaluateVisitor__combineCss_closure4, E._EvaluateVisitor__extendModules_closure1, E._EvaluateVisitor__extendModules_closure2, E._EvaluateVisitor__topologicalModules_visitModule0, E._EvaluateVisitor_visitAtRootRule_closure2, E._EvaluateVisitor_visitAtRootRule_closure3, E._EvaluateVisitor_visitAtRootRule_closure4, E._EvaluateVisitor__scopeForAtRoot_closure5, E._EvaluateVisitor__scopeForAtRoot_closure6, E._EvaluateVisitor__scopeForAtRoot_closure7, E._EvaluateVisitor__scopeForAtRoot__closure0, E._EvaluateVisitor__scopeForAtRoot_closure8, E._EvaluateVisitor__scopeForAtRoot_closure9, E._EvaluateVisitor__scopeForAtRoot_closure10, E._EvaluateVisitor_visitContentRule_closure0, E._EvaluateVisitor_visitDeclaration_closure0, E._EvaluateVisitor_visitEachRule_closure2, E._EvaluateVisitor_visitEachRule_closure3, E._EvaluateVisitor_visitEachRule_closure4, E._EvaluateVisitor_visitEachRule__closure0, E._EvaluateVisitor_visitEachRule___closure0, E._EvaluateVisitor_visitExtendRule_closure0, E._EvaluateVisitor_visitAtRule_closure1, E._EvaluateVisitor_visitAtRule__closure0, E._EvaluateVisitor_visitAtRule_closure2, E._EvaluateVisitor_visitForRule_closure4, E._EvaluateVisitor_visitForRule_closure5, E._EvaluateVisitor_visitForRule_closure6, E._EvaluateVisitor_visitForRule_closure7, E._EvaluateVisitor_visitForRule_closure8, E._EvaluateVisitor_visitForRule__closure0, E._EvaluateVisitor_visitForwardRule_closure1, E._EvaluateVisitor_visitForwardRule_closure2, E._EvaluateVisitor__assertConfigurationIsEmpty_closure0, E._EvaluateVisitor_visitIfRule_closure0, E._EvaluateVisitor_visitIfRule__closure0, E._EvaluateVisitor__visitDynamicImport_closure0, E._EvaluateVisitor__visitDynamicImport__closure0, E._EvaluateVisitor_visitIncludeRule_closure2, E._EvaluateVisitor_visitIncludeRule_closure3, E._EvaluateVisitor_visitIncludeRule_closure4, E._EvaluateVisitor_visitIncludeRule__closure0, E._EvaluateVisitor_visitIncludeRule___closure0, E._EvaluateVisitor_visitIncludeRule____closure0, E._EvaluateVisitor_visitMediaRule_closure1, E._EvaluateVisitor_visitMediaRule__closure0, E._EvaluateVisitor_visitMediaRule___closure0, E._EvaluateVisitor_visitMediaRule_closure2, E._EvaluateVisitor__visitMediaQueries_closure0, E._EvaluateVisitor_visitStyleRule_closure6, E._EvaluateVisitor_visitStyleRule_closure7, E._EvaluateVisitor_visitStyleRule_closure8, E._EvaluateVisitor_visitStyleRule_closure9, E._EvaluateVisitor_visitStyleRule_closure10, E._EvaluateVisitor_visitStyleRule_closure11, E._EvaluateVisitor_visitStyleRule__closure0, E._EvaluateVisitor_visitStyleRule_closure12, E._EvaluateVisitor_visitSupportsRule_closure1, E._EvaluateVisitor_visitSupportsRule__closure0, E._EvaluateVisitor_visitSupportsRule_closure2, E._EvaluateVisitor_visitVariableDeclaration_closure2, E._EvaluateVisitor_visitVariableDeclaration_closure3, E._EvaluateVisitor_visitVariableDeclaration_closure4, E._EvaluateVisitor_visitUseRule_closure0, E._EvaluateVisitor_visitWarnRule_closure0, E._EvaluateVisitor_visitWhileRule_closure0, E._EvaluateVisitor_visitWhileRule__closure0, E._EvaluateVisitor_visitBinaryOperationExpression_closure0, E._EvaluateVisitor_visitVariableExpression_closure0, E._EvaluateVisitor_visitListExpression_closure0, E._EvaluateVisitor_visitFunctionExpression_closure1, E._EvaluateVisitor_visitFunctionExpression_closure2, E._EvaluateVisitor__runUserDefinedCallable_closure0, E._EvaluateVisitor__runUserDefinedCallable__closure0, E._EvaluateVisitor__runUserDefinedCallable___closure0, E._EvaluateVisitor__runUserDefinedCallable____closure0, E._EvaluateVisitor__runFunctionCallable_closure0, E._EvaluateVisitor__runBuiltInCallable_closure1, E._EvaluateVisitor__runBuiltInCallable_closure2, E._EvaluateVisitor__evaluateArguments_closure0, E._EvaluateVisitor__evaluateMacroArguments_closure3, E._EvaluateVisitor__evaluateMacroArguments_closure4, E._EvaluateVisitor__evaluateMacroArguments_closure5, E._EvaluateVisitor__evaluateMacroArguments_closure6, E._EvaluateVisitor__addRestMap_closure1, E._EvaluateVisitor__addRestMap_closure2, E._EvaluateVisitor__verifyArguments_closure0, E._EvaluateVisitor_visitStringExpression_closure0, E._EvaluateVisitor_visitCssAtRule_closure1, E._EvaluateVisitor_visitCssAtRule_closure2, E._EvaluateVisitor_visitCssKeyframeBlock_closure1, E._EvaluateVisitor_visitCssKeyframeBlock_closure2, E._EvaluateVisitor_visitCssMediaRule_closure1, E._EvaluateVisitor_visitCssMediaRule__closure0, E._EvaluateVisitor_visitCssMediaRule___closure0, E._EvaluateVisitor_visitCssMediaRule_closure2, E._EvaluateVisitor_visitCssStyleRule_closure1, E._EvaluateVisitor_visitCssStyleRule__closure0, E._EvaluateVisitor_visitCssStyleRule_closure2, E._EvaluateVisitor_visitCssSupportsRule_closure1, E._EvaluateVisitor_visitCssSupportsRule__closure0, E._EvaluateVisitor_visitCssSupportsRule_closure2, E._EvaluateVisitor__performInterpolation_closure0, E._EvaluateVisitor__serialize_closure0, E._EvaluateVisitor__stackTrace_closure0, E._ImportedCssVisitor_visitCssAtRule_closure0, E._ImportedCssVisitor_visitCssMediaRule_closure0, E._ImportedCssVisitor_visitCssStyleRule_closure0, E._ImportedCssVisitor_visitCssSupportsRule_closure0, R._EvaluateVisitor_closure, R._EvaluateVisitor_closure0, R._EvaluateVisitor_closure1, R._EvaluateVisitor_closure2, R._EvaluateVisitor_closure3, R._EvaluateVisitor_closure4, R._EvaluateVisitor_closure5, R._EvaluateVisitor_closure6, R._EvaluateVisitor__closure1, R._EvaluateVisitor_closure7, R._EvaluateVisitor_closure8, R._EvaluateVisitor__closure, R._EvaluateVisitor__closure0, R._EvaluateVisitor_run_closure, R._EvaluateVisitor_runExpression_closure, R._EvaluateVisitor_runExpression__closure, R._EvaluateVisitor_runStatement_closure, R._EvaluateVisitor_runStatement__closure, R._EvaluateVisitor__withWarnCallback_closure, R._EvaluateVisitor__loadModule_closure, R._EvaluateVisitor__loadModule_closure0, R._EvaluateVisitor__execute_closure, R._EvaluateVisitor__combineCss_closure, R._EvaluateVisitor__combineCss_closure0, R._EvaluateVisitor__combineCss_closure1, R._EvaluateVisitor__extendModules_closure, R._EvaluateVisitor__extendModules_closure0, R._EvaluateVisitor__topologicalModules_visitModule, R._EvaluateVisitor_visitAtRootRule_closure, R._EvaluateVisitor_visitAtRootRule_closure0, R._EvaluateVisitor_visitAtRootRule_closure1, R._EvaluateVisitor__scopeForAtRoot_closure, R._EvaluateVisitor__scopeForAtRoot_closure0, R._EvaluateVisitor__scopeForAtRoot_closure1, R._EvaluateVisitor__scopeForAtRoot__closure, R._EvaluateVisitor__scopeForAtRoot_closure2, R._EvaluateVisitor__scopeForAtRoot_closure3, R._EvaluateVisitor__scopeForAtRoot_closure4, R._EvaluateVisitor_visitContentRule_closure, R._EvaluateVisitor_visitDeclaration_closure, R._EvaluateVisitor_visitEachRule_closure, R._EvaluateVisitor_visitEachRule_closure0, R._EvaluateVisitor_visitEachRule_closure1, R._EvaluateVisitor_visitEachRule__closure, R._EvaluateVisitor_visitEachRule___closure, R._EvaluateVisitor_visitExtendRule_closure, R._EvaluateVisitor_visitAtRule_closure, R._EvaluateVisitor_visitAtRule__closure, R._EvaluateVisitor_visitAtRule_closure0, R._EvaluateVisitor_visitForRule_closure, R._EvaluateVisitor_visitForRule_closure0, R._EvaluateVisitor_visitForRule_closure1, R._EvaluateVisitor_visitForRule_closure2, R._EvaluateVisitor_visitForRule_closure3, R._EvaluateVisitor_visitForRule__closure, R._EvaluateVisitor_visitForwardRule_closure, R._EvaluateVisitor_visitForwardRule_closure0, R._EvaluateVisitor__assertConfigurationIsEmpty_closure, R._EvaluateVisitor_visitIfRule_closure, R._EvaluateVisitor_visitIfRule__closure, R._EvaluateVisitor__visitDynamicImport_closure, R._EvaluateVisitor__visitDynamicImport__closure, R._EvaluateVisitor_visitIncludeRule_closure, R._EvaluateVisitor_visitIncludeRule_closure0, R._EvaluateVisitor_visitIncludeRule_closure1, R._EvaluateVisitor_visitIncludeRule__closure, R._EvaluateVisitor_visitIncludeRule___closure, R._EvaluateVisitor_visitIncludeRule____closure, R._EvaluateVisitor_visitMediaRule_closure, R._EvaluateVisitor_visitMediaRule__closure, R._EvaluateVisitor_visitMediaRule___closure, R._EvaluateVisitor_visitMediaRule_closure0, R._EvaluateVisitor__visitMediaQueries_closure, R._EvaluateVisitor_visitStyleRule_closure, R._EvaluateVisitor_visitStyleRule_closure0, R._EvaluateVisitor_visitStyleRule_closure1, R._EvaluateVisitor_visitStyleRule_closure2, R._EvaluateVisitor_visitStyleRule_closure3, R._EvaluateVisitor_visitStyleRule_closure4, R._EvaluateVisitor_visitStyleRule__closure, R._EvaluateVisitor_visitStyleRule_closure5, R._EvaluateVisitor_visitSupportsRule_closure, R._EvaluateVisitor_visitSupportsRule__closure, R._EvaluateVisitor_visitSupportsRule_closure0, R._EvaluateVisitor_visitVariableDeclaration_closure, R._EvaluateVisitor_visitVariableDeclaration_closure0, R._EvaluateVisitor_visitVariableDeclaration_closure1, R._EvaluateVisitor_visitUseRule_closure, R._EvaluateVisitor_visitWarnRule_closure, R._EvaluateVisitor_visitWhileRule_closure, R._EvaluateVisitor_visitWhileRule__closure, R._EvaluateVisitor_visitBinaryOperationExpression_closure, R._EvaluateVisitor_visitVariableExpression_closure, R._EvaluateVisitor_visitListExpression_closure, R._EvaluateVisitor_visitFunctionExpression_closure, R._EvaluateVisitor_visitFunctionExpression_closure0, R._EvaluateVisitor__runUserDefinedCallable_closure, R._EvaluateVisitor__runUserDefinedCallable__closure, R._EvaluateVisitor__runUserDefinedCallable___closure, R._EvaluateVisitor__runUserDefinedCallable____closure, R._EvaluateVisitor__runFunctionCallable_closure, R._EvaluateVisitor__runBuiltInCallable_closure, R._EvaluateVisitor__runBuiltInCallable_closure0, R._EvaluateVisitor__evaluateArguments_closure, R._EvaluateVisitor__evaluateMacroArguments_closure, R._EvaluateVisitor__evaluateMacroArguments_closure0, R._EvaluateVisitor__evaluateMacroArguments_closure1, R._EvaluateVisitor__evaluateMacroArguments_closure2, R._EvaluateVisitor__addRestMap_closure, R._EvaluateVisitor__addRestMap_closure0, R._EvaluateVisitor__verifyArguments_closure, R._EvaluateVisitor_visitStringExpression_closure, R._EvaluateVisitor_visitCssAtRule_closure, R._EvaluateVisitor_visitCssAtRule_closure0, R._EvaluateVisitor_visitCssKeyframeBlock_closure, R._EvaluateVisitor_visitCssKeyframeBlock_closure0, R._EvaluateVisitor_visitCssMediaRule_closure, R._EvaluateVisitor_visitCssMediaRule__closure, R._EvaluateVisitor_visitCssMediaRule___closure, R._EvaluateVisitor_visitCssMediaRule_closure0, R._EvaluateVisitor_visitCssStyleRule_closure, R._EvaluateVisitor_visitCssStyleRule__closure, R._EvaluateVisitor_visitCssStyleRule_closure0, R._EvaluateVisitor_visitCssSupportsRule_closure, R._EvaluateVisitor_visitCssSupportsRule__closure, R._EvaluateVisitor_visitCssSupportsRule_closure0, R._EvaluateVisitor__performInterpolation_closure, R._EvaluateVisitor__serialize_closure, R._EvaluateVisitor__stackTrace_closure, R._ImportedCssVisitor_visitCssAtRule_closure, R._ImportedCssVisitor_visitCssMediaRule_closure, R._ImportedCssVisitor_visitCssStyleRule_closure, R._ImportedCssVisitor_visitCssSupportsRule_closure, N.serialize_closure, N._SerializeVisitor_visitCssComment_closure, N._SerializeVisitor_visitCssAtRule_closure, N._SerializeVisitor_visitCssMediaRule_closure, N._SerializeVisitor_visitCssImport_closure, N._SerializeVisitor_visitCssImport__closure, N._SerializeVisitor_visitCssKeyframeBlock_closure, N._SerializeVisitor_visitCssStyleRule_closure, N._SerializeVisitor_visitCssSupportsRule_closure, N._SerializeVisitor_visitCssDeclaration_closure, N._SerializeVisitor_visitCssDeclaration_closure0, N._SerializeVisitor_visitList_closure, N._SerializeVisitor_visitList_closure0, N._SerializeVisitor_visitList_closure1, N._SerializeVisitor_visitMap_closure, N._SerializeVisitor_visitSelectorList_closure, N._SerializeVisitor__write_closure, N._SerializeVisitor__visitChildren_closure, N.withWarnCallback_closure, T.SingleMapping_SingleMapping$fromEntries_closure, T.SingleMapping_SingleMapping$fromEntries_closure0, T.SingleMapping_SingleMapping$fromEntries_closure1, T.SingleMapping_toJson_closure, T.SingleMapping_toJson_closure0, U.Highlighter_closure, U.Highlighter$__closure, U.Highlighter$___closure, U.Highlighter$__closure0, U.Highlighter__collateLines_closure, U.Highlighter__collateLines_closure0, U.Highlighter__collateLines_closure1, U.Highlighter__collateLines__closure, U.Highlighter_highlight_closure, U.Highlighter_highlight_closure0, U.Highlighter__writeFileStart_closure, U.Highlighter__writeMultilineHighlights_closure, U.Highlighter__writeMultilineHighlights_closure0, U.Highlighter__writeMultilineHighlights_closure1, U.Highlighter__writeMultilineHighlights_closure2, U.Highlighter__writeMultilineHighlights__closure, U.Highlighter__writeMultilineHighlights__closure0, U.Highlighter__writeHighlightedText_closure, U.Highlighter__writeIndicator_closure, U.Highlighter__writeIndicator_closure0, U.Highlighter__writeIndicator_closure1, U.Highlighter__writeSidebar_closure, U._Highlight_closure, U.Chain_Chain$parse_closure, U.Chain_Chain$parse_closure0, U.Chain_toTrace_closure, U.Chain_toString_closure0, U.Chain_toString__closure0, U.Chain_toString_closure, U.Chain_toString__closure, A.Frame_Frame$parseVM_closure, A.Frame_Frame$parseV8_closure, A.Frame_Frame$parseV8_closure_parseLocation, A.Frame_Frame$_parseFirefoxEval_closure, A.Frame_Frame$parseFirefox_closure, A.Frame_Frame$parseFriendly_closure, T.LazyTrace_terse_closure, Y.Trace_Trace$from_closure, Y.Trace__parseVM_closure, Y.Trace$parseV8_closure, Y.Trace$parseV8_closure0, Y.Trace$parseJSCore_closure, Y.Trace$parseJSCore_closure0, Y.Trace$parseFirefox_closure, Y.Trace$parseFirefox_closure0, Y.Trace$parseFriendly_closure, Y.Trace$parseFriendly_closure0, Y.Trace_terse_closure, Y.Trace_foldFrames_closure, Y.Trace_foldFrames_closure0, Y.Trace_toString_closure0, Y.Trace_toString_closure, L._StreamTransformer_bind_closure, L._StreamTransformer_bind__closure, L._StreamTransformer_bind__closure1, L._StreamTransformer_bind__closure0, L._StreamTransformer_bind__closure2, R._debounceAggregate_closure, R._debounceAggregate__closure, R._debounceAggregate_closure0, B.ArgumentDeclaration_verify_closure1, B.ArgumentDeclaration_verify_closure2, S.AsyncBuiltInCallable$mixin_closure0, X._compileStylesheet_closure2, Q.AsyncEnvironment_importForwards_closure3, Q.AsyncEnvironment_importForwards_closure4, Q.AsyncEnvironment_importForwards_closure5, Q.AsyncEnvironment_importForwards_closure6, Q.AsyncEnvironment__getVariableFromGlobalModule_closure0, Q.AsyncEnvironment_setVariable_closure2, Q.AsyncEnvironment_setVariable_closure3, Q.AsyncEnvironment_setVariable_closure4, Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0, Q.AsyncEnvironment__getMixinFromGlobalModule_closure0, Q._EnvironmentModule__EnvironmentModule_closure17, Q._EnvironmentModule__EnvironmentModule_closure18, Q._EnvironmentModule__EnvironmentModule_closure19, Q._EnvironmentModule__EnvironmentModule_closure20, Q._EnvironmentModule__EnvironmentModule_closure21, Q._EnvironmentModule__EnvironmentModule_closure22, E._EvaluateVisitor_closure29, E._EvaluateVisitor_closure30, E._EvaluateVisitor_closure31, E._EvaluateVisitor_closure32, E._EvaluateVisitor_closure33, E._EvaluateVisitor_closure34, E._EvaluateVisitor_closure35, E._EvaluateVisitor_closure36, E._EvaluateVisitor__closure10, E._EvaluateVisitor_closure37, E._EvaluateVisitor_closure38, E._EvaluateVisitor__closure8, E._EvaluateVisitor__closure9, E._EvaluateVisitor_run_closure2, E._EvaluateVisitor__withWarnCallback_closure2, E._EvaluateVisitor__loadModule_closure5, E._EvaluateVisitor__loadModule_closure6, E._EvaluateVisitor__execute_closure2, E._EvaluateVisitor__combineCss_closure8, E._EvaluateVisitor__combineCss_closure9, E._EvaluateVisitor__combineCss_closure10, E._EvaluateVisitor__extendModules_closure5, E._EvaluateVisitor__extendModules_closure6, E._EvaluateVisitor__topologicalModules_visitModule2, E._EvaluateVisitor_visitAtRootRule_closure8, E._EvaluateVisitor_visitAtRootRule_closure9, E._EvaluateVisitor_visitAtRootRule_closure10, E._EvaluateVisitor__scopeForAtRoot_closure17, E._EvaluateVisitor__scopeForAtRoot_closure18, E._EvaluateVisitor__scopeForAtRoot_closure19, E._EvaluateVisitor__scopeForAtRoot__closure2, E._EvaluateVisitor__scopeForAtRoot_closure20, E._EvaluateVisitor__scopeForAtRoot_closure21, E._EvaluateVisitor__scopeForAtRoot_closure22, E._EvaluateVisitor_visitContentRule_closure2, E._EvaluateVisitor_visitDeclaration_closure2, E._EvaluateVisitor_visitEachRule_closure8, E._EvaluateVisitor_visitEachRule_closure9, E._EvaluateVisitor_visitEachRule_closure10, E._EvaluateVisitor_visitEachRule__closure2, E._EvaluateVisitor_visitEachRule___closure2, E._EvaluateVisitor_visitExtendRule_closure2, E._EvaluateVisitor_visitAtRule_closure5, E._EvaluateVisitor_visitAtRule__closure2, E._EvaluateVisitor_visitAtRule_closure6, E._EvaluateVisitor_visitForRule_closure14, E._EvaluateVisitor_visitForRule_closure15, E._EvaluateVisitor_visitForRule_closure16, E._EvaluateVisitor_visitForRule_closure17, E._EvaluateVisitor_visitForRule_closure18, E._EvaluateVisitor_visitForRule__closure2, E._EvaluateVisitor_visitForwardRule_closure5, E._EvaluateVisitor_visitForwardRule_closure6, E._EvaluateVisitor__assertConfigurationIsEmpty_closure2, E._EvaluateVisitor_visitIfRule_closure2, E._EvaluateVisitor_visitIfRule__closure2, E._EvaluateVisitor__visitDynamicImport_closure2, E._EvaluateVisitor__visitDynamicImport__closure2, E._EvaluateVisitor_visitIncludeRule_closure8, E._EvaluateVisitor_visitIncludeRule_closure9, E._EvaluateVisitor_visitIncludeRule_closure10, E._EvaluateVisitor_visitIncludeRule__closure2, E._EvaluateVisitor_visitIncludeRule___closure2, E._EvaluateVisitor_visitIncludeRule____closure2, E._EvaluateVisitor_visitMediaRule_closure5, E._EvaluateVisitor_visitMediaRule__closure2, E._EvaluateVisitor_visitMediaRule___closure2, E._EvaluateVisitor_visitMediaRule_closure6, E._EvaluateVisitor__visitMediaQueries_closure2, E._EvaluateVisitor_visitStyleRule_closure20, E._EvaluateVisitor_visitStyleRule_closure21, E._EvaluateVisitor_visitStyleRule_closure22, E._EvaluateVisitor_visitStyleRule_closure23, E._EvaluateVisitor_visitStyleRule_closure24, E._EvaluateVisitor_visitStyleRule_closure25, E._EvaluateVisitor_visitStyleRule__closure2, E._EvaluateVisitor_visitStyleRule_closure26, E._EvaluateVisitor_visitSupportsRule_closure5, E._EvaluateVisitor_visitSupportsRule__closure2, E._EvaluateVisitor_visitSupportsRule_closure6, E._EvaluateVisitor_visitVariableDeclaration_closure8, E._EvaluateVisitor_visitVariableDeclaration_closure9, E._EvaluateVisitor_visitVariableDeclaration_closure10, E._EvaluateVisitor_visitUseRule_closure2, E._EvaluateVisitor_visitWarnRule_closure2, E._EvaluateVisitor_visitWhileRule_closure2, E._EvaluateVisitor_visitWhileRule__closure2, E._EvaluateVisitor_visitBinaryOperationExpression_closure2, E._EvaluateVisitor_visitVariableExpression_closure2, E._EvaluateVisitor_visitListExpression_closure2, E._EvaluateVisitor_visitFunctionExpression_closure5, E._EvaluateVisitor_visitFunctionExpression_closure6, E._EvaluateVisitor__runUserDefinedCallable_closure2, E._EvaluateVisitor__runUserDefinedCallable__closure2, E._EvaluateVisitor__runUserDefinedCallable___closure2, E._EvaluateVisitor__runUserDefinedCallable____closure2, E._EvaluateVisitor__runFunctionCallable_closure2, E._EvaluateVisitor__runBuiltInCallable_closure5, E._EvaluateVisitor__runBuiltInCallable_closure6, E._EvaluateVisitor__evaluateArguments_closure2, E._EvaluateVisitor__evaluateMacroArguments_closure11, E._EvaluateVisitor__evaluateMacroArguments_closure12, E._EvaluateVisitor__evaluateMacroArguments_closure13, E._EvaluateVisitor__evaluateMacroArguments_closure14, E._EvaluateVisitor__addRestMap_closure5, E._EvaluateVisitor__addRestMap_closure6, E._EvaluateVisitor__verifyArguments_closure2, E._EvaluateVisitor_visitStringExpression_closure2, E._EvaluateVisitor_visitCssAtRule_closure5, E._EvaluateVisitor_visitCssAtRule_closure6, E._EvaluateVisitor_visitCssKeyframeBlock_closure5, E._EvaluateVisitor_visitCssKeyframeBlock_closure6, E._EvaluateVisitor_visitCssMediaRule_closure5, E._EvaluateVisitor_visitCssMediaRule__closure2, E._EvaluateVisitor_visitCssMediaRule___closure2, E._EvaluateVisitor_visitCssMediaRule_closure6, E._EvaluateVisitor_visitCssStyleRule_closure5, E._EvaluateVisitor_visitCssStyleRule__closure2, E._EvaluateVisitor_visitCssStyleRule_closure6, E._EvaluateVisitor_visitCssSupportsRule_closure5, E._EvaluateVisitor_visitCssSupportsRule__closure2, E._EvaluateVisitor_visitCssSupportsRule_closure6, E._EvaluateVisitor__performInterpolation_closure2, E._EvaluateVisitor__serialize_closure2, E._EvaluateVisitor__stackTrace_closure2, E._ImportedCssVisitor_visitCssAtRule_closure2, E._ImportedCssVisitor_visitCssMediaRule_closure2, E._ImportedCssVisitor_visitCssStyleRule_closure2, E._ImportedCssVisitor_visitCssSupportsRule_closure2, O.AsyncImportCache_canonicalize_closure0, O.AsyncImportCache__canonicalize_closure0, O.AsyncImportCache_importCanonical_closure0, O.AsyncImportCache_humanize_closure2, O.AsyncImportCache_humanize_closure3, O.AsyncImportCache_humanize_closure4, V.AtRootQueryParser_parse_closure0, Z.closure245, Z._closure32, Z._closure33, Q.BuiltInCallable$mixin_closure0, K.closure149, K.closure150, K.closure151, K.closure152, K.closure153, K.closure154, K.closure155, K.closure156, K.closure157, K.closure158, K.closure159, K.closure160, K.closure161, K.closure162, K.closure163, K.closure164, K.closure165, K.closure166, K.closure167, K.closure168, K.closure169, K.closure170, K.closure171, K.closure172, K.closure173, K.closure174, K._closure24, K.closure175, K.closure200, K.closure201, K.closure202, K.closure203, K._closure26, K.closure204, K.closure187, K.closure186, K.closure185, K.closure184, K.closure183, K.closure182, K.closure181, K.closure180, K.closure178, K.closure_getInRange2, K._closure23, K.closure177, K.closure_getScale0, K.closure_scaleValue0, K._closure22, K.closure176, K.closure_getInRange1, K._closure21, K.closure179, K.closure_hexString0, K._functionString_closure0, K._removedColorFunction_closure0, K._parseChannels_closure0, K.closure235, K.closure236, K.closure237, K.closure238, K.closure239, K.closure240, K.closure241, K.closure242, K.closure243, K.closure244, U._compileStylesheet_closure1, S.ComplexSelector_isInvisible_closure0, X.CompoundSelector_isInvisible_closure0, Q.closure209, V.EachRule_toString_closure0, O.Environment_importForwards_closure3, O.Environment_importForwards_closure4, O.Environment_importForwards_closure5, O.Environment_importForwards_closure6, O.Environment__getVariableFromGlobalModule_closure0, O.Environment_setVariable_closure2, O.Environment_setVariable_closure3, O.Environment_setVariable_closure4, O.Environment__getFunctionFromGlobalModule_closure0, O.Environment__getMixinFromGlobalModule_closure0, O._EnvironmentModule__EnvironmentModule_closure11, O._EnvironmentModule__EnvironmentModule_closure12, O._EnvironmentModule__EnvironmentModule_closure13, O._EnvironmentModule__EnvironmentModule_closure14, O._EnvironmentModule__EnvironmentModule_closure15, O._EnvironmentModule__EnvironmentModule_closure16, R._EvaluateVisitor_closure19, R._EvaluateVisitor_closure20, R._EvaluateVisitor_closure21, R._EvaluateVisitor_closure22, R._EvaluateVisitor_closure23, R._EvaluateVisitor_closure24, R._EvaluateVisitor_closure25, R._EvaluateVisitor_closure26, R._EvaluateVisitor__closure7, R._EvaluateVisitor_closure27, R._EvaluateVisitor_closure28, R._EvaluateVisitor__closure5, R._EvaluateVisitor__closure6, R._EvaluateVisitor_run_closure1, R._EvaluateVisitor__withWarnCallback_closure1, R._EvaluateVisitor__loadModule_closure3, R._EvaluateVisitor__loadModule_closure4, R._EvaluateVisitor__execute_closure1, R._EvaluateVisitor__combineCss_closure5, R._EvaluateVisitor__combineCss_closure6, R._EvaluateVisitor__combineCss_closure7, R._EvaluateVisitor__extendModules_closure3, R._EvaluateVisitor__extendModules_closure4, R._EvaluateVisitor__topologicalModules_visitModule1, R._EvaluateVisitor_visitAtRootRule_closure5, R._EvaluateVisitor_visitAtRootRule_closure6, R._EvaluateVisitor_visitAtRootRule_closure7, R._EvaluateVisitor__scopeForAtRoot_closure11, R._EvaluateVisitor__scopeForAtRoot_closure12, R._EvaluateVisitor__scopeForAtRoot_closure13, R._EvaluateVisitor__scopeForAtRoot__closure1, R._EvaluateVisitor__scopeForAtRoot_closure14, R._EvaluateVisitor__scopeForAtRoot_closure15, R._EvaluateVisitor__scopeForAtRoot_closure16, R._EvaluateVisitor_visitContentRule_closure1, R._EvaluateVisitor_visitDeclaration_closure1, R._EvaluateVisitor_visitEachRule_closure5, R._EvaluateVisitor_visitEachRule_closure6, R._EvaluateVisitor_visitEachRule_closure7, R._EvaluateVisitor_visitEachRule__closure1, R._EvaluateVisitor_visitEachRule___closure1, R._EvaluateVisitor_visitExtendRule_closure1, R._EvaluateVisitor_visitAtRule_closure3, R._EvaluateVisitor_visitAtRule__closure1, R._EvaluateVisitor_visitAtRule_closure4, R._EvaluateVisitor_visitForRule_closure9, R._EvaluateVisitor_visitForRule_closure10, R._EvaluateVisitor_visitForRule_closure11, R._EvaluateVisitor_visitForRule_closure12, R._EvaluateVisitor_visitForRule_closure13, R._EvaluateVisitor_visitForRule__closure1, R._EvaluateVisitor_visitForwardRule_closure3, R._EvaluateVisitor_visitForwardRule_closure4, R._EvaluateVisitor__assertConfigurationIsEmpty_closure1, R._EvaluateVisitor_visitIfRule_closure1, R._EvaluateVisitor_visitIfRule__closure1, R._EvaluateVisitor__visitDynamicImport_closure1, R._EvaluateVisitor__visitDynamicImport__closure1, R._EvaluateVisitor_visitIncludeRule_closure5, R._EvaluateVisitor_visitIncludeRule_closure6, R._EvaluateVisitor_visitIncludeRule_closure7, R._EvaluateVisitor_visitIncludeRule__closure1, R._EvaluateVisitor_visitIncludeRule___closure1, R._EvaluateVisitor_visitIncludeRule____closure1, R._EvaluateVisitor_visitMediaRule_closure3, R._EvaluateVisitor_visitMediaRule__closure1, R._EvaluateVisitor_visitMediaRule___closure1, R._EvaluateVisitor_visitMediaRule_closure4, R._EvaluateVisitor__visitMediaQueries_closure1, R._EvaluateVisitor_visitStyleRule_closure13, R._EvaluateVisitor_visitStyleRule_closure14, R._EvaluateVisitor_visitStyleRule_closure15, R._EvaluateVisitor_visitStyleRule_closure16, R._EvaluateVisitor_visitStyleRule_closure17, R._EvaluateVisitor_visitStyleRule_closure18, R._EvaluateVisitor_visitStyleRule__closure1, R._EvaluateVisitor_visitStyleRule_closure19, R._EvaluateVisitor_visitSupportsRule_closure3, R._EvaluateVisitor_visitSupportsRule__closure1, R._EvaluateVisitor_visitSupportsRule_closure4, R._EvaluateVisitor_visitVariableDeclaration_closure5, R._EvaluateVisitor_visitVariableDeclaration_closure6, R._EvaluateVisitor_visitVariableDeclaration_closure7, R._EvaluateVisitor_visitUseRule_closure1, R._EvaluateVisitor_visitWarnRule_closure1, R._EvaluateVisitor_visitWhileRule_closure1, R._EvaluateVisitor_visitWhileRule__closure1, R._EvaluateVisitor_visitBinaryOperationExpression_closure1, R._EvaluateVisitor_visitVariableExpression_closure1, R._EvaluateVisitor_visitListExpression_closure1, R._EvaluateVisitor_visitFunctionExpression_closure3, R._EvaluateVisitor_visitFunctionExpression_closure4, R._EvaluateVisitor__runUserDefinedCallable_closure1, R._EvaluateVisitor__runUserDefinedCallable__closure1, R._EvaluateVisitor__runUserDefinedCallable___closure1, R._EvaluateVisitor__runUserDefinedCallable____closure1, R._EvaluateVisitor__runFunctionCallable_closure1, R._EvaluateVisitor__runBuiltInCallable_closure3, R._EvaluateVisitor__runBuiltInCallable_closure4, R._EvaluateVisitor__evaluateArguments_closure1, R._EvaluateVisitor__evaluateMacroArguments_closure7, R._EvaluateVisitor__evaluateMacroArguments_closure8, R._EvaluateVisitor__evaluateMacroArguments_closure9, R._EvaluateVisitor__evaluateMacroArguments_closure10, R._EvaluateVisitor__addRestMap_closure3, R._EvaluateVisitor__addRestMap_closure4, R._EvaluateVisitor__verifyArguments_closure1, R._EvaluateVisitor_visitStringExpression_closure1, R._EvaluateVisitor_visitCssAtRule_closure3, R._EvaluateVisitor_visitCssAtRule_closure4, R._EvaluateVisitor_visitCssKeyframeBlock_closure3, R._EvaluateVisitor_visitCssKeyframeBlock_closure4, R._EvaluateVisitor_visitCssMediaRule_closure3, R._EvaluateVisitor_visitCssMediaRule__closure1, R._EvaluateVisitor_visitCssMediaRule___closure1, R._EvaluateVisitor_visitCssMediaRule_closure4, R._EvaluateVisitor_visitCssStyleRule_closure3, R._EvaluateVisitor_visitCssStyleRule__closure1, R._EvaluateVisitor_visitCssStyleRule_closure4, R._EvaluateVisitor_visitCssSupportsRule_closure3, R._EvaluateVisitor_visitCssSupportsRule__closure1, R._EvaluateVisitor_visitCssSupportsRule_closure4, R._EvaluateVisitor__performInterpolation_closure1, R._EvaluateVisitor__serialize_closure1, R._EvaluateVisitor__stackTrace_closure1, R._ImportedCssVisitor_visitCssAtRule_closure1, R._ImportedCssVisitor_visitCssMediaRule_closure1, R._ImportedCssVisitor_visitCssStyleRule_closure1, R._ImportedCssVisitor_visitCssSupportsRule_closure1, F.Extender_extensionsWhereTarget_closure0, F.Extender__registerSelector_closure0, F.Extender_addExtension_closure2, F.Extender_addExtension_closure3, F.Extender_addExtension_closure4, F.Extender__extendExistingExtensions_closure1, F.Extender__extendExistingExtensions_closure2, F.Extender_addExtensions_closure0, F.Extender_addExtensions__closure0, F.Extender_addExtensions___closure1, F.Extender_addExtensions___closure2, F.Extender__extendList_closure0, F.Extender__extendComplex_closure1, F.Extender__extendComplex_closure2, F.Extender__extendComplex__closure1, F.Extender__extendComplex__closure2, F.Extender__extendComplex___closure0, F.Extender__extendCompound_closure3, F.Extender__extendCompound_closure4, F.Extender__extendCompound__closure1, F.Extender__extendCompound__closure2, F.Extender__extendCompound_closure5, F.Extender__extendCompound_closure6, F.Extender__extendSimple_withoutPseudo0, F.Extender__extendSimple_closure0, F.Extender__extendPseudo_closure4, F.Extender__extendPseudo_closure5, F.Extender__extendPseudo_closure6, F.Extender__extendPseudo_closure7, F.Extender__extendPseudo_closure8, F.Extender__trim_closure1, F.Extender__trim_closure2, F.Extender_clone_closure0, Y.unifyComplex_closure0, Y._weaveParents_closure6, Y._weaveParents_closure7, Y._weaveParents_closure8, Y._weaveParents__closure4, Y._weaveParents_closure9, Y._weaveParents_closure10, Y._weaveParents__closure3, Y._weaveParents_closure11, Y._weaveParents_closure12, Y._weaveParents__closure2, Y._mustUnify_closure0, Y._mustUnify__closure0, Y.paths_closure0, Y.paths__closure0, Y.paths___closure0, Y._hasRoot_closure0, Y.listIsSuperselector_closure0, Y.listIsSuperselector__closure0, Y._simpleIsSuperselectorOfCompound_closure0, Y._simpleIsSuperselectorOfCompound__closure0, Y._selectorPseudoIsSuperselector_closure6, Y._selectorPseudoIsSuperselector_closure7, Y._selectorPseudoIsSuperselector_closure8, Y._selectorPseudoIsSuperselector_closure9, Y._selectorPseudoIsSuperselector_closure10, Y._selectorPseudoIsSuperselector__closure0, Y._selectorPseudoIsSuperselector___closure1, Y._selectorPseudoIsSuperselector___closure2, Y._selectorPseudoIsSuperselector_closure11, Y._selectorPseudoIsSuperselector_closure12, Y._selectorPseudosNamed_closure0, Y.closure105, N.IDSelector_unify_closure0, V.IfRule_toString_closure0, V.IfClause$__closure0, V.IfClause$___closure0, F.NodeImporter__tryPath_closure, R.ImportCache_canonicalize_closure0, R.ImportCache__canonicalize_closure0, R.ImportCache_importCanonical_closure0, R.ImportCache_humanize_closure2, R.ImportCache_humanize_closure3, R.ImportCache_humanize_closure4, X.Interpolation_toString_closure0, F.realCasePath_closure0, E.KeyframeSelectorParser_parse_closure0, D.ListExpression_toString_closure0, D.closure148, D.closure147, D.closure146, D.closure145, D.closure144, D.closure143, D._closure18, D._closure19, D._closure20, D.closure142, D.closure140, D.closure141, D.SelectorList_isInvisible_closure0, D.SelectorList_asSassList_closure0, D.SelectorList_asSassList__closure0, D.SelectorList_unify_closure0, D.SelectorList_unify__closure0, D.SelectorList_unify___closure0, D.SelectorList_resolveParentSelectors_closure0, D.SelectorList_resolveParentSelectors__closure1, D.SelectorList_resolveParentSelectors__closure2, D.SelectorList__complexContainsParentSelector_closure0, D.SelectorList__complexContainsParentSelector__closure0, D.SelectorList__resolveParentSelectorsCompound_closure2, D.SelectorList__resolveParentSelectorsCompound_closure3, D.SelectorList__resolveParentSelectorsCompound_closure4, D.closure228, D._closure31, D.closure229, D.closure230, D.closure231, D.closure232, D.closure233, D.closure234, D.SassList_isBlank_closure0, A.MapExpression_toString_closure0, A.closure139, A.closure138, A.closure136, A.closure137, A.closure135, A.closure134, A.closure133, A.closure221, A._closure29, A._closure30, A.closure222, A.closure223, A.closure224, A.closure225, A.closure226, A.closure227, A.SassMap_asList_closure0, K.closure131, K.closure195, K.closure130, K.closure129, K.closure128, K.closure132, K.closure193, K._closure25, K.closure192, K.closure191, K.closure189, K.closure199, K.closure198, K.closure197, K.closure196, K.closure194, K.closure190, K.closure188, K.closure124, K.closure123, K.closure125, K.closure127, K.closure126, K._numberFunction_closure0, F.MediaQueryParser_parse_closure0, Q.closure205, Q.closure206, Q.closure207, Q.closure208, B._readFile_closure0, B.fileExists_closure0, B.dirExists_closure0, B.listDir_closure0, B.listDir__closure1, B.listDir__closure2, B.listDir_closure_list0, B.listDir__list_closure0, B._render_closure, B._render_closure0, B._render_closure1, B._parseFunctions_closure, B._parseFunctions__closure, B._parseFunctions___closure0, B._parseFunctions____closure, B._parseFunctions__closure0, B._parseFunctions__closure1, B._parseFunctions___closure, B._parseImporter_closure, B._parseImporter__closure, B._parseImporter___closure, B._parseImporter____closure, O.closure220, O._closure27, O._closure28, T.closure214, T.closure215, T.closure216, T.closure217, T.closure218, T.closure219, T._parseNumber_closure, T._parseNumber_closure0, T.SassNumber_valueInUnits_closure3, T.SassNumber_valueInUnits_closure4, T.SassNumber_valueInUnits_closure5, T.SassNumber_valueInUnits_closure6, T.SassNumber_modulo_closure0, T.SassNumber_plus_closure0, T.SassNumber_minus_closure0, T.SassNumber__multiplyUnits_closure3, T.SassNumber__multiplyUnits_closure4, T.SassNumber__multiplyUnits_closure5, T.SassNumber__multiplyUnits_closure6, T.SassNumber__areAnyConvertible_closure0, T.SassNumber__canonicalMultiplier_closure0, M.ParentStatement_closure0, M.ParentStatement__closure0, G.Parser__parseIdentifier_closure0, G.Parser_scanIdentChar_matches0, F._PrefixedKeys_iterator_closure0, U.main_printError, U.main_closure, U.SassParser_children_closure0, R._wrapMain_closure, R._wrapMain_closure0, T.closure119, T._closure15, T._closure16, T.closure118, T._closure13, T._closure14, T.__closure0, T.closure117, T.closure116, T.closure115, T.closure122, T.closure121, T._closure17, T.closure120, T.SelectorParser_parse_closure0, T.SelectorParser_parseCompoundSelector_closure0, N.serialize_closure0, N._SerializeVisitor_visitCssComment_closure0, N._SerializeVisitor_visitCssAtRule_closure0, N._SerializeVisitor_visitCssMediaRule_closure0, N._SerializeVisitor_visitCssImport_closure0, N._SerializeVisitor_visitCssImport__closure0, N._SerializeVisitor_visitCssKeyframeBlock_closure0, N._SerializeVisitor_visitCssStyleRule_closure0, N._SerializeVisitor_visitCssSupportsRule_closure0, N._SerializeVisitor_visitCssDeclaration_closure1, N._SerializeVisitor_visitCssDeclaration_closure2, N._SerializeVisitor_visitList_closure2, N._SerializeVisitor_visitList_closure3, N._SerializeVisitor_visitList_closure4, N._SerializeVisitor_visitMap_closure0, N._SerializeVisitor_visitSelectorList_closure0, N._SerializeVisitor__write_closure0, N._SerializeVisitor__visitChildren_closure0, D.SourceMapBuffer__addEntry_closure0, D.SourceMapBuffer_buildSourceMap_closure0, D.closure114, D.closure113, D.closure109, D.closure108, D.closure107, D.closure106, D.closure112, D.closure111, D.closure110, D.closure210, D.closure211, D.closure212, D.closure213, V.StylesheetParser_parse_closure0, V.StylesheetParser_parse__closure1, V.StylesheetParser_parse__closure2, V.StylesheetParser_parseArgumentDeclaration_closure0, V.StylesheetParser__parseSingleProduction_closure0, V.StylesheetParser_parseSignature_closure, V.StylesheetParser__statement_closure0, V.StylesheetParser_variableDeclarationWithoutNamespace_closure1, V.StylesheetParser_variableDeclarationWithoutNamespace_closure2, V.StylesheetParser__declarationOrBuffer_closure1, V.StylesheetParser__declarationOrBuffer_closure2, V.StylesheetParser__styleRule_closure0, V.StylesheetParser__propertyOrVariableDeclaration_closure1, V.StylesheetParser__propertyOrVariableDeclaration_closure2, V.StylesheetParser__atRootRule_closure1, V.StylesheetParser__atRootRule_closure2, V.StylesheetParser__eachRule_closure0, V.StylesheetParser__functionRule_closure0, V.StylesheetParser__forRule_closure1, V.StylesheetParser__forRule_closure2, V.StylesheetParser__memberList_closure0, V.StylesheetParser__includeRule_closure0, V.StylesheetParser_mediaRule_closure0, V.StylesheetParser__mixinRule_closure0, V.StylesheetParser_mozDocumentRule_closure0, V.StylesheetParser_supportsRule_closure0, V.StylesheetParser__whileRule_closure0, V.StylesheetParser_unknownAtRule_closure0, V.StylesheetParser_expression_resetState0, V.StylesheetParser_expression_resolveOneOperation0, V.StylesheetParser_expression_resolveOperations0, V.StylesheetParser_expression_addSingleExpression0, V.StylesheetParser_expression_addOperator0, V.StylesheetParser_expression_resolveSpaceExpressions0, V.StylesheetParser__expressionUntilComma_closure0, V.StylesheetParser__unicodeRange_closure1, V.StylesheetParser__unicodeRange_closure2, V.StylesheetParser_identifierLike_closure0, V.StylesheetParser__expressionUntilComparison_closure0, V.StylesheetParser__publicIdentifier_closure0, R._UnprefixedKeys_iterator_closure1, R._UnprefixedKeys_iterator_closure2, B.resolveImportPath_closure1, B.resolveImportPath_closure2, B._tryPathAsDirectory_closure0, B._exactlyOne_closure0, B.forwardToString_closure, B.createClass_closure, B.indent_closure0, B.flattenVertically_closure1, B.flattenVertically_closure2, B.longestCommonSubsequence_closure2, B.longestCommonSubsequence_closure3, B.longestCommonSubsequence_closure4, B.longestCommonSubsequence_backtrack0, B.mapAddAll2_closure0, N.withWarnCallback_closure0]);
  86736. _inherit(H.CastList, H._CastListBase);
  86737. _inheritMany(P.Error, [H.LateInitializationErrorImpl, H.NullError, H.JsNoSuchMethodError, H.UnknownJsTypeError, H.RuntimeError, H._Error, P.JsonUnsupportedObjectError, P.AssertionError, P.NullThrownError, P.ArgumentError, P.NoSuchMethodError, P.UnsupportedError, P.UnimplementedError, P.StateError, P.ConcurrentModificationError, P.CyclicInitializationError]);
  86738. _inherit(P.ListBase, P._ListBase_Object_ListMixin);
  86739. _inherit(H.UnmodifiableListBase, P.ListBase);
  86740. _inheritMany(H.UnmodifiableListBase, [H.CodeUnits, P.UnmodifiableListView]);
  86741. _inheritMany(H.EfficientLengthIterable, [H.ListIterable, H.EmptyIterable, H.LinkedHashMapKeyIterable, P._HashMapKeyIterable, P._MapBaseValueIterable, P.Set]);
  86742. _inheritMany(H.ListIterable, [H.SubListIterable, H.MappedListIterable, H.ReversedListIterable, P.ListQueue, P._GeneratorIterable]);
  86743. _inherit(H.EfficientLengthMappedIterable, H.MappedIterable);
  86744. _inheritMany(P.Iterator, [H.MappedIterator, H.WhereIterator, H.TakeIterator, H.SkipIterator, H.SkipWhileIterator]);
  86745. _inherit(H.EfficientLengthTakeIterable, H.TakeIterable);
  86746. _inherit(H.EfficientLengthSkipIterable, H.SkipIterable);
  86747. _inherit(H.EfficientLengthFollowedByIterable, H.FollowedByIterable);
  86748. _inheritMany(P.MapView, [P._UnmodifiableMapView_MapView__UnmodifiableMapMixin, K.PathMap]);
  86749. _inherit(P.UnmodifiableMapView, P._UnmodifiableMapView_MapView__UnmodifiableMapMixin);
  86750. _inherit(H.ConstantMapView, P.UnmodifiableMapView);
  86751. _inherit(H.ConstantStringMap, H.ConstantMap);
  86752. _inherit(H.ConstantProtoMap, H.ConstantStringMap);
  86753. _inherit(H.Instantiation1, H.Instantiation);
  86754. _inheritMany(H.TearOffClosure, [H.StaticClosure, H.BoundClosure]);
  86755. _inherit(P.MapBase, P.MapMixin);
  86756. _inheritMany(P.MapBase, [H.JsLinkedHashMap, P._HashMap, P.UnmodifiableMapBase, Z.MergedMapView, Z.MergedMapView0]);
  86757. _inheritMany(P.IterableBase, [H._AllMatchesIterable, P._SyncStarIterable, O.EmptyUnmodifiableSet, F._PrefixedKeys, R._UnprefixedKeys, F._PrefixedKeys0, R._UnprefixedKeys0]);
  86758. _inherit(H.NativeTypedArray, H.NativeTypedData);
  86759. _inheritMany(H.NativeTypedArray, [H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]);
  86760. _inherit(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin);
  86761. _inherit(H.NativeTypedArrayOfDouble, H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin);
  86762. _inherit(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin);
  86763. _inherit(H.NativeTypedArrayOfInt, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin);
  86764. _inheritMany(H.NativeTypedArrayOfDouble, [H.NativeFloat32List, H.NativeFloat64List]);
  86765. _inheritMany(H.NativeTypedArrayOfInt, [H.NativeInt16List, H.NativeInt32List, H.NativeInt8List, H.NativeUint16List, H.NativeUint32List, H.NativeUint8ClampedList, H.NativeUint8List]);
  86766. _inherit(H._TypeError, H._Error);
  86767. _inheritMany(P.Stream, [P._StreamImpl, P._ForwardingStream, Y._CompleterStream]);
  86768. _inherit(P._ControllerStream, P._StreamImpl);
  86769. _inherit(P._BroadcastStream, P._ControllerStream);
  86770. _inheritMany(P._BufferingStreamSubscription, [P._ControllerSubscription, P._ForwardingStreamSubscription]);
  86771. _inherit(P._BroadcastSubscription, P._ControllerSubscription);
  86772. _inherit(P._SyncBroadcastStreamController, P._BroadcastStreamController);
  86773. _inherit(P._AsyncCompleter, P._Completer);
  86774. _inheritMany(P._StreamController, [P._AsyncStreamController, P._SyncStreamController]);
  86775. _inherit(P._StreamControllerAddStreamState, P._AddStreamState);
  86776. _inheritMany(P._DelayedEvent, [P._DelayedData, P._DelayedError]);
  86777. _inherit(P._StreamImplEvents, P._PendingEvents);
  86778. _inherit(P._ExpandStream, P._ForwardingStream);
  86779. _inheritMany(P._Zone, [P._CustomZone, P._RootZone]);
  86780. _inheritMany(H.JsLinkedHashMap, [P._LinkedIdentityHashMap, P._LinkedCustomHashMap]);
  86781. _inheritMany(P._SetBase, [P._LinkedHashSet, P._UnmodifiableSet]);
  86782. _inherit(P._LinkedIdentityHashSet, P._LinkedHashSet);
  86783. _inheritMany(P.Codec, [P.Encoding, P.Base64Codec, P.JsonCodec]);
  86784. _inheritMany(P.Encoding, [P.AsciiCodec, P.Utf8Codec]);
  86785. _inheritMany(P.StreamTransformerBase, [P.Converter, L._StreamTransformer]);
  86786. _inheritMany(P.Converter, [P._UnicodeSubsetEncoder, P.Base64Encoder, P.JsonEncoder, P.Utf8Encoder, P.Utf8Decoder]);
  86787. _inherit(P.AsciiEncoder, P._UnicodeSubsetEncoder);
  86788. _inherit(P._BufferCachingBase64Encoder, P._Base64Encoder);
  86789. _inherit(P.ByteConversionSink, P.ChunkedConversionSink);
  86790. _inheritMany(P.ByteConversionSink, [P.ByteConversionSinkBase, P._Utf8StringSinkAdapter, P._Utf8ConversionSink]);
  86791. _inherit(P._Base64EncoderSink, P.ByteConversionSinkBase);
  86792. _inheritMany(P._Base64EncoderSink, [P._AsciiBase64EncoderSink, P._Utf8Base64EncoderSink]);
  86793. _inherit(P.JsonCyclicError, P.JsonUnsupportedObjectError);
  86794. _inherit(P._JsonStringStringifier, P._JsonStringifier);
  86795. _inherit(P.StringConversionSinkBase, P.StringConversionSinkMixin);
  86796. _inheritMany(P.StringConversionSinkBase, [P._StringSinkConversionSink, P._StringAdapterSink]);
  86797. _inherit(P._StringCallbackSink, P._StringSinkConversionSink);
  86798. _inheritMany(P.num, [P.double, P.int]);
  86799. _inheritMany(P.ArgumentError, [P.RangeError, P.IndexError]);
  86800. _inherit(P._DataUri, P._Uri);
  86801. _inherit(Z.ArgParserException, P.FormatException);
  86802. _inherit(Q.QueueList, Q._QueueList_Object_ListMixin);
  86803. _inherit(Q._CastQueueList, Q.QueueList);
  86804. _inheritMany(M._DelegatingIterableBase, [M.DelegatingIterable, M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin]);
  86805. _inherit(M.DelegatingSet, M.DelegatingIterable);
  86806. _inherit(L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, M.DelegatingSet);
  86807. _inherit(L.UnmodifiableSetView, L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin);
  86808. _inherit(M.MapKeySet, M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin);
  86809. _inherit(B.InternalStyle, O.Style);
  86810. _inheritMany(B.InternalStyle, [E.PosixStyle, F.UrlStyle, L.WindowsStyle]);
  86811. _inheritMany(B.AstNode, [B.CssNode, B.SassNode]);
  86812. _inheritMany(B.CssNode, [B.ModifiableCssNode, B.CssParentNode]);
  86813. _inheritMany(B.ModifiableCssNode, [B.ModifiableCssParentNode, R.ModifiableCssComment, L.ModifiableCssDeclaration, F.ModifiableCssImport]);
  86814. _inheritMany(B.ModifiableCssParentNode, [U.ModifiableCssAtRule, U.ModifiableCssKeyframeBlock, G.ModifiableCssMediaRule, X.ModifiableCssStyleRule, V.ModifiableCssStylesheet, B.ModifiableCssSupportsRule]);
  86815. _inherit(V.CssStylesheet, B.CssParentNode);
  86816. _inheritMany(M.ParentStatement, [V.AtRootRule, U.AtRule, M.CallableDeclaration, L.Declaration, V.EachRule, B.ForRule, G.MediaRule, X.StyleRule, V.Stylesheet, B.SupportsRule, G.WhileRule]);
  86817. _inheritMany(M.CallableDeclaration, [Y.ContentBlock, M.FunctionRule, T.MixinRule]);
  86818. _inherit(N.SupportsCondition, B.SassNode);
  86819. _inheritMany(T.Selector, [M.SimpleSelector, S.ComplexSelector, X.CompoundSelector, D.SelectorList]);
  86820. _inheritMany(M.SimpleSelector, [N.AttributeSelector, X.ClassSelector, N.IDSelector, M.ParentSelector, N.PlaceholderSelector, D.PseudoSelector, F.TypeSelector, N.UniversalSelector]);
  86821. _inherit(D.Callable, B.AsyncCallable);
  86822. _inheritMany(G.SourceSpanException, [E.SassException, G.SourceSpanFormatException, E.SassException0]);
  86823. _inheritMany(E.SassException, [E.MultiSpanSassException, E.SassRuntimeException, E.SassFormatException]);
  86824. _inherit(E.MultiSpanSassRuntimeException, E.MultiSpanSassException);
  86825. _inherit(E.MultiSpanSassScriptException, E.SassScriptException);
  86826. _inherit(A.MergedExtension, S.Extension);
  86827. _inherit(M.Importer, B.AsyncImporter);
  86828. _inherit(F.FilesystemImporter, M.Importer);
  86829. _inheritMany(G.Parser, [V.AtRootQueryParser, V.StylesheetParser, E.KeyframeSelectorParser, F.MediaQueryParser, T.SelectorParser]);
  86830. _inheritMany(V.StylesheetParser, [L.ScssParser, U.SassParser]);
  86831. _inherit(Q.CssParser, L.ScssParser);
  86832. _inheritMany(P.UnmodifiableMapBase, [K.LimitedMapView, F.PrefixedMapView, U.PublicMemberMapView, R.UnprefixedMapView, K.LimitedMapView0, F.PrefixedMapView0, U.PublicMemberMapView0, R.UnprefixedMapView0]);
  86833. _inheritMany(F.Value, [D.SassList, Z.SassBoolean, K.SassColor, F.SassFunction, A.SassMap, O.SassNull, T.SassNumber, D.SassString]);
  86834. _inherit(D.SassArgumentList, D.SassList);
  86835. _inherit(F._FindDependenciesVisitor, D.RecursiveStatementVisitor);
  86836. _inherit(T.SingleMapping, T.Mapping);
  86837. _inherit(Y.FileLocation, D.SourceLocationMixin);
  86838. _inheritMany(Y.SourceSpanMixin, [Y._FileSpan, V.SourceSpanBase]);
  86839. _inherit(X.SourceSpanWithContext, V.SourceSpanBase);
  86840. _inherit(E.StringScannerException, G.SourceSpanFormatException);
  86841. _inheritMany(X.StringScanner, [Z.LineScanner, S.SpanScanner]);
  86842. _inheritMany(F.Value0, [D.SassList0, Z.SassBoolean0, K.SassColor0, F.SassFunction0, A.SassMap0, O.SassNull0, T.SassNumber0, D.SassString0]);
  86843. _inherit(D.SassArgumentList0, D.SassList0);
  86844. _inheritMany(G.Parser1, [V.AtRootQueryParser0, V.StylesheetParser0, E.KeyframeSelectorParser0, F.MediaQueryParser0, T.SelectorParser0]);
  86845. _inheritMany(M.ParentStatement0, [V.AtRootRule0, U.AtRule0, M.CallableDeclaration0, L.Declaration0, V.EachRule0, B.ForRule0, G.MediaRule0, X.StyleRule0, V.Stylesheet0, B.SupportsRule0, G.WhileRule0]);
  86846. _inheritMany(B.AstNode0, [B.CssNode0, B.SassNode0]);
  86847. _inheritMany(B.CssNode0, [B.ModifiableCssNode0, B.CssParentNode0]);
  86848. _inheritMany(B.ModifiableCssNode0, [B.ModifiableCssParentNode0, R.ModifiableCssComment0, L.ModifiableCssDeclaration0, F.ModifiableCssImport0]);
  86849. _inheritMany(B.ModifiableCssParentNode0, [U.ModifiableCssAtRule0, U.ModifiableCssKeyframeBlock0, G.ModifiableCssMediaRule0, X.ModifiableCssStyleRule0, V.ModifiableCssStylesheet0, B.ModifiableCssSupportsRule0]);
  86850. _inheritMany(T.Selector0, [M.SimpleSelector0, S.ComplexSelector0, X.CompoundSelector0, D.SelectorList0]);
  86851. _inheritMany(M.SimpleSelector0, [N.AttributeSelector0, X.ClassSelector0, N.IDSelector0, M.ParentSelector0, N.PlaceholderSelector0, D.PseudoSelector0, F.TypeSelector0, N.UniversalSelector0]);
  86852. _inherit(D.Callable0, B.AsyncCallable0);
  86853. _inheritMany(M.CallableDeclaration0, [Y.ContentBlock0, M.FunctionRule0, T.MixinRule0]);
  86854. _inheritMany(V.StylesheetParser0, [L.ScssParser0, U.SassParser0]);
  86855. _inherit(Q.CssParser0, L.ScssParser0);
  86856. _inheritMany(E.SassException0, [E.MultiSpanSassException0, E.SassRuntimeException0, E.SassFormatException0]);
  86857. _inherit(E.MultiSpanSassRuntimeException0, E.MultiSpanSassException0);
  86858. _inherit(E.MultiSpanSassScriptException0, E.SassScriptException0);
  86859. _inherit(M.Importer0, B.AsyncImporter0);
  86860. _inherit(F.FilesystemImporter0, M.Importer0);
  86861. _inherit(A.MergedExtension0, S.Extension0);
  86862. _inherit(V.CssStylesheet0, B.CssParentNode0);
  86863. _inherit(N.SupportsCondition0, B.SassNode0);
  86864. _mixin(H.UnmodifiableListBase, H.UnmodifiableListMixin);
  86865. _mixin(H.__CastListBase__CastIterableBase_ListMixin, P.ListMixin);
  86866. _mixin(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, P.ListMixin);
  86867. _mixin(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, H.FixedLengthListMixin);
  86868. _mixin(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, P.ListMixin);
  86869. _mixin(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, H.FixedLengthListMixin);
  86870. _mixin(P._AsyncStreamController, P._AsyncStreamControllerDispatch);
  86871. _mixin(P._SyncStreamController, P._SyncStreamControllerDispatch);
  86872. _mixin(P.UnmodifiableMapBase, P._UnmodifiableMapMixin);
  86873. _mixin(P._ListBase_Object_ListMixin, P.ListMixin);
  86874. _mixin(P._UnmodifiableMapView_MapView__UnmodifiableMapMixin, P._UnmodifiableMapMixin);
  86875. _mixin(Q._QueueList_Object_ListMixin, P.ListMixin);
  86876. _mixin(L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, L.UnmodifiableSetMixin);
  86877. _mixin(M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin, L.UnmodifiableSetMixin);
  86878. })();
  86879. var init = {
  86880. typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []},
  86881. mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List"},
  86882. mangledNames: {},
  86883. getTypeFromName: getGlobalFromName,
  86884. metadata: [],
  86885. types: ["Null()", "~()", "Future<Null>*()", "Value0*(List<Value0*>*)", "Value*(List<Value*>*)", "SassNumber0*(List<Value0*>*)", "SassNumber*(List<Value*>*)", "int*()", "Value*()", "String*()", "SassString0*(List<Value0*>*)", "SassString*(List<Value*>*)", "Value0*()", "SassBoolean*(List<Value*>*)", "SassBoolean0*(List<Value0*>*)", "bool*(Object*)", "bool*(int*)", "SassList0*(List<Value0*>*)", "SassColor*(List<Value*>*)", "SassList*(List<Value*>*)", "Future<Value0*>*()", "bool(Object?)", "SassColor0*(List<Value0*>*)", "Future<Value*>*()", "bool*(num*,num*)", "bool*()", "FileSpan*()", "String*(Object*)", "SassMap0*(List<Value0*>*)", "SassMap*(List<Value*>*)", "@(@)", "SelectorList*()", "SelectorList0*()", "List<String*>*()", "int*(num*)", "~(Object*)", "Statement*()", "Statement0*()", "Stylesheet*()", "Frame*()", "~(Object,StackTrace)", "Object*()", "Future<String*>*(@)", "~(Object?)", "Null([Object*])", "Null(List<Value0*>*)", "Callable*()", "Null(List<Value*>*)", "~(~())", "Map<ComplexSelector*,Extension*>*()", "Null(@)", "Null(@,@)", "Map<ComplexSelector0*,Extension0*>*()", "Tuple3<Importer*,Uri*,Uri*>*()", "Callable0*()", "String*(int*)", "AtRootQuery0*()", "AtRootQuery*()", "List<CssMediaQuery*>*()", "List<CssMediaQuery0*>*()", "Null([@])", "AsyncCallable0*()", "SourceFile*()", "AsyncCallable*()", "List<Extender*>*()", "Uri*()", "int(@,@)", "bool*(CssNode*)", "bool(Object?,Object?)", "bool*(CssNode0*)", "Null([@])*()", "Iterable<String*>*()", "Iterable<String*>*(Object*)", "DateTime*()", "SassNull0*(int*)", "bool*(String*)", "@()", "String(int)", "~(@)", "Future<SassNumber0*>*()", "List<Extension0*>*()", "Null(@,StackTrace*)", "Null(Object?,Object?)", "List<Extender0*>*()", "VariableDeclaration*()", "int(Object?)", "SassFunction0*(List<Value0*>*)", "~([Future<~>?])", "List<int*>*(int*)", "SassFunction*(List<Value*>*)", "SassNumber0*()", "Future<@>*()", "Trace*()", "Uri*/*()", "num*(num*)", "Future<SassNumber*>*()", "SassNumber*()", "bool*(@)", "Stylesheet0*()", "List<Extension*>*()", "bool*(ComplexSelector*)", "~(CssMediaQuery*)", "SourceFile*(int*)", "FileSpan*(int*[int*])", "SourceSpanWithContext*()", "String*(String*{color:@})", "@(Object)", "Null(@,StackTrace)", "Future<~>*()", "List<Module0<AsyncCallable0*>*>*(int*)", "~(@[StackTrace*])", "Future<EvaluateResult*>*()", "Uint8List(@,@)", "UseRule*()", "Future<EvaluateResult0*>*()", "ArgumentDeclaration*()", "NumberExpression*()", "Expression*({bracketList:bool*,singleEquals:bool*,until:bool*()*})", "Uint8List(int)", "Statement*({root:bool*})", "CompoundSelector*()", "Object()", "Future<Tuple3<AsyncImporter0*,Uri*,Uri*>*>*()", "Future<Stylesheet0*>*()", "Set<0^>()<Object?>", "Object*(Value0*)", "Set<0^>()<Object?>", "Set<0^>()<Object?>", "StackTrace()", "_Future<@>?()", "List<Module0<Callable0*>*>*(int*)", "bool(@)", "EvaluateResult0*()", "~(@,StackTrace)", "Set<ModifiableCssValue0<SelectorList0*>*>*()", "Future<@>()", "~(Object[StackTrace?])", "Extension0*()", "Tuple3<Importer0*,Uri*,Uri*>*()", "Future<Tuple3<AsyncImporter*,Uri*,Uri*>*>*()", "List<Module<AsyncCallable*>*>*(int*)", "bool*(ComplexSelector0*)", "_Future<@>(@)", "SassNumber0*(int*)", "Null(Object,StackTrace)", "Null(Object*,StackTrace*)", "Null(Object*,Object*)", "~([Object*])", "Null(Object*)", "Object*(@)", "CompoundSelector0*()", "~(CssMediaQuery0*)", "Statement0*({root:bool*})", "~([Object?])", "NumberExpression0*()", "ArgumentDeclaration0*()", "Tuple2<String*,ArgumentDeclaration0*>*()", "EvaluateResult*()", "Extension*()", "Set<ModifiableCssValue<SelectorList*>*>*()", "~(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)", "~(String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map<Object?,Object?>?)", "ArgParser*()", "List<Module<Callable*>*>*(int*)", "String(String)", "0^(0^,0^)<num>", "bool*(SimpleSelector*)", "Future<Stylesheet*>*()", "~(Object*,StackTrace*,EventSink<0^*>*)<Object*>", "List<0^*>*(0^*,List<0^*>*)<Object*>", "bool*(SimpleSelector0*)", "~(RenderOptions*,~(JSError*,RenderResult*)*)", "RenderResult*(RenderOptions*)", "Future<~>*(List<String*>*)", "String*(String*)", "VariableDeclaration0*()", "String*(@)"],
  86886. interceptorsByTag: null,
  86887. leafTags: null,
  86888. arrayRti: typeof Symbol == "function" && typeof Symbol() == "symbol" ? Symbol("$ti") : "$ti"
  86889. };
  86890. H._Universe_addRules(init.typeUniverse, JSON.parse('{"_Exports":"JavaScriptObject","JSError":"JavaScriptObject","Exports":"JavaScriptObject","JSFunction0":"JavaScriptObject","RenderContext":"JavaScriptObject","RenderContextOptions":"JavaScriptObject","RenderOptions":"JavaScriptObject","RenderResult":"JavaScriptObject","RenderResultStats":"JavaScriptObject","Types":"JavaScriptObject","_PropertyDescriptor0":"JavaScriptObject","_FS":"JavaScriptObject","_Stat":"JavaScriptObject","_Date":"JavaScriptObject","_Stderr":"JavaScriptObject","_Stdin":"JavaScriptObject","_SystemError":"JavaScriptObject","_Process":"JavaScriptObject","_FS0":"JavaScriptObject","_Stat0":"JavaScriptObject","_Date0":"JavaScriptObject","_Stderr0":"JavaScriptObject","_Stdin0":"JavaScriptObject","_SystemError0":"JavaScriptObject","_Process0":"JavaScriptObject","FiberClass":"JavaScriptObject","Fiber":"JavaScriptObject","_NodeSassColor":"JavaScriptObject","_NodeSassList":"JavaScriptObject","_NodeSassMap":"JavaScriptObject","_NodeSassNumber":"JavaScriptObject","_NodeSassString":"JavaScriptObject","Chokidar":"JavaScriptObject","ChokidarOptions":"JavaScriptObject","ChokidarWatcher":"JavaScriptObject","Chokidar0":"JavaScriptObject","ChokidarOptions0":"JavaScriptObject","ChokidarWatcher0":"JavaScriptObject","NodeImporterResult0":"JavaScriptObject","Stdin":"JavaScriptObject","Stdout":"JavaScriptObject","ReadlineModule":"JavaScriptObject","ReadlineOptions":"JavaScriptObject","ReadlineInterface":"JavaScriptObject","JSFunction":"JavaScriptObject","NodeImporterResult":"JavaScriptObject","_PropertyDescriptor":"JavaScriptObject","PlainJavaScriptObject":"JavaScriptObject","UnknownJavaScriptObject":"JavaScriptObject","JavaScriptFunction":"JavaScriptObject","JSBool":{"bool":[]},"JSNull":{"Null":[]},"JavaScriptObject":{"Function":[],"_SystemError":[],"_NodeSassColor":[],"JSError":[],"JSFunction0":[],"NodeImporterResult0":[],"_NodeSassList":[],"_NodeSassMap":[],"_SystemError0":[],"_NodeSassNumber":[],"RenderOptions":[],"RenderResult":[],"_NodeSassString":[]},"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"]},"JSDouble":{"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"},"CastQueue":{"Queue":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"LateInitializationErrorImpl":{"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"],"ListIterable.E":"1","Iterable.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"],"ListIterable.E":"2","Iterable.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"],"ListIterable.E":"1","Iterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"UnmodifiableMapView":["1","2"],"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"ConstantProtoMap":{"ConstantStringMap":["1","2"],"ConstantMap":["1","2"],"Map":["1","2"]},"_ConstantMapKeyIterable":{"Iterable":["1"],"Iterable.E":"1"},"Instantiation":{"Function":[]},"Instantiation1":{"Function":[]},"NullError":{"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"NullThrownFromJavaScriptException":{"Exception":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"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"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"NativeFloat32List":{"NativeTypedArrayOfDouble":[],"ListMixin":["double"],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"NativeFloat64List":{"NativeTypedArrayOfDouble":[],"ListMixin":["double"],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"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"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_BroadcastStream":{"_ControllerStream":["1"],"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_BroadcastSubscription":{"_ControllerSubscription":["1"],"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"]},"_BroadcastStreamController":{"EventSink":["1"]},"_SyncBroadcastStreamController":{"_BroadcastStreamController":["1"],"EventSink":["1"]},"_AsyncCompleter":{"_Completer":["1"]},"_Future":{"Future":["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":{"StreamSubscription":["1"]},"_StreamImpl":{"Stream":["1"]},"_DoneStreamSubscription":{"StreamSubscription":["1"]},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"]},"_ExpandStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"AsyncError":{"Error":[]},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"Zone":[]},"_RootZone":{"Zone":[]},"_HashMap":{"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"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_LinkedIdentityHashSet":{"_LinkedHashSet":["1"],"_SetBase":["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"]},"Queue":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"ListQueue":{"ListIterable":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_UnmodifiableSet":{"_SetBase":["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"]},"StringConversionSinkBase":{"StringConversionSink":[]},"StringConversionSinkMixin":{"StringConversionSink":[]},"_StringSinkConversionSink":{"StringConversionSink":[]},"_StringCallbackSink":{"StringConversionSink":[]},"_StringAdapterSink":{"StringConversionSink":[]},"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"]},"AssertionError":{"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":[]},"int":{"num":[],"Comparable":["num"]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"_StringStackTrace":{"StackTrace":[]},"String":{"Comparable":["String"]},"Runes":{"Iterable":["int"],"Iterable.E":"int"},"_Uri":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"ArgParserException":{"FormatException":[],"Exception":[]},"ErrorResult":{"Result":["Null"]},"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*"],"DelegatingSet.E":"1*"},"_DelegatingIterableBase":{"Iterable":["1*"]},"DelegatingIterable":{"Iterable":["1*"]},"DelegatingSet":{"Set":["1*"],"EfficientLengthIterable":["1*"],"Iterable":["1*"],"DelegatingSet.E":"1"},"MapKeySet":{"Set":["1*"],"EfficientLengthIterable":["1*"],"Iterable":["1*"]},"PathException":{"Exception":[]},"PathMap":{"Map":["String*","1*"]},"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":[]},"Expression":{"AstNode":[]},"BinaryOperationExpression":{"Expression":[],"AstNode":[]},"BooleanExpression":{"Expression":[],"AstNode":[]},"ColorExpression":{"Expression":[],"AstNode":[]},"FunctionExpression":{"Expression":[],"AstNode":[]},"IfExpression":{"Expression":[],"AstNode":[]},"ListExpression":{"Expression":[],"AstNode":[]},"MapExpression":{"Expression":[],"AstNode":[]},"NullExpression":{"Expression":[],"AstNode":[]},"NumberExpression":{"Expression":[],"AstNode":[]},"ParenthesizedExpression":{"Expression":[],"AstNode":[]},"SelectorExpression":{"Expression":[],"AstNode":[]},"StringExpression":{"Expression":[],"AstNode":[]},"UnaryOperationExpression":{"Expression":[],"AstNode":[]},"ValueExpression":{"Expression":[],"AstNode":[]},"VariableExpression":{"Expression":[],"AstNode":[]},"Import":{"AstNode":[]},"DynamicImport":{"Import":[],"AstNode":[]},"StaticImport":{"Import":[],"AstNode":[]},"Interpolation":{"AstNode":[]},"SassNode":{"AstNode":[]},"Statement":{"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":[]},"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":[]},"SupportsCondition":{"AstNode":[]},"SupportsDeclaration":{"AstNode":[]},"SupportsInterpolation":{"AstNode":[]},"SupportsNegation":{"AstNode":[]},"SupportsOperation":{"AstNode":[]},"AttributeSelector":{"SimpleSelector":[]},"ClassSelector":{"SimpleSelector":[]},"Combinator":{"ComplexSelectorComponent":[]},"CompoundSelector":{"ComplexSelectorComponent":[]},"IDSelector":{"SimpleSelector":[]},"ParentSelector":{"SimpleSelector":[]},"PlaceholderSelector":{"SimpleSelector":[]},"PseudoSelector":{"SimpleSelector":[]},"TypeSelector":{"SimpleSelector":[]},"UniversalSelector":{"SimpleSelector":[]},"_EnvironmentModule0":{"Module":["AsyncCallable*"]},"Callable":{"AsyncCallable":[]},"AsyncBuiltInCallable":{"AsyncCallable":[]},"BuiltInCallable":{"Callable":[],"AsyncBuiltInCallable":[],"AsyncCallable":[]},"PlainCssCallable":{"Callable":[],"AsyncCallable":[]},"UserDefinedCallable":{"Callable":[],"AsyncCallable":[]},"_EnvironmentModule":{"Module":["Callable*"]},"SassException":{"Exception":[]},"MultiSpanSassException":{"Exception":[]},"SassRuntimeException":{"Exception":[]},"MultiSpanSassRuntimeException":{"SassRuntimeException":[],"Exception":[]},"SassFormatException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"UsageException":{"Exception":[]},"EmptyExtender":{"Extender":[]},"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*"},"NoSourceMapBuffer0":{"StringBuffer":[]},"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*"},"SourceMapBuffer0":{"StringBuffer":[]},"UnprefixedMapView":{"MapMixin":["String*","1*"],"Map":["String*","1*"],"MapMixin.K":"String*","MapMixin.V":"1*"},"_UnprefixedKeys":{"Iterable":["String*"],"Iterable.E":"String*"},"SassArgumentList":{"SassList":[],"Value":[]},"SassBoolean":{"Value":[]},"SassColor":{"Value":[]},"SassFunction":{"Value":[]},"SassList":{"Value":[]},"SassMap":{"Value":[]},"SassNull":{"Value":[]},"SassNumber":{"Value":[]},"SassString":{"Value":[]},"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":[]},"Argument0":{"AstNode0":[]},"ArgumentDeclaration0":{"AstNode0":[]},"ArgumentInvocation0":{"AstNode0":[]},"SassArgumentList0":{"SassList0":[],"Value0":[]},"AsyncBuiltInCallable0":{"AsyncCallable0":[]},"_EnvironmentModule2":{"Module0":["AsyncCallable0*"]},"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*"]},"Callable0":{"AsyncCallable0":[]},"CallableDeclaration0":{"Statement0":[],"AstNode0":[]},"ClassSelector0":{"SimpleSelector0":[]},"ColorExpression0":{"Expression0":[],"AstNode0":[]},"SassColor0":{"Value0":[]},"ModifiableCssComment0":{"ModifiableCssNode0":[],"CssComment0":[],"CssNode0":[],"AstNode0":[]},"Combinator0":{"ComplexSelectorComponent0":[]},"CompoundSelector0":{"ComplexSelectorComponent0":[]},"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":[]},"EmptyExtender0":{"Extender0":[]},"_EnvironmentModule1":{"Module0":["Callable0*"]},"ErrorRule0":{"Statement0":[],"AstNode0":[]},"SassException0":{"Exception":[]},"MultiSpanSassException0":{"Exception":[]},"SassRuntimeException0":{"Exception":[]},"MultiSpanSassRuntimeException0":{"SassRuntimeException0":[],"Exception":[]},"SassFormatException0":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"Expression0":{"AstNode0":[]},"ExtendRule0":{"Statement0":[],"AstNode0":[]},"FilesystemImporter0":{"Importer0":[],"AsyncImporter0":[]},"ForRule0":{"Statement0":[],"AstNode0":[]},"ForwardRule0":{"Statement0":[],"AstNode0":[]},"ForwardedModuleView0":{"Module0":["1*"]},"FunctionExpression0":{"Expression0":[],"AstNode0":[]},"SassFunction0":{"Value0":[]},"FunctionRule0":{"Statement0":[],"AstNode0":[]},"IDSelector0":{"SimpleSelector0":[]},"IfExpression0":{"Expression0":[],"AstNode0":[]},"IfRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssImport0":{"ModifiableCssNode0":[],"CssImport0":[],"CssNode0":[],"AstNode0":[]},"Import0":{"AstNode0":[]},"ImportRule0":{"Statement0":[],"AstNode0":[]},"Importer0":{"AsyncImporter0":[]},"IncludeRule0":{"Statement0":[],"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":[]},"SupportsNegation0":{"AstNode0":[]},"NoSourceMapBuffer":{"StringBuffer":[]},"_FakeAstNode0":{"AstNode0":[]},"CssNode0":{"AstNode0":[]},"CssParentNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssParentNode0":{"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SassNode0":{"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":[]},"SourceMapBuffer":{"StringBuffer":[]},"Statement0":{"AstNode0":[]},"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":[]},"SupportsCondition0":{"AstNode0":[]},"ModifiableCssSupportsRule0":{"ModifiableCssParentNode0":[],"CssSupportsRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SupportsRule0":{"Statement0":[],"AstNode0":[]},"TypeSelector0":{"SimpleSelector0":[]},"UnaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"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":[]}}'));
  86891. H._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,"_SyncStarIterator":1,"_FutureListener":2,"EventSink":1,"StreamTransformerBase":2,"_SyncStreamControllerDispatch":1,"_AsyncStreamControllerDispatch":1,"_AddStreamState":1,"_StreamControllerAddStreamState":1,"_DelayedEvent":1,"_DelayedData":1,"_PendingEvents":1,"_StreamImplEvents":1,"_StreamIterator":1,"_ZoneFunction":1,"_HashMapKeyIterator":1,"_LinkedHashSetIterator":1,"IterableBase":1,"ListBase":1,"MapBase":2,"UnmodifiableMapBase":2,"_MapBaseValueIterator":2,"_UnmodifiableMapMixin":2,"MapView":2,"Queue":1,"_ListQueueIterator":1,"_ListBase_Object_ListMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"ChunkedConversionSink":1,"_StringSinkConversionSink":1,"Iterator":1,"_EventRequest":1,"DefaultEquality":1,"IterableEquality":1,"ListEquality":1,"MapEquality":2,"_QueueList_Object_ListMixin":1,"UnmodifiableSetMixin":1,"_UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin":1,"_DelegatingIterableBase":1,"DelegatingIterable":1,"_MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin":1,"RecursiveStatementVisitor":1}'));
  86892. var string$ = {
  86893. x0a_BUG_: "\n\nBUG: This should include a source span!",
  86894. x0aYou_m: "\nYou may not @extend the same selector from within different media queries.",
  86895. x20in_in: " in interpolation here.\nIt may end up represented as ",
  86896. x20is_as: " is asynchronous.\nThis is probably caused by a bug in a Sass plugin.",
  86897. x20is_av: " is available from multiple global modules.",
  86898. x20is_no: " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.",
  86899. x20must_: " must not be greater than the number of characters in the file, ",
  86900. x20was_a: ' was already loaded, so it can\'t be configured using "with".',
  86901. x20was_n: " was not declared with !default in the @used module.",
  86902. x20was_p: " was passed both by position and by name.",
  86903. x21globa: "!global isn't allowed for variables in other modules.",
  86904. x22x26__ma: '"&" may only used at the beginning of a compound selector.',
  86905. x22x29__If: "\").\nIf you really want to use the color value here, use '",
  86906. x22packa: '"package:" URLs aren\'t supported on this platform.',
  86907. x24css_a: "$css and $module may not both be passed at once.",
  86908. x24list1: "$list1, $list2, $separator: auto, $bracketed: auto",
  86909. x24selec: "$selectors: At least one selector must be passed.",
  86910. x24separ: '$separator: Must be "space", "comma", or "auto".',
  86911. x28__isn: "() isn't in the sass:color module.\n\nRecommendation: color.adjust(",
  86912. x29__Mor: ")\n\nMore info: https://sass-lang.com/documentation/functions/color#",
  86913. x2c_whic: ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "',
  86914. x2ex0aRela: ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n",
  86915. x2ex20Argu: ". Arguments must all have units or all be unitless.",
  86916. x3d_____: "===== asynchronous gap ===========================\n",
  86917. x40_moz_: "@-moz-document is deprecated and support will be removed from Sass in a future\nrelase. For details, see http://bit.ly/moz-document.\n",
  86918. x40conte: "@content is only allowed within mixin declarations.",
  86919. x40elsei: '@elseif is deprecated and will not be supported in future Sass versions.\nUse "@else if" instead.',
  86920. x40exten: "@extend may only be used within style rules.",
  86921. x40forwa: "@forward rules must be written before any other rules.",
  86922. x40functf: "@function function-exists($name, $module: null) {",
  86923. x40functge: "@function get-function($name, $css: false, $module: null) {",
  86924. x40functgl: "@function global-variable-exists($name, $module: null) {",
  86925. x40functi: "@function if($condition, $if-true, $if-false) {",
  86926. x40functm: "@function mixin-exists($name, $module: null) {",
  86927. x40use_r: "@use rules must be written before any other rules.",
  86928. A_list: "A list with more than one element must have an explicit separator.",
  86929. ABCDEF: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
  86930. As_of_C: "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `",
  86931. As_of_S: "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Since this assignment is at the root of the stylesheet,\nthe !global flag is unnecessary and can safely be removed.",
  86932. At_rul: "At-rules may not be used within nested declarations.",
  86933. Broadc: "Broadcast stream controllers do not support pause callbacks",
  86934. Cannoteff: "Cannot extract a file path from a URI with a fragment component",
  86935. Cannotefq: "Cannot extract a file path from a URI with a query component",
  86936. Cannoten: "Cannot extract a non-Windows file path from a file URI with an authority",
  86937. Cannotf: "Cannot fire new event. Controller is already firing an event",
  86938. Could_: 'Could not find an option with short name "-',
  86939. Custom: "Custom functions may not return Dart's null.",
  86940. Declar: "Declarations may only be used within style rules.",
  86941. Either: "Either options.data or options.file must be set.",
  86942. Entrie: "Entries may not be removed from MergedMapView.",
  86943. Evalua: "Evaluation handles @include and its content block together.",
  86944. Expect: "Expected variable, mixin, or function name",
  86945. Functi: "Functions may not be declared in control directives.",
  86946. In_Sas: 'In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.',
  86947. Indent: "Indenting at the beginning of the document is illegal.",
  86948. Interpn: "Interpolation isn't allowed in namespaces.",
  86949. Interpp: "Interpolation isn't allowed in plain CSS.",
  86950. It_s_n: "It's not clear which file to import. Found:\n",
  86951. May_on: "May only contains Strings or Expressions.",
  86952. Media_: "Media rules may not be used within nested declarations.",
  86953. Mixinsb: "Mixins may not be declared in control directives.",
  86954. Mixinscf: "Mixins may not contain function declarations.",
  86955. Mixinscm: "Mixins may not contain mixin declarations.",
  86956. Module: "Module loop: this module is already being loaded.",
  86957. Nested: "Nested declarations aren't allowed in plain CSS.",
  86958. New_en: "New entries may not be added to MergedMapView.",
  86959. NoSour: "NoSourceMapBuffer.buildSourceMap() is not supported.",
  86960. Only_oa: "Only one argument may be passed to the plain-CSS invert() function.",
  86961. Only_op: "Only one positional argument is allowed. All other arguments must be passed by name.",
  86962. Other_: "Other modules' members can't be defined with !global.",
  86963. Passinng: "Passing a number to color.grayscale() is deprecated.\n\nRecommendation: ",
  86964. Passinni: "Passing a number to color.invert() is deprecated.\n\nRecommendation: ",
  86965. Passinno: "Passing a number to color.opacity() is deprecated.\n\nRecommendation: ",
  86966. Passins: "Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(",
  86967. Placeh: "Placeholder selectors aren't allowed here.",
  86968. Plain_: "Plain CSS functions don't support keyword arguments.",
  86969. Positi: "Positional arguments must come before keyword arguments.",
  86970. Privat: "Private members can't be accessed from outside their modules.",
  86971. RGB_pa: "RGB parameters may not be passed along with HSL parameters.",
  86972. Sass_v: "Sass variables aren't allowed in plain CSS.",
  86973. Silent: "Silent comments aren't allowed in plain CSS.",
  86974. Style_: "Style rules may not be used within nested declarations.",
  86975. Suppor: "Supports rules may not be used within nested declarations.",
  86976. The_Ex: "The Extender and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation.",
  86977. The_gi: "The given LineScannerState was not returned by this LineScanner.",
  86978. The_pa: "The parent selector isn't allowed in plain CSS.",
  86979. The_sa: "The same variable may only be configured once.",
  86980. The_ta: 'The target selector was not found.\nUse "@extend ',
  86981. There_: "There's already a module with namespace \"",
  86982. This_d: 'This declaration has no argument named "$',
  86983. This_f: "This function isn't allowed in plain CSS.",
  86984. This_ma: 'This module and the new module both define a variable named "$',
  86985. This_mw: 'This module was already loaded, so it can\'t be configured using "with".',
  86986. This_s: "This selector doesn't have any properties and won't be rendered.",
  86987. This_v: "This variable was not declared with !default in the @used module.",
  86988. Top_le: 'Top-level selectors may not contain the parent selector "&".',
  86989. Using_: "Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: ",
  86990. Variab_: "Variable keyword argument map must have string keys.\n",
  86991. Variabs: "Variable keyword arguments must be a map (was ",
  86992. You_ma: "You may not @extend selectors across media queries.",
  86993. You_pr: "You probably don't mean to use the color value ",
  86994. x60_inst: "` instead.\nSee http://bit.ly/ExtendCompound for details.\n",
  86995. addExt: "addExtensions() can't be called for a const Extender.",
  86996. compou: "compound selectors may no longer be extended.\nConsider `@extend ",
  86997. conten: "content-exists() may only be called within a mixin.",
  86998. must_b: "must be a UniversalSelector or a TypeSelector",
  86999. semico: "semicolons aren't allowed in the indented syntax.",
  87000. warn__: "warn() may only be called within a custom function or importer callback."
  87001. };
  87002. var type$ = (function rtii() {
  87003. var findType = H.findType;
  87004. return {
  87005. $env_1_1_legacy_String: findType("@<String*>"),
  87006. Comparable_dynamic: findType("Comparable<@>"),
  87007. ConstantMapView_Symbol_dynamic: findType("ConstantMapView<Symbol0,@>"),
  87008. CssValue_legacy_List_legacy_String: findType("CssValue<List<String*>*>"),
  87009. CssValue_legacy_List_legacy_String_2: findType("CssValue0<List<String*>*>"),
  87010. CssValue_legacy_String: findType("CssValue<String*>"),
  87011. CssValue_legacy_String_2: findType("CssValue0<String*>"),
  87012. CssValue_legacy_Value: findType("CssValue<Value*>"),
  87013. CssValue_legacy_Value_2: findType("CssValue0<Value0*>"),
  87014. EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"),
  87015. Error: findType("Error"),
  87016. FixedLengthListBuilder_legacy_ModifiableCssNode: findType("FixedLengthListBuilder<ModifiableCssNode*>"),
  87017. FixedLengthListBuilder_legacy_ModifiableCssNode_2: findType("FixedLengthListBuilder0<ModifiableCssNode0*>"),
  87018. Function: findType("Function"),
  87019. Future_dynamic: findType("Future<@>"),
  87020. Future_void: findType("Future<~>"),
  87021. JSArray_String: findType("JSArray<String>"),
  87022. JSArray_dynamic: findType("JSArray<@>"),
  87023. JSArray_int: findType("JSArray<int>"),
  87024. JSArray_legacy_Argument: findType("JSArray<Argument*>"),
  87025. JSArray_legacy_Argument_2: findType("JSArray<Argument0*>"),
  87026. JSArray_legacy_AstNode: findType("JSArray<AstNode*>"),
  87027. JSArray_legacy_AstNode_2: findType("JSArray<AstNode0*>"),
  87028. JSArray_legacy_AsyncBuiltInCallable: findType("JSArray<AsyncBuiltInCallable*>"),
  87029. JSArray_legacy_AsyncBuiltInCallable_2: findType("JSArray<AsyncBuiltInCallable0*>"),
  87030. JSArray_legacy_AsyncCallable: findType("JSArray<AsyncCallable0*>"),
  87031. JSArray_legacy_AsyncCallable_2: findType("JSArray<AsyncCallable*>"),
  87032. JSArray_legacy_AsyncImporter: findType("JSArray<AsyncImporter*>"),
  87033. JSArray_legacy_BinaryOperator: findType("JSArray<BinaryOperator*>"),
  87034. JSArray_legacy_BinaryOperator_2: findType("JSArray<BinaryOperator0*>"),
  87035. JSArray_legacy_BuiltInCallable: findType("JSArray<BuiltInCallable*>"),
  87036. JSArray_legacy_BuiltInCallable_2: findType("JSArray<BuiltInCallable0*>"),
  87037. JSArray_legacy_BuiltInModule_legacy_AsyncBuiltInCallable: findType("JSArray<BuiltInModule<AsyncBuiltInCallable*>*>"),
  87038. JSArray_legacy_BuiltInModule_legacy_AsyncBuiltInCallable_2: findType("JSArray<BuiltInModule0<AsyncBuiltInCallable0*>*>"),
  87039. JSArray_legacy_BuiltInModule_legacy_BuiltInCallable: findType("JSArray<BuiltInModule<BuiltInCallable*>*>"),
  87040. JSArray_legacy_BuiltInModule_legacy_BuiltInCallable_2: findType("JSArray<BuiltInModule0<BuiltInCallable0*>*>"),
  87041. JSArray_legacy_Callable: findType("JSArray<Callable*>"),
  87042. JSArray_legacy_Callable_2: findType("JSArray<Callable0*>"),
  87043. JSArray_legacy_Combinator: findType("JSArray<Combinator*>"),
  87044. JSArray_legacy_Combinator_2: findType("JSArray<Combinator0*>"),
  87045. JSArray_legacy_ComplexSelector: findType("JSArray<ComplexSelector*>"),
  87046. JSArray_legacy_ComplexSelectorComponent: findType("JSArray<ComplexSelectorComponent*>"),
  87047. JSArray_legacy_ComplexSelectorComponent_2: findType("JSArray<ComplexSelectorComponent0*>"),
  87048. JSArray_legacy_ComplexSelector_2: findType("JSArray<ComplexSelector0*>"),
  87049. JSArray_legacy_CompoundSelector: findType("JSArray<CompoundSelector*>"),
  87050. JSArray_legacy_CompoundSelector_2: findType("JSArray<CompoundSelector0*>"),
  87051. JSArray_legacy_ConfiguredVariable: findType("JSArray<ConfiguredVariable*>"),
  87052. JSArray_legacy_ConfiguredVariable_2: findType("JSArray<ConfiguredVariable0*>"),
  87053. JSArray_legacy_CssMediaQuery: findType("JSArray<CssMediaQuery*>"),
  87054. JSArray_legacy_CssMediaQuery_2: findType("JSArray<CssMediaQuery0*>"),
  87055. JSArray_legacy_CssNode: findType("JSArray<CssNode*>"),
  87056. JSArray_legacy_CssNode_2: findType("JSArray<CssNode0*>"),
  87057. JSArray_legacy_Entry: findType("JSArray<Entry*>"),
  87058. JSArray_legacy_Expression: findType("JSArray<Expression*>"),
  87059. JSArray_legacy_Expression_2: findType("JSArray<Expression0*>"),
  87060. JSArray_legacy_Extender: findType("JSArray<Extender*>"),
  87061. JSArray_legacy_Extender_2: findType("JSArray<Extender0*>"),
  87062. JSArray_legacy_Extension: findType("JSArray<Extension*>"),
  87063. JSArray_legacy_Extension_2: findType("JSArray<Extension0*>"),
  87064. JSArray_legacy_ForwardRule: findType("JSArray<ForwardRule*>"),
  87065. JSArray_legacy_ForwardRule_2: findType("JSArray<ForwardRule0*>"),
  87066. JSArray_legacy_Frame: findType("JSArray<Frame*>"),
  87067. JSArray_legacy_IfClause: findType("JSArray<IfClause*>"),
  87068. JSArray_legacy_IfClause_2: findType("JSArray<IfClause0*>"),
  87069. JSArray_legacy_Import: findType("JSArray<Import*>"),
  87070. JSArray_legacy_Import_2: findType("JSArray<Import0*>"),
  87071. JSArray_legacy_Importer: findType("JSArray<Importer*>"),
  87072. JSArray_legacy_Iterable_legacy_ComplexSelectorComponent: findType("JSArray<Iterable<ComplexSelectorComponent*>*>"),
  87073. JSArray_legacy_Iterable_legacy_ComplexSelectorComponent_2: findType("JSArray<Iterable<ComplexSelectorComponent0*>*>"),
  87074. JSArray_legacy_JSFunction: findType("JSArray<JSFunction0*>"),
  87075. JSArray_legacy_List_legacy_ComplexSelectorComponent: findType("JSArray<List<ComplexSelectorComponent*>*>"),
  87076. JSArray_legacy_List_legacy_ComplexSelectorComponent_2: findType("JSArray<List<ComplexSelectorComponent0*>*>"),
  87077. JSArray_legacy_List_legacy_Extension: findType("JSArray<List<Extension*>*>"),
  87078. JSArray_legacy_List_legacy_Extension_2: findType("JSArray<List<Extension0*>*>"),
  87079. JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent: findType("JSArray<List<Iterable<ComplexSelectorComponent*>*>*>"),
  87080. JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2: findType("JSArray<List<Iterable<ComplexSelectorComponent0*>*>*>"),
  87081. JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode: findType("JSArray<Map<String*,AstNode*>*>"),
  87082. JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode_2: findType("JSArray<Map<String*,AstNode0*>*>"),
  87083. JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable: findType("JSArray<Map<String*,AsyncCallable*>*>"),
  87084. JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable_2: findType("JSArray<Map<String*,AsyncCallable0*>*>"),
  87085. JSArray_legacy_Map_of_legacy_String_and_legacy_Callable: findType("JSArray<Map<String*,Callable*>*>"),
  87086. JSArray_legacy_Map_of_legacy_String_and_legacy_Callable_2: findType("JSArray<Map<String*,Callable0*>*>"),
  87087. JSArray_legacy_Map_of_legacy_String_and_legacy_Value: findType("JSArray<Map<String*,Value*>*>"),
  87088. JSArray_legacy_Map_of_legacy_String_and_legacy_Value_2: findType("JSArray<Map<String*,Value0*>*>"),
  87089. JSArray_legacy_ModifiableCssImport: findType("JSArray<ModifiableCssImport*>"),
  87090. JSArray_legacy_ModifiableCssImport_2: findType("JSArray<ModifiableCssImport0*>"),
  87091. JSArray_legacy_ModifiableCssNode: findType("JSArray<ModifiableCssNode*>"),
  87092. JSArray_legacy_ModifiableCssNode_2: findType("JSArray<ModifiableCssNode0*>"),
  87093. JSArray_legacy_ModifiableCssParentNode: findType("JSArray<ModifiableCssParentNode*>"),
  87094. JSArray_legacy_ModifiableCssParentNode_2: findType("JSArray<ModifiableCssParentNode0*>"),
  87095. JSArray_legacy_Module_legacy_AsyncCallable: findType("JSArray<Module<AsyncCallable*>*>"),
  87096. JSArray_legacy_Module_legacy_AsyncCallable_2: findType("JSArray<Module0<AsyncCallable0*>*>"),
  87097. JSArray_legacy_Module_legacy_Callable: findType("JSArray<Module<Callable*>*>"),
  87098. JSArray_legacy_Module_legacy_Callable_2: findType("JSArray<Module0<Callable0*>*>"),
  87099. JSArray_legacy_Object: findType("JSArray<Object*>"),
  87100. JSArray_legacy_PseudoSelector: findType("JSArray<PseudoSelector*>"),
  87101. JSArray_legacy_PseudoSelector_2: findType("JSArray<PseudoSelector0*>"),
  87102. JSArray_legacy_SassList: findType("JSArray<SassList*>"),
  87103. JSArray_legacy_SassList_2: findType("JSArray<SassList0*>"),
  87104. JSArray_legacy_SimpleSelector: findType("JSArray<SimpleSelector*>"),
  87105. JSArray_legacy_SimpleSelector_2: findType("JSArray<SimpleSelector0*>"),
  87106. JSArray_legacy_Statement: findType("JSArray<Statement*>"),
  87107. JSArray_legacy_Statement_2: findType("JSArray<Statement0*>"),
  87108. JSArray_legacy_String: findType("JSArray<String*>"),
  87109. JSArray_legacy_StylesheetNode: findType("JSArray<StylesheetNode*>"),
  87110. JSArray_legacy_TargetEntry: findType("JSArray<TargetEntry*>"),
  87111. JSArray_legacy_TargetLineEntry: findType("JSArray<TargetLineEntry*>"),
  87112. JSArray_legacy_Trace: findType("JSArray<Trace*>"),
  87113. JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value: findType("JSArray<Tuple2<ArgumentDeclaration*,Value*(List<Value*>*)*>*>"),
  87114. JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2: findType("JSArray<Tuple2<ArgumentDeclaration0*,Value0*(List<Value0*>*)*>*>"),
  87115. JSArray_legacy_Tuple2_of_legacy_Expression_and_legacy_Expression: findType("JSArray<Tuple2<Expression*,Expression*>*>"),
  87116. JSArray_legacy_Tuple2_of_legacy_Expression_and_legacy_Expression_2: findType("JSArray<Tuple2<Expression0*,Expression0*>*>"),
  87117. JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode: findType("JSArray<Tuple2<String*,AstNode*>*>"),
  87118. JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode_2: findType("JSArray<Tuple2<String*,AstNode0*>*>"),
  87119. JSArray_legacy_Uri: findType("JSArray<Uri*>"),
  87120. JSArray_legacy_UseRule: findType("JSArray<UseRule*>"),
  87121. JSArray_legacy_UseRule_2: findType("JSArray<UseRule0*>"),
  87122. JSArray_legacy_Value: findType("JSArray<Value*>"),
  87123. JSArray_legacy_Value_2: findType("JSArray<Value0*>"),
  87124. JSArray_legacy__Highlight: findType("JSArray<_Highlight*>"),
  87125. JSArray_legacy__Line: findType("JSArray<_Line*>"),
  87126. JSArray_legacy_bool: findType("JSArray<bool*>"),
  87127. JSArray_legacy_int: findType("JSArray<int*>"),
  87128. JSNull: findType("JSNull"),
  87129. JavaScriptFunction: findType("JavaScriptFunction"),
  87130. JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"),
  87131. JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap<Symbol0,@>"),
  87132. List_dynamic: findType("List<@>"),
  87133. MapKeySet_legacy_Object: findType("MapKeySet<Object*>"),
  87134. MapKeySet_legacy_SimpleSelector: findType("MapKeySet<SimpleSelector*>"),
  87135. MapKeySet_legacy_SimpleSelector_2: findType("MapKeySet<SimpleSelector0*>"),
  87136. MapKeySet_legacy_String: findType("MapKeySet<String*>"),
  87137. Map_dynamic_dynamic: findType("Map<@,@>"),
  87138. MappedIterable_of_String_and_legacy_Frame: findType("MappedIterable<String,Frame*>"),
  87139. MappedListIterable_String_dynamic: findType("MappedListIterable<String,@>"),
  87140. MappedListIterable_of_String_and_legacy_String: findType("MappedListIterable<String,String*>"),
  87141. MappedListIterable_of_String_and_legacy_Trace: findType("MappedListIterable<String,Trace*>"),
  87142. MappedListIterable_of_legacy_Frame_and_legacy_Frame: findType("MappedListIterable<Frame*,Frame*>"),
  87143. MappedListIterable_of_legacy_String_and_legacy_Future_void: findType("MappedListIterable<String*,Future<~>*>"),
  87144. ModifiableCssValue_legacy_SelectorList: findType("ModifiableCssValue<SelectorList*>"),
  87145. ModifiableCssValue_legacy_SelectorList_2: findType("ModifiableCssValue0<SelectorList0*>"),
  87146. NativeTypedArrayOfDouble: findType("NativeTypedArrayOfDouble"),
  87147. NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"),
  87148. NativeUint8List: findType("NativeUint8List"),
  87149. Null: findType("Null"),
  87150. Object: findType("Object"),
  87151. PathMap_legacy_ChangeType: findType("PathMap<ChangeType*>"),
  87152. PathMap_legacy_String: findType("PathMap<String*>"),
  87153. ReversedListIterable_legacy_Combinator: findType("ReversedListIterable<Combinator*>"),
  87154. ReversedListIterable_legacy_Combinator_2: findType("ReversedListIterable<Combinator0*>"),
  87155. ReversedListIterable_legacy_Frame: findType("ReversedListIterable<Frame*>"),
  87156. StreamCompleter_legacy_WatchEvent: findType("StreamCompleter<WatchEvent*>"),
  87157. StreamGroup_legacy_WatchEvent: findType("StreamGroup<WatchEvent*>"),
  87158. StreamQueue_legacy_String: findType("StreamQueue<String*>"),
  87159. String: findType("String"),
  87160. StringBuffer: findType("StringBuffer"),
  87161. StringConversionSink: findType("StringConversionSink"),
  87162. Timer: findType("Timer"),
  87163. Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_FutureOr_legacy_Value_Function_legacy_List_legacy_Value: findType("Tuple2<ArgumentDeclaration*,Value*/*(List<Value*>*)*>"),
  87164. Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_FutureOr_legacy_Value_Function_legacy_List_legacy_Value_2: findType("Tuple2<ArgumentDeclaration0*,Value0*/*(List<Value0*>*)*>"),
  87165. Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value: findType("Tuple2<ArgumentDeclaration*,Value*(List<Value*>*)*>"),
  87166. Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2: findType("Tuple2<ArgumentDeclaration0*,Value0*(List<Value0*>*)*>"),
  87167. Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet: findType("Tuple2<AsyncImporter*,Stylesheet*>"),
  87168. Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2: findType("Tuple2<AsyncImporter0*,Stylesheet0*>"),
  87169. Tuple2_of_legacy_Expression_and_legacy_Expression: findType("Tuple2<Expression*,Expression*>"),
  87170. Tuple2_of_legacy_Expression_and_legacy_Expression_2: findType("Tuple2<Expression0*,Expression0*>"),
  87171. Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList: findType("Tuple2<Extender*,Map<CssValue<SelectorList*>*,ModifiableCssValue<SelectorList*>*>*>"),
  87172. Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList_2: findType("Tuple2<Extender0*,Map<CssValue0<SelectorList0*>*,ModifiableCssValue0<SelectorList0*>*>*>"),
  87173. Tuple2_of_legacy_Importer_and_legacy_Stylesheet: findType("Tuple2<Importer*,Stylesheet*>"),
  87174. Tuple2_of_legacy_Importer_and_legacy_Stylesheet_2: findType("Tuple2<Importer0*,Stylesheet0*>"),
  87175. Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression: findType("Tuple2<List<Expression*>*,Map<String*,Expression*>*>"),
  87176. Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2: findType("Tuple2<List<Expression0*>*,Map<String*,Expression0*>*>"),
  87177. Tuple2_of_legacy_List_legacy_Uri_and_legacy_List_legacy_Uri: findType("Tuple2<List<Uri*>*,List<Uri*>*>"),
  87178. Tuple2_of_legacy_Map_of_legacy_Uri_and_legacy_StylesheetNode_and_legacy_Map_of_legacy_Uri_and_legacy_StylesheetNode: findType("Tuple2<Map<Uri*,StylesheetNode*>*,Map<Uri*,StylesheetNode*>*>"),
  87179. Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender: findType("Tuple2<ModifiableCssStylesheet*,Extender*>"),
  87180. Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender_2: findType("Tuple2<ModifiableCssStylesheet0*,Extender0*>"),
  87181. Tuple2_of_legacy_SassNumber_and_legacy_SassNumber: findType("Tuple2<SassNumber*,SassNumber*>"),
  87182. Tuple2_of_legacy_SassNumber_and_legacy_SassNumber_2: findType("Tuple2<SassNumber0*,SassNumber0*>"),
  87183. Tuple2_of_legacy_Set_legacy_String_and_legacy_Set_legacy_String: findType("Tuple2<Set<String*>*,Set<String*>*>"),
  87184. Tuple2_of_legacy_String_and_legacy_ArgumentDeclaration: findType("Tuple2<String*,ArgumentDeclaration0*>"),
  87185. Tuple2_of_legacy_String_and_legacy_AstNode: findType("Tuple2<String*,AstNode*>"),
  87186. Tuple2_of_legacy_String_and_legacy_AstNode_2: findType("Tuple2<String*,AstNode0*>"),
  87187. Tuple2_of_legacy_String_and_legacy_String: findType("Tuple2<String*,String*>"),
  87188. Tuple2_of_legacy_SupportsCondition_and_legacy_Interpolation: findType("Tuple2<SupportsCondition*,Interpolation*>"),
  87189. Tuple2_of_legacy_SupportsCondition_and_legacy_Interpolation_2: findType("Tuple2<SupportsCondition0*,Interpolation0*>"),
  87190. Tuple2_of_legacy_Uri_and_legacy_bool: findType("Tuple2<Uri*,bool*>"),
  87191. Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri: findType("Tuple3<AsyncImporter*,Uri*,Uri*>"),
  87192. Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2: findType("Tuple3<AsyncImporter0*,Uri*,Uri*>"),
  87193. Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri: findType("Tuple3<Importer*,Uri*,Uri*>"),
  87194. Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2: findType("Tuple3<Importer0*,Uri*,Uri*>"),
  87195. Uint8List: findType("Uint8List"),
  87196. UnknownJavaScriptObject: findType("UnknownJavaScriptObject"),
  87197. UnmodifiableListView_legacy_CssNode: findType("UnmodifiableListView<CssNode*>"),
  87198. UnmodifiableListView_legacy_CssNode_2: findType("UnmodifiableListView<CssNode0*>"),
  87199. UnmodifiableListView_legacy_ForwardRule: findType("UnmodifiableListView<ForwardRule*>"),
  87200. UnmodifiableListView_legacy_ForwardRule_2: findType("UnmodifiableListView<ForwardRule0*>"),
  87201. UnmodifiableListView_legacy_ModifiableCssNode: findType("UnmodifiableListView<ModifiableCssNode*>"),
  87202. UnmodifiableListView_legacy_ModifiableCssNode_2: findType("UnmodifiableListView<ModifiableCssNode0*>"),
  87203. UnmodifiableListView_legacy_String: findType("UnmodifiableListView<String*>"),
  87204. UnmodifiableListView_legacy_UseRule: findType("UnmodifiableListView<UseRule*>"),
  87205. UnmodifiableListView_legacy_UseRule_2: findType("UnmodifiableListView<UseRule0*>"),
  87206. UnmodifiableMapView_of_legacy_String_and_legacy_ArgParser: findType("UnmodifiableMapView<String*,ArgParser*>"),
  87207. UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue: findType("UnmodifiableMapView<String*,ConfiguredValue*>"),
  87208. UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue_2: findType("UnmodifiableMapView<String*,ConfiguredValue0*>"),
  87209. UnmodifiableMapView_of_legacy_String_and_legacy_Option: findType("UnmodifiableMapView<String*,Option*>"),
  87210. UnmodifiableMapView_of_legacy_String_and_legacy_SourceFile: findType("UnmodifiableMapView<String*,SourceFile*>"),
  87211. UnmodifiableMapView_of_legacy_String_and_legacy_String: findType("UnmodifiableMapView<String*,String*>"),
  87212. UnmodifiableMapView_of_legacy_String_and_legacy_Value: findType("UnmodifiableMapView<String*,Value*>"),
  87213. UnmodifiableMapView_of_legacy_String_and_legacy_Value_2: findType("UnmodifiableMapView<String*,Value0*>"),
  87214. UnmodifiableMapView_of_legacy_Uri_and_legacy_StylesheetNode: findType("UnmodifiableMapView<Uri*,StylesheetNode*>"),
  87215. UnmodifiableSetView_legacy_String: findType("UnmodifiableSetView<String*>"),
  87216. UnmodifiableSetView_legacy_StylesheetNode: findType("UnmodifiableSetView<StylesheetNode*>"),
  87217. UnprefixedMapView_legacy_ConfiguredValue: findType("UnprefixedMapView<ConfiguredValue*>"),
  87218. UnprefixedMapView_legacy_ConfiguredValue_2: findType("UnprefixedMapView0<ConfiguredValue0*>"),
  87219. Uri: findType("Uri"),
  87220. UserDefinedCallable_legacy_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment*>"),
  87221. UserDefinedCallable_legacy_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0*>"),
  87222. UserDefinedCallable_legacy_Environment: findType("UserDefinedCallable<Environment*>"),
  87223. UserDefinedCallable_legacy_Environment_2: findType("UserDefinedCallable0<Environment0*>"),
  87224. WhereIterable_String: findType("WhereIterable<String>"),
  87225. WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent: findType("WhereIterable<List<Iterable<ComplexSelectorComponent*>*>*>"),
  87226. WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2: findType("WhereIterable<List<Iterable<ComplexSelectorComponent0*>*>*>"),
  87227. WhereIterable_legacy_String: findType("WhereIterable<String*>"),
  87228. WhereTypeIterable_legacy_PseudoSelector: findType("WhereTypeIterable<PseudoSelector*>"),
  87229. WhereTypeIterable_legacy_PseudoSelector_2: findType("WhereTypeIterable<PseudoSelector0*>"),
  87230. _AsyncCompleter_legacy_Object: findType("_AsyncCompleter<Object*>"),
  87231. _AsyncCompleter_legacy_Stream_legacy_WatchEvent: findType("_AsyncCompleter<Stream<WatchEvent*>*>"),
  87232. _AsyncCompleter_legacy_String: findType("_AsyncCompleter<String*>"),
  87233. _CompleterStream_legacy_WatchEvent: findType("_CompleterStream<WatchEvent*>"),
  87234. _Future_bool: findType("_Future<bool>"),
  87235. _Future_dynamic: findType("_Future<@>"),
  87236. _Future_int: findType("_Future<int>"),
  87237. _Future_legacy_Object: findType("_Future<Object*>"),
  87238. _Future_legacy_Stream_legacy_WatchEvent: findType("_Future<Stream<WatchEvent*>*>"),
  87239. _Future_legacy_String: findType("_Future<String*>"),
  87240. _Future_void: findType("_Future<~>"),
  87241. _LinkedIdentityHashSet_legacy_ComplexSelector: findType("_LinkedIdentityHashSet<ComplexSelector*>"),
  87242. _LinkedIdentityHashSet_legacy_ComplexSelector_2: findType("_LinkedIdentityHashSet<ComplexSelector0*>"),
  87243. _LinkedIdentityHashSet_legacy_Extension: findType("_LinkedIdentityHashSet<Extension*>"),
  87244. _LinkedIdentityHashSet_legacy_Extension_2: findType("_LinkedIdentityHashSet<Extension0*>"),
  87245. bool: findType("bool"),
  87246. double: findType("double"),
  87247. dynamic: findType("@"),
  87248. dynamic_Function_Object: findType("@(Object)"),
  87249. dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"),
  87250. int: findType("int"),
  87251. legacy_ArgParser: findType("ArgParser*"),
  87252. legacy_Argument: findType("Argument*"),
  87253. legacy_ArgumentDeclaration: findType("ArgumentDeclaration*"),
  87254. legacy_ArgumentDeclaration_2: findType("ArgumentDeclaration0*"),
  87255. legacy_Argument_2: findType("Argument0*"),
  87256. legacy_AstNode: findType("AstNode*"),
  87257. legacy_AstNode_2: findType("AstNode0*"),
  87258. legacy_AsyncBuiltInCallable: findType("AsyncBuiltInCallable*"),
  87259. legacy_AsyncBuiltInCallable_2: findType("AsyncBuiltInCallable0*"),
  87260. legacy_AsyncCallable: findType("AsyncCallable*"),
  87261. legacy_AsyncCallable_2: findType("AsyncCallable0*"),
  87262. legacy_BuiltInCallable: findType("BuiltInCallable*"),
  87263. legacy_BuiltInCallable_2: findType("BuiltInCallable0*"),
  87264. legacy_Callable: findType("Callable*"),
  87265. legacy_Callable_2: findType("Callable0*"),
  87266. legacy_ChangeType: findType("ChangeType*"),
  87267. legacy_Combinator: findType("Combinator*"),
  87268. legacy_Combinator_2: findType("Combinator0*"),
  87269. legacy_Comparable_dynamic: findType("Comparable<@>*"),
  87270. legacy_CompileResult: findType("CompileResult*"),
  87271. legacy_CompileResult_2: findType("CompileResult0*"),
  87272. legacy_ComplexSelector: findType("ComplexSelector*"),
  87273. legacy_ComplexSelectorComponent: findType("ComplexSelectorComponent*"),
  87274. legacy_ComplexSelectorComponent_2: findType("ComplexSelectorComponent0*"),
  87275. legacy_ComplexSelector_2: findType("ComplexSelector0*"),
  87276. legacy_CompoundSelector: findType("CompoundSelector*"),
  87277. legacy_CompoundSelector_2: findType("CompoundSelector0*"),
  87278. legacy_Configuration: findType("Configuration*"),
  87279. legacy_Configuration_2: findType("Configuration0*"),
  87280. legacy_ConfiguredValue: findType("ConfiguredValue*"),
  87281. legacy_ConfiguredValue_2: findType("ConfiguredValue0*"),
  87282. legacy_ConfiguredVariable: findType("ConfiguredVariable*"),
  87283. legacy_ConfiguredVariable_2: findType("ConfiguredVariable0*"),
  87284. legacy_CssAtRule: findType("CssAtRule*"),
  87285. legacy_CssAtRule_2: findType("CssAtRule0*"),
  87286. legacy_CssComment: findType("CssComment*"),
  87287. legacy_CssComment_2: findType("CssComment0*"),
  87288. legacy_CssImport: findType("CssImport*"),
  87289. legacy_CssImport_2: findType("CssImport0*"),
  87290. legacy_CssMediaQuery: findType("CssMediaQuery*"),
  87291. legacy_CssMediaQuery_2: findType("CssMediaQuery0*"),
  87292. legacy_CssMediaRule: findType("CssMediaRule*"),
  87293. legacy_CssMediaRule_2: findType("CssMediaRule0*"),
  87294. legacy_CssParentNode: findType("CssParentNode*"),
  87295. legacy_CssParentNode_2: findType("CssParentNode0*"),
  87296. legacy_CssStyleRule: findType("CssStyleRule*"),
  87297. legacy_CssStyleRule_2: findType("CssStyleRule0*"),
  87298. legacy_CssStylesheet: findType("CssStylesheet*"),
  87299. legacy_CssStylesheet_2: findType("CssStylesheet0*"),
  87300. legacy_CssSupportsRule: findType("CssSupportsRule*"),
  87301. legacy_CssSupportsRule_2: findType("CssSupportsRule0*"),
  87302. legacy_CssValue_legacy_SelectorList: findType("CssValue<SelectorList*>*"),
  87303. legacy_CssValue_legacy_SelectorList_2: findType("CssValue0<SelectorList0*>*"),
  87304. legacy_CssValue_legacy_String: findType("CssValue<String*>*"),
  87305. legacy_CssValue_legacy_String_2: findType("CssValue0<String*>*"),
  87306. legacy_DateTime: findType("DateTime*"),
  87307. legacy_EvaluateResult: findType("EvaluateResult*"),
  87308. legacy_EvaluateResult_2: findType("EvaluateResult0*"),
  87309. legacy_Exception: findType("Exception*"),
  87310. legacy_Expression: findType("Expression*"),
  87311. legacy_Expression_2: findType("Expression0*"),
  87312. legacy_Extension: findType("Extension*"),
  87313. legacy_Extension_2: findType("Extension0*"),
  87314. legacy_FileLocation: findType("FileLocation*"),
  87315. legacy_FileSpan: findType("FileSpan*"),
  87316. legacy_FormatException: findType("FormatException*"),
  87317. legacy_Frame: findType("Frame*"),
  87318. legacy_Function: findType("Function*"),
  87319. legacy_FutureOr_legacy_EvaluateResult: findType("EvaluateResult*/*"),
  87320. legacy_FutureOr_legacy_EvaluateResult_2: findType("EvaluateResult0*/*"),
  87321. legacy_Future_void: findType("Future<~>*"),
  87322. legacy_IfClause: findType("IfClause*"),
  87323. legacy_IfClause_2: findType("IfClause0*"),
  87324. legacy_Import: findType("Import*"),
  87325. legacy_Import_2: findType("Import0*"),
  87326. legacy_ImporterResult: findType("ImporterResult0*"),
  87327. legacy_ImporterResult_2: findType("ImporterResult*"),
  87328. legacy_Interpolation: findType("Interpolation*"),
  87329. legacy_InterpolationBuffer: findType("InterpolationBuffer*"),
  87330. legacy_InterpolationBuffer_2: findType("InterpolationBuffer0*"),
  87331. legacy_Interpolation_2: findType("Interpolation0*"),
  87332. legacy_Iterable_legacy_ComplexSelectorComponent: findType("Iterable<ComplexSelectorComponent*>*"),
  87333. legacy_Iterable_legacy_ComplexSelectorComponent_2: findType("Iterable<ComplexSelectorComponent0*>*"),
  87334. legacy_JSError: findType("JSError*"),
  87335. legacy_JSFunction: findType("JSFunction0*"),
  87336. legacy_List_dynamic: findType("List<@>*"),
  87337. legacy_List_legacy_ComplexSelector: findType("List<ComplexSelector*>*"),
  87338. legacy_List_legacy_ComplexSelectorComponent: findType("List<ComplexSelectorComponent*>*"),
  87339. legacy_List_legacy_ComplexSelectorComponent_2: findType("List<ComplexSelectorComponent0*>*"),
  87340. legacy_List_legacy_ComplexSelector_2: findType("List<ComplexSelector0*>*"),
  87341. legacy_List_legacy_CssMediaQuery: findType("List<CssMediaQuery*>*"),
  87342. legacy_List_legacy_CssMediaQuery_2: findType("List<CssMediaQuery0*>*"),
  87343. legacy_List_legacy_Extender: findType("List<Extender*>*"),
  87344. legacy_List_legacy_Extender_2: findType("List<Extender0*>*"),
  87345. legacy_List_legacy_Extension: findType("List<Extension*>*"),
  87346. legacy_List_legacy_Extension_2: findType("List<Extension0*>*"),
  87347. legacy_List_legacy_List_legacy_ComplexSelectorComponent: findType("List<List<ComplexSelectorComponent*>*>*"),
  87348. legacy_List_legacy_List_legacy_ComplexSelectorComponent_2: findType("List<List<ComplexSelectorComponent0*>*>*"),
  87349. legacy_List_legacy_Module_legacy_AsyncCallable: findType("List<Module<AsyncCallable*>*>*"),
  87350. legacy_List_legacy_Module_legacy_AsyncCallable_2: findType("List<Module0<AsyncCallable0*>*>*"),
  87351. legacy_List_legacy_Module_legacy_Callable: findType("List<Module<Callable*>*>*"),
  87352. legacy_List_legacy_Module_legacy_Callable_2: findType("List<Module0<Callable0*>*>*"),
  87353. legacy_List_legacy_Object: findType("List<Object*>*"),
  87354. legacy_List_legacy_String: findType("List<String*>*"),
  87355. legacy_List_legacy_Value: findType("List<Value*>*"),
  87356. legacy_List_legacy_Value_2: findType("List<Value0*>*"),
  87357. legacy_List_legacy_WatchEvent: findType("List<WatchEvent*>*"),
  87358. legacy_List_legacy_int: findType("List<int*>*"),
  87359. legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension: findType("Map<ComplexSelector*,Extension*>*"),
  87360. legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2: findType("Map<ComplexSelector0*,Extension0*>*"),
  87361. legacy_MediaQuerySuccessfulMergeResult: findType("MediaQuerySuccessfulMergeResult*"),
  87362. legacy_MediaQuerySuccessfulMergeResult_2: findType("MediaQuerySuccessfulMergeResult0*"),
  87363. legacy_MixinRule: findType("MixinRule*"),
  87364. legacy_MixinRule_2: findType("MixinRule0*"),
  87365. legacy_ModifiableCssAtRule: findType("ModifiableCssAtRule*"),
  87366. legacy_ModifiableCssAtRule_2: findType("ModifiableCssAtRule0*"),
  87367. legacy_ModifiableCssKeyframeBlock: findType("ModifiableCssKeyframeBlock*"),
  87368. legacy_ModifiableCssKeyframeBlock_2: findType("ModifiableCssKeyframeBlock0*"),
  87369. legacy_ModifiableCssMediaRule: findType("ModifiableCssMediaRule*"),
  87370. legacy_ModifiableCssMediaRule_2: findType("ModifiableCssMediaRule0*"),
  87371. legacy_ModifiableCssParentNode: findType("ModifiableCssParentNode*"),
  87372. legacy_ModifiableCssParentNode_2: findType("ModifiableCssParentNode0*"),
  87373. legacy_ModifiableCssStyleRule: findType("ModifiableCssStyleRule*"),
  87374. legacy_ModifiableCssStyleRule_2: findType("ModifiableCssStyleRule0*"),
  87375. legacy_ModifiableCssSupportsRule: findType("ModifiableCssSupportsRule*"),
  87376. legacy_ModifiableCssSupportsRule_2: findType("ModifiableCssSupportsRule0*"),
  87377. legacy_ModifiableCssValue_legacy_SelectorList: findType("ModifiableCssValue<SelectorList*>*"),
  87378. legacy_ModifiableCssValue_legacy_SelectorList_2: findType("ModifiableCssValue0<SelectorList0*>*"),
  87379. legacy_Module_legacy_AsyncCallable: findType("Module<AsyncCallable*>*"),
  87380. legacy_Module_legacy_AsyncCallable_2: findType("Module0<AsyncCallable0*>*"),
  87381. legacy_Module_legacy_Callable: findType("Module<Callable*>*"),
  87382. legacy_Module_legacy_Callable_2: findType("Module0<Callable0*>*"),
  87383. legacy_Never: findType("0&*"),
  87384. legacy_NodeImporterResult: findType("NodeImporterResult0*"),
  87385. legacy_Object: findType("Object*"),
  87386. legacy_Option: findType("Option*"),
  87387. legacy_ParentSelector: findType("ParentSelector*"),
  87388. legacy_ParentSelector_2: findType("ParentSelector0*"),
  87389. legacy_PseudoSelector: findType("PseudoSelector*"),
  87390. legacy_PseudoSelector_2: findType("PseudoSelector0*"),
  87391. legacy_RangeError: findType("RangeError*"),
  87392. legacy_RenderResult: findType("RenderResult*"),
  87393. legacy_Result_legacy_String: findType("Result<String*>*"),
  87394. legacy_SassArgumentList: findType("SassArgumentList*"),
  87395. legacy_SassArgumentList_2: findType("SassArgumentList0*"),
  87396. legacy_SassBoolean: findType("SassBoolean*"),
  87397. legacy_SassBoolean_2: findType("SassBoolean0*"),
  87398. legacy_SassColor: findType("SassColor*"),
  87399. legacy_SassColor_2: findType("SassColor0*"),
  87400. legacy_SassList: findType("SassList*"),
  87401. legacy_SassList_2: findType("SassList0*"),
  87402. legacy_SassMap: findType("SassMap*"),
  87403. legacy_SassMap_2: findType("SassMap0*"),
  87404. legacy_SassNull: findType("SassNull*"),
  87405. legacy_SassNull_2: findType("SassNull0*"),
  87406. legacy_SassNumber: findType("SassNumber*"),
  87407. legacy_SassNumber_2: findType("SassNumber0*"),
  87408. legacy_SassRuntimeException: findType("SassRuntimeException*"),
  87409. legacy_SassRuntimeException_2: findType("SassRuntimeException0*"),
  87410. legacy_SassString: findType("SassString*"),
  87411. legacy_SassString_2: findType("SassString0*"),
  87412. legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList: findType("Set<ModifiableCssValue<SelectorList*>*>*"),
  87413. legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2: findType("Set<ModifiableCssValue0<SelectorList0*>*>*"),
  87414. legacy_SimpleSelector: findType("SimpleSelector*"),
  87415. legacy_SimpleSelector_2: findType("SimpleSelector0*"),
  87416. legacy_SourceFile: findType("SourceFile*"),
  87417. legacy_SourceLocation: findType("SourceLocation*"),
  87418. legacy_SourceSpan: findType("SourceSpan*"),
  87419. legacy_SourceSpanFormatException: findType("SourceSpanFormatException*"),
  87420. legacy_SourceSpanWithContext: findType("SourceSpanWithContext*"),
  87421. legacy_Statement: findType("Statement*"),
  87422. legacy_Statement_2: findType("Statement0*"),
  87423. legacy_StaticImport: findType("StaticImport*"),
  87424. legacy_StaticImport_2: findType("StaticImport0*"),
  87425. legacy_StreamSubscription_legacy_WatchEvent: findType("StreamSubscription<WatchEvent*>*"),
  87426. legacy_Stream_legacy_WatchEvent: findType("Stream<WatchEvent*>*"),
  87427. legacy_String: findType("String*"),
  87428. legacy_Stylesheet: findType("Stylesheet0*"),
  87429. legacy_StylesheetNode: findType("StylesheetNode*"),
  87430. legacy_Stylesheet_2: findType("Stylesheet*"),
  87431. legacy_Trace: findType("Trace*"),
  87432. legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet: findType("Tuple2<AsyncImporter*,Stylesheet*>*"),
  87433. legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2: findType("Tuple2<AsyncImporter0*,Stylesheet0*>*"),
  87434. legacy_Tuple2_of_legacy_Expression_and_legacy_Expression: findType("Tuple2<Expression*,Expression*>*"),
  87435. legacy_Tuple2_of_legacy_Expression_and_legacy_Expression_2: findType("Tuple2<Expression0*,Expression0*>*"),
  87436. legacy_Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression: findType("Tuple2<List<Expression*>*,Map<String*,Expression*>*>*"),
  87437. legacy_Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2: findType("Tuple2<List<Expression0*>*,Map<String*,Expression0*>*>*"),
  87438. legacy_Tuple2_of_legacy_String_and_legacy_String: findType("Tuple2<String*,String*>*"),
  87439. legacy_Tuple2_of_legacy_Uri_and_legacy_bool: findType("Tuple2<Uri*,bool*>*"),
  87440. legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri: findType("Tuple3<AsyncImporter0*,Uri*,Uri*>*"),
  87441. legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2: findType("Tuple3<AsyncImporter*,Uri*,Uri*>*"),
  87442. legacy_Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri: findType("Tuple3<Importer*,Uri*,Uri*>*"),
  87443. legacy_Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2: findType("Tuple3<Importer0*,Uri*,Uri*>*"),
  87444. legacy_Uri: findType("Uri*"),
  87445. legacy_UseRule: findType("UseRule*"),
  87446. legacy_UserDefinedCallable_legacy_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment*>*"),
  87447. legacy_UserDefinedCallable_legacy_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0*>*"),
  87448. legacy_UserDefinedCallable_legacy_Environment: findType("UserDefinedCallable<Environment*>*"),
  87449. legacy_UserDefinedCallable_legacy_Environment_2: findType("UserDefinedCallable0<Environment0*>*"),
  87450. legacy_Value: findType("Value*"),
  87451. legacy_Value_2: findType("Value0*"),
  87452. legacy_VariableDeclaration: findType("VariableDeclaration*"),
  87453. legacy_VariableDeclaration_2: findType("VariableDeclaration0*"),
  87454. legacy_WatchEvent: findType("WatchEvent*"),
  87455. legacy__ArgumentResults: findType("_ArgumentResults0*"),
  87456. legacy__ArgumentResults_2: findType("_ArgumentResults2*"),
  87457. legacy__EventRequest_dynamic: findType("_EventRequest<@>*"),
  87458. legacy__Highlight: findType("_Highlight*"),
  87459. legacy__MapEntry: findType("_MapEntry*"),
  87460. legacy__SystemError: findType("_SystemError*"),
  87461. legacy__SystemError_2: findType("_SystemError0*"),
  87462. legacy_bool: findType("bool*"),
  87463. legacy_int: findType("int*"),
  87464. legacy_legacy_Object_Function: findType("Object*()*"),
  87465. nullable_Future_Null: findType("Future<Null>?"),
  87466. nullable_Object: findType("Object?"),
  87467. num: findType("num"),
  87468. void: findType("~"),
  87469. void_Function_Object: findType("~(Object)"),
  87470. void_Function_Object_StackTrace: findType("~(Object,StackTrace)")
  87471. };
  87472. })();
  87473. (function constants() {
  87474. var makeConstList = hunkHelpers.makeConstList;
  87475. C.Interceptor_methods = J.Interceptor.prototype;
  87476. C.JSArray_methods = J.JSArray.prototype;
  87477. C.JSBool_methods = J.JSBool.prototype;
  87478. C.JSDouble_methods = J.JSDouble.prototype;
  87479. C.JSInt_methods = J.JSInt.prototype;
  87480. C.JSNull_methods = J.JSNull.prototype;
  87481. C.JSNumber_methods = J.JSNumber.prototype;
  87482. C.JSString_methods = J.JSString.prototype;
  87483. C.JavaScriptFunction_methods = J.JavaScriptFunction.prototype;
  87484. C.NativeUint32List_methods = H.NativeUint32List.prototype;
  87485. C.NativeUint8List_methods = H.NativeUint8List.prototype;
  87486. C.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype;
  87487. C.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype;
  87488. C.AsciiEncoder_127 = new P.AsciiEncoder(127);
  87489. C.C_EmptyUnmodifiableSet1 = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<String*>"));
  87490. C.AtRootQuery_UsS = new V.AtRootQuery(false, C.C_EmptyUnmodifiableSet1, false, true);
  87491. C.AtRootQuery_UsS0 = new V.AtRootQuery0(false, C.C_EmptyUnmodifiableSet1, false, true);
  87492. C.AttributeOperator_4L5 = new N.AttributeOperator("^=");
  87493. C.AttributeOperator_4L50 = new N.AttributeOperator0("^=");
  87494. C.AttributeOperator_AuK = new N.AttributeOperator("|=");
  87495. C.AttributeOperator_AuK0 = new N.AttributeOperator0("|=");
  87496. C.AttributeOperator_fz1 = new N.AttributeOperator("~=");
  87497. C.AttributeOperator_fz10 = new N.AttributeOperator0("~=");
  87498. C.AttributeOperator_gqZ = new N.AttributeOperator("*=");
  87499. C.AttributeOperator_gqZ0 = new N.AttributeOperator0("*=");
  87500. C.AttributeOperator_mOX = new N.AttributeOperator("$=");
  87501. C.AttributeOperator_mOX0 = new N.AttributeOperator0("$=");
  87502. C.AttributeOperator_sEs = new N.AttributeOperator("=");
  87503. C.AttributeOperator_sEs0 = new N.AttributeOperator0("=");
  87504. C.BinaryOperator_1da = new V.BinaryOperator("greater than or equals", ">=", 4);
  87505. C.BinaryOperator_1da0 = new V.BinaryOperator0("greater than or equals", ">=", 4);
  87506. C.BinaryOperator_2ad = new V.BinaryOperator("modulo", "%", 6);
  87507. C.BinaryOperator_2ad0 = new V.BinaryOperator0("modulo", "%", 6);
  87508. C.BinaryOperator_33h = new V.BinaryOperator("less than or equals", "<=", 4);
  87509. C.BinaryOperator_33h0 = new V.BinaryOperator0("less than or equals", "<=", 4);
  87510. C.BinaryOperator_8qt = new V.BinaryOperator("less than", "<", 4);
  87511. C.BinaryOperator_8qt0 = new V.BinaryOperator0("less than", "<", 4);
  87512. C.BinaryOperator_AcR0 = new V.BinaryOperator("greater than", ">", 4);
  87513. C.BinaryOperator_AcR = new V.BinaryOperator("plus", "+", 5);
  87514. C.BinaryOperator_AcR2 = new V.BinaryOperator0("greater than", ">", 4);
  87515. C.BinaryOperator_AcR1 = new V.BinaryOperator0("plus", "+", 5);
  87516. C.BinaryOperator_O1M = new V.BinaryOperator("times", "*", 6);
  87517. C.BinaryOperator_O1M0 = new V.BinaryOperator0("times", "*", 6);
  87518. C.BinaryOperator_RTB = new V.BinaryOperator("divided by", "/", 6);
  87519. C.BinaryOperator_RTB0 = new V.BinaryOperator0("divided by", "/", 6);
  87520. C.BinaryOperator_YlX = new V.BinaryOperator("equals", "==", 3);
  87521. C.BinaryOperator_YlX0 = new V.BinaryOperator0("equals", "==", 3);
  87522. C.BinaryOperator_and_and_2 = new V.BinaryOperator("and", "and", 2);
  87523. C.BinaryOperator_and_and_20 = new V.BinaryOperator0("and", "and", 2);
  87524. C.BinaryOperator_i5H = new V.BinaryOperator("not equals", "!=", 3);
  87525. C.BinaryOperator_i5H0 = new V.BinaryOperator0("not equals", "!=", 3);
  87526. C.BinaryOperator_iyO = new V.BinaryOperator("minus", "-", 5);
  87527. C.BinaryOperator_iyO0 = new V.BinaryOperator0("minus", "-", 5);
  87528. C.BinaryOperator_kjl = new V.BinaryOperator("single equals", "=", 0);
  87529. C.BinaryOperator_kjl0 = new V.BinaryOperator0("single equals", "=", 0);
  87530. C.BinaryOperator_or_or_1 = new V.BinaryOperator("or", "or", 1);
  87531. C.BinaryOperator_or_or_10 = new V.BinaryOperator0("or", "or", 1);
  87532. C.C_AsciiCodec = new P.AsciiCodec();
  87533. C.C_AsciiGlyphSet = new A.AsciiGlyphSet();
  87534. C.C_Base64Encoder = new P.Base64Encoder();
  87535. C.C_Base64Codec = new P.Base64Codec();
  87536. C.C_DefaultEquality = new U.DefaultEquality();
  87537. C.C_EmptyExtender = new T.EmptyExtender();
  87538. C.C_EmptyExtender0 = new T.EmptyExtender0();
  87539. C.C_EmptyIterator = new H.EmptyIterator();
  87540. C.C_EmptyUnmodifiableSet = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<SimpleSelector*>"));
  87541. C.C_EmptyUnmodifiableSet0 = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<SimpleSelector0*>"));
  87542. C.C_IterableEquality = new U.IterableEquality();
  87543. C.C_JS_CONST = function getTagFallback(o) {
  87544. var s = Object.prototype.toString.call(o);
  87545. return s.substring(8, s.length - 1);
  87546. };
  87547. C.C_JS_CONST0 = function() {
  87548. var toStringFunction = Object.prototype.toString;
  87549. function getTag(o) {
  87550. var s = toStringFunction.call(o);
  87551. return s.substring(8, s.length - 1);
  87552. }
  87553. function getUnknownTag(object, tag) {
  87554. if (/^HTML[A-Z].*Element$/.test(tag)) {
  87555. var name = toStringFunction.call(object);
  87556. if (name == "[object Object]") return null;
  87557. return "HTMLElement";
  87558. }
  87559. }
  87560. function getUnknownTagGenericBrowser(object, tag) {
  87561. if (self.HTMLElement && object instanceof HTMLElement) return "HTMLElement";
  87562. return getUnknownTag(object, tag);
  87563. }
  87564. function prototypeForTag(tag) {
  87565. if (typeof window == "undefined") return null;
  87566. if (typeof window[tag] == "undefined") return null;
  87567. var constructor = window[tag];
  87568. if (typeof constructor != "function") return null;
  87569. return constructor.prototype;
  87570. }
  87571. function discriminator(tag) { return null; }
  87572. var isBrowser = typeof navigator == "object";
  87573. return {
  87574. getTag: getTag,
  87575. getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag,
  87576. prototypeForTag: prototypeForTag,
  87577. discriminator: discriminator };
  87578. };
  87579. C.C_JS_CONST6 = function(getTagFallback) {
  87580. return function(hooks) {
  87581. if (typeof navigator != "object") return hooks;
  87582. var ua = navigator.userAgent;
  87583. if (ua.indexOf("DumpRenderTree") >= 0) return hooks;
  87584. if (ua.indexOf("Chrome") >= 0) {
  87585. function confirm(p) {
  87586. return typeof window == "object" && window[p] && window[p].name == p;
  87587. }
  87588. if (confirm("Window") && confirm("HTMLElement")) return hooks;
  87589. }
  87590. hooks.getTag = getTagFallback;
  87591. };
  87592. };
  87593. C.C_JS_CONST1 = function(hooks) {
  87594. if (typeof dartExperimentalFixupGetTag != "function") return hooks;
  87595. hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
  87596. };
  87597. C.C_JS_CONST2 = function(hooks) {
  87598. var getTag = hooks.getTag;
  87599. var prototypeForTag = hooks.prototypeForTag;
  87600. function getTagFixed(o) {
  87601. var tag = getTag(o);
  87602. if (tag == "Document") {
  87603. if (!!o.xmlVersion) return "!Document";
  87604. return "!HTMLDocument";
  87605. }
  87606. return tag;
  87607. }
  87608. function prototypeForTagFixed(tag) {
  87609. if (tag == "Document") return null;
  87610. return prototypeForTag(tag);
  87611. }
  87612. hooks.getTag = getTagFixed;
  87613. hooks.prototypeForTag = prototypeForTagFixed;
  87614. };
  87615. C.C_JS_CONST5 = function(hooks) {
  87616. var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
  87617. if (userAgent.indexOf("Firefox") == -1) return hooks;
  87618. var getTag = hooks.getTag;
  87619. var quickMap = {
  87620. "BeforeUnloadEvent": "Event",
  87621. "DataTransfer": "Clipboard",
  87622. "GeoGeolocation": "Geolocation",
  87623. "Location": "!Location",
  87624. "WorkerMessageEvent": "MessageEvent",
  87625. "XMLDocument": "!Document"};
  87626. function getTagFirefox(o) {
  87627. var tag = getTag(o);
  87628. return quickMap[tag] || tag;
  87629. }
  87630. hooks.getTag = getTagFirefox;
  87631. };
  87632. C.C_JS_CONST4 = function(hooks) {
  87633. var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
  87634. if (userAgent.indexOf("Trident/") == -1) return hooks;
  87635. var getTag = hooks.getTag;
  87636. var quickMap = {
  87637. "BeforeUnloadEvent": "Event",
  87638. "DataTransfer": "Clipboard",
  87639. "HTMLDDElement": "HTMLElement",
  87640. "HTMLDTElement": "HTMLElement",
  87641. "HTMLPhraseElement": "HTMLElement",
  87642. "Position": "Geoposition"
  87643. };
  87644. function getTagIE(o) {
  87645. var tag = getTag(o);
  87646. var newTag = quickMap[tag];
  87647. if (newTag) return newTag;
  87648. if (tag == "Object") {
  87649. if (window.DataView && (o instanceof window.DataView)) return "DataView";
  87650. }
  87651. return tag;
  87652. }
  87653. function prototypeForTagIE(tag) {
  87654. var constructor = window[tag];
  87655. if (constructor == null) return null;
  87656. return constructor.prototype;
  87657. }
  87658. hooks.getTag = getTagIE;
  87659. hooks.prototypeForTag = prototypeForTagIE;
  87660. };
  87661. C.C_JS_CONST3 = function(hooks) { return hooks; }
  87662. ;
  87663. C.C_JsonCodec = new P.JsonCodec();
  87664. C.C_LineFeed = new N.LineFeed();
  87665. C.C_ListEquality = new U.ListEquality();
  87666. C.C_MapEquality = new U.MapEquality();
  87667. C.C_OutOfMemoryError = new P.OutOfMemoryError();
  87668. C.C_SassNull0 = new O.SassNull();
  87669. C.C_SassNull = new O.SassNull0();
  87670. C.C_StderrLogger = new S.StderrLogger0();
  87671. C.C_UnicodeGlyphSet = new K.UnicodeGlyphSet();
  87672. C.C_Utf8Codec = new P.Utf8Codec();
  87673. C.C_Utf8Encoder = new P.Utf8Encoder();
  87674. C.C__DelayedDone = new P._DelayedDone();
  87675. C.C__JSRandom = new P._JSRandom();
  87676. C.C__Required = new H._Required();
  87677. C.C__RootZone = new P._RootZone();
  87678. C.ChangeType_add = new E.ChangeType("add");
  87679. C.ChangeType_modify = new E.ChangeType("modify");
  87680. C.ChangeType_remove = new E.ChangeType("remove");
  87681. C.Combinator_CzM = new S.Combinator("~");
  87682. C.Combinator_CzM0 = new S.Combinator0("~");
  87683. C.Combinator_sgq = new S.Combinator(">");
  87684. C.Combinator_sgq0 = new S.Combinator0(">");
  87685. C.Combinator_uzg = new S.Combinator("+");
  87686. C.Combinator_uzg0 = new S.Combinator0("+");
  87687. C.List_empty = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_String);
  87688. C.Map_empty12 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,ConfiguredValue*>"));
  87689. C.Configuration_Map_empty_null_true = new A.Configuration(C.Map_empty12, null, true);
  87690. C.Map_empty13 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,ConfiguredValue0*>"));
  87691. C.Configuration_Map_empty_null_true0 = new A.Configuration0(C.Map_empty13, null, true);
  87692. C.Duration_0 = new P.Duration(0);
  87693. C.ExtendMode_allTargets = new L.ExtendMode("allTargets");
  87694. C.ExtendMode_allTargets0 = new L.ExtendMode0("allTargets");
  87695. C.ExtendMode_normal = new L.ExtendMode("normal");
  87696. C.ExtendMode_normal0 = new L.ExtendMode0("normal");
  87697. C.ExtendMode_replace = new L.ExtendMode("replace");
  87698. C.ExtendMode_replace0 = new L.ExtendMode0("replace");
  87699. C.JsonEncoder_null = new P.JsonEncoder(null);
  87700. C.LineFeed_D6m = new N.LineFeed0("lf", "\n");
  87701. C.LineFeed_Mss = new N.LineFeed0("crlf", "\r\n");
  87702. C.LineFeed_a1Y = new N.LineFeed0("lfcr", "\n\r");
  87703. C.LineFeed_kMT = new N.LineFeed0("cr", "\r");
  87704. C.ListSeparator_comma = new D.ListSeparator("comma");
  87705. C.ListSeparator_comma0 = new D.ListSeparator0("comma");
  87706. C.ListSeparator_space = new D.ListSeparator("space");
  87707. C.ListSeparator_space0 = new D.ListSeparator0("space");
  87708. C.ListSeparator_undecided = new D.ListSeparator("undecided");
  87709. C.ListSeparator_undecided0 = new D.ListSeparator0("undecided");
  87710. C.List_2Vk = H.setRuntimeTypeInfo(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_legacy_int);
  87711. C.List_CVk = H.setRuntimeTypeInfo(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  87712. C.List_JYB = H.setRuntimeTypeInfo(makeConstList([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]), type$.JSArray_legacy_int);
  87713. C.List_empty9 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Null>"));
  87714. C.List_empty22 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_dynamic);
  87715. C.List_empty8 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Argument);
  87716. C.List_empty20 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Argument_2);
  87717. C.List_empty21 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_AsyncCallable);
  87718. C.List_empty23 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<AsyncImporter0*>"));
  87719. C.List_empty4 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_ComplexSelector);
  87720. C.List_empty15 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_ComplexSelector_2);
  87721. C.List_empty6 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_ConfiguredVariable);
  87722. C.List_empty18 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_ConfiguredVariable_2);
  87723. C.List_empty0 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_CssNode);
  87724. C.List_empty12 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_CssNode_2);
  87725. C.List_empty7 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Expression);
  87726. C.List_empty19 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Expression_2);
  87727. C.List_empty2 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Extension);
  87728. C.List_empty13 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Extension_2);
  87729. C.List_empty10 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Importer);
  87730. C.List_empty17 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Importer0*>"));
  87731. C.List_empty3 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Module<Null>*>"));
  87732. C.List_empty14 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Module0<Null>*>"));
  87733. C.List_empty11 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Statement);
  87734. C.List_empty5 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Value);
  87735. C.List_empty16 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Value_2);
  87736. C.List_empty1 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_int);
  87737. C.List_gRj = H.setRuntimeTypeInfo(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  87738. C.List_nxB = H.setRuntimeTypeInfo(makeConstList([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  87739. C.List_qFt = H.setRuntimeTypeInfo(makeConstList([0, 0, 27858, 1023, 65534, 51199, 65535, 32767]), type$.JSArray_legacy_int);
  87740. C.List_qNA = H.setRuntimeTypeInfo(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  87741. C.List_qg40 = H.setRuntimeTypeInfo(makeConstList([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  87742. C.List_qg4 = H.setRuntimeTypeInfo(makeConstList([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  87743. C.Map_empty1 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,AstNode*>"));
  87744. C.Map_empty7 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,AstNode0*>"));
  87745. C.Map_empty3 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Expression*>"));
  87746. C.Map_empty9 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Expression0*>"));
  87747. C.Map_empty4 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Module<AsyncCallable*>*>"));
  87748. C.Map_empty0 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Module<Callable*>*>"));
  87749. C.Map_empty11 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Module0<AsyncCallable0*>*>"));
  87750. C.Map_empty6 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Module0<Callable0*>*>"));
  87751. C.Map_empty = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,SourceFile*>"));
  87752. C.Map_empty5 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,String*>"));
  87753. C.Map_empty2 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Value*>"));
  87754. C.Map_empty8 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Value0*>"));
  87755. C.List_empty24 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Symbol0*>"));
  87756. C.Map_empty10 = new H.ConstantStringMap(0, {}, C.List_empty24, H.findType("ConstantStringMap<Symbol0*,@>"));
  87757. C.OptionType_YwU = new G.OptionType("OptionType.single");
  87758. C.OptionType_nMZ = new G.OptionType("OptionType.flag");
  87759. C.OptionType_qyr = new G.OptionType("OptionType.multiple");
  87760. C.OutputStyle_compressed = new N.OutputStyle("compressed");
  87761. C.OutputStyle_compressed0 = new N.OutputStyle0("compressed");
  87762. C.OutputStyle_expanded0 = new N.OutputStyle("expanded");
  87763. C.OutputStyle_expanded = new N.OutputStyle0("expanded");
  87764. C.SassBoolean_false0 = new Z.SassBoolean(false);
  87765. C.SassBoolean_false = new Z.SassBoolean0(false);
  87766. C.SassBoolean_true0 = new Z.SassBoolean(true);
  87767. C.SassBoolean_true = new Z.SassBoolean0(true);
  87768. C.SassList_lmy = new D.SassList(C.List_empty5, C.ListSeparator_comma, false);
  87769. C.SassList_lmy0 = new D.SassList0(C.List_empty16, C.ListSeparator_comma0, false);
  87770. C.Map_empty14 = new H.ConstantStringMap(0, {}, C.List_empty5, H.findType("ConstantStringMap<Value*,Value*>"));
  87771. C.SassMap_Map_empty = new A.SassMap(C.Map_empty14);
  87772. C.Map_empty15 = new H.ConstantStringMap(0, {}, C.List_empty16, H.findType("ConstantStringMap<Value0*,Value0*>"));
  87773. C.SassMap_Map_empty0 = new A.SassMap0(C.Map_empty15);
  87774. C.List_empty25 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Module_legacy_AsyncCallable);
  87775. C.Map_empty16 = new H.ConstantStringMap(0, {}, C.List_empty25, H.findType("ConstantStringMap<Module<AsyncCallable*>*,Null>"));
  87776. C.Set_empty0 = new P._UnmodifiableSet(C.Map_empty16, H.findType("_UnmodifiableSet<Module<AsyncCallable*>*>"));
  87777. C.List_empty26 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Module_legacy_Callable);
  87778. C.Map_empty17 = new H.ConstantStringMap(0, {}, C.List_empty26, H.findType("ConstantStringMap<Module<Callable*>*,Null>"));
  87779. C.Set_empty = new P._UnmodifiableSet(C.Map_empty17, H.findType("_UnmodifiableSet<Module<Callable*>*>"));
  87780. C.List_empty27 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Module_legacy_AsyncCallable_2);
  87781. C.Map_empty18 = new H.ConstantStringMap(0, {}, C.List_empty27, H.findType("ConstantStringMap<Module0<AsyncCallable0*>*,Null>"));
  87782. C.Set_empty3 = new P._UnmodifiableSet(C.Map_empty18, H.findType("_UnmodifiableSet<Module0<AsyncCallable0*>*>"));
  87783. C.List_empty28 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Module_legacy_Callable_2);
  87784. C.Map_empty19 = new H.ConstantStringMap(0, {}, C.List_empty28, H.findType("ConstantStringMap<Module0<Callable0*>*,Null>"));
  87785. C.Set_empty2 = new P._UnmodifiableSet(C.Map_empty19, H.findType("_UnmodifiableSet<Module0<Callable0*>*>"));
  87786. C.List_empty29 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_StylesheetNode);
  87787. C.Map_empty20 = new H.ConstantStringMap(0, {}, C.List_empty29, H.findType("ConstantStringMap<StylesheetNode*,Null>"));
  87788. C.Set_empty1 = new P._UnmodifiableSet(C.Map_empty20, H.findType("_UnmodifiableSet<StylesheetNode*>"));
  87789. C.StderrLogger_false = new S.StderrLogger(false);
  87790. C.Symbol__warn = new H.Symbol("_warn");
  87791. C.Symbol_call = new H.Symbol("call");
  87792. C.Syntax_CSS = new M.Syntax("CSS");
  87793. C.Syntax_CSS0 = new M.Syntax0("CSS");
  87794. C.Syntax_SCSS = new M.Syntax("SCSS");
  87795. C.Syntax_SCSS0 = new M.Syntax0("SCSS");
  87796. C.Syntax_Sass = new M.Syntax("Sass");
  87797. C.Syntax_Sass0 = new M.Syntax0("Sass");
  87798. C.List_empty30 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<CssValue<SelectorList*>*>"));
  87799. C.Map_empty21 = new H.ConstantStringMap(0, {}, C.List_empty30, H.findType("ConstantStringMap<CssValue<SelectorList*>*,ModifiableCssValue<SelectorList*>*>"));
  87800. C.Tuple2_EmptyExtender_Map_empty = new S.Tuple2(C.C_EmptyExtender, C.Map_empty21, type$.Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList);
  87801. C.List_empty31 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<CssValue0<SelectorList0*>*>"));
  87802. C.Map_empty22 = new H.ConstantStringMap(0, {}, C.List_empty31, H.findType("ConstantStringMap<CssValue0<SelectorList0*>*,ModifiableCssValue0<SelectorList0*>*>"));
  87803. C.Tuple2_EmptyExtender_Map_empty0 = new S.Tuple2(C.C_EmptyExtender0, C.Map_empty22, type$.Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList_2);
  87804. C.UnaryOperator_U4G = new X.UnaryOperator("minus", "-");
  87805. C.UnaryOperator_U4G0 = new X.UnaryOperator0("minus", "-");
  87806. C.UnaryOperator_j2w = new X.UnaryOperator("plus", "+");
  87807. C.UnaryOperator_j2w0 = new X.UnaryOperator0("plus", "+");
  87808. C.UnaryOperator_not_not = new X.UnaryOperator("not", "not");
  87809. C.UnaryOperator_not_not0 = new X.UnaryOperator0("not", "not");
  87810. C.UnaryOperator_zDx = new X.UnaryOperator("divide", "/");
  87811. C.UnaryOperator_zDx0 = new X.UnaryOperator0("divide", "/");
  87812. C.Utf8Decoder_false = new P.Utf8Decoder(false);
  87813. C._IterationMarker_null_2 = new P._IterationMarker(null, 2);
  87814. C._PathDirection_8Gl = new M._PathDirection("at root");
  87815. C._PathDirection_988 = new M._PathDirection("below root");
  87816. C._PathDirection_FIw = new M._PathDirection("reaches root");
  87817. C._PathDirection_ZGD = new M._PathDirection("above root");
  87818. C._PathRelation_different = new M._PathRelation("different");
  87819. C._PathRelation_equal = new M._PathRelation("equal");
  87820. C._PathRelation_inconclusive = new M._PathRelation("inconclusive");
  87821. C._PathRelation_within = new M._PathRelation("within");
  87822. C._RegisterBinaryZoneFunction_kGu = new P._RegisterBinaryZoneFunction(C.C__RootZone, P.async___rootRegisterBinaryCallback$closure());
  87823. C._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback = new P._RegisterNullaryZoneFunction(C.C__RootZone, P.async___rootRegisterCallback$closure());
  87824. C._RegisterUnaryZoneFunction_Bqo = new P._RegisterUnaryZoneFunction(C.C__RootZone, P.async___rootRegisterUnaryCallback$closure());
  87825. C._RunBinaryZoneFunction__RootZone__rootRunBinary = new P._RunBinaryZoneFunction(C.C__RootZone, P.async___rootRunBinary$closure());
  87826. C._RunNullaryZoneFunction__RootZone__rootRun = new P._RunNullaryZoneFunction(C.C__RootZone, P.async___rootRun$closure());
  87827. C._RunUnaryZoneFunction__RootZone__rootRunUnary = new P._RunUnaryZoneFunction(C.C__RootZone, P.async___rootRunUnary$closure());
  87828. C._SingletonCssMediaQueryMergeResult_empty = new F._SingletonCssMediaQueryMergeResult("empty");
  87829. C._SingletonCssMediaQueryMergeResult_empty0 = new F._SingletonCssMediaQueryMergeResult0("empty");
  87830. C._SingletonCssMediaQueryMergeResult_unrepresentable = new F._SingletonCssMediaQueryMergeResult("unrepresentable");
  87831. C._SingletonCssMediaQueryMergeResult_unrepresentable0 = new F._SingletonCssMediaQueryMergeResult0("unrepresentable");
  87832. C._StreamGroupState_canceled = new L._StreamGroupState("canceled");
  87833. C._StreamGroupState_dormant = new L._StreamGroupState("dormant");
  87834. C._StreamGroupState_listening = new L._StreamGroupState("listening");
  87835. C._StreamGroupState_paused = new L._StreamGroupState("paused");
  87836. C._StringStackTrace_3uE = new P._StringStackTrace("");
  87837. C._ZoneFunction_3bB = new P._ZoneFunction(C.C__RootZone, P.async___rootCreatePeriodicTimer$closure());
  87838. C._ZoneFunction_NMc = new P._ZoneFunction(C.C__RootZone, P.async___rootHandleUncaughtError$closure());
  87839. C._ZoneFunction__RootZone__rootCreateTimer = new P._ZoneFunction(C.C__RootZone, P.async___rootCreateTimer$closure());
  87840. C._ZoneFunction__RootZone__rootErrorCallback = new P._ZoneFunction(C.C__RootZone, P.async___rootErrorCallback$closure());
  87841. C._ZoneFunction__RootZone__rootFork = new P._ZoneFunction(C.C__RootZone, P.async___rootFork$closure());
  87842. C._ZoneFunction__RootZone__rootPrint = new P._ZoneFunction(C.C__RootZone, P.async___rootPrint$closure());
  87843. C._ZoneFunction__RootZone__rootScheduleMicrotask = new P._ZoneFunction(C.C__RootZone, P.async___rootScheduleMicrotask$closure());
  87844. C._ZoneSpecification_ALf = new P._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null);
  87845. })();
  87846. (function staticFields() {
  87847. $._JS_INTEROP_INTERCEPTOR_TAG = null;
  87848. $.printToZone = null;
  87849. $.Closure_functionCounter = 0;
  87850. $.BoundClosure_selfFieldNameCache = null;
  87851. $.BoundClosure_receiverFieldNameCache = null;
  87852. $.getTagFunction = null;
  87853. $.alternateTagFunction = null;
  87854. $.prototypeForTagFunction = null;
  87855. $.dispatchRecordsForInstanceTags = null;
  87856. $.interceptorsForUncacheableTags = null;
  87857. $.initNativeDispatchFlag = null;
  87858. $._nextCallback = null;
  87859. $._lastCallback = null;
  87860. $._lastPriorityCallback = null;
  87861. $._isInCallbackLoop = false;
  87862. $.Zone__current = C.C__RootZone;
  87863. $._RootZone__rootDelegate = null;
  87864. $._toStringVisiting = H.setRuntimeTypeInfo([], H.findType("JSArray<Object>"));
  87865. $._currentUriBase = null;
  87866. $._current = null;
  87867. $._subselectorPseudos = P.LinkedHashSet_LinkedHashSet$_literal(["matches", "any", "nth-child", "nth-last-child"], type$.legacy_String);
  87868. $._features = P.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.legacy_String);
  87869. $._inImportRule = false;
  87870. $._selectorPseudoClasses = P.LinkedHashSet_LinkedHashSet$_literal(["not", "matches", "current", "any", "has", "host", "host-context"], type$.legacy_String);
  87871. $._selectorPseudoElements = P.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.legacy_String);
  87872. $._glyphs = C.C_UnicodeGlyphSet;
  87873. $._subselectorPseudos0 = P.LinkedHashSet_LinkedHashSet$_literal(["matches", "any", "nth-child", "nth-last-child"], type$.legacy_String);
  87874. $._features0 = P.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.legacy_String);
  87875. $._selectorPseudoClasses0 = P.LinkedHashSet_LinkedHashSet$_literal(["not", "matches", "current", "any", "has", "host", "host-context"], type$.legacy_String);
  87876. $._selectorPseudoElements0 = P.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.legacy_String);
  87877. $._inImportRule0 = false;
  87878. })();
  87879. (function lazyInitializers() {
  87880. var _lazy = hunkHelpers.lazy;
  87881. _lazy($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", function() {
  87882. return H.getIsolateAffinityTag("_$dart_dartClosure");
  87883. });
  87884. _lazy($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", function() {
  87885. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({
  87886. toString: function() {
  87887. return "$receiver$";
  87888. }
  87889. }));
  87890. });
  87891. _lazy($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", function() {
  87892. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({$method$: null,
  87893. toString: function() {
  87894. return "$receiver$";
  87895. }
  87896. }));
  87897. });
  87898. _lazy($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", function() {
  87899. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(null));
  87900. });
  87901. _lazy($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", function() {
  87902. return H.TypeErrorDecoder_extractPattern(function() {
  87903. var $argumentsExpr$ = '$arguments$';
  87904. try {
  87905. null.$method$($argumentsExpr$);
  87906. } catch (e) {
  87907. return e.message;
  87908. }
  87909. }());
  87910. });
  87911. _lazy($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", function() {
  87912. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(void 0));
  87913. });
  87914. _lazy($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", function() {
  87915. return H.TypeErrorDecoder_extractPattern(function() {
  87916. var $argumentsExpr$ = '$arguments$';
  87917. try {
  87918. (void 0).$method$($argumentsExpr$);
  87919. } catch (e) {
  87920. return e.message;
  87921. }
  87922. }());
  87923. });
  87924. _lazy($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", function() {
  87925. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(null));
  87926. });
  87927. _lazy($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", function() {
  87928. return H.TypeErrorDecoder_extractPattern(function() {
  87929. try {
  87930. null.$method$;
  87931. } catch (e) {
  87932. return e.message;
  87933. }
  87934. }());
  87935. });
  87936. _lazy($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", function() {
  87937. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(void 0));
  87938. });
  87939. _lazy($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", function() {
  87940. return H.TypeErrorDecoder_extractPattern(function() {
  87941. try {
  87942. (void 0).$method$;
  87943. } catch (e) {
  87944. return e.message;
  87945. }
  87946. }());
  87947. });
  87948. _lazy($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", function() {
  87949. return P._AsyncRun__initializeScheduleImmediate();
  87950. });
  87951. _lazy($, "Future__nullFuture", "$get$Future__nullFuture", function() {
  87952. return P._Future$zoneValue(null, C.C__RootZone, type$.Null);
  87953. });
  87954. _lazy($, "Future__falseFuture", "$get$Future__falseFuture", function() {
  87955. return P._Future$zoneValue(false, C.C__RootZone, type$.bool);
  87956. });
  87957. _lazy($, "_RootZone__rootMap", "$get$_RootZone__rootMap", function() {
  87958. var t1 = type$.dynamic;
  87959. return P.HashMap_HashMap(t1, t1);
  87960. });
  87961. _lazy($, "Utf8Decoder__decoder", "$get$Utf8Decoder__decoder", function() {
  87962. return new P.Utf8Decoder_closure().call$0();
  87963. });
  87964. _lazy($, "Utf8Decoder__decoderNonfatal", "$get$Utf8Decoder__decoderNonfatal", function() {
  87965. return new P.Utf8Decoder_closure0().call$0();
  87966. });
  87967. _lazy($, "_Base64Decoder__inverseAlphabet", "$get$_Base64Decoder__inverseAlphabet", function() {
  87968. return H.NativeInt8List__create1(H._ensureNativeList(H.setRuntimeTypeInfo([-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)));
  87969. });
  87970. _lazy($, "_Uri__isWindowsCached", "$get$_Uri__isWindowsCached", function() {
  87971. return typeof process != "undefined" && Object.prototype.toString.call(process) == "[object process]" && process.platform == "win32";
  87972. });
  87973. _lazy($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", function() {
  87974. return P.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", false);
  87975. });
  87976. _lazy($, "_hasErrorStackProperty", "$get$_hasErrorStackProperty", function() {
  87977. return new Error().stack != void 0;
  87978. });
  87979. _lazy($, "_scannerTables", "$get$_scannerTables", function() {
  87980. return P._createTables();
  87981. });
  87982. _lazy($, "Option__invalidChars", "$get$Option__invalidChars", function() {
  87983. return P.RegExp_RegExp("[ \\t\\r\\n\"'\\\\/]", false);
  87984. });
  87985. _lazy($, "alwaysValid", "$get$alwaysValid", function() {
  87986. return new Q.closure104();
  87987. });
  87988. _lazy($, "readline", "$get$readline", function() {
  87989. return self.readline;
  87990. });
  87991. _lazy($, "windows", "$get$windows", function() {
  87992. return M.Context_Context($.$get$Style_windows());
  87993. });
  87994. _lazy($, "url", "$get$url", function() {
  87995. return M.Context_Context($.$get$Style_url());
  87996. });
  87997. _lazy($, "context", "$get$context", function() {
  87998. return new M.Context($.$get$Style_platform(), null);
  87999. });
  88000. _lazy($, "Style_posix", "$get$Style_posix", function() {
  88001. return new E.PosixStyle(P.RegExp_RegExp("/", false), P.RegExp_RegExp("[^/]$", false), P.RegExp_RegExp("^/", false));
  88002. });
  88003. _lazy($, "Style_windows", "$get$Style_windows", function() {
  88004. return new L.WindowsStyle(P.RegExp_RegExp("[/\\\\]", false), P.RegExp_RegExp("[^/\\\\]$", false), P.RegExp_RegExp("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", false), P.RegExp_RegExp("^[/\\\\](?![/\\\\])", false));
  88005. });
  88006. _lazy($, "Style_url", "$get$Style_url", function() {
  88007. return new F.UrlStyle(P.RegExp_RegExp("/", false), P.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", false), P.RegExp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", false), P.RegExp_RegExp("^/", false));
  88008. });
  88009. _lazy($, "Style_platform", "$get$Style_platform", function() {
  88010. return O.Style__getPlatformStyle();
  88011. });
  88012. _lazy($, "IfExpression_declaration", "$get$IfExpression_declaration", function() {
  88013. return B.ArgumentDeclaration_ArgumentDeclaration$parse(string$.x40functi, null);
  88014. });
  88015. _lazy($, "colorsByName", "$get$colorsByName", function() {
  88016. var _null = null;
  88017. return P.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", K.SassColor$rgb(154, 205, 50, _null, _null), "yellow", K.SassColor$rgb(255, 255, 0, _null, _null), "whitesmoke", K.SassColor$rgb(245, 245, 245, _null, _null), "white", K.SassColor$rgb(255, 255, 255, _null, _null), "wheat", K.SassColor$rgb(245, 222, 179, _null, _null), "violet", K.SassColor$rgb(238, 130, 238, _null, _null), "turquoise", K.SassColor$rgb(64, 224, 208, _null, _null), "transparent", K.SassColor$rgb(0, 0, 0, 0, _null), "tomato", K.SassColor$rgb(255, 99, 71, _null, _null), "thistle", K.SassColor$rgb(216, 191, 216, _null, _null), "teal", K.SassColor$rgb(0, 128, 128, _null, _null), "tan", K.SassColor$rgb(210, 180, 140, _null, _null), "steelblue", K.SassColor$rgb(70, 130, 180, _null, _null), "springgreen", K.SassColor$rgb(0, 255, 127, _null, _null), "snow", K.SassColor$rgb(255, 250, 250, _null, _null), "slategrey", K.SassColor$rgb(112, 128, 144, _null, _null), "slategray", K.SassColor$rgb(112, 128, 144, _null, _null), "slateblue", K.SassColor$rgb(106, 90, 205, _null, _null), "skyblue", K.SassColor$rgb(135, 206, 235, _null, _null), "silver", K.SassColor$rgb(192, 192, 192, _null, _null), "sienna", K.SassColor$rgb(160, 82, 45, _null, _null), "seashell", K.SassColor$rgb(255, 245, 238, _null, _null), "seagreen", K.SassColor$rgb(46, 139, 87, _null, _null), "sandybrown", K.SassColor$rgb(244, 164, 96, _null, _null), "salmon", K.SassColor$rgb(250, 128, 114, _null, _null), "saddlebrown", K.SassColor$rgb(139, 69, 19, _null, _null), "royalblue", K.SassColor$rgb(65, 105, 225, _null, _null), "rosybrown", K.SassColor$rgb(188, 143, 143, _null, _null), "red", K.SassColor$rgb(255, 0, 0, _null, _null), "rebeccapurple", K.SassColor$rgb(102, 51, 153, _null, _null), "purple", K.SassColor$rgb(128, 0, 128, _null, _null), "powderblue", K.SassColor$rgb(176, 224, 230, _null, _null), "plum", K.SassColor$rgb(221, 160, 221, _null, _null), "pink", K.SassColor$rgb(255, 192, 203, _null, _null), "peru", K.SassColor$rgb(205, 133, 63, _null, _null), "peachpuff", K.SassColor$rgb(255, 218, 185, _null, _null), "papayawhip", K.SassColor$rgb(255, 239, 213, _null, _null), "palevioletred", K.SassColor$rgb(219, 112, 147, _null, _null), "paleturquoise", K.SassColor$rgb(175, 238, 238, _null, _null), "palegreen", K.SassColor$rgb(152, 251, 152, _null, _null), "palegoldenrod", K.SassColor$rgb(238, 232, 170, _null, _null), "orchid", K.SassColor$rgb(218, 112, 214, _null, _null), "orangered", K.SassColor$rgb(255, 69, 0, _null, _null), "orange", K.SassColor$rgb(255, 165, 0, _null, _null), "olivedrab", K.SassColor$rgb(107, 142, 35, _null, _null), "olive", K.SassColor$rgb(128, 128, 0, _null, _null), "oldlace", K.SassColor$rgb(253, 245, 230, _null, _null), "navy", K.SassColor$rgb(0, 0, 128, _null, _null), "navajowhite", K.SassColor$rgb(255, 222, 173, _null, _null), "moccasin", K.SassColor$rgb(255, 228, 181, _null, _null), "mistyrose", K.SassColor$rgb(255, 228, 225, _null, _null), "mintcream", K.SassColor$rgb(245, 255, 250, _null, _null), "midnightblue", K.SassColor$rgb(25, 25, 112, _null, _null), "mediumvioletred", K.SassColor$rgb(199, 21, 133, _null, _null), "mediumturquoise", K.SassColor$rgb(72, 209, 204, _null, _null), "mediumspringgreen", K.SassColor$rgb(0, 250, 154, _null, _null), "mediumslateblue", K.SassColor$rgb(123, 104, 238, _null, _null), "mediumseagreen", K.SassColor$rgb(60, 179, 113, _null, _null), "mediumpurple", K.SassColor$rgb(147, 112, 219, _null, _null), "mediumorchid", K.SassColor$rgb(186, 85, 211, _null, _null), "mediumblue", K.SassColor$rgb(0, 0, 205, _null, _null), "mediumaquamarine", K.SassColor$rgb(102, 205, 170, _null, _null), "maroon", K.SassColor$rgb(128, 0, 0, _null, _null), "magenta", K.SassColor$rgb(255, 0, 255, _null, _null), "linen", K.SassColor$rgb(250, 240, 230, _null, _null), "limegreen", K.SassColor$rgb(50, 205, 50, _null, _null), "lime", K.SassColor$rgb(0, 255, 0, _null, _null), "lightyellow", K.SassColor$rgb(255, 255, 224, _null, _null), "lightsteelblue", K.SassColor$rgb(176, 196, 222, _null, _null), "lightslategrey", K.SassColor$rgb(119, 136, 153, _null, _null), "lightslategray", K.SassColor$rgb(119, 136, 153, _null, _null), "lightskyblue", K.SassColor$rgb(135, 206, 250, _null, _null), "lightseagreen", K.SassColor$rgb(32, 178, 170, _null, _null), "lightsalmon", K.SassColor$rgb(255, 160, 122, _null, _null), "lightpink", K.SassColor$rgb(255, 182, 193, _null, _null), "lightgrey", K.SassColor$rgb(211, 211, 211, _null, _null), "lightgreen", K.SassColor$rgb(144, 238, 144, _null, _null), "lightgray", K.SassColor$rgb(211, 211, 211, _null, _null), "lightgoldenrodyellow", K.SassColor$rgb(250, 250, 210, _null, _null), "lightcyan", K.SassColor$rgb(224, 255, 255, _null, _null), "lightcoral", K.SassColor$rgb(240, 128, 128, _null, _null), "lightblue", K.SassColor$rgb(173, 216, 230, _null, _null), "lemonchiffon", K.SassColor$rgb(255, 250, 205, _null, _null), "lawngreen", K.SassColor$rgb(124, 252, 0, _null, _null), "lavenderblush", K.SassColor$rgb(255, 240, 245, _null, _null), "lavender", K.SassColor$rgb(230, 230, 250, _null, _null), "khaki", K.SassColor$rgb(240, 230, 140, _null, _null), "ivory", K.SassColor$rgb(255, 255, 240, _null, _null), "indigo", K.SassColor$rgb(75, 0, 130, _null, _null), "indianred", K.SassColor$rgb(205, 92, 92, _null, _null), "hotpink", K.SassColor$rgb(255, 105, 180, _null, _null), "honeydew", K.SassColor$rgb(240, 255, 240, _null, _null), "grey", K.SassColor$rgb(128, 128, 128, _null, _null), "greenyellow", K.SassColor$rgb(173, 255, 47, _null, _null), "green", K.SassColor$rgb(0, 128, 0, _null, _null), "gray", K.SassColor$rgb(128, 128, 128, _null, _null), "goldenrod", K.SassColor$rgb(218, 165, 32, _null, _null), "gold", K.SassColor$rgb(255, 215, 0, _null, _null), "ghostwhite", K.SassColor$rgb(248, 248, 255, _null, _null), "gainsboro", K.SassColor$rgb(220, 220, 220, _null, _null), "fuchsia", K.SassColor$rgb(255, 0, 255, _null, _null), "forestgreen", K.SassColor$rgb(34, 139, 34, _null, _null), "floralwhite", K.SassColor$rgb(255, 250, 240, _null, _null), "firebrick", K.SassColor$rgb(178, 34, 34, _null, _null), "dodgerblue", K.SassColor$rgb(30, 144, 255, _null, _null), "dimgrey", K.SassColor$rgb(105, 105, 105, _null, _null), "dimgray", K.SassColor$rgb(105, 105, 105, _null, _null), "deepskyblue", K.SassColor$rgb(0, 191, 255, _null, _null), "deeppink", K.SassColor$rgb(255, 20, 147, _null, _null), "darkviolet", K.SassColor$rgb(148, 0, 211, _null, _null), "darkturquoise", K.SassColor$rgb(0, 206, 209, _null, _null), "darkslategrey", K.SassColor$rgb(47, 79, 79, _null, _null), "darkslategray", K.SassColor$rgb(47, 79, 79, _null, _null), "darkslateblue", K.SassColor$rgb(72, 61, 139, _null, _null), "darkseagreen", K.SassColor$rgb(143, 188, 143, _null, _null), "darksalmon", K.SassColor$rgb(233, 150, 122, _null, _null), "darkred", K.SassColor$rgb(139, 0, 0, _null, _null), "darkorchid", K.SassColor$rgb(153, 50, 204, _null, _null), "darkorange", K.SassColor$rgb(255, 140, 0, _null, _null), "darkolivegreen", K.SassColor$rgb(85, 107, 47, _null, _null), "darkmagenta", K.SassColor$rgb(139, 0, 139, _null, _null), "darkkhaki", K.SassColor$rgb(189, 183, 107, _null, _null), "darkgrey", K.SassColor$rgb(169, 169, 169, _null, _null), "darkgreen", K.SassColor$rgb(0, 100, 0, _null, _null), "darkgray", K.SassColor$rgb(169, 169, 169, _null, _null), "darkgoldenrod", K.SassColor$rgb(184, 134, 11, _null, _null), "darkcyan", K.SassColor$rgb(0, 139, 139, _null, _null), "darkblue", K.SassColor$rgb(0, 0, 139, _null, _null), "cyan", K.SassColor$rgb(0, 255, 255, _null, _null), "crimson", K.SassColor$rgb(220, 20, 60, _null, _null), "cornsilk", K.SassColor$rgb(255, 248, 220, _null, _null), "cornflowerblue", K.SassColor$rgb(100, 149, 237, _null, _null), "coral", K.SassColor$rgb(255, 127, 80, _null, _null), "chocolate", K.SassColor$rgb(210, 105, 30, _null, _null), "chartreuse", K.SassColor$rgb(127, 255, 0, _null, _null), "cadetblue", K.SassColor$rgb(95, 158, 160, _null, _null), "burlywood", K.SassColor$rgb(222, 184, 135, _null, _null), "brown", K.SassColor$rgb(165, 42, 42, _null, _null), "blueviolet", K.SassColor$rgb(138, 43, 226, _null, _null), "blue", K.SassColor$rgb(0, 0, 255, _null, _null), "blanchedalmond", K.SassColor$rgb(255, 235, 205, _null, _null), "black", K.SassColor$rgb(0, 0, 0, _null, _null), "bisque", K.SassColor$rgb(255, 228, 196, _null, _null), "beige", K.SassColor$rgb(245, 245, 220, _null, _null), "azure", K.SassColor$rgb(240, 255, 255, _null, _null), "aquamarine", K.SassColor$rgb(127, 255, 212, _null, _null), "aqua", K.SassColor$rgb(0, 255, 255, _null, _null), "antiquewhite", K.SassColor$rgb(250, 235, 215, _null, _null), "aliceblue", K.SassColor$rgb(240, 248, 255, _null, _null)], type$.legacy_String, type$.legacy_SassColor);
  88018. });
  88019. _lazy($, "namesByColor", "$get$namesByColor", function() {
  88020. var t2, t3,
  88021. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SassColor, type$.legacy_String);
  88022. for (t2 = $.$get$colorsByName().get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  88023. t3 = t2.get$current(t2);
  88024. t1.$indexSet(0, t3.value, t3.key);
  88025. }
  88026. return t1;
  88027. });
  88028. _lazy($, "ExecutableOptions__separatorBar", "$get$ExecutableOptions__separatorBar", function() {
  88029. return B.isWindows() ? "=" : "\u2501";
  88030. });
  88031. _lazy($, "ExecutableOptions__parser", "$get$ExecutableOptions__parser", function() {
  88032. return new B.ExecutableOptions_closure().call$0();
  88033. });
  88034. _lazy($, "globalFunctions", "$get$globalFunctions", function() {
  88035. var t2,
  88036. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInCallable);
  88037. for (t2 = $.$get$global0(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88038. t1.push(t2.get$current(t2));
  88039. for (t2 = $.$get$global1(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88040. t1.push(t2.get$current(t2));
  88041. for (t2 = $.$get$global2(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88042. t1.push(t2.get$current(t2));
  88043. for (t2 = $.$get$global3(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88044. t1.push(t2.get$current(t2));
  88045. for (t2 = $.$get$global4(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88046. t1.push(t2.get$current(t2));
  88047. for (t2 = $.$get$global5(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88048. t1.push(t2.get$current(t2));
  88049. for (t2 = $.$get$global(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88050. t1.push(t2.get$current(t2));
  88051. t1.push(Q.BuiltInCallable$function("if", "$condition, $if-true, $if-false", new Y.closure(), null));
  88052. return P.UnmodifiableListView$(t1, type$.legacy_BuiltInCallable);
  88053. });
  88054. _lazy($, "coreModules", "$get$coreModules", function() {
  88055. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$module(), $.$get$module0(), $.$get$module1(), $.$get$module2(), $.$get$module3(), $.$get$module4()], type$.JSArray_legacy_BuiltInModule_legacy_BuiltInCallable), H.findType("BuiltInModule<BuiltInCallable*>*"));
  88056. });
  88057. _lazy($, "_microsoftFilterStart", "$get$_microsoftFilterStart", function() {
  88058. return P.RegExp_RegExp("^[a-zA-Z]+\\s*=", false);
  88059. });
  88060. _lazy($, "global", "$get$global0", function() {
  88061. var _s27_ = "$red, $green, $blue, $alpha",
  88062. _s19_ = "$red, $green, $blue",
  88063. _s37_ = "$hue, $saturation, $lightness, $alpha",
  88064. _s29_ = "$hue, $saturation, $lightness",
  88065. _s17_ = "$hue, $saturation",
  88066. _s15_ = "$color, $amount",
  88067. t1 = type$.legacy_String,
  88068. t2 = H.findType("Value*(List<Value*>*)*");
  88069. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), Q.BuiltInCallable$overloadedFunction("rgb", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure43(), _s19_, new K.closure44(), "$color, $alpha", new K.closure45(), "$channels", new K.closure46()], t1, t2)), Q.BuiltInCallable$overloadedFunction("rgba", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure47(), _s19_, new K.closure48(), "$color, $alpha", new K.closure49(), "$channels", new K.closure50()], t1, t2)), K._function4("invert", "$color, $weight: 100%", new K.closure51()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), Q.BuiltInCallable$overloadedFunction("hsl", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure52(), _s29_, new K.closure53(), _s17_, new K.closure54(), "$channels", new K.closure55()], t1, t2)), Q.BuiltInCallable$overloadedFunction("hsla", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure56(), _s29_, new K.closure57(), _s17_, new K.closure58(), "$channels", new K.closure59()], t1, t2)), K._function4("grayscale", "$color", new K.closure60()), K._function4("adjust-hue", "$color, $degrees", new K.closure61()), K._function4("lighten", _s15_, new K.closure62()), K._function4("darken", _s15_, new K.closure63()), Q.BuiltInCallable$overloadedFunction("saturate", P.LinkedHashMap_LinkedHashMap$_literal(["$amount", new K.closure64(), "$color, $amount", new K.closure65()], t1, t2)), K._function4("desaturate", _s15_, new K.closure66()), K._function4("opacify", _s15_, K.color___opacify$closure()), K._function4("fade-in", _s15_, K.color___opacify$closure()), K._function4("transparentize", _s15_, K.color___transparentize$closure()), K._function4("fade-out", _s15_, K.color___transparentize$closure()), Q.BuiltInCallable$overloadedFunction("alpha", P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure67(), "$args...", new K.closure68()], t1, t2)), K._function4("opacity", "$color", new K.closure69()), $.$get$_ieHexStr(), $.$get$_adjust().withName$1("adjust-color"), $.$get$_scale().withName$1("scale-color"), $.$get$_change().withName$1("change-color")], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  88070. });
  88071. _lazy($, "module", "$get$module", function() {
  88072. var _s9_ = "lightness",
  88073. _s10_ = "saturation",
  88074. _s5_ = "alpha";
  88075. return Q.BuiltInModule$("color", H.setRuntimeTypeInfo([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), K._function4("invert", "$color, $weight: 100%", new K.closure94()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), K._removedColorFunction("adjust-hue", "hue", false), K._removedColorFunction("lighten", _s9_, false), K._removedColorFunction("darken", _s9_, true), K._removedColorFunction("saturate", _s10_, false), K._removedColorFunction("desaturate", _s10_, true), K._function4("grayscale", "$color", new K.closure95()), K._removedColorFunction("opacify", _s5_, false), K._removedColorFunction("fade-in", _s5_, false), K._removedColorFunction("transparentize", _s5_, true), K._removedColorFunction("fade-out", _s5_, true), Q.BuiltInCallable$overloadedFunction(_s5_, P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure96(), "$args...", new K.closure97()], type$.legacy_String, H.findType("Value*(List<Value*>*)*"))), K._function4("opacity", "$color", new K.closure98()), $.$get$_adjust(), $.$get$_scale(), $.$get$_change(), $.$get$_ieHexStr()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  88076. });
  88077. _lazy($, "_red", "$get$_red", function() {
  88078. return K._function4("red", "$color", new K.closure81());
  88079. });
  88080. _lazy($, "_green", "$get$_green", function() {
  88081. return K._function4("green", "$color", new K.closure80());
  88082. });
  88083. _lazy($, "_blue", "$get$_blue", function() {
  88084. return K._function4("blue", "$color", new K.closure79());
  88085. });
  88086. _lazy($, "_mix", "$get$_mix", function() {
  88087. return K._function4("mix", "$color1, $color2, $weight: 50%", new K.closure78());
  88088. });
  88089. _lazy($, "_hue", "$get$_hue", function() {
  88090. return K._function4("hue", "$color", new K.closure77());
  88091. });
  88092. _lazy($, "_saturation", "$get$_saturation", function() {
  88093. return K._function4("saturation", "$color", new K.closure76());
  88094. });
  88095. _lazy($, "_lightness", "$get$_lightness", function() {
  88096. return K._function4("lightness", "$color", new K.closure75());
  88097. });
  88098. _lazy($, "_complement", "$get$_complement", function() {
  88099. return K._function4("complement", "$color", new K.closure74());
  88100. });
  88101. _lazy($, "_adjust", "$get$_adjust", function() {
  88102. return K._function4("adjust", "$color, $kwargs...", new K.closure72());
  88103. });
  88104. _lazy($, "_scale", "$get$_scale", function() {
  88105. return K._function4("scale", "$color, $kwargs...", new K.closure71());
  88106. });
  88107. _lazy($, "_change", "$get$_change", function() {
  88108. return K._function4("change", "$color, $kwargs...", new K.closure70());
  88109. });
  88110. _lazy($, "_ieHexStr", "$get$_ieHexStr", function() {
  88111. return K._function4("ie-hex-str", "$color", new K.closure73());
  88112. });
  88113. _lazy($, "global0", "$get$global1", function() {
  88114. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator().withName$1("list-separator")], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  88115. });
  88116. _lazy($, "module0", "$get$module0", function() {
  88117. return Q.BuiltInModule$("list", H.setRuntimeTypeInfo([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  88118. });
  88119. _lazy($, "_length", "$get$_length0", function() {
  88120. return D._function3("length", "$list", new D.closure42());
  88121. });
  88122. _lazy($, "_nth", "$get$_nth", function() {
  88123. return D._function3("nth", "$list, $n", new D.closure41());
  88124. });
  88125. _lazy($, "_setNth", "$get$_setNth", function() {
  88126. return D._function3("set-nth", "$list, $n, $value", new D.closure40());
  88127. });
  88128. _lazy($, "_join", "$get$_join", function() {
  88129. return D._function3("join", string$.x24list1, new D.closure39());
  88130. });
  88131. _lazy($, "_append", "$get$_append0", function() {
  88132. return D._function3("append", "$list, $val, $separator: auto", new D.closure38());
  88133. });
  88134. _lazy($, "_zip", "$get$_zip", function() {
  88135. return D._function3("zip", "$lists...", new D.closure37());
  88136. });
  88137. _lazy($, "_index", "$get$_index0", function() {
  88138. return D._function3("index", "$list, $value", new D.closure36());
  88139. });
  88140. _lazy($, "_separator", "$get$_separator", function() {
  88141. return D._function3("separator", "$list", new D.closure34());
  88142. });
  88143. _lazy($, "_isBracketed", "$get$_isBracketed", function() {
  88144. return D._function3("is-bracketed", "$list", new D.closure35());
  88145. });
  88146. _lazy($, "global1", "$get$global2", function() {
  88147. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$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_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  88148. });
  88149. _lazy($, "module1", "$get$module1", function() {
  88150. return Q.BuiltInModule$("map", H.setRuntimeTypeInfo([$.$get$_get(), $.$get$_merge(), $.$get$_remove(), $.$get$_keys(), $.$get$_values(), $.$get$_hasKey()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  88151. });
  88152. _lazy($, "_get", "$get$_get", function() {
  88153. return A._function2("get", "$map, $key", new A.closure33());
  88154. });
  88155. _lazy($, "_merge", "$get$_merge", function() {
  88156. return A._function2("merge", "$map1, $map2", new A.closure32());
  88157. });
  88158. _lazy($, "_remove", "$get$_remove", function() {
  88159. return Q.BuiltInCallable$overloadedFunction("remove", P.LinkedHashMap_LinkedHashMap$_literal(["$map", new A.closure30(), "$map, $key, $keys...", new A.closure31()], type$.legacy_String, H.findType("Value*(List<Value*>*)*")));
  88160. });
  88161. _lazy($, "_keys", "$get$_keys", function() {
  88162. return A._function2("keys", "$map", new A.closure29());
  88163. });
  88164. _lazy($, "_values", "$get$_values", function() {
  88165. return A._function2("values", "$map", new A.closure28());
  88166. });
  88167. _lazy($, "_hasKey", "$get$_hasKey", function() {
  88168. return A._function2("has-key", "$map, $key", new A.closure27());
  88169. });
  88170. _lazy($, "global2", "$get$global3", function() {
  88171. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$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_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  88172. });
  88173. _lazy($, "module2", "$get$module2", function() {
  88174. return Q.BuiltInModule$("math", H.setRuntimeTypeInfo([$.$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()], type$.JSArray_legacy_BuiltInCallable), null, P.LinkedHashMap_LinkedHashMap$_literal(["e", T.SassNumber$(2.718281828459045, null), "pi", T.SassNumber$(3.141592653589793, null)], type$.legacy_String, type$.legacy_Value), type$.legacy_BuiltInCallable);
  88175. });
  88176. _lazy($, "_ceil", "$get$_ceil", function() {
  88177. return K._numberFunction("ceil", new K.closure25());
  88178. });
  88179. _lazy($, "_clamp", "$get$_clamp", function() {
  88180. return K._function1("clamp", "$min, $number, $max", new K.closure89());
  88181. });
  88182. _lazy($, "_floor", "$get$_floor", function() {
  88183. return K._numberFunction("floor", new K.closure24());
  88184. });
  88185. _lazy($, "_max", "$get$_max", function() {
  88186. return K._function1("max", "$numbers...", new K.closure23());
  88187. });
  88188. _lazy($, "_min", "$get$_min", function() {
  88189. return K._function1("min", "$numbers...", new K.closure22());
  88190. });
  88191. _lazy($, "_round", "$get$_round", function() {
  88192. return K._numberFunction("round", T.number0__fuzzyRound$closure());
  88193. });
  88194. _lazy($, "_abs", "$get$_abs", function() {
  88195. return K._numberFunction("abs", new K.closure26());
  88196. });
  88197. _lazy($, "_hypot", "$get$_hypot", function() {
  88198. return K._function1("hypot", "$numbers...", new K.closure87());
  88199. });
  88200. _lazy($, "_log", "$get$_log", function() {
  88201. return K._function1("log", "$number, $base: null", new K.closure86());
  88202. });
  88203. _lazy($, "_pow", "$get$_pow", function() {
  88204. return K._function1("pow", "$base, $exponent", new K.closure85());
  88205. });
  88206. _lazy($, "_sqrt", "$get$_sqrt", function() {
  88207. return K._function1("sqrt", "$number", new K.closure83());
  88208. });
  88209. _lazy($, "_acos", "$get$_acos", function() {
  88210. return K._function1("acos", "$number", new K.closure93());
  88211. });
  88212. _lazy($, "_asin", "$get$_asin", function() {
  88213. return K._function1("asin", "$number", new K.closure92());
  88214. });
  88215. _lazy($, "_atan", "$get$_atan", function() {
  88216. return K._function1("atan", "$number", new K.closure91());
  88217. });
  88218. _lazy($, "_atan2", "$get$_atan2", function() {
  88219. return K._function1("atan2", "$y, $x", new K.closure90());
  88220. });
  88221. _lazy($, "_cos", "$get$_cos", function() {
  88222. return K._function1("cos", "$number", new K.closure88());
  88223. });
  88224. _lazy($, "_sin", "$get$_sin", function() {
  88225. return K._function1("sin", "$number", new K.closure84());
  88226. });
  88227. _lazy($, "_tan", "$get$_tan", function() {
  88228. return K._function1("tan", "$number", new K.closure82());
  88229. });
  88230. _lazy($, "_compatible", "$get$_compatible", function() {
  88231. return K._function1("compatible", "$number1, $number2", new K.closure18());
  88232. });
  88233. _lazy($, "_isUnitless", "$get$_isUnitless", function() {
  88234. return K._function1("is-unitless", "$number", new K.closure17());
  88235. });
  88236. _lazy($, "_unit", "$get$_unit", function() {
  88237. return K._function1("unit", "$number", new K.closure19());
  88238. });
  88239. _lazy($, "_percentage", "$get$_percentage", function() {
  88240. return K._function1("percentage", "$number", new K.closure21());
  88241. });
  88242. _lazy($, "_random", "$get$_random0", function() {
  88243. return P.Random_Random();
  88244. });
  88245. _lazy($, "_randomFunction", "$get$_randomFunction", function() {
  88246. return K._function1("random", "$limit: null", new K.closure20());
  88247. });
  88248. _lazy($, "global3", "$get$global", function() {
  88249. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([Q._function5("feature-exists", "$feature", new Q.closure99()), Q._function5("inspect", "$value", new Q.closure100()), Q._function5("type-of", "$value", new Q.closure101()), Q._function5("keywords", "$args", new Q.closure102())], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  88250. });
  88251. _lazy($, "global4", "$get$global4", function() {
  88252. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$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_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  88253. });
  88254. _lazy($, "module3", "$get$module3", function() {
  88255. return Q.BuiltInModule$("selector", H.setRuntimeTypeInfo([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse(), $.$get$_nest(), $.$get$_append(), $.$get$_extend(), $.$get$_replace(), $.$get$_unify()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  88256. });
  88257. _lazy($, "_nest", "$get$_nest", function() {
  88258. return T._function0("nest", "$selectors...", new T.closure13());
  88259. });
  88260. _lazy($, "_append0", "$get$_append", function() {
  88261. return T._function0("append", "$selectors...", new T.closure12());
  88262. });
  88263. _lazy($, "_extend", "$get$_extend", function() {
  88264. return T._function0("extend", "$selector, $extendee, $extender", new T.closure11());
  88265. });
  88266. _lazy($, "_replace", "$get$_replace", function() {
  88267. return T._function0("replace", "$selector, $original, $replacement", new T.closure10());
  88268. });
  88269. _lazy($, "_unify", "$get$_unify", function() {
  88270. return T._function0("unify", "$selector1, $selector2", new T.closure9());
  88271. });
  88272. _lazy($, "_isSuperselector", "$get$_isSuperselector", function() {
  88273. return T._function0("is-superselector", "$super, $sub", new T.closure16());
  88274. });
  88275. _lazy($, "_simpleSelectors", "$get$_simpleSelectors", function() {
  88276. return T._function0("simple-selectors", "$selector", new T.closure15());
  88277. });
  88278. _lazy($, "_parse", "$get$_parse", function() {
  88279. return T._function0("parse", "$selector", new T.closure14());
  88280. });
  88281. _lazy($, "_random0", "$get$_random", function() {
  88282. return P.Random_Random();
  88283. });
  88284. _lazy($, "_previousUniqueId", "$get$_previousUniqueId", function() {
  88285. return $.$get$_random().nextInt$1(H._asIntS(P.pow(36, 6)));
  88286. });
  88287. _lazy($, "global5", "$get$global5", function() {
  88288. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$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_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  88289. });
  88290. _lazy($, "module4", "$get$module4", function() {
  88291. return Q.BuiltInModule$("string", H.setRuntimeTypeInfo([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_length(), $.$get$_insert(), $.$get$_index(), $.$get$_slice(), $.$get$_uniqueId()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  88292. });
  88293. _lazy($, "_unquote", "$get$_unquote", function() {
  88294. return D._function("unquote", "$string", new D.closure8());
  88295. });
  88296. _lazy($, "_quote", "$get$_quote", function() {
  88297. return D._function("quote", "$string", new D.closure7());
  88298. });
  88299. _lazy($, "_length0", "$get$_length", function() {
  88300. return D._function("length", "$string", new D.closure3());
  88301. });
  88302. _lazy($, "_insert", "$get$_insert", function() {
  88303. return D._function("insert", "$string, $insert, $index", new D.closure2());
  88304. });
  88305. _lazy($, "_index0", "$get$_index", function() {
  88306. return D._function("index", "$string, $substring", new D.closure1());
  88307. });
  88308. _lazy($, "_slice", "$get$_slice", function() {
  88309. return D._function("slice", "$string, $start-at, $end-at: -1", new D.closure0());
  88310. });
  88311. _lazy($, "_toUpperCase", "$get$_toUpperCase", function() {
  88312. return D._function("to-upper-case", "$string", new D.closure6());
  88313. });
  88314. _lazy($, "_toLowerCase", "$get$_toLowerCase", function() {
  88315. return D._function("to-lower-case", "$string", new D.closure5());
  88316. });
  88317. _lazy($, "_uniqueId", "$get$_uniqueId", function() {
  88318. return D._function("unique-id", "", new D.closure4());
  88319. });
  88320. _lazy($, "stderr", "$get$stderr", function() {
  88321. return new B.Stderr(self.process.stderr);
  88322. });
  88323. _lazy($, "Logger_quiet", "$get$Logger_quiet", function() {
  88324. return new F._QuietLogger();
  88325. });
  88326. _lazy($, "_disallowedFunctionNames", "$get$_disallowedFunctionNames", function() {
  88327. var t1 = $.$get$globalFunctions();
  88328. t1 = t1.map$1$1(t1, new Q.closure103(), type$.legacy_String).toSet$0(0);
  88329. t1.add$1(0, "if");
  88330. t1.remove$1(0, "rgb");
  88331. t1.remove$1(0, "rgba");
  88332. t1.remove$1(0, "hsl");
  88333. t1.remove$1(0, "hsla");
  88334. t1.remove$1(0, "grayscale");
  88335. t1.remove$1(0, "invert");
  88336. t1.remove$1(0, "alpha");
  88337. t1.remove$1(0, "opacity");
  88338. t1.remove$1(0, "saturate");
  88339. return t1;
  88340. });
  88341. _lazy($, "epsilon", "$get$epsilon", function() {
  88342. return P.pow(10, -11);
  88343. });
  88344. _lazy($, "_inverseEpsilon", "$get$_inverseEpsilon", function() {
  88345. return 1 / $.$get$epsilon();
  88346. });
  88347. _lazy($, "_noSourceUrl", "$get$_noSourceUrl", function() {
  88348. return P.Uri_parse("-");
  88349. });
  88350. _lazy($, "_conversions", "$get$_conversions", function() {
  88351. var t1 = type$.legacy_String,
  88352. t2 = H.findType("num*");
  88353. return P.LinkedHashMap_LinkedHashMap$_literal(["in", P.LinkedHashMap_LinkedHashMap$_literal(["in", 1, "cm", 0.39370078740157477, "pc", 0.16666666666666666, "mm", 0.03937007874015748, "q", 0.00984251968503937, "pt", 0.013888888888888888, "px", 0.010416666666666666], t1, t2), "cm", P.LinkedHashMap_LinkedHashMap$_literal(["in", 2.54, "cm", 1, "pc", 0.42333333333333334, "mm", 0.1, "q", 0.025, "pt", 0.035277777777777776, "px", 0.026458333333333334], t1, t2), "pc", P.LinkedHashMap_LinkedHashMap$_literal(["in", 6, "cm", 2.3622047244094486, "pc", 1, "mm", 0.2362204724409449, "q", 0.05905511811023623, "pt", 0.08333333333333333, "px", 0.0625], t1, t2), "mm", P.LinkedHashMap_LinkedHashMap$_literal(["in", 25.4, "cm", 10, "pc", 4.233333333333333, "mm", 1, "q", 0.25, "pt", 0.35277777777777775, "px", 0.26458333333333334], t1, t2), "q", P.LinkedHashMap_LinkedHashMap$_literal(["in", 101.6, "cm", 40, "pc", 16.933333333333334, "mm", 4, "q", 1, "pt", 1.411111111111111, "px", 1.0583333333333333], t1, t2), "pt", P.LinkedHashMap_LinkedHashMap$_literal(["in", 72, "cm", 28.346456692913385, "pc", 12, "mm", 2.834645669291339, "q", 0.7086614173228347, "pt", 1, "px", 0.75], t1, t2), "px", P.LinkedHashMap_LinkedHashMap$_literal(["in", 96, "cm", 37.79527559055118, "pc", 16, "mm", 3.7795275590551185, "q", 0.9448818897637796, "pt", 1.3333333333333333, "px", 1], t1, t2), "deg", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 1, "grad", 0.9, "rad", 57.29577951308232, "turn", 360], t1, t2), "grad", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 1.1111111111111112, "grad", 1, "rad", 63.66197723675813, "turn", 400], t1, t2), "rad", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 0.017453292519943295, "grad", 0.015707963267948967, "rad", 1, "turn", 6.283185307179586], t1, t2), "turn", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 0.002777777777777778, "grad", 0.0025, "rad", 0.15915494309189535, "turn", 1], t1, t2), "s", P.LinkedHashMap_LinkedHashMap$_literal(["s", 1, "ms", 0.001], t1, t2), "ms", P.LinkedHashMap_LinkedHashMap$_literal(["s", 1000, "ms", 1], t1, t2), "Hz", P.LinkedHashMap_LinkedHashMap$_literal(["Hz", 1, "kHz", 1000], t1, t2), "kHz", P.LinkedHashMap_LinkedHashMap$_literal(["Hz", 0.001, "kHz", 1], t1, t2), "dpi", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 1, "dpcm", 2.54, "dppx", 96], t1, t2), "dpcm", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 0.39370078740157477, "dpcm", 1, "dppx", 37.79527559055118], t1, t2), "dppx", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 0.010416666666666666, "dpcm", 0.026458333333333334, "dppx", 1], t1, t2)], t1, H.findType("Map<String*,num*>*"));
  88354. });
  88355. _lazy($, "_emptyQuoted", "$get$_emptyQuoted", function() {
  88356. return D.SassString$("", true);
  88357. });
  88358. _lazy($, "_emptyUnquoted", "$get$_emptyUnquoted", function() {
  88359. return D.SassString$("", false);
  88360. });
  88361. _lazy($, "MAX_INT32", "$get$MAX_INT32", function() {
  88362. return P.pow(2, 31) - 1;
  88363. });
  88364. _lazy($, "MIN_INT32", "$get$MIN_INT32", function() {
  88365. return -P.pow(2, 31);
  88366. });
  88367. _lazy($, "_vmFrame", "$get$_vmFrame", function() {
  88368. return P.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", false);
  88369. });
  88370. _lazy($, "_v8Frame", "$get$_v8Frame", function() {
  88371. return P.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", false);
  88372. });
  88373. _lazy($, "_v8UrlLocation", "$get$_v8UrlLocation", function() {
  88374. return P.RegExp_RegExp("^(.*?):(\\d+)(?::(\\d+))?$|native$", false);
  88375. });
  88376. _lazy($, "_v8EvalLocation", "$get$_v8EvalLocation", function() {
  88377. return P.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", false);
  88378. });
  88379. _lazy($, "_firefoxEvalLocation", "$get$_firefoxEvalLocation", function() {
  88380. return P.RegExp_RegExp("(\\S+)@(\\S+) line (\\d+) >.* (Function|eval):\\d+:\\d+", false);
  88381. });
  88382. _lazy($, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", function() {
  88383. return P.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", false);
  88384. });
  88385. _lazy($, "_friendlyFrame", "$get$_friendlyFrame", function() {
  88386. return P.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$", false);
  88387. });
  88388. _lazy($, "_asyncBody", "$get$_asyncBody", function() {
  88389. return P.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", false);
  88390. });
  88391. _lazy($, "_initialDot", "$get$_initialDot", function() {
  88392. return P.RegExp_RegExp("^\\.", false);
  88393. });
  88394. _lazy($, "Frame__uriRegExp", "$get$Frame__uriRegExp", function() {
  88395. return P.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", false);
  88396. });
  88397. _lazy($, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", function() {
  88398. return P.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", false);
  88399. });
  88400. _lazy($, "_terseRegExp", "$get$_terseRegExp", function() {
  88401. return P.RegExp_RegExp("(-patch)?([/\\\\].*)?$", false);
  88402. });
  88403. _lazy($, "_v8Trace", "$get$_v8Trace", function() {
  88404. return P.RegExp_RegExp("\\n ?at ", false);
  88405. });
  88406. _lazy($, "_v8TraceLine", "$get$_v8TraceLine", function() {
  88407. return P.RegExp_RegExp(" ?at ", false);
  88408. });
  88409. _lazy($, "_firefoxEvalTrace", "$get$_firefoxEvalTrace", function() {
  88410. return P.RegExp_RegExp("@\\S+ line \\d+ >.* (Function|eval):\\d+:\\d+", false);
  88411. });
  88412. _lazy($, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", function() {
  88413. return P.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true);
  88414. });
  88415. _lazy($, "_friendlyTrace", "$get$_friendlyTrace", function() {
  88416. return P.RegExp_RegExp("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true);
  88417. });
  88418. _lazy($, "_newlineRegExp", "$get$_newlineRegExp", function() {
  88419. return P.RegExp_RegExp("\\r\\n?|\\n", false);
  88420. });
  88421. _lazy($, "booleanConstructor", "$get$booleanConstructor", function() {
  88422. return new Z.closure245().call$0();
  88423. });
  88424. _lazy($, "_microsoftFilterStart0", "$get$_microsoftFilterStart0", function() {
  88425. return P.RegExp_RegExp("^[a-zA-Z]+\\s*=", false);
  88426. });
  88427. _lazy($, "global6", "$get$global7", function() {
  88428. var _s27_ = "$red, $green, $blue, $alpha",
  88429. _s19_ = "$red, $green, $blue",
  88430. _s37_ = "$hue, $saturation, $lightness, $alpha",
  88431. _s29_ = "$hue, $saturation, $lightness",
  88432. _s17_ = "$hue, $saturation",
  88433. _s15_ = "$color, $amount",
  88434. t1 = type$.legacy_String,
  88435. t2 = H.findType("Value0*(List<Value0*>*)*");
  88436. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), Q.BuiltInCallable$overloadedFunction0("rgb", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure149(), _s19_, new K.closure150(), "$color, $alpha", new K.closure151(), "$channels", new K.closure152()], t1, t2)), Q.BuiltInCallable$overloadedFunction0("rgba", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure153(), _s19_, new K.closure154(), "$color, $alpha", new K.closure155(), "$channels", new K.closure156()], t1, t2)), K._function11("invert", "$color, $weight: 100%", new K.closure157()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), Q.BuiltInCallable$overloadedFunction0("hsl", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure158(), _s29_, new K.closure159(), _s17_, new K.closure160(), "$channels", new K.closure161()], t1, t2)), Q.BuiltInCallable$overloadedFunction0("hsla", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure162(), _s29_, new K.closure163(), _s17_, new K.closure164(), "$channels", new K.closure165()], t1, t2)), K._function11("grayscale", "$color", new K.closure166()), K._function11("adjust-hue", "$color, $degrees", new K.closure167()), K._function11("lighten", _s15_, new K.closure168()), K._function11("darken", _s15_, new K.closure169()), Q.BuiltInCallable$overloadedFunction0("saturate", P.LinkedHashMap_LinkedHashMap$_literal(["$amount", new K.closure170(), "$color, $amount", new K.closure171()], t1, t2)), K._function11("desaturate", _s15_, new K.closure172()), K._function11("opacify", _s15_, K.color0___opacify$closure()), K._function11("fade-in", _s15_, K.color0___opacify$closure()), K._function11("transparentize", _s15_, K.color0___transparentize$closure()), K._function11("fade-out", _s15_, K.color0___transparentize$closure()), Q.BuiltInCallable$overloadedFunction0("alpha", P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure173(), "$args...", new K.closure174()], t1, t2)), K._function11("opacity", "$color", new K.closure175()), $.$get$_ieHexStr0(), $.$get$_adjust0().withName$1("adjust-color"), $.$get$_scale0().withName$1("scale-color"), $.$get$_change0().withName$1("change-color")], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  88437. });
  88438. _lazy($, "module5", "$get$module5", function() {
  88439. var _s9_ = "lightness",
  88440. _s10_ = "saturation",
  88441. _s5_ = "alpha";
  88442. return Q.BuiltInModule$0("color", H.setRuntimeTypeInfo([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), K._function11("invert", "$color, $weight: 100%", new K.closure200()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), K._removedColorFunction0("adjust-hue", "hue", false), K._removedColorFunction0("lighten", _s9_, false), K._removedColorFunction0("darken", _s9_, true), K._removedColorFunction0("saturate", _s10_, false), K._removedColorFunction0("desaturate", _s10_, true), K._function11("grayscale", "$color", new K.closure201()), K._removedColorFunction0("opacify", _s5_, false), K._removedColorFunction0("fade-in", _s5_, false), K._removedColorFunction0("transparentize", _s5_, true), K._removedColorFunction0("fade-out", _s5_, true), Q.BuiltInCallable$overloadedFunction0(_s5_, P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure202(), "$args...", new K.closure203()], type$.legacy_String, H.findType("Value0*(List<Value0*>*)*"))), K._function11("opacity", "$color", new K.closure204()), $.$get$_adjust0(), $.$get$_scale0(), $.$get$_change0(), $.$get$_ieHexStr0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  88443. });
  88444. _lazy($, "_red0", "$get$_red0", function() {
  88445. return K._function11("red", "$color", new K.closure187());
  88446. });
  88447. _lazy($, "_green0", "$get$_green0", function() {
  88448. return K._function11("green", "$color", new K.closure186());
  88449. });
  88450. _lazy($, "_blue0", "$get$_blue0", function() {
  88451. return K._function11("blue", "$color", new K.closure185());
  88452. });
  88453. _lazy($, "_mix0", "$get$_mix0", function() {
  88454. return K._function11("mix", "$color1, $color2, $weight: 50%", new K.closure184());
  88455. });
  88456. _lazy($, "_hue0", "$get$_hue0", function() {
  88457. return K._function11("hue", "$color", new K.closure183());
  88458. });
  88459. _lazy($, "_saturation0", "$get$_saturation0", function() {
  88460. return K._function11("saturation", "$color", new K.closure182());
  88461. });
  88462. _lazy($, "_lightness0", "$get$_lightness0", function() {
  88463. return K._function11("lightness", "$color", new K.closure181());
  88464. });
  88465. _lazy($, "_complement0", "$get$_complement0", function() {
  88466. return K._function11("complement", "$color", new K.closure180());
  88467. });
  88468. _lazy($, "_adjust0", "$get$_adjust0", function() {
  88469. return K._function11("adjust", "$color, $kwargs...", new K.closure178());
  88470. });
  88471. _lazy($, "_scale0", "$get$_scale0", function() {
  88472. return K._function11("scale", "$color, $kwargs...", new K.closure177());
  88473. });
  88474. _lazy($, "_change0", "$get$_change0", function() {
  88475. return K._function11("change", "$color, $kwargs...", new K.closure176());
  88476. });
  88477. _lazy($, "_ieHexStr0", "$get$_ieHexStr0", function() {
  88478. return K._function11("ie-hex-str", "$color", new K.closure179());
  88479. });
  88480. _lazy($, "colorConstructor", "$get$colorConstructor", function() {
  88481. return B.createClass("SassColor", new K.closure235(), P.LinkedHashMap_LinkedHashMap$_literal(["getR", new K.closure236(), "getG", new K.closure237(), "getB", new K.closure238(), "getA", new K.closure239(), "setR", new K.closure240(), "setG", new K.closure241(), "setB", new K.closure242(), "setA", new K.closure243(), "toString", new K.closure244()], type$.legacy_String, type$.legacy_Function));
  88482. });
  88483. _lazy($, "colorsByName0", "$get$colorsByName0", function() {
  88484. var _null = null;
  88485. return P.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", K.SassColor$rgb0(154, 205, 50, _null, _null), "yellow", K.SassColor$rgb0(255, 255, 0, _null, _null), "whitesmoke", K.SassColor$rgb0(245, 245, 245, _null, _null), "white", K.SassColor$rgb0(255, 255, 255, _null, _null), "wheat", K.SassColor$rgb0(245, 222, 179, _null, _null), "violet", K.SassColor$rgb0(238, 130, 238, _null, _null), "turquoise", K.SassColor$rgb0(64, 224, 208, _null, _null), "transparent", K.SassColor$rgb0(0, 0, 0, 0, _null), "tomato", K.SassColor$rgb0(255, 99, 71, _null, _null), "thistle", K.SassColor$rgb0(216, 191, 216, _null, _null), "teal", K.SassColor$rgb0(0, 128, 128, _null, _null), "tan", K.SassColor$rgb0(210, 180, 140, _null, _null), "steelblue", K.SassColor$rgb0(70, 130, 180, _null, _null), "springgreen", K.SassColor$rgb0(0, 255, 127, _null, _null), "snow", K.SassColor$rgb0(255, 250, 250, _null, _null), "slategrey", K.SassColor$rgb0(112, 128, 144, _null, _null), "slategray", K.SassColor$rgb0(112, 128, 144, _null, _null), "slateblue", K.SassColor$rgb0(106, 90, 205, _null, _null), "skyblue", K.SassColor$rgb0(135, 206, 235, _null, _null), "silver", K.SassColor$rgb0(192, 192, 192, _null, _null), "sienna", K.SassColor$rgb0(160, 82, 45, _null, _null), "seashell", K.SassColor$rgb0(255, 245, 238, _null, _null), "seagreen", K.SassColor$rgb0(46, 139, 87, _null, _null), "sandybrown", K.SassColor$rgb0(244, 164, 96, _null, _null), "salmon", K.SassColor$rgb0(250, 128, 114, _null, _null), "saddlebrown", K.SassColor$rgb0(139, 69, 19, _null, _null), "royalblue", K.SassColor$rgb0(65, 105, 225, _null, _null), "rosybrown", K.SassColor$rgb0(188, 143, 143, _null, _null), "red", K.SassColor$rgb0(255, 0, 0, _null, _null), "rebeccapurple", K.SassColor$rgb0(102, 51, 153, _null, _null), "purple", K.SassColor$rgb0(128, 0, 128, _null, _null), "powderblue", K.SassColor$rgb0(176, 224, 230, _null, _null), "plum", K.SassColor$rgb0(221, 160, 221, _null, _null), "pink", K.SassColor$rgb0(255, 192, 203, _null, _null), "peru", K.SassColor$rgb0(205, 133, 63, _null, _null), "peachpuff", K.SassColor$rgb0(255, 218, 185, _null, _null), "papayawhip", K.SassColor$rgb0(255, 239, 213, _null, _null), "palevioletred", K.SassColor$rgb0(219, 112, 147, _null, _null), "paleturquoise", K.SassColor$rgb0(175, 238, 238, _null, _null), "palegreen", K.SassColor$rgb0(152, 251, 152, _null, _null), "palegoldenrod", K.SassColor$rgb0(238, 232, 170, _null, _null), "orchid", K.SassColor$rgb0(218, 112, 214, _null, _null), "orangered", K.SassColor$rgb0(255, 69, 0, _null, _null), "orange", K.SassColor$rgb0(255, 165, 0, _null, _null), "olivedrab", K.SassColor$rgb0(107, 142, 35, _null, _null), "olive", K.SassColor$rgb0(128, 128, 0, _null, _null), "oldlace", K.SassColor$rgb0(253, 245, 230, _null, _null), "navy", K.SassColor$rgb0(0, 0, 128, _null, _null), "navajowhite", K.SassColor$rgb0(255, 222, 173, _null, _null), "moccasin", K.SassColor$rgb0(255, 228, 181, _null, _null), "mistyrose", K.SassColor$rgb0(255, 228, 225, _null, _null), "mintcream", K.SassColor$rgb0(245, 255, 250, _null, _null), "midnightblue", K.SassColor$rgb0(25, 25, 112, _null, _null), "mediumvioletred", K.SassColor$rgb0(199, 21, 133, _null, _null), "mediumturquoise", K.SassColor$rgb0(72, 209, 204, _null, _null), "mediumspringgreen", K.SassColor$rgb0(0, 250, 154, _null, _null), "mediumslateblue", K.SassColor$rgb0(123, 104, 238, _null, _null), "mediumseagreen", K.SassColor$rgb0(60, 179, 113, _null, _null), "mediumpurple", K.SassColor$rgb0(147, 112, 219, _null, _null), "mediumorchid", K.SassColor$rgb0(186, 85, 211, _null, _null), "mediumblue", K.SassColor$rgb0(0, 0, 205, _null, _null), "mediumaquamarine", K.SassColor$rgb0(102, 205, 170, _null, _null), "maroon", K.SassColor$rgb0(128, 0, 0, _null, _null), "magenta", K.SassColor$rgb0(255, 0, 255, _null, _null), "linen", K.SassColor$rgb0(250, 240, 230, _null, _null), "limegreen", K.SassColor$rgb0(50, 205, 50, _null, _null), "lime", K.SassColor$rgb0(0, 255, 0, _null, _null), "lightyellow", K.SassColor$rgb0(255, 255, 224, _null, _null), "lightsteelblue", K.SassColor$rgb0(176, 196, 222, _null, _null), "lightslategrey", K.SassColor$rgb0(119, 136, 153, _null, _null), "lightslategray", K.SassColor$rgb0(119, 136, 153, _null, _null), "lightskyblue", K.SassColor$rgb0(135, 206, 250, _null, _null), "lightseagreen", K.SassColor$rgb0(32, 178, 170, _null, _null), "lightsalmon", K.SassColor$rgb0(255, 160, 122, _null, _null), "lightpink", K.SassColor$rgb0(255, 182, 193, _null, _null), "lightgrey", K.SassColor$rgb0(211, 211, 211, _null, _null), "lightgreen", K.SassColor$rgb0(144, 238, 144, _null, _null), "lightgray", K.SassColor$rgb0(211, 211, 211, _null, _null), "lightgoldenrodyellow", K.SassColor$rgb0(250, 250, 210, _null, _null), "lightcyan", K.SassColor$rgb0(224, 255, 255, _null, _null), "lightcoral", K.SassColor$rgb0(240, 128, 128, _null, _null), "lightblue", K.SassColor$rgb0(173, 216, 230, _null, _null), "lemonchiffon", K.SassColor$rgb0(255, 250, 205, _null, _null), "lawngreen", K.SassColor$rgb0(124, 252, 0, _null, _null), "lavenderblush", K.SassColor$rgb0(255, 240, 245, _null, _null), "lavender", K.SassColor$rgb0(230, 230, 250, _null, _null), "khaki", K.SassColor$rgb0(240, 230, 140, _null, _null), "ivory", K.SassColor$rgb0(255, 255, 240, _null, _null), "indigo", K.SassColor$rgb0(75, 0, 130, _null, _null), "indianred", K.SassColor$rgb0(205, 92, 92, _null, _null), "hotpink", K.SassColor$rgb0(255, 105, 180, _null, _null), "honeydew", K.SassColor$rgb0(240, 255, 240, _null, _null), "grey", K.SassColor$rgb0(128, 128, 128, _null, _null), "greenyellow", K.SassColor$rgb0(173, 255, 47, _null, _null), "green", K.SassColor$rgb0(0, 128, 0, _null, _null), "gray", K.SassColor$rgb0(128, 128, 128, _null, _null), "goldenrod", K.SassColor$rgb0(218, 165, 32, _null, _null), "gold", K.SassColor$rgb0(255, 215, 0, _null, _null), "ghostwhite", K.SassColor$rgb0(248, 248, 255, _null, _null), "gainsboro", K.SassColor$rgb0(220, 220, 220, _null, _null), "fuchsia", K.SassColor$rgb0(255, 0, 255, _null, _null), "forestgreen", K.SassColor$rgb0(34, 139, 34, _null, _null), "floralwhite", K.SassColor$rgb0(255, 250, 240, _null, _null), "firebrick", K.SassColor$rgb0(178, 34, 34, _null, _null), "dodgerblue", K.SassColor$rgb0(30, 144, 255, _null, _null), "dimgrey", K.SassColor$rgb0(105, 105, 105, _null, _null), "dimgray", K.SassColor$rgb0(105, 105, 105, _null, _null), "deepskyblue", K.SassColor$rgb0(0, 191, 255, _null, _null), "deeppink", K.SassColor$rgb0(255, 20, 147, _null, _null), "darkviolet", K.SassColor$rgb0(148, 0, 211, _null, _null), "darkturquoise", K.SassColor$rgb0(0, 206, 209, _null, _null), "darkslategrey", K.SassColor$rgb0(47, 79, 79, _null, _null), "darkslategray", K.SassColor$rgb0(47, 79, 79, _null, _null), "darkslateblue", K.SassColor$rgb0(72, 61, 139, _null, _null), "darkseagreen", K.SassColor$rgb0(143, 188, 143, _null, _null), "darksalmon", K.SassColor$rgb0(233, 150, 122, _null, _null), "darkred", K.SassColor$rgb0(139, 0, 0, _null, _null), "darkorchid", K.SassColor$rgb0(153, 50, 204, _null, _null), "darkorange", K.SassColor$rgb0(255, 140, 0, _null, _null), "darkolivegreen", K.SassColor$rgb0(85, 107, 47, _null, _null), "darkmagenta", K.SassColor$rgb0(139, 0, 139, _null, _null), "darkkhaki", K.SassColor$rgb0(189, 183, 107, _null, _null), "darkgrey", K.SassColor$rgb0(169, 169, 169, _null, _null), "darkgreen", K.SassColor$rgb0(0, 100, 0, _null, _null), "darkgray", K.SassColor$rgb0(169, 169, 169, _null, _null), "darkgoldenrod", K.SassColor$rgb0(184, 134, 11, _null, _null), "darkcyan", K.SassColor$rgb0(0, 139, 139, _null, _null), "darkblue", K.SassColor$rgb0(0, 0, 139, _null, _null), "cyan", K.SassColor$rgb0(0, 255, 255, _null, _null), "crimson", K.SassColor$rgb0(220, 20, 60, _null, _null), "cornsilk", K.SassColor$rgb0(255, 248, 220, _null, _null), "cornflowerblue", K.SassColor$rgb0(100, 149, 237, _null, _null), "coral", K.SassColor$rgb0(255, 127, 80, _null, _null), "chocolate", K.SassColor$rgb0(210, 105, 30, _null, _null), "chartreuse", K.SassColor$rgb0(127, 255, 0, _null, _null), "cadetblue", K.SassColor$rgb0(95, 158, 160, _null, _null), "burlywood", K.SassColor$rgb0(222, 184, 135, _null, _null), "brown", K.SassColor$rgb0(165, 42, 42, _null, _null), "blueviolet", K.SassColor$rgb0(138, 43, 226, _null, _null), "blue", K.SassColor$rgb0(0, 0, 255, _null, _null), "blanchedalmond", K.SassColor$rgb0(255, 235, 205, _null, _null), "black", K.SassColor$rgb0(0, 0, 0, _null, _null), "bisque", K.SassColor$rgb0(255, 228, 196, _null, _null), "beige", K.SassColor$rgb0(245, 245, 220, _null, _null), "azure", K.SassColor$rgb0(240, 255, 255, _null, _null), "aquamarine", K.SassColor$rgb0(127, 255, 212, _null, _null), "aqua", K.SassColor$rgb0(0, 255, 255, _null, _null), "antiquewhite", K.SassColor$rgb0(250, 235, 215, _null, _null), "aliceblue", K.SassColor$rgb0(240, 248, 255, _null, _null)], type$.legacy_String, type$.legacy_SassColor_2);
  88486. });
  88487. _lazy($, "namesByColor0", "$get$namesByColor0", function() {
  88488. var t2, t3,
  88489. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SassColor_2, type$.legacy_String);
  88490. for (t2 = $.$get$colorsByName0().get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  88491. t3 = t2.get$current(t2);
  88492. t1.$indexSet(0, t3.value, t3.key);
  88493. }
  88494. return t1;
  88495. });
  88496. _lazy($, "_disallowedFunctionNames0", "$get$_disallowedFunctionNames0", function() {
  88497. var t1 = $.$get$globalFunctions0();
  88498. t1 = t1.map$1$1(t1, new Q.closure209(), type$.legacy_String).toSet$0(0);
  88499. t1.add$1(0, "if");
  88500. t1.remove$1(0, "rgb");
  88501. t1.remove$1(0, "rgba");
  88502. t1.remove$1(0, "hsl");
  88503. t1.remove$1(0, "hsla");
  88504. t1.remove$1(0, "grayscale");
  88505. t1.remove$1(0, "invert");
  88506. t1.remove$1(0, "alpha");
  88507. t1.remove$1(0, "opacity");
  88508. t1.remove$1(0, "saturate");
  88509. return t1;
  88510. });
  88511. _lazy($, "globalFunctions0", "$get$globalFunctions0", function() {
  88512. var t2,
  88513. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInCallable_2);
  88514. for (t2 = $.$get$global7(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88515. t1.push(t2.get$current(t2));
  88516. for (t2 = $.$get$global8(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88517. t1.push(t2.get$current(t2));
  88518. for (t2 = $.$get$global9(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88519. t1.push(t2.get$current(t2));
  88520. for (t2 = $.$get$global10(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88521. t1.push(t2.get$current(t2));
  88522. for (t2 = $.$get$global11(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88523. t1.push(t2.get$current(t2));
  88524. for (t2 = $.$get$global12(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88525. t1.push(t2.get$current(t2));
  88526. for (t2 = $.$get$global6(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  88527. t1.push(t2.get$current(t2));
  88528. t1.push(Q.BuiltInCallable$function0("if", "$condition, $if-true, $if-false", new Y.closure105(), null));
  88529. return P.UnmodifiableListView$(t1, type$.legacy_BuiltInCallable_2);
  88530. });
  88531. _lazy($, "coreModules0", "$get$coreModules0", function() {
  88532. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$module5(), $.$get$module6(), $.$get$module7(), $.$get$module8(), $.$get$module9(), $.$get$module10()], type$.JSArray_legacy_BuiltInModule_legacy_BuiltInCallable_2), H.findType("BuiltInModule0<BuiltInCallable0*>*"));
  88533. });
  88534. _lazy($, "IfExpression_declaration0", "$get$IfExpression_declaration0", function() {
  88535. return B.ArgumentDeclaration_ArgumentDeclaration$parse0(string$.x40functi, null);
  88536. });
  88537. _lazy($, "global7", "$get$global8", function() {
  88538. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0().withName$1("list-separator")], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  88539. });
  88540. _lazy($, "module6", "$get$module6", function() {
  88541. return Q.BuiltInModule$0("list", H.setRuntimeTypeInfo([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  88542. });
  88543. _lazy($, "_length1", "$get$_length2", function() {
  88544. return D._function10("length", "$list", new D.closure148());
  88545. });
  88546. _lazy($, "_nth0", "$get$_nth0", function() {
  88547. return D._function10("nth", "$list, $n", new D.closure147());
  88548. });
  88549. _lazy($, "_setNth0", "$get$_setNth0", function() {
  88550. return D._function10("set-nth", "$list, $n, $value", new D.closure146());
  88551. });
  88552. _lazy($, "_join0", "$get$_join0", function() {
  88553. return D._function10("join", string$.x24list1, new D.closure145());
  88554. });
  88555. _lazy($, "_append1", "$get$_append2", function() {
  88556. return D._function10("append", "$list, $val, $separator: auto", new D.closure144());
  88557. });
  88558. _lazy($, "_zip0", "$get$_zip0", function() {
  88559. return D._function10("zip", "$lists...", new D.closure143());
  88560. });
  88561. _lazy($, "_index1", "$get$_index2", function() {
  88562. return D._function10("index", "$list, $value", new D.closure142());
  88563. });
  88564. _lazy($, "_separator0", "$get$_separator0", function() {
  88565. return D._function10("separator", "$list", new D.closure140());
  88566. });
  88567. _lazy($, "_isBracketed0", "$get$_isBracketed0", function() {
  88568. return D._function10("is-bracketed", "$list", new D.closure141());
  88569. });
  88570. _lazy($, "listConstructor", "$get$listConstructor", function() {
  88571. return B.createClass("SassList", new D.closure228(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new D.closure229(), "setValue", new D.closure230(), "getSeparator", new D.closure231(), "setSeparator", new D.closure232(), "getLength", new D.closure233(), "toString", new D.closure234()], type$.legacy_String, type$.legacy_Function));
  88572. });
  88573. _lazy($, "global8", "$get$global9", function() {
  88574. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$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_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  88575. });
  88576. _lazy($, "module7", "$get$module7", function() {
  88577. return Q.BuiltInModule$0("map", H.setRuntimeTypeInfo([$.$get$_get0(), $.$get$_merge0(), $.$get$_remove0(), $.$get$_keys0(), $.$get$_values0(), $.$get$_hasKey0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  88578. });
  88579. _lazy($, "_get0", "$get$_get0", function() {
  88580. return A._function9("get", "$map, $key", new A.closure139());
  88581. });
  88582. _lazy($, "_merge0", "$get$_merge0", function() {
  88583. return A._function9("merge", "$map1, $map2", new A.closure138());
  88584. });
  88585. _lazy($, "_remove0", "$get$_remove0", function() {
  88586. return Q.BuiltInCallable$overloadedFunction0("remove", P.LinkedHashMap_LinkedHashMap$_literal(["$map", new A.closure136(), "$map, $key, $keys...", new A.closure137()], type$.legacy_String, H.findType("Value0*(List<Value0*>*)*")));
  88587. });
  88588. _lazy($, "_keys0", "$get$_keys0", function() {
  88589. return A._function9("keys", "$map", new A.closure135());
  88590. });
  88591. _lazy($, "_values0", "$get$_values0", function() {
  88592. return A._function9("values", "$map", new A.closure134());
  88593. });
  88594. _lazy($, "_hasKey0", "$get$_hasKey0", function() {
  88595. return A._function9("has-key", "$map, $key", new A.closure133());
  88596. });
  88597. _lazy($, "mapConstructor", "$get$mapConstructor", function() {
  88598. return B.createClass("SassMap", new A.closure221(), P.LinkedHashMap_LinkedHashMap$_literal(["getKey", new A.closure222(), "getValue", new A.closure223(), "getLength", new A.closure224(), "setKey", new A.closure225(), "setValue", new A.closure226(), "toString", new A.closure227()], type$.legacy_String, type$.legacy_Function));
  88599. });
  88600. _lazy($, "global9", "$get$global10", function() {
  88601. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$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_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  88602. });
  88603. _lazy($, "module8", "$get$module8", function() {
  88604. return Q.BuiltInModule$0("math", H.setRuntimeTypeInfo([$.$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()], type$.JSArray_legacy_BuiltInCallable_2), null, P.LinkedHashMap_LinkedHashMap$_literal(["e", T.SassNumber$0(2.718281828459045, null), "pi", T.SassNumber$0(3.141592653589793, null)], type$.legacy_String, type$.legacy_Value_2), type$.legacy_BuiltInCallable_2);
  88605. });
  88606. _lazy($, "_ceil0", "$get$_ceil0", function() {
  88607. return K._numberFunction0("ceil", new K.closure131());
  88608. });
  88609. _lazy($, "_clamp0", "$get$_clamp0", function() {
  88610. return K._function8("clamp", "$min, $number, $max", new K.closure195());
  88611. });
  88612. _lazy($, "_floor0", "$get$_floor0", function() {
  88613. return K._numberFunction0("floor", new K.closure130());
  88614. });
  88615. _lazy($, "_max0", "$get$_max0", function() {
  88616. return K._function8("max", "$numbers...", new K.closure129());
  88617. });
  88618. _lazy($, "_min0", "$get$_min0", function() {
  88619. return K._function8("min", "$numbers...", new K.closure128());
  88620. });
  88621. _lazy($, "_round0", "$get$_round0", function() {
  88622. return K._numberFunction0("round", T.number2__fuzzyRound$closure());
  88623. });
  88624. _lazy($, "_abs0", "$get$_abs0", function() {
  88625. return K._numberFunction0("abs", new K.closure132());
  88626. });
  88627. _lazy($, "_hypot0", "$get$_hypot0", function() {
  88628. return K._function8("hypot", "$numbers...", new K.closure193());
  88629. });
  88630. _lazy($, "_log0", "$get$_log0", function() {
  88631. return K._function8("log", "$number, $base: null", new K.closure192());
  88632. });
  88633. _lazy($, "_pow0", "$get$_pow0", function() {
  88634. return K._function8("pow", "$base, $exponent", new K.closure191());
  88635. });
  88636. _lazy($, "_sqrt0", "$get$_sqrt0", function() {
  88637. return K._function8("sqrt", "$number", new K.closure189());
  88638. });
  88639. _lazy($, "_acos0", "$get$_acos0", function() {
  88640. return K._function8("acos", "$number", new K.closure199());
  88641. });
  88642. _lazy($, "_asin0", "$get$_asin0", function() {
  88643. return K._function8("asin", "$number", new K.closure198());
  88644. });
  88645. _lazy($, "_atan0", "$get$_atan0", function() {
  88646. return K._function8("atan", "$number", new K.closure197());
  88647. });
  88648. _lazy($, "_atan20", "$get$_atan20", function() {
  88649. return K._function8("atan2", "$y, $x", new K.closure196());
  88650. });
  88651. _lazy($, "_cos0", "$get$_cos0", function() {
  88652. return K._function8("cos", "$number", new K.closure194());
  88653. });
  88654. _lazy($, "_sin0", "$get$_sin0", function() {
  88655. return K._function8("sin", "$number", new K.closure190());
  88656. });
  88657. _lazy($, "_tan0", "$get$_tan0", function() {
  88658. return K._function8("tan", "$number", new K.closure188());
  88659. });
  88660. _lazy($, "_compatible0", "$get$_compatible0", function() {
  88661. return K._function8("compatible", "$number1, $number2", new K.closure124());
  88662. });
  88663. _lazy($, "_isUnitless0", "$get$_isUnitless0", function() {
  88664. return K._function8("is-unitless", "$number", new K.closure123());
  88665. });
  88666. _lazy($, "_unit0", "$get$_unit0", function() {
  88667. return K._function8("unit", "$number", new K.closure125());
  88668. });
  88669. _lazy($, "_percentage0", "$get$_percentage0", function() {
  88670. return K._function8("percentage", "$number", new K.closure127());
  88671. });
  88672. _lazy($, "_random1", "$get$_random2", function() {
  88673. return P.Random_Random();
  88674. });
  88675. _lazy($, "_randomFunction0", "$get$_randomFunction0", function() {
  88676. return K._function8("random", "$limit: null", new K.closure126());
  88677. });
  88678. _lazy($, "global10", "$get$global6", function() {
  88679. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([Q._function12("feature-exists", "$feature", new Q.closure205()), Q._function12("inspect", "$value", new Q.closure206()), Q._function12("type-of", "$value", new Q.closure207()), Q._function12("keywords", "$args", new Q.closure208())], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  88680. });
  88681. _lazy($, "stderr0", "$get$stderr0", function() {
  88682. return new B.Stderr0(self.process.stderr);
  88683. });
  88684. _lazy($, "nullConstructor", "$get$nullConstructor", function() {
  88685. return new O.closure220().call$0();
  88686. });
  88687. _lazy($, "epsilon0", "$get$epsilon0", function() {
  88688. return P.pow(10, -11);
  88689. });
  88690. _lazy($, "_inverseEpsilon0", "$get$_inverseEpsilon0", function() {
  88691. return 1 / $.$get$epsilon0();
  88692. });
  88693. _lazy($, "numberConstructor", "$get$numberConstructor", function() {
  88694. return B.createClass("SassNumber", new T.closure214(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new T.closure215(), "setValue", new T.closure216(), "getUnit", new T.closure217(), "setUnit", new T.closure218(), "toString", new T.closure219()], type$.legacy_String, type$.legacy_Function));
  88695. });
  88696. _lazy($, "_conversions0", "$get$_conversions0", function() {
  88697. var t1 = type$.legacy_String,
  88698. t2 = H.findType("num*");
  88699. return P.LinkedHashMap_LinkedHashMap$_literal(["in", P.LinkedHashMap_LinkedHashMap$_literal(["in", 1, "cm", 0.39370078740157477, "pc", 0.16666666666666666, "mm", 0.03937007874015748, "q", 0.00984251968503937, "pt", 0.013888888888888888, "px", 0.010416666666666666], t1, t2), "cm", P.LinkedHashMap_LinkedHashMap$_literal(["in", 2.54, "cm", 1, "pc", 0.42333333333333334, "mm", 0.1, "q", 0.025, "pt", 0.035277777777777776, "px", 0.026458333333333334], t1, t2), "pc", P.LinkedHashMap_LinkedHashMap$_literal(["in", 6, "cm", 2.3622047244094486, "pc", 1, "mm", 0.2362204724409449, "q", 0.05905511811023623, "pt", 0.08333333333333333, "px", 0.0625], t1, t2), "mm", P.LinkedHashMap_LinkedHashMap$_literal(["in", 25.4, "cm", 10, "pc", 4.233333333333333, "mm", 1, "q", 0.25, "pt", 0.35277777777777775, "px", 0.26458333333333334], t1, t2), "q", P.LinkedHashMap_LinkedHashMap$_literal(["in", 101.6, "cm", 40, "pc", 16.933333333333334, "mm", 4, "q", 1, "pt", 1.411111111111111, "px", 1.0583333333333333], t1, t2), "pt", P.LinkedHashMap_LinkedHashMap$_literal(["in", 72, "cm", 28.346456692913385, "pc", 12, "mm", 2.834645669291339, "q", 0.7086614173228347, "pt", 1, "px", 0.75], t1, t2), "px", P.LinkedHashMap_LinkedHashMap$_literal(["in", 96, "cm", 37.79527559055118, "pc", 16, "mm", 3.7795275590551185, "q", 0.9448818897637796, "pt", 1.3333333333333333, "px", 1], t1, t2), "deg", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 1, "grad", 0.9, "rad", 57.29577951308232, "turn", 360], t1, t2), "grad", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 1.1111111111111112, "grad", 1, "rad", 63.66197723675813, "turn", 400], t1, t2), "rad", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 0.017453292519943295, "grad", 0.015707963267948967, "rad", 1, "turn", 6.283185307179586], t1, t2), "turn", P.LinkedHashMap_LinkedHashMap$_literal(["deg", 0.002777777777777778, "grad", 0.0025, "rad", 0.15915494309189535, "turn", 1], t1, t2), "s", P.LinkedHashMap_LinkedHashMap$_literal(["s", 1, "ms", 0.001], t1, t2), "ms", P.LinkedHashMap_LinkedHashMap$_literal(["s", 1000, "ms", 1], t1, t2), "Hz", P.LinkedHashMap_LinkedHashMap$_literal(["Hz", 1, "kHz", 1000], t1, t2), "kHz", P.LinkedHashMap_LinkedHashMap$_literal(["Hz", 0.001, "kHz", 1], t1, t2), "dpi", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 1, "dpcm", 2.54, "dppx", 96], t1, t2), "dpcm", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 0.39370078740157477, "dpcm", 1, "dppx", 37.79527559055118], t1, t2), "dppx", P.LinkedHashMap_LinkedHashMap$_literal(["dpi", 0.010416666666666666, "dpcm", 0.026458333333333334, "dppx", 1], t1, t2)], t1, H.findType("Map<String*,num*>*"));
  88700. });
  88701. _lazy($, "global11", "$get$global11", function() {
  88702. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$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_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  88703. });
  88704. _lazy($, "module9", "$get$module9", function() {
  88705. return Q.BuiltInModule$0("selector", H.setRuntimeTypeInfo([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0(), $.$get$_nest0(), $.$get$_append1(), $.$get$_extend0(), $.$get$_replace0(), $.$get$_unify0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  88706. });
  88707. _lazy($, "_nest0", "$get$_nest0", function() {
  88708. return T._function7("nest", "$selectors...", new T.closure119());
  88709. });
  88710. _lazy($, "_append2", "$get$_append1", function() {
  88711. return T._function7("append", "$selectors...", new T.closure118());
  88712. });
  88713. _lazy($, "_extend0", "$get$_extend0", function() {
  88714. return T._function7("extend", "$selector, $extendee, $extender", new T.closure117());
  88715. });
  88716. _lazy($, "_replace0", "$get$_replace0", function() {
  88717. return T._function7("replace", "$selector, $original, $replacement", new T.closure116());
  88718. });
  88719. _lazy($, "_unify0", "$get$_unify0", function() {
  88720. return T._function7("unify", "$selector1, $selector2", new T.closure115());
  88721. });
  88722. _lazy($, "_isSuperselector0", "$get$_isSuperselector0", function() {
  88723. return T._function7("is-superselector", "$super, $sub", new T.closure122());
  88724. });
  88725. _lazy($, "_simpleSelectors0", "$get$_simpleSelectors0", function() {
  88726. return T._function7("simple-selectors", "$selector", new T.closure121());
  88727. });
  88728. _lazy($, "_parse0", "$get$_parse0", function() {
  88729. return T._function7("parse", "$selector", new T.closure120());
  88730. });
  88731. _lazy($, "_random2", "$get$_random1", function() {
  88732. return P.Random_Random();
  88733. });
  88734. _lazy($, "_previousUniqueId0", "$get$_previousUniqueId0", function() {
  88735. return $.$get$_random1().nextInt$1(H._asIntS(P.pow(36, 6)));
  88736. });
  88737. _lazy($, "global12", "$get$global12", function() {
  88738. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$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_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  88739. });
  88740. _lazy($, "module10", "$get$module10", function() {
  88741. return Q.BuiltInModule$0("string", H.setRuntimeTypeInfo([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_length1(), $.$get$_insert0(), $.$get$_index1(), $.$get$_slice0(), $.$get$_uniqueId0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  88742. });
  88743. _lazy($, "_unquote0", "$get$_unquote0", function() {
  88744. return D._function6("unquote", "$string", new D.closure114());
  88745. });
  88746. _lazy($, "_quote0", "$get$_quote0", function() {
  88747. return D._function6("quote", "$string", new D.closure113());
  88748. });
  88749. _lazy($, "_length2", "$get$_length1", function() {
  88750. return D._function6("length", "$string", new D.closure109());
  88751. });
  88752. _lazy($, "_insert0", "$get$_insert0", function() {
  88753. return D._function6("insert", "$string, $insert, $index", new D.closure108());
  88754. });
  88755. _lazy($, "_index2", "$get$_index1", function() {
  88756. return D._function6("index", "$string, $substring", new D.closure107());
  88757. });
  88758. _lazy($, "_slice0", "$get$_slice0", function() {
  88759. return D._function6("slice", "$string, $start-at, $end-at: -1", new D.closure106());
  88760. });
  88761. _lazy($, "_toUpperCase0", "$get$_toUpperCase0", function() {
  88762. return D._function6("to-upper-case", "$string", new D.closure112());
  88763. });
  88764. _lazy($, "_toLowerCase0", "$get$_toLowerCase0", function() {
  88765. return D._function6("to-lower-case", "$string", new D.closure111());
  88766. });
  88767. _lazy($, "_uniqueId0", "$get$_uniqueId0", function() {
  88768. return D._function6("unique-id", "", new D.closure110());
  88769. });
  88770. _lazy($, "stringConstructor", "$get$stringConstructor", function() {
  88771. return B.createClass("SassString", new D.closure210(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new D.closure211(), "setValue", new D.closure212(), "toString", new D.closure213()], type$.legacy_String, type$.legacy_Function));
  88772. });
  88773. _lazy($, "_emptyQuoted0", "$get$_emptyQuoted0", function() {
  88774. return D.SassString$0("", true);
  88775. });
  88776. _lazy($, "_emptyUnquoted0", "$get$_emptyUnquoted0", function() {
  88777. return D.SassString$0("", false);
  88778. });
  88779. _lazy($, "_jsThrow", "$get$_jsThrow", function() {
  88780. return new self.Function("error", "throw error;");
  88781. });
  88782. _lazy($, "_isUndefined", "$get$_isUndefined", function() {
  88783. return new self.Function("value", "return value === undefined;");
  88784. });
  88785. _lazy($, "_jsInstanceOf", "$get$_jsInstanceOf", function() {
  88786. return new self.Function("value", "type", "return value instanceof type;");
  88787. });
  88788. _lazy($, "_noSourceUrl0", "$get$_noSourceUrl0", function() {
  88789. return P.Uri_parse("-");
  88790. });
  88791. })();
  88792. (function nativeSupport() {
  88793. !function() {
  88794. var intern = function(s) {
  88795. var o = {};
  88796. o[s] = 1;
  88797. return Object.keys(hunkHelpers.convertToFastObject(o))[0];
  88798. };
  88799. init.getIsolateTag = function(name) {
  88800. return intern("___dart_" + name + init.isolateTag);
  88801. };
  88802. var tableProperty = "___dart_isolate_tags_";
  88803. var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null));
  88804. var rootProperty = "_ZxYxX";
  88805. for (var i = 0;; i++) {
  88806. var property = intern(rootProperty + "_" + i + "_");
  88807. if (!(property in usedProperties)) {
  88808. usedProperties[property] = 1;
  88809. init.isolateTag = property;
  88810. break;
  88811. }
  88812. }
  88813. init.dispatchPropertyName = init.getIsolateTag("dispatch_record");
  88814. }();
  88815. hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer: J.Interceptor, DataView: H.NativeTypedData, ArrayBufferView: H.NativeTypedData, Float32Array: H.NativeFloat32List, Float64Array: H.NativeFloat64List, Int16Array: H.NativeInt16List, Int32Array: H.NativeInt32List, Int8Array: H.NativeInt8List, Uint16Array: H.NativeUint16List, Uint32Array: H.NativeUint32List, Uint8ClampedArray: H.NativeUint8ClampedList, CanvasPixelArray: H.NativeUint8ClampedList, Uint8Array: H.NativeUint8List});
  88816. 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});
  88817. H.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView";
  88818. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  88819. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  88820. H.NativeTypedArrayOfDouble.$nativeSuperclassTag = "ArrayBufferView";
  88821. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  88822. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  88823. H.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
  88824. })();
  88825. Function.prototype.call$2 = function(a, b) {
  88826. return this(a, b);
  88827. };
  88828. Function.prototype.call$1 = function(a) {
  88829. return this(a);
  88830. };
  88831. Function.prototype.call$0 = function() {
  88832. return this();
  88833. };
  88834. Function.prototype.call$1$1 = function(a) {
  88835. return this(a);
  88836. };
  88837. Function.prototype.call$3 = function(a, b, c) {
  88838. return this(a, b, c);
  88839. };
  88840. Function.prototype.call$4 = function(a, b, c, d) {
  88841. return this(a, b, c, d);
  88842. };
  88843. Function.prototype.call$6 = function(a, b, c, d, e, f) {
  88844. return this(a, b, c, d, e, f);
  88845. };
  88846. Function.prototype.call$5 = function(a, b, c, d, e) {
  88847. return this(a, b, c, d, e);
  88848. };
  88849. Function.prototype.call$1$3 = function(a, b, c) {
  88850. return this(a, b, c);
  88851. };
  88852. Function.prototype.call$2$2 = function(a, b) {
  88853. return this(a, b);
  88854. };
  88855. Function.prototype.call$1$0 = function() {
  88856. return this();
  88857. };
  88858. convertAllToFastObject(holders);
  88859. convertToFastObject($);
  88860. (function(callback) {
  88861. if (typeof document === "undefined") {
  88862. callback(null);
  88863. return;
  88864. }
  88865. if (typeof document.currentScript != 'undefined') {
  88866. callback(document.currentScript);
  88867. return;
  88868. }
  88869. var scripts = document.scripts;
  88870. function onLoad(event) {
  88871. for (var i = 0; i < scripts.length; ++i)
  88872. scripts[i].removeEventListener("load", onLoad, false);
  88873. callback(event.target);
  88874. }
  88875. for (var i = 0; i < scripts.length; ++i)
  88876. scripts[i].addEventListener("load", onLoad, false);
  88877. })(function(currentScript) {
  88878. init.currentScript = currentScript;
  88879. if (typeof dartMainRunner === "function")
  88880. dartMainRunner(R.main0, []);
  88881. else
  88882. R.main0([]);
  88883. });
  88884. })();