1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625736267362773628736297363073631736327363373634736357363673637736387363973640736417364273643736447364573646736477364873649736507365173652736537365473655736567365773658736597366073661736627366373664736657366673667736687366973670736717367273673736747367573676736777367873679736807368173682736837368473685736867368773688736897369073691736927369373694736957369673697736987369973700737017370273703737047370573706737077370873709737107371173712737137371473715737167371773718737197372073721737227372373724737257372673727737287372973730737317373273733737347373573736737377373873739737407374173742737437374473745737467374773748737497375073751737527375373754737557375673757737587375973760737617376273763737647376573766737677376873769737707377173772737737377473775737767377773778737797378073781737827378373784737857378673787737887378973790737917379273793737947379573796737977379873799738007380173802738037380473805738067380773808738097381073811738127381373814738157381673817738187381973820738217382273823738247382573826738277382873829738307383173832738337383473835738367383773838738397384073841738427384373844738457384673847738487384973850738517385273853738547385573856738577385873859738607386173862738637386473865738667386773868738697387073871738727387373874738757387673877738787387973880738817388273883738847388573886738877388873889738907389173892738937389473895738967389773898738997390073901739027390373904739057390673907739087390973910739117391273913739147391573916739177391873919739207392173922739237392473925739267392773928739297393073931739327393373934739357393673937739387393973940739417394273943739447394573946739477394873949739507395173952739537395473955739567395773958739597396073961739627396373964739657396673967739687396973970739717397273973739747397573976739777397873979739807398173982739837398473985739867398773988739897399073991739927399373994739957399673997739987399974000740017400274003740047400574006740077400874009740107401174012740137401474015740167401774018740197402074021740227402374024740257402674027740287402974030740317403274033740347403574036740377403874039740407404174042740437404474045740467404774048740497405074051740527405374054740557405674057740587405974060740617406274063740647406574066740677406874069740707407174072740737407474075740767407774078740797408074081740827408374084740857408674087740887408974090740917409274093740947409574096740977409874099741007410174102741037410474105741067410774108741097411074111741127411374114741157411674117741187411974120741217412274123741247412574126741277412874129741307413174132741337413474135741367413774138741397414074141741427414374144741457414674147741487414974150741517415274153741547415574156741577415874159741607416174162741637416474165741667416774168741697417074171741727417374174741757417674177741787417974180741817418274183741847418574186741877418874189741907419174192741937419474195741967419774198741997420074201742027420374204742057420674207742087420974210742117421274213742147421574216742177421874219742207422174222742237422474225742267422774228742297423074231742327423374234742357423674237742387423974240742417424274243742447424574246742477424874249742507425174252742537425474255742567425774258742597426074261742627426374264742657426674267742687426974270742717427274273742747427574276742777427874279742807428174282742837428474285742867428774288742897429074291742927429374294742957429674297742987429974300743017430274303743047430574306743077430874309743107431174312743137431474315743167431774318743197432074321743227432374324743257432674327743287432974330743317433274333743347433574336743377433874339743407434174342743437434474345743467434774348743497435074351743527435374354743557435674357743587435974360743617436274363743647436574366743677436874369743707437174372743737437474375743767437774378743797438074381743827438374384743857438674387743887438974390743917439274393743947439574396743977439874399744007440174402744037440474405744067440774408744097441074411744127441374414744157441674417744187441974420744217442274423744247442574426744277442874429744307443174432744337443474435744367443774438744397444074441744427444374444744457444674447744487444974450744517445274453744547445574456744577445874459744607446174462744637446474465744667446774468744697447074471744727447374474744757447674477744787447974480744817448274483744847448574486744877448874489744907449174492744937449474495744967449774498744997450074501745027450374504745057450674507745087450974510745117451274513745147451574516745177451874519745207452174522745237452474525745267452774528745297453074531745327453374534745357453674537745387453974540745417454274543745447454574546745477454874549745507455174552745537455474555745567455774558745597456074561745627456374564745657456674567745687456974570745717457274573745747457574576745777457874579745807458174582745837458474585745867458774588745897459074591745927459374594745957459674597745987459974600746017460274603746047460574606746077460874609746107461174612746137461474615746167461774618746197462074621746227462374624746257462674627746287462974630746317463274633746347463574636746377463874639746407464174642746437464474645746467464774648746497465074651746527465374654746557465674657746587465974660746617466274663746647466574666746677466874669746707467174672746737467474675746767467774678746797468074681746827468374684746857468674687746887468974690746917469274693746947469574696746977469874699747007470174702747037470474705747067470774708747097471074711747127471374714747157471674717747187471974720747217472274723747247472574726747277472874729747307473174732747337473474735747367473774738747397474074741747427474374744747457474674747747487474974750747517475274753747547475574756747577475874759747607476174762747637476474765747667476774768747697477074771747727477374774747757477674777747787477974780747817478274783747847478574786747877478874789747907479174792747937479474795747967479774798747997480074801748027480374804748057480674807748087480974810748117481274813748147481574816748177481874819748207482174822748237482474825748267482774828748297483074831748327483374834748357483674837748387483974840748417484274843748447484574846748477484874849748507485174852748537485474855748567485774858748597486074861748627486374864748657486674867748687486974870748717487274873748747487574876748777487874879748807488174882748837488474885748867488774888748897489074891748927489374894748957489674897748987489974900749017490274903749047490574906749077490874909749107491174912749137491474915749167491774918749197492074921749227492374924749257492674927749287492974930749317493274933749347493574936749377493874939749407494174942749437494474945749467494774948749497495074951749527495374954749557495674957749587495974960749617496274963749647496574966749677496874969749707497174972749737497474975749767497774978749797498074981749827498374984749857498674987749887498974990749917499274993749947499574996749977499874999750007500175002750037500475005750067500775008750097501075011750127501375014750157501675017750187501975020750217502275023750247502575026750277502875029750307503175032750337503475035750367503775038750397504075041750427504375044750457504675047750487504975050750517505275053750547505575056750577505875059750607506175062750637506475065750667506775068750697507075071750727507375074750757507675077750787507975080750817508275083750847508575086750877508875089750907509175092750937509475095750967509775098750997510075101751027510375104751057510675107751087510975110751117511275113751147511575116751177511875119751207512175122751237512475125751267512775128751297513075131751327513375134751357513675137751387513975140751417514275143751447514575146751477514875149751507515175152751537515475155751567515775158751597516075161751627516375164751657516675167751687516975170751717517275173751747517575176751777517875179751807518175182751837518475185751867518775188751897519075191751927519375194751957519675197751987519975200752017520275203752047520575206752077520875209752107521175212752137521475215752167521775218752197522075221752227522375224752257522675227752287522975230752317523275233752347523575236752377523875239752407524175242752437524475245752467524775248752497525075251752527525375254752557525675257752587525975260752617526275263752647526575266752677526875269752707527175272752737527475275752767527775278752797528075281752827528375284752857528675287752887528975290752917529275293752947529575296752977529875299753007530175302753037530475305753067530775308753097531075311753127531375314753157531675317753187531975320753217532275323753247532575326753277532875329753307533175332753337533475335753367533775338753397534075341753427534375344753457534675347753487534975350753517535275353753547535575356753577535875359753607536175362753637536475365753667536775368753697537075371753727537375374753757537675377753787537975380753817538275383753847538575386753877538875389753907539175392753937539475395753967539775398753997540075401754027540375404754057540675407754087540975410754117541275413754147541575416754177541875419754207542175422754237542475425754267542775428754297543075431754327543375434754357543675437754387543975440754417544275443754447544575446754477544875449754507545175452754537545475455754567545775458754597546075461754627546375464754657546675467754687546975470754717547275473754747547575476754777547875479754807548175482754837548475485754867548775488754897549075491754927549375494754957549675497754987549975500755017550275503755047550575506755077550875509755107551175512755137551475515755167551775518755197552075521755227552375524755257552675527755287552975530755317553275533755347553575536755377553875539755407554175542755437554475545755467554775548755497555075551755527555375554755557555675557755587555975560755617556275563755647556575566755677556875569755707557175572755737557475575755767557775578755797558075581755827558375584755857558675587755887558975590755917559275593755947559575596755977559875599756007560175602756037560475605756067560775608756097561075611756127561375614756157561675617756187561975620756217562275623756247562575626756277562875629756307563175632756337563475635756367563775638756397564075641756427564375644756457564675647756487564975650756517565275653756547565575656756577565875659756607566175662756637566475665756667566775668756697567075671756727567375674756757567675677756787567975680756817568275683756847568575686756877568875689756907569175692756937569475695756967569775698756997570075701757027570375704757057570675707757087570975710757117571275713757147571575716757177571875719757207572175722757237572475725757267572775728757297573075731757327573375734757357573675737757387573975740757417574275743757447574575746757477574875749757507575175752757537575475755757567575775758757597576075761757627576375764757657576675767757687576975770757717577275773757747577575776757777577875779757807578175782757837578475785757867578775788757897579075791757927579375794757957579675797757987579975800758017580275803758047580575806758077580875809758107581175812758137581475815758167581775818758197582075821758227582375824758257582675827758287582975830758317583275833758347583575836758377583875839758407584175842758437584475845758467584775848758497585075851758527585375854758557585675857758587585975860758617586275863758647586575866758677586875869758707587175872758737587475875758767587775878758797588075881758827588375884758857588675887758887588975890758917589275893758947589575896758977589875899759007590175902759037590475905759067590775908759097591075911759127591375914759157591675917759187591975920759217592275923759247592575926759277592875929759307593175932759337593475935759367593775938759397594075941759427594375944759457594675947759487594975950759517595275953759547595575956759577595875959759607596175962759637596475965759667596775968759697597075971759727597375974759757597675977759787597975980759817598275983759847598575986759877598875989759907599175992759937599475995759967599775998759997600076001760027600376004760057600676007760087600976010760117601276013760147601576016760177601876019760207602176022760237602476025760267602776028760297603076031760327603376034760357603676037760387603976040760417604276043760447604576046760477604876049760507605176052760537605476055760567605776058760597606076061760627606376064760657606676067760687606976070760717607276073760747607576076760777607876079760807608176082760837608476085760867608776088760897609076091760927609376094760957609676097760987609976100761017610276103761047610576106761077610876109761107611176112761137611476115761167611776118761197612076121761227612376124761257612676127761287612976130761317613276133761347613576136761377613876139761407614176142761437614476145761467614776148761497615076151761527615376154761557615676157761587615976160761617616276163761647616576166761677616876169761707617176172761737617476175761767617776178761797618076181761827618376184761857618676187761887618976190761917619276193761947619576196761977619876199762007620176202762037620476205762067620776208762097621076211762127621376214762157621676217762187621976220762217622276223762247622576226762277622876229762307623176232762337623476235762367623776238762397624076241762427624376244762457624676247762487624976250762517625276253762547625576256762577625876259762607626176262762637626476265762667626776268762697627076271762727627376274762757627676277762787627976280762817628276283762847628576286762877628876289762907629176292762937629476295762967629776298762997630076301763027630376304763057630676307763087630976310763117631276313763147631576316763177631876319763207632176322763237632476325763267632776328763297633076331763327633376334763357633676337763387633976340763417634276343763447634576346763477634876349763507635176352763537635476355763567635776358763597636076361763627636376364763657636676367763687636976370763717637276373763747637576376763777637876379763807638176382763837638476385763867638776388763897639076391763927639376394763957639676397763987639976400764017640276403764047640576406764077640876409764107641176412764137641476415764167641776418764197642076421764227642376424764257642676427764287642976430764317643276433764347643576436764377643876439764407644176442764437644476445764467644776448764497645076451764527645376454764557645676457764587645976460764617646276463764647646576466764677646876469764707647176472764737647476475764767647776478764797648076481764827648376484764857648676487764887648976490764917649276493764947649576496764977649876499765007650176502765037650476505765067650776508765097651076511765127651376514765157651676517765187651976520765217652276523765247652576526765277652876529765307653176532765337653476535765367653776538765397654076541765427654376544765457654676547765487654976550765517655276553765547655576556765577655876559765607656176562765637656476565765667656776568765697657076571765727657376574765757657676577765787657976580765817658276583765847658576586765877658876589765907659176592765937659476595765967659776598765997660076601766027660376604766057660676607766087660976610766117661276613766147661576616766177661876619766207662176622766237662476625766267662776628766297663076631766327663376634766357663676637766387663976640766417664276643766447664576646766477664876649766507665176652766537665476655766567665776658766597666076661766627666376664766657666676667766687666976670766717667276673766747667576676766777667876679766807668176682766837668476685766867668776688766897669076691766927669376694766957669676697766987669976700767017670276703767047670576706767077670876709767107671176712767137671476715767167671776718767197672076721767227672376724767257672676727767287672976730767317673276733767347673576736767377673876739767407674176742767437674476745767467674776748767497675076751767527675376754767557675676757767587675976760767617676276763767647676576766767677676876769767707677176772767737677476775767767677776778767797678076781767827678376784767857678676787767887678976790767917679276793767947679576796767977679876799768007680176802768037680476805768067680776808768097681076811768127681376814768157681676817768187681976820768217682276823768247682576826768277682876829768307683176832768337683476835768367683776838768397684076841768427684376844768457684676847768487684976850768517685276853768547685576856768577685876859768607686176862768637686476865768667686776868768697687076871768727687376874768757687676877768787687976880768817688276883768847688576886768877688876889768907689176892768937689476895768967689776898768997690076901769027690376904769057690676907769087690976910769117691276913769147691576916769177691876919769207692176922769237692476925769267692776928769297693076931769327693376934769357693676937769387693976940769417694276943769447694576946769477694876949769507695176952769537695476955769567695776958769597696076961769627696376964769657696676967769687696976970769717697276973769747697576976769777697876979769807698176982769837698476985769867698776988769897699076991769927699376994769957699676997769987699977000770017700277003770047700577006770077700877009770107701177012770137701477015770167701777018770197702077021770227702377024770257702677027770287702977030770317703277033770347703577036770377703877039770407704177042770437704477045770467704777048770497705077051770527705377054770557705677057770587705977060770617706277063770647706577066770677706877069770707707177072770737707477075770767707777078770797708077081770827708377084770857708677087770887708977090770917709277093770947709577096770977709877099771007710177102771037710477105771067710777108771097711077111771127711377114771157711677117771187711977120771217712277123771247712577126771277712877129771307713177132771337713477135771367713777138771397714077141771427714377144771457714677147771487714977150771517715277153771547715577156771577715877159771607716177162771637716477165771667716777168771697717077171771727717377174771757717677177771787717977180771817718277183771847718577186771877718877189771907719177192771937719477195771967719777198771997720077201772027720377204772057720677207772087720977210772117721277213772147721577216772177721877219772207722177222772237722477225772267722777228772297723077231772327723377234772357723677237772387723977240772417724277243772447724577246772477724877249772507725177252772537725477255772567725777258772597726077261772627726377264772657726677267772687726977270772717727277273772747727577276772777727877279772807728177282772837728477285772867728777288772897729077291772927729377294772957729677297772987729977300773017730277303773047730577306773077730877309773107731177312773137731477315773167731777318773197732077321773227732377324773257732677327773287732977330773317733277333773347733577336773377733877339773407734177342773437734477345773467734777348773497735077351773527735377354773557735677357773587735977360773617736277363773647736577366773677736877369773707737177372773737737477375773767737777378773797738077381773827738377384773857738677387773887738977390773917739277393773947739577396773977739877399774007740177402774037740477405774067740777408774097741077411774127741377414774157741677417774187741977420774217742277423774247742577426774277742877429774307743177432774337743477435774367743777438774397744077441774427744377444774457744677447774487744977450774517745277453774547745577456774577745877459774607746177462774637746477465774667746777468774697747077471774727747377474774757747677477774787747977480774817748277483774847748577486774877748877489774907749177492774937749477495774967749777498774997750077501775027750377504775057750677507775087750977510775117751277513775147751577516775177751877519775207752177522775237752477525775267752777528775297753077531775327753377534775357753677537775387753977540775417754277543775447754577546775477754877549775507755177552775537755477555775567755777558775597756077561775627756377564775657756677567775687756977570775717757277573775747757577576775777757877579775807758177582775837758477585775867758777588775897759077591775927759377594775957759677597775987759977600776017760277603776047760577606776077760877609776107761177612776137761477615776167761777618776197762077621776227762377624776257762677627776287762977630776317763277633776347763577636776377763877639776407764177642776437764477645776467764777648776497765077651776527765377654776557765677657776587765977660776617766277663776647766577666776677766877669776707767177672776737767477675776767767777678776797768077681776827768377684776857768677687776887768977690776917769277693776947769577696776977769877699777007770177702777037770477705777067770777708777097771077711777127771377714777157771677717777187771977720777217772277723777247772577726777277772877729777307773177732777337773477735777367773777738777397774077741777427774377744777457774677747777487774977750777517775277753777547775577756777577775877759777607776177762777637776477765777667776777768777697777077771777727777377774777757777677777777787777977780777817778277783777847778577786777877778877789777907779177792777937779477795777967779777798777997780077801778027780377804778057780677807778087780977810778117781277813778147781577816778177781877819778207782177822778237782477825778267782777828778297783077831778327783377834778357783677837778387783977840778417784277843778447784577846778477784877849778507785177852778537785477855778567785777858778597786077861778627786377864778657786677867778687786977870778717787277873778747787577876778777787877879778807788177882778837788477885778867788777888778897789077891778927789377894778957789677897778987789977900779017790277903779047790577906779077790877909779107791177912779137791477915779167791777918779197792077921779227792377924779257792677927779287792977930779317793277933779347793577936779377793877939779407794177942779437794477945779467794777948779497795077951779527795377954779557795677957779587795977960779617796277963779647796577966779677796877969779707797177972779737797477975779767797777978779797798077981779827798377984779857798677987779887798977990779917799277993779947799577996779977799877999780007800178002780037800478005780067800778008780097801078011780127801378014780157801678017780187801978020780217802278023780247802578026780277802878029780307803178032780337803478035780367803778038780397804078041780427804378044780457804678047780487804978050780517805278053780547805578056780577805878059780607806178062780637806478065780667806778068780697807078071780727807378074780757807678077780787807978080780817808278083780847808578086780877808878089780907809178092780937809478095780967809778098780997810078101781027810378104781057810678107781087810978110781117811278113781147811578116781177811878119781207812178122781237812478125781267812778128781297813078131781327813378134781357813678137781387813978140781417814278143781447814578146781477814878149781507815178152781537815478155781567815778158781597816078161781627816378164781657816678167781687816978170781717817278173781747817578176781777817878179781807818178182781837818478185781867818778188781897819078191781927819378194781957819678197781987819978200782017820278203782047820578206782077820878209782107821178212782137821478215782167821778218782197822078221782227822378224782257822678227782287822978230782317823278233782347823578236782377823878239782407824178242782437824478245782467824778248782497825078251782527825378254782557825678257782587825978260782617826278263782647826578266782677826878269782707827178272782737827478275782767827778278782797828078281782827828378284782857828678287782887828978290782917829278293782947829578296782977829878299783007830178302783037830478305783067830778308783097831078311783127831378314783157831678317783187831978320783217832278323783247832578326783277832878329783307833178332783337833478335783367833778338783397834078341783427834378344783457834678347783487834978350783517835278353783547835578356783577835878359783607836178362783637836478365783667836778368783697837078371783727837378374783757837678377783787837978380783817838278383783847838578386783877838878389783907839178392783937839478395783967839778398783997840078401784027840378404784057840678407784087840978410784117841278413784147841578416784177841878419784207842178422784237842478425784267842778428784297843078431784327843378434784357843678437784387843978440784417844278443784447844578446784477844878449784507845178452784537845478455784567845778458784597846078461784627846378464784657846678467784687846978470784717847278473784747847578476784777847878479784807848178482784837848478485784867848778488784897849078491784927849378494784957849678497784987849978500785017850278503785047850578506785077850878509785107851178512785137851478515785167851778518785197852078521785227852378524785257852678527785287852978530785317853278533785347853578536785377853878539785407854178542785437854478545785467854778548785497855078551785527855378554785557855678557785587855978560785617856278563785647856578566785677856878569785707857178572785737857478575785767857778578785797858078581785827858378584785857858678587785887858978590785917859278593785947859578596785977859878599786007860178602786037860478605786067860778608786097861078611786127861378614786157861678617786187861978620786217862278623786247862578626786277862878629786307863178632786337863478635786367863778638786397864078641786427864378644786457864678647786487864978650786517865278653786547865578656786577865878659786607866178662786637866478665786667866778668786697867078671786727867378674786757867678677786787867978680786817868278683786847868578686786877868878689786907869178692786937869478695786967869778698786997870078701787027870378704787057870678707787087870978710787117871278713787147871578716787177871878719787207872178722787237872478725787267872778728787297873078731787327873378734787357873678737787387873978740787417874278743787447874578746787477874878749787507875178752787537875478755787567875778758787597876078761787627876378764787657876678767787687876978770787717877278773787747877578776787777877878779787807878178782787837878478785787867878778788787897879078791787927879378794787957879678797787987879978800788017880278803788047880578806788077880878809788107881178812788137881478815788167881778818788197882078821788227882378824788257882678827788287882978830788317883278833788347883578836788377883878839788407884178842788437884478845788467884778848788497885078851788527885378854788557885678857788587885978860788617886278863788647886578866788677886878869788707887178872788737887478875788767887778878788797888078881788827888378884788857888678887788887888978890788917889278893788947889578896788977889878899789007890178902789037890478905789067890778908789097891078911789127891378914789157891678917789187891978920789217892278923789247892578926789277892878929789307893178932789337893478935789367893778938789397894078941789427894378944789457894678947789487894978950789517895278953789547895578956789577895878959789607896178962789637896478965789667896778968789697897078971789727897378974789757897678977789787897978980789817898278983789847898578986789877898878989789907899178992789937899478995789967899778998789997900079001790027900379004790057900679007790087900979010790117901279013790147901579016790177901879019790207902179022790237902479025790267902779028790297903079031790327903379034790357903679037790387903979040790417904279043790447904579046790477904879049790507905179052790537905479055790567905779058790597906079061790627906379064790657906679067790687906979070790717907279073790747907579076790777907879079790807908179082790837908479085790867908779088790897909079091790927909379094790957909679097790987909979100791017910279103791047910579106791077910879109791107911179112791137911479115791167911779118791197912079121791227912379124791257912679127791287912979130791317913279133791347913579136791377913879139791407914179142791437914479145791467914779148791497915079151791527915379154791557915679157791587915979160791617916279163791647916579166791677916879169791707917179172791737917479175791767917779178791797918079181791827918379184791857918679187791887918979190791917919279193791947919579196791977919879199792007920179202792037920479205792067920779208792097921079211792127921379214792157921679217792187921979220792217922279223792247922579226792277922879229792307923179232792337923479235792367923779238792397924079241792427924379244792457924679247792487924979250792517925279253792547925579256792577925879259792607926179262792637926479265792667926779268792697927079271792727927379274792757927679277792787927979280792817928279283792847928579286792877928879289792907929179292792937929479295792967929779298792997930079301793027930379304793057930679307793087930979310793117931279313793147931579316793177931879319793207932179322793237932479325793267932779328793297933079331793327933379334793357933679337793387933979340793417934279343793447934579346793477934879349793507935179352793537935479355793567935779358793597936079361793627936379364793657936679367793687936979370793717937279373793747937579376793777937879379793807938179382793837938479385793867938779388793897939079391793927939379394793957939679397793987939979400794017940279403794047940579406794077940879409794107941179412794137941479415794167941779418794197942079421794227942379424794257942679427794287942979430794317943279433794347943579436794377943879439794407944179442794437944479445794467944779448794497945079451794527945379454794557945679457794587945979460794617946279463794647946579466794677946879469794707947179472794737947479475794767947779478794797948079481794827948379484794857948679487794887948979490794917949279493794947949579496794977949879499795007950179502795037950479505795067950779508795097951079511795127951379514795157951679517795187951979520795217952279523795247952579526795277952879529795307953179532795337953479535795367953779538795397954079541795427954379544795457954679547795487954979550795517955279553795547955579556795577955879559795607956179562795637956479565795667956779568795697957079571795727957379574795757957679577795787957979580795817958279583795847958579586795877958879589795907959179592795937959479595795967959779598795997960079601796027960379604796057960679607796087960979610796117961279613796147961579616796177961879619796207962179622796237962479625796267962779628796297963079631796327963379634796357963679637796387963979640796417964279643796447964579646796477964879649796507965179652796537965479655796567965779658796597966079661796627966379664796657966679667796687966979670796717967279673796747967579676796777967879679796807968179682796837968479685796867968779688796897969079691796927969379694796957969679697796987969979700797017970279703797047970579706797077970879709797107971179712797137971479715797167971779718797197972079721797227972379724797257972679727797287972979730797317973279733797347973579736797377973879739797407974179742797437974479745797467974779748797497975079751797527975379754797557975679757797587975979760797617976279763797647976579766797677976879769797707977179772797737977479775797767977779778797797978079781797827978379784797857978679787797887978979790797917979279793797947979579796797977979879799798007980179802798037980479805798067980779808798097981079811798127981379814798157981679817798187981979820798217982279823798247982579826798277982879829798307983179832798337983479835798367983779838798397984079841798427984379844798457984679847798487984979850798517985279853798547985579856798577985879859798607986179862798637986479865798667986779868798697987079871798727987379874798757987679877798787987979880798817988279883798847988579886798877988879889798907989179892798937989479895798967989779898798997990079901799027990379904799057990679907799087990979910799117991279913799147991579916799177991879919799207992179922799237992479925799267992779928799297993079931799327993379934799357993679937799387993979940799417994279943799447994579946799477994879949799507995179952799537995479955799567995779958799597996079961799627996379964799657996679967799687996979970799717997279973799747997579976799777997879979799807998179982799837998479985799867998779988799897999079991799927999379994799957999679997799987999980000800018000280003800048000580006800078000880009800108001180012800138001480015800168001780018800198002080021800228002380024800258002680027800288002980030800318003280033800348003580036800378003880039800408004180042800438004480045800468004780048800498005080051800528005380054800558005680057800588005980060800618006280063800648006580066800678006880069800708007180072800738007480075800768007780078800798008080081800828008380084800858008680087800888008980090800918009280093800948009580096800978009880099801008010180102801038010480105801068010780108801098011080111801128011380114801158011680117801188011980120801218012280123801248012580126801278012880129801308013180132801338013480135801368013780138801398014080141801428014380144801458014680147801488014980150801518015280153801548015580156801578015880159801608016180162801638016480165801668016780168801698017080171801728017380174801758017680177801788017980180801818018280183801848018580186801878018880189801908019180192801938019480195801968019780198801998020080201802028020380204802058020680207802088020980210802118021280213802148021580216802178021880219802208022180222802238022480225802268022780228802298023080231802328023380234802358023680237802388023980240802418024280243802448024580246802478024880249802508025180252802538025480255802568025780258802598026080261802628026380264802658026680267802688026980270802718027280273802748027580276802778027880279802808028180282802838028480285802868028780288802898029080291802928029380294802958029680297802988029980300803018030280303803048030580306803078030880309803108031180312803138031480315803168031780318803198032080321803228032380324803258032680327803288032980330803318033280333803348033580336803378033880339803408034180342803438034480345803468034780348803498035080351803528035380354803558035680357803588035980360803618036280363803648036580366803678036880369803708037180372803738037480375803768037780378803798038080381803828038380384803858038680387803888038980390803918039280393803948039580396803978039880399804008040180402804038040480405804068040780408804098041080411804128041380414804158041680417804188041980420804218042280423804248042580426804278042880429804308043180432804338043480435804368043780438804398044080441804428044380444804458044680447804488044980450804518045280453804548045580456804578045880459804608046180462804638046480465804668046780468804698047080471804728047380474804758047680477804788047980480804818048280483804848048580486804878048880489804908049180492804938049480495804968049780498804998050080501805028050380504805058050680507805088050980510805118051280513805148051580516805178051880519805208052180522805238052480525805268052780528805298053080531805328053380534805358053680537805388053980540805418054280543805448054580546805478054880549805508055180552805538055480555805568055780558805598056080561805628056380564805658056680567805688056980570805718057280573805748057580576805778057880579805808058180582805838058480585805868058780588805898059080591805928059380594805958059680597805988059980600806018060280603806048060580606806078060880609806108061180612806138061480615806168061780618806198062080621806228062380624806258062680627806288062980630806318063280633806348063580636806378063880639806408064180642806438064480645806468064780648806498065080651806528065380654806558065680657806588065980660806618066280663806648066580666806678066880669806708067180672806738067480675806768067780678806798068080681806828068380684806858068680687806888068980690806918069280693806948069580696806978069880699807008070180702807038070480705807068070780708807098071080711807128071380714807158071680717807188071980720807218072280723807248072580726807278072880729807308073180732807338073480735807368073780738807398074080741807428074380744807458074680747807488074980750807518075280753807548075580756807578075880759807608076180762807638076480765807668076780768807698077080771807728077380774807758077680777807788077980780807818078280783807848078580786807878078880789807908079180792807938079480795807968079780798807998080080801808028080380804808058080680807808088080980810808118081280813808148081580816808178081880819808208082180822808238082480825808268082780828808298083080831808328083380834808358083680837808388083980840808418084280843808448084580846808478084880849808508085180852808538085480855808568085780858808598086080861808628086380864808658086680867808688086980870808718087280873808748087580876808778087880879808808088180882808838088480885808868088780888808898089080891808928089380894808958089680897808988089980900809018090280903809048090580906809078090880909809108091180912809138091480915809168091780918809198092080921809228092380924809258092680927809288092980930809318093280933809348093580936809378093880939809408094180942809438094480945809468094780948809498095080951809528095380954809558095680957809588095980960809618096280963809648096580966809678096880969809708097180972809738097480975809768097780978809798098080981809828098380984809858098680987809888098980990809918099280993809948099580996809978099880999810008100181002810038100481005810068100781008810098101081011810128101381014810158101681017810188101981020810218102281023810248102581026810278102881029810308103181032810338103481035810368103781038810398104081041810428104381044810458104681047810488104981050810518105281053810548105581056810578105881059810608106181062810638106481065810668106781068810698107081071810728107381074810758107681077810788107981080810818108281083810848108581086810878108881089810908109181092810938109481095810968109781098810998110081101811028110381104811058110681107811088110981110811118111281113811148111581116811178111881119811208112181122811238112481125811268112781128811298113081131811328113381134811358113681137811388113981140811418114281143811448114581146811478114881149811508115181152811538115481155811568115781158811598116081161811628116381164811658116681167811688116981170811718117281173811748117581176811778117881179811808118181182811838118481185811868118781188811898119081191811928119381194811958119681197811988119981200812018120281203812048120581206812078120881209812108121181212812138121481215812168121781218812198122081221812228122381224812258122681227812288122981230812318123281233812348123581236812378123881239812408124181242812438124481245812468124781248812498125081251812528125381254812558125681257812588125981260812618126281263812648126581266812678126881269812708127181272812738127481275812768127781278812798128081281812828128381284812858128681287812888128981290812918129281293812948129581296812978129881299813008130181302813038130481305813068130781308813098131081311813128131381314813158131681317813188131981320813218132281323813248132581326813278132881329813308133181332813338133481335813368133781338813398134081341813428134381344813458134681347813488134981350813518135281353813548135581356813578135881359813608136181362813638136481365813668136781368813698137081371813728137381374813758137681377813788137981380813818138281383813848138581386813878138881389813908139181392813938139481395813968139781398813998140081401814028140381404814058140681407814088140981410814118141281413814148141581416814178141881419814208142181422814238142481425814268142781428814298143081431814328143381434814358143681437814388143981440814418144281443814448144581446814478144881449814508145181452814538145481455814568145781458814598146081461814628146381464814658146681467814688146981470814718147281473814748147581476814778147881479814808148181482814838148481485814868148781488814898149081491814928149381494814958149681497814988149981500815018150281503815048150581506815078150881509815108151181512815138151481515815168151781518815198152081521815228152381524815258152681527815288152981530815318153281533815348153581536815378153881539815408154181542815438154481545815468154781548815498155081551815528155381554815558155681557815588155981560815618156281563815648156581566815678156881569815708157181572815738157481575815768157781578815798158081581815828158381584815858158681587815888158981590815918159281593815948159581596815978159881599816008160181602816038160481605816068160781608816098161081611816128161381614816158161681617816188161981620816218162281623816248162581626816278162881629816308163181632816338163481635816368163781638816398164081641816428164381644816458164681647816488164981650816518165281653816548165581656816578165881659816608166181662816638166481665816668166781668816698167081671816728167381674816758167681677816788167981680816818168281683816848168581686816878168881689816908169181692816938169481695816968169781698816998170081701817028170381704817058170681707817088170981710817118171281713817148171581716817178171881719817208172181722817238172481725817268172781728817298173081731817328173381734817358173681737817388173981740817418174281743817448174581746817478174881749817508175181752817538175481755817568175781758817598176081761817628176381764817658176681767817688176981770817718177281773817748177581776817778177881779817808178181782817838178481785817868178781788817898179081791817928179381794817958179681797817988179981800818018180281803818048180581806818078180881809818108181181812818138181481815818168181781818818198182081821818228182381824818258182681827818288182981830818318183281833818348183581836818378183881839818408184181842818438184481845818468184781848818498185081851818528185381854818558185681857818588185981860818618186281863818648186581866818678186881869818708187181872818738187481875818768187781878818798188081881818828188381884818858188681887818888188981890818918189281893818948189581896818978189881899819008190181902819038190481905819068190781908819098191081911819128191381914819158191681917819188191981920819218192281923819248192581926819278192881929819308193181932819338193481935819368193781938819398194081941819428194381944819458194681947819488194981950819518195281953819548195581956819578195881959819608196181962819638196481965819668196781968819698197081971819728197381974819758197681977819788197981980819818198281983819848198581986819878198881989819908199181992819938199481995819968199781998819998200082001820028200382004820058200682007820088200982010820118201282013820148201582016820178201882019820208202182022820238202482025820268202782028820298203082031820328203382034820358203682037820388203982040820418204282043820448204582046820478204882049820508205182052820538205482055820568205782058820598206082061820628206382064820658206682067820688206982070820718207282073820748207582076820778207882079820808208182082820838208482085820868208782088820898209082091820928209382094820958209682097820988209982100821018210282103821048210582106821078210882109821108211182112821138211482115821168211782118821198212082121821228212382124821258212682127821288212982130821318213282133821348213582136821378213882139821408214182142821438214482145821468214782148821498215082151821528215382154821558215682157821588215982160821618216282163821648216582166821678216882169821708217182172821738217482175821768217782178821798218082181821828218382184821858218682187821888218982190821918219282193821948219582196821978219882199822008220182202822038220482205822068220782208822098221082211822128221382214822158221682217822188221982220822218222282223822248222582226822278222882229822308223182232822338223482235822368223782238822398224082241822428224382244822458224682247822488224982250822518225282253822548225582256822578225882259822608226182262822638226482265822668226782268822698227082271822728227382274822758227682277822788227982280822818228282283822848228582286822878228882289822908229182292822938229482295822968229782298822998230082301823028230382304823058230682307823088230982310823118231282313823148231582316823178231882319823208232182322823238232482325823268232782328823298233082331823328233382334823358233682337823388233982340823418234282343823448234582346823478234882349823508235182352823538235482355823568235782358823598236082361823628236382364823658236682367823688236982370823718237282373823748237582376823778237882379823808238182382823838238482385823868238782388823898239082391823928239382394823958239682397823988239982400824018240282403824048240582406824078240882409824108241182412824138241482415824168241782418824198242082421824228242382424824258242682427824288242982430824318243282433824348243582436824378243882439824408244182442824438244482445824468244782448824498245082451824528245382454824558245682457824588245982460824618246282463824648246582466824678246882469824708247182472824738247482475824768247782478824798248082481824828248382484824858248682487824888248982490824918249282493824948249582496824978249882499825008250182502825038250482505825068250782508825098251082511825128251382514825158251682517825188251982520825218252282523825248252582526825278252882529825308253182532825338253482535825368253782538825398254082541825428254382544825458254682547825488254982550825518255282553825548255582556825578255882559825608256182562825638256482565825668256782568825698257082571825728257382574825758257682577825788257982580825818258282583825848258582586825878258882589825908259182592825938259482595825968259782598825998260082601826028260382604826058260682607826088260982610826118261282613826148261582616826178261882619826208262182622826238262482625826268262782628826298263082631826328263382634826358263682637826388263982640826418264282643826448264582646826478264882649826508265182652826538265482655826568265782658826598266082661826628266382664826658266682667826688266982670826718267282673826748267582676826778267882679826808268182682826838268482685826868268782688826898269082691826928269382694826958269682697826988269982700827018270282703827048270582706827078270882709827108271182712827138271482715827168271782718827198272082721827228272382724827258272682727827288272982730827318273282733827348273582736827378273882739827408274182742827438274482745827468274782748827498275082751827528275382754827558275682757827588275982760827618276282763827648276582766827678276882769827708277182772827738277482775827768277782778827798278082781827828278382784827858278682787827888278982790827918279282793827948279582796827978279882799828008280182802828038280482805828068280782808828098281082811828128281382814828158281682817828188281982820828218282282823828248282582826828278282882829828308283182832828338283482835828368283782838828398284082841828428284382844828458284682847828488284982850828518285282853828548285582856828578285882859828608286182862828638286482865828668286782868828698287082871828728287382874828758287682877828788287982880828818288282883828848288582886828878288882889828908289182892828938289482895828968289782898828998290082901829028290382904829058290682907829088290982910829118291282913829148291582916829178291882919829208292182922829238292482925829268292782928829298293082931829328293382934829358293682937829388293982940829418294282943829448294582946829478294882949829508295182952829538295482955829568295782958829598296082961829628296382964829658296682967829688296982970829718297282973829748297582976829778297882979829808298182982829838298482985829868298782988829898299082991829928299382994829958299682997829988299983000830018300283003830048300583006830078300883009830108301183012830138301483015830168301783018830198302083021830228302383024830258302683027830288302983030830318303283033830348303583036830378303883039830408304183042830438304483045830468304783048830498305083051830528305383054830558305683057830588305983060830618306283063830648306583066830678306883069830708307183072830738307483075830768307783078830798308083081830828308383084830858308683087830888308983090830918309283093830948309583096830978309883099831008310183102831038310483105831068310783108831098311083111831128311383114831158311683117831188311983120831218312283123831248312583126831278312883129831308313183132831338313483135831368313783138831398314083141831428314383144831458314683147831488314983150831518315283153831548315583156831578315883159831608316183162831638316483165831668316783168831698317083171831728317383174831758317683177831788317983180831818318283183831848318583186831878318883189831908319183192831938319483195831968319783198831998320083201832028320383204832058320683207832088320983210832118321283213832148321583216832178321883219832208322183222832238322483225832268322783228832298323083231832328323383234832358323683237832388323983240832418324283243832448324583246832478324883249832508325183252832538325483255832568325783258832598326083261832628326383264832658326683267832688326983270832718327283273832748327583276832778327883279832808328183282832838328483285832868328783288832898329083291832928329383294832958329683297832988329983300833018330283303833048330583306833078330883309833108331183312833138331483315833168331783318833198332083321833228332383324833258332683327833288332983330833318333283333833348333583336833378333883339833408334183342833438334483345833468334783348833498335083351833528335383354833558335683357833588335983360833618336283363833648336583366833678336883369833708337183372833738337483375833768337783378833798338083381833828338383384833858338683387833888338983390833918339283393833948339583396833978339883399834008340183402834038340483405834068340783408834098341083411834128341383414834158341683417834188341983420834218342283423834248342583426834278342883429834308343183432834338343483435834368343783438834398344083441834428344383444834458344683447834488344983450834518345283453834548345583456834578345883459834608346183462834638346483465834668346783468834698347083471834728347383474834758347683477834788347983480834818348283483834848348583486834878348883489834908349183492834938349483495834968349783498834998350083501835028350383504835058350683507835088350983510835118351283513835148351583516835178351883519835208352183522835238352483525835268352783528835298353083531835328353383534835358353683537835388353983540835418354283543835448354583546835478354883549835508355183552835538355483555835568355783558835598356083561835628356383564835658356683567835688356983570835718357283573835748357583576835778357883579835808358183582835838358483585835868358783588835898359083591835928359383594835958359683597835988359983600836018360283603836048360583606836078360883609836108361183612836138361483615836168361783618836198362083621836228362383624836258362683627836288362983630836318363283633836348363583636836378363883639836408364183642836438364483645836468364783648836498365083651836528365383654836558365683657836588365983660836618366283663836648366583666836678366883669836708367183672836738367483675836768367783678836798368083681836828368383684836858368683687836888368983690836918369283693836948369583696836978369883699837008370183702837038370483705837068370783708837098371083711837128371383714837158371683717837188371983720837218372283723837248372583726837278372883729837308373183732837338373483735837368373783738837398374083741837428374383744837458374683747837488374983750837518375283753837548375583756837578375883759837608376183762837638376483765837668376783768837698377083771837728377383774837758377683777837788377983780837818378283783837848378583786837878378883789837908379183792837938379483795837968379783798837998380083801838028380383804838058380683807838088380983810838118381283813838148381583816838178381883819838208382183822838238382483825838268382783828838298383083831838328383383834838358383683837838388383983840838418384283843838448384583846838478384883849838508385183852838538385483855838568385783858838598386083861838628386383864838658386683867838688386983870838718387283873838748387583876838778387883879838808388183882838838388483885838868388783888838898389083891838928389383894838958389683897838988389983900839018390283903839048390583906839078390883909839108391183912839138391483915839168391783918839198392083921839228392383924839258392683927839288392983930839318393283933839348393583936839378393883939839408394183942839438394483945839468394783948839498395083951839528395383954839558395683957839588395983960839618396283963839648396583966839678396883969839708397183972839738397483975839768397783978839798398083981839828398383984839858398683987839888398983990839918399283993839948399583996839978399883999840008400184002840038400484005840068400784008840098401084011840128401384014840158401684017840188401984020840218402284023840248402584026840278402884029840308403184032840338403484035840368403784038840398404084041840428404384044840458404684047840488404984050840518405284053840548405584056840578405884059840608406184062840638406484065840668406784068840698407084071840728407384074840758407684077840788407984080840818408284083840848408584086840878408884089840908409184092840938409484095840968409784098840998410084101841028410384104841058410684107841088410984110841118411284113841148411584116841178411884119841208412184122841238412484125841268412784128841298413084131841328413384134841358413684137841388413984140841418414284143841448414584146841478414884149841508415184152841538415484155841568415784158841598416084161841628416384164841658416684167841688416984170841718417284173841748417584176841778417884179841808418184182841838418484185841868418784188841898419084191841928419384194841958419684197841988419984200842018420284203842048420584206842078420884209842108421184212842138421484215842168421784218842198422084221842228422384224842258422684227842288422984230842318423284233842348423584236842378423884239842408424184242842438424484245842468424784248842498425084251842528425384254842558425684257842588425984260842618426284263842648426584266842678426884269842708427184272842738427484275842768427784278842798428084281842828428384284842858428684287842888428984290842918429284293842948429584296842978429884299843008430184302843038430484305843068430784308843098431084311843128431384314843158431684317843188431984320843218432284323843248432584326843278432884329843308433184332843338433484335843368433784338843398434084341843428434384344843458434684347843488434984350843518435284353843548435584356843578435884359843608436184362843638436484365843668436784368843698437084371843728437384374843758437684377843788437984380843818438284383843848438584386843878438884389843908439184392843938439484395843968439784398843998440084401844028440384404844058440684407844088440984410844118441284413844148441584416844178441884419844208442184422844238442484425844268442784428844298443084431844328443384434844358443684437844388443984440844418444284443844448444584446844478444884449844508445184452844538445484455844568445784458844598446084461844628446384464844658446684467844688446984470844718447284473844748447584476844778447884479844808448184482844838448484485844868448784488844898449084491844928449384494844958449684497844988449984500845018450284503845048450584506845078450884509845108451184512845138451484515845168451784518845198452084521845228452384524845258452684527845288452984530845318453284533845348453584536845378453884539845408454184542845438454484545845468454784548845498455084551845528455384554845558455684557845588455984560845618456284563845648456584566845678456884569845708457184572845738457484575845768457784578845798458084581845828458384584845858458684587845888458984590845918459284593845948459584596845978459884599846008460184602846038460484605846068460784608846098461084611846128461384614846158461684617846188461984620846218462284623846248462584626846278462884629846308463184632846338463484635846368463784638846398464084641846428464384644846458464684647846488464984650846518465284653846548465584656846578465884659846608466184662846638466484665846668466784668846698467084671846728467384674846758467684677846788467984680846818468284683846848468584686846878468884689846908469184692846938469484695846968469784698846998470084701847028470384704847058470684707847088470984710847118471284713847148471584716847178471884719847208472184722847238472484725847268472784728847298473084731847328473384734847358473684737847388473984740847418474284743847448474584746847478474884749847508475184752847538475484755847568475784758847598476084761847628476384764847658476684767847688476984770847718477284773847748477584776847778477884779847808478184782847838478484785847868478784788847898479084791847928479384794847958479684797847988479984800848018480284803848048480584806848078480884809848108481184812848138481484815848168481784818848198482084821848228482384824848258482684827848288482984830848318483284833848348483584836848378483884839848408484184842848438484484845848468484784848848498485084851848528485384854848558485684857848588485984860848618486284863848648486584866848678486884869848708487184872848738487484875848768487784878848798488084881848828488384884848858488684887848888488984890848918489284893848948489584896848978489884899849008490184902849038490484905849068490784908849098491084911849128491384914849158491684917849188491984920849218492284923849248492584926849278492884929849308493184932849338493484935849368493784938849398494084941849428494384944849458494684947849488494984950849518495284953849548495584956849578495884959849608496184962849638496484965849668496784968849698497084971849728497384974849758497684977849788497984980849818498284983849848498584986849878498884989849908499184992849938499484995849968499784998849998500085001850028500385004850058500685007850088500985010850118501285013850148501585016850178501885019850208502185022850238502485025850268502785028850298503085031850328503385034850358503685037850388503985040850418504285043850448504585046850478504885049850508505185052850538505485055850568505785058850598506085061850628506385064850658506685067850688506985070850718507285073850748507585076850778507885079850808508185082850838508485085850868508785088850898509085091850928509385094850958509685097850988509985100851018510285103851048510585106851078510885109851108511185112851138511485115851168511785118851198512085121851228512385124851258512685127851288512985130851318513285133851348513585136851378513885139851408514185142851438514485145851468514785148851498515085151851528515385154851558515685157851588515985160851618516285163851648516585166851678516885169851708517185172851738517485175851768517785178851798518085181851828518385184851858518685187851888518985190851918519285193851948519585196851978519885199852008520185202852038520485205852068520785208852098521085211852128521385214852158521685217852188521985220852218522285223852248522585226852278522885229852308523185232852338523485235852368523785238852398524085241852428524385244852458524685247852488524985250852518525285253852548525585256852578525885259852608526185262852638526485265852668526785268852698527085271852728527385274852758527685277852788527985280852818528285283852848528585286852878528885289852908529185292852938529485295852968529785298852998530085301853028530385304853058530685307853088530985310853118531285313853148531585316853178531885319853208532185322853238532485325853268532785328853298533085331853328533385334853358533685337853388533985340853418534285343853448534585346853478534885349853508535185352853538535485355853568535785358853598536085361853628536385364853658536685367853688536985370853718537285373853748537585376853778537885379853808538185382853838538485385853868538785388853898539085391853928539385394853958539685397853988539985400854018540285403854048540585406854078540885409854108541185412854138541485415854168541785418854198542085421854228542385424854258542685427854288542985430854318543285433854348543585436854378543885439854408544185442854438544485445854468544785448854498545085451854528545385454854558545685457854588545985460854618546285463854648546585466854678546885469854708547185472854738547485475854768547785478854798548085481854828548385484854858548685487854888548985490854918549285493854948549585496854978549885499855008550185502855038550485505855068550785508855098551085511855128551385514855158551685517855188551985520855218552285523855248552585526855278552885529855308553185532855338553485535855368553785538855398554085541855428554385544855458554685547855488554985550855518555285553855548555585556855578555885559855608556185562855638556485565855668556785568855698557085571855728557385574855758557685577855788557985580855818558285583855848558585586855878558885589855908559185592855938559485595855968559785598855998560085601856028560385604856058560685607856088560985610856118561285613856148561585616856178561885619856208562185622856238562485625856268562785628856298563085631856328563385634856358563685637856388563985640856418564285643856448564585646856478564885649856508565185652856538565485655856568565785658856598566085661856628566385664856658566685667856688566985670856718567285673856748567585676856778567885679856808568185682856838568485685856868568785688856898569085691856928569385694856958569685697856988569985700857018570285703857048570585706857078570885709857108571185712857138571485715857168571785718857198572085721857228572385724857258572685727857288572985730857318573285733857348573585736857378573885739857408574185742857438574485745857468574785748857498575085751857528575385754857558575685757857588575985760857618576285763857648576585766857678576885769857708577185772857738577485775857768577785778857798578085781857828578385784857858578685787857888578985790857918579285793857948579585796857978579885799858008580185802858038580485805858068580785808858098581085811858128581385814858158581685817858188581985820858218582285823858248582585826858278582885829858308583185832858338583485835858368583785838858398584085841858428584385844858458584685847858488584985850858518585285853858548585585856858578585885859858608586185862858638586485865858668586785868858698587085871858728587385874858758587685877858788587985880858818588285883858848588585886858878588885889858908589185892858938589485895858968589785898858998590085901859028590385904859058590685907859088590985910859118591285913859148591585916859178591885919859208592185922859238592485925859268592785928859298593085931859328593385934859358593685937859388593985940859418594285943859448594585946859478594885949859508595185952859538595485955859568595785958859598596085961859628596385964859658596685967859688596985970859718597285973859748597585976859778597885979859808598185982859838598485985859868598785988859898599085991859928599385994859958599685997859988599986000860018600286003860048600586006860078600886009860108601186012860138601486015860168601786018860198602086021860228602386024860258602686027860288602986030860318603286033860348603586036860378603886039860408604186042860438604486045860468604786048860498605086051860528605386054860558605686057860588605986060860618606286063860648606586066860678606886069860708607186072860738607486075860768607786078860798608086081860828608386084860858608686087860888608986090860918609286093860948609586096860978609886099861008610186102861038610486105861068610786108861098611086111861128611386114861158611686117861188611986120861218612286123861248612586126861278612886129861308613186132861338613486135861368613786138861398614086141861428614386144861458614686147861488614986150861518615286153861548615586156861578615886159861608616186162861638616486165861668616786168861698617086171861728617386174861758617686177861788617986180861818618286183861848618586186861878618886189861908619186192861938619486195861968619786198861998620086201862028620386204862058620686207862088620986210862118621286213862148621586216862178621886219862208622186222862238622486225862268622786228862298623086231862328623386234862358623686237862388623986240862418624286243862448624586246862478624886249862508625186252862538625486255862568625786258862598626086261862628626386264862658626686267862688626986270862718627286273862748627586276862778627886279862808628186282862838628486285862868628786288862898629086291862928629386294862958629686297862988629986300863018630286303863048630586306863078630886309863108631186312863138631486315863168631786318863198632086321863228632386324863258632686327863288632986330863318633286333863348633586336863378633886339863408634186342863438634486345863468634786348863498635086351863528635386354863558635686357863588635986360863618636286363863648636586366863678636886369863708637186372863738637486375863768637786378863798638086381863828638386384863858638686387863888638986390863918639286393863948639586396863978639886399864008640186402864038640486405864068640786408864098641086411864128641386414864158641686417864188641986420864218642286423864248642586426864278642886429864308643186432864338643486435864368643786438864398644086441864428644386444864458644686447864488644986450864518645286453864548645586456864578645886459864608646186462864638646486465864668646786468864698647086471864728647386474864758647686477864788647986480864818648286483864848648586486864878648886489864908649186492864938649486495864968649786498864998650086501865028650386504865058650686507865088650986510865118651286513865148651586516865178651886519865208652186522865238652486525865268652786528865298653086531865328653386534865358653686537865388653986540865418654286543865448654586546865478654886549865508655186552865538655486555865568655786558865598656086561865628656386564865658656686567865688656986570865718657286573865748657586576865778657886579865808658186582865838658486585865868658786588865898659086591865928659386594865958659686597865988659986600866018660286603866048660586606866078660886609866108661186612866138661486615866168661786618866198662086621866228662386624866258662686627866288662986630866318663286633866348663586636866378663886639866408664186642866438664486645866468664786648866498665086651866528665386654866558665686657866588665986660866618666286663866648666586666866678666886669866708667186672866738667486675866768667786678866798668086681866828668386684866858668686687866888668986690866918669286693866948669586696866978669886699867008670186702867038670486705867068670786708867098671086711867128671386714867158671686717867188671986720867218672286723867248672586726867278672886729867308673186732867338673486735867368673786738867398674086741867428674386744867458674686747867488674986750867518675286753867548675586756867578675886759867608676186762867638676486765867668676786768867698677086771867728677386774867758677686777867788677986780867818678286783867848678586786867878678886789867908679186792867938679486795867968679786798867998680086801868028680386804868058680686807868088680986810868118681286813868148681586816868178681886819868208682186822868238682486825868268682786828868298683086831868328683386834868358683686837868388683986840868418684286843868448684586846868478684886849868508685186852868538685486855868568685786858868598686086861868628686386864868658686686867868688686986870868718687286873868748687586876868778687886879868808688186882868838688486885868868688786888868898689086891868928689386894868958689686897868988689986900869018690286903869048690586906869078690886909869108691186912869138691486915869168691786918869198692086921869228692386924869258692686927869288692986930869318693286933869348693586936869378693886939869408694186942869438694486945869468694786948869498695086951869528695386954869558695686957869588695986960869618696286963869648696586966869678696886969869708697186972869738697486975869768697786978869798698086981869828698386984869858698686987869888698986990869918699286993869948699586996869978699886999870008700187002870038700487005870068700787008870098701087011870128701387014870158701687017870188701987020870218702287023870248702587026870278702887029870308703187032870338703487035870368703787038870398704087041870428704387044870458704687047870488704987050870518705287053870548705587056870578705887059870608706187062870638706487065870668706787068870698707087071870728707387074870758707687077870788707987080870818708287083870848708587086870878708887089870908709187092870938709487095870968709787098870998710087101871028710387104871058710687107871088710987110871118711287113871148711587116871178711887119871208712187122871238712487125871268712787128871298713087131871328713387134871358713687137871388713987140871418714287143871448714587146871478714887149871508715187152871538715487155871568715787158871598716087161871628716387164871658716687167871688716987170871718717287173871748717587176871778717887179871808718187182871838718487185871868718787188871898719087191871928719387194871958719687197871988719987200872018720287203872048720587206872078720887209872108721187212872138721487215872168721787218872198722087221872228722387224872258722687227872288722987230872318723287233872348723587236872378723887239872408724187242872438724487245872468724787248872498725087251872528725387254872558725687257872588725987260872618726287263872648726587266872678726887269872708727187272872738727487275872768727787278872798728087281872828728387284872858728687287872888728987290872918729287293872948729587296872978729887299873008730187302873038730487305873068730787308873098731087311873128731387314873158731687317873188731987320873218732287323873248732587326873278732887329873308733187332873338733487335873368733787338873398734087341873428734387344873458734687347873488734987350873518735287353873548735587356873578735887359873608736187362873638736487365873668736787368873698737087371873728737387374873758737687377873788737987380873818738287383873848738587386873878738887389873908739187392873938739487395873968739787398873998740087401874028740387404874058740687407874088740987410874118741287413874148741587416874178741887419874208742187422874238742487425874268742787428874298743087431874328743387434874358743687437874388743987440874418744287443874448744587446874478744887449874508745187452874538745487455874568745787458874598746087461874628746387464874658746687467874688746987470874718747287473874748747587476874778747887479874808748187482874838748487485874868748787488874898749087491874928749387494874958749687497874988749987500875018750287503875048750587506875078750887509875108751187512875138751487515875168751787518875198752087521875228752387524875258752687527875288752987530875318753287533875348753587536875378753887539875408754187542875438754487545875468754787548875498755087551875528755387554875558755687557875588755987560875618756287563875648756587566875678756887569875708757187572875738757487575875768757787578875798758087581875828758387584875858758687587875888758987590875918759287593875948759587596875978759887599876008760187602876038760487605876068760787608876098761087611876128761387614876158761687617876188761987620876218762287623876248762587626876278762887629876308763187632876338763487635876368763787638876398764087641876428764387644876458764687647876488764987650876518765287653876548765587656876578765887659876608766187662876638766487665876668766787668876698767087671876728767387674876758767687677876788767987680876818768287683876848768587686876878768887689876908769187692876938769487695876968769787698876998770087701877028770387704877058770687707877088770987710877118771287713877148771587716877178771887719877208772187722877238772487725877268772787728877298773087731877328773387734877358773687737877388773987740877418774287743877448774587746877478774887749877508775187752877538775487755877568775787758877598776087761877628776387764877658776687767877688776987770877718777287773877748777587776877778777887779877808778187782877838778487785877868778787788877898779087791877928779387794877958779687797877988779987800878018780287803878048780587806878078780887809878108781187812878138781487815878168781787818878198782087821878228782387824878258782687827878288782987830878318783287833878348783587836878378783887839878408784187842878438784487845878468784787848878498785087851878528785387854878558785687857878588785987860878618786287863878648786587866878678786887869878708787187872878738787487875878768787787878878798788087881878828788387884878858788687887878888788987890878918789287893878948789587896878978789887899879008790187902879038790487905879068790787908879098791087911879128791387914879158791687917879188791987920879218792287923879248792587926879278792887929879308793187932879338793487935879368793787938879398794087941879428794387944879458794687947879488794987950879518795287953879548795587956879578795887959879608796187962879638796487965879668796787968879698797087971879728797387974879758797687977879788797987980879818798287983879848798587986879878798887989879908799187992879938799487995879968799787998879998800088001880028800388004880058800688007880088800988010880118801288013880148801588016880178801888019880208802188022880238802488025880268802788028880298803088031880328803388034880358803688037880388803988040880418804288043880448804588046880478804888049880508805188052880538805488055880568805788058880598806088061880628806388064880658806688067880688806988070880718807288073880748807588076880778807888079880808808188082880838808488085880868808788088880898809088091880928809388094880958809688097880988809988100881018810288103881048810588106881078810888109881108811188112881138811488115881168811788118881198812088121881228812388124881258812688127881288812988130881318813288133881348813588136881378813888139881408814188142881438814488145881468814788148881498815088151881528815388154881558815688157881588815988160881618816288163881648816588166881678816888169881708817188172881738817488175881768817788178881798818088181881828818388184881858818688187881888818988190881918819288193881948819588196881978819888199882008820188202882038820488205882068820788208882098821088211882128821388214882158821688217882188821988220882218822288223882248822588226882278822888229882308823188232882338823488235882368823788238882398824088241882428824388244882458824688247882488824988250882518825288253882548825588256882578825888259882608826188262882638826488265882668826788268882698827088271882728827388274882758827688277882788827988280882818828288283882848828588286882878828888289882908829188292882938829488295882968829788298882998830088301883028830388304883058830688307883088830988310883118831288313883148831588316883178831888319883208832188322883238832488325883268832788328883298833088331883328833388334883358833688337883388833988340883418834288343883448834588346883478834888349883508835188352883538835488355883568835788358883598836088361883628836388364883658836688367883688836988370883718837288373883748837588376883778837888379883808838188382883838838488385883868838788388883898839088391883928839388394883958839688397883988839988400884018840288403884048840588406884078840888409884108841188412884138841488415884168841788418884198842088421884228842388424884258842688427884288842988430884318843288433884348843588436884378843888439884408844188442884438844488445884468844788448884498845088451884528845388454884558845688457884588845988460884618846288463884648846588466884678846888469884708847188472884738847488475884768847788478884798848088481884828848388484884858848688487884888848988490884918849288493884948849588496884978849888499885008850188502885038850488505885068850788508885098851088511885128851388514885158851688517 |
- // make sure to keep this as 'var'
- // we don't want block scoping
- var dartNodePreambleSelf = typeof global !== "undefined" ? global : window;
- var self = Object.create(dartNodePreambleSelf);
- self.scheduleImmediate = self.setImmediate
- ? function (cb) {
- dartNodePreambleSelf.setImmediate(cb);
- }
- : function(cb) {
- setTimeout(cb, 0);
- };
- // CommonJS globals.
- self.exports = exports;
- // Node.js specific exports, check to see if they exist & or polyfilled
- if (typeof process !== "undefined") {
- self.process = process;
- }
- if (typeof __dirname !== "undefined") {
- self.__dirname = __dirname;
- }
- if (typeof __filename !== "undefined") {
- self.__filename = __filename;
- }
- // if we're running in a browser, Dart supports most of this out of box
- // make sure we only run these in Node.js environment
- var dartNodeIsActuallyNode = !dartNodePreambleSelf.window
- try {
- // Check if we're in a Web Worker instead.
- if ("undefined" !== typeof WorkerGlobalScope && dartNodePreambleSelf instanceof WorkerGlobalScope) {
- dartNodeIsActuallyNode = false;
- }
- // Check if we're in Electron, with Node.js integration, and override if true.
- if (dartNodeIsActuallyNode && dartNodePreambleSelf.process && dartNodePreambleSelf.versions && process.versions.hasOwnProperty('electron') && process.versions.hasOwnProperty('node')) {
- dartNodeIsActuallyNode = true;
- }
- } catch(e) {}
- if (dartNodeIsActuallyNode) {
- // This line is to:
- // 1) Prevent Webpack from bundling.
- // 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__
- // https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561
- var url = ("undefined" !== typeof __webpack_require__ ? __non_webpack_require__ : require)("url");
- self.location = {
- get href() {
- if (url.pathToFileURL) {
- return url.pathToFileURL(process.cwd()).href + "/";
- } else {
- // This isn't really a correct transformation, but it's the best we have
- // for versions of Node <10.12.0 which introduced `url.pathToFileURL()`.
- // For example, it will fail for paths that contain characters that need
- // to be escaped in URLs.
- return "file://" + (function() {
- var cwd = process.cwd();
- if (process.platform != "win32") return cwd;
- return "/" + cwd.replace(/\\/g, "/");
- })() + "/"
- }
- }
- };
- (function() {
- function computeCurrentScript() {
- try {
- throw new Error();
- } catch(e) {
- var stack = e.stack;
- var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg");
- var lastMatch = null;
- do {
- var match = re.exec(stack);
- if (match != null) lastMatch = match;
- } while (match != null);
- return lastMatch[1];
- }
- }
- var cachedCurrentScript = null;
- self.document = {
- get currentScript() {
- if (cachedCurrentScript == null) {
- cachedCurrentScript = {src: computeCurrentScript()};
- }
- return cachedCurrentScript;
- }
- };
- })();
- self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) {
- try {
- load(uri);
- successCallback();
- } catch (error) {
- errorCallback(error);
- }
- };
- }
- self.fs = require("fs");
- self.chokidar = require("chokidar");
- self.readline = require("readline");
- // Generated by dart2js (fast startup emitter, strong, trust primitives, omit checks, lax runtime type), the Dart to JavaScript compiler version: 2.8.4.
- // The code supports the following hooks:
- // dartPrint(message):
- // if this function is defined it is called instead of the Dart [print]
- // method.
- //
- // dartMainRunner(main, args):
- // if this function is defined, the Dart [main] method will not be invoked
- // directly. Instead, a closure that will invoke [main], and its arguments
- // [args] is passed to [dartMainRunner].
- //
- // dartDeferredLibraryLoader(uri, successCallback, errorCallback):
- // if this function is defined, it will be called when a deferred library
- // is loaded. It should load and eval the javascript of `uri`, and call
- // successCallback. If it fails to do so, it should call errorCallback with
- // an error.
- //
- // dartCallInstrumentation(id, qualifiedName):
- // if this function is defined, it will be called at each entry of a
- // method or constructor. Used only when compiling programs with
- // --experiment-call-instrumentation.
- (function dartProgram() {
- function copyProperties(from, to) {
- var keys = Object.keys(from);
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- to[key] = from[key];
- }
- }
- var supportsDirectProtoAccess = function() {
- var cls = function() {
- };
- cls.prototype = {p: {}};
- var object = new cls();
- if (!(object.__proto__ && object.__proto__.p === cls.prototype.p))
- return false;
- try {
- if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0)
- return true;
- if (typeof version == "function" && version.length == 0) {
- var v = version();
- if (/^\d+\.\d+\.\d+\.\d+$/.test(v))
- return true;
- }
- } catch (_) {
- }
- return false;
- }();
- function setFunctionNamesIfNecessary(holders) {
- function t() {
- }
- ;
- if (typeof t.name == "string")
- return;
- for (var i = 0; i < holders.length; i++) {
- var holder = holders[i];
- var keys = Object.keys(holder);
- for (var j = 0; j < keys.length; j++) {
- var key = keys[j];
- var f = holder[key];
- if (typeof f == 'function')
- f.name = key;
- }
- }
- }
- function inherit(cls, sup) {
- cls.prototype.constructor = cls;
- cls.prototype["$is" + cls.name] = cls;
- if (sup != null) {
- if (supportsDirectProtoAccess) {
- cls.prototype.__proto__ = sup.prototype;
- return;
- }
- var clsPrototype = Object.create(sup.prototype);
- copyProperties(cls.prototype, clsPrototype);
- cls.prototype = clsPrototype;
- }
- }
- function inheritMany(sup, classes) {
- for (var i = 0; i < classes.length; i++)
- inherit(classes[i], sup);
- }
- function mixin(cls, mixin) {
- copyProperties(mixin.prototype, cls.prototype);
- cls.prototype.constructor = cls;
- }
- function lazy(holder, name, getterName, initializer) {
- var uninitializedSentinel = holder;
- holder[name] = uninitializedSentinel;
- holder[getterName] = function() {
- holder[getterName] = function() {
- H.throwCyclicInit(name);
- };
- var result;
- var sentinelInProgress = initializer;
- try {
- if (holder[name] === uninitializedSentinel) {
- result = holder[name] = sentinelInProgress;
- result = holder[name] = initializer();
- } else
- result = holder[name];
- } finally {
- if (result === sentinelInProgress)
- holder[name] = null;
- holder[getterName] = function() {
- return this[name];
- };
- }
- return result;
- };
- }
- function makeConstList(list) {
- list.immutable$list = Array;
- list.fixed$length = Array;
- return list;
- }
- function convertToFastObject(properties) {
- function t() {
- }
- t.prototype = properties;
- new t();
- return properties;
- }
- function convertAllToFastObject(arrayOfObjects) {
- for (var i = 0; i < arrayOfObjects.length; ++i)
- convertToFastObject(arrayOfObjects[i]);
- }
- var functionCounter = 0;
- function tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted) {
- 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);
- }
- function tearOff(funcs, applyTrampolineIndex, reflectionInfo, isStatic, name, isIntercepted) {
- var cache = null;
- return isStatic ? function() {
- if (cache === null)
- cache = H.closureFromTearOff(this, funcs, applyTrampolineIndex, reflectionInfo, true, false, name).prototype;
- return cache;
- } : tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted);
- }
- var typesOffset = 0;
- function installTearOff(container, getterName, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
- var funs = [];
- for (var i = 0; i < funsOrNames.length; i++) {
- var fun = funsOrNames[i];
- if (typeof fun == 'string')
- fun = container[fun];
- fun.$callName = callNames[i];
- funs.push(fun);
- }
- var fun = funs[0];
- fun.$requiredArgCount = requiredParameterCount;
- fun.$defaultValues = optionalParameterDefaultValues;
- var reflectionInfo = funType;
- if (typeof reflectionInfo == "number")
- reflectionInfo += typesOffset;
- var name = funsOrNames[0];
- fun.$stubName = name;
- var getterFunction = tearOff(funs, applyIndex || 0, reflectionInfo, isStatic, name, isIntercepted);
- container[getterName] = getterFunction;
- if (isStatic)
- fun.$tearOff = getterFunction;
- }
- function installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
- return installTearOff(container, getterName, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
- }
- function installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
- return installTearOff(container, getterName, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
- }
- function setOrUpdateInterceptorsByTag(newTags) {
- var tags = init.interceptorsByTag;
- if (!tags) {
- init.interceptorsByTag = newTags;
- return;
- }
- copyProperties(newTags, tags);
- }
- function setOrUpdateLeafTags(newTags) {
- var tags = init.leafTags;
- if (!tags) {
- init.leafTags = newTags;
- return;
- }
- copyProperties(newTags, tags);
- }
- function updateTypes(newTypes) {
- var types = init.types;
- var length = types.length;
- types.push.apply(types, newTypes);
- return length;
- }
- function updateHolder(holder, newHolder) {
- copyProperties(newHolder, holder);
- return holder;
- }
- var hunkHelpers = function() {
- var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
- return function(container, getterName, name, funType) {
- return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
- };
- },
- mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
- return function(container, getterName, name, funType) {
- return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
- };
- };
- 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};
- }();
- function initializeDeferredHunk(hunk) {
- typesOffset = init.types.length;
- hunk(hunkHelpers, init, holders, $);
- }
- function getGlobalFromName(name) {
- for (var i = 0; i < holders.length; i++) {
- if (holders[i] == C)
- continue;
- if (holders[i][name])
- return holders[i][name];
- }
- }
- var C = {},
- H = {JS_CONST: function JS_CONST() {
- },
- CastIterable_CastIterable: function(source, $S, $T) {
- if ($S._eval$1("EfficientLengthIterable<0>")._is(source))
- return new H._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>"));
- return new H.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>"));
- },
- hexDigitValue: function(char) {
- var letter,
- digit = char ^ 48;
- if (digit <= 9)
- return digit;
- letter = char | 32;
- if (97 <= letter && letter <= 102)
- return letter - 87;
- return -1;
- },
- SubListIterable$: function(_iterable, _start, _endOrLength, $E) {
- P.RangeError_checkNotNegative(_start, "start");
- if (_endOrLength != null) {
- P.RangeError_checkNotNegative(_endOrLength, "end");
- if (_start > _endOrLength)
- H.throwExpression(P.RangeError$range(_start, 0, _endOrLength, "start", null));
- }
- return new H.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>"));
- },
- MappedIterable_MappedIterable: function(iterable, $function, $S, $T) {
- if (type$.EfficientLengthIterable_dynamic._is(iterable))
- return new H.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
- return new H.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
- },
- TakeIterable_TakeIterable: function(iterable, takeCount, $E) {
- var _s9_ = "takeCount";
- P.ArgumentError_checkNotNull(takeCount, _s9_);
- P.RangeError_checkNotNegative(takeCount, _s9_);
- if (type$.EfficientLengthIterable_dynamic._is(iterable))
- return new H.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>"));
- return new H.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>"));
- },
- SkipIterable_SkipIterable: function(iterable, count, $E) {
- var _s5_ = "count";
- if (type$.EfficientLengthIterable_dynamic._is(iterable)) {
- P.ArgumentError_checkNotNull(count, _s5_);
- P.RangeError_checkNotNegative(count, _s5_);
- return new H.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>"));
- }
- P.ArgumentError_checkNotNull(count, _s5_);
- P.RangeError_checkNotNegative(count, _s5_);
- return new H.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>"));
- },
- FollowedByIterable_FollowedByIterable$firstEfficient: function(first, second, $E) {
- if ($E._eval$1("EfficientLengthIterable<0>")._is(second))
- return new H.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>"));
- return new H.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>"));
- },
- IterableElementError_noElement: function() {
- return new P.StateError("No element");
- },
- IterableElementError_tooMany: function() {
- return new P.StateError("Too many elements");
- },
- IterableElementError_tooFew: function() {
- return new P.StateError("Too few elements");
- },
- Sort_sort: function(a, compare) {
- H.Sort__doSort(a, 0, J.get$length$asx(a) - 1, compare);
- },
- Sort__doSort: function(a, left, right, compare) {
- if (right - left <= 32)
- H.Sort__insertionSort(a, left, right, compare);
- else
- H.Sort__dualPivotQuicksort(a, left, right, compare);
- },
- Sort__insertionSort: function(a, left, right, compare) {
- var i, t1, el, j, j0;
- for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) {
- el = t1.$index(a, i);
- j = i;
- while (true) {
- if (!(j > left && compare.call$2(t1.$index(a, j - 1), el) > 0))
- break;
- j0 = j - 1;
- t1.$indexSet(a, j, t1.$index(a, j0));
- j = j0;
- }
- t1.$indexSet(a, j, el);
- }
- },
- Sort__dualPivotQuicksort: function(a, left, right, compare) {
- var t0, less, great, k, ak, comp, great0, less0, pivots_are_equal, t2,
- sixth = C.JSInt_methods._tdivFast$1(right - left + 1, 6),
- index1 = left + sixth,
- index5 = right - sixth,
- index3 = C.JSInt_methods._tdivFast$1(left + right, 2),
- index2 = index3 - sixth,
- index4 = index3 + sixth,
- t1 = J.getInterceptor$asx(a),
- el1 = t1.$index(a, index1),
- el2 = t1.$index(a, index2),
- el3 = t1.$index(a, index3),
- el4 = t1.$index(a, index4),
- el5 = t1.$index(a, index5);
- if (compare.call$2(el1, el2) > 0) {
- t0 = el2;
- el2 = el1;
- el1 = t0;
- }
- if (compare.call$2(el4, el5) > 0) {
- t0 = el5;
- el5 = el4;
- el4 = t0;
- }
- if (compare.call$2(el1, el3) > 0) {
- t0 = el3;
- el3 = el1;
- el1 = t0;
- }
- if (compare.call$2(el2, el3) > 0) {
- t0 = el3;
- el3 = el2;
- el2 = t0;
- }
- if (compare.call$2(el1, el4) > 0) {
- t0 = el4;
- el4 = el1;
- el1 = t0;
- }
- if (compare.call$2(el3, el4) > 0) {
- t0 = el4;
- el4 = el3;
- el3 = t0;
- }
- if (compare.call$2(el2, el5) > 0) {
- t0 = el5;
- el5 = el2;
- el2 = t0;
- }
- if (compare.call$2(el2, el3) > 0) {
- t0 = el3;
- el3 = el2;
- el2 = t0;
- }
- if (compare.call$2(el4, el5) > 0) {
- t0 = el5;
- el5 = el4;
- el4 = t0;
- }
- t1.$indexSet(a, index1, el1);
- t1.$indexSet(a, index3, el3);
- t1.$indexSet(a, index5, el5);
- t1.$indexSet(a, index2, t1.$index(a, left));
- t1.$indexSet(a, index4, t1.$index(a, right));
- less = left + 1;
- great = right - 1;
- if (J.$eq$(compare.call$2(el2, el4), 0)) {
- for (k = less; k <= great; ++k) {
- ak = t1.$index(a, k);
- comp = compare.call$2(ak, el2);
- if (comp === 0)
- continue;
- if (comp < 0) {
- if (k !== less) {
- t1.$indexSet(a, k, t1.$index(a, less));
- t1.$indexSet(a, less, ak);
- }
- ++less;
- } else
- for (; true;) {
- comp = compare.call$2(t1.$index(a, great), el2);
- if (comp > 0) {
- --great;
- continue;
- } else {
- great0 = great - 1;
- if (comp < 0) {
- t1.$indexSet(a, k, t1.$index(a, less));
- less0 = less + 1;
- t1.$indexSet(a, less, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- great = great0;
- less = less0;
- break;
- } else {
- t1.$indexSet(a, k, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- great = great0;
- break;
- }
- }
- }
- }
- pivots_are_equal = true;
- } else {
- for (k = less; k <= great; ++k) {
- ak = t1.$index(a, k);
- if (compare.call$2(ak, el2) < 0) {
- if (k !== less) {
- t1.$indexSet(a, k, t1.$index(a, less));
- t1.$indexSet(a, less, ak);
- }
- ++less;
- } else if (compare.call$2(ak, el4) > 0)
- for (; true;)
- if (compare.call$2(t1.$index(a, great), el4) > 0) {
- --great;
- if (great < k)
- break;
- continue;
- } else {
- great0 = great - 1;
- if (compare.call$2(t1.$index(a, great), el2) < 0) {
- t1.$indexSet(a, k, t1.$index(a, less));
- less0 = less + 1;
- t1.$indexSet(a, less, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- less = less0;
- } else {
- t1.$indexSet(a, k, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- }
- great = great0;
- break;
- }
- }
- pivots_are_equal = false;
- }
- t2 = less - 1;
- t1.$indexSet(a, left, t1.$index(a, t2));
- t1.$indexSet(a, t2, el2);
- t2 = great + 1;
- t1.$indexSet(a, right, t1.$index(a, t2));
- t1.$indexSet(a, t2, el4);
- H.Sort__doSort(a, left, less - 2, compare);
- H.Sort__doSort(a, great + 2, right, compare);
- if (pivots_are_equal)
- return;
- if (less < index1 && great > index5) {
- for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);)
- ++less;
- for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);)
- --great;
- for (k = less; k <= great; ++k) {
- ak = t1.$index(a, k);
- if (compare.call$2(ak, el2) === 0) {
- if (k !== less) {
- t1.$indexSet(a, k, t1.$index(a, less));
- t1.$indexSet(a, less, ak);
- }
- ++less;
- } else if (compare.call$2(ak, el4) === 0)
- for (; true;)
- if (compare.call$2(t1.$index(a, great), el4) === 0) {
- --great;
- if (great < k)
- break;
- continue;
- } else {
- great0 = great - 1;
- if (compare.call$2(t1.$index(a, great), el2) < 0) {
- t1.$indexSet(a, k, t1.$index(a, less));
- less0 = less + 1;
- t1.$indexSet(a, less, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- less = less0;
- } else {
- t1.$indexSet(a, k, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- }
- great = great0;
- break;
- }
- }
- H.Sort__doSort(a, less, great, compare);
- } else
- H.Sort__doSort(a, less, great, compare);
- },
- _CastIterableBase: function _CastIterableBase() {
- },
- CastIterator: function CastIterator(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- CastIterable: function CastIterable(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- _EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- _CastListBase: function _CastListBase() {
- },
- _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) {
- this.$this = t0;
- this.compare = t1;
- },
- CastList: function CastList(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- CastSet: function CastSet(t0, t1, t2) {
- this._source = t0;
- this._emptySet = t1;
- this.$ti = t2;
- },
- CastQueue: function CastQueue(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- CodeUnits: function CodeUnits(t0) {
- this._string = t0;
- },
- EfficientLengthIterable: function EfficientLengthIterable() {
- },
- ListIterable: function ListIterable() {
- },
- SubListIterable: function SubListIterable(t0, t1, t2, t3) {
- var _ = this;
- _.__internal$_iterable = t0;
- _._start = t1;
- _._endOrLength = t2;
- _.$ti = t3;
- },
- ListIterator: function ListIterator(t0, t1) {
- var _ = this;
- _.__internal$_iterable = t0;
- _.__internal$_length = t1;
- _.__internal$_index = 0;
- _.__internal$_current = null;
- },
- MappedIterable: function MappedIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- MappedIterator: function MappedIterator(t0, t1) {
- this.__internal$_current = null;
- this._iterator = t0;
- this._f = t1;
- },
- MappedListIterable: function MappedListIterable(t0, t1, t2) {
- this._source = t0;
- this._f = t1;
- this.$ti = t2;
- },
- WhereIterable: function WhereIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- WhereIterator: function WhereIterator(t0, t1) {
- this._iterator = t0;
- this._f = t1;
- },
- ExpandIterable: function ExpandIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- ExpandIterator: function ExpandIterator(t0, t1, t2) {
- var _ = this;
- _._iterator = t0;
- _._f = t1;
- _._currentExpansion = t2;
- _.__internal$_current = null;
- },
- TakeIterable: function TakeIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._takeCount = t1;
- this.$ti = t2;
- },
- EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._takeCount = t1;
- this.$ti = t2;
- },
- TakeIterator: function TakeIterator(t0, t1) {
- this._iterator = t0;
- this._remaining = t1;
- },
- SkipIterable: function SkipIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._skipCount = t1;
- this.$ti = t2;
- },
- EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._skipCount = t1;
- this.$ti = t2;
- },
- SkipIterator: function SkipIterator(t0, t1) {
- this._iterator = t0;
- this._skipCount = t1;
- },
- SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- SkipWhileIterator: function SkipWhileIterator(t0, t1) {
- this._iterator = t0;
- this._f = t1;
- this._hasSkipped = false;
- },
- EmptyIterable: function EmptyIterable(t0) {
- this.$ti = t0;
- },
- EmptyIterator: function EmptyIterator() {
- },
- FollowedByIterable: function FollowedByIterable(t0, t1, t2) {
- this.__internal$_first = t0;
- this._second = t1;
- this.$ti = t2;
- },
- EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) {
- this.__internal$_first = t0;
- this._second = t1;
- this.$ti = t2;
- },
- FollowedByIterator: function FollowedByIterator(t0, t1) {
- this._currentIterator = t0;
- this._nextIterable = t1;
- },
- WhereTypeIterable: function WhereTypeIterable(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- WhereTypeIterator: function WhereTypeIterator(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- FixedLengthListMixin: function FixedLengthListMixin() {
- },
- UnmodifiableListMixin: function UnmodifiableListMixin() {
- },
- UnmodifiableListBase: function UnmodifiableListBase() {
- },
- ReversedListIterable: function ReversedListIterable(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- Symbol: function Symbol(t0) {
- this.__internal$_name = t0;
- },
- __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() {
- },
- ConstantMap_ConstantMap$from: function(other, $K, $V) {
- var allStrings, object, containsProto, protoValue, $length, k, v,
- keys = P.List_List$from(other.get$keys(), true, $K),
- t1 = keys.length,
- _i = 0;
- while (true) {
- if (!(_i < t1)) {
- allStrings = true;
- break;
- }
- if (typeof keys[_i] != "string") {
- allStrings = false;
- break;
- }
- ++_i;
- }
- if (allStrings) {
- object = {};
- for (containsProto = false, protoValue = null, $length = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
- k = keys[_i];
- v = other.$index(0, k);
- if (!J.$eq$(k, "__proto__")) {
- if (!object.hasOwnProperty(k))
- ++$length;
- object[k] = v;
- } else {
- protoValue = v;
- containsProto = true;
- }
- }
- if (containsProto)
- return new H.ConstantProtoMap(protoValue, $length + 1, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantProtoMap<1,2>"));
- return new H.ConstantStringMap($length, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantStringMap<1,2>"));
- }
- return new H.ConstantMapView(P.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>"));
- },
- ConstantMap__throwUnmodifiable: function() {
- throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable Map"));
- },
- instantiate1: function(f, T1) {
- var t1 = new H.Instantiation1(f, T1._eval$1("Instantiation1<0>"));
- t1.Instantiation$1(f);
- return t1;
- },
- unminifyOrTag: function(rawClassName) {
- var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
- if (typeof preserved == "string")
- return preserved;
- return rawClassName;
- },
- isJsIndexable: function(object, record) {
- var result;
- if (record != null) {
- result = record.x;
- if (result != null)
- return result;
- }
- return type$.JavaScriptIndexingBehavior_dynamic._is(object);
- },
- S: function(value) {
- var res;
- if (typeof value == "string")
- return value;
- if (typeof value == "number") {
- if (value !== 0)
- return "" + value;
- } else if (true === value)
- return "true";
- else if (false === value)
- return "false";
- else if (value == null)
- return "null";
- res = J.toString$0$(value);
- if (typeof res != "string")
- throw H.wrapException(H.argumentErrorValue(value));
- return res;
- },
- Primitives_objectHashCode: function(object) {
- var hash = object.$identityHash;
- if (hash == null) {
- hash = Math.random() * 0x3fffffff | 0;
- object.$identityHash = hash;
- }
- return hash;
- },
- Primitives_parseInt: function(source, radix) {
- var match, decimalMatch, maxCharCode, digitsPart, t1, i, _null = null;
- if (typeof source != "string")
- H.throwExpression(H.argumentErrorValue(source));
- match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
- if (match == null)
- return _null;
- decimalMatch = match[3];
- if (radix == null) {
- if (decimalMatch != null)
- return parseInt(source, 10);
- if (match[2] != null)
- return parseInt(source, 16);
- return _null;
- }
- if (radix < 2 || radix > 36)
- throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", _null));
- if (radix === 10 && decimalMatch != null)
- return parseInt(source, 10);
- if (radix < 10 || decimalMatch == null) {
- maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
- digitsPart = match[1];
- for (t1 = digitsPart.length, i = 0; i < t1; ++i)
- if ((C.JSString_methods._codeUnitAt$1(digitsPart, i) | 32) > maxCharCode)
- return _null;
- }
- return parseInt(source, radix);
- },
- Primitives_parseDouble: function(source) {
- var result, trimmed;
- if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source))
- return null;
- result = parseFloat(source);
- if (isNaN(result)) {
- trimmed = C.JSString_methods.trim$0(source);
- if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN")
- return result;
- return null;
- }
- return result;
- },
- Primitives_objectTypeName: function(object) {
- var t1 = H.Primitives__objectTypeNameNewRti(object);
- return t1;
- },
- Primitives__objectTypeNameNewRti: function(object) {
- var dispatchName, $constructor, constructorName;
- if (object instanceof P.Object)
- return H._rtiToString(H.instanceType(object), null);
- if (J.getInterceptor$(object) === C.Interceptor_methods || type$.UnknownJavaScriptObject._is(object)) {
- dispatchName = C.C_JS_CONST(object);
- if (H.Primitives__saneNativeClassName(dispatchName))
- return dispatchName;
- $constructor = object.constructor;
- if (typeof $constructor == "function") {
- constructorName = $constructor.name;
- if (typeof constructorName == "string" && H.Primitives__saneNativeClassName(constructorName))
- return constructorName;
- }
- }
- return H._rtiToString(H.instanceType(object), null);
- },
- Primitives__saneNativeClassName: function($name) {
- var t1 = $name !== "Object" && $name !== "";
- return t1;
- },
- Primitives_currentUri: function() {
- if (!!self.location)
- return self.location.href;
- return null;
- },
- Primitives__fromCharCodeApply: function(array) {
- var result, i, i0, chunkEnd,
- end = J.get$length$asx(array);
- if (end <= 500)
- return String.fromCharCode.apply(null, array);
- for (result = "", i = 0; i < end; i = i0) {
- i0 = i + 500;
- chunkEnd = i0 < end ? i0 : end;
- result += String.fromCharCode.apply(null, array.slice(i, chunkEnd));
- }
- return result;
- },
- Primitives_stringFromCodePoints: function(codePoints) {
- var t1, i,
- a = H.setRuntimeTypeInfo([], type$.JSArray_int);
- for (t1 = J.get$iterator$ax(codePoints); t1.moveNext$0();) {
- i = t1.get$current(t1);
- if (!H._isInt(i))
- throw H.wrapException(H.argumentErrorValue(i));
- if (i <= 65535)
- a.push(i);
- else if (i <= 1114111) {
- a.push(55296 + (C.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023));
- a.push(56320 + (i & 1023));
- } else
- throw H.wrapException(H.argumentErrorValue(i));
- }
- return H.Primitives__fromCharCodeApply(a);
- },
- Primitives_stringFromCharCodes: function(charCodes) {
- var t1, i;
- for (t1 = J.get$iterator$ax(charCodes); t1.moveNext$0();) {
- i = t1.get$current(t1);
- if (!H._isInt(i))
- throw H.wrapException(H.argumentErrorValue(i));
- if (i < 0)
- throw H.wrapException(H.argumentErrorValue(i));
- if (i > 65535)
- return H.Primitives_stringFromCodePoints(charCodes);
- }
- return H.Primitives__fromCharCodeApply(charCodes);
- },
- Primitives_stringFromNativeUint8List: function(charCodes, start, end) {
- var i, result, i0, chunkEnd;
- if (end <= 500 && start === 0 && end === charCodes.length)
- return String.fromCharCode.apply(null, charCodes);
- for (i = start, result = ""; i < end; i = i0) {
- i0 = i + 500;
- chunkEnd = i0 < end ? i0 : end;
- result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd));
- }
- return result;
- },
- Primitives_stringFromCharCode: function(charCode) {
- var bits;
- if (0 <= charCode) {
- if (charCode <= 65535)
- return String.fromCharCode(charCode);
- if (charCode <= 1114111) {
- bits = charCode - 65536;
- return String.fromCharCode((55296 | C.JSInt_methods._shrOtherPositive$1(bits, 10)) >>> 0, 56320 | bits & 1023);
- }
- }
- throw H.wrapException(P.RangeError$range(charCode, 0, 1114111, null, null));
- },
- Primitives_lazyAsJsDate: function(receiver) {
- if (receiver.date === void 0)
- receiver.date = new Date(receiver._core$_value);
- return receiver.date;
- },
- Primitives_getYear: function(receiver) {
- var t1 = H.Primitives_lazyAsJsDate(receiver).getFullYear() + 0;
- return t1;
- },
- Primitives_getMonth: function(receiver) {
- var t1 = H.Primitives_lazyAsJsDate(receiver).getMonth() + 1;
- return t1;
- },
- Primitives_getDay: function(receiver) {
- var t1 = H.Primitives_lazyAsJsDate(receiver).getDate() + 0;
- return t1;
- },
- Primitives_getHours: function(receiver) {
- var t1 = H.Primitives_lazyAsJsDate(receiver).getHours() + 0;
- return t1;
- },
- Primitives_getMinutes: function(receiver) {
- var t1 = H.Primitives_lazyAsJsDate(receiver).getMinutes() + 0;
- return t1;
- },
- Primitives_getSeconds: function(receiver) {
- var t1 = H.Primitives_lazyAsJsDate(receiver).getSeconds() + 0;
- return t1;
- },
- Primitives_getMilliseconds: function(receiver) {
- var t1 = H.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0;
- return t1;
- },
- Primitives_functionNoSuchMethod: function($function, positionalArguments, namedArguments) {
- var $arguments, namedArgumentList, t1 = {};
- t1.argumentCount = 0;
- $arguments = [];
- namedArgumentList = [];
- t1.argumentCount = positionalArguments.length;
- C.JSArray_methods.addAll$1($arguments, positionalArguments);
- t1.names = "";
- if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments))
- namedArguments.forEach$1(0, new H.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments));
- "" + t1.argumentCount;
- return J.noSuchMethod$1$($function, new H.JSInvocationMirror(C.Symbol_call, 0, $arguments, namedArgumentList, 0));
- },
- Primitives_applyFunction: function($function, positionalArguments, namedArguments) {
- var t1, $arguments, argumentCount, jsStub;
- if (positionalArguments instanceof Array)
- t1 = namedArguments == null || namedArguments.get$isEmpty(namedArguments);
- else
- t1 = false;
- if (t1) {
- $arguments = positionalArguments;
- argumentCount = $arguments.length;
- if (argumentCount === 0) {
- if (!!$function.call$0)
- return $function.call$0();
- } else if (argumentCount === 1) {
- if (!!$function.call$1)
- return $function.call$1($arguments[0]);
- } else if (argumentCount === 2) {
- if (!!$function.call$2)
- return $function.call$2($arguments[0], $arguments[1]);
- } else if (argumentCount === 3) {
- if (!!$function.call$3)
- return $function.call$3($arguments[0], $arguments[1], $arguments[2]);
- } else if (argumentCount === 4) {
- if (!!$function.call$4)
- return $function.call$4($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
- } else if (argumentCount === 5)
- if (!!$function.call$5)
- return $function.call$5($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]);
- jsStub = $function["call" + "$" + argumentCount];
- if (jsStub != null)
- return jsStub.apply($function, $arguments);
- }
- return H.Primitives__genericApplyFunction2($function, positionalArguments, namedArguments);
- },
- Primitives__genericApplyFunction2: function($function, positionalArguments, namedArguments) {
- var $arguments, argumentCount, requiredParameterCount, defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, keys, _i, used, t2;
- if (positionalArguments != null)
- $arguments = positionalArguments instanceof Array ? positionalArguments : P.List_List$from(positionalArguments, true, type$.dynamic);
- else
- $arguments = [];
- argumentCount = $arguments.length;
- requiredParameterCount = $function.$requiredArgCount;
- if (argumentCount < requiredParameterCount)
- return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- defaultValuesClosure = $function.$defaultValues;
- t1 = defaultValuesClosure == null;
- defaultValues = !t1 ? defaultValuesClosure() : null;
- interceptor = J.getInterceptor$($function);
- jsFunction = interceptor["call*"];
- if (typeof jsFunction == "string")
- jsFunction = interceptor[jsFunction];
- if (t1) {
- if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
- return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- if (argumentCount === requiredParameterCount)
- return jsFunction.apply($function, $arguments);
- return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- }
- if (defaultValues instanceof Array) {
- if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
- return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- if (argumentCount > requiredParameterCount + defaultValues.length)
- return H.Primitives_functionNoSuchMethod($function, $arguments, null);
- C.JSArray_methods.addAll$1($arguments, defaultValues.slice(argumentCount - requiredParameterCount));
- return jsFunction.apply($function, $arguments);
- } else {
- if (argumentCount > requiredParameterCount)
- return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- keys = Object.keys(defaultValues);
- if (namedArguments == null)
- for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i)
- C.JSArray_methods.add$1($arguments, defaultValues[keys[_i]]);
- else {
- for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
- t2 = keys[_i];
- if (namedArguments.containsKey$1(t2)) {
- ++used;
- C.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2));
- } else
- C.JSArray_methods.add$1($arguments, defaultValues[t2]);
- }
- if (used !== namedArguments.get$length(namedArguments))
- return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- }
- return jsFunction.apply($function, $arguments);
- }
- },
- diagnoseIndexError: function(indexable, index) {
- var $length, _s5_ = "index";
- if (!H._isInt(index))
- return new P.ArgumentError(true, index, _s5_, null);
- $length = J.get$length$asx(indexable);
- if (index < 0 || index >= $length)
- return P.IndexError$(index, indexable, _s5_, null, $length);
- return P.RangeError$value(index, _s5_, null);
- },
- diagnoseRangeError: function(start, end, $length) {
- var _s13_ = "Invalid value";
- if (start < 0 || start > $length)
- return new P.RangeError(0, $length, true, start, "start", _s13_);
- if (end != null)
- if (end < start || end > $length)
- return new P.RangeError(start, $length, true, end, "end", _s13_);
- return new P.ArgumentError(true, end, "end", null);
- },
- argumentErrorValue: function(object) {
- return new P.ArgumentError(true, object, null, null);
- },
- checkNum: function(value) {
- if (typeof value != "number")
- throw H.wrapException(H.argumentErrorValue(value));
- return value;
- },
- wrapException: function(ex) {
- var wrapper;
- if (ex == null)
- ex = new P.NullThrownError();
- wrapper = new Error();
- wrapper.dartException = ex;
- if ("defineProperty" in Object) {
- Object.defineProperty(wrapper, "message", {get: H.toStringWrapper});
- wrapper.name = "";
- } else
- wrapper.toString = H.toStringWrapper;
- return wrapper;
- },
- toStringWrapper: function() {
- return J.toString$0$(this.dartException);
- },
- throwExpression: function(ex) {
- throw H.wrapException(ex);
- },
- throwConcurrentModificationError: function(collection) {
- throw H.wrapException(P.ConcurrentModificationError$(collection));
- },
- TypeErrorDecoder_extractPattern: function(message) {
- var match, $arguments, argumentsExpr, expr, method, receiver;
- message = H.quoteStringForRegExp(message.replace(String({}), '$receiver$'));
- match = message.match(/\\\$[a-zA-Z]+\\\$/g);
- if (match == null)
- match = H.setRuntimeTypeInfo([], type$.JSArray_String);
- $arguments = match.indexOf("\\$arguments\\$");
- argumentsExpr = match.indexOf("\\$argumentsExpr\\$");
- expr = match.indexOf("\\$expr\\$");
- method = match.indexOf("\\$method\\$");
- receiver = match.indexOf("\\$receiver\\$");
- 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);
- },
- TypeErrorDecoder_provokeCallErrorOn: function(expression) {
- return function($expr$) {
- var $argumentsExpr$ = '$arguments$';
- try {
- $expr$.$method$($argumentsExpr$);
- } catch (e) {
- return e.message;
- }
- }(expression);
- },
- TypeErrorDecoder_provokePropertyErrorOn: function(expression) {
- return function($expr$) {
- try {
- $expr$.$method$;
- } catch (e) {
- return e.message;
- }
- }(expression);
- },
- NullError$: function(_message, match) {
- return new H.NullError(_message, match == null ? null : match.method);
- },
- JsNoSuchMethodError$: function(_message, match) {
- var t1 = match == null,
- t2 = t1 ? null : match.method;
- return new H.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
- },
- unwrapException: function(ex) {
- var message, number, ieErrorCode, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match, t2, _null = null,
- t1 = new H.unwrapException_saveStackTrace(ex);
- if (ex == null)
- return _null;
- if (ex instanceof H.ExceptionAndStackTrace)
- return t1.call$1(ex.dartException);
- if (typeof ex !== "object")
- return ex;
- if ("dartException" in ex)
- return t1.call$1(ex.dartException);
- else if (!("message" in ex))
- return ex;
- message = ex.message;
- if ("number" in ex && typeof ex.number == "number") {
- number = ex.number;
- ieErrorCode = number & 65535;
- if ((C.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10)
- switch (ieErrorCode) {
- case 438:
- return t1.call$1(H.JsNoSuchMethodError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
- case 445:
- case 5007:
- return t1.call$1(H.NullError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
- }
- }
- if (ex instanceof TypeError) {
- nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern();
- notClosure = $.$get$TypeErrorDecoder_notClosurePattern();
- nullCall = $.$get$TypeErrorDecoder_nullCallPattern();
- nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern();
- undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern();
- undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern();
- nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern();
- $.$get$TypeErrorDecoder_nullLiteralPropertyPattern();
- undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern();
- undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern();
- match = nsme.matchTypeError$1(message);
- if (match != null)
- return t1.call$1(H.JsNoSuchMethodError$(message, match));
- else {
- match = notClosure.matchTypeError$1(message);
- if (match != null) {
- match.method = "call";
- return t1.call$1(H.JsNoSuchMethodError$(message, match));
- } else {
- match = nullCall.matchTypeError$1(message);
- if (match == null) {
- match = nullLiteralCall.matchTypeError$1(message);
- if (match == null) {
- match = undefCall.matchTypeError$1(message);
- if (match == null) {
- match = undefLiteralCall.matchTypeError$1(message);
- if (match == null) {
- match = nullProperty.matchTypeError$1(message);
- if (match == null) {
- match = nullLiteralCall.matchTypeError$1(message);
- if (match == null) {
- match = undefProperty.matchTypeError$1(message);
- if (match == null) {
- match = undefLiteralProperty.matchTypeError$1(message);
- t2 = match != null;
- } else
- t2 = true;
- } else
- t2 = true;
- } else
- t2 = true;
- } else
- t2 = true;
- } else
- t2 = true;
- } else
- t2 = true;
- } else
- t2 = true;
- if (t2)
- return t1.call$1(H.NullError$(message, match));
- }
- }
- return t1.call$1(new H.UnknownJsTypeError(typeof message == "string" ? message : ""));
- }
- if (ex instanceof RangeError) {
- if (typeof message == "string" && message.indexOf("call stack") !== -1)
- return new P.StackOverflowError();
- message = function(ex) {
- try {
- return String(ex);
- } catch (e) {
- }
- return null;
- }(ex);
- return t1.call$1(new P.ArgumentError(false, _null, _null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message));
- }
- if (typeof InternalError == "function" && ex instanceof InternalError)
- if (typeof message == "string" && message === "too much recursion")
- return new P.StackOverflowError();
- return ex;
- },
- getTraceFromException: function(exception) {
- var trace;
- if (exception instanceof H.ExceptionAndStackTrace)
- return exception.stackTrace;
- if (exception == null)
- return new H._StackTrace(exception);
- trace = exception.$cachedTrace;
- if (trace != null)
- return trace;
- return exception.$cachedTrace = new H._StackTrace(exception);
- },
- objectHashCode: function(object) {
- if (object == null || typeof object != 'object')
- return J.get$hashCode$(object);
- else
- return H.Primitives_objectHashCode(object);
- },
- fillLiteralMap: function(keyValuePairs, result) {
- var index, index0, index1,
- $length = keyValuePairs.length;
- for (index = 0; index < $length; index = index1) {
- index0 = index + 1;
- index1 = index0 + 1;
- result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]);
- }
- return result;
- },
- fillLiteralSet: function(values, result) {
- var index,
- $length = values.length;
- for (index = 0; index < $length; ++index)
- result.add$1(0, values[index]);
- return result;
- },
- invokeClosure: function(closure, numberOfArguments, arg1, arg2, arg3, arg4) {
- switch (numberOfArguments) {
- case 0:
- return closure.call$0();
- case 1:
- return closure.call$1(arg1);
- case 2:
- return closure.call$2(arg1, arg2);
- case 3:
- return closure.call$3(arg1, arg2, arg3);
- case 4:
- return closure.call$4(arg1, arg2, arg3, arg4);
- }
- throw H.wrapException(new P._Exception("Unsupported number of arguments for wrapped closure"));
- },
- convertDartClosureToJS: function(closure, arity) {
- var $function;
- if (closure == null)
- return null;
- $function = closure.$identity;
- if (!!$function)
- return $function;
- $function = function(closure, arity, invoke) {
- return function(a1, a2, a3, a4) {
- return invoke(closure, arity, a1, a2, a3, a4);
- };
- }(closure, arity, H.invokeClosure);
- closure.$identity = $function;
- return $function;
- },
- Closure_fromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, propertyName) {
- var $constructor, t1, trampoline, signatureFunction, applyTrampoline, i, stub, stubCallName, _null = null,
- $function = functions[0],
- callName = $function.$callName,
- $prototype = isStatic ? Object.create(new H.StaticClosure().constructor.prototype) : Object.create(new H.BoundClosure(_null, _null, _null, _null).constructor.prototype);
- $prototype.$initialize = $prototype.constructor;
- if (isStatic)
- $constructor = function static_tear_off() {
- this.$initialize();
- };
- else {
- t1 = $.Closure_functionCounter;
- $.Closure_functionCounter = t1 + 1;
- t1 = new Function("a,b,c,d" + t1, "this.$initialize(a,b,c,d" + t1 + ")");
- $constructor = t1;
- }
- $prototype.constructor = $constructor;
- $constructor.prototype = $prototype;
- if (!isStatic) {
- trampoline = H.Closure_forwardCallTo(receiver, $function, isIntercepted);
- trampoline.$reflectionInfo = reflectionInfo;
- } else {
- $prototype.$static_name = propertyName;
- trampoline = $function;
- }
- signatureFunction = H.Closure__computeSignatureFunctionNewRti(reflectionInfo, isStatic, isIntercepted);
- $prototype.$signature = signatureFunction;
- $prototype[callName] = trampoline;
- for (applyTrampoline = trampoline, i = 1; i < functions.length; ++i) {
- stub = functions[i];
- stubCallName = stub.$callName;
- if (stubCallName != null) {
- stub = isStatic ? stub : H.Closure_forwardCallTo(receiver, stub, isIntercepted);
- $prototype[stubCallName] = stub;
- }
- if (i === applyTrampolineIndex) {
- stub.$reflectionInfo = reflectionInfo;
- applyTrampoline = stub;
- }
- }
- $prototype["call*"] = applyTrampoline;
- $prototype.$requiredArgCount = $function.$requiredArgCount;
- $prototype.$defaultValues = $function.$defaultValues;
- return $constructor;
- },
- Closure__computeSignatureFunctionNewRti: function(functionType, isStatic, isIntercepted) {
- var typeEvalMethod;
- if (typeof functionType == "number")
- return function(getType, t) {
- return function() {
- return getType(t);
- };
- }(H.getTypeFromTypesTable, functionType);
- if (typeof functionType == "string") {
- if (isStatic)
- throw H.wrapException("Cannot compute signature for static tearoff.");
- typeEvalMethod = isIntercepted ? H.BoundClosure_evalRecipeIntercepted : H.BoundClosure_evalRecipe;
- return function(recipe, evalOnReceiver) {
- return function() {
- return evalOnReceiver(this, recipe);
- };
- }(functionType, typeEvalMethod);
- }
- throw H.wrapException("Error in functionType of tearoff");
- },
- Closure_cspForwardCall: function(arity, isSuperCall, stubName, $function) {
- var getSelf = H.BoundClosure_selfOf;
- switch (isSuperCall ? -1 : arity) {
- case 0:
- return function(n, S) {
- return function() {
- return S(this)[n]();
- };
- }(stubName, getSelf);
- case 1:
- return function(n, S) {
- return function(a) {
- return S(this)[n](a);
- };
- }(stubName, getSelf);
- case 2:
- return function(n, S) {
- return function(a, b) {
- return S(this)[n](a, b);
- };
- }(stubName, getSelf);
- case 3:
- return function(n, S) {
- return function(a, b, c) {
- return S(this)[n](a, b, c);
- };
- }(stubName, getSelf);
- case 4:
- return function(n, S) {
- return function(a, b, c, d) {
- return S(this)[n](a, b, c, d);
- };
- }(stubName, getSelf);
- case 5:
- return function(n, S) {
- return function(a, b, c, d, e) {
- return S(this)[n](a, b, c, d, e);
- };
- }(stubName, getSelf);
- default:
- return function(f, s) {
- return function() {
- return f.apply(s(this), arguments);
- };
- }($function, getSelf);
- }
- },
- Closure_forwardCallTo: function(receiver, $function, isIntercepted) {
- var stubName, arity, lookedUpFunction, t1, t2, selfName, $arguments;
- if (isIntercepted)
- return H.Closure_forwardInterceptedCallTo(receiver, $function);
- stubName = $function.$stubName;
- arity = $function.length;
- lookedUpFunction = receiver[stubName];
- t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
- t2 = !t1 || arity >= 27;
- if (t2)
- return H.Closure_cspForwardCall(arity, !t1, stubName, $function);
- if (arity === 0) {
- t1 = $.Closure_functionCounter;
- $.Closure_functionCounter = t1 + 1;
- selfName = "self" + H.S(t1);
- t1 = "return function(){var " + selfName + " = this.";
- t2 = $.BoundClosure_selfFieldNameCache;
- return new Function(t1 + H.S(t2 == null ? $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self") : t2) + ";return " + selfName + "." + H.S(stubName) + "();}")();
- }
- $arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity).join(",");
- t1 = $.Closure_functionCounter;
- $.Closure_functionCounter = t1 + 1;
- $arguments += H.S(t1);
- t1 = "return function(" + $arguments + "){return this.";
- t2 = $.BoundClosure_selfFieldNameCache;
- return new Function(t1 + H.S(t2 == null ? $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self") : t2) + "." + H.S(stubName) + "(" + $arguments + ");}")();
- },
- Closure_cspForwardInterceptedCall: function(arity, isSuperCall, $name, $function) {
- var getSelf = H.BoundClosure_selfOf,
- getReceiver = H.BoundClosure_receiverOf;
- switch (isSuperCall ? -1 : arity) {
- case 0:
- throw H.wrapException(H.RuntimeError$("Intercepted function with no arguments."));
- case 1:
- return function(n, s, r) {
- return function() {
- return s(this)[n](r(this));
- };
- }($name, getSelf, getReceiver);
- case 2:
- return function(n, s, r) {
- return function(a) {
- return s(this)[n](r(this), a);
- };
- }($name, getSelf, getReceiver);
- case 3:
- return function(n, s, r) {
- return function(a, b) {
- return s(this)[n](r(this), a, b);
- };
- }($name, getSelf, getReceiver);
- case 4:
- return function(n, s, r) {
- return function(a, b, c) {
- return s(this)[n](r(this), a, b, c);
- };
- }($name, getSelf, getReceiver);
- case 5:
- return function(n, s, r) {
- return function(a, b, c, d) {
- return s(this)[n](r(this), a, b, c, d);
- };
- }($name, getSelf, getReceiver);
- case 6:
- return function(n, s, r) {
- return function(a, b, c, d, e) {
- return s(this)[n](r(this), a, b, c, d, e);
- };
- }($name, getSelf, getReceiver);
- default:
- return function(f, s, r, a) {
- return function() {
- a = [r(this)];
- Array.prototype.push.apply(a, arguments);
- return f.apply(s(this), a);
- };
- }($function, getSelf, getReceiver);
- }
- },
- Closure_forwardInterceptedCallTo: function(receiver, $function) {
- var t2, stubName, arity, lookedUpFunction, t3, t4, $arguments,
- t1 = $.BoundClosure_selfFieldNameCache;
- if (t1 == null)
- t1 = $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self");
- t2 = $.BoundClosure_receiverFieldNameCache;
- if (t2 == null)
- t2 = $.BoundClosure_receiverFieldNameCache = H.BoundClosure_computeFieldNamed("receiver");
- stubName = $function.$stubName;
- arity = $function.length;
- lookedUpFunction = receiver[stubName];
- t3 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
- t4 = !t3 || arity >= 28;
- if (t4)
- return H.Closure_cspForwardInterceptedCall(arity, !t3, stubName, $function);
- if (arity === 1) {
- t1 = "return function(){return this." + H.S(t1) + "." + H.S(stubName) + "(this." + H.S(t2) + ");";
- t2 = $.Closure_functionCounter;
- $.Closure_functionCounter = t2 + 1;
- return new Function(t1 + H.S(t2) + "}")();
- }
- $arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity - 1).join(",");
- t1 = "return function(" + $arguments + "){return this." + H.S(t1) + "." + H.S(stubName) + "(this." + H.S(t2) + ", " + $arguments + ");";
- t2 = $.Closure_functionCounter;
- $.Closure_functionCounter = t2 + 1;
- return new Function(t1 + H.S(t2) + "}")();
- },
- closureFromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, $name) {
- return H.Closure_fromTearOff(receiver, functions, applyTrampolineIndex, reflectionInfo, !!isStatic, !!isIntercepted, $name);
- },
- BoundClosure_evalRecipe: function(closure, recipe) {
- return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._self), recipe);
- },
- BoundClosure_evalRecipeIntercepted: function(closure, recipe) {
- return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._receiver), recipe);
- },
- BoundClosure_selfOf: function(closure) {
- return closure._self;
- },
- BoundClosure_receiverOf: function(closure) {
- return closure._receiver;
- },
- BoundClosure_computeFieldNamed: function(fieldName) {
- var t1, i, $name,
- template = new H.BoundClosure("self", "target", "receiver", "name"),
- names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template));
- for (t1 = names.length, i = 0; i < t1; ++i) {
- $name = names[i];
- if (template[$name] === fieldName)
- return $name;
- }
- },
- throwCyclicInit: function(staticName) {
- throw H.wrapException(new P.CyclicInitializationError(staticName));
- },
- RuntimeError$: function(message) {
- return new H.RuntimeError(message);
- },
- getIsolateAffinityTag: function($name) {
- return init.getIsolateTag($name);
- },
- setRuntimeTypeInfo: function(target, rti) {
- target[init.arrayRti] = rti;
- return target;
- },
- getRuntimeTypeInfo: function(target) {
- if (target == null)
- return null;
- return target.$ti;
- },
- getRuntimeTypeArguments: function(interceptor, object, substitutionName) {
- return H.substitute(interceptor["$as" + H.S(substitutionName)], H.getRuntimeTypeInfo(object));
- },
- getRuntimeType: function(object) {
- var rti = object instanceof H.Closure ? H.closureFunctionType(object) : null;
- return H.createRuntimeType(rti == null ? H.instanceType(object) : rti);
- },
- substitute: function(substitution, $arguments) {
- if (substitution == null)
- return $arguments;
- substitution = substitution.apply(null, $arguments);
- if (substitution == null)
- return null;
- if (Array.isArray(substitution))
- return substitution;
- if (typeof substitution == "function")
- return substitution.apply(null, $arguments);
- return $arguments;
- },
- computeSignature: function(signature, context, contextName) {
- return signature.apply(context, H.substitute(J.getInterceptor$(context)["$as" + H.S(contextName)], H.getRuntimeTypeInfo(context)));
- },
- defineProperty: function(obj, property, value) {
- Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true});
- },
- lookupAndCacheInterceptor: function(obj) {
- var interceptor, interceptorClass, mark, t1,
- tag = $.getTagFunction.call$1(obj),
- record = $.dispatchRecordsForInstanceTags[tag];
- if (record != null) {
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
- return record.i;
- }
- interceptor = $.interceptorsForUncacheableTags[tag];
- if (interceptor != null)
- return interceptor;
- interceptorClass = init.interceptorsByTag[tag];
- if (interceptorClass == null) {
- tag = $.alternateTagFunction.call$2(obj, tag);
- if (tag != null) {
- record = $.dispatchRecordsForInstanceTags[tag];
- if (record != null) {
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
- return record.i;
- }
- interceptor = $.interceptorsForUncacheableTags[tag];
- if (interceptor != null)
- return interceptor;
- interceptorClass = init.interceptorsByTag[tag];
- }
- }
- if (interceptorClass == null)
- return null;
- interceptor = interceptorClass.prototype;
- mark = tag[0];
- if (mark === "!") {
- record = H.makeLeafDispatchRecord(interceptor);
- $.dispatchRecordsForInstanceTags[tag] = record;
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
- return record.i;
- }
- if (mark === "~") {
- $.interceptorsForUncacheableTags[tag] = interceptor;
- return interceptor;
- }
- if (mark === "-") {
- t1 = H.makeLeafDispatchRecord(interceptor);
- Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
- return t1.i;
- }
- if (mark === "+")
- return H.patchInteriorProto(obj, interceptor);
- if (mark === "*")
- throw H.wrapException(P.UnimplementedError$(tag));
- if (init.leafTags[tag] === true) {
- t1 = H.makeLeafDispatchRecord(interceptor);
- Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
- return t1.i;
- } else
- return H.patchInteriorProto(obj, interceptor);
- },
- patchInteriorProto: function(obj, interceptor) {
- var proto = Object.getPrototypeOf(obj);
- Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true});
- return interceptor;
- },
- makeLeafDispatchRecord: function(interceptor) {
- return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior);
- },
- makeDefaultDispatchRecord: function(tag, interceptorClass, proto) {
- var interceptor = interceptorClass.prototype;
- if (init.leafTags[tag] === true)
- return H.makeLeafDispatchRecord(interceptor);
- else
- return J.makeDispatchRecord(interceptor, proto, null, null);
- },
- initNativeDispatch: function() {
- if (true === $.initNativeDispatchFlag)
- return;
- $.initNativeDispatchFlag = true;
- H.initNativeDispatchContinue();
- },
- initNativeDispatchContinue: function() {
- var map, tags, fun, i, tag, proto, record, interceptorClass;
- $.dispatchRecordsForInstanceTags = Object.create(null);
- $.interceptorsForUncacheableTags = Object.create(null);
- H.initHooks();
- map = init.interceptorsByTag;
- tags = Object.getOwnPropertyNames(map);
- if (typeof window != "undefined") {
- window;
- fun = function() {
- };
- for (i = 0; i < tags.length; ++i) {
- tag = tags[i];
- proto = $.prototypeForTagFunction.call$1(tag);
- if (proto != null) {
- record = H.makeDefaultDispatchRecord(tag, map[tag], proto);
- if (record != null) {
- Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
- fun.prototype = proto;
- }
- }
- }
- }
- for (i = 0; i < tags.length; ++i) {
- tag = tags[i];
- if (/^[A-Za-z_]/.test(tag)) {
- interceptorClass = map[tag];
- map["!" + tag] = interceptorClass;
- map["~" + tag] = interceptorClass;
- map["-" + tag] = interceptorClass;
- map["+" + tag] = interceptorClass;
- map["*" + tag] = interceptorClass;
- }
- }
- },
- initHooks: function() {
- var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag,
- hooks = C.C_JS_CONST0();
- 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)))))));
- if (typeof dartNativeDispatchHooksTransformer != "undefined") {
- transformers = dartNativeDispatchHooksTransformer;
- if (typeof transformers == "function")
- transformers = [transformers];
- if (transformers.constructor == Array)
- for (i = 0; i < transformers.length; ++i) {
- transformer = transformers[i];
- if (typeof transformer == "function")
- hooks = transformer(hooks) || hooks;
- }
- }
- getTag = hooks.getTag;
- getUnknownTag = hooks.getUnknownTag;
- prototypeForTag = hooks.prototypeForTag;
- $.getTagFunction = new H.initHooks_closure(getTag);
- $.alternateTagFunction = new H.initHooks_closure0(getUnknownTag);
- $.prototypeForTagFunction = new H.initHooks_closure1(prototypeForTag);
- },
- applyHooksTransformer: function(transformer, hooks) {
- return transformer(hooks) || hooks;
- },
- JSSyntaxRegExp_makeNative: function(source, multiLine, caseSensitive, unicode, dotAll, global) {
- var m = multiLine ? "m" : "",
- i = caseSensitive ? "" : "i",
- u = unicode ? "u" : "",
- s = dotAll ? "s" : "",
- g = global ? "g" : "",
- regexp = function(source, modifiers) {
- try {
- return new RegExp(source, modifiers);
- } catch (e) {
- return e;
- }
- }(source, m + i + u + s + g);
- if (regexp instanceof RegExp)
- return regexp;
- throw H.wrapException(P.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null));
- },
- stringContainsUnchecked: function(receiver, other, startIndex) {
- var t1, t2;
- if (typeof other == "string")
- return receiver.indexOf(other, startIndex) >= 0;
- else if (other instanceof H.JSSyntaxRegExp) {
- t1 = C.JSString_methods.substring$1(receiver, startIndex);
- t2 = other._nativeRegExp;
- return t2.test(t1);
- } else {
- t1 = J.allMatches$1$s(other, C.JSString_methods.substring$1(receiver, startIndex));
- return !t1.get$isEmpty(t1);
- }
- },
- escapeReplacement: function(replacement) {
- if (replacement.indexOf("$", 0) >= 0)
- return replacement.replace(/\$/g, "$$$$");
- return replacement;
- },
- stringReplaceFirstRE: function(receiver, regexp, replacement, startIndex) {
- var match = regexp._execGlobal$2(receiver, startIndex);
- if (match == null)
- return receiver;
- return H.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(match), replacement);
- },
- quoteStringForRegExp: function(string) {
- if (/[[\]{}()*+?.\\^$|]/.test(string))
- return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&");
- return string;
- },
- stringReplaceAllUnchecked: function(receiver, pattern, replacement) {
- var nativeRegexp;
- if (typeof pattern == "string")
- return H.stringReplaceAllUncheckedString(receiver, pattern, replacement);
- if (pattern instanceof H.JSSyntaxRegExp) {
- nativeRegexp = pattern.get$_nativeGlobalVersion();
- nativeRegexp.lastIndex = 0;
- return receiver.replace(nativeRegexp, H.escapeReplacement(replacement));
- }
- if (pattern == null)
- H.throwExpression(H.argumentErrorValue(pattern));
- throw H.wrapException("String.replaceAll(Pattern) UNIMPLEMENTED");
- },
- stringReplaceAllUncheckedString: function(receiver, pattern, replacement) {
- var $length, t1, i, index;
- if (pattern === "") {
- if (receiver === "")
- return replacement;
- $length = receiver.length;
- for (t1 = replacement, i = 0; i < $length; ++i)
- t1 = t1 + receiver[i] + replacement;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- index = receiver.indexOf(pattern, 0);
- if (index < 0)
- return receiver;
- if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0)
- return receiver.split(pattern).join(replacement);
- return receiver.replace(new RegExp(H.quoteStringForRegExp(pattern), 'g'), H.escapeReplacement(replacement));
- },
- stringReplaceFirstUnchecked: function(receiver, pattern, replacement, startIndex) {
- var index, t1, matches, match;
- if (typeof pattern == "string") {
- index = receiver.indexOf(pattern, startIndex);
- if (index < 0)
- return receiver;
- return H.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
- }
- if (pattern instanceof H.JSSyntaxRegExp)
- return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, H.escapeReplacement(replacement)) : H.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
- if (pattern == null)
- H.throwExpression(H.argumentErrorValue(pattern));
- t1 = J.allMatches$2$s(pattern, receiver, startIndex);
- matches = t1.get$iterator(t1);
- if (!matches.moveNext$0())
- return receiver;
- match = matches.get$current(matches);
- return C.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement);
- },
- stringReplaceRangeUnchecked: function(receiver, start, end, replacement) {
- var prefix = receiver.substring(0, start),
- suffix = receiver.substring(end);
- return prefix + H.S(replacement) + suffix;
- },
- ConstantMapView: function ConstantMapView(t0, t1) {
- this._collection$_map = t0;
- this.$ti = t1;
- },
- ConstantMap: function ConstantMap() {
- },
- ConstantStringMap: function ConstantStringMap(t0, t1, t2, t3) {
- var _ = this;
- _.__js_helper$_length = t0;
- _._jsObject = t1;
- _.__js_helper$_keys = t2;
- _.$ti = t3;
- },
- ConstantStringMap_values_closure: function ConstantStringMap_values_closure(t0) {
- this.$this = t0;
- },
- ConstantProtoMap: function ConstantProtoMap(t0, t1, t2, t3, t4) {
- var _ = this;
- _._protoValue = t0;
- _.__js_helper$_length = t1;
- _._jsObject = t2;
- _.__js_helper$_keys = t3;
- _.$ti = t4;
- },
- _ConstantMapKeyIterable: function _ConstantMapKeyIterable(t0, t1) {
- this._map = t0;
- this.$ti = t1;
- },
- Instantiation: function Instantiation() {
- },
- Instantiation1: function Instantiation1(t0, t1) {
- this._genericClosure = t0;
- this.$ti = t1;
- },
- JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) {
- var _ = this;
- _.__js_helper$_memberName = t0;
- _.__js_helper$_kind = t1;
- _._arguments = t2;
- _._namedArgumentNames = t3;
- _._typeArgumentCount = t4;
- },
- Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.namedArgumentList = t1;
- this.$arguments = t2;
- },
- TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._pattern = t0;
- _._arguments = t1;
- _._argumentsExpr = t2;
- _._expr = t3;
- _._method = t4;
- _._receiver = t5;
- },
- NullError: function NullError(t0, t1) {
- this.__js_helper$_message = t0;
- this._method = t1;
- },
- JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) {
- this.__js_helper$_message = t0;
- this._method = t1;
- this._receiver = t2;
- },
- UnknownJsTypeError: function UnknownJsTypeError(t0) {
- this.__js_helper$_message = t0;
- },
- ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) {
- this.dartException = t0;
- this.stackTrace = t1;
- },
- unwrapException_saveStackTrace: function unwrapException_saveStackTrace(t0) {
- this.ex = t0;
- },
- _StackTrace: function _StackTrace(t0) {
- this._exception = t0;
- this._trace = null;
- },
- Closure: function Closure() {
- },
- TearOffClosure: function TearOffClosure() {
- },
- StaticClosure: function StaticClosure() {
- },
- BoundClosure: function BoundClosure(t0, t1, t2, t3) {
- var _ = this;
- _._self = t0;
- _._target = t1;
- _._receiver = t2;
- _.__js_helper$_name = t3;
- },
- RuntimeError: function RuntimeError(t0) {
- this.message = t0;
- },
- JsLinkedHashMap: function JsLinkedHashMap(t0) {
- var _ = this;
- _.__js_helper$_length = 0;
- _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
- _._modifications = 0;
- _.$ti = t0;
- },
- JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) {
- this.$this = t0;
- },
- JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) {
- this.$this = t0;
- },
- LinkedHashMapCell: function LinkedHashMapCell(t0, t1) {
- var _ = this;
- _.hashMapCellKey = t0;
- _.hashMapCellValue = t1;
- _._previous = _._next = null;
- },
- LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) {
- this._map = t0;
- this.$ti = t1;
- },
- LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) {
- var _ = this;
- _._map = t0;
- _._modifications = t1;
- _.__js_helper$_current = _._cell = null;
- },
- initHooks_closure: function initHooks_closure(t0) {
- this.getTag = t0;
- },
- initHooks_closure0: function initHooks_closure0(t0) {
- this.getUnknownTag = t0;
- },
- initHooks_closure1: function initHooks_closure1(t0) {
- this.prototypeForTag = t0;
- },
- JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) {
- var _ = this;
- _.pattern = t0;
- _._nativeRegExp = t1;
- _._nativeAnchoredRegExp = _._nativeGlobalRegExp = null;
- },
- _MatchImplementation: function _MatchImplementation(t0) {
- this._match = t0;
- },
- _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) {
- this._re = t0;
- this.__js_helper$_string = t1;
- this.__js_helper$_start = t2;
- },
- _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) {
- var _ = this;
- _._regExp = t0;
- _.__js_helper$_string = t1;
- _._nextIndex = t2;
- _.__js_helper$_current = null;
- },
- StringMatch: function StringMatch(t0, t1) {
- this.start = t0;
- this.pattern = t1;
- },
- _StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) {
- this._input = t0;
- this._pattern = t1;
- this.__js_helper$_index = t2;
- },
- _StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) {
- var _ = this;
- _._input = t0;
- _._pattern = t1;
- _.__js_helper$_index = t2;
- _.__js_helper$_current = null;
- },
- _ensureNativeList: function(list) {
- return list;
- },
- NativeInt8List__create1: function(arg) {
- return new Int8Array(arg);
- },
- NativeUint8List_NativeUint8List$view: function(buffer, offsetInBytes, $length) {
- var t1;
- if (!H._isInt(offsetInBytes))
- H.throwExpression(P.ArgumentError$("Invalid view offsetInBytes " + H.S(offsetInBytes)));
- t1 = new Uint8Array(buffer, offsetInBytes, $length);
- return t1;
- },
- _checkValidIndex: function(index, list, $length) {
- if (index >>> 0 !== index || index >= $length)
- throw H.wrapException(H.diagnoseIndexError(list, index));
- },
- _checkValidRange: function(start, end, $length) {
- var t1;
- if (!(start >>> 0 !== start))
- if (end == null)
- t1 = start > $length;
- else
- t1 = end >>> 0 !== end || start > end || end > $length;
- else
- t1 = true;
- if (t1)
- throw H.wrapException(H.diagnoseRangeError(start, end, $length));
- if (end == null)
- return $length;
- return end;
- },
- NativeTypedData: function NativeTypedData() {
- },
- NativeTypedArray: function NativeTypedArray() {
- },
- NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() {
- },
- NativeTypedArrayOfInt: function NativeTypedArrayOfInt() {
- },
- NativeFloat32List: function NativeFloat32List() {
- },
- NativeFloat64List: function NativeFloat64List() {
- },
- NativeInt16List: function NativeInt16List() {
- },
- NativeInt32List: function NativeInt32List() {
- },
- NativeInt8List: function NativeInt8List() {
- },
- NativeUint16List: function NativeUint16List() {
- },
- NativeUint32List: function NativeUint32List() {
- },
- NativeUint8ClampedList: function NativeUint8ClampedList() {
- },
- NativeUint8List: function NativeUint8List() {
- },
- _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() {
- },
- _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() {
- },
- _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() {
- },
- _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() {
- },
- Rti__getQuestionFromStar: function(universe, rti) {
- var question = rti._precomputed1;
- return question == null ? rti._precomputed1 = H._Universe__lookupQuestionRti(universe, rti._primary, true) : question;
- },
- Rti__getFutureFromFutureOr: function(universe, rti) {
- var future = rti._precomputed1;
- return future == null ? rti._precomputed1 = H._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future;
- },
- Rti__isUnionOfFunctionType: function(rti) {
- var kind = rti._kind;
- if (kind === 6 || kind === 7 || kind === 8)
- return H.Rti__isUnionOfFunctionType(rti._primary);
- return kind === 11 || kind === 12;
- },
- Rti__getCanonicalRecipe: function(rti) {
- return rti._canonicalRecipe;
- },
- findType: function(recipe) {
- return H._Universe_eval(init.typeUniverse, recipe, false);
- },
- instantiatedGenericFunctionType: function(genericFunctionRti, instantiationRti) {
- var t1, cache, key, probe, rti;
- if (genericFunctionRti == null)
- return null;
- t1 = instantiationRti._rest;
- cache = genericFunctionRti._bindCache;
- if (cache == null)
- cache = genericFunctionRti._bindCache = new Map();
- key = instantiationRti._canonicalRecipe;
- probe = cache.get(key);
- if (probe != null)
- return probe;
- rti = H._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0);
- cache.set(key, rti);
- return rti;
- },
- _substitute: function(universe, rti, typeArguments, depth) {
- var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument,
- kind = rti._kind;
- switch (kind) {
- case 5:
- case 1:
- case 2:
- case 3:
- case 4:
- return rti;
- case 6:
- baseType = rti._primary;
- substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
- if (substitutedBaseType === baseType)
- return rti;
- return H._Universe__lookupStarRti(universe, substitutedBaseType, true);
- case 7:
- baseType = rti._primary;
- substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
- if (substitutedBaseType === baseType)
- return rti;
- return H._Universe__lookupQuestionRti(universe, substitutedBaseType, true);
- case 8:
- baseType = rti._primary;
- substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
- if (substitutedBaseType === baseType)
- return rti;
- return H._Universe__lookupFutureOrRti(universe, substitutedBaseType, true);
- case 9:
- interfaceTypeArguments = rti._rest;
- substitutedInterfaceTypeArguments = H._substituteArray(universe, interfaceTypeArguments, typeArguments, depth);
- if (substitutedInterfaceTypeArguments === interfaceTypeArguments)
- return rti;
- return H._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments);
- case 10:
- base = rti._primary;
- substitutedBase = H._substitute(universe, base, typeArguments, depth);
- $arguments = rti._rest;
- substitutedArguments = H._substituteArray(universe, $arguments, typeArguments, depth);
- if (substitutedBase === base && substitutedArguments === $arguments)
- return rti;
- return H._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments);
- case 11:
- returnType = rti._primary;
- substitutedReturnType = H._substitute(universe, returnType, typeArguments, depth);
- functionParameters = rti._rest;
- substitutedFunctionParameters = H._substituteFunctionParameters(universe, functionParameters, typeArguments, depth);
- if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters)
- return rti;
- return H._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters);
- case 12:
- bounds = rti._rest;
- depth += bounds.length;
- substitutedBounds = H._substituteArray(universe, bounds, typeArguments, depth);
- base = rti._primary;
- substitutedBase = H._substitute(universe, base, typeArguments, depth);
- if (substitutedBounds === bounds && substitutedBase === base)
- return rti;
- return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true);
- case 13:
- index = rti._primary;
- if (index < depth)
- return rti;
- argument = typeArguments[index - depth];
- if (argument == null)
- return rti;
- return argument;
- default:
- throw H.wrapException(P.AssertionError$("Attempted to substitute unexpected RTI kind " + kind));
- }
- },
- _substituteArray: function(universe, rtiArray, typeArguments, depth) {
- var changed, i, rti, substitutedRti,
- $length = rtiArray.length,
- result = [];
- for (changed = false, i = 0; i < $length; ++i) {
- rti = rtiArray[i];
- substitutedRti = H._substitute(universe, rti, typeArguments, depth);
- if (substitutedRti !== rti)
- changed = true;
- result.push(substitutedRti);
- }
- return changed ? result : rtiArray;
- },
- _substituteNamed: function(universe, namedArray, typeArguments, depth) {
- var changed, i, t1, rti, substitutedRti,
- $length = namedArray.length,
- result = [];
- for (changed = false, i = 0; i < $length; i += 2) {
- t1 = namedArray[i];
- rti = namedArray[i + 1];
- substitutedRti = H._substitute(universe, rti, typeArguments, depth);
- if (substitutedRti !== rti)
- changed = true;
- result.push(t1);
- result.push(substitutedRti);
- }
- return changed ? result : namedArray;
- },
- _substituteFunctionParameters: function(universe, functionParameters, typeArguments, depth) {
- var result,
- requiredPositional = functionParameters._requiredPositional,
- substitutedRequiredPositional = H._substituteArray(universe, requiredPositional, typeArguments, depth),
- optionalPositional = functionParameters._optionalPositional,
- substitutedOptionalPositional = H._substituteArray(universe, optionalPositional, typeArguments, depth),
- optionalNamed = functionParameters._optionalNamed,
- substitutedOptionalNamed = H._substituteNamed(universe, optionalNamed, typeArguments, depth);
- if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedOptionalNamed === optionalNamed)
- return functionParameters;
- result = new H._FunctionParameters();
- result._requiredPositional = substitutedRequiredPositional;
- result._optionalPositional = substitutedOptionalPositional;
- result._optionalNamed = substitutedOptionalNamed;
- return result;
- },
- closureFunctionType: function(closure) {
- var signature = closure.$signature;
- if (signature != null) {
- if (typeof signature == "number")
- return H.getTypeFromTypesTable(signature);
- return closure.$signature();
- }
- return null;
- },
- instanceOrFunctionType: function(object, testRti) {
- var rti;
- if (H.Rti__isUnionOfFunctionType(testRti))
- if (object instanceof H.Closure) {
- rti = H.closureFunctionType(object);
- if (rti != null)
- return rti;
- }
- return H.instanceType(object);
- },
- instanceType: function(object) {
- var rti;
- if (object instanceof P.Object) {
- rti = object.$ti;
- return rti != null ? rti : H._instanceTypeFromConstructor(object);
- }
- if (Array.isArray(object))
- return H._arrayInstanceType(object);
- return H._instanceTypeFromConstructor(J.getInterceptor$(object));
- },
- _arrayInstanceType: function(object) {
- var rti = object[init.arrayRti],
- defaultRti = type$.JSArray_dynamic;
- if (rti == null)
- return defaultRti;
- if (rti.constructor !== defaultRti.constructor)
- return defaultRti;
- return rti;
- },
- _instanceType: function(object) {
- var rti = object.$ti;
- return rti != null ? rti : H._instanceTypeFromConstructor(object);
- },
- _instanceTypeFromConstructor: function(instance) {
- var $constructor = instance.constructor,
- probe = $constructor.$ccache;
- if (probe != null)
- return probe;
- return H._instanceTypeFromConstructorMiss(instance, $constructor);
- },
- _instanceTypeFromConstructorMiss: function(instance, $constructor) {
- var effectiveConstructor = instance instanceof H.Closure ? instance.__proto__.__proto__.constructor : $constructor,
- rti = H._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name);
- $constructor.$ccache = rti;
- return rti;
- },
- getTypeFromTypesTable: function(_index) {
- var rti,
- index = _index,
- table = init.types,
- type = table[index];
- if (typeof type == "string") {
- rti = H._Universe_eval(init.typeUniverse, type, false);
- table[index] = rti;
- return rti;
- }
- return type;
- },
- createRuntimeType: function(rti) {
- var recipe, starErasedRecipe, starErasedRti,
- type = rti._cachedRuntimeType;
- if (type != null)
- return type;
- recipe = rti._canonicalRecipe;
- starErasedRecipe = recipe.replace(/\*/g, "");
- if (starErasedRecipe === recipe)
- return rti._cachedRuntimeType = new H._Type(rti);
- starErasedRti = H._Universe_eval(init.typeUniverse, starErasedRecipe, true);
- type = starErasedRti._cachedRuntimeType;
- return rti._cachedRuntimeType = type == null ? starErasedRti._cachedRuntimeType = new H._Type(starErasedRti) : type;
- },
- _installSpecializedIsTest: function(object) {
- var testRti = this,
- isFn = H._generalIsTestImplementation,
- t1 = type$.Object;
- if (testRti === t1) {
- isFn = H._isObject;
- testRti._as = H._asObject;
- } else if (H.isStrongTopType(testRti) || testRti === t1) {
- isFn = H._isTop;
- testRti._as = H._asTop;
- } else if (testRti === type$.int)
- isFn = H._isInt;
- else if (testRti === type$.double)
- isFn = H._isNum;
- else if (testRti === type$.num)
- isFn = H._isNum;
- else if (testRti === type$.String)
- isFn = H._isString;
- else if (testRti === type$.bool)
- isFn = H._isBool;
- else if (testRti._kind === 9) {
- t1 = testRti._primary;
- if (testRti._rest.every(H.isTopType)) {
- testRti._specializedTestResource = "$is" + t1;
- isFn = H._isTestViaProperty;
- }
- }
- testRti._is = isFn;
- return testRti._is(object);
- },
- _generalIsTestImplementation: function(object) {
- var testRti = this;
- return H._isSubtype(init.typeUniverse, H.instanceOrFunctionType(object, testRti), null, testRti, null);
- },
- _isTestViaProperty: function(object) {
- var t1 = this,
- tag = t1._specializedTestResource;
- if (object instanceof P.Object)
- return !!object[tag];
- return !!J.getInterceptor$(object)[tag];
- },
- _generalAsCheckImplementation: function(object) {
- var testRti = this;
- if (object == null)
- return object;
- else if (testRti._is(object))
- return object;
- throw H.wrapException(H._TypeError$fromMessage(H._Error_compose(object, H.instanceOrFunctionType(object, testRti), H._rtiToString(testRti, null))));
- },
- _Error_compose: function(object, objectRti, checkedTypeDescription) {
- var objectDescription = P.Error_safeToString(object),
- objectTypeDescription = H._rtiToString(objectRti == null ? H.instanceType(object) : objectRti, null);
- return objectDescription + ": type '" + H.S(objectTypeDescription) + "' is not a subtype of type '" + H.S(checkedTypeDescription) + "'";
- },
- _TypeError$fromMessage: function(message) {
- return new H._TypeError("TypeError: " + message);
- },
- _TypeError__TypeError$forType: function(object, type) {
- return new H._TypeError("TypeError: " + H._Error_compose(object, null, type));
- },
- _isObject: function(object) {
- return true;
- },
- _asObject: function(object) {
- return object;
- },
- _isTop: function(object) {
- return true;
- },
- _asTop: function(object) {
- return object;
- },
- _isBool: function(object) {
- return true === object || false === object;
- },
- _asBoolNullable: function(object) {
- if (true === object || false === object)
- return object;
- if (object == null)
- return object;
- throw H.wrapException(H._TypeError__TypeError$forType(object, "bool"));
- },
- _asDoubleNullable: function(object) {
- if (typeof object == "number")
- return object;
- if (object == null)
- return object;
- throw H.wrapException(H._TypeError__TypeError$forType(object, "double"));
- },
- _isInt: function(object) {
- return typeof object == "number" && Math.floor(object) === object;
- },
- _asIntNullable: function(object) {
- if (typeof object == "number" && Math.floor(object) === object)
- return object;
- if (object == null)
- return object;
- throw H.wrapException(H._TypeError__TypeError$forType(object, "int"));
- },
- _isNum: function(object) {
- return typeof object == "number";
- },
- _asNumNullable: function(object) {
- if (typeof object == "number")
- return object;
- if (object == null)
- return object;
- throw H.wrapException(H._TypeError__TypeError$forType(object, "num"));
- },
- _isString: function(object) {
- return typeof object == "string";
- },
- _asStringNullable: function(object) {
- if (typeof object == "string")
- return object;
- if (object == null)
- return object;
- throw H.wrapException(H._TypeError__TypeError$forType(object, "String"));
- },
- _rtiArrayToString: function(array, genericContext) {
- var s, sep, i;
- for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ")
- s += C.JSString_methods.$add(sep, H._rtiToString(array[i], genericContext));
- return s;
- },
- _functionRtiToString: function(functionType, genericContext, bounds) {
- var boundsLength, outerContextLength, offset, i, t1, typeParametersText, typeSep, boundRti, t2, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, optionalNamed, optionalNamedLength, returnTypeText, argumentsText, sep, _s2_ = ", ";
- if (bounds != null) {
- boundsLength = bounds.length;
- if (genericContext == null) {
- genericContext = H.setRuntimeTypeInfo([], type$.JSArray_String);
- outerContextLength = null;
- } else
- outerContextLength = genericContext.length;
- offset = genericContext.length;
- for (i = boundsLength; i > 0; --i)
- genericContext.push("T" + (offset + i));
- for (t1 = type$.Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) {
- typeParametersText = C.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]);
- boundRti = bounds[i];
- if (!(H.isStrongTopType(boundRti) || boundRti === t1))
- t2 = !(boundRti === t1);
- else
- t2 = false;
- if (t2)
- typeParametersText += C.JSString_methods.$add(" extends ", H._rtiToString(boundRti, genericContext));
- }
- typeParametersText += ">";
- } else {
- typeParametersText = "";
- outerContextLength = null;
- }
- t1 = functionType._primary;
- parameters = functionType._rest;
- requiredPositional = parameters._requiredPositional;
- requiredPositionalLength = requiredPositional.length;
- optionalPositional = parameters._optionalPositional;
- optionalPositionalLength = optionalPositional.length;
- optionalNamed = parameters._optionalNamed;
- optionalNamedLength = optionalNamed.length;
- returnTypeText = H._rtiToString(t1, genericContext);
- for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_)
- argumentsText += C.JSString_methods.$add(sep, H._rtiToString(requiredPositional[i], genericContext));
- if (optionalPositionalLength > 0) {
- argumentsText += sep + "[";
- for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_)
- argumentsText += C.JSString_methods.$add(sep, H._rtiToString(optionalPositional[i], genericContext));
- argumentsText += "]";
- }
- if (optionalNamedLength > 0) {
- argumentsText += sep + "{";
- for (sep = "", i = 0; i < optionalNamedLength; i += 2, sep = _s2_)
- argumentsText += C.JSString_methods.$add(sep, H._rtiToString(optionalNamed[i + 1], genericContext)) + " " + optionalNamed[i];
- argumentsText += "}";
- }
- if (outerContextLength != null)
- genericContext.length = outerContextLength;
- return typeParametersText + "(" + argumentsText + ") => " + H.S(returnTypeText);
- },
- _rtiToString: function(rti, genericContext) {
- var s, questionArgument, argumentKind, $name, $arguments, t1,
- kind = rti._kind;
- if (kind === 5)
- return "erased";
- if (kind === 2)
- return "dynamic";
- if (kind === 3)
- return "void";
- if (kind === 1)
- return "Never";
- if (kind === 4)
- return "any";
- if (kind === 6) {
- s = H._rtiToString(rti._primary, genericContext);
- return s;
- }
- if (kind === 7) {
- questionArgument = rti._primary;
- s = H._rtiToString(questionArgument, genericContext);
- argumentKind = questionArgument._kind;
- return J.$add$ansx(argumentKind === 11 || argumentKind === 12 ? C.JSString_methods.$add("(", s) + ")" : s, "?");
- }
- if (kind === 8)
- return "FutureOr<" + H.S(H._rtiToString(rti._primary, genericContext)) + ">";
- if (kind === 9) {
- $name = H._unminifyOrTag(rti._primary);
- $arguments = rti._rest;
- return $arguments.length !== 0 ? $name + ("<" + H._rtiArrayToString($arguments, genericContext) + ">") : $name;
- }
- if (kind === 11)
- return H._functionRtiToString(rti, genericContext, null);
- if (kind === 12)
- return H._functionRtiToString(rti._primary, genericContext, rti._rest);
- if (kind === 13) {
- t1 = rti._primary;
- return genericContext[genericContext.length - 1 - t1];
- }
- return "?";
- },
- _unminifyOrTag: function(rawClassName) {
- var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
- if (preserved != null)
- return preserved;
- return rawClassName;
- },
- _Universe_findRule: function(universe, targetType) {
- var rule = universe.tR[targetType];
- for (; typeof rule == "string";)
- rule = universe.tR[rule];
- return rule;
- },
- _Universe_findErasedType: function(universe, cls) {
- var $length, erased, $arguments, i, $interface,
- metadata = universe.eT,
- probe = metadata[cls];
- if (probe == null)
- return H._Universe_eval(universe, cls, false);
- else if (typeof probe == "number") {
- $length = probe;
- erased = H._Universe__lookupTerminalRti(universe, 5, "#");
- $arguments = [];
- for (i = 0; i < $length; ++i)
- $arguments.push(erased);
- $interface = H._Universe__lookupInterfaceRti(universe, cls, $arguments);
- metadata[cls] = $interface;
- return $interface;
- } else
- return probe;
- },
- _Universe_addRules: function(universe, rules) {
- return H._Utils_objectAssign(universe.tR, rules);
- },
- _Universe_addErasedTypes: function(universe, types) {
- return H._Utils_objectAssign(universe.eT, types);
- },
- _Universe_eval: function(universe, recipe, normalize) {
- var rti,
- cache = universe.eC,
- probe = cache.get(recipe);
- if (probe != null)
- return probe;
- rti = H._Universe__parseRecipe(universe, null, recipe, normalize);
- cache.set(recipe, rti);
- return rti;
- },
- _Universe_evalInEnvironment: function(universe, environment, recipe) {
- var probe, rti,
- cache = environment._evalCache;
- if (cache == null)
- cache = environment._evalCache = new Map();
- probe = cache.get(recipe);
- if (probe != null)
- return probe;
- rti = H._Universe__parseRecipe(universe, environment, recipe, true);
- cache.set(recipe, rti);
- return rti;
- },
- _Universe_bind: function(universe, environment, argumentsRti) {
- var argumentsRecipe, probe, rti,
- cache = environment._bindCache;
- if (cache == null)
- cache = environment._bindCache = new Map();
- argumentsRecipe = argumentsRti._canonicalRecipe;
- probe = cache.get(argumentsRecipe);
- if (probe != null)
- return probe;
- rti = H._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]);
- cache.set(argumentsRecipe, rti);
- return rti;
- },
- _Universe__parseRecipe: function(universe, environment, recipe, normalize) {
- var rti = H._Parser_parse(H._Parser_create(universe, environment, recipe, normalize));
- if (rti != null)
- return rti;
- throw H.wrapException(P.UnimplementedError$('_Universe._parseRecipe("' + H.S(recipe) + '")'));
- },
- _Universe__installTypeTests: function(universe, rti) {
- rti._as = H._generalAsCheckImplementation;
- rti._is = H._installSpecializedIsTest;
- return rti;
- },
- _Universe__lookupTerminalRti: function(universe, kind, key) {
- var rti, t1,
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- rti = new H.Rti(null, null);
- rti._kind = kind;
- rti._canonicalRecipe = key;
- t1 = H._Universe__installTypeTests(universe, rti);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__lookupStarRti: function(universe, baseType, normalize) {
- var t1,
- key = baseType._canonicalRecipe + "*",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- t1 = H._Universe__createStarRti(universe, baseType, key, normalize);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__createStarRti: function(universe, baseType, key, normalize) {
- var baseKind, rti;
- if (normalize) {
- baseKind = baseType._kind;
- if (H.isStrongTopType(baseType) || baseType === type$.Object || baseType === type$.Null || baseKind === 7 || baseKind === 6)
- return baseType;
- }
- rti = new H.Rti(null, null);
- rti._kind = 6;
- rti._primary = baseType;
- rti._canonicalRecipe = key;
- return H._Universe__installTypeTests(universe, rti);
- },
- _Universe__lookupQuestionRti: function(universe, baseType, normalize) {
- var t1,
- key = baseType._canonicalRecipe + "?",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- t1 = H._Universe__createQuestionRti(universe, baseType, key, normalize);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__createQuestionRti: function(universe, baseType, key, normalize) {
- var baseKind, t1, starArgument, starArgumentKind, rti;
- if (normalize) {
- baseKind = baseType._kind;
- if (!H.isStrongTopType(baseType))
- if (!(baseType === type$.Null))
- if (baseKind !== 7)
- t1 = baseKind === 8 && H.isNullable(baseType._primary);
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- if (t1)
- return baseType;
- else if (baseKind === 1)
- return type$.Null;
- else if (baseKind === 6) {
- starArgument = baseType._primary;
- starArgumentKind = starArgument._kind;
- if (starArgumentKind === 1)
- return type$.Null;
- else if (starArgumentKind === 8 && H.isNullable(starArgument._primary))
- return starArgument;
- else
- return H.Rti__getQuestionFromStar(universe, baseType);
- }
- }
- rti = new H.Rti(null, null);
- rti._kind = 7;
- rti._primary = baseType;
- rti._canonicalRecipe = key;
- return H._Universe__installTypeTests(universe, rti);
- },
- _Universe__lookupFutureOrRti: function(universe, baseType, normalize) {
- var t1,
- key = baseType._canonicalRecipe + "/",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- t1 = H._Universe__createFutureOrRti(universe, baseType, key, normalize);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__createFutureOrRti: function(universe, baseType, key, normalize) {
- var t1, rti;
- if (normalize) {
- t1 = baseType._kind;
- if (H.isStrongTopType(baseType) || baseType === type$.Object || baseType === type$.Object)
- return baseType;
- else if (t1 === 1)
- return H._Universe__lookupInterfaceRti(universe, "Future", [baseType]);
- else if (baseType === type$.Null)
- return type$.Future_Null;
- }
- rti = new H.Rti(null, null);
- rti._kind = 8;
- rti._primary = baseType;
- rti._canonicalRecipe = key;
- return H._Universe__installTypeTests(universe, rti);
- },
- _Universe__lookupGenericFunctionParameterRti: function(universe, index) {
- var rti, t1,
- key = "" + index + "^",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- rti = new H.Rti(null, null);
- rti._kind = 13;
- rti._primary = index;
- rti._canonicalRecipe = key;
- t1 = H._Universe__installTypeTests(universe, rti);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__canonicalRecipeJoin: function($arguments) {
- var s, sep, i,
- $length = $arguments.length;
- for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",")
- s += sep + $arguments[i]._canonicalRecipe;
- return s;
- },
- _Universe__canonicalRecipeJoinNamed: function($arguments) {
- var s, sep, i, t1, s0,
- $length = $arguments.length;
- for (s = "", sep = "", i = 0; i < $length; i += 2, sep = ",") {
- t1 = $arguments[i];
- s0 = $arguments[i + 1]._canonicalRecipe;
- s += sep + t1 + ":" + s0;
- }
- return s;
- },
- _Universe__lookupInterfaceRti: function(universe, $name, $arguments) {
- var probe, rti, t1,
- s = $name;
- if ($arguments.length !== 0)
- s += "<" + H._Universe__canonicalRecipeJoin($arguments) + ">";
- probe = universe.eC.get(s);
- if (probe != null)
- return probe;
- rti = new H.Rti(null, null);
- rti._kind = 9;
- rti._primary = $name;
- rti._rest = $arguments;
- if ($arguments.length > 0)
- rti._precomputed1 = $arguments[0];
- rti._canonicalRecipe = s;
- t1 = H._Universe__installTypeTests(universe, rti);
- universe.eC.set(s, t1);
- return t1;
- },
- _Universe__lookupBindingRti: function(universe, base, $arguments) {
- var newBase, newArguments, s, probe, rti, t1;
- if (base._kind === 10) {
- newBase = base._primary;
- newArguments = base._rest.concat($arguments);
- } else {
- newArguments = $arguments;
- newBase = base;
- }
- s = newBase._canonicalRecipe + ";" + ("<" + H._Universe__canonicalRecipeJoin(newArguments) + ">");
- probe = universe.eC.get(s);
- if (probe != null)
- return probe;
- rti = new H.Rti(null, null);
- rti._kind = 10;
- rti._primary = newBase;
- rti._rest = newArguments;
- rti._canonicalRecipe = s;
- t1 = H._Universe__installTypeTests(universe, rti);
- universe.eC.set(s, t1);
- return t1;
- },
- _Universe__lookupFunctionRti: function(universe, returnType, parameters) {
- var key, probe, rti, t1,
- s = returnType._canonicalRecipe,
- requiredPositional = parameters._requiredPositional,
- requiredPositionalLength = requiredPositional.length,
- optionalPositional = parameters._optionalPositional,
- optionalPositionalLength = optionalPositional.length,
- optionalNamed = parameters._optionalNamed,
- optionalNamedLength = optionalNamed.length,
- recipe = "(" + H._Universe__canonicalRecipeJoin(requiredPositional);
- if (optionalPositionalLength > 0)
- recipe += (requiredPositionalLength > 0 ? "," : "") + "[" + H._Universe__canonicalRecipeJoin(optionalPositional) + "]";
- if (optionalNamedLength > 0)
- recipe += (requiredPositionalLength > 0 ? "," : "") + "{" + H._Universe__canonicalRecipeJoinNamed(optionalNamed) + "}";
- key = s + (recipe + ")");
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- rti = new H.Rti(null, null);
- rti._kind = 11;
- rti._primary = returnType;
- rti._rest = parameters;
- rti._canonicalRecipe = key;
- t1 = H._Universe__installTypeTests(universe, rti);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__lookupGenericFunctionRti: function(universe, baseFunctionType, bounds, normalize) {
- var t1,
- key = baseFunctionType._canonicalRecipe + "<" + H._Universe__canonicalRecipeJoin(bounds) + ">",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- t1 = H._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__createGenericFunctionRti: function(universe, baseFunctionType, bounds, key, normalize) {
- var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti;
- if (normalize) {
- $length = bounds.length;
- typeArguments = new Array($length);
- for (count = 0, i = 0; i < $length; ++i) {
- bound = bounds[i];
- if (bound._kind === 1) {
- typeArguments[i] = bound;
- ++count;
- }
- }
- if (count > 0) {
- substitutedBase = H._substitute(universe, baseFunctionType, typeArguments, 0);
- substitutedBounds = H._substituteArray(universe, bounds, typeArguments, 0);
- return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds);
- }
- }
- rti = new H.Rti(null, null);
- rti._kind = 12;
- rti._primary = baseFunctionType;
- rti._rest = bounds;
- rti._canonicalRecipe = key;
- return H._Universe__installTypeTests(universe, rti);
- },
- _Parser_create: function(universe, environment, recipe, normalize) {
- return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize};
- },
- _Parser_parse: function(parser) {
- var t1, i, ch, universe, array, head, base, u, parameters, optionalPositional, optionalNamed, item,
- source = parser.r,
- stack = parser.s;
- for (t1 = source.length, i = 0; i < t1;) {
- ch = source.charCodeAt(i);
- if (ch >= 48 && ch <= 57)
- i = H._Parser_handleDigit(i + 1, ch, source, stack);
- else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36)
- i = H._Parser_handleIdentifier(parser, i, source, stack, false);
- else if (ch === 46)
- i = H._Parser_handleIdentifier(parser, i, source, stack, true);
- else {
- ++i;
- switch (ch) {
- case 44:
- break;
- case 58:
- break;
- case 59:
- stack.push(H._Parser_toType(parser.u, parser.e, stack.pop()));
- break;
- case 94:
- stack.push(H._Universe__lookupGenericFunctionParameterRti(parser.u, stack.pop()));
- break;
- case 35:
- stack.push(H._Universe__lookupTerminalRti(parser.u, 5, "#"));
- break;
- case 64:
- stack.push(H._Universe__lookupTerminalRti(parser.u, 2, "@"));
- break;
- case 126:
- stack.push(H._Universe__lookupTerminalRti(parser.u, 3, "~"));
- break;
- case 60:
- stack.push(parser.p);
- parser.p = stack.length;
- break;
- case 62:
- universe = parser.u;
- array = stack.splice(parser.p);
- H._Parser_toTypes(parser.u, parser.e, array);
- parser.p = stack.pop();
- head = stack.pop();
- if (typeof head == "string")
- stack.push(H._Universe__lookupInterfaceRti(universe, head, array));
- else {
- base = H._Parser_toType(universe, parser.e, head);
- switch (base._kind) {
- case 11:
- stack.push(H._Universe__lookupGenericFunctionRti(universe, base, array, parser.n));
- break;
- default:
- stack.push(H._Universe__lookupBindingRti(universe, base, array));
- break;
- }
- }
- break;
- case 38:
- H._Parser_handleExtendedOperations(parser, stack);
- break;
- case 42:
- u = parser.u;
- stack.push(H._Universe__lookupStarRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
- break;
- case 63:
- u = parser.u;
- stack.push(H._Universe__lookupQuestionRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
- break;
- case 47:
- u = parser.u;
- stack.push(H._Universe__lookupFutureOrRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
- break;
- case 40:
- stack.push(parser.p);
- parser.p = stack.length;
- break;
- case 41:
- universe = parser.u;
- parameters = new H._FunctionParameters();
- optionalPositional = universe.sEA;
- optionalNamed = universe.sEA;
- head = stack.pop();
- if (typeof head == "number")
- switch (head) {
- case -1:
- optionalPositional = stack.pop();
- break;
- case -2:
- optionalNamed = stack.pop();
- break;
- default:
- stack.push(head);
- break;
- }
- else
- stack.push(head);
- array = stack.splice(parser.p);
- H._Parser_toTypes(parser.u, parser.e, array);
- parser.p = stack.pop();
- parameters._requiredPositional = array;
- parameters._optionalPositional = optionalPositional;
- parameters._optionalNamed = optionalNamed;
- stack.push(H._Universe__lookupFunctionRti(universe, H._Parser_toType(universe, parser.e, stack.pop()), parameters));
- break;
- case 91:
- stack.push(parser.p);
- parser.p = stack.length;
- break;
- case 93:
- array = stack.splice(parser.p);
- H._Parser_toTypes(parser.u, parser.e, array);
- parser.p = stack.pop();
- stack.push(array);
- stack.push(-1);
- break;
- case 123:
- stack.push(parser.p);
- parser.p = stack.length;
- break;
- case 125:
- array = stack.splice(parser.p);
- H._Parser_toTypesNamed(parser.u, parser.e, array);
- parser.p = stack.pop();
- stack.push(array);
- stack.push(-2);
- break;
- default:
- throw "Bad character " + ch;
- }
- }
- }
- item = stack.pop();
- return H._Parser_toType(parser.u, parser.e, item);
- },
- _Parser_handleDigit: function(i, digit, source, stack) {
- var t1, ch,
- value = digit - 48;
- for (t1 = source.length; i < t1; ++i) {
- ch = source.charCodeAt(i);
- if (!(ch >= 48 && ch <= 57))
- break;
- value = value * 10 + (ch - 48);
- }
- stack.push(value);
- return i;
- },
- _Parser_handleIdentifier: function(parser, start, source, stack, hasPeriod) {
- var t1, ch, t2, string, environment, recipe,
- i = start + 1;
- for (t1 = source.length; i < t1; ++i) {
- ch = source.charCodeAt(i);
- if (ch === 46) {
- if (hasPeriod)
- break;
- hasPeriod = true;
- } else {
- if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36))
- t2 = ch >= 48 && ch <= 57;
- else
- t2 = true;
- if (!t2)
- break;
- }
- }
- string = source.substring(start, i);
- if (hasPeriod) {
- t1 = parser.u;
- environment = parser.e;
- if (environment._kind === 10)
- environment = environment._primary;
- recipe = H._Universe_findRule(t1, environment._primary)[string];
- if (recipe == null)
- H.throwExpression('No "' + string + '" in "' + H.Rti__getCanonicalRecipe(environment) + '"');
- stack.push(H._Universe_evalInEnvironment(t1, environment, recipe));
- } else
- stack.push(string);
- return i;
- },
- _Parser_handleExtendedOperations: function(parser, stack) {
- var $top = stack.pop();
- if (0 === $top) {
- stack.push(H._Universe__lookupTerminalRti(parser.u, 1, "0&"));
- return;
- }
- if (1 === $top) {
- stack.push(H._Universe__lookupTerminalRti(parser.u, 4, "1&"));
- return;
- }
- throw H.wrapException(P.AssertionError$("Unexpected extended operation " + H.S($top)));
- },
- _Parser_toType: function(universe, environment, item) {
- if (typeof item == "string")
- return H._Universe__lookupInterfaceRti(universe, item, universe.sEA);
- else if (typeof item == "number")
- return H._Parser_indexToType(universe, environment, item);
- else
- return item;
- },
- _Parser_toTypes: function(universe, environment, items) {
- var i,
- $length = items.length;
- for (i = 0; i < $length; ++i)
- items[i] = H._Parser_toType(universe, environment, items[i]);
- },
- _Parser_toTypesNamed: function(universe, environment, items) {
- var i,
- $length = items.length;
- for (i = 1; i < $length; i += 2)
- items[i] = H._Parser_toType(universe, environment, items[i]);
- },
- _Parser_indexToType: function(universe, environment, index) {
- var typeArguments, len,
- kind = environment._kind;
- if (kind === 10) {
- if (index === 0)
- return environment._primary;
- typeArguments = environment._rest;
- len = typeArguments.length;
- if (index <= len)
- return typeArguments[index - 1];
- index -= len;
- environment = environment._primary;
- kind = environment._kind;
- } else if (index === 0)
- return environment;
- if (kind !== 9)
- throw H.wrapException(P.AssertionError$("Indexed base must be an interface type"));
- typeArguments = environment._rest;
- if (index <= typeArguments.length)
- return typeArguments[index - 1];
- throw H.wrapException(P.AssertionError$("Bad index " + index + " for " + environment.toString$0(0)));
- },
- _isSubtype: function(universe, s, sEnv, t, tEnv) {
- var sKind, leftTypeVariable, tKind, t1, sBounds, tBounds, sLength, i, sBound, tBound;
- if (s === t)
- return true;
- if (H.isStrongTopType(t) || t === type$.Object)
- return true;
- sKind = s._kind;
- if (sKind === 4)
- return true;
- if (H.isStrongTopType(s))
- return false;
- if (s === type$.Null)
- return true;
- leftTypeVariable = sKind === 13;
- if (leftTypeVariable)
- if (H._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv))
- return true;
- tKind = t._kind;
- if (sKind === 6)
- return H._isSubtype(universe, s._primary, sEnv, t, tEnv);
- if (tKind === 6) {
- t1 = t._primary;
- return H._isSubtype(universe, s, sEnv, t1, tEnv);
- }
- if (sKind === 8) {
- if (!H._isSubtype(universe, s._primary, sEnv, t, tEnv))
- return false;
- return H._isSubtype(universe, H.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv);
- }
- if (sKind === 7) {
- t1 = H._isSubtype(universe, s._primary, sEnv, t, tEnv);
- return t1;
- }
- if (tKind === 8) {
- if (H._isSubtype(universe, s, sEnv, t._primary, tEnv))
- return true;
- return H._isSubtype(universe, s, sEnv, H.Rti__getFutureFromFutureOr(universe, t), tEnv);
- }
- if (tKind === 7) {
- t1 = H._isSubtype(universe, s, sEnv, t._primary, tEnv);
- return t1;
- }
- if (leftTypeVariable)
- return false;
- t1 = sKind !== 11;
- if ((!t1 || sKind === 12) && t === type$.Function)
- return true;
- if (tKind === 12) {
- if (s === type$.JavaScriptFunction)
- return true;
- if (sKind !== 12)
- return false;
- sBounds = s._rest;
- tBounds = t._rest;
- sLength = sBounds.length;
- if (sLength !== tBounds.length)
- return false;
- sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv);
- tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv);
- for (i = 0; i < sLength; ++i) {
- sBound = sBounds[i];
- tBound = tBounds[i];
- if (!H._isSubtype(universe, sBound, sEnv, tBound, tEnv) || !H._isSubtype(universe, tBound, tEnv, sBound, sEnv))
- return false;
- }
- return H._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv);
- }
- if (tKind === 11) {
- if (s === type$.JavaScriptFunction)
- return true;
- if (t1)
- return false;
- return H._isFunctionSubtype(universe, s, sEnv, t, tEnv);
- }
- if (sKind === 9) {
- if (tKind !== 9)
- return false;
- return H._isInterfaceSubtype(universe, s, sEnv, t, tEnv);
- }
- return false;
- },
- _isFunctionSubtype: function(universe, s, sEnv, t, tEnv) {
- var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sOptionalNamed, tOptionalNamed, sOptionalNamedLength, tOptionalNamedLength, j, tName, sName;
- if (!H._isSubtype(universe, s._primary, sEnv, t._primary, tEnv))
- return false;
- sParameters = s._rest;
- tParameters = t._rest;
- sRequiredPositional = sParameters._requiredPositional;
- tRequiredPositional = tParameters._requiredPositional;
- sRequiredPositionalLength = sRequiredPositional.length;
- tRequiredPositionalLength = tRequiredPositional.length;
- if (sRequiredPositionalLength > tRequiredPositionalLength)
- return false;
- requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength;
- sOptionalPositional = sParameters._optionalPositional;
- tOptionalPositional = tParameters._optionalPositional;
- sOptionalPositionalLength = sOptionalPositional.length;
- tOptionalPositionalLength = tOptionalPositional.length;
- if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength)
- return false;
- for (i = 0; i < sRequiredPositionalLength; ++i) {
- t1 = sRequiredPositional[i];
- if (!H._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv))
- return false;
- }
- for (i = 0; i < requiredPositionalDelta; ++i) {
- t1 = sOptionalPositional[i];
- if (!H._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv))
- return false;
- }
- for (i = 0; i < tOptionalPositionalLength; ++i) {
- t1 = sOptionalPositional[requiredPositionalDelta + i];
- if (!H._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv))
- return false;
- }
- sOptionalNamed = sParameters._optionalNamed;
- tOptionalNamed = tParameters._optionalNamed;
- sOptionalNamedLength = sOptionalNamed.length;
- tOptionalNamedLength = tOptionalNamed.length;
- for (i = 0, j = 0; j < tOptionalNamedLength; j += 2) {
- tName = tOptionalNamed[j];
- do {
- if (i >= sOptionalNamedLength)
- return false;
- sName = sOptionalNamed[i];
- i += 2;
- } while (sName < tName);
- if (tName < sName)
- return false;
- t1 = sOptionalNamed[i - 1];
- if (!H._isSubtype(universe, tOptionalNamed[j + 1], tEnv, t1, sEnv))
- return false;
- }
- return true;
- },
- _isInterfaceSubtype: function(universe, s, sEnv, t, tEnv) {
- var sArgs, tArgs, $length, i, t1, t2, rule, supertypeArgs,
- sName = s._primary,
- tName = t._primary;
- if (sName === tName) {
- sArgs = s._rest;
- tArgs = t._rest;
- $length = sArgs.length;
- for (i = 0; i < $length; ++i) {
- t1 = sArgs[i];
- t2 = tArgs[i];
- if (!H._isSubtype(universe, t1, sEnv, t2, tEnv))
- return false;
- }
- return true;
- }
- if (t === type$.Object)
- return true;
- rule = H._Universe_findRule(universe, sName);
- if (rule == null)
- return false;
- supertypeArgs = rule[tName];
- if (supertypeArgs == null)
- return false;
- $length = supertypeArgs.length;
- tArgs = t._rest;
- for (i = 0; i < $length; ++i)
- if (!H._isSubtype(universe, H._Universe_evalInEnvironment(universe, s, supertypeArgs[i]), sEnv, tArgs[i], tEnv))
- return false;
- return true;
- },
- isNullable: function(t) {
- var t1,
- kind = t._kind;
- if (!(t === type$.Null))
- if (!H.isStrongTopType(t))
- if (kind !== 7)
- if (!(kind === 6 && H.isNullable(t._primary)))
- t1 = kind === 8 && H.isNullable(t._primary);
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- isTopType: function(t) {
- return H.isStrongTopType(t) || t === type$.Object;
- },
- isStrongTopType: function(t) {
- var t2,
- t1 = t._kind,
- kind = t1;
- if (kind !== 2)
- if (kind !== 3)
- if (kind !== 4)
- if (kind !== 5) {
- t2 = type$.Object;
- if (!(t === t2))
- t1 = t1 === 7 && t._primary === t2;
- else
- t1 = true;
- } else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- _Utils_objectAssign: function(o, other) {
- var i, key,
- keys = Object.keys(other),
- $length = keys.length;
- for (i = 0; i < $length; ++i) {
- key = keys[i];
- o[key] = other[key];
- }
- },
- Rti: function Rti(t0, t1) {
- var _ = this;
- _._as = t0;
- _._is = t1;
- _._cachedRuntimeType = _._specializedTestResource = _._precomputed1 = null;
- _._kind = 0;
- _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null;
- },
- _FunctionParameters: function _FunctionParameters() {
- this._optionalNamed = this._optionalPositional = this._requiredPositional = null;
- },
- _Type: function _Type(t0) {
- this._rti = t0;
- },
- _Error: function _Error() {
- },
- _TypeError: function _TypeError(t0) {
- this._message = t0;
- },
- unmangleGlobalNameIfPreservedAnyways: function($name) {
- return init.mangledGlobalNames[$name];
- },
- printString: function(string) {
- if (typeof dartPrint == "function") {
- dartPrint(string);
- return;
- }
- if (typeof console == "object" && typeof console.log != "undefined") {
- console.log(string);
- return;
- }
- if (typeof window == "object")
- return;
- if (typeof print == "function") {
- print(string);
- return;
- }
- throw "Unable to print message: " + String(string);
- }
- },
- J = {
- makeDispatchRecord: function(interceptor, proto, extension, indexability) {
- return {i: interceptor, p: proto, e: extension, x: indexability};
- },
- getNativeInterceptor: function(object) {
- var proto, objectProto, $constructor, interceptor,
- record = object[init.dispatchPropertyName];
- if (record == null)
- if ($.initNativeDispatchFlag == null) {
- H.initNativeDispatch();
- record = object[init.dispatchPropertyName];
- }
- if (record != null) {
- proto = record.p;
- if (false === proto)
- return record.i;
- if (true === proto)
- return object;
- objectProto = Object.getPrototypeOf(object);
- if (proto === objectProto)
- return record.i;
- if (record.e === objectProto)
- throw H.wrapException(P.UnimplementedError$("Return interceptor for " + H.S(proto(object, record))));
- }
- $constructor = object.constructor;
- interceptor = $constructor == null ? null : $constructor[$.$get$JS_INTEROP_INTERCEPTOR_TAG()];
- if (interceptor != null)
- return interceptor;
- interceptor = H.lookupAndCacheInterceptor(object);
- if (interceptor != null)
- return interceptor;
- if (typeof object == "function")
- return C.JavaScriptFunction_methods;
- proto = Object.getPrototypeOf(object);
- if (proto == null)
- return C.PlainJavaScriptObject_methods;
- if (proto === Object.prototype)
- return C.PlainJavaScriptObject_methods;
- if (typeof $constructor == "function") {
- Object.defineProperty($constructor, $.$get$JS_INTEROP_INTERCEPTOR_TAG(), {value: C.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true});
- return C.UnknownJavaScriptObject_methods;
- }
- return C.UnknownJavaScriptObject_methods;
- },
- JSArray_JSArray$fixed: function($length, $E) {
- if (!H._isInt($length))
- throw H.wrapException(P.ArgumentError$value($length, "length", "is not an integer"));
- if ($length < 0 || $length > 4294967295)
- throw H.wrapException(P.RangeError$range($length, 0, 4294967295, "length", null));
- return J.JSArray_JSArray$markFixed(new Array($length), $E);
- },
- JSArray_JSArray$markFixed: function(allocation, $E) {
- return J.JSArray_markFixedList(H.setRuntimeTypeInfo(allocation, $E._eval$1("JSArray<0>")));
- },
- JSArray_markFixedList: function(list) {
- list.fixed$length = Array;
- return list;
- },
- JSArray_markUnmodifiableList: function(list) {
- list.fixed$length = Array;
- list.immutable$list = Array;
- return list;
- },
- JSArray__compareAny: function(a, b) {
- return J.compareTo$1$ns(a, b);
- },
- JSString__isWhitespace: function(codeUnit) {
- if (codeUnit < 256)
- switch (codeUnit) {
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 32:
- case 133:
- case 160:
- return true;
- default:
- return false;
- }
- switch (codeUnit) {
- case 5760:
- case 8192:
- case 8193:
- case 8194:
- case 8195:
- case 8196:
- case 8197:
- case 8198:
- case 8199:
- case 8200:
- case 8201:
- case 8202:
- case 8232:
- case 8233:
- case 8239:
- case 8287:
- case 12288:
- case 65279:
- return true;
- default:
- return false;
- }
- },
- JSString__skipLeadingWhitespace: function(string, index) {
- var t1, codeUnit;
- for (t1 = string.length; index < t1;) {
- codeUnit = C.JSString_methods._codeUnitAt$1(string, index);
- if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
- break;
- ++index;
- }
- return index;
- },
- JSString__skipTrailingWhitespace: function(string, index) {
- var index0, codeUnit;
- for (; index > 0; index = index0) {
- index0 = index - 1;
- codeUnit = C.JSString_methods.codeUnitAt$1(string, index0);
- if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
- break;
- }
- return index;
- },
- getInterceptor$: function(receiver) {
- if (typeof receiver == "number") {
- if (Math.floor(receiver) == receiver)
- return J.JSInt.prototype;
- return J.JSDouble.prototype;
- }
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return J.JSNull.prototype;
- if (typeof receiver == "boolean")
- return J.JSBool.prototype;
- if (receiver.constructor == Array)
- return J.JSArray.prototype;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- return receiver;
- }
- if (receiver instanceof P.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$ansx: function(receiver) {
- if (typeof receiver == "number")
- return J.JSNumber.prototype;
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return receiver;
- if (receiver.constructor == Array)
- return J.JSArray.prototype;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- return receiver;
- }
- if (receiver instanceof P.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$asx: function(receiver) {
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return receiver;
- if (receiver.constructor == Array)
- return J.JSArray.prototype;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- return receiver;
- }
- if (receiver instanceof P.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$ax: function(receiver) {
- if (receiver == null)
- return receiver;
- if (receiver.constructor == Array)
- return J.JSArray.prototype;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- return receiver;
- }
- if (receiver instanceof P.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$n: function(receiver) {
- if (typeof receiver == "number")
- return J.JSNumber.prototype;
- if (receiver == null)
- return receiver;
- if (!(receiver instanceof P.Object))
- return J.UnknownJavaScriptObject.prototype;
- return receiver;
- },
- getInterceptor$ns: function(receiver) {
- if (typeof receiver == "number")
- return J.JSNumber.prototype;
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return receiver;
- if (!(receiver instanceof P.Object))
- return J.UnknownJavaScriptObject.prototype;
- return receiver;
- },
- getInterceptor$s: function(receiver) {
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return receiver;
- if (!(receiver instanceof P.Object))
- return J.UnknownJavaScriptObject.prototype;
- return receiver;
- },
- getInterceptor$x: function(receiver) {
- if (receiver == null)
- return receiver;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- return receiver;
- }
- if (receiver instanceof P.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- set$FALSE$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$FALSE(receiver, value);
- },
- set$NULL$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$NULL(receiver, value);
- },
- set$TRUE$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$TRUE(receiver, value);
- },
- set$cli_pkg_main_0_$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value);
- },
- set$context$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$context(receiver, value);
- },
- set$dartValue$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$dartValue(receiver, value);
- },
- set$info$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$info(receiver, value);
- },
- set$length$asx: function(receiver, value) {
- return J.getInterceptor$asx(receiver).set$length(receiver, value);
- },
- set$render$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$render(receiver, value);
- },
- set$renderSync$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$renderSync(receiver, value);
- },
- set$types$x: function(receiver, value) {
- return J.getInterceptor$x(receiver).set$types(receiver, value);
- },
- get$code$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$code(receiver);
- },
- get$current$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$current(receiver);
- },
- get$dartValue$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$dartValue(receiver);
- },
- get$end$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$end(receiver);
- },
- get$env$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$env(receiver);
- },
- get$fiber$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$fiber(receiver);
- },
- get$file$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$file(receiver);
- },
- get$first$ax: function(receiver) {
- return J.getInterceptor$ax(receiver).get$first(receiver);
- },
- get$hashCode$: function(receiver) {
- return J.getInterceptor$(receiver).get$hashCode(receiver);
- },
- get$isEmpty$asx: function(receiver) {
- return J.getInterceptor$asx(receiver).get$isEmpty(receiver);
- },
- get$isNotEmpty$asx: function(receiver) {
- return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver);
- },
- get$isTTY$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$isTTY(receiver);
- },
- get$iterator$ax: function(receiver) {
- return J.getInterceptor$ax(receiver).get$iterator(receiver);
- },
- get$last$ax: function(receiver) {
- return J.getInterceptor$ax(receiver).get$last(receiver);
- },
- get$length$asx: function(receiver) {
- return J.getInterceptor$asx(receiver).get$length(receiver);
- },
- get$message$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$message(receiver);
- },
- get$mtime$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$mtime(receiver);
- },
- get$options$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$options(receiver);
- },
- get$path$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$path(receiver);
- },
- get$platform$x: function(receiver) {
- return J.getInterceptor$x(receiver).get$platform(receiver);
- },
- get$reversed$ax: function(receiver) {
- return J.getInterceptor$ax(receiver).get$reversed(receiver);
- },
- get$single$ax: function(receiver) {
- return J.getInterceptor$ax(receiver).get$single(receiver);
- },
- $add$ansx: function(receiver, a0) {
- if (typeof receiver == "number" && typeof a0 == "number")
- return receiver + a0;
- return J.getInterceptor$ansx(receiver).$add(receiver, a0);
- },
- $eq$: function(receiver, a0) {
- if (receiver == null)
- return a0 == null;
- if (typeof receiver != "object")
- return a0 != null && receiver === a0;
- return J.getInterceptor$(receiver).$eq(receiver, a0);
- },
- $index$asx: function(receiver, a0) {
- if (typeof a0 === "number")
- if (receiver.constructor == Array || typeof receiver == "string" || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))
- if (a0 >>> 0 === a0 && a0 < receiver.length)
- return receiver[a0];
- return J.getInterceptor$asx(receiver).$index(receiver, a0);
- },
- $indexSet$ax: function(receiver, a0, a1) {
- if (typeof a0 === "number")
- if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
- return receiver[a0] = a1;
- return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
- },
- _codeUnitAt$1$s: function(receiver, a0) {
- return J.getInterceptor$s(receiver)._codeUnitAt$1(receiver, a0);
- },
- add$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).add$1(receiver, a0);
- },
- addAll$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).addAll$1(receiver, a0);
- },
- allMatches$1$s: function(receiver, a0) {
- return J.getInterceptor$s(receiver).allMatches$1(receiver, a0);
- },
- allMatches$2$s: function(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1);
- },
- any$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).any$1(receiver, a0);
- },
- apply$2$x: function(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1);
- },
- cast$1$0$ax: function(receiver, $T1) {
- return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1);
- },
- ceil$0$n: function(receiver) {
- return J.getInterceptor$n(receiver).ceil$0(receiver);
- },
- clamp$2$n: function(receiver, a0, a1) {
- return J.getInterceptor$n(receiver).clamp$2(receiver, a0, a1);
- },
- close$0$x: function(receiver) {
- return J.getInterceptor$x(receiver).close$0(receiver);
- },
- codeUnitAt$1$s: function(receiver, a0) {
- return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0);
- },
- compareTo$1$ns: function(receiver, a0) {
- return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0);
- },
- contains$1$asx: function(receiver, a0) {
- return J.getInterceptor$asx(receiver).contains$1(receiver, a0);
- },
- createInterface$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).createInterface$1(receiver, a0);
- },
- elementAt$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
- },
- endsWith$1$s: function(receiver, a0) {
- return J.getInterceptor$s(receiver).endsWith$1(receiver, a0);
- },
- every$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).every$1(receiver, a0);
- },
- existsSync$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).existsSync$1(receiver, a0);
- },
- expand$1$1$ax: function(receiver, a0, $T1) {
- return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1);
- },
- fillRange$3$ax: function(receiver, a0, a1, a2) {
- return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2);
- },
- floor$0$n: function(receiver) {
- return J.getInterceptor$n(receiver).floor$0(receiver);
- },
- fold$2$ax: function(receiver, a0, a1) {
- return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1);
- },
- getTime$0$x: function(receiver) {
- return J.getInterceptor$x(receiver).getTime$0(receiver);
- },
- indexOf$1$asx: function(receiver, a0) {
- return J.getInterceptor$asx(receiver).indexOf$1(receiver, a0);
- },
- isDirectory$0$x: function(receiver) {
- return J.getInterceptor$x(receiver).isDirectory$0(receiver);
- },
- isFile$0$x: function(receiver) {
- return J.getInterceptor$x(receiver).isFile$0(receiver);
- },
- join$0$ax: function(receiver) {
- return J.getInterceptor$ax(receiver).join$0(receiver);
- },
- join$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).join$1(receiver, a0);
- },
- map$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).map$1(receiver, a0);
- },
- map$1$1$ax: function(receiver, a0, $T1) {
- return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1);
- },
- matchAsPrefix$2$s: function(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1);
- },
- mkdirSync$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0);
- },
- noSuchMethod$1$: function(receiver, a0) {
- return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0);
- },
- on$2$x: function(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).on$2(receiver, a0, a1);
- },
- padRight$1$s: function(receiver, a0) {
- return J.getInterceptor$s(receiver).padRight$1(receiver, a0);
- },
- readFileSync$2$x: function(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1);
- },
- readdirSync$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0);
- },
- remove$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).remove$1(receiver, a0);
- },
- replaceRange$3$asx: function(receiver, a0, a1, a2) {
- return J.getInterceptor$asx(receiver).replaceRange$3(receiver, a0, a1, a2);
- },
- round$0$n: function(receiver) {
- return J.getInterceptor$n(receiver).round$0(receiver);
- },
- run$0$x: function(receiver) {
- return J.getInterceptor$x(receiver).run$0(receiver);
- },
- run$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).run$1(receiver, a0);
- },
- setPrompt$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).setPrompt$1(receiver, a0);
- },
- setRange$4$ax: function(receiver, a0, a1, a2, a3) {
- return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3);
- },
- skip$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
- },
- sort$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
- },
- startsWith$1$s: function(receiver, a0) {
- return J.getInterceptor$s(receiver).startsWith$1(receiver, a0);
- },
- startsWith$2$s: function(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).startsWith$2(receiver, a0, a1);
- },
- statSync$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).statSync$1(receiver, a0);
- },
- substring$1$s: function(receiver, a0) {
- return J.getInterceptor$s(receiver).substring$1(receiver, a0);
- },
- substring$2$s: function(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
- },
- take$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).take$1(receiver, a0);
- },
- toList$0$ax: function(receiver) {
- return J.getInterceptor$ax(receiver).toList$0(receiver);
- },
- toList$1$growable$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0);
- },
- toRadixString$1$n: function(receiver, a0) {
- return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
- },
- toSet$0$ax: function(receiver) {
- return J.getInterceptor$ax(receiver).toSet$0(receiver);
- },
- toString$0$: function(receiver) {
- return J.getInterceptor$(receiver).toString$0(receiver);
- },
- toString$1$color$: function(receiver, a0) {
- return J.getInterceptor$(receiver).toString$1$color(receiver, a0);
- },
- trim$0$s: function(receiver) {
- return J.getInterceptor$s(receiver).trim$0(receiver);
- },
- unlinkSync$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0);
- },
- watch$2$x: function(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1);
- },
- where$1$ax: function(receiver, a0) {
- return J.getInterceptor$ax(receiver).where$1(receiver, a0);
- },
- write$1$x: function(receiver, a0) {
- return J.getInterceptor$x(receiver).write$1(receiver, a0);
- },
- writeFileSync$2$x: function(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1);
- },
- yield$0$x: function(receiver) {
- return J.getInterceptor$x(receiver).yield$0(receiver);
- },
- Interceptor: function Interceptor() {
- },
- JSBool: function JSBool() {
- },
- JSNull: function JSNull() {
- },
- JavaScriptObject: function JavaScriptObject() {
- },
- PlainJavaScriptObject: function PlainJavaScriptObject() {
- },
- UnknownJavaScriptObject: function UnknownJavaScriptObject() {
- },
- JavaScriptFunction: function JavaScriptFunction() {
- },
- JSArray: function JSArray(t0) {
- this.$ti = t0;
- },
- JSUnmodifiableArray: function JSUnmodifiableArray(t0) {
- this.$ti = t0;
- },
- ArrayIterator: function ArrayIterator(t0, t1) {
- var _ = this;
- _._iterable = t0;
- _._length = t1;
- _._index = 0;
- _._current = null;
- },
- JSNumber: function JSNumber() {
- },
- JSInt: function JSInt() {
- },
- JSDouble: function JSDouble() {
- },
- JSString: function JSString() {
- }
- },
- P = {
- _AsyncRun__initializeScheduleImmediate: function() {
- var div, span, t1 = {};
- if (self.scheduleImmediate != null)
- return P.async__AsyncRun__scheduleImmediateJsOverride$closure();
- if (self.MutationObserver != null && self.document != null) {
- div = self.document.createElement("div");
- span = self.document.createElement("span");
- t1.storedCallback = null;
- new self.MutationObserver(H.convertDartClosureToJS(new P._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
- return new P._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
- } else if (self.setImmediate != null)
- return P.async__AsyncRun__scheduleImmediateWithSetImmediate$closure();
- return P.async__AsyncRun__scheduleImmediateWithTimer$closure();
- },
- _AsyncRun__scheduleImmediateJsOverride: function(callback) {
- self.scheduleImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
- },
- _AsyncRun__scheduleImmediateWithSetImmediate: function(callback) {
- self.setImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
- },
- _AsyncRun__scheduleImmediateWithTimer: function(callback) {
- P.Timer__createTimer(C.Duration_0, callback);
- },
- Timer__createTimer: function(duration, callback) {
- var milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
- return P._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
- },
- _TimerImpl$: function(milliseconds, callback) {
- var t1 = new P._TimerImpl(true);
- t1._TimerImpl$2(milliseconds, callback);
- return t1;
- },
- _TimerImpl$periodic: function(milliseconds, callback) {
- var t1 = new P._TimerImpl(false);
- t1._TimerImpl$periodic$2(milliseconds, callback);
- return t1;
- },
- _makeAsyncAwaitCompleter: function($T) {
- return new P._AsyncAwaitCompleter(new P._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>"));
- },
- _asyncStartSync: function(bodyFunction, completer) {
- bodyFunction.call$2(0, null);
- completer.isSync = true;
- return completer._future;
- },
- _asyncAwait: function(object, bodyFunction) {
- P._awaitOnObject(object, bodyFunction);
- },
- _asyncReturn: function(object, completer) {
- completer.complete$1(object);
- },
- _asyncRethrow: function(object, completer) {
- completer.completeError$2(H.unwrapException(object), H.getTraceFromException(object));
- },
- _awaitOnObject: function(object, bodyFunction) {
- var t1, future,
- thenCallback = new P._awaitOnObject_closure(bodyFunction),
- errorCallback = new P._awaitOnObject_closure0(bodyFunction);
- if (object instanceof P._Future)
- object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic);
- else {
- t1 = type$.dynamic;
- if (type$.Future_dynamic._is(object))
- object.then$1$2$onError(thenCallback, errorCallback, t1);
- else {
- future = new P._Future($.Zone__current, type$._Future_dynamic);
- future._state = 4;
- future._resultOrListeners = object;
- future._thenAwait$1$2(thenCallback, errorCallback, t1);
- }
- }
- },
- _wrapJsFunctionForAsync: function($function) {
- var $protected = function(fn, ERROR) {
- return function(errorCode, result) {
- while (true)
- try {
- fn(errorCode, result);
- break;
- } catch (error) {
- result = error;
- errorCode = ERROR;
- }
- };
- }($function, 1);
- return $.Zone__current.registerBinaryCallback$1(new P._wrapJsFunctionForAsync_closure($protected));
- },
- _asyncStarHelper: function(object, bodyFunctionOrErrorCode, controller) {
- var t1, t2, stream;
- if (bodyFunctionOrErrorCode === 0) {
- t1 = controller.cancelationFuture;
- if (t1 != null)
- t1._completeWithValue$1(null);
- else
- controller.controller.close$0(0);
- return;
- } else if (bodyFunctionOrErrorCode === 1) {
- t1 = controller.cancelationFuture;
- if (t1 != null)
- t1._completeError$2(H.unwrapException(object), H.getTraceFromException(object));
- else {
- t1 = H.unwrapException(object);
- t2 = H.getTraceFromException(object);
- controller.controller.addError$2(t1, t2);
- controller.controller.close$0(0);
- }
- return;
- }
- if (object instanceof P._IterationMarker) {
- if (controller.cancelationFuture != null) {
- bodyFunctionOrErrorCode.call$2(2, null);
- return;
- }
- t1 = object.state;
- if (t1 === 0) {
- t1 = object.value;
- controller.controller.add$1(0, t1);
- P.scheduleMicrotask(new P._asyncStarHelper_closure(controller, bodyFunctionOrErrorCode));
- return;
- } else if (t1 === 1) {
- stream = object.value;
- controller.controller.addStream$2$cancelOnError(stream, false).then$1(new P._asyncStarHelper_closure0(controller, bodyFunctionOrErrorCode));
- return;
- }
- }
- P._awaitOnObject(object, bodyFunctionOrErrorCode);
- },
- _streamOfController: function(controller) {
- var t1 = controller.controller;
- t1.toString;
- return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>"));
- },
- _AsyncStarStreamController$: function(body, $T) {
- var t1 = new P._AsyncStarStreamController($T._eval$1("_AsyncStarStreamController<0>"));
- t1._AsyncStarStreamController$1(body, $T);
- return t1;
- },
- _makeAsyncStarStreamController: function(body, $T) {
- return P._AsyncStarStreamController$(body, $T);
- },
- _IterationMarker_yieldStar: function(values) {
- return new P._IterationMarker(values, 1);
- },
- _IterationMarker_endOfIteration: function() {
- return C._IterationMarker_null_2;
- },
- _IterationMarker_yieldSingle: function(value) {
- return new P._IterationMarker(value, 0);
- },
- _IterationMarker_uncaughtError: function(error) {
- return new P._IterationMarker(error, 3);
- },
- _makeSyncStarIterable: function(body, $T) {
- return new P._SyncStarIterable(body, $T._eval$1("_SyncStarIterable<0>"));
- },
- Future_Future$error: function(error, stackTrace, $T) {
- var t1, replacement;
- P.ArgumentError_checkNotNull(error, "error");
- t1 = $.Zone__current;
- if (t1 !== C.C__RootZone) {
- replacement = t1.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- if (error == null)
- error = new P.NullThrownError();
- stackTrace = replacement.stackTrace;
- }
- }
- if (stackTrace == null)
- stackTrace = P.AsyncError_defaultStackTrace(error);
- t1 = new P._Future($.Zone__current, $T._eval$1("_Future<0>"));
- t1._asyncCompleteError$2(error, stackTrace);
- return t1;
- },
- Future_wait: function(futures, $T) {
- var handleError, future, pos, e, st, t2, t3, exception, _box_0 = {}, cleanUp = null,
- eagerError = false,
- t1 = $T._eval$1("_Future<List<0>>"),
- result = new P._Future($.Zone__current, t1);
- _box_0.values = null;
- _box_0.remaining = 0;
- _box_0.stackTrace = _box_0.error = null;
- handleError = new P.Future_wait_handleError(_box_0, cleanUp, eagerError, result);
- try {
- for (t2 = J.get$iterator$ax(futures), t3 = type$.Null; t2.moveNext$0();) {
- future = t2.get$current(t2);
- pos = _box_0.remaining;
- future.then$1$2$onError(new P.Future_wait_closure(_box_0, pos, result, cleanUp, eagerError, $T), handleError, t3);
- ++_box_0.remaining;
- }
- t2 = _box_0.remaining;
- if (t2 === 0) {
- t1 = new P._Future($.Zone__current, t1);
- t1._asyncComplete$1(C.List_empty9);
- return t1;
- }
- t1 = new Array(t2);
- t1.fixed$length = Array;
- _box_0.values = H.setRuntimeTypeInfo(t1, $T._eval$1("JSArray<0>"));
- } catch (exception) {
- e = H.unwrapException(exception);
- st = H.getTraceFromException(exception);
- if (_box_0.remaining === 0 || eagerError)
- return P.Future_Future$error(e, st, $T._eval$1("List<0>"));
- else {
- _box_0.error = e;
- _box_0.stackTrace = st;
- }
- }
- return result;
- },
- _Future$zoneValue: function(value, _zone, $T) {
- var t1 = new P._Future(_zone, $T._eval$1("_Future<0>"));
- t1._state = 4;
- t1._resultOrListeners = value;
- return t1;
- },
- _Future__chainForeignFuture: function(source, target) {
- var e, s, exception;
- target._state = 1;
- try {
- source.then$1$2$onError(new P._Future__chainForeignFuture_closure(target), new P._Future__chainForeignFuture_closure0(target), type$.Null);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- P.scheduleMicrotask(new P._Future__chainForeignFuture_closure1(target, e, s));
- }
- },
- _Future__chainCoreFuture: function(source, target) {
- var t1, listeners;
- for (; t1 = source._state, t1 === 2;)
- source = source._resultOrListeners;
- if (t1 >= 4) {
- listeners = target._removeListeners$0();
- target._state = source._state;
- target._resultOrListeners = source._resultOrListeners;
- P._Future__propagateToListeners(target, listeners);
- } else {
- listeners = target._resultOrListeners;
- target._state = 2;
- target._resultOrListeners = source;
- source._prependListeners$1(listeners);
- }
- },
- _Future__propagateToListeners: function(source, listeners) {
- var t2, _box_0, hasError, listeners0, sourceResult, t3, t4, zone, oldZone, current, result, _box_1 = {},
- t1 = _box_1.source = source;
- for (t2 = type$.Future_dynamic; true;) {
- _box_0 = {};
- hasError = t1._state === 8;
- if (listeners == null) {
- if (hasError) {
- t2 = t1._resultOrListeners;
- t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
- }
- return;
- }
- for (; listeners0 = listeners._nextListener, listeners0 != null; listeners = listeners0) {
- listeners._nextListener = null;
- P._Future__propagateToListeners(_box_1.source, listeners);
- }
- t1 = _box_1.source;
- sourceResult = t1._resultOrListeners;
- _box_0.listenerHasError = hasError;
- _box_0.listenerValueOrError = sourceResult;
- t3 = !hasError;
- if (t3) {
- t4 = listeners.state;
- t4 = (t4 & 1) !== 0 || (t4 & 15) === 8;
- } else
- t4 = true;
- if (t4) {
- t4 = listeners.result;
- zone = t4._zone;
- if (hasError) {
- t1 = t1._zone;
- t1.toString;
- t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone());
- } else
- t1 = false;
- if (t1) {
- t1 = _box_1.source;
- t2 = t1._resultOrListeners;
- t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
- return;
- }
- oldZone = $.Zone__current;
- if (oldZone != zone)
- $.Zone__current = zone;
- else
- oldZone = null;
- t1 = listeners.state;
- if ((t1 & 15) === 8)
- new P._Future__propagateToListeners_handleWhenCompleteCallback(_box_1, _box_0, listeners, hasError).call$0();
- else if (t3) {
- if ((t1 & 1) !== 0)
- new P._Future__propagateToListeners_handleValueCallback(_box_0, listeners, sourceResult).call$0();
- } else if ((t1 & 2) !== 0)
- new P._Future__propagateToListeners_handleError(_box_1, _box_0, listeners).call$0();
- if (oldZone != null)
- $.Zone__current = oldZone;
- t1 = _box_0.listenerValueOrError;
- if (t2._is(t1)) {
- if (t1._state >= 4) {
- current = t4._resultOrListeners;
- t4._resultOrListeners = null;
- listeners = t4._reverseListeners$1(current);
- t4._state = t1._state;
- t4._resultOrListeners = t1._resultOrListeners;
- _box_1.source = t1;
- continue;
- } else
- P._Future__chainCoreFuture(t1, t4);
- return;
- }
- }
- result = listeners.result;
- current = result._resultOrListeners;
- result._resultOrListeners = null;
- listeners = result._reverseListeners$1(current);
- t1 = _box_0.listenerHasError;
- t3 = _box_0.listenerValueOrError;
- if (!t1) {
- result._state = 4;
- result._resultOrListeners = t3;
- } else {
- result._state = 8;
- result._resultOrListeners = t3;
- }
- _box_1.source = result;
- t1 = result;
- }
- },
- _registerErrorHandler: function(errorHandler, zone) {
- if (type$.dynamic_Function_Object_StackTrace._is(errorHandler))
- return zone.registerBinaryCallback$1(errorHandler);
- if (type$.dynamic_Function_Object._is(errorHandler))
- return zone.registerUnaryCallback$1(errorHandler);
- 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"));
- },
- _microtaskLoop: function() {
- var t1, t2;
- for (; t1 = $._nextCallback, t1 != null;) {
- $._lastPriorityCallback = null;
- t2 = t1.next;
- $._nextCallback = t2;
- if (t2 == null)
- $._lastCallback = null;
- t1.callback.call$0();
- }
- },
- _startMicrotaskLoop: function() {
- $._isInCallbackLoop = true;
- try {
- P._microtaskLoop();
- } finally {
- $._lastPriorityCallback = null;
- $._isInCallbackLoop = false;
- if ($._nextCallback != null)
- $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
- }
- },
- _scheduleAsyncCallback: function(callback) {
- var newEntry = new P._AsyncCallbackEntry(callback);
- if ($._nextCallback == null) {
- $._nextCallback = $._lastCallback = newEntry;
- if (!$._isInCallbackLoop)
- $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
- } else
- $._lastCallback = $._lastCallback.next = newEntry;
- },
- _schedulePriorityAsyncCallback: function(callback) {
- var entry, t2,
- t1 = $._nextCallback;
- if (t1 == null) {
- P._scheduleAsyncCallback(callback);
- $._lastPriorityCallback = $._lastCallback;
- return;
- }
- entry = new P._AsyncCallbackEntry(callback);
- t2 = $._lastPriorityCallback;
- if (t2 == null) {
- entry.next = t1;
- $._nextCallback = $._lastPriorityCallback = entry;
- } else {
- entry.next = t2.next;
- $._lastPriorityCallback = t2.next = entry;
- if (entry.next == null)
- $._lastCallback = entry;
- }
- },
- scheduleMicrotask: function(callback) {
- var t1, _null = null,
- currentZone = $.Zone__current;
- if (C.C__RootZone === currentZone) {
- P._rootScheduleMicrotask(_null, _null, C.C__RootZone, callback);
- return;
- }
- if (C.C__RootZone === currentZone.get$_scheduleMicrotask().zone)
- t1 = C.C__RootZone.get$errorZone() === currentZone.get$errorZone();
- else
- t1 = false;
- if (t1) {
- P._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1(callback));
- return;
- }
- t1 = $.Zone__current;
- t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback));
- },
- Stream_Stream$fromFuture: function(future, $T) {
- var _null = null,
- t1 = $T._eval$1("_SyncStreamController<0>"),
- controller = new P._SyncStreamController(_null, _null, _null, _null, t1);
- future.then$1$2$onError(new P.Stream_Stream$fromFuture_closure(controller, $T), new P.Stream_Stream$fromFuture_closure0(controller), type$.Null);
- return new P._ControllerStream(controller, t1._eval$1("_ControllerStream<1>"));
- },
- StreamIterator_StreamIterator: function(stream) {
- return new P._StreamIterator(stream == null ? H.throwExpression(P.ArgumentError$notNull("stream")) : stream);
- },
- StreamController_StreamController: function(onCancel, onListen, onPause, onResume, sync, $T) {
- 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>"));
- },
- _runGuarded: function(notificationHandler) {
- var e, s, exception;
- if (notificationHandler == null)
- return;
- try {
- notificationHandler.call$0();
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- $.Zone__current.handleUncaughtError$2(e, s);
- }
- },
- _nullDataHandler: function(value) {
- },
- _nullErrorHandler: function(error, stackTrace) {
- $.Zone__current.handleUncaughtError$2(error, stackTrace);
- },
- _nullDoneHandler: function() {
- },
- _StreamIterator$: function(stream) {
- return new P._StreamIterator(stream == null ? H.throwExpression(P.ArgumentError$notNull("stream")) : stream);
- },
- _addErrorWithReplacement: function(sink, error, stackTrace) {
- var replacement = $.Zone__current.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- if (error == null)
- error = new P.NullThrownError();
- stackTrace = replacement.stackTrace;
- }
- sink._addError$2(error, stackTrace);
- },
- Timer_Timer: function(duration, callback) {
- var t1 = $.Zone__current;
- if (t1 === C.C__RootZone)
- return t1.createTimer$2(duration, callback);
- return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback));
- },
- AsyncError$: function(error, stackTrace) {
- var t1 = stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace;
- P.ArgumentError_checkNotNull(error, "error");
- return new P.AsyncError(error, t1);
- },
- AsyncError_defaultStackTrace: function(error) {
- var stackTrace;
- if (type$.Error._is(error)) {
- stackTrace = error.get$stackTrace();
- if (stackTrace != null)
- return stackTrace;
- }
- return C._StringStackTrace_3uE;
- },
- _parentDelegate: function(zone) {
- if (zone.get$parent() == null)
- return null;
- return zone.get$parent().get$_delegate();
- },
- _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) {
- var t1 = {};
- t1.error = error;
- t1.stackTrace = stackTrace;
- if (error == null) {
- t1.error = new P.ArgumentError(false, null, "error", "Must not be null");
- t1.stackTrace = P.StackTrace_current();
- }
- P._schedulePriorityAsyncCallback(new P._rootHandleUncaughtError_closure(t1));
- },
- _rootRun: function($self, $parent, zone, f) {
- var old,
- t1 = $.Zone__current;
- if (t1 == zone)
- return f.call$0();
- $.Zone__current = zone;
- old = t1;
- try {
- t1 = f.call$0();
- return t1;
- } finally {
- $.Zone__current = old;
- }
- },
- _rootRunUnary: function($self, $parent, zone, f, arg) {
- var old,
- t1 = $.Zone__current;
- if (t1 == zone)
- return f.call$1(arg);
- $.Zone__current = zone;
- old = t1;
- try {
- t1 = f.call$1(arg);
- return t1;
- } finally {
- $.Zone__current = old;
- }
- },
- _rootRunBinary: function($self, $parent, zone, f, arg1, arg2) {
- var old,
- t1 = $.Zone__current;
- if (t1 == zone)
- return f.call$2(arg1, arg2);
- $.Zone__current = zone;
- old = t1;
- try {
- t1 = f.call$2(arg1, arg2);
- return t1;
- } finally {
- $.Zone__current = old;
- }
- },
- _rootRegisterCallback: function($self, $parent, zone, f) {
- return f;
- },
- _rootRegisterUnaryCallback: function($self, $parent, zone, f) {
- return f;
- },
- _rootRegisterBinaryCallback: function($self, $parent, zone, f) {
- return f;
- },
- _rootErrorCallback: function($self, $parent, zone, error, stackTrace) {
- return null;
- },
- _rootScheduleMicrotask: function($self, $parent, zone, f) {
- var t1 = C.C__RootZone !== zone;
- if (t1)
- f = !(!t1 || C.C__RootZone.get$errorZone() === zone.get$errorZone()) ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void);
- P._scheduleAsyncCallback(f);
- },
- _rootCreateTimer: function($self, $parent, zone, duration, callback) {
- callback = zone.bindCallback$1$1(callback, type$.void);
- return P.Timer__createTimer(duration, callback);
- },
- _rootCreatePeriodicTimer: function($self, $parent, zone, duration, callback) {
- var milliseconds;
- callback = zone.bindUnaryCallback$2$1(callback, type$.dynamic, type$.Timer);
- milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
- return P._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback);
- },
- _rootPrint: function($self, $parent, zone, line) {
- H.printString(line);
- },
- _printToZone: function(line) {
- $.Zone__current.print$1(line);
- },
- _rootFork: function($self, $parent, zone, specification, zoneValues) {
- var valueMap, t1, t2;
- $.printToZone = P.async___printToZone$closure();
- if (specification == null)
- specification = C._ZoneSpecification_ALf;
- if (zoneValues == null)
- valueMap = zone.get$_async$_map();
- else {
- t1 = type$.dynamic;
- valueMap = P.HashMap_HashMap$from(zoneValues, t1, t1);
- }
- t1 = new P._CustomZone(zone, valueMap);
- t2 = zone.get$_run();
- t1._run = t2;
- t2 = zone.get$_runUnary();
- t1._runUnary = t2;
- t2 = zone.get$_runBinary();
- t1._runBinary = t2;
- t2 = zone.get$_registerCallback();
- t1._registerCallback = t2;
- t2 = zone.get$_registerUnaryCallback();
- t1._registerUnaryCallback = t2;
- t2 = zone.get$_registerBinaryCallback();
- t1._registerBinaryCallback = t2;
- t2 = zone.get$_errorCallback();
- t1._errorCallback = t2;
- t2 = zone.get$_scheduleMicrotask();
- t1._scheduleMicrotask = t2;
- t2 = zone.get$_createTimer();
- t1._createTimer = t2;
- t2 = zone.get$_createPeriodicTimer();
- t1._createPeriodicTimer = t2;
- t2 = zone.get$_print();
- t1._print = t2;
- t2 = zone.get$_fork();
- t1._fork = t2;
- t2 = specification.handleUncaughtError;
- t1._handleUncaughtError = t2 != null ? new P._ZoneFunction(t1, t2) : zone.get$_handleUncaughtError();
- return t1;
- },
- runZoned: function(body, zoneValues) {
- P.ArgumentError_checkNotNull(body, "body");
- return P._runZoned(body, zoneValues, null);
- },
- _runZoned: function(body, zoneValues, specification) {
- return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1(0, body);
- },
- _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) {
- this._box_0 = t0;
- },
- _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.div = t1;
- this.span = t2;
- },
- _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) {
- this.callback = t0;
- },
- _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) {
- this.callback = t0;
- },
- _TimerImpl: function _TimerImpl(t0) {
- this._once = t0;
- this._handle = null;
- this._tick = 0;
- },
- _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) {
- this.$this = t0;
- this.callback = t1;
- },
- _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.milliseconds = t1;
- _.start = t2;
- _.callback = t3;
- },
- _AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) {
- this._future = t0;
- this.isSync = false;
- this.$ti = t1;
- },
- _awaitOnObject_closure: function _awaitOnObject_closure(t0) {
- this.bodyFunction = t0;
- },
- _awaitOnObject_closure0: function _awaitOnObject_closure0(t0) {
- this.bodyFunction = t0;
- },
- _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) {
- this.$protected = t0;
- },
- _asyncStarHelper_closure: function _asyncStarHelper_closure(t0, t1) {
- this.controller = t0;
- this.bodyFunctionOrErrorCode = t1;
- },
- _asyncStarHelper_closure0: function _asyncStarHelper_closure0(t0, t1) {
- this.controller = t0;
- this.bodyFunctionOrErrorCode = t1;
- },
- _AsyncStarStreamController: function _AsyncStarStreamController(t0) {
- var _ = this;
- _.controller = null;
- _.isSuspended = false;
- _.cancelationFuture = null;
- _.$ti = t0;
- },
- _AsyncStarStreamController__resumeBody: function _AsyncStarStreamController__resumeBody(t0) {
- this.body = t0;
- },
- _AsyncStarStreamController__resumeBody_closure: function _AsyncStarStreamController__resumeBody_closure(t0) {
- this.body = t0;
- },
- _AsyncStarStreamController_closure0: function _AsyncStarStreamController_closure0(t0) {
- this._resumeBody = t0;
- },
- _AsyncStarStreamController_closure1: function _AsyncStarStreamController_closure1(t0, t1) {
- this.$this = t0;
- this._resumeBody = t1;
- },
- _AsyncStarStreamController_closure: function _AsyncStarStreamController_closure(t0, t1) {
- this.$this = t0;
- this.body = t1;
- },
- _AsyncStarStreamController__closure: function _AsyncStarStreamController__closure(t0) {
- this.body = t0;
- },
- _IterationMarker: function _IterationMarker(t0, t1) {
- this.value = t0;
- this.state = t1;
- },
- _SyncStarIterator: function _SyncStarIterator(t0) {
- var _ = this;
- _._body = t0;
- _._suspendedBodies = _._nestedIterator = _._async$_current = null;
- },
- _SyncStarIterable: function _SyncStarIterable(t0, t1) {
- this._outerHelper = t0;
- this.$ti = t1;
- },
- _BroadcastStream: function _BroadcastStream(t0, t1) {
- this._async$_controller = t0;
- this.$ti = t1;
- },
- _BroadcastSubscription: function _BroadcastSubscription(t0, t1, t2, t3) {
- var _ = this;
- _._eventState = 0;
- _._async$_previous = _._async$_next = null;
- _._async$_controller = t0;
- _._onDone = _._onError = _._onData = null;
- _._zone = t1;
- _._state = t2;
- _._pending = _._cancelFuture = null;
- _.$ti = t3;
- },
- _BroadcastStreamController: function _BroadcastStreamController() {
- },
- _SyncBroadcastStreamController: function _SyncBroadcastStreamController(t0, t1, t2) {
- var _ = this;
- _.onListen = t0;
- _.onCancel = t1;
- _._state = 0;
- _._doneFuture = _._addStreamState = _._lastSubscription = _._firstSubscription = null;
- _.$ti = t2;
- },
- _SyncBroadcastStreamController__sendData_closure: function _SyncBroadcastStreamController__sendData_closure(t0) {
- this.data = t0;
- },
- _SyncBroadcastStreamController__sendError_closure: function _SyncBroadcastStreamController__sendError_closure(t0, t1) {
- this.error = t0;
- this.stackTrace = t1;
- },
- _SyncBroadcastStreamController__sendDone_closure: function _SyncBroadcastStreamController__sendDone_closure() {
- },
- Future: function Future() {
- },
- Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.cleanUp = t1;
- _.eagerError = t2;
- _.result = t3;
- },
- Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.pos = t1;
- _.result = t2;
- _.cleanUp = t3;
- _.eagerError = t4;
- _.T = t5;
- },
- _Completer: function _Completer() {
- },
- _AsyncCompleter: function _AsyncCompleter(t0, t1) {
- this.future = t0;
- this.$ti = t1;
- },
- _FutureListener: function _FutureListener(t0, t1, t2, t3) {
- var _ = this;
- _._nextListener = null;
- _.result = t0;
- _.state = t1;
- _.callback = t2;
- _.errorCallback = t3;
- },
- _Future: function _Future(t0, t1) {
- var _ = this;
- _._state = 0;
- _._zone = t0;
- _._resultOrListeners = null;
- _.$ti = t1;
- },
- _Future__addListener_closure: function _Future__addListener_closure(t0, t1) {
- this.$this = t0;
- this.listener = t1;
- },
- _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) {
- this.target = t0;
- },
- _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) {
- this.target = t0;
- },
- _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) {
- this.target = t0;
- this.e = t1;
- this.s = t2;
- },
- _Future__asyncComplete_closure: function _Future__asyncComplete_closure(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _Future__chainFuture_closure: function _Future__chainFuture_closure(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) {
- this.$this = t0;
- this.error = t1;
- this.stackTrace = t2;
- },
- _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2, t3) {
- var _ = this;
- _._box_1 = t0;
- _._box_0 = t1;
- _.listener = t2;
- _.hasError = t3;
- },
- _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) {
- this.originalSource = t0;
- },
- _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1, t2) {
- this._box_0 = t0;
- this.listener = t1;
- this.sourceResult = t2;
- },
- _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1, t2) {
- this._box_1 = t0;
- this._box_0 = t1;
- this.listener = t2;
- },
- _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) {
- this.callback = t0;
- this.next = null;
- },
- Stream: function Stream() {
- },
- Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) {
- this.controller = t0;
- this.T = t1;
- },
- Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) {
- this.controller = t0;
- },
- Stream_length_closure: function Stream_length_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- Stream_length_closure0: function Stream_length_closure0(t0, t1) {
- this._box_0 = t0;
- this.future = t1;
- },
- StreamSubscription: function StreamSubscription() {
- },
- EventSink: function EventSink() {
- },
- StreamTransformerBase: function StreamTransformerBase() {
- },
- _StreamController: function _StreamController() {
- },
- _StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) {
- this.$this = t0;
- },
- _StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) {
- this.$this = t0;
- },
- _SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() {
- },
- _AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() {
- },
- _AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) {
- var _ = this;
- _._varData = null;
- _._state = 0;
- _._doneFuture = null;
- _.onListen = t0;
- _.onPause = t1;
- _.onResume = t2;
- _.onCancel = t3;
- _.$ti = t4;
- },
- _SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) {
- var _ = this;
- _._varData = null;
- _._state = 0;
- _._doneFuture = null;
- _.onListen = t0;
- _.onPause = t1;
- _.onResume = t2;
- _.onCancel = t3;
- _.$ti = t4;
- },
- _ControllerStream: function _ControllerStream(t0, t1) {
- this._async$_controller = t0;
- this.$ti = t1;
- },
- _ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3) {
- var _ = this;
- _._async$_controller = t0;
- _._onDone = _._onError = _._onData = null;
- _._zone = t1;
- _._state = t2;
- _._pending = _._cancelFuture = null;
- _.$ti = t3;
- },
- _AddStreamState: function _AddStreamState() {
- },
- _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) {
- this.$this = t0;
- },
- _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) {
- this.varData = t0;
- this.addStreamFuture = t1;
- this.addSubscription = t2;
- },
- _BufferingStreamSubscription: function _BufferingStreamSubscription() {
- },
- _BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) {
- this.$this = t0;
- this.error = t1;
- this.stackTrace = t2;
- },
- _BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) {
- this.$this = t0;
- },
- _StreamImpl: function _StreamImpl() {
- },
- _DelayedEvent: function _DelayedEvent() {
- },
- _DelayedData: function _DelayedData(t0) {
- this.value = t0;
- this.next = null;
- },
- _DelayedError: function _DelayedError(t0, t1) {
- this.error = t0;
- this.stackTrace = t1;
- this.next = null;
- },
- _DelayedDone: function _DelayedDone() {
- },
- _PendingEvents: function _PendingEvents() {
- },
- _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) {
- this.$this = t0;
- this.dispatch = t1;
- },
- _StreamImplEvents: function _StreamImplEvents() {
- this.lastPendingEvent = this.firstPendingEvent = null;
- this._state = 0;
- },
- _DoneStreamSubscription: function _DoneStreamSubscription(t0, t1, t2) {
- var _ = this;
- _._zone = t0;
- _._state = 0;
- _._onDone = t1;
- _.$ti = t2;
- },
- _StreamIterator: function _StreamIterator(t0) {
- this._subscription = null;
- this._stateData = t0;
- this._isPaused = false;
- },
- _ForwardingStream: function _ForwardingStream() {
- },
- _ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3) {
- var _ = this;
- _._stream = t0;
- _._onDone = _._onError = _._onData = _._subscription = null;
- _._zone = t1;
- _._state = t2;
- _._pending = _._cancelFuture = null;
- _.$ti = t3;
- },
- _ExpandStream: function _ExpandStream(t0, t1, t2) {
- this._expand = t0;
- this._async$_source = t1;
- this.$ti = t2;
- },
- Timer: function Timer() {
- },
- AsyncError: function AsyncError(t0, t1) {
- this.error = t0;
- this.stackTrace = t1;
- },
- _ZoneFunction: function _ZoneFunction(t0, t1) {
- this.zone = t0;
- this.$function = t1;
- },
- _RunNullaryZoneFunction: function _RunNullaryZoneFunction(t0, t1) {
- this.zone = t0;
- this.$function = t1;
- },
- _RunUnaryZoneFunction: function _RunUnaryZoneFunction(t0, t1) {
- this.zone = t0;
- this.$function = t1;
- },
- _RunBinaryZoneFunction: function _RunBinaryZoneFunction(t0, t1) {
- this.zone = t0;
- this.$function = t1;
- },
- _RegisterNullaryZoneFunction: function _RegisterNullaryZoneFunction(t0, t1) {
- this.zone = t0;
- this.$function = t1;
- },
- _RegisterUnaryZoneFunction: function _RegisterUnaryZoneFunction(t0, t1) {
- this.zone = t0;
- this.$function = t1;
- },
- _RegisterBinaryZoneFunction: function _RegisterBinaryZoneFunction(t0, t1) {
- this.zone = t0;
- this.$function = t1;
- },
- ZoneSpecification: function ZoneSpecification() {
- },
- _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
- var _ = this;
- _.handleUncaughtError = t0;
- _.run = t1;
- _.runUnary = t2;
- _.runBinary = t3;
- _.registerCallback = t4;
- _.registerUnaryCallback = t5;
- _.registerBinaryCallback = t6;
- _.errorCallback = t7;
- _.scheduleMicrotask = t8;
- _.createTimer = t9;
- _.createPeriodicTimer = t10;
- _.print = t11;
- _.fork = t12;
- },
- ZoneDelegate: function ZoneDelegate() {
- },
- Zone: function Zone() {
- },
- _ZoneDelegate: function _ZoneDelegate(t0) {
- this._delegationTarget = t0;
- },
- _Zone: function _Zone() {
- },
- _CustomZone: function _CustomZone(t0, t1) {
- var _ = this;
- _._delegateCache = _._handleUncaughtError = _._fork = _._print = _._createPeriodicTimer = _._createTimer = _._scheduleMicrotask = _._errorCallback = _._registerBinaryCallback = _._registerUnaryCallback = _._registerCallback = _._runBinary = _._runUnary = _._run = null;
- _.parent = t0;
- _._async$_map = t1;
- },
- _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) {
- this.$this = t0;
- this.registered = t1;
- this.R = t2;
- },
- _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.registered = t1;
- _.T = t2;
- _.R = t3;
- },
- _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) {
- this.$this = t0;
- this.registered = t1;
- },
- _rootHandleUncaughtError_closure: function _rootHandleUncaughtError_closure(t0) {
- this._box_0 = t0;
- },
- _RootZone: function _RootZone() {
- },
- _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) {
- this.$this = t0;
- this.f = t1;
- this.R = t2;
- },
- _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) {
- this.$this = t0;
- this.f = t1;
- },
- HashMap_HashMap: function($K, $V) {
- return new P._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>"));
- },
- _HashMap__getTableEntry: function(table, key) {
- var entry = table[key];
- return entry === table ? null : entry;
- },
- _HashMap__setTableEntry: function(table, key, value) {
- if (value == null)
- table[key] = table;
- else
- table[key] = value;
- },
- _HashMap__newHashTable: function() {
- var table = Object.create(null);
- P._HashMap__setTableEntry(table, "<non-identifier-key>", table);
- delete table["<non-identifier-key>"];
- return table;
- },
- LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) {
- if (isValidKey == null)
- if (hashCode == null) {
- if (equals == null)
- return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
- hashCode = P.collection___defaultHashCode$closure();
- } else {
- if (P.core__identityHashCode$closure() === hashCode && P.core__identical$closure() === equals)
- return P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6($K, $V);
- if (equals == null)
- equals = P.collection___defaultEquals$closure();
- }
- else {
- if (hashCode == null)
- hashCode = P.collection___defaultHashCode$closure();
- if (equals == null)
- equals = P.collection___defaultEquals$closure();
- }
- return P._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V);
- },
- LinkedHashMap_LinkedHashMap$_literal: function(keyValuePairs, $K, $V) {
- return H.fillLiteralMap(keyValuePairs, new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")));
- },
- LinkedHashMap_LinkedHashMap$_empty: function($K, $V) {
- return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
- },
- _LinkedIdentityHashMap__LinkedIdentityHashMap$es6: function($K, $V) {
- return new P._LinkedIdentityHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedIdentityHashMap<1,2>"));
- },
- _LinkedCustomHashMap$: function(_equals, _hashCode, validKey, $K, $V) {
- var t1 = validKey != null ? validKey : new P._LinkedCustomHashMap_closure($K);
- return new P._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>"));
- },
- LinkedHashSet_LinkedHashSet: function($E) {
- return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
- },
- LinkedHashSet_LinkedHashSet$_empty: function($E) {
- return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
- },
- LinkedHashSet_LinkedHashSet$_literal: function(values, $E) {
- return H.fillLiteralSet(values, new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")));
- },
- _LinkedHashSet__newHashTable: function() {
- var table = Object.create(null);
- table["<non-identifier-key>"] = table;
- delete table["<non-identifier-key>"];
- return table;
- },
- _LinkedHashSetIterator$: function(_set, _modifications) {
- var t1 = new P._LinkedHashSetIterator(_set, _modifications);
- t1._collection$_cell = _set._collection$_first;
- return t1;
- },
- UnmodifiableListView$: function(source, $E) {
- return new P.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>"));
- },
- _defaultEquals: function(a, b) {
- return J.$eq$(a, b);
- },
- _defaultHashCode: function(a) {
- return J.get$hashCode$(a);
- },
- HashMap_HashMap$from: function(other, $K, $V) {
- var result = P.HashMap_HashMap($K, $V);
- other.forEach$1(0, new P.HashMap_HashMap$from_closure(result));
- return result;
- },
- IterableBase_iterableToShortString: function(iterable, leftDelimiter, rightDelimiter) {
- var parts, t1;
- if (P._isToStringVisiting(iterable)) {
- if (leftDelimiter === "(" && rightDelimiter === ")")
- return "(...)";
- return leftDelimiter + "..." + rightDelimiter;
- }
- parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
- $._toStringVisiting.push(iterable);
- try {
- P._iterablePartsToStrings(iterable, parts);
- } finally {
- $._toStringVisiting.pop();
- }
- t1 = P.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- IterableBase_iterableToFullString: function(iterable, leftDelimiter, rightDelimiter) {
- var buffer, t1;
- if (P._isToStringVisiting(iterable))
- return leftDelimiter + "..." + rightDelimiter;
- buffer = new P.StringBuffer(leftDelimiter);
- $._toStringVisiting.push(iterable);
- try {
- t1 = buffer;
- t1._contents = P.StringBuffer__writeAll(t1._contents, iterable, ", ");
- } finally {
- $._toStringVisiting.pop();
- }
- buffer._contents += rightDelimiter;
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _isToStringVisiting: function(o) {
- var t1, i;
- for (t1 = $._toStringVisiting.length, i = 0; i < t1; ++i)
- if (o === $._toStringVisiting[i])
- return true;
- return false;
- },
- _iterablePartsToStrings: function(iterable, parts) {
- var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision,
- it = iterable.get$iterator(iterable),
- $length = 0, count = 0;
- while (true) {
- if (!($length < 80 || count < 3))
- break;
- if (!it.moveNext$0())
- return;
- next = H.S(it.get$current(it));
- parts.push(next);
- $length += next.length + 2;
- ++count;
- }
- if (!it.moveNext$0()) {
- if (count <= 5)
- return;
- ultimateString = parts.pop();
- penultimateString = parts.pop();
- } else {
- penultimate = it.get$current(it);
- ++count;
- if (!it.moveNext$0()) {
- if (count <= 4) {
- parts.push(H.S(penultimate));
- return;
- }
- ultimateString = H.S(penultimate);
- penultimateString = parts.pop();
- $length += ultimateString.length + 2;
- } else {
- ultimate = it.get$current(it);
- ++count;
- for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) {
- ultimate0 = it.get$current(it);
- ++count;
- if (count > 100) {
- while (true) {
- if (!($length > 75 && count > 3))
- break;
- $length -= parts.pop().length + 2;
- --count;
- }
- parts.push("...");
- return;
- }
- }
- penultimateString = H.S(penultimate);
- ultimateString = H.S(ultimate);
- $length += ultimateString.length + penultimateString.length + 4;
- }
- }
- if (count > parts.length + 2) {
- $length += 5;
- elision = "...";
- } else
- elision = null;
- while (true) {
- if (!($length > 80 && parts.length > 3))
- break;
- $length -= parts.pop().length + 2;
- if (elision == null) {
- $length += 5;
- elision = "...";
- }
- }
- if (elision != null)
- parts.push(elision);
- parts.push(penultimateString);
- parts.push(ultimateString);
- },
- LinkedHashMap_LinkedHashMap$from: function(other, $K, $V) {
- var result = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
- other.forEach$1(0, new P.LinkedHashMap_LinkedHashMap$from_closure(result));
- return result;
- },
- LinkedHashMap_LinkedHashMap$of: function(other, $K, $V) {
- var t1 = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
- t1.addAll$1(0, other);
- return t1;
- },
- LinkedHashSet_LinkedHashSet$from: function(elements, $E) {
- var t1,
- result = P.LinkedHashSet_LinkedHashSet($E);
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- result.add$1(0, t1.get$current(t1));
- return result;
- },
- LinkedHashSet_LinkedHashSet$of: function(elements, $E) {
- var t1 = P.LinkedHashSet_LinkedHashSet($E);
- t1.addAll$1(0, elements);
- return t1;
- },
- ListMixin__compareAny: function(a, b) {
- return J.compareTo$1$ns(a, b);
- },
- MapBase_mapToString: function(m) {
- var result, t1 = {};
- if (P._isToStringVisiting(m))
- return "{...}";
- result = new P.StringBuffer("");
- try {
- $._toStringVisiting.push(m);
- result._contents += "{";
- t1.first = true;
- m.forEach$1(0, new P.MapBase_mapToString_closure(t1, result));
- result._contents += "}";
- } finally {
- $._toStringVisiting.pop();
- }
- t1 = result._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- MapBase__fillMapWithIterables: function(map, keys, values) {
- var keyIterator = keys.get$iterator(keys),
- valueIterator = values.get$iterator(values),
- hasNextKey = keyIterator.moveNext$0(),
- hasNextValue = valueIterator.moveNext$0();
- while (true) {
- if (!(hasNextKey && hasNextValue))
- break;
- map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator));
- hasNextKey = keyIterator.moveNext$0();
- hasNextValue = valueIterator.moveNext$0();
- }
- if (hasNextKey || hasNextValue)
- throw H.wrapException(P.ArgumentError$("Iterables do not have same length."));
- },
- ListQueue$: function($E) {
- var t1 = new P.ListQueue($E._eval$1("ListQueue<0>")),
- t2 = new Array(8);
- t2.fixed$length = Array;
- t1._collection$_table = H.setRuntimeTypeInfo(t2, $E._eval$1("JSArray<0>"));
- return t1;
- },
- ListQueue_ListQueue$of: function(elements, $E) {
- var t1 = P.ListQueue$($E);
- t1.addAll$1(0, elements);
- return t1;
- },
- ListQueue__nextPowerOf2: function(number) {
- var nextNumber;
- number = (number << 1 >>> 0) - 1;
- for (; true; number = nextNumber) {
- nextNumber = (number & number - 1) >>> 0;
- if (nextNumber === 0)
- return number;
- }
- },
- _ListQueueIterator$: function(queue) {
- return new P._ListQueueIterator(queue, queue._collection$_tail, queue._modificationCount, queue._collection$_head);
- },
- _HashMap: function _HashMap(t0) {
- var _ = this;
- _._collection$_length = 0;
- _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
- _.$ti = t0;
- },
- _HashMap_values_closure: function _HashMap_values_closure(t0) {
- this.$this = t0;
- },
- _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) {
- this.$this = t0;
- },
- _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) {
- this._collection$_map = t0;
- this.$ti = t1;
- },
- _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1) {
- var _ = this;
- _._collection$_map = t0;
- _._keys = t1;
- _._offset = 0;
- _._collection$_current = null;
- },
- _LinkedIdentityHashMap: function _LinkedIdentityHashMap(t0) {
- var _ = this;
- _.__js_helper$_length = 0;
- _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
- _._modifications = 0;
- _.$ti = t0;
- },
- _LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) {
- var _ = this;
- _._equals = t0;
- _._hashCode = t1;
- _._validKey = t2;
- _.__js_helper$_length = 0;
- _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
- _._modifications = 0;
- _.$ti = t3;
- },
- _LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) {
- this.K = t0;
- },
- _LinkedHashSet: function _LinkedHashSet(t0) {
- var _ = this;
- _._collection$_length = 0;
- _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
- _._collection$_modifications = 0;
- _.$ti = t0;
- },
- _LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) {
- var _ = this;
- _._collection$_length = 0;
- _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
- _._collection$_modifications = 0;
- _.$ti = t0;
- },
- _LinkedHashSetCell: function _LinkedHashSetCell(t0) {
- this._element = t0;
- this._collection$_previous = this._collection$_next = null;
- },
- _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1) {
- var _ = this;
- _._set = t0;
- _._collection$_modifications = t1;
- _._collection$_current = _._collection$_cell = null;
- },
- UnmodifiableListView: function UnmodifiableListView(t0, t1) {
- this._collection$_source = t0;
- this.$ti = t1;
- },
- HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0) {
- this.result = t0;
- },
- IterableBase: function IterableBase() {
- },
- LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0) {
- this.result = t0;
- },
- ListBase: function ListBase() {
- },
- ListMixin: function ListMixin() {
- },
- MapBase: function MapBase() {
- },
- MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) {
- this._box_0 = t0;
- this.result = t1;
- },
- MapMixin: function MapMixin() {
- },
- MapMixin_entries_closure: function MapMixin_entries_closure(t0) {
- this.$this = t0;
- },
- UnmodifiableMapBase: function UnmodifiableMapBase() {
- },
- _MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) {
- this._collection$_map = t0;
- this.$ti = t1;
- },
- _MapBaseValueIterator: function _MapBaseValueIterator(t0, t1) {
- this._keys = t0;
- this._collection$_map = t1;
- this._collection$_current = null;
- },
- _UnmodifiableMapMixin: function _UnmodifiableMapMixin() {
- },
- MapView: function MapView() {
- },
- UnmodifiableMapView: function UnmodifiableMapView(t0, t1) {
- this._collection$_map = t0;
- this.$ti = t1;
- },
- Queue: function Queue() {
- },
- ListQueue: function ListQueue(t0) {
- var _ = this;
- _._collection$_table = null;
- _._modificationCount = _._collection$_tail = _._collection$_head = 0;
- _.$ti = t0;
- },
- _ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3) {
- var _ = this;
- _._queue = t0;
- _._collection$_end = t1;
- _._modificationCount = t2;
- _._collection$_position = t3;
- _._collection$_current = null;
- },
- _SetBase: function _SetBase() {
- },
- _UnmodifiableSet: function _UnmodifiableSet(t0, t1) {
- this._collection$_map = t0;
- this.$ti = t1;
- },
- _ListBase_Object_ListMixin: function _ListBase_Object_ListMixin() {
- },
- _UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() {
- },
- Utf8Decoder__convertIntercepted: function(allowMalformed, codeUnits, start, end) {
- if (codeUnits instanceof Uint8Array)
- return P.Utf8Decoder__convertInterceptedUint8List(false, codeUnits, start, end);
- return null;
- },
- Utf8Decoder__convertInterceptedUint8List: function(allowMalformed, codeUnits, start, end) {
- var t1, $length,
- decoder = $.$get$Utf8Decoder__decoder();
- if (decoder == null)
- return null;
- t1 = 0 === start;
- if (t1 && true)
- return P.Utf8Decoder__useTextDecoderChecked(decoder, codeUnits);
- $length = codeUnits.length;
- end = P.RangeError_checkValidRange(start, end, $length);
- if (t1 && end === $length)
- return P.Utf8Decoder__useTextDecoderChecked(decoder, codeUnits);
- return P.Utf8Decoder__useTextDecoderChecked(decoder, codeUnits.subarray(start, end));
- },
- Utf8Decoder__useTextDecoderChecked: function(decoder, codeUnits) {
- if (P.Utf8Decoder__unsafe(codeUnits))
- return null;
- return P.Utf8Decoder__useTextDecoderUnchecked(decoder, codeUnits);
- },
- Utf8Decoder__useTextDecoderUnchecked: function(decoder, codeUnits) {
- var t1, exception;
- try {
- t1 = decoder.decode(codeUnits);
- return t1;
- } catch (exception) {
- H.unwrapException(exception);
- }
- return null;
- },
- Utf8Decoder__unsafe: function(codeUnits) {
- var i,
- limit = codeUnits.length - 2;
- for (i = 0; i < limit; ++i)
- if (codeUnits[i] === 237)
- if ((codeUnits[i + 1] & 224) === 160)
- return true;
- return false;
- },
- Utf8Decoder__makeDecoder: function() {
- var t1, exception;
- try {
- t1 = new TextDecoder("utf-8", {fatal: true});
- return t1;
- } catch (exception) {
- H.unwrapException(exception);
- }
- return null;
- },
- _scanOneByteCharacters: function(units, from, endIndex) {
- var t1, i, unit;
- for (t1 = J.getInterceptor$asx(units), i = from; i < endIndex; ++i) {
- unit = t1.$index(units, i);
- if ((unit & 127) !== unit)
- return i - from;
- }
- return endIndex - from;
- },
- Base64Codec__checkPadding: function(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) {
- if (C.JSInt_methods.$mod($length, 4) !== 0)
- throw H.wrapException(P.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd));
- if (firstPadding + paddingCount !== $length)
- throw H.wrapException(P.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex));
- if (paddingCount > 2)
- throw H.wrapException(P.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex));
- },
- _Base64Encoder_encodeChunk: function(alphabet, bytes, start, end, isLast, output, outputIndex, state) {
- var t1, i, byteOr, byte, outputIndex0, outputIndex1,
- bits = state >>> 2,
- expectedChars = 3 - (state & 3);
- for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) {
- byte = t1.$index(bytes, i);
- byteOr = (byteOr | byte) >>> 0;
- bits = (bits << 8 | byte) & 16777215;
- --expectedChars;
- if (expectedChars === 0) {
- outputIndex0 = outputIndex + 1;
- output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 18 & 63);
- outputIndex = outputIndex0 + 1;
- output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 12 & 63);
- outputIndex0 = outputIndex + 1;
- output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 6 & 63);
- outputIndex = outputIndex0 + 1;
- output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits & 63);
- bits = 0;
- expectedChars = 3;
- }
- }
- if (byteOr >= 0 && byteOr <= 255) {
- if (isLast && expectedChars < 3) {
- outputIndex0 = outputIndex + 1;
- outputIndex1 = outputIndex0 + 1;
- if (3 - expectedChars === 1) {
- output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 2 & 63);
- output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 4 & 63);
- output[outputIndex1] = 61;
- output[outputIndex1 + 1] = 61;
- } else {
- output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 10 & 63);
- output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 4 & 63);
- output[outputIndex1] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 2 & 63);
- output[outputIndex1 + 1] = 61;
- }
- return 0;
- }
- return (bits << 2 | 3 - expectedChars) >>> 0;
- }
- for (i = start; i < end;) {
- byte = t1.$index(bytes, i);
- if (byte < 0 || byte > 255)
- break;
- ++i;
- }
- 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));
- },
- JsonUnsupportedObjectError$: function(unsupportedObject, cause, partialResult) {
- return new P.JsonUnsupportedObjectError(unsupportedObject, cause);
- },
- _defaultToEncodable: function(object) {
- return object.toJson$0();
- },
- _JsonStringStringifier_stringify: function(object, toEncodable, indent) {
- var t1,
- output = new P.StringBuffer("");
- P._JsonStringStringifier_printOn(object, output, toEncodable, indent);
- t1 = output._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _JsonStringStringifier_printOn: function(object, output, toEncodable, indent) {
- var stringifier = new P._JsonStringStringifier(output, [], P.convert___defaultToEncodable$closure());
- stringifier.writeObject$1(object);
- },
- AsciiCodec: function AsciiCodec() {
- },
- _UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() {
- },
- AsciiEncoder: function AsciiEncoder(t0) {
- this._subsetMask = t0;
- },
- Base64Codec: function Base64Codec() {
- },
- Base64Encoder: function Base64Encoder() {
- },
- _Base64Encoder: function _Base64Encoder(t0) {
- this._convert$_state = 0;
- this._alphabet = t0;
- },
- _BufferCachingBase64Encoder: function _BufferCachingBase64Encoder(t0) {
- this.bufferCache = null;
- this._convert$_state = 0;
- this._alphabet = t0;
- },
- _Base64EncoderSink: function _Base64EncoderSink() {
- },
- _AsciiBase64EncoderSink: function _AsciiBase64EncoderSink(t0, t1) {
- this._sink = t0;
- this._encoder = t1;
- },
- _Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) {
- this._sink = t0;
- this._encoder = t1;
- },
- ByteConversionSink: function ByteConversionSink() {
- },
- ByteConversionSinkBase: function ByteConversionSinkBase() {
- },
- ChunkedConversionSink: function ChunkedConversionSink() {
- },
- Codec: function Codec() {
- },
- Converter: function Converter() {
- },
- Encoding: function Encoding() {
- },
- JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) {
- this.unsupportedObject = t0;
- this.cause = t1;
- },
- JsonCyclicError: function JsonCyclicError(t0, t1) {
- this.unsupportedObject = t0;
- this.cause = t1;
- },
- JsonCodec: function JsonCodec() {
- },
- JsonEncoder: function JsonEncoder(t0) {
- this._toEncodable = t0;
- },
- _JsonStringifier: function _JsonStringifier() {
- },
- _JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) {
- this._box_0 = t0;
- this.keyValueList = t1;
- },
- _JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) {
- this._sink = t0;
- this._seen = t1;
- this._toEncodable = t2;
- },
- StringConversionSinkBase: function StringConversionSinkBase() {
- },
- StringConversionSinkMixin: function StringConversionSinkMixin() {
- },
- _StringSinkConversionSink: function _StringSinkConversionSink(t0) {
- this._stringSink = t0;
- },
- _StringCallbackSink: function _StringCallbackSink(t0, t1) {
- this._convert$_callback = t0;
- this._stringSink = t1;
- },
- _StringAdapterSink: function _StringAdapterSink(t0) {
- this._sink = t0;
- },
- _Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1) {
- this._decoder = t0;
- this._sink = t1;
- },
- _Utf8ConversionSink: function _Utf8ConversionSink(t0, t1, t2) {
- this._decoder = t0;
- this._chunkedSink = t1;
- this._convert$_buffer = t2;
- },
- Utf8Codec: function Utf8Codec() {
- },
- Utf8Encoder: function Utf8Encoder() {
- },
- _Utf8Encoder: function _Utf8Encoder(t0) {
- this._bufferIndex = this._carry = 0;
- this._convert$_buffer = t0;
- },
- Utf8Decoder: function Utf8Decoder(t0) {
- this._allowMalformed = t0;
- },
- _Utf8Decoder: function _Utf8Decoder(t0, t1) {
- var _ = this;
- _._allowMalformed = t0;
- _._stringSink = t1;
- _._isFirstCharacter = true;
- _._extraUnits = _._expectedUnits = _._value = 0;
- },
- identityHashCode: function(object) {
- return H.objectHashCode(object);
- },
- Function_apply: function($function, positionalArguments) {
- return H.Primitives_applyFunction($function, positionalArguments, null);
- },
- int_parse: function(source, onError, radix) {
- var value = H.Primitives_parseInt(source, radix);
- if (value != null)
- return value;
- if (onError != null)
- return onError.call$1(source);
- throw H.wrapException(P.FormatException$(source, null, null));
- },
- double_parse: function(source) {
- var value = H.Primitives_parseDouble(source);
- if (value != null)
- return value;
- throw H.wrapException(P.FormatException$("Invalid double", source, null));
- },
- Error__objectToString: function(object) {
- if (object instanceof H.Closure)
- return object.toString$0(0);
- return "Instance of '" + H.S(H.Primitives_objectTypeName(object)) + "'";
- },
- List_List$filled: function($length, fill, $E) {
- var t1, i,
- result = J.JSArray_JSArray$fixed($length, $E);
- if ($length !== 0 && fill != null)
- for (t1 = result.length, i = 0; i < t1; ++i)
- result[i] = fill;
- return result;
- },
- List_List$from: function(elements, growable, $E) {
- var t1,
- list = H.setRuntimeTypeInfo([], $E._eval$1("JSArray<0>"));
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- list.push(t1.get$current(t1));
- if (growable)
- return list;
- return J.JSArray_markFixedList(list);
- },
- List_List$unmodifiable: function(elements, $E) {
- return J.JSArray_markUnmodifiableList(P.List_List$from(elements, false, $E));
- },
- String_String$fromCharCodes: function(charCodes, start, end) {
- var len;
- if (Array.isArray(charCodes)) {
- len = charCodes.length;
- end = P.RangeError_checkValidRange(start, end, len);
- return H.Primitives_stringFromCharCodes(start > 0 || end < len ? C.JSArray_methods.sublist$2(charCodes, start, end) : charCodes);
- }
- if (type$.NativeUint8List._is(charCodes))
- return H.Primitives_stringFromNativeUint8List(charCodes, start, P.RangeError_checkValidRange(start, end, charCodes.length));
- return P.String__stringFromIterable(charCodes, start, end);
- },
- String_String$fromCharCode: function(charCode) {
- return H.Primitives_stringFromCharCode(charCode);
- },
- String__stringFromIterable: function(charCodes, start, end) {
- var t1, it, i, list, _null = null;
- if (start < 0)
- throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(charCodes), _null, _null));
- t1 = end == null;
- if (!t1 && end < start)
- throw H.wrapException(P.RangeError$range(end, start, J.get$length$asx(charCodes), _null, _null));
- it = J.get$iterator$ax(charCodes);
- for (i = 0; i < start; ++i)
- if (!it.moveNext$0())
- throw H.wrapException(P.RangeError$range(start, 0, i, _null, _null));
- list = [];
- if (t1)
- for (; it.moveNext$0();)
- list.push(it.get$current(it));
- else
- for (i = start; i < end; ++i) {
- if (!it.moveNext$0())
- throw H.wrapException(P.RangeError$range(end, start, i, _null, _null));
- list.push(it.get$current(it));
- }
- return H.Primitives_stringFromCharCodes(list);
- },
- RegExp_RegExp: function(source, multiLine) {
- return new H.JSSyntaxRegExp(source, H.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false));
- },
- identical: function(a, b) {
- return a == null ? b == null : a === b;
- },
- StringBuffer__writeAll: function(string, objects, separator) {
- var iterator = J.get$iterator$ax(objects);
- if (!iterator.moveNext$0())
- return string;
- if (separator.length === 0) {
- do
- string += H.S(iterator.get$current(iterator));
- while (iterator.moveNext$0());
- } else {
- string += H.S(iterator.get$current(iterator));
- for (; iterator.moveNext$0();)
- string = string + separator + H.S(iterator.get$current(iterator));
- }
- return string;
- },
- NoSuchMethodError$: function(receiver, memberName, positionalArguments, namedArguments) {
- return new P.NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments);
- },
- Uri_base: function() {
- var uri = H.Primitives_currentUri();
- if (uri != null)
- return P.Uri_parse(uri);
- throw H.wrapException(P.UnsupportedError$("'Uri.base' is not supported"));
- },
- _Uri__uriEncode: function(canonicalTable, text, encoding, spaceToPlus) {
- var t1, bytes, i, t2, byte,
- _s16_ = "0123456789ABCDEF";
- if (encoding === C.C_Utf8Codec) {
- t1 = $.$get$_Uri__needsNoEncoding()._nativeRegExp;
- if (typeof text != "string")
- H.throwExpression(H.argumentErrorValue(text));
- t1 = t1.test(text);
- } else
- t1 = false;
- if (t1)
- return text;
- bytes = encoding.get$encoder().convert$1(text);
- for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) {
- byte = bytes[i];
- if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0)
- t2 += H.Primitives_stringFromCharCode(byte);
- else
- t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15];
- }
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- },
- StackTrace_current: function() {
- var stackTrace, exception;
- if ($.$get$_hasErrorStackProperty())
- return H.getTraceFromException(new Error());
- try {
- throw H.wrapException("");
- } catch (exception) {
- H.unwrapException(exception);
- stackTrace = H.getTraceFromException(exception);
- return stackTrace;
- }
- },
- DateTime$_withValue: function(_value, isUtc) {
- var t1;
- if (Math.abs(_value) <= 864e13)
- t1 = false;
- else
- t1 = true;
- if (t1)
- H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + _value));
- P.ArgumentError_checkNotNull(false, "isUtc");
- return new P.DateTime(_value, false);
- },
- DateTime__fourDigits: function(n) {
- var absN = Math.abs(n),
- sign = n < 0 ? "-" : "";
- if (absN >= 1000)
- return "" + n;
- if (absN >= 100)
- return sign + "0" + absN;
- if (absN >= 10)
- return sign + "00" + absN;
- return sign + "000" + absN;
- },
- DateTime__threeDigits: function(n) {
- if (n >= 100)
- return "" + n;
- if (n >= 10)
- return "0" + n;
- return "00" + n;
- },
- DateTime__twoDigits: function(n) {
- if (n >= 10)
- return "" + n;
- return "0" + n;
- },
- Duration$: function(milliseconds) {
- return new P.Duration(1000 * milliseconds);
- },
- Error_safeToString: function(object) {
- if (typeof object == "number" || H._isBool(object) || null == object)
- return J.toString$0$(object);
- if (typeof object == "string")
- return JSON.stringify(object);
- return P.Error__objectToString(object);
- },
- AssertionError$: function(message) {
- return new P.AssertionError(message);
- },
- ArgumentError$: function(message) {
- return new P.ArgumentError(false, null, null, message);
- },
- ArgumentError$value: function(value, $name, message) {
- return new P.ArgumentError(true, value, $name, message);
- },
- ArgumentError$notNull: function($name) {
- return new P.ArgumentError(false, null, $name, "Must not be null");
- },
- ArgumentError_checkNotNull: function(argument, $name) {
- if (argument == null)
- throw H.wrapException(P.ArgumentError$notNull($name));
- return argument;
- },
- RangeError$: function(message) {
- var _null = null;
- return new P.RangeError(_null, _null, false, _null, _null, message);
- },
- RangeError$value: function(value, $name, message) {
- return new P.RangeError(null, null, true, value, $name, message != null ? message : "Value not in range");
- },
- RangeError$range: function(invalidValue, minValue, maxValue, $name, message) {
- return new P.RangeError(minValue, maxValue, true, invalidValue, $name, "Invalid value");
- },
- RangeError_checkValueInInterval: function(value, minValue, maxValue, $name) {
- if (value < minValue || value > maxValue)
- throw H.wrapException(P.RangeError$range(value, minValue, maxValue, $name, null));
- return value;
- },
- RangeError_checkValidIndex: function(index, indexable, $name) {
- var $length = indexable.get$length(indexable);
- if (0 > index || index >= $length)
- throw H.wrapException(P.IndexError$(index, indexable, $name == null ? "index" : $name, null, $length));
- return index;
- },
- RangeError_checkValidRange: function(start, end, $length) {
- if (0 > start || start > $length)
- throw H.wrapException(P.RangeError$range(start, 0, $length, "start", null));
- if (end != null) {
- if (start > end || end > $length)
- throw H.wrapException(P.RangeError$range(end, start, $length, "end", null));
- return end;
- }
- return $length;
- },
- RangeError_checkNotNegative: function(value, $name) {
- if (value < 0)
- throw H.wrapException(P.RangeError$range(value, 0, null, $name, null));
- return value;
- },
- IndexError$: function(invalidValue, indexable, $name, message, $length) {
- var t1 = $length == null ? J.get$length$asx(indexable) : $length;
- return new P.IndexError(t1, true, invalidValue, $name, "Index out of range");
- },
- UnsupportedError$: function(message) {
- return new P.UnsupportedError(message);
- },
- UnimplementedError$: function(message) {
- return new P.UnimplementedError(message);
- },
- StateError$: function(message) {
- return new P.StateError(message);
- },
- ConcurrentModificationError$: function(modifiedObject) {
- return new P.ConcurrentModificationError(modifiedObject);
- },
- FormatException$: function(message, source, offset) {
- return new P.FormatException(message, source, offset);
- },
- Iterable_Iterable$generate: function(count, generator, $E) {
- if (count <= 0)
- return new H.EmptyIterable($E._eval$1("EmptyIterable<0>"));
- return new P._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>"));
- },
- List_List$generate: function($length, generator, growable, $E) {
- var result, t2, i,
- t1 = $E._eval$1("JSArray<0>");
- if (growable) {
- result = H.setRuntimeTypeInfo([], t1);
- C.JSArray_methods.set$length(result, $length);
- } else {
- t2 = new Array($length);
- t2.fixed$length = Array;
- result = H.setRuntimeTypeInfo(t2, t1);
- }
- for (i = 0; i < $length; ++i)
- result[i] = generator.call$1(i);
- return result;
- },
- print: function(object) {
- var line = H.S(object),
- t1 = $.printToZone;
- if (t1 == null)
- H.printString(line);
- else
- t1.call$1(line);
- },
- Set_castFrom: function(source, newSet, $S, $T) {
- return new H.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>"));
- },
- _combineSurrogatePair: function(start, end) {
- return 65536 + ((start & 1023) << 10) + (end & 1023);
- },
- Uri_Uri$dataFromString: function($content, encoding, mimeType) {
- var encodingName, t1,
- buffer = new P.StringBuffer(""),
- indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
- if (encoding == null)
- encodingName = null;
- else
- encodingName = "utf-8";
- if (encoding == null)
- encoding = C.C_AsciiCodec;
- P.UriData__writeUri(mimeType, encodingName, null, buffer, indices);
- indices.push(buffer._contents.length);
- buffer._contents += ",";
- P.UriData__uriEncodeBytes(C.List_CVk, encoding.encode$1($content), buffer);
- t1 = buffer._contents;
- return new P.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri();
- },
- Uri_parse: function(uri) {
- var delta, t1, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t2, schemeAuth, queryStart0, pathStart0, _null = null,
- end = uri.length;
- if (end >= 5) {
- 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;
- if (delta === 0)
- return P.UriData__parse(end < end ? C.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
- else if (delta === 32)
- return P.UriData__parse(C.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri();
- }
- t1 = new Array(8);
- t1.fixed$length = Array;
- indices = H.setRuntimeTypeInfo(t1, type$.JSArray_int);
- indices[0] = 0;
- indices[1] = -1;
- indices[2] = -1;
- indices[7] = -1;
- indices[3] = 0;
- indices[4] = 0;
- indices[5] = end;
- indices[6] = end;
- if (P._scan(uri, 0, end, 0, indices) >= 14)
- indices[7] = end;
- schemeEnd = indices[1];
- if (schemeEnd >= 0)
- if (P._scan(uri, 0, schemeEnd, 20, indices) === 20)
- indices[7] = schemeEnd;
- hostStart = indices[2] + 1;
- portStart = indices[3];
- pathStart = indices[4];
- queryStart = indices[5];
- fragmentStart = indices[6];
- if (fragmentStart < queryStart)
- queryStart = fragmentStart;
- if (pathStart < hostStart)
- pathStart = queryStart;
- else if (pathStart <= schemeEnd)
- pathStart = schemeEnd + 1;
- if (portStart < hostStart)
- portStart = pathStart;
- isSimple = indices[7] < 0;
- if (isSimple)
- if (hostStart > schemeEnd + 3) {
- scheme = _null;
- isSimple = false;
- } else {
- t1 = portStart > 0;
- if (t1 && portStart + 1 === pathStart) {
- scheme = _null;
- isSimple = false;
- } else {
- if (!(queryStart < end && queryStart === pathStart + 2 && J.startsWith$2$s(uri, "..", pathStart)))
- t2 = queryStart > pathStart + 2 && J.startsWith$2$s(uri, "/..", queryStart - 3);
- else
- t2 = true;
- if (t2) {
- scheme = _null;
- isSimple = false;
- } else {
- if (schemeEnd === 4)
- if (J.startsWith$2$s(uri, "file", 0)) {
- if (hostStart <= 0) {
- if (!C.JSString_methods.startsWith$2(uri, "/", pathStart)) {
- schemeAuth = "file:///";
- delta = 3;
- } else {
- schemeAuth = "file://";
- delta = 2;
- }
- uri = schemeAuth + C.JSString_methods.substring$2(uri, pathStart, end);
- schemeEnd -= 0;
- t1 = delta - 0;
- queryStart += t1;
- fragmentStart += t1;
- end = uri.length;
- hostStart = 7;
- portStart = 7;
- pathStart = 7;
- } else if (pathStart === queryStart) {
- queryStart0 = queryStart + 1;
- ++fragmentStart;
- uri = C.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/");
- ++end;
- queryStart = queryStart0;
- }
- scheme = "file";
- } else if (C.JSString_methods.startsWith$2(uri, "http", 0)) {
- if (t1 && portStart + 3 === pathStart && C.JSString_methods.startsWith$2(uri, "80", portStart + 1)) {
- pathStart0 = pathStart - 3;
- queryStart -= 3;
- fragmentStart -= 3;
- uri = C.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
- end -= 3;
- pathStart = pathStart0;
- }
- scheme = "http";
- } else
- scheme = _null;
- else if (schemeEnd === 5 && J.startsWith$2$s(uri, "https", 0)) {
- if (t1 && portStart + 4 === pathStart && J.startsWith$2$s(uri, "443", portStart + 1)) {
- pathStart0 = pathStart - 4;
- queryStart -= 4;
- fragmentStart -= 4;
- uri = J.replaceRange$3$asx(uri, portStart, pathStart, "");
- end -= 3;
- pathStart = pathStart0;
- }
- scheme = "https";
- } else
- scheme = _null;
- isSimple = true;
- }
- }
- }
- else
- scheme = _null;
- if (isSimple) {
- t1 = uri.length;
- if (end < t1) {
- uri = J.substring$2$s(uri, 0, end);
- schemeEnd -= 0;
- hostStart -= 0;
- portStart -= 0;
- pathStart -= 0;
- queryStart -= 0;
- fragmentStart -= 0;
- }
- return new P._SimpleUri(uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
- }
- return P._Uri__Uri$notSimple(uri, 0, end, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
- },
- Uri_decodeComponent: function(encodedComponent) {
- return P._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, C.C_Utf8Codec, false);
- },
- Uri__parseIPv4Address: function(host, start, end) {
- var i, partStart, partIndex, char, part, partIndex0, _null = null,
- _s43_ = "IPv4 address should contain exactly 4 parts",
- _s37_ = "each part must be in the range 0..255",
- error = new P.Uri__parseIPv4Address_error(host),
- result = new Uint8Array(4);
- for (i = start, partStart = i, partIndex = 0; i < end; ++i) {
- char = C.JSString_methods.codeUnitAt$1(host, i);
- if (char !== 46) {
- if ((char ^ 48) > 9)
- error.call$2("invalid character", i);
- } else {
- if (partIndex === 3)
- error.call$2(_s43_, i);
- part = P.int_parse(C.JSString_methods.substring$2(host, partStart, i), _null, _null);
- if (part > 255)
- error.call$2(_s37_, partStart);
- partIndex0 = partIndex + 1;
- result[partIndex] = part;
- partStart = i + 1;
- partIndex = partIndex0;
- }
- }
- if (partIndex !== 3)
- error.call$2(_s43_, end);
- part = P.int_parse(C.JSString_methods.substring$2(host, partStart, end), _null, _null);
- if (part > 255)
- error.call$2(_s37_, partStart);
- result[partIndex] = part;
- return result;
- },
- Uri_parseIPv6Address: function(host, start, end) {
- var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j,
- error = new P.Uri_parseIPv6Address_error(host),
- parseHex = new P.Uri_parseIPv6Address_parseHex(error, host);
- if (host.length < 2)
- error.call$1("address is too short");
- parts = H.setRuntimeTypeInfo([], type$.JSArray_int);
- for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) {
- char = C.JSString_methods.codeUnitAt$1(host, i);
- if (char === 58) {
- if (i === start) {
- ++i;
- if (C.JSString_methods.codeUnitAt$1(host, i) !== 58)
- error.call$2("invalid start colon.", i);
- partStart = i;
- }
- if (i === partStart) {
- if (wildcardSeen)
- error.call$2("only one wildcard `::` is allowed", i);
- parts.push(-1);
- wildcardSeen = true;
- } else
- parts.push(parseHex.call$2(partStart, i));
- partStart = i + 1;
- } else if (char === 46)
- seenDot = true;
- }
- if (parts.length === 0)
- error.call$1("too few parts");
- atEnd = partStart === end;
- t1 = C.JSArray_methods.get$last(parts);
- if (atEnd && t1 !== -1)
- error.call$2("expected a part after last `:`", end);
- if (!atEnd)
- if (!seenDot)
- parts.push(parseHex.call$2(partStart, end));
- else {
- last = P.Uri__parseIPv4Address(host, partStart, end);
- parts.push((last[0] << 8 | last[1]) >>> 0);
- parts.push((last[2] << 8 | last[3]) >>> 0);
- }
- if (wildcardSeen) {
- if (parts.length > 7)
- error.call$1("an address with a wildcard must have less than 7 parts");
- } else if (parts.length !== 8)
- error.call$1("an address without a wildcard must contain exactly 8 parts");
- bytes = new Uint8Array(16);
- for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) {
- value = parts[i];
- if (value === -1)
- for (j = 0; j < wildCardLength; ++j) {
- bytes[index] = 0;
- bytes[index + 1] = 0;
- index += 2;
- }
- else {
- bytes[index] = C.JSInt_methods._shrOtherPositive$1(value, 8);
- bytes[index + 1] = value & 255;
- index += 2;
- }
- }
- return bytes;
- },
- _Uri__Uri$notSimple: function(uri, start, end, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme) {
- var userInfoStart, userInfo, host, t1, port, path, query, _null = null;
- if (scheme == null)
- if (schemeEnd > start)
- scheme = P._Uri__makeScheme(uri, start, schemeEnd);
- else {
- if (schemeEnd === start)
- P._Uri__fail(uri, start, "Invalid empty scheme");
- scheme = "";
- }
- if (hostStart > start) {
- userInfoStart = schemeEnd + 3;
- userInfo = userInfoStart < hostStart ? P._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : "";
- host = P._Uri__makeHost(uri, hostStart, portStart, false);
- t1 = portStart + 1;
- port = t1 < pathStart ? P._Uri__makePort(P.int_parse(J.substring$2$s(uri, t1, pathStart), new P._Uri__Uri$notSimple_closure(uri, portStart), _null), scheme) : _null;
- } else {
- port = _null;
- host = port;
- userInfo = "";
- }
- path = P._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null);
- query = queryStart < fragmentStart ? P._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null;
- return new P._Uri(scheme, userInfo, host, port, path, query, fragmentStart < end ? P._Uri__makeFragment(uri, fragmentStart + 1, end) : _null);
- },
- _Uri__Uri: function(host, path, pathSegments, scheme) {
- var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null;
- scheme = P._Uri__makeScheme(scheme, 0, scheme == null ? 0 : scheme.length);
- userInfo = P._Uri__makeUserInfo(_null, 0, 0);
- host = P._Uri__makeHost(host, 0, host == null ? 0 : host.length, false);
- query = P._Uri__makeQuery(_null, 0, 0, _null);
- fragment = P._Uri__makeFragment(_null, 0, 0);
- port = P._Uri__makePort(_null, scheme);
- isFile = scheme === "file";
- if (host == null)
- t1 = userInfo.length !== 0 || port != null || isFile;
- else
- t1 = false;
- if (t1)
- host = "";
- t1 = host == null;
- hasAuthority = !t1;
- path = P._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority);
- t2 = scheme.length === 0;
- if (t2 && t1 && !C.JSString_methods.startsWith$1(path, "/"))
- path = P._Uri__normalizeRelativePath(path, !t2 || hasAuthority);
- else
- path = P._Uri__removeDotSegments(path);
- return new P._Uri(scheme, userInfo, t1 && C.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment);
- },
- _Uri__defaultPort: function(scheme) {
- if (scheme === "http")
- return 80;
- if (scheme === "https")
- return 443;
- return 0;
- },
- _Uri__fail: function(uri, index, message) {
- throw H.wrapException(P.FormatException$(message, uri, index));
- },
- _Uri__Uri$file: function(path, windows) {
- return windows ? P._Uri__makeWindowsFileUrl(path, false) : P._Uri__makeFileUri(path, false);
- },
- _Uri__checkNonWindowsPathReservedCharacters: function(segments, argumentError) {
- C.JSArray_methods.forEach$1(segments, new P._Uri__checkNonWindowsPathReservedCharacters_closure(false));
- },
- _Uri__checkWindowsPathReservedCharacters: function(segments, argumentError, firstSegment) {
- var t1, t2, t3;
- for (t1 = H.SubListIterable$(segments, firstSegment, null, H._arrayInstanceType(segments)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- t3 = P.RegExp_RegExp('["*/:<>?\\\\|]', false);
- t2.toString;
- if (H.stringContainsUnchecked(t2, t3, 0))
- if (argumentError)
- throw H.wrapException(P.ArgumentError$("Illegal character in path"));
- else
- throw H.wrapException(P.UnsupportedError$("Illegal character in path: " + t2));
- }
- },
- _Uri__checkWindowsDriveLetter: function(charCode, argumentError) {
- var t1,
- _s21_ = "Illegal drive letter ";
- if (!(65 <= charCode && charCode <= 90))
- t1 = 97 <= charCode && charCode <= 122;
- else
- t1 = true;
- if (t1)
- return;
- if (argumentError)
- throw H.wrapException(P.ArgumentError$(_s21_ + P.String_String$fromCharCode(charCode)));
- else
- throw H.wrapException(P.UnsupportedError$(_s21_ + P.String_String$fromCharCode(charCode)));
- },
- _Uri__makeFileUri: function(path, slashTerminated) {
- var _null = null,
- segments = H.setRuntimeTypeInfo(path.split("/"), type$.JSArray_String);
- if (C.JSString_methods.startsWith$1(path, "/"))
- return P._Uri__Uri(_null, _null, segments, "file");
- else
- return P._Uri__Uri(_null, _null, segments, _null);
- },
- _Uri__makeWindowsFileUrl: function(path, slashTerminated) {
- var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file";
- if (C.JSString_methods.startsWith$1(path, "\\\\?\\"))
- if (C.JSString_methods.startsWith$2(path, "UNC\\", 4))
- path = C.JSString_methods.replaceRange$3(path, 0, 7, _s1_);
- else {
- path = C.JSString_methods.substring$1(path, 4);
- if (path.length < 3 || C.JSString_methods._codeUnitAt$1(path, 1) !== 58 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
- throw H.wrapException(P.ArgumentError$("Windows paths with \\\\?\\ prefix must be absolute"));
- }
- else
- path = H.stringReplaceAllUnchecked(path, "/", _s1_);
- t1 = path.length;
- if (t1 > 1 && C.JSString_methods._codeUnitAt$1(path, 1) === 58) {
- P._Uri__checkWindowsDriveLetter(C.JSString_methods._codeUnitAt$1(path, 0), true);
- if (t1 === 2 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
- throw H.wrapException(P.ArgumentError$("Windows paths with drive letter must be absolute"));
- pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
- P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1);
- return P._Uri__Uri(_null, _null, pathSegments, _s4_);
- }
- if (C.JSString_methods.startsWith$1(path, _s1_))
- if (C.JSString_methods.startsWith$2(path, _s1_, 1)) {
- pathStart = C.JSString_methods.indexOf$2(path, _s1_, 2);
- t1 = pathStart < 0;
- hostPart = t1 ? C.JSString_methods.substring$1(path, 2) : C.JSString_methods.substring$2(path, 2, pathStart);
- pathSegments = H.setRuntimeTypeInfo((t1 ? "" : C.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String);
- P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
- return P._Uri__Uri(hostPart, _null, pathSegments, _s4_);
- } else {
- pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
- P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
- return P._Uri__Uri(_null, _null, pathSegments, _s4_);
- }
- else {
- pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
- P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
- return P._Uri__Uri(_null, _null, pathSegments, _null);
- }
- },
- _Uri__makePort: function(port, scheme) {
- if (port != null && port === P._Uri__defaultPort(scheme))
- return null;
- return port;
- },
- _Uri__makeHost: function(host, start, end, strictIPv6) {
- var t1, t2, index, zoneIDstart, zoneID, i;
- if (host == null)
- return null;
- if (start === end)
- return "";
- if (C.JSString_methods.codeUnitAt$1(host, start) === 91) {
- t1 = end - 1;
- if (C.JSString_methods.codeUnitAt$1(host, t1) !== 93)
- P._Uri__fail(host, start, "Missing end `]` to match `[` in host");
- t2 = start + 1;
- index = P._Uri__checkZoneID(host, t2, t1);
- if (index < t1) {
- zoneIDstart = index + 1;
- zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25");
- } else
- zoneID = "";
- P.Uri_parseIPv6Address(host, t2, index);
- return C.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]";
- }
- for (i = start; i < end; ++i)
- if (C.JSString_methods.codeUnitAt$1(host, i) === 58) {
- index = C.JSString_methods.indexOf$2(host, "%", start);
- index = index >= start && index < end ? index : end;
- if (index < end) {
- zoneIDstart = index + 1;
- zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25");
- } else
- zoneID = "";
- P.Uri_parseIPv6Address(host, start, index);
- return "[" + C.JSString_methods.substring$2(host, start, index) + zoneID + "]";
- }
- return P._Uri__normalizeRegName(host, start, end);
- },
- _Uri__checkZoneID: function(host, start, end) {
- var index = C.JSString_methods.indexOf$2(host, "%", start);
- return index >= start && index < end ? index : end;
- },
- _Uri__normalizeZoneID: function(host, start, end, prefix) {
- var index, sectionStart, isNormalized, char, replacement, t1, t2, tail, sourceLength,
- buffer = prefix !== "" ? new P.StringBuffer(prefix) : null;
- for (index = start, sectionStart = index, isNormalized = true; index < end;) {
- char = C.JSString_methods.codeUnitAt$1(host, index);
- if (char === 37) {
- replacement = P._Uri__normalizeEscape(host, index, true);
- t1 = replacement == null;
- if (t1 && isNormalized) {
- index += 3;
- continue;
- }
- if (buffer == null)
- buffer = new P.StringBuffer("");
- t2 = buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
- if (t1)
- replacement = C.JSString_methods.substring$2(host, index, index + 3);
- else if (replacement === "%")
- P._Uri__fail(host, index, "ZoneID should not contain % anymore");
- buffer._contents = t2 + replacement;
- index += 3;
- sectionStart = index;
- isNormalized = true;
- } else if (char < 127 && (C.List_nxB[char >>> 4] & 1 << (char & 15)) !== 0) {
- if (isNormalized && 65 <= char && 90 >= char) {
- if (buffer == null)
- buffer = new P.StringBuffer("");
- if (sectionStart < index) {
- buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
- sectionStart = index;
- }
- isNormalized = false;
- }
- ++index;
- } else {
- if ((char & 64512) === 55296 && index + 1 < end) {
- tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
- if ((tail & 64512) === 56320) {
- char = 65536 | (char & 1023) << 10 | tail & 1023;
- sourceLength = 2;
- } else
- sourceLength = 1;
- } else
- sourceLength = 1;
- if (buffer == null)
- buffer = new P.StringBuffer("");
- buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
- buffer._contents += P._Uri__escapeChar(char);
- index += sourceLength;
- sectionStart = index;
- }
- }
- if (buffer == null)
- return C.JSString_methods.substring$2(host, start, end);
- if (sectionStart < end)
- buffer._contents += C.JSString_methods.substring$2(host, sectionStart, end);
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Uri__normalizeRegName: function(host, start, end) {
- var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail;
- for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) {
- char = C.JSString_methods.codeUnitAt$1(host, index);
- if (char === 37) {
- replacement = P._Uri__normalizeEscape(host, index, true);
- t1 = replacement == null;
- if (t1 && isNormalized) {
- index += 3;
- continue;
- }
- if (buffer == null)
- buffer = new P.StringBuffer("");
- slice = C.JSString_methods.substring$2(host, sectionStart, index);
- t2 = buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
- if (t1) {
- replacement = C.JSString_methods.substring$2(host, index, index + 3);
- sourceLength = 3;
- } else if (replacement === "%") {
- replacement = "%25";
- sourceLength = 1;
- } else
- sourceLength = 3;
- buffer._contents = t2 + replacement;
- index += sourceLength;
- sectionStart = index;
- isNormalized = true;
- } else if (char < 127 && (C.List_qNA[char >>> 4] & 1 << (char & 15)) !== 0) {
- if (isNormalized && 65 <= char && 90 >= char) {
- if (buffer == null)
- buffer = new P.StringBuffer("");
- if (sectionStart < index) {
- buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
- sectionStart = index;
- }
- isNormalized = false;
- }
- ++index;
- } else if (char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0)
- P._Uri__fail(host, index, "Invalid character");
- else {
- if ((char & 64512) === 55296 && index + 1 < end) {
- tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
- if ((tail & 64512) === 56320) {
- char = 65536 | (char & 1023) << 10 | tail & 1023;
- sourceLength = 2;
- } else
- sourceLength = 1;
- } else
- sourceLength = 1;
- if (buffer == null)
- buffer = new P.StringBuffer("");
- slice = C.JSString_methods.substring$2(host, sectionStart, index);
- buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
- buffer._contents += P._Uri__escapeChar(char);
- index += sourceLength;
- sectionStart = index;
- }
- }
- if (buffer == null)
- return C.JSString_methods.substring$2(host, start, end);
- if (sectionStart < end) {
- slice = C.JSString_methods.substring$2(host, sectionStart, end);
- buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Uri__makeScheme: function(scheme, start, end) {
- var i, containsUpperCase, codeUnit;
- if (start === end)
- return "";
- if (!P._Uri__isAlphabeticCharacter(J.getInterceptor$s(scheme)._codeUnitAt$1(scheme, start)))
- P._Uri__fail(scheme, start, "Scheme not starting with alphabetic character");
- for (i = start, containsUpperCase = false; i < end; ++i) {
- codeUnit = C.JSString_methods._codeUnitAt$1(scheme, i);
- if (!(codeUnit < 128 && (C.List_JYB[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0))
- P._Uri__fail(scheme, i, "Illegal scheme character");
- if (65 <= codeUnit && codeUnit <= 90)
- containsUpperCase = true;
- }
- scheme = C.JSString_methods.substring$2(scheme, start, end);
- return P._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme);
- },
- _Uri__canonicalizeScheme: function(scheme) {
- if (scheme === "http")
- return "http";
- if (scheme === "file")
- return "file";
- if (scheme === "https")
- return "https";
- if (scheme === "package")
- return "package";
- return scheme;
- },
- _Uri__makeUserInfo: function(userInfo, start, end) {
- if (userInfo == null)
- return "";
- return P._Uri__normalizeOrSubstring(userInfo, start, end, C.List_gRj, false);
- },
- _Uri__makePath: function(path, start, end, pathSegments, scheme, hasAuthority) {
- var result,
- isFile = scheme === "file",
- ensureLeadingSlash = isFile || hasAuthority,
- t1 = path == null;
- if (t1 && pathSegments == null)
- return isFile ? "/" : "";
- t1 = !t1;
- if (t1 && pathSegments != null)
- throw H.wrapException(P.ArgumentError$("Both path and pathSegments specified"));
- if (t1)
- result = P._Uri__normalizeOrSubstring(path, start, end, C.List_qg4, true);
- else {
- pathSegments.toString;
- result = new H.MappedListIterable(pathSegments, new P._Uri__makePath_closure(), H._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/");
- }
- if (result.length === 0) {
- if (isFile)
- return "/";
- } else if (ensureLeadingSlash && !C.JSString_methods.startsWith$1(result, "/"))
- result = "/" + result;
- return P._Uri__normalizePath(result, scheme, hasAuthority);
- },
- _Uri__normalizePath: function(path, scheme, hasAuthority) {
- var t1 = scheme.length === 0;
- if (t1 && !hasAuthority && !C.JSString_methods.startsWith$1(path, "/"))
- return P._Uri__normalizeRelativePath(path, !t1 || hasAuthority);
- return P._Uri__removeDotSegments(path);
- },
- _Uri__makeQuery: function(query, start, end, queryParameters) {
- if (query != null)
- return P._Uri__normalizeOrSubstring(query, start, end, C.List_CVk, true);
- return null;
- },
- _Uri__makeFragment: function(fragment, start, end) {
- if (fragment == null)
- return null;
- return P._Uri__normalizeOrSubstring(fragment, start, end, C.List_CVk, true);
- },
- _Uri__normalizeEscape: function(source, index, lowerCase) {
- var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value,
- t1 = index + 2;
- if (t1 >= source.length)
- return "%";
- firstDigit = C.JSString_methods.codeUnitAt$1(source, index + 1);
- secondDigit = C.JSString_methods.codeUnitAt$1(source, t1);
- firstDigitValue = H.hexDigitValue(firstDigit);
- secondDigitValue = H.hexDigitValue(secondDigit);
- if (firstDigitValue < 0 || secondDigitValue < 0)
- return "%";
- value = firstDigitValue * 16 + secondDigitValue;
- if (value < 127 && (C.List_nxB[C.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0)
- return H.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value);
- if (firstDigit >= 97 || secondDigit >= 97)
- return C.JSString_methods.substring$2(source, index, index + 3).toUpperCase();
- return null;
- },
- _Uri__escapeChar: function(char) {
- var t1, codeUnits, flag, encodedBytes, index, byte,
- _s16_ = "0123456789ABCDEF";
- if (char < 128) {
- t1 = new Array(3);
- t1.fixed$length = Array;
- codeUnits = H.setRuntimeTypeInfo(t1, type$.JSArray_int);
- codeUnits[0] = 37;
- codeUnits[1] = C.JSString_methods._codeUnitAt$1(_s16_, char >>> 4);
- codeUnits[2] = C.JSString_methods._codeUnitAt$1(_s16_, char & 15);
- } else {
- if (char > 2047)
- if (char > 65535) {
- flag = 240;
- encodedBytes = 4;
- } else {
- flag = 224;
- encodedBytes = 3;
- }
- else {
- flag = 192;
- encodedBytes = 2;
- }
- t1 = new Array(3 * encodedBytes);
- t1.fixed$length = Array;
- codeUnits = H.setRuntimeTypeInfo(t1, type$.JSArray_int);
- for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) {
- byte = C.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag;
- codeUnits[index] = 37;
- codeUnits[index + 1] = C.JSString_methods._codeUnitAt$1(_s16_, byte >>> 4);
- codeUnits[index + 2] = C.JSString_methods._codeUnitAt$1(_s16_, byte & 15);
- index += 3;
- }
- }
- return P.String_String$fromCharCodes(codeUnits, 0, null);
- },
- _Uri__normalizeOrSubstring: function(component, start, end, charTable, escapeDelimiters) {
- var t1 = P._Uri__normalize(component, start, end, charTable, escapeDelimiters);
- return t1 == null ? C.JSString_methods.substring$2(component, start, end) : t1;
- },
- _Uri__normalize: function(component, start, end, charTable, escapeDelimiters) {
- var t1, index, sectionStart, buffer, char, replacement, sourceLength, t2, tail, _null = null;
- for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) {
- char = C.JSString_methods.codeUnitAt$1(component, index);
- if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0)
- ++index;
- else {
- if (char === 37) {
- replacement = P._Uri__normalizeEscape(component, index, false);
- if (replacement == null) {
- index += 3;
- continue;
- }
- if ("%" === replacement) {
- replacement = "%25";
- sourceLength = 1;
- } else
- sourceLength = 3;
- } else if (t1 && char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0) {
- P._Uri__fail(component, index, "Invalid character");
- sourceLength = _null;
- replacement = sourceLength;
- } else {
- if ((char & 64512) === 55296) {
- t2 = index + 1;
- if (t2 < end) {
- tail = C.JSString_methods.codeUnitAt$1(component, t2);
- if ((tail & 64512) === 56320) {
- char = 65536 | (char & 1023) << 10 | tail & 1023;
- sourceLength = 2;
- } else
- sourceLength = 1;
- } else
- sourceLength = 1;
- } else
- sourceLength = 1;
- replacement = P._Uri__escapeChar(char);
- }
- if (buffer == null)
- buffer = new P.StringBuffer("");
- buffer._contents += C.JSString_methods.substring$2(component, sectionStart, index);
- buffer._contents += H.S(replacement);
- index += sourceLength;
- sectionStart = index;
- }
- }
- if (buffer == null)
- return _null;
- if (sectionStart < end)
- buffer._contents += C.JSString_methods.substring$2(component, sectionStart, end);
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Uri__mayContainDotSegments: function(path) {
- if (C.JSString_methods.startsWith$1(path, "."))
- return true;
- return C.JSString_methods.indexOf$1(path, "/.") !== -1;
- },
- _Uri__removeDotSegments: function(path) {
- var output, t1, t2, appendSlash, _i, segment;
- if (!P._Uri__mayContainDotSegments(path))
- return path;
- output = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
- segment = t1[_i];
- if (J.$eq$(segment, "..")) {
- if (output.length !== 0) {
- output.pop();
- if (output.length === 0)
- output.push("");
- }
- appendSlash = true;
- } else if ("." === segment)
- appendSlash = true;
- else {
- output.push(segment);
- appendSlash = false;
- }
- }
- if (appendSlash)
- output.push("");
- return C.JSArray_methods.join$1(output, "/");
- },
- _Uri__normalizeRelativePath: function(path, allowScheme) {
- var output, t1, t2, appendSlash, _i, segment;
- if (!P._Uri__mayContainDotSegments(path))
- return !allowScheme ? P._Uri__escapeScheme(path) : path;
- output = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
- segment = t1[_i];
- if (".." === segment)
- if (output.length !== 0 && C.JSArray_methods.get$last(output) !== "..") {
- output.pop();
- appendSlash = true;
- } else {
- output.push("..");
- appendSlash = false;
- }
- else if ("." === segment)
- appendSlash = true;
- else {
- output.push(segment);
- appendSlash = false;
- }
- }
- t1 = output.length;
- if (t1 !== 0)
- t1 = t1 === 1 && output[0].length === 0;
- else
- t1 = true;
- if (t1)
- return "./";
- if (appendSlash || C.JSArray_methods.get$last(output) === "..")
- output.push("");
- if (!allowScheme)
- output[0] = P._Uri__escapeScheme(output[0]);
- return C.JSArray_methods.join$1(output, "/");
- },
- _Uri__escapeScheme: function(path) {
- var i, char,
- t1 = path.length;
- if (t1 >= 2 && P._Uri__isAlphabeticCharacter(J._codeUnitAt$1$s(path, 0)))
- for (i = 1; i < t1; ++i) {
- char = C.JSString_methods._codeUnitAt$1(path, i);
- if (char === 58)
- return C.JSString_methods.substring$2(path, 0, i) + "%3A" + C.JSString_methods.substring$1(path, i + 1);
- if (char > 127 || (C.List_JYB[char >>> 4] & 1 << (char & 15)) === 0)
- break;
- }
- return path;
- },
- _Uri__toWindowsFilePath: function(uri) {
- var hasDriveLetter, t2, host,
- segments = uri.get$pathSegments(),
- t1 = segments.length;
- if (t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58) {
- P._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false);
- P._Uri__checkWindowsPathReservedCharacters(segments, false, 1);
- hasDriveLetter = true;
- } else {
- P._Uri__checkWindowsPathReservedCharacters(segments, false, 0);
- hasDriveLetter = false;
- }
- t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "\\" : "";
- if (uri.get$hasAuthority()) {
- host = uri.get$host();
- if (host.length !== 0)
- t2 = t2 + "\\" + host + "\\";
- }
- t2 = P.StringBuffer__writeAll(t2, segments, "\\");
- t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Uri__hexCharPairToByte: function(s, pos) {
- var byte, i, charCode;
- for (byte = 0, i = 0; i < 2; ++i) {
- charCode = C.JSString_methods._codeUnitAt$1(s, pos + i);
- if (48 <= charCode && charCode <= 57)
- byte = byte * 16 + charCode - 48;
- else {
- charCode |= 32;
- if (97 <= charCode && charCode <= 102)
- byte = byte * 16 + charCode - 87;
- else
- throw H.wrapException(P.ArgumentError$("Invalid URL encoding"));
- }
- }
- return byte;
- },
- _Uri__uriDecode: function(text, start, end, encoding, plusToSpace) {
- var simple, codeUnit, t2, bytes,
- t1 = J.getInterceptor$s(text),
- i = start;
- while (true) {
- if (!(i < end)) {
- simple = true;
- break;
- }
- codeUnit = t1._codeUnitAt$1(text, i);
- if (codeUnit <= 127)
- if (codeUnit !== 37)
- t2 = false;
- else
- t2 = true;
- else
- t2 = true;
- if (t2) {
- simple = false;
- break;
- }
- ++i;
- }
- if (simple) {
- if (C.C_Utf8Codec !== encoding)
- t2 = false;
- else
- t2 = true;
- if (t2)
- return t1.substring$2(text, start, end);
- else
- bytes = new H.CodeUnits(t1.substring$2(text, start, end));
- } else {
- bytes = H.setRuntimeTypeInfo([], type$.JSArray_int);
- for (i = start; i < end; ++i) {
- codeUnit = t1._codeUnitAt$1(text, i);
- if (codeUnit > 127)
- throw H.wrapException(P.ArgumentError$("Illegal percent encoding in URI"));
- if (codeUnit === 37) {
- if (i + 3 > text.length)
- throw H.wrapException(P.ArgumentError$("Truncated URI"));
- bytes.push(P._Uri__hexCharPairToByte(text, i + 1));
- i += 2;
- } else
- bytes.push(codeUnit);
- }
- }
- return new P.Utf8Decoder(false).convert$1(bytes);
- },
- _Uri__isAlphabeticCharacter: function(codeUnit) {
- var lowerCase = codeUnit | 32;
- return 97 <= lowerCase && lowerCase <= 122;
- },
- UriData__writeUri: function(mimeType, charsetName, parameters, buffer, indices) {
- var t1, slashIndex;
- if (mimeType == null || mimeType === "text/plain")
- mimeType = "";
- if (mimeType.length === 0 || mimeType === "application/octet-stream")
- t1 = buffer._contents += mimeType;
- else {
- slashIndex = P.UriData__validateMimeType(mimeType);
- if (slashIndex < 0)
- throw H.wrapException(P.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type"));
- t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$2(mimeType, 0, slashIndex), C.C_Utf8Codec, false));
- buffer._contents = t1 + "/";
- t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$1(mimeType, slashIndex + 1), C.C_Utf8Codec, false));
- }
- if (charsetName != null) {
- indices.push(t1.length);
- indices.push(buffer._contents.length + 8);
- buffer._contents += ";charset=";
- buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, charsetName, C.C_Utf8Codec, false));
- }
- },
- UriData__validateMimeType: function(mimeType) {
- var t1, slashIndex, i;
- for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) {
- if (C.JSString_methods._codeUnitAt$1(mimeType, i) !== 47)
- continue;
- if (slashIndex < 0) {
- slashIndex = i;
- continue;
- }
- return -1;
- }
- return slashIndex;
- },
- UriData__parse: function(text, start, sourceUri) {
- var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data,
- _s17_ = "Invalid MIME type",
- indices = H.setRuntimeTypeInfo([start - 1], type$.JSArray_int);
- for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) {
- char = C.JSString_methods._codeUnitAt$1(text, i);
- if (char === 44 || char === 59)
- break;
- if (char === 47) {
- if (slashIndex < 0) {
- slashIndex = i;
- continue;
- }
- throw H.wrapException(P.FormatException$(_s17_, text, i));
- }
- }
- if (slashIndex < 0 && i > start)
- throw H.wrapException(P.FormatException$(_s17_, text, i));
- for (; char !== 44;) {
- indices.push(i);
- ++i;
- for (equalsIndex = -1; i < t1; ++i) {
- char = C.JSString_methods._codeUnitAt$1(text, i);
- if (char === 61) {
- if (equalsIndex < 0)
- equalsIndex = i;
- } else if (char === 59 || char === 44)
- break;
- }
- if (equalsIndex >= 0)
- indices.push(equalsIndex);
- else {
- lastSeparator = C.JSArray_methods.get$last(indices);
- if (char !== 44 || i !== lastSeparator + 7 || !C.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1))
- throw H.wrapException(P.FormatException$("Expecting '='", text, i));
- break;
- }
- }
- indices.push(i);
- t2 = i + 1;
- if ((indices.length & 1) === 1)
- text = C.C_Base64Codec.normalize$3(text, t2, t1);
- else {
- data = P._Uri__normalize(text, t2, t1, C.List_CVk, true);
- if (data != null)
- text = C.JSString_methods.replaceRange$3(text, t2, t1, data);
- }
- return new P.UriData(text, indices, sourceUri);
- },
- UriData__uriEncodeBytes: function(canonicalTable, bytes, buffer) {
- var t1, byteOr, i, byte,
- _s16_ = "0123456789ABCDEF";
- for (t1 = J.getInterceptor$asx(bytes), byteOr = 0, i = 0; i < t1.get$length(bytes); ++i) {
- byte = t1.$index(bytes, i);
- byteOr |= byte;
- if (byte < 128 && (canonicalTable[C.JSInt_methods._shrOtherPositive$1(byte, 4)] & 1 << (byte & 15)) !== 0)
- buffer._contents += H.Primitives_stringFromCharCode(byte);
- else {
- buffer._contents += H.Primitives_stringFromCharCode(37);
- buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, C.JSInt_methods._shrOtherPositive$1(byte, 4)));
- buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, byte & 15));
- }
- }
- if ((byteOr & 4294967040) >>> 0 !== 0)
- for (i = 0; i < t1.get$length(bytes); ++i) {
- byte = t1.$index(bytes, i);
- if (byte < 0 || byte > 255)
- throw H.wrapException(P.ArgumentError$value(byte, "non-byte value", null));
- }
- },
- _createTables: function() {
- var _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",
- _s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "?", _s1_3 = "#",
- tables = P.List_List$generate(22, new P._createTables_closure(), true, type$.Uint8List),
- t1 = new P._createTables_build(tables),
- t2 = new P._createTables_setChars(),
- t3 = new P._createTables_setRange(),
- b = t1.call$2(0, 225);
- t2.call$3(b, _s77_, 1);
- t2.call$3(b, _s1_, 14);
- t2.call$3(b, _s1_0, 34);
- t2.call$3(b, _s1_1, 3);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(14, 225);
- t2.call$3(b, _s77_, 1);
- t2.call$3(b, _s1_, 15);
- t2.call$3(b, _s1_0, 34);
- t2.call$3(b, _s1_1, 234);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(15, 225);
- t2.call$3(b, _s77_, 1);
- t2.call$3(b, "%", 225);
- t2.call$3(b, _s1_0, 34);
- t2.call$3(b, _s1_1, 9);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(1, 225);
- t2.call$3(b, _s77_, 1);
- t2.call$3(b, _s1_0, 34);
- t2.call$3(b, _s1_1, 10);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(2, 235);
- t2.call$3(b, _s77_, 139);
- t2.call$3(b, _s1_1, 131);
- t2.call$3(b, _s1_, 146);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(3, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_1, 68);
- t2.call$3(b, _s1_, 18);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(4, 229);
- t2.call$3(b, _s77_, 5);
- t3.call$3(b, "AZ", 229);
- t2.call$3(b, _s1_0, 102);
- t2.call$3(b, "@", 68);
- t2.call$3(b, "[", 232);
- t2.call$3(b, _s1_1, 138);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(5, 229);
- t2.call$3(b, _s77_, 5);
- t3.call$3(b, "AZ", 229);
- t2.call$3(b, _s1_0, 102);
- t2.call$3(b, "@", 68);
- t2.call$3(b, _s1_1, 138);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(6, 231);
- t3.call$3(b, "19", 7);
- t2.call$3(b, "@", 68);
- t2.call$3(b, _s1_1, 138);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(7, 231);
- t3.call$3(b, "09", 7);
- t2.call$3(b, "@", 68);
- t2.call$3(b, _s1_1, 138);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- t2.call$3(t1.call$2(8, 8), "]", 5);
- b = t1.call$2(9, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_, 16);
- t2.call$3(b, _s1_1, 234);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(16, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_, 17);
- t2.call$3(b, _s1_1, 234);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(17, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_1, 9);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(10, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_, 18);
- t2.call$3(b, _s1_1, 234);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(18, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_, 19);
- t2.call$3(b, _s1_1, 234);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(19, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_1, 234);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(11, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_1, 10);
- t2.call$3(b, _s1_2, 172);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(12, 236);
- t2.call$3(b, _s77_, 12);
- t2.call$3(b, _s1_2, 12);
- t2.call$3(b, _s1_3, 205);
- b = t1.call$2(13, 237);
- t2.call$3(b, _s77_, 13);
- t2.call$3(b, _s1_2, 13);
- t3.call$3(t1.call$2(20, 245), "az", 21);
- b = t1.call$2(21, 245);
- t3.call$3(b, "az", 21);
- t3.call$3(b, "09", 21);
- t2.call$3(b, "+-.", 21);
- return tables;
- },
- _scan: function(uri, start, end, state, indices) {
- var t1, i, table, char, transition,
- tables = $.$get$_scannerTables();
- for (t1 = J.getInterceptor$s(uri), i = start; i < end; ++i) {
- table = tables[state];
- char = t1._codeUnitAt$1(uri, i) ^ 96;
- transition = table[char > 95 ? 31 : char];
- state = transition & 31;
- indices[transition >>> 5] = i;
- }
- return state;
- },
- NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) {
- this._box_0 = t0;
- this.sb = t1;
- },
- bool: function bool() {
- },
- DateTime: function DateTime(t0, t1) {
- this._core$_value = t0;
- this.isUtc = t1;
- },
- double: function double() {
- },
- Duration: function Duration(t0) {
- this._duration = t0;
- },
- Duration_toString_sixDigits: function Duration_toString_sixDigits() {
- },
- Duration_toString_twoDigits: function Duration_toString_twoDigits() {
- },
- Error: function Error() {
- },
- AssertionError: function AssertionError(t0) {
- this.message = t0;
- },
- NullThrownError: function NullThrownError() {
- },
- ArgumentError: function ArgumentError(t0, t1, t2, t3) {
- var _ = this;
- _._hasValue = t0;
- _.invalidValue = t1;
- _.name = t2;
- _.message = t3;
- },
- RangeError: function RangeError(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.start = t0;
- _.end = t1;
- _._hasValue = t2;
- _.invalidValue = t3;
- _.name = t4;
- _.message = t5;
- },
- IndexError: function IndexError(t0, t1, t2, t3, t4) {
- var _ = this;
- _.length = t0;
- _._hasValue = t1;
- _.invalidValue = t2;
- _.name = t3;
- _.message = t4;
- },
- NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) {
- var _ = this;
- _._core$_receiver = t0;
- _._memberName = t1;
- _._core$_arguments = t2;
- _._namedArguments = t3;
- },
- UnsupportedError: function UnsupportedError(t0) {
- this.message = t0;
- },
- UnimplementedError: function UnimplementedError(t0) {
- this.message = t0;
- },
- StateError: function StateError(t0) {
- this.message = t0;
- },
- ConcurrentModificationError: function ConcurrentModificationError(t0) {
- this.modifiedObject = t0;
- },
- OutOfMemoryError: function OutOfMemoryError() {
- },
- StackOverflowError: function StackOverflowError() {
- },
- CyclicInitializationError: function CyclicInitializationError(t0) {
- this.variableName = t0;
- },
- _Exception: function _Exception(t0) {
- this.message = t0;
- },
- FormatException: function FormatException(t0, t1, t2) {
- this.message = t0;
- this.source = t1;
- this.offset = t2;
- },
- Function: function Function() {
- },
- int: function int() {
- },
- Iterable: function Iterable() {
- },
- _GeneratorIterable: function _GeneratorIterable(t0, t1, t2) {
- this.length = t0;
- this._generator = t1;
- this.$ti = t2;
- },
- Iterator: function Iterator() {
- },
- List: function List() {
- },
- Map: function Map() {
- },
- MapEntry: function MapEntry(t0, t1, t2) {
- this.key = t0;
- this.value = t1;
- this.$ti = t2;
- },
- Null: function Null() {
- },
- num: function num() {
- },
- Object: function Object() {
- },
- Match: function Match() {
- },
- RegExpMatch: function RegExpMatch() {
- },
- Set: function Set() {
- },
- StackTrace: function StackTrace() {
- },
- _StringStackTrace: function _StringStackTrace(t0) {
- this._stackTrace = t0;
- },
- String: function String() {
- },
- Runes: function Runes(t0) {
- this.string = t0;
- },
- RuneIterator: function RuneIterator(t0) {
- var _ = this;
- _.string = t0;
- _._nextPosition = _._position = 0;
- _._currentCodePoint = -1;
- },
- StringBuffer: function StringBuffer(t0) {
- this._contents = t0;
- },
- StringSink: function StringSink() {
- },
- Symbol0: function Symbol0() {
- },
- Uri: function Uri() {
- },
- Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) {
- this.host = t0;
- },
- Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) {
- this.host = t0;
- },
- Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) {
- this.error = t0;
- this.host = t1;
- },
- _Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.scheme = t0;
- _._userInfo = t1;
- _._host = t2;
- _._port = t3;
- _.path = t4;
- _._query = t5;
- _._fragment = t6;
- _._hashCodeCache = _._text = _._pathSegments = null;
- },
- _Uri__Uri$notSimple_closure: function _Uri__Uri$notSimple_closure(t0, t1) {
- this.uri = t0;
- this.portStart = t1;
- },
- _Uri__checkNonWindowsPathReservedCharacters_closure: function _Uri__checkNonWindowsPathReservedCharacters_closure(t0) {
- this.argumentError = t0;
- },
- _Uri__makePath_closure: function _Uri__makePath_closure() {
- },
- UriData: function UriData(t0, t1, t2) {
- this._text = t0;
- this._separatorIndices = t1;
- this._uriCache = t2;
- },
- _createTables_closure: function _createTables_closure() {
- },
- _createTables_build: function _createTables_build(t0) {
- this.tables = t0;
- },
- _createTables_setChars: function _createTables_setChars() {
- },
- _createTables_setRange: function _createTables_setRange() {
- },
- _SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _._uri = t0;
- _._schemeEnd = t1;
- _._hostStart = t2;
- _._portStart = t3;
- _._pathStart = t4;
- _._queryStart = t5;
- _._fragmentStart = t6;
- _._schemeCache = t7;
- _._hashCodeCache = null;
- },
- _DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.scheme = t0;
- _._userInfo = t1;
- _._host = t2;
- _._port = t3;
- _.path = t4;
- _._query = t5;
- _._fragment = t6;
- _._hashCodeCache = _._text = _._pathSegments = null;
- },
- max: function(a, b) {
- return Math.max(H.checkNum(a), H.checkNum(b));
- },
- pow: function(x, exponent) {
- H.checkNum(x);
- H.checkNum(exponent);
- return Math.pow(x, exponent);
- },
- Random_Random: function() {
- return C.C__JSRandom;
- },
- _JSRandom: function _JSRandom() {
- },
- Uint8List: function Uint8List() {
- },
- _convertDartFunctionFast: function(f) {
- var ret,
- existing = f.$dart_jsFunction;
- if (existing != null)
- return existing;
- ret = function(_call, f) {
- return function() {
- return _call(f, Array.prototype.slice.apply(arguments));
- };
- }(P._callDartFunctionFast, f);
- ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
- f.$dart_jsFunction = ret;
- return ret;
- },
- _convertDartFunctionFastCaptureThis: function(f) {
- var ret,
- existing = f._$dart_jsFunctionCaptureThis;
- if (existing != null)
- return existing;
- ret = function(_call, f) {
- return function() {
- return _call(f, this, Array.prototype.slice.apply(arguments));
- };
- }(P._callDartFunctionFastCaptureThis, f);
- ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
- f._$dart_jsFunctionCaptureThis = ret;
- return ret;
- },
- _callDartFunctionFast: function(callback, $arguments) {
- return P.Function_apply(callback, $arguments);
- },
- _callDartFunctionFastCaptureThis: function(callback, $self, $arguments) {
- var t1 = [$self];
- C.JSArray_methods.addAll$1(t1, $arguments);
- return P.Function_apply(callback, t1);
- },
- allowInterop: function(f) {
- if (typeof f == "function")
- return f;
- else
- return P._convertDartFunctionFast(f);
- },
- allowInteropCaptureThis: function(f) {
- if (typeof f == "function")
- throw H.wrapException(P.ArgumentError$("Function is already a JS function so cannot capture this."));
- else
- return P._convertDartFunctionFastCaptureThis(f);
- },
- callConstructor: function(constr, $arguments) {
- var args, factoryFunction;
- if ($arguments instanceof Array)
- switch ($arguments.length) {
- case 0:
- return new constr();
- case 1:
- return new constr($arguments[0]);
- case 2:
- return new constr($arguments[0], $arguments[1]);
- case 3:
- return new constr($arguments[0], $arguments[1], $arguments[2]);
- case 4:
- return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
- }
- args = [null];
- C.JSArray_methods.addAll$1(args, $arguments);
- factoryFunction = constr.bind.apply(constr, args);
- String(factoryFunction);
- return new factoryFunction();
- }
- },
- N = {ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._arg_parser$_options = t0;
- _.options = t1;
- _.commands = t2;
- _._optionsAndSeparators = t3;
- _.allowTrailingOptions = t4;
- _.usageLineLength = t5;
- }, ArgParser_findByAbbreviation_closure: function ArgParser_findByAbbreviation_closure(t0) {
- this.abbr = t0;
- }, ArgParser_findByAbbreviation_closure0: function ArgParser_findByAbbreviation_closure0() {
- }, SupportsCondition: function SupportsCondition() {
- }, AttributeSelector: function AttributeSelector(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.op = t1;
- _.value = t2;
- _.modifier = t3;
- }, AttributeOperator: function AttributeOperator(t0) {
- this._attribute$_text = t0;
- }, IDSelector: function IDSelector(t0) {
- this.name = t0;
- }, IDSelector_unify_closure: function IDSelector_unify_closure(t0) {
- this.$this = t0;
- }, PlaceholderSelector: function PlaceholderSelector(t0) {
- this.name = t0;
- }, UniversalSelector: function UniversalSelector(t0) {
- this.namespace = t0;
- }, NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) {
- this._no_source_map_buffer0$_buffer = t0;
- },
- serialize: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
- var t1, css, t2, prefix, t3,
- visitor = N._SerializeVisitor$0(2, inspect, lineFeed, true, sourceMap, style, true);
- node.accept$1(visitor);
- t1 = visitor._serialize$_buffer;
- css = t1.toString$0(0);
- if (charset) {
- t2 = new H.CodeUnits(css);
- t2 = t2.any$1(t2, new N.serialize_closure());
- } else
- t2 = false;
- if (t2)
- prefix = style === C.OutputStyle_compressed ? "\ufeff" : '@charset "UTF-8";\n';
- else
- prefix = "";
- t2 = prefix + css;
- t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
- if (sourceMap)
- t1.get$sourceFiles();
- return new N.SerializeResult(t2, t3);
- },
- serializeValue0: function(value, inspect, quote) {
- var visitor = N._SerializeVisitor$0(null, inspect, null, quote, false, null, true);
- value.accept$1(visitor);
- return visitor._serialize$_buffer.toString$0(0);
- },
- _SerializeVisitor$0: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
- var t1 = sourceMap ? new D.SourceMapBuffer0(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.SourceFile)) : new N.NoSourceMapBuffer0(new P.StringBuffer("")),
- t2 = style == null ? C.OutputStyle_expanded0 : style,
- t3 = indentWidth == null ? 2 : indentWidth;
- P.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth");
- return new N._SerializeVisitor0(t1, t2, inspect, quote, 32, t3, C.C_LineFeed);
- },
- serialize_closure: function serialize_closure() {
- },
- _SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._serialize$_buffer = t0;
- _._indentation = 0;
- _._style = t1;
- _._serialize$_inspect = t2;
- _._quote = t3;
- _._indentCharacter = t4;
- _._indentWidth = t5;
- _._serialize$_lineFeed = t6;
- },
- _SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() {
- },
- _SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) {
- this.$this = t0;
- },
- _SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0, t1) {
- this.$this = t0;
- this.map = t1;
- },
- _SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() {
- },
- _SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.children = t2;
- },
- OutputStyle: function OutputStyle(t0) {
- this._serialize$_name = t0;
- },
- LineFeed: function LineFeed() {
- },
- SerializeResult: function SerializeResult(t0, t1) {
- this.css = t0;
- this.sourceMap = t1;
- },
- warn: function(message, deprecation) {
- var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
- if (warnDefinition == null)
- throw H.wrapException(P.ArgumentError$("warn() may only be called within a custom function or importer callback."));
- warnDefinition.call$2(message, deprecation);
- },
- withWarnCallback: function(warn, callback, $T) {
- var t1 = type$.dynamic;
- return P.runZoned(new N.withWarnCallback_closure(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1));
- },
- withWarnCallback_closure: function withWarnCallback_closure(t0, t1) {
- this.callback = t0;
- this.T = t1;
- },
- UnparsedFrame: function UnparsedFrame(t0, t1) {
- this.uri = t0;
- this.member = t1;
- },
- AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.op = t1;
- _.value = t2;
- _.modifier = t3;
- },
- AttributeOperator0: function AttributeOperator0(t0) {
- this._attribute0$_text = t0;
- },
- IDSelector0: function IDSelector0(t0) {
- this.name = t0;
- },
- IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) {
- this.$this = t0;
- },
- NoSourceMapBuffer: function NoSourceMapBuffer(t0) {
- this._no_source_map_buffer$_buffer = t0;
- },
- PlaceholderSelector0: function PlaceholderSelector0(t0) {
- this.name = t0;
- },
- serialize0: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
- var t1, css, t2, prefix, t3,
- visitor = N._SerializeVisitor$(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, true, sourceMap, style, useSpaces);
- node.accept$1(visitor);
- t1 = visitor._buffer;
- css = t1.toString$0(0);
- t2 = new H.CodeUnits(css);
- t2 = t2.any$1(t2, new N.serialize_closure0());
- if (t2)
- prefix = style === C.OutputStyle_compressed0 ? "\ufeff" : '@charset "UTF-8";\n';
- else
- prefix = "";
- t2 = prefix + css;
- t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
- if (sourceMap)
- t1.get$sourceFiles();
- return new N.SerializeResult0(t2, t3);
- },
- serializeValue: function(value, inspect, quote) {
- var visitor = N._SerializeVisitor$(null, inspect, null, quote, false, null, true);
- value.accept$1(visitor);
- return visitor._buffer.toString$0(0);
- },
- _SerializeVisitor$: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
- var t1 = sourceMap ? new D.SourceMapBuffer(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.SourceFile)) : new N.NoSourceMapBuffer(new P.StringBuffer("")),
- t2 = style == null ? C.OutputStyle_expanded : style,
- t3 = useSpaces ? 32 : 9,
- t4 = indentWidth == null ? 2 : indentWidth,
- t5 = lineFeed == null ? C.LineFeed_D6m : lineFeed;
- P.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth");
- return new N._SerializeVisitor(t1, t2, inspect, quote, t3, t4, t5);
- },
- serialize_closure0: function serialize_closure0() {
- },
- _SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._buffer = t0;
- _._serialize0$_indentation = 0;
- _._serialize0$_style = t1;
- _._inspect = t2;
- _._serialize0$_quote = t3;
- _._serialize0$_indentCharacter = t4;
- _._serialize0$_indentWidth = t5;
- _._lineFeed = t6;
- },
- _SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() {
- },
- _SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) {
- this.$this = t0;
- },
- _SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0, t1) {
- this.$this = t0;
- this.map = t1;
- },
- _SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() {
- },
- _SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.children = t2;
- },
- OutputStyle0: function OutputStyle0(t0) {
- this._name = t0;
- },
- LineFeed0: function LineFeed0(t0, t1) {
- this.name = t0;
- this.text = t1;
- },
- SerializeResult0: function SerializeResult0(t0, t1) {
- this.css = t0;
- this.sourceMap = t1;
- },
- SupportsCondition0: function SupportsCondition0() {
- },
- UniversalSelector0: function UniversalSelector0(t0) {
- this.namespace = t0;
- },
- warn0: function(message, deprecation) {
- var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
- if (warnDefinition == null)
- throw H.wrapException(P.ArgumentError$("warn() may only be called within a custom function or importer callback."));
- warnDefinition.call$2(message, deprecation);
- },
- withWarnCallback0: function(warn, callback, $T) {
- var t1 = type$.dynamic;
- return P.runZoned(new N.withWarnCallback_closure0(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1));
- },
- withWarnCallback_closure0: function withWarnCallback_closure0(t0, t1) {
- this.callback = t0;
- this.T = t1;
- }
- },
- Z = {
- ArgParserException$: function(message, commands) {
- return new Z.ArgParserException(commands == null ? C.List_empty : P.List_List$unmodifiable(commands, type$.String), message, null, null);
- },
- ArgParserException: function ArgParserException(t0, t1, t2, t3) {
- var _ = this;
- _.commands = t0;
- _.message = t1;
- _.source = t2;
- _.offset = t3;
- },
- Argument: function Argument(t0, t1, t2) {
- this.name = t0;
- this.defaultValue = t1;
- this.span = t2;
- },
- ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.expression = t1;
- _.isGuarded = t2;
- _.span = t3;
- },
- BooleanExpression: function BooleanExpression(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- VariableDeclaration$: function($name, expression, span, comment, global, guarded, namespace) {
- if (namespace != null && global)
- H.throwExpression(P.ArgumentError$("Other modules' members can't be defined with !global."));
- return new Z.VariableDeclaration(namespace, $name, expression, guarded, global, span);
- },
- VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.expression = t2;
- _.isGuarded = t3;
- _.isGlobal = t4;
- _.span = t5;
- },
- ConfiguredValue: function ConfiguredValue(t0, t1, t2) {
- this.value = t0;
- this.configurationSpan = t1;
- this.assignmentNode = t2;
- },
- InterpolationBuffer: function InterpolationBuffer(t0, t1) {
- this._interpolation_buffer$_text = t0;
- this._interpolation_buffer$_contents = t1;
- },
- MergedMapView$: function(maps, $K, $V) {
- var t1 = $K._eval$1("@<0>")._bind$1($V);
- t1 = new Z.MergedMapView(P.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView<1,2>"));
- t1.MergedMapView$1(maps, $K, $V);
- return t1;
- },
- MergedMapView: function MergedMapView(t0, t1) {
- this._mapsByKey = t0;
- this.$ti = t1;
- },
- SassBoolean: function SassBoolean(t0) {
- this.value = t0;
- },
- LineScanner: function LineScanner(t0, t1) {
- var _ = this;
- _._line_scanner$_column = _._line_scanner$_line = 0;
- _.sourceUrl = t0;
- _.string = t1;
- _._string_scanner$_position = 0;
- _._lastMatchPosition = _._lastMatch = null;
- },
- Argument0: function Argument0(t0, t1, t2) {
- this.name = t0;
- this.defaultValue = t1;
- this.span = t2;
- },
- BooleanExpression0: function BooleanExpression0(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- closure249: function closure249() {
- },
- _closure34: function _closure34() {
- },
- _closure35: function _closure35() {
- },
- SassBoolean0: function SassBoolean0(t0) {
- this.value = t0;
- },
- ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) {
- this.value = t0;
- this.configurationSpan = t1;
- this.assignmentNode = t2;
- },
- ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.expression = t1;
- _.isGuarded = t2;
- _.span = t3;
- },
- InterpolationBuffer0: function InterpolationBuffer0(t0, t1) {
- this._interpolation_buffer0$_text = t0;
- this._interpolation_buffer0$_contents = t1;
- },
- MergedMapView$0: function(maps, $K, $V) {
- var t1 = $K._eval$1("@<0>")._bind$1($V);
- t1 = new Z.MergedMapView0(P.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView0<1,2>"));
- t1.MergedMapView$10(maps, $K, $V);
- return t1;
- },
- MergedMapView0: function MergedMapView0(t0, t1) {
- this._merged_map_view$_mapsByKey = t0;
- this.$ti = t1;
- },
- RenderContext: function RenderContext() {
- },
- VariableDeclaration$0: function($name, expression, span, comment, global, guarded, namespace) {
- if (namespace != null && global)
- H.throwExpression(P.ArgumentError$("Other modules' members can't be defined with !global."));
- return new Z.VariableDeclaration0(namespace, $name, expression, guarded, global, span);
- },
- VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.expression = t2;
- _.isGuarded = t3;
- _.isGlobal = t4;
- _.span = t5;
- }
- },
- V = {
- ArgResults$_: function(_parser, _parsed, $name, command, rest, $arguments) {
- return new V.ArgResults(_parser, _parsed, $name, new P.UnmodifiableListView(rest, type$.UnmodifiableListView_String));
- },
- ArgResults: function ArgResults(t0, t1, t2, t3) {
- var _ = this;
- _._parser = t0;
- _._parsed = t1;
- _.name = t2;
- _.rest = t3;
- },
- ErrorResult: function ErrorResult(t0, t1) {
- this.error = t0;
- this.stackTrace = t1;
- },
- ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) {
- var _ = this;
- _.span = t0;
- _.children = t1;
- _._children = t2;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- CssStylesheet: function CssStylesheet(t0, t1) {
- this.children = t0;
- this.span = t1;
- },
- AtRootQuery: function AtRootQuery(t0, t1, t2, t3) {
- var _ = this;
- _.include = t0;
- _.names = t1;
- _._all = t2;
- _._at_root_query$_rule = t3;
- },
- BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) {
- var _ = this;
- _.operator = t0;
- _.left = t1;
- _.right = t2;
- _.allowsSlash = t3;
- },
- BinaryOperator: function BinaryOperator(t0, t1, t2) {
- this.name = t0;
- this.operator = t1;
- this.precedence = t2;
- },
- AtRootRule: function AtRootRule(t0, t1, t2, t3) {
- var _ = this;
- _.query = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- EachRule: function EachRule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.variables = t0;
- _.list = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- EachRule_toString_closure: function EachRule_toString_closure() {
- },
- IfRule: function IfRule(t0, t1, t2) {
- this.clauses = t0;
- this.lastClause = t1;
- this.span = t2;
- },
- IfRule_toString_closure: function IfRule_toString_closure(t0) {
- this._box_0 = t0;
- },
- IfClause: function IfClause(t0, t1, t2) {
- this.expression = t0;
- this.children = t1;
- this.hasDeclarations = t2;
- },
- IfClause$__closure: function IfClause$__closure() {
- },
- IfClause$___closure: function IfClause$___closure() {
- },
- Stylesheet$: function(children, span, plainCss) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_UseRule),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ForwardRule),
- t3 = P.List_List$unmodifiable(children, type$.Statement),
- t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure());
- t1 = new V.Stylesheet(span, plainCss, t1, t2, t3, t4);
- t1.Stylesheet$3$plainCss(children, span, plainCss);
- return t1;
- },
- Stylesheet_Stylesheet$parse: function(contents, syntax, logger, url) {
- var t1, t2;
- switch (syntax) {
- case C.Syntax_Sass:
- t1 = S.SpanScanner$(contents, url);
- t2 = logger == null ? C.StderrLogger_false : logger;
- return new U.SassParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2).parse$0();
- case C.Syntax_SCSS:
- t1 = S.SpanScanner$(contents, url);
- t2 = logger == null ? C.StderrLogger_false : logger;
- return new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2).parse$0();
- case C.Syntax_CSS:
- t1 = S.SpanScanner$(contents, url);
- t2 = logger == null ? C.StderrLogger_false : logger;
- return new Q.CssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2).parse$0();
- default:
- throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
- }
- },
- Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.span = t0;
- _.plainCss = t1;
- _._uses = t2;
- _._forwards = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- AtRootQueryParser: function AtRootQueryParser(t0, t1) {
- this.scanner = t0;
- this.logger = t1;
- },
- AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser: function StylesheetParser() {
- },
- StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() {
- },
- StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) {
- this.$this = t0;
- this.production = t1;
- this.T = t2;
- },
- StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) {
- this.declaration = t0;
- },
- StylesheetParser__declarationOrBuffer_closure: function StylesheetParser__declarationOrBuffer_closure(t0) {
- this.name = t0;
- },
- StylesheetParser__declarationOrBuffer_closure0: function StylesheetParser__declarationOrBuffer_closure0(t0, t1) {
- this._box_0 = t0;
- this.name = t1;
- },
- StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.wasInStyleRule = t2;
- },
- StylesheetParser__propertyOrVariableDeclaration_closure: function StylesheetParser__propertyOrVariableDeclaration_closure(t0) {
- this._box_0 = t0;
- },
- StylesheetParser__propertyOrVariableDeclaration_closure0: function StylesheetParser__propertyOrVariableDeclaration_closure0(t0, t1) {
- this._box_0 = t0;
- this.value = t1;
- },
- StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) {
- this.query = t0;
- },
- StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() {
- },
- StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.wasInControlDirective = t1;
- _.variables = t2;
- _.list = t3;
- },
- StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) {
- this.name = t0;
- this.$arguments = t1;
- this.precedingComment = t2;
- },
- StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.wasInControlDirective = t2;
- _.variable = t3;
- _.from = t4;
- _.to = t5;
- },
- StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) {
- this.$this = t0;
- this.variables = t1;
- this.identifiers = t2;
- },
- StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) {
- this._box_0 = t0;
- },
- StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) {
- this.query = t0;
- },
- StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.name = t1;
- _.$arguments = t2;
- _.precedingComment = t3;
- },
- StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.name = t2;
- _.value = t3;
- },
- StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) {
- this.condition = t0;
- },
- StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) {
- this.$this = t0;
- this.wasInControlDirective = t1;
- this.condition = t2;
- },
- StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) {
- this._box_0 = t0;
- this.name = t1;
- },
- StylesheetParser_expression_resetState: function StylesheetParser_expression_resetState(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.start = t2;
- },
- StylesheetParser_expression_resolveOneOperation: function StylesheetParser_expression_resolveOneOperation(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser_expression_resolveOperations: function StylesheetParser_expression_resolveOperations(t0, t1) {
- this._box_0 = t0;
- this.resolveOneOperation = t1;
- },
- StylesheetParser_expression_addSingleExpression: function StylesheetParser_expression_addSingleExpression(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.resetState = t2;
- _.resolveOperations = t3;
- },
- StylesheetParser_expression_addOperator: function StylesheetParser_expression_addOperator(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.resolveOneOperation = t2;
- },
- StylesheetParser_expression_resolveSpaceExpressions: function StylesheetParser_expression_resolveSpaceExpressions(t0, t1) {
- this._box_0 = t0;
- this.resolveOperations = t1;
- },
- StylesheetParser__expressionUntilComma_closure: function StylesheetParser__expressionUntilComma_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() {
- },
- StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() {
- },
- StylesheetParser_identifierLike_closure: function StylesheetParser_identifierLike_closure(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- cloneCssStylesheet: function(stylesheet, extender) {
- var result = extender.clone$0(),
- t1 = stylesheet.get$span(),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return new S.Tuple2(new V._CloneCssVisitor(result.item2)._visitChildren$2(new V.ModifiableCssStylesheet(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2), stylesheet), result.item1, type$.Tuple2_ModifiableCssStylesheet_Extender);
- },
- _CloneCssVisitor: function _CloneCssVisitor(t0) {
- this._oldToNewSelectors = t0;
- },
- SourceLocation$: function(offset, column, line, sourceUrl) {
- var t1 = line == null,
- t2 = t1 ? 0 : line;
- if (offset < 0)
- H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
- else if (!t1 && line < 0)
- H.throwExpression(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
- else if (column < 0)
- H.throwExpression(P.RangeError$("Column may not be negative, was " + column + "."));
- return new V.SourceLocation(sourceUrl, offset, t2, column);
- },
- SourceLocation: function SourceLocation(t0, t1, t2, t3) {
- var _ = this;
- _.sourceUrl = t0;
- _.offset = t1;
- _.line = t2;
- _.column = t3;
- },
- SourceSpan: function SourceSpan() {
- },
- SourceSpanBase: function SourceSpanBase() {
- },
- AtRootQueryParser0: function AtRootQueryParser0(t0, t1) {
- this.scanner = t0;
- this.logger = t1;
- },
- AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) {
- this.$this = t0;
- },
- AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) {
- var _ = this;
- _.include = t0;
- _.names = t1;
- _._at_root_query0$_all = t2;
- _._at_root_query0$_rule = t3;
- },
- AtRootRule0: function AtRootRule0(t0, t1, t2, t3) {
- var _ = this;
- _.query = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) {
- var _ = this;
- _.operator = t0;
- _.left = t1;
- _.right = t2;
- _.allowsSlash = t3;
- },
- BinaryOperator0: function BinaryOperator0(t0, t1, t2) {
- this.name = t0;
- this.operator = t1;
- this.precedence = t2;
- },
- cloneCssStylesheet0: function(stylesheet, extender) {
- var result = extender.clone$0(),
- t1 = stylesheet.get$span(),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return new S.Tuple2(new V._CloneCssVisitor0(result.item2)._clone_css$_visitChildren$2(new V.ModifiableCssStylesheet0(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2), stylesheet), result.item1, type$.Tuple2_ModifiableCssStylesheet_Extender_2);
- },
- _CloneCssVisitor0: function _CloneCssVisitor0(t0) {
- this._clone_css$_oldToNewSelectors = t0;
- },
- EachRule0: function EachRule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.variables = t0;
- _.list = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- EachRule_toString_closure0: function EachRule_toString_closure0() {
- },
- JSError: function JSError() {
- },
- IfRule0: function IfRule0(t0, t1, t2) {
- this.clauses = t0;
- this.lastClause = t1;
- this.span = t2;
- },
- IfRule_toString_closure0: function IfRule_toString_closure0(t0) {
- this._box_0 = t0;
- },
- IfClause0: function IfClause0(t0, t1, t2) {
- this.expression = t0;
- this.children = t1;
- this.hasDeclarations = t2;
- },
- IfClause$__closure0: function IfClause$__closure0() {
- },
- IfClause$___closure0: function IfClause$___closure0() {
- },
- CssStylesheet0: function CssStylesheet0(t0, t1) {
- this.children = t0;
- this.span = t1;
- },
- ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) {
- var _ = this;
- _.span = t0;
- _.children = t1;
- _._node2$_children = t2;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- StylesheetParser0: function StylesheetParser0() {
- },
- StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) {
- this.$this = t0;
- },
- StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() {
- },
- StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) {
- this.$this = t0;
- this.production = t1;
- this.T = t2;
- },
- StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) {
- this.declaration = t0;
- },
- StylesheetParser__declarationOrBuffer_closure1: function StylesheetParser__declarationOrBuffer_closure1(t0) {
- this.name = t0;
- },
- StylesheetParser__declarationOrBuffer_closure2: function StylesheetParser__declarationOrBuffer_closure2(t0, t1) {
- this._box_0 = t0;
- this.name = t1;
- },
- StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.wasInStyleRule = t2;
- },
- StylesheetParser__propertyOrVariableDeclaration_closure1: function StylesheetParser__propertyOrVariableDeclaration_closure1(t0) {
- this._box_0 = t0;
- },
- StylesheetParser__propertyOrVariableDeclaration_closure2: function StylesheetParser__propertyOrVariableDeclaration_closure2(t0, t1) {
- this._box_0 = t0;
- this.value = t1;
- },
- StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) {
- this.query = t0;
- },
- StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() {
- },
- StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.wasInControlDirective = t1;
- _.variables = t2;
- _.list = t3;
- },
- StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) {
- this.name = t0;
- this.$arguments = t1;
- this.precedingComment = t2;
- },
- StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.wasInControlDirective = t2;
- _.variable = t3;
- _.from = t4;
- _.to = t5;
- },
- StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) {
- this.$this = t0;
- this.variables = t1;
- this.identifiers = t2;
- },
- StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) {
- this._box_0 = t0;
- },
- StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) {
- this.query = t0;
- },
- StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.name = t1;
- _.$arguments = t2;
- _.precedingComment = t3;
- },
- StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.name = t2;
- _.value = t3;
- },
- StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) {
- this.condition = t0;
- },
- StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) {
- this.$this = t0;
- this.wasInControlDirective = t1;
- this.condition = t2;
- },
- StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) {
- this._box_0 = t0;
- this.name = t1;
- },
- StylesheetParser_expression_resetState0: function StylesheetParser_expression_resetState0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.start = t2;
- },
- StylesheetParser_expression_resolveOneOperation0: function StylesheetParser_expression_resolveOneOperation0(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser_expression_resolveOperations0: function StylesheetParser_expression_resolveOperations0(t0, t1) {
- this._box_0 = t0;
- this.resolveOneOperation = t1;
- },
- StylesheetParser_expression_addSingleExpression0: function StylesheetParser_expression_addSingleExpression0(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.resetState = t2;
- _.resolveOperations = t3;
- },
- StylesheetParser_expression_addOperator0: function StylesheetParser_expression_addOperator0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.resolveOneOperation = t2;
- },
- StylesheetParser_expression_resolveSpaceExpressions0: function StylesheetParser_expression_resolveSpaceExpressions0(t0, t1) {
- this._box_0 = t0;
- this.resolveOperations = t1;
- },
- StylesheetParser__expressionUntilComma_closure0: function StylesheetParser__expressionUntilComma_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() {
- },
- StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() {
- },
- StylesheetParser_identifierLike_closure0: function StylesheetParser_identifierLike_closure0(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- Stylesheet$0: function(children, span, plainCss) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_UseRule_2),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ForwardRule_2),
- t3 = P.List_List$unmodifiable(children, type$.Statement_2),
- t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure0());
- t1 = new V.Stylesheet0(span, plainCss, t1, t2, t3, t4);
- t1.Stylesheet$3$plainCss0(children, span, plainCss);
- return t1;
- },
- Stylesheet_Stylesheet$parse0: function(contents, syntax, logger, url) {
- var t1, t2;
- switch (syntax) {
- case C.Syntax_Sass0:
- t1 = S.SpanScanner$(contents, url);
- t2 = logger == null ? C.C_StderrLogger : logger;
- return new U.SassParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2).parse$0();
- case C.Syntax_SCSS0:
- t1 = S.SpanScanner$(contents, url);
- t2 = logger == null ? C.C_StderrLogger : logger;
- return new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2).parse$0();
- case C.Syntax_CSS0:
- t1 = S.SpanScanner$(contents, url);
- t2 = logger == null ? C.C_StderrLogger : logger;
- return new Q.CssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2).parse$0();
- default:
- throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
- }
- },
- Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.span = t0;
- _.plainCss = t1;
- _._stylesheet1$_uses = t2;
- _._stylesheet1$_forwards = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- }
- },
- G = {Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
- var _ = this;
- _.name = t0;
- _.abbr = t1;
- _.help = t2;
- _.valueHelp = t3;
- _.allowed = t4;
- _.allowedHelp = t5;
- _.defaultsTo = t6;
- _.negatable = t7;
- _.callback = t8;
- _.type = t9;
- _.splitCommas = t10;
- _.hide = t11;
- }, OptionType: function OptionType(t0) {
- this.name = t0;
- },
- Parser$0: function(commandName, grammar, args, $parent, rest) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- if (rest != null)
- C.JSArray_methods.addAll$1(t1, rest);
- return new G.Parser0(commandName, $parent, grammar, args, t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
- },
- _isLetterOrDigit: function(codeUnit) {
- var t1;
- if (!(codeUnit >= 65 && codeUnit <= 90))
- if (!(codeUnit >= 97 && codeUnit <= 122))
- t1 = codeUnit >= 48 && codeUnit <= 57;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- Parser0: function Parser0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.commandName = t0;
- _.parent = t1;
- _.grammar = t2;
- _.args = t3;
- _.rest = t4;
- _.results = t5;
- },
- Parser_parse_closure: function Parser_parse_closure(t0) {
- this.$this = t0;
- },
- Parser_setOption_closure: function Parser_setOption_closure() {
- },
- Usage: function Usage(t0, t1) {
- var _ = this;
- _.optionsAndSeparators = t0;
- _.buffer = null;
- _.currentColumn = 0;
- _.columnWidths = null;
- _.newlinesNeeded = _.numHelpLines = 0;
- _.lineLength = t1;
- },
- Usage_generate_closure: function Usage_generate_closure() {
- },
- Usage_buildAllowedList_closure: function Usage_buildAllowedList_closure(t0) {
- this.option = t0;
- },
- StreamQueue: function StreamQueue(t0, t1, t2, t3) {
- var _ = this;
- _._stream_queue$_source = t0;
- _._stream_queue$_subscription = null;
- _._isDone = false;
- _._eventsReceived = 0;
- _._eventQueue = t1;
- _._requestQueue = t2;
- _.$ti = t3;
- },
- StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) {
- this.$this = t0;
- },
- StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) {
- this.$this = t0;
- },
- StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) {
- this.$this = t0;
- },
- _EventRequest: function _EventRequest() {
- },
- _NextRequest: function _NextRequest(t0, t1) {
- this._completer = t0;
- this.$ti = t1;
- },
- ModifiableCssMediaRule$: function(queries, span) {
- var t1 = P.List_List$unmodifiable(queries, type$.CssMediaQuery),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- if (J.get$isEmpty$asx(queries))
- H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
- return new G.ModifiableCssMediaRule(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
- },
- ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) {
- var _ = this;
- _.queries = t0;
- _.span = t1;
- _.children = t2;
- _._children = t3;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- MediaRule: function MediaRule(t0, t1, t2, t3) {
- var _ = this;
- _.query = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- WhileRule: function WhileRule(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- Module: function Module() {
- },
- Parser_isIdentifier: function(text) {
- var exception, logger = null;
- try {
- G.Parser$(text, logger, null)._parseIdentifier$0();
- return true;
- } catch (exception) {
- if (H.unwrapException(exception) instanceof E.SassFormatException)
- return false;
- else
- throw exception;
- }
- },
- Parser$: function(contents, logger, url) {
- var t1 = S.SpanScanner$(contents, url);
- return new G.Parser(t1, logger == null ? C.StderrLogger_false : logger);
- },
- Parser: function Parser(t0, t1) {
- this.scanner = t0;
- this.logger = t1;
- },
- Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) {
- this.$this = t0;
- },
- Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) {
- this.caseSensitive = t0;
- this.char = t1;
- },
- FixedLengthListBuilder: function FixedLengthListBuilder(t0, t1) {
- this._list = t0;
- this._fixed_length_list_builder$_index = 0;
- this.$ti = t1;
- },
- SourceSpanFormatException$: function(message, span, source) {
- return new G.SourceSpanFormatException(source, message, span);
- },
- SourceSpanException: function SourceSpanException() {
- },
- SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) {
- this.source = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- FixedLengthListBuilder0: function FixedLengthListBuilder0(t0, t1) {
- this._fixed_length_list_builder0$_list = t0;
- this._fixed_length_list_builder0$_index = 0;
- this.$ti = t1;
- },
- ModifiableCssMediaRule$0: function(queries, span) {
- var t1 = P.List_List$unmodifiable(queries, type$.CssMediaQuery_2),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- if (J.get$isEmpty$asx(queries))
- H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
- return new G.ModifiableCssMediaRule0(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
- },
- ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) {
- var _ = this;
- _.queries = t0;
- _.span = t1;
- _.children = t2;
- _._node2$_children = t3;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- MediaRule0: function MediaRule0(t0, t1, t2, t3) {
- var _ = this;
- _.query = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- Module0: function Module0() {
- },
- Parser_isIdentifier0: function(text) {
- var exception, logger = null;
- try {
- G.Parser$1(text, logger, null)._parser$_parseIdentifier$0();
- return true;
- } catch (exception) {
- if (H.unwrapException(exception) instanceof E.SassFormatException0)
- return false;
- else
- throw exception;
- }
- },
- Parser$1: function(contents, logger, url) {
- var t1 = S.SpanScanner$(contents, url);
- return new G.Parser1(t1, logger == null ? C.C_StderrLogger : logger);
- },
- Parser1: function Parser1(t0, t1) {
- this.scanner = t0;
- this.logger = t1;
- },
- Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) {
- this.$this = t0;
- },
- Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) {
- this.caseSensitive = t0;
- this.char = t1;
- },
- Types: function Types() {
- },
- WhileRule0: function WhileRule0(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- }
- },
- E = {Result: function Result() {
- }, PosixStyle: function PosixStyle(t0, t1, t2) {
- this.separatorPattern = t0;
- this.needsSeparatorPattern = t1;
- this.rootPattern = t2;
- }, UserDefinedCallable: function UserDefinedCallable(t0, t1, t2) {
- this.declaration = t0;
- this.environment = t1;
- this.$ti = t2;
- },
- SassException$: function(message, span) {
- return new E.SassException(message, span);
- },
- MultiSpanSassException$: function(message, span, primaryLabel, secondarySpans) {
- return new E.MultiSpanSassException(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
- },
- SassRuntimeException$: function(message, span, trace) {
- return new E.SassRuntimeException(trace, message, span);
- },
- MultiSpanSassRuntimeException$: function(message, span, primaryLabel, secondarySpans, trace) {
- return new E.MultiSpanSassRuntimeException(trace, primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
- },
- SassFormatException$: function(message, span) {
- return new E.SassFormatException(message, span);
- },
- SassScriptException$: function(message) {
- return new E.SassScriptException(message);
- },
- MultiSpanSassScriptException$: function(message, primaryLabel, secondarySpans) {
- return new E.MultiSpanSassScriptException(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message);
- },
- SassException: function SassException(t0, t1) {
- this._span_exception$_message = t0;
- this._span = t1;
- },
- MultiSpanSassException: function MultiSpanSassException(t0, t1, t2, t3) {
- var _ = this;
- _.primaryLabel = t0;
- _.secondarySpans = t1;
- _._span_exception$_message = t2;
- _._span = t3;
- },
- SassRuntimeException: function SassRuntimeException(t0, t1, t2) {
- this.trace = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- MultiSpanSassRuntimeException: function MultiSpanSassRuntimeException(t0, t1, t2, t3, t4) {
- var _ = this;
- _.trace = t0;
- _.primaryLabel = t1;
- _.secondarySpans = t2;
- _._span_exception$_message = t3;
- _._span = t4;
- },
- SassFormatException: function SassFormatException(t0, t1) {
- this._span_exception$_message = t0;
- this._span = t1;
- },
- SassScriptException: function SassScriptException(t0) {
- this.message = t0;
- },
- MultiSpanSassScriptException: function MultiSpanSassScriptException(t0, t1, t2) {
- this.primaryLabel = t0;
- this.secondarySpans = t1;
- this.message = t2;
- },
- ImporterResult: function ImporterResult(t0, t1, t2) {
- this.contents = t0;
- this._sourceMapUrl = t1;
- this.syntax = t2;
- },
- KeyframeSelectorParser: function KeyframeSelectorParser(t0, t1) {
- this.scanner = t0;
- this.logger = t1;
- },
- KeyframeSelectorParser_parse_closure: function KeyframeSelectorParser_parse_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor$0: function(functions, importCache, logger, nodeImporter, sourceMap) {
- var t1 = type$.String,
- t2 = type$.Uri,
- t3 = type$.Module_AsyncCallable,
- t4 = type$.AstNode,
- t5 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_String_AstNode),
- t6 = logger == null ? C.StderrLogger_false : logger;
- t5 = new E._EvaluateVisitor0(importCache, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.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);
- t5._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap0(functions, importCache, logger, nodeImporter, sourceMap);
- return t5;
- },
- _ArgumentResults$0: function(positional, named, separator, namedNodes, positionalNodes) {
- return new E._ArgumentResults0(positional, positionalNodes, named, namedNodes, separator);
- },
- _EvaluateVisitor0: function _EvaluateVisitor0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
- var _ = this;
- _._async_evaluate$_importCache = t0;
- _._async_evaluate$_nodeImporter = t1;
- _._async_evaluate$_builtInFunctions = t2;
- _._async_evaluate$_builtInModules = t3;
- _._async_evaluate$_modules = t4;
- _._async_evaluate$_moduleNodes = t5;
- _._async_evaluate$_logger = t6;
- _._async_evaluate$_sourceMap = t7;
- _._async_evaluate$_environment = t8;
- _._async_evaluate$_declarationName = _._async_evaluate$_parent = _._async_evaluate$_mediaQueries = _._async_evaluate$_styleRule = null;
- _._async_evaluate$_member = "root stylesheet";
- _._async_evaluate$_importSpan = _._async_evaluate$_callableNode = null;
- _._async_evaluate$_inKeyframes = _._async_evaluate$_atRootExcludingStyleRule = _._async_evaluate$_inUnknownAtRule = _._async_evaluate$_inFunction = false;
- _._async_evaluate$_includedFiles = t9;
- _._async_evaluate$_activeModules = t10;
- _._async_evaluate$_stack = t11;
- _._async_evaluate$_extender = _._async_evaluate$_outOfOrderImports = _._async_evaluate$_endOfImports = _._async_evaluate$_root = _._async_evaluate$_stylesheet = _._async_evaluate$_importer = null;
- _._async_evaluate$_configuration = t12;
- },
- _EvaluateVisitor_closure9: function _EvaluateVisitor_closure9(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure10: function _EvaluateVisitor_closure10(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure11: function _EvaluateVisitor_closure11(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure12: function _EvaluateVisitor_closure12(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure13: function _EvaluateVisitor_closure13(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure14: function _EvaluateVisitor_closure14(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure15: function _EvaluateVisitor_closure15(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure16: function _EvaluateVisitor_closure16(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure8: function _EvaluateVisitor__closure8(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure17: function _EvaluateVisitor_closure17(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure6: function _EvaluateVisitor__closure6() {
- },
- _EvaluateVisitor__closure7: function _EvaluateVisitor__closure7() {
- },
- _EvaluateVisitor_closure18: function _EvaluateVisitor_closure18(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure4: function _EvaluateVisitor__closure4(t0, t1) {
- this.values = t0;
- this.span = t1;
- },
- _EvaluateVisitor__closure5: function _EvaluateVisitor__closure5(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_run_closure0: function _EvaluateVisitor_run_closure0(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.importer = t2;
- },
- _EvaluateVisitor__withWarnCallback_closure0: function _EvaluateVisitor__withWarnCallback_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__loadModule_closure0: function _EvaluateVisitor__loadModule_closure0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.nodeWithSpan = t2;
- _.baseUrl = t3;
- _.namesInErrors = t4;
- _.configuration = t5;
- _.callback = t6;
- },
- _EvaluateVisitor__execute_closure0: function _EvaluateVisitor__execute_closure0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.importer = t2;
- _.stylesheet = t3;
- _.extender = t4;
- _.configuration = t5;
- },
- _EvaluateVisitor__combineCss_closure2: function _EvaluateVisitor__combineCss_closure2() {
- },
- _EvaluateVisitor__combineCss_closure3: function _EvaluateVisitor__combineCss_closure3(t0) {
- this.selectors = t0;
- },
- _EvaluateVisitor__combineCss_closure4: function _EvaluateVisitor__combineCss_closure4() {
- },
- _EvaluateVisitor__extendModules_closure1: function _EvaluateVisitor__extendModules_closure1(t0) {
- this.originalSelectors = t0;
- },
- _EvaluateVisitor__extendModules_closure2: function _EvaluateVisitor__extendModules_closure2() {
- },
- _EvaluateVisitor__topologicalModules_visitModule0: function _EvaluateVisitor__topologicalModules_visitModule0(t0, t1) {
- this.seen = t0;
- this.sorted = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure2: function _EvaluateVisitor_visitAtRootRule_closure2(t0, t1) {
- this.$this = t0;
- this.resolved = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure3: function _EvaluateVisitor_visitAtRootRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure4: function _EvaluateVisitor_visitAtRootRule_closure4(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure5: function _EvaluateVisitor__scopeForAtRoot_closure5(t0, t1, t2) {
- this.$this = t0;
- this.newParent = t1;
- this.node = t2;
- },
- _EvaluateVisitor__scopeForAtRoot_closure6: function _EvaluateVisitor__scopeForAtRoot_closure6(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure7: function _EvaluateVisitor__scopeForAtRoot_closure7(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot__closure0: function _EvaluateVisitor__scopeForAtRoot__closure0(t0, t1) {
- this.innerScope = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure8: function _EvaluateVisitor__scopeForAtRoot_closure8(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure9: function _EvaluateVisitor__scopeForAtRoot_closure9() {
- },
- _EvaluateVisitor__scopeForAtRoot_closure10: function _EvaluateVisitor__scopeForAtRoot_closure10(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor_visitContentRule_closure0: function _EvaluateVisitor_visitContentRule_closure0(t0, t1) {
- this.$this = t0;
- this.content = t1;
- },
- _EvaluateVisitor_visitDeclaration_closure0: function _EvaluateVisitor_visitDeclaration_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitEachRule_closure2: function _EvaluateVisitor_visitEachRule_closure2(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure3: function _EvaluateVisitor_visitEachRule_closure3(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure4: function _EvaluateVisitor_visitEachRule_closure4(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.list = t1;
- _.setVariables = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitEachRule__closure0: function _EvaluateVisitor_visitEachRule__closure0(t0, t1, t2) {
- this.$this = t0;
- this.setVariables = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitEachRule___closure0: function _EvaluateVisitor_visitEachRule___closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitExtendRule_closure0: function _EvaluateVisitor_visitExtendRule_closure0(t0, t1) {
- this.$this = t0;
- this.targetText = t1;
- },
- _EvaluateVisitor_visitAtRule_closure1: function _EvaluateVisitor_visitAtRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRule__closure0: function _EvaluateVisitor_visitAtRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRule_closure2: function _EvaluateVisitor_visitAtRule_closure2() {
- },
- _EvaluateVisitor_visitForRule_closure4: function _EvaluateVisitor_visitForRule_closure4(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure5: function _EvaluateVisitor_visitForRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure6: function _EvaluateVisitor_visitForRule_closure6(t0, t1) {
- this.fromNumber = t0;
- this.toNumber = t1;
- },
- _EvaluateVisitor_visitForRule_closure7: function _EvaluateVisitor_visitForRule_closure7(t0) {
- this.toNumber = t0;
- },
- _EvaluateVisitor_visitForRule_closure8: function _EvaluateVisitor_visitForRule_closure8(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.from = t3;
- _.direction = t4;
- },
- _EvaluateVisitor_visitForRule__closure0: function _EvaluateVisitor_visitForRule__closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitForwardRule_closure1: function _EvaluateVisitor_visitForwardRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForwardRule_closure2: function _EvaluateVisitor_visitForwardRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__assertConfigurationIsEmpty_closure0: function _EvaluateVisitor__assertConfigurationIsEmpty_closure0(t0, t1, t2) {
- this.$this = t0;
- this.only = t1;
- this.nameInError = t2;
- },
- _EvaluateVisitor_visitIfRule_closure0: function _EvaluateVisitor_visitIfRule_closure0(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitIfRule__closure0: function _EvaluateVisitor_visitIfRule__closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport_closure0: function _EvaluateVisitor__visitDynamicImport_closure0(t0, t1) {
- this.$this = t0;
- this.$import = t1;
- },
- _EvaluateVisitor__visitDynamicImport__closure0: function _EvaluateVisitor__visitDynamicImport__closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.importer = t2;
- _.stylesheet = t3;
- _.environment = t4;
- },
- _EvaluateVisitor_visitIncludeRule_closure2: function _EvaluateVisitor_visitIncludeRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure3: function _EvaluateVisitor_visitIncludeRule_closure3(t0) {
- this.node = t0;
- },
- _EvaluateVisitor_visitIncludeRule_closure4: function _EvaluateVisitor_visitIncludeRule_closure4(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.contentCallable = t1;
- _.mixin = t2;
- _.nodeWithSpan = t3;
- },
- _EvaluateVisitor_visitIncludeRule__closure0: function _EvaluateVisitor_visitIncludeRule__closure0(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitIncludeRule___closure0: function _EvaluateVisitor_visitIncludeRule___closure0(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitIncludeRule____closure0: function _EvaluateVisitor_visitIncludeRule____closure0(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure1: function _EvaluateVisitor_visitMediaRule_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.queries = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitMediaRule__closure0: function _EvaluateVisitor_visitMediaRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule___closure0: function _EvaluateVisitor_visitMediaRule___closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure2: function _EvaluateVisitor_visitMediaRule_closure2(t0) {
- this.mergedQueries = t0;
- },
- _EvaluateVisitor__visitMediaQueries_closure0: function _EvaluateVisitor__visitMediaQueries_closure0(t0, t1) {
- this.$this = t0;
- this.resolved = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure6: function _EvaluateVisitor_visitStyleRule_closure6(t0, t1) {
- this.$this = t0;
- this.selectorText = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure7: function _EvaluateVisitor_visitStyleRule_closure7(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure8: function _EvaluateVisitor_visitStyleRule_closure8() {
- },
- _EvaluateVisitor_visitStyleRule_closure9: function _EvaluateVisitor_visitStyleRule_closure9(t0, t1) {
- this.$this = t0;
- this.selectorText = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure10: function _EvaluateVisitor_visitStyleRule_closure10(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure11: function _EvaluateVisitor_visitStyleRule_closure11(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitStyleRule__closure0: function _EvaluateVisitor_visitStyleRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure12: function _EvaluateVisitor_visitStyleRule_closure12() {
- },
- _EvaluateVisitor_visitSupportsRule_closure1: function _EvaluateVisitor_visitSupportsRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule__closure0: function _EvaluateVisitor_visitSupportsRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule_closure2: function _EvaluateVisitor_visitSupportsRule_closure2() {
- },
- _EvaluateVisitor_visitVariableDeclaration_closure2: function _EvaluateVisitor_visitVariableDeclaration_closure2(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.override = t2;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure3: function _EvaluateVisitor_visitVariableDeclaration_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure4: function _EvaluateVisitor_visitVariableDeclaration_closure4(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.value = t2;
- },
- _EvaluateVisitor_visitUseRule_closure0: function _EvaluateVisitor_visitUseRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWarnRule_closure0: function _EvaluateVisitor_visitWarnRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule_closure0: function _EvaluateVisitor_visitWhileRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule__closure0: function _EvaluateVisitor_visitWhileRule__closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitBinaryOperationExpression_closure0: function _EvaluateVisitor_visitBinaryOperationExpression_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableExpression_closure0: function _EvaluateVisitor_visitVariableExpression_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitListExpression_closure0: function _EvaluateVisitor_visitListExpression_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitFunctionExpression_closure1: function _EvaluateVisitor_visitFunctionExpression_closure1(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.plainName = t2;
- },
- _EvaluateVisitor_visitFunctionExpression_closure2: function _EvaluateVisitor_visitFunctionExpression_closure2(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor__runUserDefinedCallable_closure0: function _EvaluateVisitor__runUserDefinedCallable_closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.callable = t1;
- _.evaluated = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable__closure0: function _EvaluateVisitor__runUserDefinedCallable__closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable___closure0: function _EvaluateVisitor__runUserDefinedCallable___closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable____closure0: function _EvaluateVisitor__runUserDefinedCallable____closure0() {
- },
- _EvaluateVisitor__runFunctionCallable_closure0: function _EvaluateVisitor__runFunctionCallable_closure0(t0, t1) {
- this.$this = t0;
- this.callable = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure1: function _EvaluateVisitor__runBuiltInCallable_closure1(t0, t1, t2) {
- this.overload = t0;
- this.evaluated = t1;
- this.namedSet = t2;
- },
- _EvaluateVisitor__runBuiltInCallable_closure2: function _EvaluateVisitor__runBuiltInCallable_closure2() {
- },
- _EvaluateVisitor__evaluateArguments_closure2: function _EvaluateVisitor__evaluateArguments_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__evaluateArguments_closure3: function _EvaluateVisitor__evaluateArguments_closure3(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__evaluateArguments_closure4: function _EvaluateVisitor__evaluateArguments_closure4(t0, t1, t2) {
- this.named = t0;
- this.namedNodes = t1;
- this.restNodeForSpan = t2;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure3: function _EvaluateVisitor__evaluateMacroArguments_closure3() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure4: function _EvaluateVisitor__evaluateMacroArguments_closure4() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure5: function _EvaluateVisitor__evaluateMacroArguments_closure5(t0) {
- this.named = t0;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure6: function _EvaluateVisitor__evaluateMacroArguments_closure6() {
- },
- _EvaluateVisitor__addRestMap_closure1: function _EvaluateVisitor__addRestMap_closure1(t0) {
- this.T = t0;
- },
- _EvaluateVisitor__addRestMap_closure2: function _EvaluateVisitor__addRestMap_closure2(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.values = t2;
- _.map = t3;
- _.nodeWithSpan = t4;
- },
- _EvaluateVisitor__verifyArguments_closure0: function _EvaluateVisitor__verifyArguments_closure0(t0, t1, t2) {
- this.$arguments = t0;
- this.positional = t1;
- this.named = t2;
- },
- _EvaluateVisitor_visitStringExpression_closure0: function _EvaluateVisitor_visitStringExpression_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitCssAtRule_closure1: function _EvaluateVisitor_visitCssAtRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssAtRule_closure2: function _EvaluateVisitor_visitCssAtRule_closure2() {
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure1: function _EvaluateVisitor_visitCssKeyframeBlock_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure2: function _EvaluateVisitor_visitCssKeyframeBlock_closure2() {
- },
- _EvaluateVisitor_visitCssMediaRule_closure1: function _EvaluateVisitor_visitCssMediaRule_closure1(t0, t1, t2) {
- this.$this = t0;
- this.mergedQueries = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssMediaRule__closure0: function _EvaluateVisitor_visitCssMediaRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule___closure0: function _EvaluateVisitor_visitCssMediaRule___closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure2: function _EvaluateVisitor_visitCssMediaRule_closure2(t0) {
- this.mergedQueries = t0;
- },
- _EvaluateVisitor_visitCssStyleRule_closure1: function _EvaluateVisitor_visitCssStyleRule_closure1(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssStyleRule__closure0: function _EvaluateVisitor_visitCssStyleRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssStyleRule_closure2: function _EvaluateVisitor_visitCssStyleRule_closure2() {
- },
- _EvaluateVisitor_visitCssSupportsRule_closure1: function _EvaluateVisitor_visitCssSupportsRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule__closure0: function _EvaluateVisitor_visitCssSupportsRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule_closure2: function _EvaluateVisitor_visitCssSupportsRule_closure2() {
- },
- _EvaluateVisitor__performInterpolation_closure0: function _EvaluateVisitor__performInterpolation_closure0(t0, t1) {
- this.$this = t0;
- this.warnForColor = t1;
- },
- _EvaluateVisitor__serialize_closure0: function _EvaluateVisitor__serialize_closure0(t0, t1) {
- this.value = t0;
- this.quote = t1;
- },
- _EvaluateVisitor__stackTrace_closure0: function _EvaluateVisitor__stackTrace_closure0(t0) {
- this.$this = t0;
- },
- _ImportedCssVisitor0: function _ImportedCssVisitor0(t0) {
- this._async_evaluate$_visitor = t0;
- },
- _ImportedCssVisitor_visitCssAtRule_closure0: function _ImportedCssVisitor_visitCssAtRule_closure0() {
- },
- _ImportedCssVisitor_visitCssMediaRule_closure0: function _ImportedCssVisitor_visitCssMediaRule_closure0(t0) {
- this.hasBeenMerged = t0;
- },
- _ImportedCssVisitor_visitCssStyleRule_closure0: function _ImportedCssVisitor_visitCssStyleRule_closure0() {
- },
- _ImportedCssVisitor_visitCssSupportsRule_closure0: function _ImportedCssVisitor_visitCssSupportsRule_closure0() {
- },
- EvaluateResult: function EvaluateResult(t0) {
- this.stylesheet = t0;
- },
- _ArgumentResults0: function _ArgumentResults0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.positional = t0;
- _.positionalNodes = t1;
- _.named = t2;
- _.namedNodes = t3;
- _.separator = t4;
- },
- StringScannerException$: function(message, span, source) {
- return new E.StringScannerException(source, message, span);
- },
- StringScannerException: function StringScannerException(t0, t1, t2) {
- this.source = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- WatchEvent: function WatchEvent(t0, t1) {
- this.type = t0;
- this.path = t1;
- },
- ChangeType: function ChangeType(t0) {
- this._watch_event$_name = t0;
- },
- _EvaluateVisitor$2: function(functions, importCache, logger, nodeImporter, sourceMap) {
- var t6,
- t1 = type$.String,
- t2 = type$.Uri,
- t3 = type$.Module_AsyncCallable_2,
- t4 = type$.AstNode_2,
- t5 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_String_AstNode_2);
- if (nodeImporter == null)
- t6 = importCache == null ? O.AsyncImportCache$none(logger) : importCache;
- else
- t6 = null;
- t1 = new E._EvaluateVisitor2(t6, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.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);
- t1._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap2(functions, importCache, logger, nodeImporter, sourceMap);
- return t1;
- },
- _ArgumentResults$2: function(positional, named, separator, namedNodes, positionalNodes) {
- return new E._ArgumentResults2(positional, positionalNodes, named, namedNodes, separator);
- },
- _EvaluateVisitor2: function _EvaluateVisitor2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
- var _ = this;
- _._async_evaluate0$_importCache = t0;
- _._async_evaluate0$_nodeImporter = t1;
- _._async_evaluate0$_builtInFunctions = t2;
- _._async_evaluate0$_builtInModules = t3;
- _._async_evaluate0$_modules = t4;
- _._async_evaluate0$_moduleNodes = t5;
- _._async_evaluate0$_logger = t6;
- _._async_evaluate0$_sourceMap = t7;
- _._async_evaluate0$_environment = t8;
- _._async_evaluate0$_declarationName = _._async_evaluate0$_parent = _._async_evaluate0$_mediaQueries = _._async_evaluate0$_styleRule = null;
- _._async_evaluate0$_member = "root stylesheet";
- _._async_evaluate0$_importSpan = _._async_evaluate0$_callableNode = null;
- _._async_evaluate0$_inKeyframes = _._async_evaluate0$_atRootExcludingStyleRule = _._async_evaluate0$_inUnknownAtRule = _._async_evaluate0$_inFunction = false;
- _._async_evaluate0$_includedFiles = t9;
- _._async_evaluate0$_activeModules = t10;
- _._async_evaluate0$_stack = t11;
- _._async_evaluate0$_extender = _._async_evaluate0$_outOfOrderImports = _._async_evaluate0$_endOfImports = _._async_evaluate0$_root = _._async_evaluate0$_stylesheet = _._async_evaluate0$_importer = null;
- _._async_evaluate0$_configuration = t12;
- },
- _EvaluateVisitor_closure29: function _EvaluateVisitor_closure29(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure30: function _EvaluateVisitor_closure30(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure31: function _EvaluateVisitor_closure31(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure32: function _EvaluateVisitor_closure32(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure33: function _EvaluateVisitor_closure33(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure34: function _EvaluateVisitor_closure34(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure35: function _EvaluateVisitor_closure35(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure36: function _EvaluateVisitor_closure36(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure18: function _EvaluateVisitor__closure18(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure37: function _EvaluateVisitor_closure37(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure16: function _EvaluateVisitor__closure16() {
- },
- _EvaluateVisitor__closure17: function _EvaluateVisitor__closure17() {
- },
- _EvaluateVisitor_closure38: function _EvaluateVisitor_closure38(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure14: function _EvaluateVisitor__closure14(t0, t1) {
- this.values = t0;
- this.span = t1;
- },
- _EvaluateVisitor__closure15: function _EvaluateVisitor__closure15(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_run_closure2: function _EvaluateVisitor_run_closure2(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.importer = t2;
- },
- _EvaluateVisitor__withWarnCallback_closure2: function _EvaluateVisitor__withWarnCallback_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__loadModule_closure2: function _EvaluateVisitor__loadModule_closure2(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.nodeWithSpan = t2;
- _.baseUrl = t3;
- _.namesInErrors = t4;
- _.configuration = t5;
- _.callback = t6;
- },
- _EvaluateVisitor__execute_closure2: function _EvaluateVisitor__execute_closure2(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.importer = t2;
- _.stylesheet = t3;
- _.extender = t4;
- _.configuration = t5;
- },
- _EvaluateVisitor__combineCss_closure8: function _EvaluateVisitor__combineCss_closure8() {
- },
- _EvaluateVisitor__combineCss_closure9: function _EvaluateVisitor__combineCss_closure9(t0) {
- this.selectors = t0;
- },
- _EvaluateVisitor__combineCss_closure10: function _EvaluateVisitor__combineCss_closure10() {
- },
- _EvaluateVisitor__extendModules_closure5: function _EvaluateVisitor__extendModules_closure5(t0) {
- this.originalSelectors = t0;
- },
- _EvaluateVisitor__extendModules_closure6: function _EvaluateVisitor__extendModules_closure6() {
- },
- _EvaluateVisitor__topologicalModules_visitModule2: function _EvaluateVisitor__topologicalModules_visitModule2(t0, t1) {
- this.seen = t0;
- this.sorted = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure8: function _EvaluateVisitor_visitAtRootRule_closure8(t0, t1) {
- this.$this = t0;
- this.resolved = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure9: function _EvaluateVisitor_visitAtRootRule_closure9(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure10: function _EvaluateVisitor_visitAtRootRule_closure10(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure17: function _EvaluateVisitor__scopeForAtRoot_closure17(t0, t1, t2) {
- this.$this = t0;
- this.newParent = t1;
- this.node = t2;
- },
- _EvaluateVisitor__scopeForAtRoot_closure18: function _EvaluateVisitor__scopeForAtRoot_closure18(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure19: function _EvaluateVisitor__scopeForAtRoot_closure19(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot__closure2: function _EvaluateVisitor__scopeForAtRoot__closure2(t0, t1) {
- this.innerScope = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure20: function _EvaluateVisitor__scopeForAtRoot_closure20(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure21: function _EvaluateVisitor__scopeForAtRoot_closure21() {
- },
- _EvaluateVisitor__scopeForAtRoot_closure22: function _EvaluateVisitor__scopeForAtRoot_closure22(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor_visitContentRule_closure2: function _EvaluateVisitor_visitContentRule_closure2(t0, t1) {
- this.$this = t0;
- this.content = t1;
- },
- _EvaluateVisitor_visitDeclaration_closure2: function _EvaluateVisitor_visitDeclaration_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitEachRule_closure8: function _EvaluateVisitor_visitEachRule_closure8(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure9: function _EvaluateVisitor_visitEachRule_closure9(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure10: function _EvaluateVisitor_visitEachRule_closure10(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.list = t1;
- _.setVariables = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitEachRule__closure2: function _EvaluateVisitor_visitEachRule__closure2(t0, t1, t2) {
- this.$this = t0;
- this.setVariables = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitEachRule___closure2: function _EvaluateVisitor_visitEachRule___closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitExtendRule_closure2: function _EvaluateVisitor_visitExtendRule_closure2(t0, t1) {
- this.$this = t0;
- this.targetText = t1;
- },
- _EvaluateVisitor_visitAtRule_closure5: function _EvaluateVisitor_visitAtRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRule__closure2: function _EvaluateVisitor_visitAtRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRule_closure6: function _EvaluateVisitor_visitAtRule_closure6() {
- },
- _EvaluateVisitor_visitForRule_closure14: function _EvaluateVisitor_visitForRule_closure14(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure15: function _EvaluateVisitor_visitForRule_closure15(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure16: function _EvaluateVisitor_visitForRule_closure16(t0, t1) {
- this.fromNumber = t0;
- this.toNumber = t1;
- },
- _EvaluateVisitor_visitForRule_closure17: function _EvaluateVisitor_visitForRule_closure17(t0) {
- this.toNumber = t0;
- },
- _EvaluateVisitor_visitForRule_closure18: function _EvaluateVisitor_visitForRule_closure18(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.from = t3;
- _.direction = t4;
- },
- _EvaluateVisitor_visitForRule__closure2: function _EvaluateVisitor_visitForRule__closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitForwardRule_closure5: function _EvaluateVisitor_visitForwardRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForwardRule_closure6: function _EvaluateVisitor_visitForwardRule_closure6(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__assertConfigurationIsEmpty_closure2: function _EvaluateVisitor__assertConfigurationIsEmpty_closure2(t0, t1, t2) {
- this.$this = t0;
- this.only = t1;
- this.nameInError = t2;
- },
- _EvaluateVisitor_visitIfRule_closure2: function _EvaluateVisitor_visitIfRule_closure2(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitIfRule__closure2: function _EvaluateVisitor_visitIfRule__closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport_closure2: function _EvaluateVisitor__visitDynamicImport_closure2(t0, t1) {
- this.$this = t0;
- this.$import = t1;
- },
- _EvaluateVisitor__visitDynamicImport__closure2: function _EvaluateVisitor__visitDynamicImport__closure2(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.importer = t2;
- _.stylesheet = t3;
- _.environment = t4;
- },
- _EvaluateVisitor_visitIncludeRule_closure8: function _EvaluateVisitor_visitIncludeRule_closure8(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure9: function _EvaluateVisitor_visitIncludeRule_closure9(t0) {
- this.node = t0;
- },
- _EvaluateVisitor_visitIncludeRule_closure10: function _EvaluateVisitor_visitIncludeRule_closure10(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.contentCallable = t1;
- _.mixin = t2;
- _.nodeWithSpan = t3;
- },
- _EvaluateVisitor_visitIncludeRule__closure2: function _EvaluateVisitor_visitIncludeRule__closure2(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitIncludeRule___closure2: function _EvaluateVisitor_visitIncludeRule___closure2(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitIncludeRule____closure2: function _EvaluateVisitor_visitIncludeRule____closure2(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure5: function _EvaluateVisitor_visitMediaRule_closure5(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.queries = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitMediaRule__closure2: function _EvaluateVisitor_visitMediaRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule___closure2: function _EvaluateVisitor_visitMediaRule___closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure6: function _EvaluateVisitor_visitMediaRule_closure6(t0) {
- this.mergedQueries = t0;
- },
- _EvaluateVisitor__visitMediaQueries_closure2: function _EvaluateVisitor__visitMediaQueries_closure2(t0, t1) {
- this.$this = t0;
- this.resolved = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure20: function _EvaluateVisitor_visitStyleRule_closure20(t0, t1) {
- this.$this = t0;
- this.selectorText = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure21: function _EvaluateVisitor_visitStyleRule_closure21(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure22: function _EvaluateVisitor_visitStyleRule_closure22() {
- },
- _EvaluateVisitor_visitStyleRule_closure23: function _EvaluateVisitor_visitStyleRule_closure23(t0, t1) {
- this.$this = t0;
- this.selectorText = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure24: function _EvaluateVisitor_visitStyleRule_closure24(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure25: function _EvaluateVisitor_visitStyleRule_closure25(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitStyleRule__closure2: function _EvaluateVisitor_visitStyleRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure26: function _EvaluateVisitor_visitStyleRule_closure26() {
- },
- _EvaluateVisitor_visitSupportsRule_closure5: function _EvaluateVisitor_visitSupportsRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule__closure2: function _EvaluateVisitor_visitSupportsRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule_closure6: function _EvaluateVisitor_visitSupportsRule_closure6() {
- },
- _EvaluateVisitor_visitVariableDeclaration_closure8: function _EvaluateVisitor_visitVariableDeclaration_closure8(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.override = t2;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure9: function _EvaluateVisitor_visitVariableDeclaration_closure9(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure10: function _EvaluateVisitor_visitVariableDeclaration_closure10(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.value = t2;
- },
- _EvaluateVisitor_visitUseRule_closure2: function _EvaluateVisitor_visitUseRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWarnRule_closure2: function _EvaluateVisitor_visitWarnRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule_closure2: function _EvaluateVisitor_visitWhileRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule__closure2: function _EvaluateVisitor_visitWhileRule__closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitBinaryOperationExpression_closure2: function _EvaluateVisitor_visitBinaryOperationExpression_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableExpression_closure2: function _EvaluateVisitor_visitVariableExpression_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitListExpression_closure2: function _EvaluateVisitor_visitListExpression_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitFunctionExpression_closure5: function _EvaluateVisitor_visitFunctionExpression_closure5(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.plainName = t2;
- },
- _EvaluateVisitor_visitFunctionExpression_closure6: function _EvaluateVisitor_visitFunctionExpression_closure6(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor__runUserDefinedCallable_closure2: function _EvaluateVisitor__runUserDefinedCallable_closure2(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.callable = t1;
- _.evaluated = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable__closure2: function _EvaluateVisitor__runUserDefinedCallable__closure2(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable___closure2: function _EvaluateVisitor__runUserDefinedCallable___closure2(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable____closure2: function _EvaluateVisitor__runUserDefinedCallable____closure2() {
- },
- _EvaluateVisitor__runFunctionCallable_closure2: function _EvaluateVisitor__runFunctionCallable_closure2(t0, t1) {
- this.$this = t0;
- this.callable = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure5: function _EvaluateVisitor__runBuiltInCallable_closure5(t0, t1, t2) {
- this.overload = t0;
- this.evaluated = t1;
- this.namedSet = t2;
- },
- _EvaluateVisitor__runBuiltInCallable_closure6: function _EvaluateVisitor__runBuiltInCallable_closure6() {
- },
- _EvaluateVisitor__evaluateArguments_closure8: function _EvaluateVisitor__evaluateArguments_closure8(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__evaluateArguments_closure9: function _EvaluateVisitor__evaluateArguments_closure9(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__evaluateArguments_closure10: function _EvaluateVisitor__evaluateArguments_closure10(t0, t1, t2) {
- this.named = t0;
- this.namedNodes = t1;
- this.restNodeForSpan = t2;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure11: function _EvaluateVisitor__evaluateMacroArguments_closure11() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure12: function _EvaluateVisitor__evaluateMacroArguments_closure12() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure13: function _EvaluateVisitor__evaluateMacroArguments_closure13(t0) {
- this.named = t0;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure14: function _EvaluateVisitor__evaluateMacroArguments_closure14() {
- },
- _EvaluateVisitor__addRestMap_closure5: function _EvaluateVisitor__addRestMap_closure5(t0) {
- this.T = t0;
- },
- _EvaluateVisitor__addRestMap_closure6: function _EvaluateVisitor__addRestMap_closure6(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.values = t2;
- _.map = t3;
- _.nodeWithSpan = t4;
- },
- _EvaluateVisitor__verifyArguments_closure2: function _EvaluateVisitor__verifyArguments_closure2(t0, t1, t2) {
- this.$arguments = t0;
- this.positional = t1;
- this.named = t2;
- },
- _EvaluateVisitor_visitStringExpression_closure2: function _EvaluateVisitor_visitStringExpression_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitCssAtRule_closure5: function _EvaluateVisitor_visitCssAtRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssAtRule_closure6: function _EvaluateVisitor_visitCssAtRule_closure6() {
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure5: function _EvaluateVisitor_visitCssKeyframeBlock_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure6: function _EvaluateVisitor_visitCssKeyframeBlock_closure6() {
- },
- _EvaluateVisitor_visitCssMediaRule_closure5: function _EvaluateVisitor_visitCssMediaRule_closure5(t0, t1, t2) {
- this.$this = t0;
- this.mergedQueries = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssMediaRule__closure2: function _EvaluateVisitor_visitCssMediaRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule___closure2: function _EvaluateVisitor_visitCssMediaRule___closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure6: function _EvaluateVisitor_visitCssMediaRule_closure6(t0) {
- this.mergedQueries = t0;
- },
- _EvaluateVisitor_visitCssStyleRule_closure5: function _EvaluateVisitor_visitCssStyleRule_closure5(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssStyleRule__closure2: function _EvaluateVisitor_visitCssStyleRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssStyleRule_closure6: function _EvaluateVisitor_visitCssStyleRule_closure6() {
- },
- _EvaluateVisitor_visitCssSupportsRule_closure5: function _EvaluateVisitor_visitCssSupportsRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule__closure2: function _EvaluateVisitor_visitCssSupportsRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule_closure6: function _EvaluateVisitor_visitCssSupportsRule_closure6() {
- },
- _EvaluateVisitor__performInterpolation_closure2: function _EvaluateVisitor__performInterpolation_closure2(t0, t1) {
- this.$this = t0;
- this.warnForColor = t1;
- },
- _EvaluateVisitor__serialize_closure2: function _EvaluateVisitor__serialize_closure2(t0, t1) {
- this.value = t0;
- this.quote = t1;
- },
- _EvaluateVisitor__stackTrace_closure2: function _EvaluateVisitor__stackTrace_closure2(t0) {
- this.$this = t0;
- },
- _ImportedCssVisitor2: function _ImportedCssVisitor2(t0) {
- this._async_evaluate0$_visitor = t0;
- },
- _ImportedCssVisitor_visitCssAtRule_closure2: function _ImportedCssVisitor_visitCssAtRule_closure2() {
- },
- _ImportedCssVisitor_visitCssMediaRule_closure2: function _ImportedCssVisitor_visitCssMediaRule_closure2(t0) {
- this.hasBeenMerged = t0;
- },
- _ImportedCssVisitor_visitCssStyleRule_closure2: function _ImportedCssVisitor_visitCssStyleRule_closure2() {
- },
- _ImportedCssVisitor_visitCssSupportsRule_closure2: function _ImportedCssVisitor_visitCssSupportsRule_closure2() {
- },
- EvaluateResult0: function EvaluateResult0(t0, t1) {
- this.stylesheet = t0;
- this.includedFiles = t1;
- },
- _ArgumentResults2: function _ArgumentResults2(t0, t1, t2, t3, t4) {
- var _ = this;
- _.positional = t0;
- _.positionalNodes = t1;
- _.named = t2;
- _.namedNodes = t3;
- _.separator = t4;
- },
- SassException$0: function(message, span) {
- return new E.SassException0(message, span);
- },
- MultiSpanSassException$0: function(message, span, primaryLabel, secondarySpans) {
- return new E.MultiSpanSassException0(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
- },
- SassRuntimeException$0: function(message, span, trace) {
- return new E.SassRuntimeException0(trace, message, span);
- },
- MultiSpanSassRuntimeException$0: function(message, span, primaryLabel, secondarySpans, trace) {
- return new E.MultiSpanSassRuntimeException0(trace, primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message, span);
- },
- SassFormatException$0: function(message, span) {
- return new E.SassFormatException0(message, span);
- },
- SassScriptException$0: function(message) {
- return new E.SassScriptException0(message);
- },
- MultiSpanSassScriptException$0: function(message, primaryLabel, secondarySpans) {
- return new E.MultiSpanSassScriptException0(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String), message);
- },
- SassException0: function SassException0(t0, t1) {
- this._span_exception$_message = t0;
- this._span = t1;
- },
- MultiSpanSassException0: function MultiSpanSassException0(t0, t1, t2, t3) {
- var _ = this;
- _.primaryLabel = t0;
- _.secondarySpans = t1;
- _._span_exception$_message = t2;
- _._span = t3;
- },
- SassRuntimeException0: function SassRuntimeException0(t0, t1, t2) {
- this.trace = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- MultiSpanSassRuntimeException0: function MultiSpanSassRuntimeException0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.trace = t0;
- _.primaryLabel = t1;
- _.secondarySpans = t2;
- _._span_exception$_message = t3;
- _._span = t4;
- },
- SassFormatException0: function SassFormatException0(t0, t1) {
- this._span_exception$_message = t0;
- this._span = t1;
- },
- SassScriptException0: function SassScriptException0(t0) {
- this.message = t0;
- },
- MultiSpanSassScriptException0: function MultiSpanSassScriptException0(t0, t1, t2) {
- this.primaryLabel = t0;
- this.secondarySpans = t1;
- this.message = t2;
- },
- FiberClass: function FiberClass() {
- },
- Fiber: function Fiber() {
- },
- KeyframeSelectorParser0: function KeyframeSelectorParser0(t0, t1) {
- this.scanner = t0;
- this.logger = t1;
- },
- KeyframeSelectorParser_parse_closure0: function KeyframeSelectorParser_parse_closure0(t0) {
- this.$this = t0;
- },
- ImporterResult0: function ImporterResult0(t0, t1, t2) {
- this.contents = t0;
- this._result$_sourceMapUrl = t1;
- this.syntax = t2;
- },
- UserDefinedCallable0: function UserDefinedCallable0(t0, t1, t2) {
- this.declaration = t0;
- this.environment = t1;
- this.$ti = t2;
- }
- },
- F = {ValueResult: function ValueResult(t0, t1) {
- this.value = t0;
- this.$ti = t1;
- }, UrlStyle: function UrlStyle(t0, t1, t2, t3) {
- var _ = this;
- _.separatorPattern = t0;
- _.needsSeparatorPattern = t1;
- _.rootPattern = t2;
- _.relativeRootPattern = t3;
- },
- CssMediaQuery$: function(type, features, modifier) {
- return new F.CssMediaQuery(modifier, type, features == null ? C.List_empty : P.List_List$unmodifiable(features, type$.String));
- },
- CssMediaQuery: function CssMediaQuery(t0, t1, t2) {
- this.modifier = t0;
- this.type = t1;
- this.features = t2;
- },
- _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) {
- this._media_query$_name = t0;
- },
- MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) {
- this.query = t0;
- },
- ModifiableCssImport$: function(url, span, media, supports) {
- return new F.ModifiableCssImport(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.CssMediaQuery), span);
- },
- ModifiableCssImport: function ModifiableCssImport(t0, t1, t2, t3) {
- var _ = this;
- _.url = t0;
- _.supports = t1;
- _.media = t2;
- _.span = t3;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssValue: function ModifiableCssValue(t0, t1, t2) {
- this.value = t0;
- this.span = t1;
- this.$ti = t2;
- },
- CssValue: function CssValue(t0, t1, t2) {
- this.value = t0;
- this.span = t1;
- this.$ti = t2;
- },
- FunctionExpression: function FunctionExpression(t0, t1, t2, t3) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.$arguments = t2;
- _.span = t3;
- },
- ValueExpression: function ValueExpression(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- Import: function Import() {
- },
- TypeSelector: function TypeSelector(t0) {
- this.name = t0;
- },
- Extender__extendOrReplace: function(selector, source, targets, mode) {
- var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
- t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
- for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- complex = t2[_i];
- if (complex._maxSpecificity == null)
- complex._computeSpecificity$0();
- t4 = complex._maxSpecificity;
- t1.$indexSet(0, complex, new S.Extension(complex, _null, t4, true, false, _null, _null, _null));
- }
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_CompoundSelector);
- for (t3 = targets.components, t4 = t3.length, t5 = type$.CompoundSelector, _i = 0; _i < t4; ++_i) {
- complex = t3[_i];
- t6 = complex.components;
- if (t6.length !== 1)
- t2.push(H.throwExpression(E.SassScriptException$("Can't extend complex selector " + H.S(complex) + ".")));
- else
- t2.push(t5._as(C.JSArray_methods.get$first(t6)));
- }
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector, type$.Map_ComplexSelector_Extension);
- for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
- t3.$indexSet(0, t5[_i0], t1);
- extender = F.Extender$_mode(mode);
- if (!selector.get$isInvisible())
- extender._originals.addAll$1(0, selector.components);
- return extender._extendList$3(selector, t3, _null);
- },
- Extender$_mode: function(_mode) {
- var t1 = type$.SimpleSelector;
- return new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList, type$.List_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), _mode);
- },
- Extender: function Extender(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._selectors = t0;
- _._extensions = t1;
- _._extensionsByExtender = t2;
- _._mediaContexts = t3;
- _._sourceSpecificity = t4;
- _._originals = t5;
- _._mode = t6;
- },
- Extender_extensionsWhereTarget_closure: function Extender_extensionsWhereTarget_closure() {
- },
- Extender__registerSelector_closure: function Extender__registerSelector_closure() {
- },
- Extender_addExtension_closure: function Extender_addExtension_closure() {
- },
- Extender_addExtension_closure0: function Extender_addExtension_closure0() {
- },
- Extender_addExtension_closure1: function Extender_addExtension_closure1(t0) {
- this.complex = t0;
- },
- Extender__extendExistingExtensions_closure: function Extender__extendExistingExtensions_closure() {
- },
- Extender__extendExistingExtensions_closure0: function Extender__extendExistingExtensions_closure0() {
- },
- Extender_addExtensions_closure: function Extender_addExtensions_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.extender = t2;
- },
- Extender_addExtensions__closure: function Extender_addExtensions__closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.existingSources = t1;
- _.extensionsForTarget = t2;
- _.selectorsForTarget = t3;
- _.target = t4;
- },
- Extender_addExtensions___closure: function Extender_addExtensions___closure() {
- },
- Extender_addExtensions___closure0: function Extender_addExtensions___closure0(t0) {
- this.extension = t0;
- },
- Extender__extendList_closure: function Extender__extendList_closure() {
- },
- Extender__extendComplex_closure: function Extender__extendComplex_closure(t0) {
- this.complex = t0;
- },
- Extender__extendComplex_closure0: function Extender__extendComplex_closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.complex = t2;
- },
- Extender__extendComplex__closure: function Extender__extendComplex__closure() {
- },
- Extender__extendComplex__closure0: function Extender__extendComplex__closure0(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.complex = t2;
- _.path = t3;
- },
- Extender__extendComplex___closure: function Extender__extendComplex___closure() {
- },
- Extender__extendCompound_closure: function Extender__extendCompound_closure(t0) {
- this.mediaQueryContext = t0;
- },
- Extender__extendCompound_closure0: function Extender__extendCompound_closure0(t0, t1) {
- this._box_1 = t0;
- this.mediaQueryContext = t1;
- },
- Extender__extendCompound__closure: function Extender__extendCompound__closure() {
- },
- Extender__extendCompound__closure0: function Extender__extendCompound__closure0(t0) {
- this._box_0 = t0;
- },
- Extender__extendCompound_closure1: function Extender__extendCompound_closure1() {
- },
- Extender__extendCompound_closure2: function Extender__extendCompound_closure2() {
- },
- Extender__extendSimple_withoutPseudo: function Extender__extendSimple_withoutPseudo(t0, t1, t2) {
- this.$this = t0;
- this.extensions = t1;
- this.targetsUsed = t2;
- },
- Extender__extendSimple_closure: function Extender__extendSimple_closure(t0, t1) {
- this.$this = t0;
- this.withoutPseudo = t1;
- },
- Extender__extendPseudo_closure: function Extender__extendPseudo_closure() {
- },
- Extender__extendPseudo_closure0: function Extender__extendPseudo_closure0() {
- },
- Extender__extendPseudo_closure1: function Extender__extendPseudo_closure1() {
- },
- Extender__extendPseudo_closure2: function Extender__extendPseudo_closure2(t0) {
- this.pseudo = t0;
- },
- Extender__extendPseudo_closure3: function Extender__extendPseudo_closure3(t0) {
- this.pseudo = t0;
- },
- Extender__trim_closure: function Extender__trim_closure(t0, t1) {
- this._box_0 = t0;
- this.complex1 = t1;
- },
- Extender__trim_closure0: function Extender__trim_closure0(t0, t1) {
- this._box_0 = t0;
- this.complex1 = t1;
- },
- Extender_clone_closure: function Extender_clone_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.newSelectors = t1;
- _.oldToNewSelectors = t2;
- _.newMediaContexts = t3;
- },
- FilesystemImporter: function FilesystemImporter(t0) {
- this._loadPath = t0;
- },
- realCasePath: function(path) {
- var t1, basename, matches;
- if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
- return path;
- t1 = $.$get$context();
- basename = X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename();
- matches = J.where$1$ax(B.listDir(t1.dirname$1(path), false), new F.realCasePath_closure(basename)).toList$0(0);
- if (matches.length !== 1)
- return path;
- return C.JSArray_methods.get$first(matches);
- },
- realCasePath_closure: function realCasePath_closure(t0) {
- this.basename = t0;
- },
- _QuietLogger: function _QuietLogger() {
- },
- JSFunction: function JSFunction() {
- },
- NodeImporterResult: function NodeImporterResult() {
- },
- MediaQueryParser: function MediaQueryParser(t0, t1) {
- this.scanner = t0;
- this.logger = t1;
- },
- MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) {
- this.$this = t0;
- },
- PrefixedMapView: function PrefixedMapView(t0, t1, t2) {
- this._prefixed_map_view$_map = t0;
- this._prefix = t1;
- this.$ti = t2;
- },
- _PrefixedKeys: function _PrefixedKeys(t0) {
- this._view = t0;
- },
- _PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) {
- this.$this = t0;
- },
- Value: function Value() {
- },
- SassFunction: function SassFunction(t0) {
- this.callable = t0;
- },
- _FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1) {
- this._usesAndForwards = t0;
- this._imports = t1;
- },
- Extender__extendOrReplace0: function(selector, source, targets, mode) {
- var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
- t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
- for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- complex = t2[_i];
- if (complex._complex0$_maxSpecificity == null)
- complex._complex0$_computeSpecificity$0();
- t4 = complex._complex0$_maxSpecificity;
- t1.$indexSet(0, complex, new S.Extension0(complex, _null, t4, true, false, _null, _null, _null));
- }
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_CompoundSelector_2);
- for (t3 = targets.components, t4 = t3.length, t5 = type$.CompoundSelector_2, _i = 0; _i < t4; ++_i) {
- complex = t3[_i];
- t6 = complex.components;
- if (t6.length !== 1)
- t2.push(H.throwExpression(E.SassScriptException$0("Can't extend complex selector " + H.S(complex) + ".")));
- else
- t2.push(t5._as(C.JSArray_methods.get$first(t6)));
- }
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2);
- for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
- t3.$indexSet(0, t5[_i0], t1);
- extender = F.Extender$_mode0(mode);
- if (!selector.get$isInvisible())
- extender._extender$_originals.addAll$1(0, selector.components);
- return extender._extender$_extendList$3(selector, t3, _null);
- },
- Extender$_mode0: function(_mode) {
- var t1 = type$.SimpleSelector_2;
- return new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList_2, type$.List_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), _mode);
- },
- Extender0: function Extender0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._extender$_selectors = t0;
- _._extender$_extensions = t1;
- _._extender$_extensionsByExtender = t2;
- _._extender$_mediaContexts = t3;
- _._extender$_sourceSpecificity = t4;
- _._extender$_originals = t5;
- _._extender$_mode = t6;
- },
- Extender_extensionsWhereTarget_closure0: function Extender_extensionsWhereTarget_closure0() {
- },
- Extender__registerSelector_closure0: function Extender__registerSelector_closure0() {
- },
- Extender_addExtension_closure2: function Extender_addExtension_closure2() {
- },
- Extender_addExtension_closure3: function Extender_addExtension_closure3() {
- },
- Extender_addExtension_closure4: function Extender_addExtension_closure4(t0) {
- this.complex = t0;
- },
- Extender__extendExistingExtensions_closure1: function Extender__extendExistingExtensions_closure1() {
- },
- Extender__extendExistingExtensions_closure2: function Extender__extendExistingExtensions_closure2() {
- },
- Extender_addExtensions_closure0: function Extender_addExtensions_closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.extender = t2;
- },
- Extender_addExtensions__closure0: function Extender_addExtensions__closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.existingSources = t1;
- _.extensionsForTarget = t2;
- _.selectorsForTarget = t3;
- _.target = t4;
- },
- Extender_addExtensions___closure1: function Extender_addExtensions___closure1() {
- },
- Extender_addExtensions___closure2: function Extender_addExtensions___closure2(t0) {
- this.extension = t0;
- },
- Extender__extendList_closure0: function Extender__extendList_closure0() {
- },
- Extender__extendComplex_closure1: function Extender__extendComplex_closure1(t0) {
- this.complex = t0;
- },
- Extender__extendComplex_closure2: function Extender__extendComplex_closure2(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.complex = t2;
- },
- Extender__extendComplex__closure1: function Extender__extendComplex__closure1() {
- },
- Extender__extendComplex__closure2: function Extender__extendComplex__closure2(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.complex = t2;
- _.path = t3;
- },
- Extender__extendComplex___closure0: function Extender__extendComplex___closure0() {
- },
- Extender__extendCompound_closure3: function Extender__extendCompound_closure3(t0) {
- this.mediaQueryContext = t0;
- },
- Extender__extendCompound_closure4: function Extender__extendCompound_closure4(t0, t1) {
- this._box_1 = t0;
- this.mediaQueryContext = t1;
- },
- Extender__extendCompound__closure1: function Extender__extendCompound__closure1() {
- },
- Extender__extendCompound__closure2: function Extender__extendCompound__closure2(t0) {
- this._box_0 = t0;
- },
- Extender__extendCompound_closure5: function Extender__extendCompound_closure5() {
- },
- Extender__extendCompound_closure6: function Extender__extendCompound_closure6() {
- },
- Extender__extendSimple_withoutPseudo0: function Extender__extendSimple_withoutPseudo0(t0, t1, t2) {
- this.$this = t0;
- this.extensions = t1;
- this.targetsUsed = t2;
- },
- Extender__extendSimple_closure0: function Extender__extendSimple_closure0(t0, t1) {
- this.$this = t0;
- this.withoutPseudo = t1;
- },
- Extender__extendPseudo_closure4: function Extender__extendPseudo_closure4() {
- },
- Extender__extendPseudo_closure5: function Extender__extendPseudo_closure5() {
- },
- Extender__extendPseudo_closure6: function Extender__extendPseudo_closure6() {
- },
- Extender__extendPseudo_closure7: function Extender__extendPseudo_closure7(t0) {
- this.pseudo = t0;
- },
- Extender__extendPseudo_closure8: function Extender__extendPseudo_closure8(t0) {
- this.pseudo = t0;
- },
- Extender__trim_closure1: function Extender__trim_closure1(t0, t1) {
- this._box_0 = t0;
- this.complex1 = t1;
- },
- Extender__trim_closure2: function Extender__trim_closure2(t0, t1) {
- this._box_0 = t0;
- this.complex1 = t1;
- },
- Extender_clone_closure0: function Extender_clone_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.newSelectors = t1;
- _.oldToNewSelectors = t2;
- _.newMediaContexts = t3;
- },
- FilesystemImporter0: function FilesystemImporter0(t0) {
- this._filesystem$_loadPath = t0;
- },
- FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.$arguments = t2;
- _.span = t3;
- },
- JSFunction0: function JSFunction0() {
- },
- SassFunction0: function SassFunction0(t0) {
- this.callable = t0;
- },
- NodeImporter__addSassPath: function($async$includePaths) {
- return P._makeSyncStarIterable(function() {
- var includePaths = $async$includePaths;
- var $async$goto = 0, $async$handler = 2, $async$currentError, sassPath;
- return function $async$NodeImporter__addSassPath($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._IterationMarker_yieldStar(includePaths);
- case 3:
- // after yield
- sassPath = H._asStringNullable(J.get$env$x(self.process).SASS_PATH);
- if (sassPath == null) {
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 4;
- return P._IterationMarker_yieldStar(H.setRuntimeTypeInfo(sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":"), type$.JSArray_String));
- case 4:
- // after yield
- case 1:
- // return
- return P._IterationMarker_endOfIteration();
- case 2:
- // rethrow
- return P._IterationMarker_uncaughtError($async$currentError);
- }
- };
- }, type$.String);
- },
- NodeImporter: function NodeImporter(t0, t1, t2) {
- this._implementation$_context = t0;
- this._includePaths = t1;
- this._implementation$_importers = t2;
- },
- NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) {
- this.path = t0;
- },
- ModifiableCssImport$0: function(url, span, media, supports) {
- return new F.ModifiableCssImport0(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.CssMediaQuery_2), span);
- },
- ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2, t3) {
- var _ = this;
- _.url = t0;
- _.supports = t1;
- _.media = t2;
- _.span = t3;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- Import0: function Import0() {
- },
- NodeImporterResult0: function NodeImporterResult0() {
- },
- realCasePath0: function(path) {
- var t1, basename, matches;
- if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
- return path;
- t1 = $.$get$context();
- basename = X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename();
- matches = J.where$1$ax(B.listDir0(t1.dirname$1(path)), new F.realCasePath_closure0(basename)).toList$0(0);
- if (matches.length !== 1)
- return path;
- return C.JSArray_methods.get$first(matches);
- },
- realCasePath_closure0: function realCasePath_closure0(t0) {
- this.basename = t0;
- },
- CssMediaQuery$0: function(type, features, modifier) {
- return new F.CssMediaQuery0(modifier, type, features == null ? C.List_empty : P.List_List$unmodifiable(features, type$.String));
- },
- CssMediaQuery0: function CssMediaQuery0(t0, t1, t2) {
- this.modifier = t0;
- this.type = t1;
- this.features = t2;
- },
- _SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) {
- this._media_query1$_name = t0;
- },
- MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) {
- this.query = t0;
- },
- MediaQueryParser0: function MediaQueryParser0(t0, t1) {
- this.scanner = t0;
- this.logger = t1;
- },
- MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) {
- this.$this = t0;
- },
- PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) {
- this._prefixed_map_view0$_map = t0;
- this._prefixed_map_view0$_prefix = t1;
- this.$ti = t2;
- },
- _PrefixedKeys0: function _PrefixedKeys0(t0) {
- this._prefixed_map_view0$_view = t0;
- },
- _PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) {
- this.$this = t0;
- },
- TypeSelector0: function TypeSelector0(t0) {
- this.name = t0;
- },
- CssValue0: function CssValue0(t0, t1, t2) {
- this.value = t0;
- this.span = t1;
- this.$ti = t2;
- },
- ValueExpression0: function ValueExpression0(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- ModifiableCssValue0: function ModifiableCssValue0(t0, t1, t2) {
- this.value = t0;
- this.span = t1;
- this.$ti = t2;
- },
- Value0: function Value0() {
- },
- unwrapValue: function(object) {
- var value, t1;
- if (object != null) {
- if (object instanceof F.Value0)
- return object;
- value = object.dartValue;
- if (value != null && value instanceof F.Value0)
- return value;
- t1 = self.Error;
- if (H._asBoolNullable($.$get$_jsInstanceOf().call$2(object, t1)))
- throw H.wrapException(object);
- }
- throw H.wrapException(H.S(object) + " must be a Sass value type.");
- },
- wrapValue: function(value) {
- if (value instanceof K.SassColor0)
- return P.callConstructor($.$get$colorConstructor(), [null, null, null, null, value]);
- if (value instanceof D.SassList0)
- return P.callConstructor($.$get$listConstructor(), [null, null, value]);
- if (value instanceof A.SassMap0)
- return P.callConstructor($.$get$mapConstructor(), [null, value]);
- if (value instanceof T.SassNumber0)
- return P.callConstructor($.$get$numberConstructor(), [null, null, value]);
- if (value instanceof D.SassString0)
- return P.callConstructor($.$get$stringConstructor(), [null, value]);
- return value;
- }
- },
- Y = {StreamCompleter: function StreamCompleter(t0, t1) {
- this._stream_completer$_stream = t0;
- this.$ti = t1;
- }, _CompleterStream: function _CompleterStream(t0) {
- this._sourceStream = this._stream_completer$_controller = null;
- this.$ti = t0;
- },
- mapMap: function(map, key, value, K1, V1, K2, V2) {
- var result, t1 = {};
- t1.key = key;
- t1.value = value;
- if (key == null)
- t1.key = new Y.mapMap_closure(K2, K1, V1);
- if (value == null)
- t1.value = new Y.mapMap_closure0(V2, K1, V1);
- result = P.LinkedHashMap_LinkedHashMap$_empty(K2, V2);
- map.forEach$1(0, new Y.mapMap_closure1(t1, result, K1, V1));
- return result;
- },
- mergeMaps: function(map1, map2, $K, $V) {
- var result = P.LinkedHashMap_LinkedHashMap$from(map1, $K, $V);
- result.addAll$1(0, map2);
- return result;
- },
- groupBy: function(values, key, $S, $T) {
- var t1, _i, element,
- map = P.LinkedHashMap_LinkedHashMap$_empty($T, $S._eval$1("List<0>"));
- for (t1 = values.length, _i = 0; _i < values.length; values.length === t1 || (0, H.throwConcurrentModificationError)(values), ++_i) {
- element = values[_i];
- J.add$1$ax(map.putIfAbsent$2(key.call$1(element), new Y.groupBy_closure($S)), element);
- }
- return map;
- },
- minBy: function(values, orderBy, $S, $T) {
- var t1, minValue, minOrderBy, element, elementOrderBy,
- compare = B.defaultCompare($T);
- for (t1 = new H.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f), minValue = null, minOrderBy = null; t1.moveNext$0();) {
- element = t1.__internal$_current;
- elementOrderBy = orderBy.call$1(element);
- if (minOrderBy == null || compare.call$2(elementOrderBy, minOrderBy) < 0) {
- minOrderBy = elementOrderBy;
- minValue = element;
- }
- }
- return minValue;
- },
- mapMap_closure: function mapMap_closure(t0, t1, t2) {
- this.K2 = t0;
- this.K1 = t1;
- this.V1 = t2;
- },
- mapMap_closure0: function mapMap_closure0(t0, t1, t2) {
- this.V2 = t0;
- this.K1 = t1;
- this.V1 = t2;
- },
- mapMap_closure1: function mapMap_closure1(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.result = t1;
- _.K1 = t2;
- _.V1 = t3;
- },
- groupBy_closure: function groupBy_closure(t0) {
- this.S = t0;
- },
- ContentBlock: function ContentBlock(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.$arguments = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- WarnRule: function WarnRule(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- unifyComplex: function(complexes) {
- var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
- t1 = J.getInterceptor$asx(complexes);
- if (t1.get$length(complexes) === 1)
- return complexes;
- for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
- base = J.get$last$ax(t2.get$current(t2));
- if (base instanceof X.CompoundSelector)
- if (unifiedBase == null)
- unifiedBase = base.components;
- else
- for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
- unifiedBase = t3[_i].unify$1(unifiedBase);
- if (unifiedBase == null)
- return null;
- }
- else
- return null;
- }
- complexesWithoutBases = t1.map$1$1(complexes, new Y.unifyComplex_closure(), type$.List_ComplexSelectorComponent).toList$0(0);
- J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$(unifiedBase));
- return Y.weave(complexesWithoutBases);
- },
- unifyCompound: function(compound1, compound2) {
- var t1, result, _i;
- for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
- result = compound1[_i].unify$1(result);
- if (result == null)
- return null;
- }
- return X.CompoundSelector$(result);
- },
- unifyUniversalAndElement: function(selector1, selector2) {
- var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
- _s45_ = "must be a UniversalSelector or a TypeSelector";
- if (selector1 instanceof N.UniversalSelector) {
- namespace1 = selector1.namespace;
- name1 = _null;
- } else if (selector1 instanceof F.TypeSelector) {
- t1 = selector1.name;
- namespace1 = t1.namespace;
- name1 = t1.name;
- } else
- throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
- if (selector2 instanceof N.UniversalSelector) {
- namespace2 = selector2.namespace;
- name2 = _null;
- } else if (selector2 instanceof F.TypeSelector) {
- t1 = selector2.name;
- namespace2 = t1.namespace;
- name2 = t1.name;
- } else
- throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
- if (namespace1 == namespace2 || namespace2 === "*")
- namespace = namespace1;
- else {
- if (namespace1 !== "*")
- return _null;
- namespace = namespace2;
- }
- if (name1 == name2 || name2 == null)
- $name = name1;
- else {
- if (!(name1 == null || name1 === "*"))
- return _null;
- $name = name2;
- }
- return $name == null ? new N.UniversalSelector(namespace) : new F.TypeSelector(new D.QualifiedName($name, namespace));
- },
- weave: function(complexes) {
- var t2, t3, t4, target, _i, parents, newPrefixes, parentPrefixes, t5,
- t1 = type$.JSArray_List_ComplexSelectorComponent,
- prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
- for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- t4 = J.getInterceptor$asx(t3);
- if (t4.get$isEmpty(t3))
- continue;
- target = t4.get$last(t3);
- if (t4.get$length(t3) === 1) {
- for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
- J.add$1$ax(prefixes[_i], target);
- continue;
- }
- parents = t4.take$1(t3, t4.get$length(t3) - 1).toList$0(0);
- newPrefixes = H.setRuntimeTypeInfo([], t1);
- for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
- parentPrefixes = Y._weaveParents(prefixes[_i], parents);
- if (parentPrefixes == null)
- continue;
- for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- J.add$1$ax(t5, target);
- newPrefixes.push(t5);
- }
- }
- prefixes = newPrefixes;
- }
- return prefixes;
- },
- _weaveParents: function(parents1, parents2) {
- var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, _null = null,
- t1 = type$.ComplexSelectorComponent,
- queue1 = P.ListQueue_ListQueue$of(parents1, t1),
- queue2 = P.ListQueue_ListQueue$of(parents2, t1),
- initialCombinators = Y._mergeInitialCombinators(queue1, queue2);
- if (initialCombinators == null)
- return _null;
- finalCombinators = Y._mergeFinalCombinators(queue1, queue2, _null);
- if (finalCombinators == null)
- return _null;
- root1 = Y._firstIfRoot(queue1);
- root2 = Y._firstIfRoot(queue2);
- t1 = root1 != null;
- if (t1 && root2 != null) {
- root = Y.unifyCompound(root1.components, root2.components);
- if (root == null)
- return _null;
- queue1.addFirst$1(root);
- queue2.addFirst$1(root);
- } else if (t1)
- queue2.addFirst$1(root1);
- else if (root2 != null)
- queue1.addFirst$1(root2);
- groups1 = Y._groupSelectors(queue1);
- groups2 = Y._groupSelectors(queue2);
- t1 = type$.List_ComplexSelectorComponent;
- lcs = B.longestCommonSubsequence(groups2, groups1, new Y._weaveParents_closure(), t1);
- t2 = type$.JSArray_Iterable_ComplexSelectorComponent;
- choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_List_Iterable_ComplexSelectorComponent);
- for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
- group = lcs[_i];
- t4 = Y._chunks(groups1, groups2, new Y._weaveParents_closure0(group), t1);
- choices.push(new H.MappedListIterable(t4, new Y._weaveParents_closure1(), H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent>>")).toList$0(0));
- choices.push(H.setRuntimeTypeInfo([group], t2));
- groups1.removeFirst$0();
- groups2.removeFirst$0();
- }
- t2 = Y._chunks(groups1, groups2, new Y._weaveParents_closure2(), t1);
- choices.push(new H.MappedListIterable(t2, new Y._weaveParents_closure3(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent>>")).toList$0(0));
- C.JSArray_methods.addAll$1(choices, finalCombinators);
- return J.map$1$1$ax(Y.paths(new H.WhereIterable(choices, new Y._weaveParents_closure4(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent), type$.Iterable_ComplexSelectorComponent), new Y._weaveParents_closure5(), t1);
- },
- _firstIfRoot: function(queue) {
- var first;
- if (queue._collection$_head === queue._collection$_tail)
- return null;
- first = queue.get$first(queue);
- if (first instanceof X.CompoundSelector) {
- if (!Y._hasRoot(first))
- return null;
- queue.removeFirst$0();
- return first;
- } else
- return null;
- },
- _mergeInitialCombinators: function(components1, components2) {
- var t3, combinators2, lcs,
- t1 = type$.JSArray_Combinator,
- combinators1 = H.setRuntimeTypeInfo([], t1),
- t2 = type$.Combinator;
- while (true) {
- if (!components1.get$isEmpty(components1)) {
- t3 = components1._collection$_head;
- if (t3 === components1._collection$_tail)
- H.throwExpression(H.IterableElementError_noElement());
- t3 = components1._collection$_table[t3] instanceof S.Combinator;
- } else
- t3 = false;
- if (!t3)
- break;
- combinators1.push(t2._as(components1.removeFirst$0()));
- }
- combinators2 = H.setRuntimeTypeInfo([], t1);
- while (true) {
- if (!components2.get$isEmpty(components2)) {
- t1 = components2._collection$_head;
- if (t1 === components2._collection$_tail)
- H.throwExpression(H.IterableElementError_noElement());
- t1 = components2._collection$_table[t1] instanceof S.Combinator;
- } else
- t1 = false;
- if (!t1)
- break;
- combinators2.push(t2._as(components2.removeFirst$0()));
- }
- lcs = B.longestCommonSubsequence(combinators1, combinators2, null, t2);
- if (C.C_ListEquality.equals$2(lcs, combinators1))
- return combinators2;
- if (C.C_ListEquality.equals$2(lcs, combinators2))
- return combinators1;
- return null;
- },
- _mergeFinalCombinators: function(components1, components2, result) {
- var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
- if (result == null)
- result = Q.QueueList$(_null, type$.List_List_ComplexSelectorComponent);
- if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator))
- t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator);
- else
- t1 = false;
- if (t1)
- return result;
- t1 = type$.JSArray_Combinator;
- combinators1 = H.setRuntimeTypeInfo([], t1);
- t2 = type$.Combinator;
- while (true) {
- if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator))
- break;
- combinators1.push(t2._as(components1.removeLast$0(0)));
- }
- combinators2 = H.setRuntimeTypeInfo([], t1);
- while (true) {
- if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator))
- break;
- combinators2.push(t2._as(components2.removeLast$0(0)));
- }
- t1 = combinators1.length;
- if (t1 > 1 || combinators2.length > 1) {
- lcs = B.longestCommonSubsequence(combinators1, combinators2, _null, t2);
- if (C.C_ListEquality.equals$2(lcs, combinators1))
- result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_Combinator), true, type$.ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- else if (C.C_ListEquality.equals$2(lcs, combinators2))
- result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_Combinator), true, type$.ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- else
- return _null;
- return result;
- }
- combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
- combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
- t1 = combinator1 != null;
- if (t1 && combinator2 != null) {
- t1 = type$.CompoundSelector;
- compound1 = t1._as(components1.removeLast$0(0));
- compound2 = t1._as(components2.removeLast$0(0));
- t1 = combinator1 === C.Combinator_CzM;
- if (t1 && combinator2 === C.Combinator_CzM) {
- compound1.toString;
- if (Y.compoundIsSuperselector(compound1, compound2, _null))
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- else {
- compound2.toString;
- t1 = type$.JSArray_ComplexSelectorComponent;
- t2 = type$.JSArray_List_ComplexSelectorComponent;
- if (Y.compoundIsSuperselector(compound2, compound1, _null))
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM], t1)], t2));
- else {
- 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);
- unified = Y.unifyCompound(compound1.components, compound2.components);
- if (unified != null)
- choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM], t1));
- result.addFirst$1(choices);
- }
- }
- } else {
- if (!(t1 && combinator2 === C.Combinator_uzg))
- t2 = combinator1 === C.Combinator_uzg && combinator2 === C.Combinator_CzM;
- else
- t2 = true;
- if (t2) {
- followingSiblingSelector = t1 ? compound1 : compound2;
- nextSiblingSelector = t1 ? compound2 : compound1;
- followingSiblingSelector.toString;
- t1 = type$.JSArray_ComplexSelectorComponent;
- t2 = type$.JSArray_List_ComplexSelectorComponent;
- if (Y.compoundIsSuperselector(followingSiblingSelector, nextSiblingSelector, _null))
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg], t1)], t2));
- else {
- unified = Y.unifyCompound(compound1.components, compound2.components);
- t2 = H.setRuntimeTypeInfo([], t2);
- t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM, nextSiblingSelector, C.Combinator_uzg], t1));
- if (unified != null)
- t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg], t1));
- result.addFirst$1(t2);
- }
- } else {
- if (combinator1 === C.Combinator_sgq)
- t2 = combinator2 === C.Combinator_uzg || combinator2 === C.Combinator_CzM;
- else
- t2 = false;
- if (t2) {
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- components1._add$1(compound1);
- components1._add$1(C.Combinator_sgq);
- } else {
- if (combinator2 === C.Combinator_sgq)
- t1 = combinator1 === C.Combinator_uzg || t1;
- else
- t1 = false;
- if (t1) {
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- components2._add$1(compound2);
- components2._add$1(C.Combinator_sgq);
- } else if (combinator1 === combinator2) {
- unified = Y.unifyCompound(compound1.components, compound2.components);
- if (unified == null)
- return _null;
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- } else
- return _null;
- }
- }
- }
- return Y._mergeFinalCombinators(components1, components2, result);
- } else if (t1) {
- if (combinator1 === C.Combinator_sgq)
- if (!components2.get$isEmpty(components2)) {
- t1 = type$.CompoundSelector;
- t2 = t1._as(components2.get$last(components2));
- t1 = t1._as(components1.get$last(components1));
- t2.toString;
- t1 = Y.compoundIsSuperselector(t2, t1, _null);
- } else
- t1 = false;
- else
- t1 = false;
- if (t1)
- components2.removeLast$0(0);
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- return Y._mergeFinalCombinators(components1, components2, result);
- } else {
- if (combinator2 === C.Combinator_sgq)
- if (!components1.get$isEmpty(components1)) {
- t1 = type$.CompoundSelector;
- t2 = t1._as(components1.get$last(components1));
- t1 = t1._as(components2.get$last(components2));
- t2.toString;
- t1 = Y.compoundIsSuperselector(t2, t1, _null);
- } else
- t1 = false;
- else
- t1 = false;
- if (t1)
- components1.removeLast$0(0);
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- return Y._mergeFinalCombinators(components1, components2, result);
- }
- },
- _mustUnify: function(complex1, complex2) {
- var t2, t3, t4,
- t1 = P.LinkedHashSet_LinkedHashSet(type$.SimpleSelector);
- for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- if (t3 instanceof X.CompoundSelector)
- for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions___isUnique$closure()); t4.moveNext$0();)
- t1.add$1(0, t3.get$current(t3));
- }
- if (t1._collection$_length === 0)
- return false;
- return J.any$1$ax(complex2, new Y._mustUnify_closure(t1));
- },
- _isUnique: function(simple) {
- var t1;
- if (!(simple instanceof N.IDSelector))
- t1 = simple instanceof D.PseudoSelector && !simple.isClass;
- else
- t1 = true;
- return t1;
- },
- _chunks: function(queue1, queue2, done, $T) {
- var chunk2, t2, t3, _i,
- t1 = $T._eval$1("JSArray<0>"),
- chunk1 = H.setRuntimeTypeInfo([], t1);
- for (; !done.call$1(queue1);)
- chunk1.push(queue1.removeFirst$0());
- chunk2 = H.setRuntimeTypeInfo([], t1);
- for (; !done.call$1(queue2);)
- chunk2.push(queue2.removeFirst$0());
- t2 = chunk1.length === 0;
- if (t2 && chunk2.length === 0)
- return H.setRuntimeTypeInfo([], $T._eval$1("JSArray<List<0>>"));
- if (t2)
- return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray<List<0>>"));
- if (chunk2.length === 0)
- return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray<List<0>>"));
- t2 = H.setRuntimeTypeInfo([], t1);
- for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
- t2.push(chunk1[_i]);
- for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
- t2.push(chunk2[_i]);
- t1 = H.setRuntimeTypeInfo([], t1);
- for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
- t1.push(chunk2[_i]);
- for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
- t1.push(chunk1[_i]);
- return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray<List<0>>"));
- },
- paths: function(choices, $T) {
- 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));
- },
- _groupSelectors: function(complex) {
- var t1, group, t2, t3,
- groups = Q.QueueList$(null, type$.List_ComplexSelectorComponent),
- iterator = P._ListQueueIterator$(complex);
- if (!iterator.moveNext$0())
- return groups;
- t1 = type$.JSArray_ComplexSelectorComponent;
- group = H.setRuntimeTypeInfo([iterator._collection$_current], t1);
- groups._queue_list$_add$1(group);
- for (; iterator.moveNext$0();) {
- t2 = C.JSArray_methods.get$last(group) instanceof S.Combinator || iterator._collection$_current instanceof S.Combinator;
- t3 = iterator._collection$_current;
- if (t2)
- group.push(t3);
- else {
- group = H.setRuntimeTypeInfo([t3], t1);
- groups._queue_list$_add$1(group);
- }
- }
- return groups;
- },
- _hasRoot: function(compound) {
- return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure());
- },
- listIsSuperslector: function(list1, list2) {
- return C.JSArray_methods.every$1(list2, new Y.listIsSuperslector_closure(list1));
- },
- complexIsParentSuperselector: function(complex1, complex2) {
- var t2, base, t3, t4,
- t1 = J.getInterceptor$ax(complex1);
- if (t1.get$first(complex1) instanceof S.Combinator)
- return false;
- t2 = J.getInterceptor$ax(complex2);
- if (t2.get$first(complex2) instanceof S.Combinator)
- return false;
- if (t1.get$length(complex1) > t2.get$length(complex2))
- return false;
- base = X.CompoundSelector$(H.setRuntimeTypeInfo([new N.PlaceholderSelector("<temp>")], type$.JSArray_SimpleSelector));
- t3 = type$.JSArray_ComplexSelectorComponent;
- t4 = H.setRuntimeTypeInfo([], t3);
- for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
- t4.push(t1.get$current(t1));
- t4.push(base);
- t1 = H.setRuntimeTypeInfo([], t3);
- for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
- t1.push(t2.get$current(t2));
- t1.push(base);
- return Y.complexIsSuperselector(t4, t1);
- },
- complexIsSuperselector: function(complex1, complex2) {
- var t1, t2, i1, i2, remaining1, remaining2, t3, afterSuperselector, afterSuperselector0, t4, compound2, i10, combinator1, combinator2;
- if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator)
- return false;
- if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator)
- return false;
- for (t1 = H._arrayInstanceType(complex2)._precomputed1, t2 = type$.CompoundSelector, i1 = 0, i2 = 0; true;) {
- remaining1 = complex1.length - i1;
- remaining2 = complex2.length - i2;
- if (remaining1 === 0 || remaining2 === 0)
- return false;
- if (remaining1 > remaining2)
- return false;
- t3 = complex1[i1];
- if (t3 instanceof S.Combinator)
- return false;
- if (complex2[i2] instanceof S.Combinator)
- return false;
- t2._as(t3);
- if (remaining1 === 1)
- return Y.compoundIsSuperselector(t3, t2._as(C.JSArray_methods.get$last(complex2)), H.SubListIterable$(complex2, 0, complex2.length - 1, t1).skip$1(0, i2));
- afterSuperselector = i2 + 1;
- for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
- t4 = afterSuperselector0 - 1;
- compound2 = complex2[t4];
- if (compound2 instanceof X.CompoundSelector)
- if (Y.compoundIsSuperselector(t3, compound2, H.SubListIterable$(complex2, 0, t4, t1).skip$1(0, afterSuperselector)))
- break;
- }
- if (afterSuperselector0 === complex2.length)
- return false;
- i10 = i1 + 1;
- combinator1 = complex1[i10];
- combinator2 = complex2[afterSuperselector0];
- if (combinator1 instanceof S.Combinator) {
- if (!(combinator2 instanceof S.Combinator))
- return false;
- if (combinator1 === C.Combinator_CzM) {
- if (combinator2 === C.Combinator_sgq)
- return false;
- } else if (combinator2 !== combinator1)
- return false;
- if (remaining1 === 3 && remaining2 > 3)
- return false;
- i1 += 2;
- i2 = afterSuperselector0 + 1;
- } else {
- if (combinator2 instanceof S.Combinator) {
- if (combinator2 !== C.Combinator_sgq)
- return false;
- i2 = afterSuperselector0 + 1;
- } else
- i2 = afterSuperselector0;
- i1 = i10;
- }
- }
- },
- compoundIsSuperselector: function(compound1, compound2, parents) {
- var t1, t2, _i, simple1, simple2;
- for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- simple1 = t1[_i];
- if (simple1 instanceof D.PseudoSelector && simple1.selector != null) {
- if (!Y._selectorPseudoIsSuperselector(simple1, compound2, parents))
- return false;
- } else if (!Y._simpleIsSuperselectorOfCompound(simple1, compound2))
- return false;
- }
- for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- simple2 = t1[_i];
- if (simple2 instanceof D.PseudoSelector && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound(simple2, compound1))
- return false;
- }
- return true;
- },
- _simpleIsSuperselectorOfCompound: function(simple, compound) {
- return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure(simple));
- },
- _selectorPseudoIsSuperselector: function(pseudo1, compound2, parents) {
- switch (pseudo1.normalizedName) {
- case "matches":
- case "any":
- 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));
- case "has":
- case "host":
- case "host-context":
- return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure1(pseudo1));
- case "slotted":
- return Y._selectorPseudosNamed(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure2(pseudo1));
- case "not":
- return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure3(compound2, pseudo1));
- case "current":
- return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure4(pseudo1));
- case "nth-child":
- case "nth-last-child":
- return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure5(pseudo1));
- default:
- throw H.wrapException("unreachable");
- }
- },
- _selectorPseudosNamed: function(compound, $name, isClass) {
- var t1 = type$.WhereTypeIterable_PseudoSelector;
- return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>"));
- },
- unifyComplex_closure: function unifyComplex_closure() {
- },
- _weaveParents_closure: function _weaveParents_closure() {
- },
- _weaveParents_closure0: function _weaveParents_closure0(t0) {
- this.group = t0;
- },
- _weaveParents_closure1: function _weaveParents_closure1() {
- },
- _weaveParents__closure1: function _weaveParents__closure1() {
- },
- _weaveParents_closure2: function _weaveParents_closure2() {
- },
- _weaveParents_closure3: function _weaveParents_closure3() {
- },
- _weaveParents__closure0: function _weaveParents__closure0() {
- },
- _weaveParents_closure4: function _weaveParents_closure4() {
- },
- _weaveParents_closure5: function _weaveParents_closure5() {
- },
- _weaveParents__closure: function _weaveParents__closure() {
- },
- _mustUnify_closure: function _mustUnify_closure(t0) {
- this.uniqueSelectors = t0;
- },
- _mustUnify__closure: function _mustUnify__closure(t0) {
- this.uniqueSelectors = t0;
- },
- paths_closure: function paths_closure(t0) {
- this.T = t0;
- },
- paths__closure: function paths__closure(t0, t1) {
- this.paths = t0;
- this.T = t1;
- },
- paths___closure: function paths___closure(t0, t1) {
- this.option = t0;
- this.T = t1;
- },
- _hasRoot_closure: function _hasRoot_closure() {
- },
- listIsSuperslector_closure: function listIsSuperslector_closure(t0) {
- this.list1 = t0;
- },
- listIsSuperslector__closure: function listIsSuperslector__closure(t0) {
- this.complex1 = t0;
- },
- _simpleIsSuperselectorOfCompound_closure: function _simpleIsSuperselectorOfCompound_closure(t0) {
- this.simple = t0;
- },
- _simpleIsSuperselectorOfCompound__closure: function _simpleIsSuperselectorOfCompound__closure(t0) {
- this.simple = t0;
- },
- _selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) {
- this.parents = t0;
- this.compound2 = t1;
- },
- _selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) {
- this.compound2 = t0;
- this.pseudo1 = t1;
- },
- _selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) {
- this.complex = t0;
- this.pseudo1 = t1;
- },
- _selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) {
- this.simple2 = t0;
- },
- _selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) {
- this.simple2 = t0;
- },
- _selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudosNamed_closure: function _selectorPseudosNamed_closure(t0, t1) {
- this.isClass = t0;
- this.name = t1;
- },
- closure: function closure() {
- },
- Chokidar: function Chokidar() {
- },
- ChokidarOptions: function ChokidarOptions() {
- },
- ChokidarWatcher: function ChokidarWatcher() {
- },
- SourceFile$decoded: function(decodedChars, url) {
- var t1 = H.setRuntimeTypeInfo([0], type$.JSArray_int),
- t2 = typeof url == "string" ? P.Uri_parse(url) : type$.Uri._as(url);
- t1 = new Y.SourceFile(t2, t1, new Uint32Array(H._ensureNativeList(J.toList$0$ax(decodedChars))));
- t1.SourceFile$decoded$2$url(decodedChars, url);
- return t1;
- },
- FileLocation$_: function(file, offset) {
- if (offset < 0)
- H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
- else if (offset > file._decodedChars.length)
- H.throwExpression(P.RangeError$("Offset " + offset + " must not be greater than the number of characters in the file, " + file.get$length(file) + "."));
- return new Y.FileLocation(file, offset);
- },
- _FileSpan$: function(file, _start, _end) {
- if (_end < _start)
- H.throwExpression(P.ArgumentError$("End " + _end + " must come after start " + _start + "."));
- else if (_end > file._decodedChars.length)
- H.throwExpression(P.RangeError$("End " + _end + " must not be greater than the number of characters in the file, " + file.get$length(file) + "."));
- else if (_start < 0)
- H.throwExpression(P.RangeError$("Start may not be negative, was " + _start + "."));
- return new Y._FileSpan(file, _start, _end);
- },
- SourceFile: function SourceFile(t0, t1, t2) {
- var _ = this;
- _.url = t0;
- _._lineStarts = t1;
- _._decodedChars = t2;
- _._cachedLine = null;
- },
- FileLocation: function FileLocation(t0, t1) {
- this.file = t0;
- this.offset = t1;
- },
- FileSpan: function FileSpan() {
- },
- _FileSpan: function _FileSpan(t0, t1, t2) {
- this.file = t0;
- this._file$_start = t1;
- this._end = t2;
- },
- SourceSpanMixin: function SourceSpanMixin() {
- },
- Trace_Trace$from: function(trace) {
- if (trace == null)
- throw H.wrapException(P.ArgumentError$("Cannot create a Trace from null."));
- if (type$.Trace._is(trace))
- return trace;
- if (trace instanceof U.Chain)
- return trace.toTrace$0();
- return new T.LazyTrace(new Y.Trace_Trace$from_closure(trace));
- },
- Trace_Trace$parse: function(trace) {
- var error, t1, exception;
- try {
- if (trace.length === 0) {
- t1 = P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_Frame), type$.Frame);
- return new Y.Trace(t1, new P._StringStackTrace(null));
- }
- if (C.JSString_methods.contains$1(trace, $.$get$_v8Trace())) {
- t1 = Y.Trace$parseV8(trace);
- return t1;
- }
- if (C.JSString_methods.contains$1(trace, "\tat ")) {
- t1 = Y.Trace$parseJSCore(trace);
- return t1;
- }
- if (C.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace())) {
- t1 = Y.Trace$parseFirefox(trace);
- return t1;
- }
- if (C.JSString_methods.contains$1(trace, "===== asynchronous gap ===========================\n")) {
- t1 = U.Chain_Chain$parse(trace).toTrace$0();
- return t1;
- }
- if (C.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) {
- t1 = Y.Trace$parseFriendly(trace);
- return t1;
- }
- t1 = P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.Frame);
- return new Y.Trace(t1, new P._StringStackTrace(trace));
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- error = t1;
- throw H.wrapException(P.FormatException$(H.S(J.get$message$x(error)) + "\nStack trace:\n" + H.S(trace), null, null));
- } else
- throw exception;
- }
- },
- Trace__parseVM: function(trace) {
- var $frames,
- t1 = J.trim$0$s(trace),
- lines = H.setRuntimeTypeInfo(H.stringReplaceAllUnchecked(t1, "<asynchronous suspension>\n", "").split("\n"), type$.JSArray_String);
- t1 = H.SubListIterable$(lines, 0, lines.length - 1, type$.String);
- $frames = new H.MappedListIterable(t1, new Y.Trace__parseVM_closure(), t1.$ti._eval$1("MappedListIterable<ListIterable.E,Frame>")).toList$0(0);
- if (!J.endsWith$1$s(C.JSArray_methods.get$last(lines), ".da"))
- C.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(C.JSArray_methods.get$last(lines)));
- return $frames;
- },
- Trace$parseV8: function(trace) {
- 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()),
- t2 = type$.Frame;
- 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));
- },
- Trace$parseJSCore: function(trace) {
- 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_String_Frame), type$.Frame), new P._StringStackTrace(trace));
- },
- Trace$parseFirefox: function(trace) {
- 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_String_Frame), type$.Frame), new P._StringStackTrace(trace));
- },
- Trace$parseFriendly: function(trace) {
- var t1 = trace.length === 0 ? H.setRuntimeTypeInfo([], type$.JSArray_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_String_Frame);
- return new Y.Trace(P.List_List$unmodifiable(t1, type$.Frame), new P._StringStackTrace(trace));
- },
- Trace: function Trace(t0, t1) {
- this.frames = t0;
- this.original = t1;
- },
- Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) {
- this.trace = t0;
- },
- Trace__parseVM_closure: function Trace__parseVM_closure() {
- },
- Trace$parseV8_closure: function Trace$parseV8_closure() {
- },
- Trace$parseV8_closure0: function Trace$parseV8_closure0() {
- },
- Trace$parseJSCore_closure: function Trace$parseJSCore_closure() {
- },
- Trace$parseJSCore_closure0: function Trace$parseJSCore_closure0() {
- },
- Trace$parseFirefox_closure: function Trace$parseFirefox_closure() {
- },
- Trace$parseFirefox_closure0: function Trace$parseFirefox_closure0() {
- },
- Trace$parseFriendly_closure: function Trace$parseFriendly_closure() {
- },
- Trace$parseFriendly_closure0: function Trace$parseFriendly_closure0() {
- },
- Trace_terse_closure: function Trace_terse_closure() {
- },
- Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) {
- this.oldPredicate = t0;
- },
- Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) {
- this._box_0 = t0;
- },
- Trace_toString_closure0: function Trace_toString_closure0() {
- },
- Trace_toString_closure: function Trace_toString_closure(t0) {
- this.longest = t0;
- },
- Chokidar0: function Chokidar0() {
- },
- ChokidarOptions0: function ChokidarOptions0() {
- },
- ChokidarWatcher0: function ChokidarWatcher0() {
- },
- ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.$arguments = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- unifyComplex0: function(complexes) {
- var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
- t1 = J.getInterceptor$asx(complexes);
- if (t1.get$length(complexes) === 1)
- return complexes;
- for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
- base = J.get$last$ax(t2.get$current(t2));
- if (base instanceof X.CompoundSelector0)
- if (unifiedBase == null)
- unifiedBase = base.components;
- else
- for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
- unifiedBase = t3[_i].unify$1(unifiedBase);
- if (unifiedBase == null)
- return null;
- }
- else
- return null;
- }
- complexesWithoutBases = t1.map$1$1(complexes, new Y.unifyComplex_closure0(), type$.List_ComplexSelectorComponent_2).toList$0(0);
- J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$0(unifiedBase));
- return Y.weave0(complexesWithoutBases);
- },
- unifyCompound0: function(compound1, compound2) {
- var t1, result, _i;
- for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
- result = compound1[_i].unify$1(result);
- if (result == null)
- return null;
- }
- return X.CompoundSelector$0(result);
- },
- unifyUniversalAndElement0: function(selector1, selector2) {
- var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
- _s45_ = "must be a UniversalSelector or a TypeSelector";
- if (selector1 instanceof N.UniversalSelector0) {
- namespace1 = selector1.namespace;
- name1 = _null;
- } else if (selector1 instanceof F.TypeSelector0) {
- t1 = selector1.name;
- namespace1 = t1.namespace;
- name1 = t1.name;
- } else
- throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
- if (selector2 instanceof N.UniversalSelector0) {
- namespace2 = selector2.namespace;
- name2 = _null;
- } else if (selector2 instanceof F.TypeSelector0) {
- t1 = selector2.name;
- namespace2 = t1.namespace;
- name2 = t1.name;
- } else
- throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
- if (namespace1 == namespace2 || namespace2 === "*")
- namespace = namespace1;
- else {
- if (namespace1 !== "*")
- return _null;
- namespace = namespace2;
- }
- if (name1 == name2 || name2 == null)
- $name = name1;
- else {
- if (!(name1 == null || name1 === "*"))
- return _null;
- $name = name2;
- }
- return $name == null ? new N.UniversalSelector0(namespace) : new F.TypeSelector0(new D.QualifiedName0($name, namespace));
- },
- weave0: function(complexes) {
- var t2, t3, t4, target, _i, parents, newPrefixes, parentPrefixes, t5,
- t1 = type$.JSArray_List_ComplexSelectorComponent_2,
- prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
- for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- t4 = J.getInterceptor$asx(t3);
- if (t4.get$isEmpty(t3))
- continue;
- target = t4.get$last(t3);
- if (t4.get$length(t3) === 1) {
- for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
- J.add$1$ax(prefixes[_i], target);
- continue;
- }
- parents = t4.take$1(t3, t4.get$length(t3) - 1).toList$0(0);
- newPrefixes = H.setRuntimeTypeInfo([], t1);
- for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
- parentPrefixes = Y._weaveParents0(prefixes[_i], parents);
- if (parentPrefixes == null)
- continue;
- for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- J.add$1$ax(t5, target);
- newPrefixes.push(t5);
- }
- }
- prefixes = newPrefixes;
- }
- return prefixes;
- },
- _weaveParents0: function(parents1, parents2) {
- var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, _null = null,
- t1 = type$.ComplexSelectorComponent_2,
- queue1 = P.ListQueue_ListQueue$of(parents1, t1),
- queue2 = P.ListQueue_ListQueue$of(parents2, t1),
- initialCombinators = Y._mergeInitialCombinators0(queue1, queue2);
- if (initialCombinators == null)
- return _null;
- finalCombinators = Y._mergeFinalCombinators0(queue1, queue2, _null);
- if (finalCombinators == null)
- return _null;
- root1 = Y._firstIfRoot0(queue1);
- root2 = Y._firstIfRoot0(queue2);
- t1 = root1 != null;
- if (t1 && root2 != null) {
- root = Y.unifyCompound0(root1.components, root2.components);
- if (root == null)
- return _null;
- queue1.addFirst$1(root);
- queue2.addFirst$1(root);
- } else if (t1)
- queue2.addFirst$1(root1);
- else if (root2 != null)
- queue1.addFirst$1(root2);
- groups1 = Y._groupSelectors0(queue1);
- groups2 = Y._groupSelectors0(queue2);
- t1 = type$.List_ComplexSelectorComponent_2;
- lcs = B.longestCommonSubsequence0(groups2, groups1, new Y._weaveParents_closure6(), t1);
- t2 = type$.JSArray_Iterable_ComplexSelectorComponent_2;
- choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_List_Iterable_ComplexSelectorComponent_2);
- for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
- group = lcs[_i];
- t4 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure7(group), t1);
- choices.push(new H.MappedListIterable(t4, new Y._weaveParents_closure8(), H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent0>>")).toList$0(0));
- choices.push(H.setRuntimeTypeInfo([group], t2));
- groups1.removeFirst$0();
- groups2.removeFirst$0();
- }
- t2 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure9(), t1);
- choices.push(new H.MappedListIterable(t2, new Y._weaveParents_closure10(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent0>>")).toList$0(0));
- C.JSArray_methods.addAll$1(choices, finalCombinators);
- return J.map$1$1$ax(Y.paths0(new H.WhereIterable(choices, new Y._weaveParents_closure11(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent_2), type$.Iterable_ComplexSelectorComponent_2), new Y._weaveParents_closure12(), t1);
- },
- _firstIfRoot0: function(queue) {
- var first;
- if (queue._collection$_head === queue._collection$_tail)
- return null;
- first = queue.get$first(queue);
- if (first instanceof X.CompoundSelector0) {
- if (!Y._hasRoot0(first))
- return null;
- queue.removeFirst$0();
- return first;
- } else
- return null;
- },
- _mergeInitialCombinators0: function(components1, components2) {
- var t3, combinators2, lcs,
- t1 = type$.JSArray_Combinator_2,
- combinators1 = H.setRuntimeTypeInfo([], t1),
- t2 = type$.Combinator_2;
- while (true) {
- if (!components1.get$isEmpty(components1)) {
- t3 = components1._collection$_head;
- if (t3 === components1._collection$_tail)
- H.throwExpression(H.IterableElementError_noElement());
- t3 = components1._collection$_table[t3] instanceof S.Combinator0;
- } else
- t3 = false;
- if (!t3)
- break;
- combinators1.push(t2._as(components1.removeFirst$0()));
- }
- combinators2 = H.setRuntimeTypeInfo([], t1);
- while (true) {
- if (!components2.get$isEmpty(components2)) {
- t1 = components2._collection$_head;
- if (t1 === components2._collection$_tail)
- H.throwExpression(H.IterableElementError_noElement());
- t1 = components2._collection$_table[t1] instanceof S.Combinator0;
- } else
- t1 = false;
- if (!t1)
- break;
- combinators2.push(t2._as(components2.removeFirst$0()));
- }
- lcs = B.longestCommonSubsequence0(combinators1, combinators2, null, t2);
- if (C.C_ListEquality.equals$2(lcs, combinators1))
- return combinators2;
- if (C.C_ListEquality.equals$2(lcs, combinators2))
- return combinators1;
- return null;
- },
- _mergeFinalCombinators0: function(components1, components2, result) {
- var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
- if (result == null)
- result = Q.QueueList$(_null, type$.List_List_ComplexSelectorComponent_2);
- if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator0))
- t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator0);
- else
- t1 = false;
- if (t1)
- return result;
- t1 = type$.JSArray_Combinator_2;
- combinators1 = H.setRuntimeTypeInfo([], t1);
- t2 = type$.Combinator_2;
- while (true) {
- if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator0))
- break;
- combinators1.push(t2._as(components1.removeLast$0(0)));
- }
- combinators2 = H.setRuntimeTypeInfo([], t1);
- while (true) {
- if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator0))
- break;
- combinators2.push(t2._as(components2.removeLast$0(0)));
- }
- t1 = combinators1.length;
- if (t1 > 1 || combinators2.length > 1) {
- lcs = B.longestCommonSubsequence0(combinators1, combinators2, _null, t2);
- if (C.C_ListEquality.equals$2(lcs, combinators1))
- result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_Combinator_2), true, type$.ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- else if (C.C_ListEquality.equals$2(lcs, combinators2))
- result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_Combinator_2), true, type$.ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- else
- return _null;
- return result;
- }
- combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
- combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
- t1 = combinator1 != null;
- if (t1 && combinator2 != null) {
- t1 = type$.CompoundSelector_2;
- compound1 = t1._as(components1.removeLast$0(0));
- compound2 = t1._as(components2.removeLast$0(0));
- t1 = combinator1 === C.Combinator_CzM0;
- if (t1 && combinator2 === C.Combinator_CzM0) {
- compound1.toString;
- if (Y.compoundIsSuperselector0(compound1, compound2, _null))
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- else {
- compound2.toString;
- t1 = type$.JSArray_ComplexSelectorComponent_2;
- t2 = type$.JSArray_List_ComplexSelectorComponent_2;
- if (Y.compoundIsSuperselector0(compound2, compound1, _null))
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0], t1)], t2));
- else {
- 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);
- unified = Y.unifyCompound0(compound1.components, compound2.components);
- if (unified != null)
- choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM0], t1));
- result.addFirst$1(choices);
- }
- }
- } else {
- if (!(t1 && combinator2 === C.Combinator_uzg0))
- t2 = combinator1 === C.Combinator_uzg0 && combinator2 === C.Combinator_CzM0;
- else
- t2 = true;
- if (t2) {
- followingSiblingSelector = t1 ? compound1 : compound2;
- nextSiblingSelector = t1 ? compound2 : compound1;
- followingSiblingSelector.toString;
- t1 = type$.JSArray_ComplexSelectorComponent_2;
- t2 = type$.JSArray_List_ComplexSelectorComponent_2;
- if (Y.compoundIsSuperselector0(followingSiblingSelector, nextSiblingSelector, _null))
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg0], t1)], t2));
- else {
- unified = Y.unifyCompound0(compound1.components, compound2.components);
- t2 = H.setRuntimeTypeInfo([], t2);
- t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM0, nextSiblingSelector, C.Combinator_uzg0], t1));
- if (unified != null)
- t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg0], t1));
- result.addFirst$1(t2);
- }
- } else {
- if (combinator1 === C.Combinator_sgq0)
- t2 = combinator2 === C.Combinator_uzg0 || combinator2 === C.Combinator_CzM0;
- else
- t2 = false;
- if (t2) {
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- components1._add$1(compound1);
- components1._add$1(C.Combinator_sgq0);
- } else {
- if (combinator2 === C.Combinator_sgq0)
- t1 = combinator1 === C.Combinator_uzg0 || t1;
- else
- t1 = false;
- if (t1) {
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- components2._add$1(compound2);
- components2._add$1(C.Combinator_sgq0);
- } else if (combinator1 === combinator2) {
- unified = Y.unifyCompound0(compound1.components, compound2.components);
- if (unified == null)
- return _null;
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- } else
- return _null;
- }
- }
- }
- return Y._mergeFinalCombinators0(components1, components2, result);
- } else if (t1) {
- if (combinator1 === C.Combinator_sgq0)
- if (!components2.get$isEmpty(components2)) {
- t1 = type$.CompoundSelector_2;
- t2 = t1._as(components2.get$last(components2));
- t1 = t1._as(components1.get$last(components1));
- t2.toString;
- t1 = Y.compoundIsSuperselector0(t2, t1, _null);
- } else
- t1 = false;
- else
- t1 = false;
- if (t1)
- components2.removeLast$0(0);
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- return Y._mergeFinalCombinators0(components1, components2, result);
- } else {
- if (combinator2 === C.Combinator_sgq0)
- if (!components1.get$isEmpty(components1)) {
- t1 = type$.CompoundSelector_2;
- t2 = t1._as(components1.get$last(components1));
- t1 = t1._as(components2.get$last(components2));
- t2.toString;
- t1 = Y.compoundIsSuperselector0(t2, t1, _null);
- } else
- t1 = false;
- else
- t1 = false;
- if (t1)
- components1.removeLast$0(0);
- result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- return Y._mergeFinalCombinators0(components1, components2, result);
- }
- },
- _mustUnify0: function(complex1, complex2) {
- var t2, t3, t4,
- t1 = P.LinkedHashSet_LinkedHashSet(type$.SimpleSelector_2);
- for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- if (t3 instanceof X.CompoundSelector0)
- for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions0___isUnique$closure()); t4.moveNext$0();)
- t1.add$1(0, t3.get$current(t3));
- }
- if (t1._collection$_length === 0)
- return false;
- return J.any$1$ax(complex2, new Y._mustUnify_closure0(t1));
- },
- _isUnique0: function(simple) {
- var t1;
- if (!(simple instanceof N.IDSelector0))
- t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
- else
- t1 = true;
- return t1;
- },
- _chunks0: function(queue1, queue2, done, $T) {
- var chunk2, t2, t3, _i,
- t1 = $T._eval$1("JSArray<0>"),
- chunk1 = H.setRuntimeTypeInfo([], t1);
- for (; !done.call$1(queue1);)
- chunk1.push(queue1.removeFirst$0());
- chunk2 = H.setRuntimeTypeInfo([], t1);
- for (; !done.call$1(queue2);)
- chunk2.push(queue2.removeFirst$0());
- t2 = chunk1.length === 0;
- if (t2 && chunk2.length === 0)
- return H.setRuntimeTypeInfo([], $T._eval$1("JSArray<List<0>>"));
- if (t2)
- return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray<List<0>>"));
- if (chunk2.length === 0)
- return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray<List<0>>"));
- t2 = H.setRuntimeTypeInfo([], t1);
- for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
- t2.push(chunk1[_i]);
- for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
- t2.push(chunk2[_i]);
- t1 = H.setRuntimeTypeInfo([], t1);
- for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
- t1.push(chunk2[_i]);
- for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
- t1.push(chunk1[_i]);
- return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray<List<0>>"));
- },
- paths0: function(choices, $T) {
- 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));
- },
- _groupSelectors0: function(complex) {
- var t1, group, t2, t3,
- groups = Q.QueueList$(null, type$.List_ComplexSelectorComponent_2),
- iterator = P._ListQueueIterator$(complex);
- if (!iterator.moveNext$0())
- return groups;
- t1 = type$.JSArray_ComplexSelectorComponent_2;
- group = H.setRuntimeTypeInfo([iterator._collection$_current], t1);
- groups._queue_list$_add$1(group);
- for (; iterator.moveNext$0();) {
- t2 = C.JSArray_methods.get$last(group) instanceof S.Combinator0 || iterator._collection$_current instanceof S.Combinator0;
- t3 = iterator._collection$_current;
- if (t2)
- group.push(t3);
- else {
- group = H.setRuntimeTypeInfo([t3], t1);
- groups._queue_list$_add$1(group);
- }
- }
- return groups;
- },
- _hasRoot0: function(compound) {
- return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure0());
- },
- listIsSuperslector0: function(list1, list2) {
- return C.JSArray_methods.every$1(list2, new Y.listIsSuperslector_closure0(list1));
- },
- complexIsParentSuperselector0: function(complex1, complex2) {
- var t2, base, t3, t4,
- t1 = J.getInterceptor$ax(complex1);
- if (t1.get$first(complex1) instanceof S.Combinator0)
- return false;
- t2 = J.getInterceptor$ax(complex2);
- if (t2.get$first(complex2) instanceof S.Combinator0)
- return false;
- if (t1.get$length(complex1) > t2.get$length(complex2))
- return false;
- base = X.CompoundSelector$0(H.setRuntimeTypeInfo([new N.PlaceholderSelector0("<temp>")], type$.JSArray_SimpleSelector_2));
- t3 = type$.JSArray_ComplexSelectorComponent_2;
- t4 = H.setRuntimeTypeInfo([], t3);
- for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
- t4.push(t1.get$current(t1));
- t4.push(base);
- t1 = H.setRuntimeTypeInfo([], t3);
- for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
- t1.push(t2.get$current(t2));
- t1.push(base);
- return Y.complexIsSuperselector0(t4, t1);
- },
- complexIsSuperselector0: function(complex1, complex2) {
- var t1, t2, i1, i2, remaining1, remaining2, t3, afterSuperselector, afterSuperselector0, t4, compound2, i10, combinator1, combinator2;
- if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator0)
- return false;
- if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator0)
- return false;
- for (t1 = H._arrayInstanceType(complex2)._precomputed1, t2 = type$.CompoundSelector_2, i1 = 0, i2 = 0; true;) {
- remaining1 = complex1.length - i1;
- remaining2 = complex2.length - i2;
- if (remaining1 === 0 || remaining2 === 0)
- return false;
- if (remaining1 > remaining2)
- return false;
- t3 = complex1[i1];
- if (t3 instanceof S.Combinator0)
- return false;
- if (complex2[i2] instanceof S.Combinator0)
- return false;
- t2._as(t3);
- if (remaining1 === 1)
- return Y.compoundIsSuperselector0(t3, t2._as(C.JSArray_methods.get$last(complex2)), H.SubListIterable$(complex2, 0, complex2.length - 1, t1).skip$1(0, i2));
- afterSuperselector = i2 + 1;
- for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
- t4 = afterSuperselector0 - 1;
- compound2 = complex2[t4];
- if (compound2 instanceof X.CompoundSelector0)
- if (Y.compoundIsSuperselector0(t3, compound2, H.SubListIterable$(complex2, 0, t4, t1).skip$1(0, afterSuperselector)))
- break;
- }
- if (afterSuperselector0 === complex2.length)
- return false;
- i10 = i1 + 1;
- combinator1 = complex1[i10];
- combinator2 = complex2[afterSuperselector0];
- if (combinator1 instanceof S.Combinator0) {
- if (!(combinator2 instanceof S.Combinator0))
- return false;
- if (combinator1 === C.Combinator_CzM0) {
- if (combinator2 === C.Combinator_sgq0)
- return false;
- } else if (combinator2 !== combinator1)
- return false;
- if (remaining1 === 3 && remaining2 > 3)
- return false;
- i1 += 2;
- i2 = afterSuperselector0 + 1;
- } else {
- if (combinator2 instanceof S.Combinator0) {
- if (combinator2 !== C.Combinator_sgq0)
- return false;
- i2 = afterSuperselector0 + 1;
- } else
- i2 = afterSuperselector0;
- i1 = i10;
- }
- }
- },
- compoundIsSuperselector0: function(compound1, compound2, parents) {
- var t1, t2, _i, simple1, simple2;
- for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- simple1 = t1[_i];
- if (simple1 instanceof D.PseudoSelector0 && simple1.selector != null) {
- if (!Y._selectorPseudoIsSuperselector0(simple1, compound2, parents))
- return false;
- } else if (!Y._simpleIsSuperselectorOfCompound0(simple1, compound2))
- return false;
- }
- for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- simple2 = t1[_i];
- if (simple2 instanceof D.PseudoSelector0 && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound0(simple2, compound1))
- return false;
- }
- return true;
- },
- _simpleIsSuperselectorOfCompound0: function(simple, compound) {
- return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure0(simple));
- },
- _selectorPseudoIsSuperselector0: function(pseudo1, compound2, parents) {
- switch (pseudo1.normalizedName) {
- case "matches":
- case "any":
- 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));
- case "has":
- case "host":
- case "host-context":
- return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure8(pseudo1));
- case "slotted":
- return Y._selectorPseudosNamed0(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure9(pseudo1));
- case "not":
- return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure10(compound2, pseudo1));
- case "current":
- return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure11(pseudo1));
- case "nth-child":
- case "nth-last-child":
- return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure12(pseudo1));
- default:
- throw H.wrapException("unreachable");
- }
- },
- _selectorPseudosNamed0: function(compound, $name, isClass) {
- var t1 = type$.WhereTypeIterable_PseudoSelector_2;
- return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure0(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>"));
- },
- unifyComplex_closure0: function unifyComplex_closure0() {
- },
- _weaveParents_closure6: function _weaveParents_closure6() {
- },
- _weaveParents_closure7: function _weaveParents_closure7(t0) {
- this.group = t0;
- },
- _weaveParents_closure8: function _weaveParents_closure8() {
- },
- _weaveParents__closure4: function _weaveParents__closure4() {
- },
- _weaveParents_closure9: function _weaveParents_closure9() {
- },
- _weaveParents_closure10: function _weaveParents_closure10() {
- },
- _weaveParents__closure3: function _weaveParents__closure3() {
- },
- _weaveParents_closure11: function _weaveParents_closure11() {
- },
- _weaveParents_closure12: function _weaveParents_closure12() {
- },
- _weaveParents__closure2: function _weaveParents__closure2() {
- },
- _mustUnify_closure0: function _mustUnify_closure0(t0) {
- this.uniqueSelectors = t0;
- },
- _mustUnify__closure0: function _mustUnify__closure0(t0) {
- this.uniqueSelectors = t0;
- },
- paths_closure0: function paths_closure0(t0) {
- this.T = t0;
- },
- paths__closure0: function paths__closure0(t0, t1) {
- this.paths = t0;
- this.T = t1;
- },
- paths___closure0: function paths___closure0(t0, t1) {
- this.option = t0;
- this.T = t1;
- },
- _hasRoot_closure0: function _hasRoot_closure0() {
- },
- listIsSuperslector_closure0: function listIsSuperslector_closure0(t0) {
- this.list1 = t0;
- },
- listIsSuperslector__closure0: function listIsSuperslector__closure0(t0) {
- this.complex1 = t0;
- },
- _simpleIsSuperselectorOfCompound_closure0: function _simpleIsSuperselectorOfCompound_closure0(t0) {
- this.simple = t0;
- },
- _simpleIsSuperselectorOfCompound__closure0: function _simpleIsSuperselectorOfCompound__closure0(t0) {
- this.simple = t0;
- },
- _selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) {
- this.parents = t0;
- this.compound2 = t1;
- },
- _selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) {
- this.compound2 = t0;
- this.pseudo1 = t1;
- },
- _selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) {
- this.complex = t0;
- this.pseudo1 = t1;
- },
- _selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) {
- this.simple2 = t0;
- },
- _selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) {
- this.simple2 = t0;
- },
- _selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0) {
- this.pseudo1 = t0;
- },
- _selectorPseudosNamed_closure0: function _selectorPseudosNamed_closure0(t0, t1) {
- this.isClass = t0;
- this.name = t1;
- },
- closure107: function closure107() {
- },
- WarnRule0: function WarnRule0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- repl: function(options) {
- return Y.repl$body(options);
- },
- repl$body: function(options) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$handler = 1, $async$currentError, $async$next = [], repl, logger, evaluator, line, declaration, error, stackTrace, t4, t5, t6, t7, t8, t9, t10, line0, exception, t1, t2, t3, repl0;
- var $async$repl = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- t2 = C.JSString_methods.$mul(" ", 3);
- t3 = $.$get$alwaysValid();
- repl0 = new Q.Repl(">> ", t2, t3, t1);
- repl0._adapter = new B.ReplAdapter(repl0);
- repl = repl0;
- t1 = options._options;
- logger = new T.TrackingLogger(H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color()));
- t2 = D.absolute(".");
- evaluator = new R.Evaluator(R._EvaluateVisitor$(null, R.ImportCache$(C.List_empty10, type$.List_String._as(t1.$index(0, "load-path")), logger), logger, null, false), new F.FilesystemImporter(t2));
- t2 = P._StreamIterator$(repl._adapter.runAsync$0());
- $async$handler = 2;
- t1 = type$.Expression, t3 = type$.String, t4 = type$.VariableDeclaration, t5 = type$.JSArray_int;
- case 5:
- // for condition
- $async$goto = 7;
- return P._asyncAwait(t2.moveNext$0(), $async$repl);
- case 7:
- // returning from await.
- if (!$async$result) {
- // goto after for
- $async$goto = 6;
- break;
- }
- line = t2.get$current(t2);
- if (J.trim$0$s(line).length === 0) {
- // goto for condition
- $async$goto = 5;
- break;
- }
- try {
- if (J.startsWith$1$s(line, "@")) {
- t6 = evaluator;
- t7 = line;
- t8 = logger;
- t7.toString;
- t9 = new H.CodeUnits(t7);
- t10 = H.setRuntimeTypeInfo([0], t5);
- t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
- t10.SourceFile$decoded$2$url(t9, null);
- if (t8 == null)
- t8 = C.StderrLogger_false;
- t8 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t10, null, t7), t8).parseUseRule$0();
- t6._visitor.runStatement$2(t6._importer, t8);
- // goto for condition
- $async$goto = 5;
- break;
- }
- t6 = line;
- t6.toString;
- t7 = new H.CodeUnits(t6);
- t8 = H.setRuntimeTypeInfo([0], t5);
- t8 = new Y.SourceFile(null, t8, new Uint32Array(H._ensureNativeList(t7.toList$0(t7))));
- t8.SourceFile$decoded$2$url(t7, null);
- if (new G.Parser(new S.SpanScanner(t8, null, t6), C.StderrLogger_false)._isVariableDeclarationLike$0()) {
- t6 = line;
- t7 = logger;
- t6.toString;
- t8 = new H.CodeUnits(t6);
- t9 = H.setRuntimeTypeInfo([0], t5);
- t9 = new Y.SourceFile(null, t9, new Uint32Array(H._ensureNativeList(t8.toList$0(t8))));
- t9.SourceFile$decoded$2$url(t8, null);
- if (t7 == null)
- t7 = C.StderrLogger_false;
- declaration = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t9, null, t6), t7).parseVariableDeclaration$0();
- t7 = evaluator;
- t7._visitor.runStatement$2(t7._importer, declaration);
- t7 = evaluator;
- t6 = declaration.name;
- t9 = declaration.span;
- t8 = declaration.namespace;
- line0 = H.S(t7._visitor.runExpression$2(t7._importer, new S.VariableExpression(t8, t6, t9)));
- t6 = $.printToZone;
- if (t6 == null)
- H.printString(line0);
- else
- t6.call$1(line0);
- } else {
- t6 = evaluator;
- t7 = line;
- t8 = logger;
- t7.toString;
- t9 = new H.CodeUnits(t7);
- t10 = H.setRuntimeTypeInfo([0], t5);
- t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
- t10.SourceFile$decoded$2$url(t9, null);
- if (t8 == null)
- t8 = C.StderrLogger_false;
- t8 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), new S.SpanScanner(t10, null, t7), t8);
- t8 = t8._parseSingleProduction$1$1(t8.get$expression(), t1);
- line0 = H.S(t6._visitor.runExpression$2(t6._importer, t8));
- t6 = $.printToZone;
- if (t6 == null)
- H.printString(line0);
- else
- t6.call$1(line0);
- }
- } catch (exception) {
- t6 = H.unwrapException(exception);
- if (t6 instanceof E.SassException) {
- error = t6;
- stackTrace = H.getTraceFromException(exception);
- Y._logError(error, stackTrace, line, repl, options, logger);
- } else
- throw exception;
- }
- // goto for condition
- $async$goto = 5;
- break;
- case 6:
- // after for
- $async$next.push(4);
- // goto finally
- $async$goto = 3;
- break;
- case 2:
- // uncaught
- $async$next = [1];
- case 3:
- // finally
- $async$handler = 1;
- $async$goto = 8;
- return P._asyncAwait(t2.cancel$0(), $async$repl);
- case 8:
- // returning from await.
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 4:
- // after finally
- // implicit return
- return P._asyncReturn(null, $async$completer);
- case 1:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$repl, $async$completer);
- },
- _logError: function(error, stackTrace, line, repl, options, logger) {
- var t1, t2, spacesBeforeError;
- if (G.SourceSpanException.prototype.get$span.call(error).file.url == null)
- if (!H._asBoolNullable(options._options.$index(0, "quiet")))
- t1 = logger._emittedDebug || logger._emittedWarning;
- else
- t1 = false;
- else
- t1 = true;
- if (t1) {
- P.print(error.toString$1$color(0, options.get$color()));
- return;
- }
- t1 = options.get$color() ? "\x1b[31m" : "";
- t2 = G.SourceSpanException.prototype.get$span.call(error);
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset);
- if (options.get$color()) {
- t2 = G.SourceSpanException.prototype.get$span.call(error);
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- t2 = t2.file.getColumn$1(t2.offset) < line.length;
- } else
- t2 = false;
- if (t2) {
- t1 += "\x1b[1F\x1b[" + spacesBeforeError + "C";
- t2 = G.SourceSpanException.prototype.get$span.call(error);
- t2 = t1 + (P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null) + "\n");
- t1 = t2;
- }
- t1 += C.JSString_methods.$mul(" ", spacesBeforeError);
- t2 = G.SourceSpanException.prototype.get$span.call(error);
- t2 = t1 + (C.JSString_methods.$mul("^", Math.max(1, t2._end - t2._file$_start)) + "\n");
- t1 = options.get$color() ? t2 + "\x1b[0m" : t2;
- t1 += "Error: " + H.S(error._span_exception$_message) + "\n";
- if (H._asBoolNullable(options._options.$index(0, "trace")))
- t1 += Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0);
- P.print(C.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1));
- }
- },
- L = {StreamGroup: function StreamGroup(t0, t1, t2) {
- var _ = this;
- _._controller = null;
- _._closed = false;
- _._stream_group$_state = t0;
- _._subscriptions = t1;
- _.$ti = t2;
- }, StreamGroup_add_closure: function StreamGroup_add_closure() {
- }, StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) {
- this.$this = t0;
- this.stream = t1;
- }, StreamGroup__onListen_closure: function StreamGroup__onListen_closure(t0) {
- this.$this = t0;
- }, StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure() {
- }, StreamGroup__onCancel_closure0: function StreamGroup__onCancel_closure0() {
- }, StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) {
- this.$this = t0;
- this.stream = t1;
- }, _StreamGroupState: function _StreamGroupState(t0) {
- this.name = t0;
- },
- UnmodifiableSetMixin__throw: function() {
- throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
- },
- UnmodifiableSetView: function UnmodifiableSetView(t0, t1) {
- this._base = t0;
- this.$ti = t1;
- },
- UnmodifiableSetMixin: function UnmodifiableSetMixin() {
- },
- _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() {
- },
- WindowsStyle: function WindowsStyle(t0, t1, t2, t3) {
- var _ = this;
- _.separatorPattern = t0;
- _.needsSeparatorPattern = t1;
- _.rootPattern = t2;
- _.relativeRootPattern = t3;
- },
- WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() {
- },
- ModifiableCssDeclaration$: function($name, value, span, valueSpanForMap) {
- return new L.ModifiableCssDeclaration($name, value, valueSpanForMap == null ? span : valueSpanForMap, span);
- },
- ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.valueSpanForMap = t2;
- _.span = t3;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- IfExpression: function IfExpression(t0, t1) {
- this.$arguments = t0;
- this.span = t1;
- },
- Declaration$: function($name, span, children, value) {
- var t1;
- children = children == null ? null : P.List_List$unmodifiable(children, type$.Statement);
- t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure());
- return new L.Declaration($name, value, span, children, t1 === true);
- },
- Declaration: function Declaration(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _.url = t0;
- _.shownMixinsAndFunctions = t1;
- _.shownVariables = t2;
- _.hiddenMixinsAndFunctions = t3;
- _.hiddenVariables = t4;
- _.prefix = t5;
- _.configuration = t6;
- _.span = t7;
- },
- LoudComment: function LoudComment(t0) {
- this.text = t0;
- },
- SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) {
- this.name = t0;
- this.value = t1;
- this.span = t2;
- },
- PlainCssCallable: function PlainCssCallable(t0) {
- this.name = t0;
- },
- ExtendMode: function ExtendMode(t0) {
- this.name = t0;
- },
- ScssParser: function ScssParser(t0, t1, t2) {
- var _ = this;
- _._isUseAllowed = true;
- _._stylesheet$_inMixin = false;
- _._mixinHasContent = null;
- _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
- _._globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- },
- Entry: function Entry(t0, t1, t2) {
- this.source = t0;
- this.target = t1;
- this.identifierName = t2;
- },
- _StreamTransformer__defaultHandleError: function(error, stackTrace, sink) {
- sink.addError$2(error, stackTrace);
- },
- _StreamTransformer: function _StreamTransformer(t0, t1, t2, t3) {
- var _ = this;
- _._from_handlers$_handleData = t0;
- _._from_handlers$_handleDone = t1;
- _._from_handlers$_handleError = t2;
- _.$ti = t3;
- },
- _StreamTransformer_bind_closure: function _StreamTransformer_bind_closure(t0, t1, t2, t3) {
- var _ = this;
- _._box_1 = t0;
- _.$this = t1;
- _.values = t2;
- _.controller = t3;
- },
- _StreamTransformer_bind__closure: function _StreamTransformer_bind__closure(t0, t1) {
- this.$this = t0;
- this.controller = t1;
- },
- _StreamTransformer_bind__closure1: function _StreamTransformer_bind__closure1(t0, t1) {
- this.$this = t0;
- this.controller = t1;
- },
- _StreamTransformer_bind__closure0: function _StreamTransformer_bind__closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.controller = t2;
- },
- _StreamTransformer_bind__closure2: function _StreamTransformer_bind__closure2(t0, t1) {
- this._box_1 = t0;
- this._box_0 = t1;
- },
- ModifiableCssDeclaration$0: function($name, value, span, valueSpanForMap) {
- return new L.ModifiableCssDeclaration0($name, value, valueSpanForMap == null ? span : valueSpanForMap, span);
- },
- ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.valueSpanForMap = t2;
- _.span = t3;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- Declaration$0: function($name, span, children, value) {
- var t1;
- children = children == null ? null : P.List_List$unmodifiable(children, type$.Statement_2);
- t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure0());
- return new L.Declaration0($name, value, span, children, t1 === true);
- },
- Declaration0: function Declaration0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) {
- this.name = t0;
- this.value = t1;
- this.span = t2;
- },
- ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _.url = t0;
- _.shownMixinsAndFunctions = t1;
- _.shownVariables = t2;
- _.hiddenMixinsAndFunctions = t3;
- _.hiddenVariables = t4;
- _.prefix = t5;
- _.configuration = t6;
- _.span = t7;
- },
- IfExpression0: function IfExpression0(t0, t1) {
- this.$arguments = t0;
- this.span = t1;
- },
- LoudComment0: function LoudComment0(t0) {
- this.text = t0;
- },
- ExtendMode0: function ExtendMode0(t0) {
- this.name = t0;
- },
- PlainCssCallable0: function PlainCssCallable0(t0) {
- this.name = t0;
- },
- RenderContextOptions: function RenderContextOptions() {
- },
- ScssParser0: function ScssParser0(t0, t1, t2) {
- var _ = this;
- _._stylesheet0$_isUseAllowed = true;
- _._stylesheet0$_inMixin = false;
- _._stylesheet0$_mixinHasContent = null;
- _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
- _._stylesheet0$_globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- },
- encodeVlq: function(value) {
- var res, signBit, digit, t1;
- if (value < $.$get$MIN_INT32() || value > $.$get$MAX_INT32())
- throw H.wrapException(P.ArgumentError$("expected 32 bit int, got: " + value));
- res = H.setRuntimeTypeInfo([], type$.JSArray_String);
- if (value < 0) {
- value = -value;
- signBit = 1;
- } else
- signBit = 0;
- value = value << 1 | signBit;
- do {
- digit = value & 31;
- value = value >>> 5;
- t1 = value > 0;
- res.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t1 ? digit | 32 : digit]);
- } while (t1);
- return res;
- }
- },
- Q = {Repl: function Repl(t0, t1, t2, t3) {
- var _ = this;
- _.prompt = t0;
- _.continuation = t1;
- _.validator = t2;
- _._adapter = null;
- _.history = t3;
- }, closure106: function closure106() {
- },
- QueueList$: function(initialCapacity, $E) {
- var t1 = new Q.QueueList(0, 0, $E._eval$1("QueueList<0>"));
- t1.QueueList$1(initialCapacity, $E);
- return t1;
- },
- QueueList_QueueList$from: function(source, $E) {
- var $length, queue, t1;
- if (type$.List_dynamic._is(source)) {
- $length = J.get$length$asx(source);
- queue = Q.QueueList$($length + 1, $E);
- J.setRange$4$ax(queue._table, 0, $length, source, 0);
- queue._tail = $length;
- return queue;
- } else {
- t1 = Q.QueueList$(null, $E);
- t1.addAll$1(0, source);
- return t1;
- }
- },
- QueueList__nextPowerOf2: function(number) {
- var nextNumber;
- number = (number << 1 >>> 0) - 1;
- for (; true; number = nextNumber) {
- nextNumber = (number & number - 1) >>> 0;
- if (nextNumber === 0)
- return number;
- }
- },
- QueueList: function QueueList(t0, t1, t2) {
- var _ = this;
- _._table = null;
- _._head = t0;
- _._tail = t1;
- _.$ti = t2;
- },
- _CastQueueList: function _CastQueueList(t0, t1, t2, t3) {
- var _ = this;
- _._queue_list$_delegate = t0;
- _._table = null;
- _._head = t1;
- _._tail = t2;
- _.$ti = t3;
- },
- _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() {
- },
- StaticImport: function StaticImport(t0, t1, t2, t3) {
- var _ = this;
- _.url = t0;
- _.supports = t1;
- _.media = t2;
- _.span = t3;
- },
- ContentRule: function ContentRule(t0, t1) {
- this.span = t0;
- this.$arguments = t1;
- },
- DebugRule: function DebugRule(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- AsyncEnvironment$: function(sourceMap) {
- var _null = null,
- t1 = type$.String,
- t2 = type$.Module_AsyncCallable,
- t3 = type$.AstNode,
- t4 = H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable),
- t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value),
- t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode) : _null,
- t7 = type$.int,
- t8 = type$.AsyncCallable,
- t9 = type$.JSArray_Map_String_AsyncCallable;
- 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);
- },
- AsyncEnvironment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
- var t1 = type$.String,
- t2 = type$.int;
- 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);
- },
- _EnvironmentModule__EnvironmentModule0: function(environment, css, extender, forwarded) {
- var t1, t2, t3, t4, t5, t6;
- if (forwarded == null)
- forwarded = C.Set_empty0;
- t1 = Q._EnvironmentModule__makeModulesByVariable0(forwarded);
- t2 = H._instanceType(forwarded);
- 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$.Value);
- t4 = environment._async_environment$_variableNodes;
- 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$.AstNode);
- t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String,AsyncCallable>>");
- t5 = type$.AsyncCallable;
- t6 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure7(), t2), t5);
- t5 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure8(), t2), t5);
- t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure9());
- 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()));
- },
- _EnvironmentModule__makeModulesByVariable0: function(forwarded) {
- var modulesByVariable, t1, t2, t3, t4;
- if (forwarded.get$isEmpty(forwarded))
- return C.Map_empty4;
- modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable);
- for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2 instanceof Q._EnvironmentModule0) {
- for (t3 = t2._async_environment$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- B.setAll(modulesByVariable, t4.get$variables().get$keys(), t4);
- }
- B.setAll(modulesByVariable, C.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables).get$keys(), t2);
- } else
- B.setAll(modulesByVariable, t2.get$variables().get$keys(), t2);
- }
- return modulesByVariable;
- },
- _EnvironmentModule__memberMap0: function(localMap, otherMaps, $V) {
- var t1, t2, t3;
- localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
- t1 = otherMaps.__internal$_iterable;
- t2 = J.getInterceptor$asx(t1);
- if (t2.get$isEmpty(t1))
- return localMap;
- t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String,0>>"));
- for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- if (t2.get$isNotEmpty(t2))
- t3.push(t2);
- }
- t3.push(localMap);
- if (t3.length === 1)
- return localMap;
- return Z.MergedMapView$(t3, type$.String, $V);
- },
- _EnvironmentModule$_0: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
- return new Q._EnvironmentModule0(_environment._async_environment$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
- },
- AsyncEnvironment: function AsyncEnvironment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
- var _ = this;
- _._async_environment$_modules = t0;
- _._async_environment$_namespaceNodes = t1;
- _._async_environment$_globalModules = t2;
- _._async_environment$_globalModuleNodes = t3;
- _._async_environment$_forwardedModules = t4;
- _._async_environment$_forwardedModuleNodes = t5;
- _._async_environment$_nestedForwardedModules = t6;
- _._async_environment$_allModules = t7;
- _._async_environment$_variables = t8;
- _._async_environment$_variableNodes = t9;
- _._async_environment$_variableIndices = t10;
- _._async_environment$_functions = t11;
- _._async_environment$_functionIndices = t12;
- _._async_environment$_mixins = t13;
- _._async_environment$_mixinIndices = t14;
- _._async_environment$_content = t15;
- _._async_environment$_inMixin = false;
- _._async_environment$_inSemiGlobalScope = true;
- _._async_environment$_lastVariableIndex = _._async_environment$_lastVariableName = null;
- },
- AsyncEnvironment_importForwards_closure: function AsyncEnvironment_importForwards_closure() {
- },
- AsyncEnvironment_importForwards_closure0: function AsyncEnvironment_importForwards_closure0() {
- },
- AsyncEnvironment_importForwards_closure1: function AsyncEnvironment_importForwards_closure1() {
- },
- AsyncEnvironment_importForwards_closure2: function AsyncEnvironment_importForwards_closure2() {
- },
- AsyncEnvironment__getVariableFromGlobalModule_closure: function AsyncEnvironment__getVariableFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- AsyncEnvironment_setVariable_closure: function AsyncEnvironment_setVariable_closure(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- AsyncEnvironment_setVariable_closure0: function AsyncEnvironment_setVariable_closure0(t0) {
- this.name = t0;
- },
- AsyncEnvironment_setVariable_closure1: function AsyncEnvironment_setVariable_closure1(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- AsyncEnvironment__getFunctionFromGlobalModule_closure: function AsyncEnvironment__getFunctionFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- AsyncEnvironment__getMixinFromGlobalModule_closure: function AsyncEnvironment__getMixinFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- _EnvironmentModule0: function _EnvironmentModule0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
- var _ = this;
- _.upstream = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.extender = t5;
- _.css = t6;
- _.transitivelyContainsCss = t7;
- _.transitivelyContainsExtensions = t8;
- _._async_environment$_environment = t9;
- _._async_environment$_modulesByVariable = t10;
- },
- _EnvironmentModule__EnvironmentModule_closure5: function _EnvironmentModule__EnvironmentModule_closure5() {
- },
- _EnvironmentModule__EnvironmentModule_closure6: function _EnvironmentModule__EnvironmentModule_closure6() {
- },
- _EnvironmentModule__EnvironmentModule_closure7: function _EnvironmentModule__EnvironmentModule_closure7() {
- },
- _EnvironmentModule__EnvironmentModule_closure8: function _EnvironmentModule__EnvironmentModule_closure8() {
- },
- _EnvironmentModule__EnvironmentModule_closure9: function _EnvironmentModule__EnvironmentModule_closure9() {
- },
- _EnvironmentModule__EnvironmentModule_closure10: function _EnvironmentModule__EnvironmentModule_closure10() {
- },
- BuiltInCallable$function: function($name, $arguments, callback, url) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", url);
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- BuiltInCallable$mixin: function($name, $arguments, callback, url) {
- var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new Q.BuiltInCallable$mixin_closure(callback), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- BuiltInCallable$overloadedFunction: function($name, overloads) {
- var t2, t3, t4, t5, t6, t7, t8, t9, t10,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value);
- for (t2 = overloads.get$entries(), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value, t4 = type$.String, t5 = type$.VariableDeclaration, t6 = type$.JSArray_int; t2.moveNext$0();) {
- t7 = t2.get$current(t2);
- t8 = "@function " + $name + "(" + H.S(t7.key) + ") {";
- t9 = new H.CodeUnits(t8);
- t10 = H.setRuntimeTypeInfo([0], t6);
- t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
- t10.SourceFile$decoded$2$url(t9, null);
- 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));
- }
- return new Q.BuiltInCallable($name, t1);
- },
- BuiltInCallable: function BuiltInCallable(t0, t1) {
- this.name = t0;
- this._overloads = t1;
- },
- BuiltInCallable$mixin_closure: function BuiltInCallable$mixin_closure(t0) {
- this.callback = t0;
- },
- _function5: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:meta");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- closure101: function closure101() {
- },
- closure102: function closure102() {
- },
- closure103: function closure103() {
- },
- closure104: function closure104() {
- },
- _closure13: function _closure13() {
- },
- BuiltInModule$: function($name, functions, mixins, variables, $T) {
- var t1 = P._Uri__Uri(null, $name, null, "sass"),
- t2 = Q.BuiltInModule__callableMap(functions, $T),
- t3 = Q.BuiltInModule__callableMap(mixins, $T),
- t4 = variables == null ? C.Map_empty2 : new P.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value);
- return new Q.BuiltInModule(t1, t2, t3, t4, $T._eval$1("BuiltInModule<0>"));
- },
- BuiltInModule__callableMap: function(callables, $T) {
- var t2, _i, callable,
- t1 = type$.String;
- if (callables == null)
- t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
- else {
- t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
- for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, H.throwConcurrentModificationError)(callables), ++_i) {
- callable = callables[_i];
- t1.$indexSet(0, callable.get$name(), callable);
- }
- t1 = new P.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
- }
- return new P.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
- },
- BuiltInModule: function BuiltInModule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.url = t0;
- _.functions = t1;
- _.mixins = t2;
- _.variables = t3;
- _.$ti = t4;
- },
- closure105: function closure105() {
- },
- CssParser: function CssParser(t0, t1, t2) {
- var _ = this;
- _._isUseAllowed = true;
- _._stylesheet$_inMixin = false;
- _._mixinHasContent = null;
- _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
- _._globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- },
- AsyncEnvironment$0: function(sourceMap) {
- var _null = null,
- t1 = type$.String,
- t2 = type$.Module_AsyncCallable_2,
- t3 = type$.AstNode_2,
- t4 = H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable_2),
- t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2),
- t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2) : _null,
- t7 = type$.int,
- t8 = type$.AsyncCallable_2,
- t9 = type$.JSArray_Map_String_AsyncCallable_2;
- 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);
- },
- AsyncEnvironment$_0: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
- var t1 = type$.String,
- t2 = type$.int;
- 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);
- },
- _EnvironmentModule__EnvironmentModule2: function(environment, css, extender, forwarded) {
- var t1, t2, t3, t4, t5, t6;
- if (forwarded == null)
- forwarded = C.Set_empty3;
- t1 = Q._EnvironmentModule__makeModulesByVariable2(forwarded);
- t2 = H._instanceType(forwarded);
- 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$.Value_2);
- t4 = environment._async_environment0$_variableNodes;
- 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$.AstNode_2);
- t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String,AsyncCallable0>>");
- t5 = type$.AsyncCallable_2;
- t6 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure19(), t2), t5);
- t5 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure20(), t2), t5);
- t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._async_environment0$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure21());
- 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()));
- },
- _EnvironmentModule__makeModulesByVariable2: function(forwarded) {
- var modulesByVariable, t1, t2, t3, t4;
- if (forwarded.get$isEmpty(forwarded))
- return C.Map_empty11;
- modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable_2);
- for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2 instanceof Q._EnvironmentModule2) {
- for (t3 = t2._async_environment0$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- B.setAll0(modulesByVariable, t4.get$variables().get$keys(), t4);
- }
- B.setAll0(modulesByVariable, C.JSArray_methods.get$first(t2._async_environment0$_environment._async_environment0$_variables).get$keys(), t2);
- } else
- B.setAll0(modulesByVariable, t2.get$variables().get$keys(), t2);
- }
- return modulesByVariable;
- },
- _EnvironmentModule__memberMap2: function(localMap, otherMaps, $V) {
- var t1, t2, t3;
- localMap = new U.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
- t1 = otherMaps.__internal$_iterable;
- t2 = J.getInterceptor$asx(t1);
- if (t2.get$isEmpty(t1))
- return localMap;
- t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String,0>>"));
- for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- if (t2.get$isNotEmpty(t2))
- t3.push(t2);
- }
- t3.push(localMap);
- if (t3.length === 1)
- return localMap;
- return Z.MergedMapView$0(t3, type$.String, $V);
- },
- _EnvironmentModule$_2: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
- return new Q._EnvironmentModule2(_environment._async_environment0$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
- },
- AsyncEnvironment0: function AsyncEnvironment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
- var _ = this;
- _._async_environment0$_modules = t0;
- _._async_environment0$_namespaceNodes = t1;
- _._async_environment0$_globalModules = t2;
- _._async_environment0$_globalModuleNodes = t3;
- _._async_environment0$_forwardedModules = t4;
- _._async_environment0$_forwardedModuleNodes = t5;
- _._async_environment0$_nestedForwardedModules = t6;
- _._async_environment0$_allModules = t7;
- _._async_environment0$_variables = t8;
- _._async_environment0$_variableNodes = t9;
- _._async_environment0$_variableIndices = t10;
- _._async_environment0$_functions = t11;
- _._async_environment0$_functionIndices = t12;
- _._async_environment0$_mixins = t13;
- _._async_environment0$_mixinIndices = t14;
- _._async_environment0$_content = t15;
- _._async_environment0$_inMixin = false;
- _._async_environment0$_inSemiGlobalScope = true;
- _._async_environment0$_lastVariableIndex = _._async_environment0$_lastVariableName = null;
- },
- AsyncEnvironment_importForwards_closure3: function AsyncEnvironment_importForwards_closure3() {
- },
- AsyncEnvironment_importForwards_closure4: function AsyncEnvironment_importForwards_closure4() {
- },
- AsyncEnvironment_importForwards_closure5: function AsyncEnvironment_importForwards_closure5() {
- },
- AsyncEnvironment_importForwards_closure6: function AsyncEnvironment_importForwards_closure6() {
- },
- AsyncEnvironment__getVariableFromGlobalModule_closure0: function AsyncEnvironment__getVariableFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- AsyncEnvironment_setVariable_closure2: function AsyncEnvironment_setVariable_closure2(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- AsyncEnvironment_setVariable_closure3: function AsyncEnvironment_setVariable_closure3(t0) {
- this.name = t0;
- },
- AsyncEnvironment_setVariable_closure4: function AsyncEnvironment_setVariable_closure4(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- AsyncEnvironment__getFunctionFromGlobalModule_closure0: function AsyncEnvironment__getFunctionFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- AsyncEnvironment__getMixinFromGlobalModule_closure0: function AsyncEnvironment__getMixinFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- _EnvironmentModule2: function _EnvironmentModule2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
- var _ = this;
- _.upstream = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.extender = t5;
- _.css = t6;
- _.transitivelyContainsCss = t7;
- _.transitivelyContainsExtensions = t8;
- _._async_environment0$_environment = t9;
- _._async_environment0$_modulesByVariable = t10;
- },
- _EnvironmentModule__EnvironmentModule_closure17: function _EnvironmentModule__EnvironmentModule_closure17() {
- },
- _EnvironmentModule__EnvironmentModule_closure18: function _EnvironmentModule__EnvironmentModule_closure18() {
- },
- _EnvironmentModule__EnvironmentModule_closure19: function _EnvironmentModule__EnvironmentModule_closure19() {
- },
- _EnvironmentModule__EnvironmentModule_closure20: function _EnvironmentModule__EnvironmentModule_closure20() {
- },
- _EnvironmentModule__EnvironmentModule_closure21: function _EnvironmentModule__EnvironmentModule_closure21() {
- },
- _EnvironmentModule__EnvironmentModule_closure22: function _EnvironmentModule__EnvironmentModule_closure22() {
- },
- BuiltInCallable$function0: function($name, $arguments, callback, url) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", url);
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- BuiltInCallable$mixin0: function($name, $arguments, callback, url) {
- var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new Q.BuiltInCallable$mixin_closure0(callback), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- BuiltInCallable$parsed: function($name, $arguments, callback) {
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2($arguments, callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- BuiltInCallable$overloadedFunction0: function($name, overloads) {
- var t2, t3, t4, t5, t6, t7, t8, t9, t10,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2);
- for (t2 = overloads.get$entries(), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2, t4 = type$.String, t5 = type$.VariableDeclaration_2, t6 = type$.JSArray_int; t2.moveNext$0();) {
- t7 = t2.get$current(t2);
- t8 = "@function " + $name + "(" + H.S(t7.key) + ") {";
- t9 = new H.CodeUnits(t8);
- t10 = H.setRuntimeTypeInfo([0], t6);
- t10 = new Y.SourceFile(null, t10, new Uint32Array(H._ensureNativeList(t9.toList$0(t9))));
- t10.SourceFile$decoded$2$url(t9, null);
- 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));
- }
- return new Q.BuiltInCallable0($name, t1);
- },
- BuiltInCallable0: function BuiltInCallable0(t0, t1) {
- this.name = t0;
- this._built_in$_overloads = t1;
- },
- BuiltInCallable$mixin_closure0: function BuiltInCallable$mixin_closure0(t0) {
- this.callback = t0;
- },
- BuiltInModule$0: function($name, functions, mixins, variables, $T) {
- var t1 = P._Uri__Uri(null, $name, null, "sass"),
- t2 = Q.BuiltInModule__callableMap0(functions, $T),
- t3 = Q.BuiltInModule__callableMap0(mixins, $T),
- t4 = variables == null ? C.Map_empty8 : new P.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value_2);
- return new Q.BuiltInModule0(t1, t2, t3, t4, $T._eval$1("BuiltInModule0<0>"));
- },
- BuiltInModule__callableMap0: function(callables, $T) {
- var t2, _i, callable,
- t1 = type$.String;
- if (callables == null)
- t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
- else {
- t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
- for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, H.throwConcurrentModificationError)(callables), ++_i) {
- callable = callables[_i];
- t1.$indexSet(0, callable.get$name(), callable);
- }
- t1 = new P.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
- }
- return new P.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
- },
- BuiltInModule0: function BuiltInModule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.url = t0;
- _.functions = t1;
- _.mixins = t2;
- _.variables = t3;
- _.$ti = t4;
- },
- ContentRule0: function ContentRule0(t0, t1) {
- this.span = t0;
- this.$arguments = t1;
- },
- closure213: function closure213() {
- },
- CssParser0: function CssParser0(t0, t1, t2) {
- var _ = this;
- _._stylesheet0$_isUseAllowed = true;
- _._stylesheet0$_inMixin = false;
- _._stylesheet0$_mixinHasContent = null;
- _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
- _._stylesheet0$_globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- },
- DebugRule0: function DebugRule0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- _function12: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:meta");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- closure209: function closure209() {
- },
- closure210: function closure210() {
- },
- closure211: function closure211() {
- },
- closure212: function closure212() {
- },
- _closure28: function _closure28() {
- },
- StaticImport0: function StaticImport0(t0, t1, t2, t3) {
- var _ = this;
- _.url = t0;
- _.supports = t1;
- _.media = t2;
- _.span = t3;
- }
- },
- B = {ReplAdapter: function ReplAdapter(t0) {
- this.repl = t0;
- this.rl = null;
- }, ReplAdapter_runAsync_closure: function ReplAdapter_runAsync_closure(t0) {
- this.controller = t0;
- }, Stdin: function Stdin() {
- }, Stdout: function Stdout() {
- }, ReadlineModule: function ReadlineModule() {
- }, ReadlineOptions: function ReadlineOptions() {
- }, ReadlineInterface: function ReadlineInterface() {
- },
- defaultCompare: function($T) {
- return new B.defaultCompare_closure($T);
- },
- defaultCompare_closure: function defaultCompare_closure(t0) {
- this.T = t0;
- },
- InternalStyle: function InternalStyle() {
- },
- ModifiableCssNode: function ModifiableCssNode() {
- },
- ModifiableCssParentNode: function ModifiableCssParentNode() {
- },
- ModifiableCssSupportsRule: function ModifiableCssSupportsRule(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _._children = t3;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- CssNode: function CssNode() {
- },
- CssParentNode: function CssParentNode() {
- },
- AstNode: function AstNode() {
- },
- _FakeAstNode: function _FakeAstNode(t0) {
- this._callback = t0;
- },
- ArgumentDeclaration_ArgumentDeclaration$parse: function(contents, url) {
- var t1 = S.SpanScanner$(contents, url);
- return new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0();
- },
- ArgumentDeclaration: function ArgumentDeclaration(t0, t1, t2) {
- this.$arguments = t0;
- this.restArgument = t1;
- this.span = t2;
- },
- ArgumentDeclaration_verify_closure: function ArgumentDeclaration_verify_closure() {
- },
- ArgumentDeclaration_verify_closure0: function ArgumentDeclaration_verify_closure0() {
- },
- DynamicImport: function DynamicImport(t0, t1) {
- this.url = t0;
- this.span = t1;
- },
- SassNode: function SassNode() {
- },
- ForRule: function ForRule(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.variable = t0;
- _.from = t1;
- _.to = t2;
- _.isExclusive = t3;
- _.span = t4;
- _.children = t5;
- _.hasDeclarations = t6;
- },
- ImportRule: function ImportRule(t0, t1) {
- this.imports = t0;
- this.span = t1;
- },
- ReturnRule: function ReturnRule(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- SilentComment: function SilentComment(t0, t1) {
- this.text = t0;
- this.span = t1;
- },
- SupportsRule: function SupportsRule(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- AsyncCallable: function AsyncCallable() {
- },
- ExecutableOptions__separator: function(text) {
- var t1 = $.$get$ExecutableOptions__separatorBar(),
- t2 = C.JSString_methods.$mul(t1, 3) + " ",
- t3 = self.process.stdout.isTTY;
- t2 = t2 + ((t3 == null ? false : t3) ? "\x1b[1m" : "") + text;
- t3 = self.process.stdout.isTTY;
- return t2 + ((t3 == null ? false : t3) ? "\x1b[0m" : "") + " " + C.JSString_methods.$mul(t1, 35 - text.length);
- },
- ExecutableOptions__fail: function(message) {
- return H.throwExpression(B.UsageException$(message));
- },
- ExecutableOptions_ExecutableOptions$parse: function(args) {
- var options, error, t1, exception;
- try {
- t1 = $.$get$ExecutableOptions__parser();
- t1.toString;
- t1 = G.Parser$0(null, t1, P.ListQueue_ListQueue$of(args, type$.String), null, null).parse$0();
- if (t1.wasParsed$1("poll") && !H._asBoolNullable(t1.$index(0, "watch")))
- B.ExecutableOptions__fail("--poll may not be passed without --watch.");
- options = new B.ExecutableOptions(t1);
- if (H._asBoolNullable(options._options.$index(0, "help")))
- B.ExecutableOptions__fail("Compile Sass to CSS.");
- return options;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- error = t1;
- B.ExecutableOptions__fail(J.get$message$x(error));
- } else
- throw exception;
- }
- },
- UsageException$: function(message) {
- return new B.UsageException(message);
- },
- ExecutableOptions: function ExecutableOptions(t0) {
- var _ = this;
- _._options = t0;
- _._sourceDirectoriesToDestinations = _._sourcesToDestinations = _._interactive = null;
- },
- ExecutableOptions_closure: function ExecutableOptions_closure() {
- },
- ExecutableOptions_emitErrorCss_closure: function ExecutableOptions_emitErrorCss_closure() {
- },
- UsageException: function UsageException(t0) {
- this.message = t0;
- },
- AsyncImporter: function AsyncImporter() {
- },
- inImportRule: function(callback) {
- var t1,
- wasInImportRule = $._inImportRule;
- $._inImportRule = true;
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- $._inImportRule = wasInImportRule;
- }
- },
- resolveImportPath: function(path) {
- var t1,
- extension = X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
- if (extension === ".sass" || extension === ".scss" || extension === ".css") {
- t1 = $._inImportRule ? new B.resolveImportPath_closure(path, extension).call$0() : null;
- return t1 == null ? B._exactlyOne(B._tryPath(path)) : t1;
- }
- t1 = $._inImportRule ? new B.resolveImportPath_closure0(path).call$0() : null;
- if (t1 == null)
- t1 = B._exactlyOne(B._tryPathWithExtensions(path));
- return t1 == null ? B._tryPathAsDirectory(path) : t1;
- },
- _tryPathWithExtensions: function(path) {
- var result = B._tryPath(path + ".sass");
- C.JSArray_methods.addAll$1(result, B._tryPath(path + ".scss"));
- return result.length !== 0 ? result : B._tryPath(path + ".css");
- },
- _tryPath: function(path) {
- var t1 = $.$get$context(),
- partial = D.join(t1.dirname$1(path), "_" + H.S(X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename()), null);
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- if (B.fileExists(partial))
- t1.push(partial);
- if (B.fileExists(path))
- t1.push(path);
- return t1;
- },
- _tryPathAsDirectory: function(path) {
- var t1;
- if (!B.dirExists(path))
- return null;
- t1 = $._inImportRule ? new B._tryPathAsDirectory_closure(path).call$0() : null;
- return t1 == null ? B._exactlyOne(B._tryPathWithExtensions(D.join(path, "index", null))) : t1;
- },
- _exactlyOne: function(paths) {
- var t1 = paths.length;
- if (t1 === 0)
- return null;
- if (t1 === 1)
- return C.JSArray_methods.get$first(paths);
- throw H.wrapException("It's not clear which file to import. Found:\n" + C.JSArray_methods.map$1$1(paths, new B._exactlyOne_closure(), type$.String).join$1(0, "\n"));
- },
- resolveImportPath_closure: function resolveImportPath_closure(t0, t1) {
- this.path = t0;
- this.extension = t1;
- },
- resolveImportPath_closure0: function resolveImportPath_closure0(t0) {
- this.path = t0;
- },
- _tryPathAsDirectory_closure: function _tryPathAsDirectory_closure(t0) {
- this.path = t0;
- },
- _exactlyOne_closure: function _exactlyOne_closure() {
- },
- readFile: function(path) {
- var t1, t2, t3, sourceFile, i,
- contents = H._asStringNullable(B._readFile(path, "utf8"));
- if (!J.getInterceptor$asx(contents).contains$1(contents, "\ufffd"))
- return contents;
- t1 = $.$get$context().toUri$1(path);
- t2 = new H.CodeUnits(contents);
- t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
- sourceFile = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
- sourceFile.SourceFile$decoded$2$url(t2, t1);
- for (t1 = contents.length, i = 0; i < t1; ++i) {
- if (C.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
- continue;
- throw H.wrapException(E.SassException$("Invalid UTF-8.", Y.FileLocation$_(sourceFile, i).pointSpan$0()));
- }
- return contents;
- },
- _readFile: function(path, encoding) {
- return B._systemErrorToFileSystemException(new B._readFile_closure(path, encoding));
- },
- writeFile: function(path, contents) {
- return B._systemErrorToFileSystemException(new B.writeFile_closure(path, contents));
- },
- deleteFile: function(path) {
- return B._systemErrorToFileSystemException(new B.deleteFile_closure(path));
- },
- readStdin: function() {
- return B.readStdin$body();
- },
- readStdin$body: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, sink, t1, t2, completer;
- var $async$readStdin = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- t2 = new P._Future($.Zone__current, type$._Future_String);
- completer = new P._AsyncCompleter(t2, type$._AsyncCompleter_String);
- t1.contents = null;
- sink = new P.Utf8Decoder(false).startChunkedConversion$1(new P._StringCallbackSink(new B.readStdin_closure(t1, completer), new P.StringBuffer("")));
- J.on$2$x(self.process.stdin, "data", P.allowInterop(new B.readStdin_closure0(sink)));
- J.on$2$x(self.process.stdin, "end", P.allowInterop(new B.readStdin_closure1(sink)));
- J.on$2$x(self.process.stdin, "error", P.allowInterop(new B.readStdin_closure2(completer)));
- $async$returnValue = t2;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$readStdin, $async$completer);
- },
- fileExists: function(path) {
- return B._systemErrorToFileSystemException(new B.fileExists_closure(path));
- },
- dirExists: function(path) {
- return B._systemErrorToFileSystemException(new B.dirExists_closure(path));
- },
- ensureDir: function(path) {
- return B._systemErrorToFileSystemException(new B.ensureDir_closure(path));
- },
- listDir: function(path, recursive) {
- return B._systemErrorToFileSystemException(new B.listDir_closure(recursive, path));
- },
- modificationTime: function(path) {
- return B._systemErrorToFileSystemException(new B.modificationTime_closure(path));
- },
- _systemErrorToFileSystemException: function(callback) {
- var error, systemError, t1, exception, t2;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- error = H.unwrapException(exception);
- systemError = type$._SystemError._as(error);
- t1 = systemError;
- t2 = J.getInterceptor$x(t1);
- 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)));
- }
- },
- isWindows: function() {
- return J.$eq$(J.get$platform$x(self.process), "win32");
- },
- watchDir: function(path, poll) {
- var t2, t3, t1 = {},
- watcher = J.watch$2$x(self.chokidar, path, {disableGlobbing: true, usePolling: poll});
- t1.controller = null;
- t2 = J.getInterceptor$x(watcher);
- t2.on$2(watcher, "add", P.allowInterop(new B.watchDir_closure(t1)));
- t2.on$2(watcher, "change", P.allowInterop(new B.watchDir_closure0(t1)));
- t2.on$2(watcher, "unlink", P.allowInterop(new B.watchDir_closure1(t1)));
- t2.on$2(watcher, "error", P.allowInterop(new B.watchDir_closure2(t1)));
- t3 = new P._Future($.Zone__current, type$._Future_Stream_WatchEvent);
- t2.on$2(watcher, "ready", P.allowInterop(new B.watchDir_closure3(t1, watcher, new P._AsyncCompleter(t3, type$._AsyncCompleter_Stream_WatchEvent))));
- return t3;
- },
- _FS: function _FS() {
- },
- _Stat: function _Stat() {
- },
- _Date: function _Date() {
- },
- _Stderr: function _Stderr() {
- },
- _Stdin: function _Stdin() {
- },
- _SystemError: function _SystemError() {
- },
- _Process: function _Process() {
- },
- FileSystemException: function FileSystemException(t0, t1) {
- this.message = t0;
- this.path = t1;
- },
- Stderr: function Stderr(t0) {
- this._stderr = t0;
- },
- _readFile_closure: function _readFile_closure(t0, t1) {
- this.path = t0;
- this.encoding = t1;
- },
- writeFile_closure: function writeFile_closure(t0, t1) {
- this.path = t0;
- this.contents = t1;
- },
- deleteFile_closure: function deleteFile_closure(t0) {
- this.path = t0;
- },
- readStdin_closure: function readStdin_closure(t0, t1) {
- this._box_0 = t0;
- this.completer = t1;
- },
- readStdin_closure0: function readStdin_closure0(t0) {
- this.sink = t0;
- },
- readStdin_closure1: function readStdin_closure1(t0) {
- this.sink = t0;
- },
- readStdin_closure2: function readStdin_closure2(t0) {
- this.completer = t0;
- },
- fileExists_closure: function fileExists_closure(t0) {
- this.path = t0;
- },
- dirExists_closure: function dirExists_closure(t0) {
- this.path = t0;
- },
- ensureDir_closure: function ensureDir_closure(t0) {
- this.path = t0;
- },
- listDir_closure: function listDir_closure(t0, t1) {
- this.recursive = t0;
- this.path = t1;
- },
- listDir__closure: function listDir__closure(t0) {
- this.path = t0;
- },
- listDir__closure0: function listDir__closure0() {
- },
- listDir_closure_list: function listDir_closure_list() {
- },
- listDir__list_closure: function listDir__list_closure(t0, t1) {
- this.parent = t0;
- this.list = t1;
- },
- modificationTime_closure: function modificationTime_closure(t0) {
- this.path = t0;
- },
- watchDir_closure: function watchDir_closure(t0) {
- this._box_0 = t0;
- },
- watchDir_closure0: function watchDir_closure0(t0) {
- this._box_0 = t0;
- },
- watchDir_closure1: function watchDir_closure1(t0) {
- this._box_0 = t0;
- },
- watchDir_closure2: function watchDir_closure2(t0) {
- this._box_0 = t0;
- },
- watchDir_closure3: function watchDir_closure3(t0, t1, t2) {
- this._box_0 = t0;
- this.watcher = t1;
- this.completer = t2;
- },
- watchDir__closure: function watchDir__closure(t0) {
- this.watcher = t0;
- },
- ShadowedModuleView_ifNecessary: function(inner, functions, mixins, variables, $T) {
- return B.ShadowedModuleView__needsBlacklist(inner.get$variables(), variables) || B.ShadowedModuleView__needsBlacklist(inner.get$functions(inner), functions) || B.ShadowedModuleView__needsBlacklist(inner.get$mixins(), mixins) ? new B.ShadowedModuleView(inner, B.ShadowedModuleView__shadowedMap(inner.get$variables(), variables, type$.Value), B.ShadowedModuleView__shadowedMap(inner.get$variableNodes(), variables, type$.AstNode), B.ShadowedModuleView__shadowedMap(inner.get$functions(inner), functions, $T), B.ShadowedModuleView__shadowedMap(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView<0>")) : null;
- },
- ShadowedModuleView__shadowedMap: function(map, blocklist, $V) {
- if (map == null || !B.ShadowedModuleView__needsBlacklist(map, blocklist))
- return map;
- return K.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
- },
- ShadowedModuleView__needsBlacklist: function(map, blocklist) {
- var t1 = map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
- return t1;
- },
- ShadowedModuleView: function ShadowedModuleView(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._shadowed_view$_inner = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.$ti = t5;
- },
- _PropertyDescriptor: function _PropertyDescriptor() {
- },
- toSentence: function(iter, conjunction) {
- if (iter.get$length(iter) === 1)
- return J.toString$0$(iter.get$first(iter));
- return iter.take$1(0, iter.get$length(iter) - 1).join$1(0, ", ") + (" " + conjunction + " " + H.S(iter.get$last(iter)));
- },
- indent: function(string, indentation) {
- return new H.MappedListIterable(H.setRuntimeTypeInfo(string.split("\n"), type$.JSArray_String), new B.indent_closure(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
- },
- pluralize: function($name, number, plural) {
- if (number === 1)
- return $name;
- if (plural != null)
- return plural;
- return $name + "s";
- },
- trimAscii: function(string, excludeEscape) {
- var start = B._firstNonWhitespace(string);
- return start == null ? "" : J.substring$2$s(string, start, B._lastNonWhitespace(string, true) + 1);
- },
- trimAsciiRight: function(string, excludeEscape) {
- var end = B._lastNonWhitespace(string, excludeEscape);
- return end == null ? "" : J.substring$2$s(string, 0, end + 1);
- },
- _firstNonWhitespace: function(string) {
- var t1, i, t2;
- for (t1 = string.length, i = 0; i < t1; ++i) {
- t2 = C.JSString_methods._codeUnitAt$1(string, i);
- if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
- return i;
- }
- return null;
- },
- _lastNonWhitespace: function(string, excludeEscape) {
- var t1, i, t2, codeUnit;
- for (t1 = string.length, i = t1 - 1, t2 = J.getInterceptor$s(string); i >= 0; --i) {
- codeUnit = t2.codeUnitAt$1(string, i);
- if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
- if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
- return i + 1;
- else
- return i;
- }
- return null;
- },
- isPublic: function(member) {
- var start = J._codeUnitAt$1$s(member, 0);
- return start !== 45 && start !== 95;
- },
- flattenVertically: function(iterable, $T) {
- var result,
- queues = new H.MappedListIterable(iterable, new B.flattenVertically_closure($T), iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>")).toList$0(0);
- if (queues.length === 1)
- return C.JSArray_methods.get$first(queues);
- result = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0>"));
- for (; queues.length !== 0;) {
- if (!!queues.fixed$length)
- H.throwExpression(P.UnsupportedError$("removeWhere"));
- C.JSArray_methods._removeWhere$2(queues, new B.flattenVertically_closure0(result), true);
- }
- return result;
- },
- firstOrNull: function(iterable) {
- var iterator = J.get$iterator$ax(iterable);
- return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
- },
- codepointIndexToCodeUnitIndex: function(string, codepointIndex) {
- var t1, codeUnitIndex, i, codeUnitIndex0, t2;
- for (t1 = J.getInterceptor$s(string), codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
- codeUnitIndex0 = codeUnitIndex + 1;
- t2 = t1._codeUnitAt$1(string, codeUnitIndex);
- codeUnitIndex = t2 >= 55296 && t2 <= 56319 ? codeUnitIndex0 + 1 : codeUnitIndex0;
- }
- return codeUnitIndex;
- },
- codeUnitIndexToCodepointIndex: function(string, codeUnitIndex) {
- var t1, codepointIndex, i, t2;
- for (t1 = J.getInterceptor$s(string), codepointIndex = 0, i = 0; i < codeUnitIndex; i = (t2 >= 55296 && t2 <= 56319 ? i + 1 : i) + 1) {
- ++codepointIndex;
- t2 = t1._codeUnitAt$1(string, i);
- }
- return codepointIndex;
- },
- frameForSpan: function(span, member, url) {
- var t2, t3, t4,
- t1 = url == null ? span.file.url : url;
- if (t1 == null)
- t1 = $.$get$_noSourceUrl();
- t2 = span.file;
- t3 = span._file$_start;
- t4 = Y.FileLocation$_(t2, t3);
- t4 = t4.file.getLine$1(t4.offset);
- t3 = Y.FileLocation$_(t2, t3);
- return new A.Frame(t1, t4 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
- },
- spanForList: function(nodes) {
- var left, right;
- if (nodes.length === 0)
- return null;
- left = C.JSArray_methods.get$first(nodes).get$span();
- if (left == null)
- return null;
- right = C.JSArray_methods.get$last(nodes).get$span();
- if (right == null)
- return null;
- return left.expand$1(0, right);
- },
- declarationName: function(span) {
- var text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
- return B.trimAsciiRight(C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":")), false);
- },
- unvendor: function($name) {
- var i,
- t1 = $name.length;
- if (t1 < 2)
- return $name;
- if (J.getInterceptor$s($name)._codeUnitAt$1($name, 0) !== 45)
- return $name;
- if (C.JSString_methods._codeUnitAt$1($name, 1) === 45)
- return $name;
- for (i = 2; i < t1; ++i)
- if (C.JSString_methods._codeUnitAt$1($name, i) === 45)
- return C.JSString_methods.substring$1($name, i + 1);
- return $name;
- },
- equalsIgnoreCase: function(string1, string2) {
- var t1, i;
- if (string1 == string2)
- return true;
- if (string1 == null || string2 == null)
- return false;
- t1 = string1.length;
- if (t1 !== string2.length)
- return false;
- for (i = 0; i < t1; ++i)
- if (!T.characterEqualsIgnoreCase(C.JSString_methods._codeUnitAt$1(string1, i), C.JSString_methods._codeUnitAt$1(string2, i)))
- return false;
- return true;
- },
- startsWithIgnoreCase: function(string, prefix) {
- var t2, i,
- t1 = prefix.length;
- if (string.length < t1)
- return false;
- for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
- if (!T.characterEqualsIgnoreCase(t2._codeUnitAt$1(string, i), C.JSString_methods._codeUnitAt$1(prefix, i)))
- return false;
- return true;
- },
- mapInPlace: function(list, $function) {
- var i;
- for (i = 0; i < list.length; ++i)
- list[i] = $function.call$1(list[i]);
- },
- longestCommonSubsequence: function(list1, list2, select, $T) {
- var t1, lengths, selections, t2, i, i0, j, selection, t3, j0, t4, t5;
- if (select == null)
- select = new B.longestCommonSubsequence_closure($T);
- t1 = J.getInterceptor$asx(list1);
- lengths = P.List_List$generate(t1.get$length(list1) + 1, new B.longestCommonSubsequence_closure0(list2), false, type$.List_int);
- selections = P.List_List$generate(t1.get$length(list1), new B.longestCommonSubsequence_closure1(list2, $T), false, $T._eval$1("List<0>"));
- for (t2 = J.getInterceptor$asx(list2), i = 0; i < t1.get$length(list1); i = i0)
- for (i0 = i + 1, j = 0; j < t2.get$length(list2); j = j0) {
- selection = select.call$2(t1.$index(list1, i), t2.$index(list2, j));
- J.$indexSet$ax(selections[i], j, selection);
- t3 = lengths[i0];
- j0 = j + 1;
- if (selection == null) {
- t4 = J.$index$asx(t3, j);
- t5 = J.$index$asx(lengths[i], j0);
- t5 = Math.max(H.checkNum(t4), H.checkNum(t5));
- t4 = t5;
- } else
- t4 = J.$index$asx(lengths[i], j) + 1;
- J.$indexSet$ax(t3, j0, t4);
- }
- return new B.longestCommonSubsequence_backtrack(selections, lengths, $T).call$2(t1.get$length(list1) - 1, t2.get$length(list2) - 1);
- },
- removeFirstWhere: function(list, test, orElse) {
- var toRemove, element,
- t1 = list.length,
- _i = 0;
- while (true) {
- if (!(_i < list.length)) {
- toRemove = null;
- break;
- }
- c$0: {
- element = list[_i];
- if (!test.call$1(element))
- break c$0;
- toRemove = element;
- break;
- }
- list.length === t1 || (0, H.throwConcurrentModificationError)(list);
- ++_i;
- }
- if (toRemove == null)
- return orElse.call$0();
- else {
- C.JSArray_methods.remove$1(list, toRemove);
- return toRemove;
- }
- },
- mapAddAll2: function(destination, source) {
- source.forEach$1(0, new B.mapAddAll2_closure(destination));
- },
- setAll: function(map, keys, value) {
- var t1;
- for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
- map.$indexSet(0, t1.get$current(t1), value);
- },
- rotateSlice: function(list, start, end) {
- var i, next,
- element = list.$index(0, end - 1);
- for (i = start; i < end; ++i, element = next) {
- next = list.$index(0, i);
- list.$indexSet(0, i, element);
- }
- },
- mapAsync: function(iterable, callback, $E, $F) {
- return B.mapAsync$body(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
- },
- mapAsync$body: function(iterable, callback, $E, $F, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, t2, _i, t1, $async$temp1;
- var $async$mapAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = H.setRuntimeTypeInfo([], $F._eval$1("JSArray<0>"));
- t2 = iterable.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$temp1 = t1;
- $async$goto = 6;
- return P._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync);
- case 6:
- // returning from await.
- $async$temp1.push($async$result);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$mapAsync, $async$completer);
- },
- putIfAbsentAsync: function(map, key, ifAbsent, $K, $V) {
- return B.putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $V);
- },
- putIfAbsentAsync$body: function(map, key, ifAbsent, $K, $V, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, value;
- var $async$putIfAbsentAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (map.containsKey$1(key)) {
- $async$returnValue = map.$index(0, key);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return P._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync);
- case 3:
- // returning from await.
- value = $async$result;
- map.$indexSet(0, key, value);
- $async$returnValue = value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$putIfAbsentAsync, $async$completer);
- },
- mapMapAsync: function(map, value, K1, V1, K2, V2) {
- return B.mapMapAsync$body(map, value, K1, V1, K2, V2, K2._eval$1("@<0>")._bind$1(V2)._eval$1("Map<1,2>"));
- },
- mapMapAsync$body: function(map, value, K1, V1, K2, V2, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, t1, mapKey, mapValue, key, result, $async$temp1, $async$temp2;
- var $async$mapMapAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- key = new B.mapMapAsync_closure(K2, K1, V1);
- result = P.LinkedHashMap_LinkedHashMap$_empty(K2, V2);
- t1 = J.get$iterator$ax(map.get$keys());
- case 3:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 4;
- break;
- }
- mapKey = t1.get$current(t1);
- mapValue = map.$index(0, mapKey);
- $async$temp1 = result;
- $async$goto = 5;
- return P._asyncAwait(key.call$2(mapKey, mapValue), $async$mapMapAsync);
- case 5:
- // returning from await.
- $async$temp2 = $async$result;
- $async$goto = 6;
- return P._asyncAwait(value.call$2(mapKey, mapValue), $async$mapMapAsync);
- case 6:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, $async$result);
- // goto for condition
- $async$goto = 3;
- break;
- case 4:
- // after for
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$mapMapAsync, $async$completer);
- },
- copyMapOfMap: function(map, K1, K2, $V) {
- var t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>");
- return Y.mapMap(map, null, new B.copyMapOfMap_closure(K2, $V), K1, t1, K1, t1);
- },
- copyMapOfList: function(map, $K, $E) {
- var t1 = $E._eval$1("List<0>");
- return Y.mapMap(map, null, new B.copyMapOfList_closure(), $K, t1, $K, t1);
- },
- SpanExtensions_trim: function(_this) {
- var t3, end, end0,
- t1 = _this.file,
- t2 = _this._file$_start,
- text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t2, _this._end), 0, null),
- start = 0;
- while (true) {
- t3 = C.JSString_methods._codeUnitAt$1(text, start);
- if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
- break;
- ++start;
- }
- end = text.length - 1;
- end0 = end;
- while (true) {
- t3 = C.JSString_methods.codeUnitAt$1(text, end0);
- if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
- break;
- --end0;
- }
- return start === 0 && end0 === end ? _this : t1.span$2(Y.FileLocation$_(t1, t2).offset + start, Y.FileLocation$_(t1, t2).offset + end0 + 1);
- },
- indent_closure: function indent_closure(t0) {
- this.indentation = t0;
- },
- flattenVertically_closure: function flattenVertically_closure(t0) {
- this.T = t0;
- },
- flattenVertically_closure0: function flattenVertically_closure0(t0) {
- this.result = t0;
- },
- longestCommonSubsequence_closure: function longestCommonSubsequence_closure(t0) {
- this.T = t0;
- },
- longestCommonSubsequence_closure0: function longestCommonSubsequence_closure0(t0) {
- this.list2 = t0;
- },
- longestCommonSubsequence_closure1: function longestCommonSubsequence_closure1(t0, t1) {
- this.list2 = t0;
- this.T = t1;
- },
- longestCommonSubsequence_backtrack: function longestCommonSubsequence_backtrack(t0, t1, t2) {
- this.selections = t0;
- this.lengths = t1;
- this.T = t2;
- },
- mapAddAll2_closure: function mapAddAll2_closure(t0) {
- this.destination = t0;
- },
- mapMapAsync_closure: function mapMapAsync_closure(t0, t1, t2) {
- this.K2 = t0;
- this.K1 = t1;
- this.V1 = t2;
- },
- copyMapOfMap_closure: function copyMapOfMap_closure(t0, t1) {
- this.K2 = t0;
- this.V = t1;
- },
- copyMapOfList_closure: function copyMapOfList_closure() {
- },
- ArgumentDeclaration_ArgumentDeclaration$parse0: function(contents, url) {
- var t1 = S.SpanScanner$(contents, url);
- return new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0();
- },
- ArgumentDeclaration0: function ArgumentDeclaration0(t0, t1, t2) {
- this.$arguments = t0;
- this.restArgument = t1;
- this.span = t2;
- },
- ArgumentDeclaration_verify_closure1: function ArgumentDeclaration_verify_closure1() {
- },
- ArgumentDeclaration_verify_closure2: function ArgumentDeclaration_verify_closure2() {
- },
- AsyncCallable0: function AsyncCallable0() {
- },
- AsyncImporter0: function AsyncImporter0() {
- },
- DynamicImport0: function DynamicImport0(t0, t1) {
- this.url = t0;
- this.span = t1;
- },
- ForRule0: function ForRule0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.variable = t0;
- _.from = t1;
- _.to = t2;
- _.isExclusive = t3;
- _.span = t4;
- _.children = t5;
- _.hasDeclarations = t6;
- },
- ImportRule0: function ImportRule0(t0, t1) {
- this.imports = t0;
- this.span = t1;
- },
- AstNode0: function AstNode0() {
- },
- _FakeAstNode0: function _FakeAstNode0(t0) {
- this._node3$_callback = t0;
- },
- CssNode0: function CssNode0() {
- },
- CssParentNode0: function CssParentNode0() {
- },
- readFile0: function(path) {
- var t1, t2, t3, sourceFile, i,
- contents = H._asStringNullable(B._readFile0(path, "utf8"));
- if (!J.getInterceptor$asx(contents).contains$1(contents, "\ufffd"))
- return contents;
- t1 = $.$get$context().toUri$1(path);
- t2 = new H.CodeUnits(contents);
- t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
- sourceFile = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
- sourceFile.SourceFile$decoded$2$url(t2, t1);
- for (t1 = contents.length, i = 0; i < t1; ++i) {
- if (C.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
- continue;
- throw H.wrapException(E.SassException$0("Invalid UTF-8.", Y.FileLocation$_(sourceFile, i).pointSpan$0()));
- }
- return contents;
- },
- _readFile0: function(path, encoding) {
- return B._systemErrorToFileSystemException0(new B._readFile_closure0(path, encoding));
- },
- fileExists0: function(path) {
- return B._systemErrorToFileSystemException0(new B.fileExists_closure0(path));
- },
- dirExists0: function(path) {
- return B._systemErrorToFileSystemException0(new B.dirExists_closure0(path));
- },
- listDir0: function(path) {
- return B._systemErrorToFileSystemException0(new B.listDir_closure0(false, path));
- },
- _systemErrorToFileSystemException0: function(callback) {
- var error, systemError, t1, exception, t2;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- error = H.unwrapException(exception);
- systemError = type$._SystemError_2._as(error);
- t1 = systemError;
- t2 = J.getInterceptor$x(t1);
- 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)));
- }
- },
- _FS0: function _FS0() {
- },
- _Stat0: function _Stat0() {
- },
- _Date0: function _Date0() {
- },
- _Stderr0: function _Stderr0() {
- },
- _Stdin0: function _Stdin0() {
- },
- _SystemError0: function _SystemError0() {
- },
- _Process0: function _Process0() {
- },
- FileSystemException0: function FileSystemException0(t0, t1) {
- this.message = t0;
- this.path = t1;
- },
- Stderr0: function Stderr0(t0) {
- this._node1$_stderr = t0;
- },
- _readFile_closure0: function _readFile_closure0(t0, t1) {
- this.path = t0;
- this.encoding = t1;
- },
- fileExists_closure0: function fileExists_closure0(t0) {
- this.path = t0;
- },
- dirExists_closure0: function dirExists_closure0(t0) {
- this.path = t0;
- },
- listDir_closure0: function listDir_closure0(t0, t1) {
- this.recursive = t0;
- this.path = t1;
- },
- listDir__closure1: function listDir__closure1(t0) {
- this.path = t0;
- },
- listDir__closure2: function listDir__closure2() {
- },
- listDir_closure_list0: function listDir_closure_list0() {
- },
- listDir__list_closure0: function listDir__list_closure0(t0, t1) {
- this.parent = t0;
- this.list = t1;
- },
- ModifiableCssNode0: function ModifiableCssNode0() {
- },
- ModifiableCssParentNode0: function ModifiableCssParentNode0() {
- },
- SassNode0: function SassNode0() {
- },
- _render: function(options, callback) {
- var t1 = J.getInterceptor$x(options);
- if (t1.get$fiber(options) != null)
- J.run$0$x(t1.get$fiber(options).call$1(P.allowInterop(new B._render_closure(callback, options))));
- else
- B._renderAsync(options).then$1$2$onError(new B._render_closure0(callback), new B._render_closure1(callback), type$.Null);
- },
- _renderAsync: function(options) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.RenderResult),
- $async$returnValue, t2, t3, t4, t5, t6, t7, t8, t9, result, start, t1, file;
- var $async$_renderAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- start = new P.DateTime(Date.now(), false);
- t1 = J.getInterceptor$x(options);
- file = t1.get$file(options) == null ? null : D.absolute(t1.get$file(options));
- $async$goto = t1.get$data(options) != null ? 3 : 5;
- break;
- case 3:
- // then
- t2 = t1.get$data(options);
- t3 = B._parseImporter(options, start);
- t4 = B._parseFunctions(options, true);
- t5 = t1.get$indentedSyntax(options);
- t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : null;
- t6 = B._parseOutputStyle(t1.get$outputStyle(options));
- t7 = J.$eq$(t1.get$indentType(options), "tab");
- t8 = B._parseIndentWidth(t1.get$indentWidth(options));
- t9 = B._parseLineFeed(t1.get$linefeed(options));
- t1 = t1.get$file(options) == null ? "stdin" : J.toString$0$($.$get$context().toUri$1(file));
- $async$goto = 6;
- return P._asyncAwait(X.compileStringAsync0(t2, t4, t8, t9, t3, B._enableSourceMaps(options), t6, t5, t1, !t7), $async$_renderAsync);
- case 6:
- // returning from await.
- result = $async$result;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = t1.get$file(options) != null ? 7 : 9;
- break;
- case 7:
- // then
- t2 = B._parseImporter(options, start);
- t3 = B._parseFunctions(options, true);
- t4 = t1.get$indentedSyntax(options);
- t4 = !J.$eq$(t4, false) && t4 != null ? C.Syntax_Sass0 : null;
- t5 = B._parseOutputStyle(t1.get$outputStyle(options));
- t6 = J.$eq$(t1.get$indentType(options), "tab");
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- result = $async$result;
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- throw H.wrapException(P.ArgumentError$("Either options.data or options.file must be set."));
- case 8:
- // join
- case 4:
- // join
- $async$returnValue = B._newRenderResult(options, result, start);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_renderAsync, $async$completer);
- },
- _renderSync: function(options) {
- var start, file, result, error, error0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, stylesheet, exception, _null = null;
- try {
- start = new P.DateTime(Date.now(), false);
- t1 = J.getInterceptor$x(options);
- file = t1.get$file(options) == null ? _null : D.absolute(t1.get$file(options));
- result = null;
- if (t1.get$data(options) != null) {
- t2 = t1.get$data(options);
- t3 = B._parseImporter(options, start);
- t4 = B._parseFunctions(options, false);
- t5 = t1.get$indentedSyntax(options);
- t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : _null;
- t6 = B._parseOutputStyle(t1.get$outputStyle(options));
- t7 = J.$eq$(t1.get$indentType(options), "tab");
- t8 = B._parseIndentWidth(t1.get$indentWidth(options));
- t9 = B._parseLineFeed(t1.get$linefeed(options));
- t1 = t1.get$file(options) == null ? "stdin" : J.toString$0$($.$get$context().toUri$1(file));
- t10 = B._enableSourceMaps(options);
- stylesheet = V.Stylesheet_Stylesheet$parse0(t2, t5 == null ? C.Syntax_SCSS0 : t5, _null, t1);
- t1 = D.absolute(".");
- 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);
- } else if (t1.get$file(options) != null) {
- t2 = file;
- t3 = B._parseImporter(options, start);
- t4 = B._parseFunctions(options, false);
- t5 = t1.get$indentedSyntax(options);
- t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : _null;
- t6 = B._parseOutputStyle(t1.get$outputStyle(options));
- t7 = J.$eq$(t1.get$indentType(options), "tab");
- t8 = B._parseIndentWidth(t1.get$indentWidth(options));
- t1 = B._parseLineFeed(t1.get$linefeed(options));
- t9 = B._enableSourceMaps(options);
- t10 = B.readFile0(t2);
- if (t5 == null)
- t5 = M.Syntax_forPath0(t2);
- stylesheet = V.Stylesheet_Stylesheet$parse0(t10, t5, _null, $.$get$context().toUri$1(t2));
- 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);
- } else {
- t1 = P.ArgumentError$("Either options.data or options.file must be set.");
- throw H.wrapException(t1);
- }
- t1 = B._newRenderResult(options, result, start);
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException0) {
- error = t1;
- t1 = B._wrapException(error);
- $.$get$_jsThrow().call$1(t1);
- } else {
- error0 = t1;
- t1 = B._newRenderError(J.toString$0$(error0), _null, _null, _null, 3);
- $.$get$_jsThrow().call$1(t1);
- }
- }
- throw H.wrapException("unreachable");
- },
- _wrapException: function(exception) {
- var t3, t4,
- t1 = C.JSString_methods.replaceFirst$2(exception.toString$0(0), "Error: ", ""),
- t2 = G.SourceSpanException.prototype.get$span.call(exception);
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- t2 = t2.file.getLine$1(t2.offset);
- t3 = G.SourceSpanException.prototype.get$span.call(exception);
- t3 = Y.FileLocation$_(t3.file, t3._file$_start);
- t3 = t3.file.getColumn$1(t3.offset);
- if (G.SourceSpanException.prototype.get$span.call(exception).file.url == null)
- t4 = "stdin";
- else {
- t4 = G.SourceSpanException.prototype.get$span.call(exception).file;
- t4 = $.$get$context().style.pathFromUri$1(M._parseUri(t4.url));
- }
- return B._newRenderError(t1, t3 + 1, t4, t2 + 1, 1);
- },
- _parseFunctions: function(options, asynch) {
- var result,
- t1 = J.getInterceptor$x(options);
- if (t1.get$functions(options) == null)
- return C.List_empty21;
- result = H.setRuntimeTypeInfo([], type$.JSArray_AsyncCallable);
- B.jsForEach(t1.get$functions(options), new B._parseFunctions_closure(options, result, asynch));
- return result;
- },
- _parseImporter: function(options, start) {
- var importers, t2, t3, includePaths, t4, t5, t6, t7, _i, t8, t9, t10, context,
- t1 = J.getInterceptor$x(options);
- if (t1.get$importer(options) == null)
- importers = H.setRuntimeTypeInfo([], type$.JSArray_JSFunction);
- else {
- t2 = type$.List_Object;
- t3 = type$.JSFunction;
- 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_JSFunction);
- }
- t2 = t1.get$includePaths(options);
- if (t2 == null)
- t2 = [];
- t3 = type$.String;
- includePaths = P.List_List$from(t2, true, t3);
- t2 = J.getInterceptor$asx(importers);
- if (t2.get$isNotEmpty(importers)) {
- t4 = t1.get$file(options);
- t5 = t1.get$data(options);
- t6 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- t6.push(D.current());
- for (t7 = includePaths.length, _i = 0; _i < includePaths.length; includePaths.length === t7 || (0, H.throwConcurrentModificationError)(includePaths), ++_i)
- t6.push(includePaths[_i]);
- t6 = C.JSArray_methods.join$1(t6, J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
- t7 = J.$eq$(t1.get$indentType(options), "tab") ? 1 : 0;
- t8 = B._parseIndentWidth(t1.get$indentWidth(options));
- if (t8 == null)
- t8 = 2;
- t9 = B._parseLineFeed(t1.get$linefeed(options));
- t10 = t1.get$file(options);
- if (t10 == null)
- t10 = "data";
- 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._core$_value}}}};
- J.set$context$x(J.get$options$x(context), context);
- } else
- context = null;
- if (t1.get$fiber(options) != null)
- importers = t2.map$1$1(importers, new B._parseImporter_closure(options), type$.JSFunction).toList$0(0);
- 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$.JSFunction));
- },
- _parseOutputStyle: function(style) {
- if (style == null || style === "expanded")
- return C.OutputStyle_expanded;
- if (style === "compressed")
- return C.OutputStyle_compressed0;
- throw H.wrapException(P.ArgumentError$('Unsupported output style "' + H.S(style) + '".'));
- },
- _parseIndentWidth: function(width) {
- if (width == null)
- return null;
- return H._isInt(width) ? width : P.int_parse(J.toString$0$(width), null, null);
- },
- _parseLineFeed: function(str) {
- switch (str) {
- case "cr":
- return C.LineFeed_kMT;
- case "crlf":
- return C.LineFeed_Mss;
- case "lfcr":
- return C.LineFeed_a1Y;
- default:
- return C.LineFeed_D6m;
- }
- },
- _newRenderResult: function(options, result, start) {
- var t3, sourceMapPath, t4, sourceMapDir, sourceMapDirUrl, i, source, t5, t6, sourceMapBytes, buffer, indices, url, _null = null,
- t1 = Date.now(),
- t2 = result._async_compile$_serialize,
- css = t2.css;
- if (B._enableSourceMaps(options)) {
- t3 = J.getInterceptor$x(options);
- sourceMapPath = typeof t3.get$sourceMap(options) == "string" ? H._asStringNullable(t3.get$sourceMap(options)) : J.$add$ansx(t3.get$outFile(options), ".map");
- t4 = $.$get$context();
- sourceMapDir = t4.dirname$1(sourceMapPath);
- t2 = t2.sourceMap;
- t2.sourceRoot = t3.get$sourceMapRoot(options);
- if (t3.get$outFile(options) == null)
- if (t3.get$file(options) == null)
- t2.targetUrl = "stdin.css";
- else
- t2.targetUrl = J.toString$0$(t4.toUri$1(t4.withoutExtension$1(t3.get$file(options)) + ".css"));
- else
- t2.targetUrl = J.toString$0$(t4.toUri$1(t4.relative$2$from(t3.get$outFile(options), sourceMapDir)));
- sourceMapDirUrl = J.toString$0$(t4.toUri$1(sourceMapDir));
- for (t4 = t2.urls, i = 0; i < t4.length; ++i) {
- source = t4[i];
- if (source === "stdin")
- continue;
- t5 = $.$get$url();
- t6 = t5.style;
- if (t6.rootLength$1(source) <= 0 || t6.isRootRelative$1(source))
- continue;
- t4[i] = t5.relative$2$from(source, sourceMapDirUrl);
- }
- t4 = t3.get$sourceMapContents(options);
- sourceMapBytes = self.Buffer.from(C.C_JsonCodec.encode$2$toEncodable(t2.toJson$1$includeSourceContents(!J.$eq$(t4, false) && t4 != null), _null), "utf8");
- t2 = t3.get$omitSourceMapUrl(options);
- if (!(!J.$eq$(t2, false) && t2 != null)) {
- t2 = t3.get$sourceMapEmbed(options);
- if (!J.$eq$(t2, false) && t2 != null) {
- buffer = new P.StringBuffer("");
- indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
- P.UriData__writeUri("application/json", _null, _null, buffer, indices);
- indices.push(buffer._contents.length);
- t2 = buffer._contents += ";base64,";
- indices.push(t2.length - 1);
- C.C_Base64Encoder.startChunkedConversion$1(new P._StringSinkConversionSink(buffer)).addSlice$4(sourceMapBytes, 0, sourceMapBytes.length, true);
- t2 = buffer._contents;
- url = new P.UriData(t2.charCodeAt(0) == 0 ? t2 : t2, indices, _null).get$uri();
- } else {
- if (t3.get$outFile(options) == null)
- t2 = sourceMapPath;
- else {
- t2 = t3.get$outFile(options);
- t3 = $.$get$context();
- t2 = t3.relative$2$from(sourceMapPath, t3.dirname$1(t2));
- }
- url = $.$get$context().toUri$1(t2);
- }
- css += "\n\n/*# sourceMappingURL=" + H.S(url) + " */";
- }
- } else
- sourceMapBytes = _null;
- t2 = self.Buffer.from(css, "utf8");
- t3 = J.get$file$x(options);
- if (t3 == null)
- t3 = "data";
- t4 = start._core$_value;
- t1 = new P.DateTime(t1, false)._core$_value;
- return {css: t2, map: sourceMapBytes, stats: {entry: t3, start: t4, end: t1, duration: C.JSInt_methods._tdivFast$1(P.Duration$(t1 - t4)._duration, 1000), includedFiles: result._evaluate.includedFiles.toList$0(0)}};
- },
- _enableSourceMaps: function(options) {
- var t2,
- t1 = J.getInterceptor$x(options);
- if (typeof t1.get$sourceMap(options) != "string") {
- t2 = t1.get$sourceMap(options);
- t1 = !J.$eq$(t2, false) && t2 != null && t1.get$outFile(options) != null;
- } else
- t1 = true;
- return t1;
- },
- _newRenderError: function(message, column, file, line, $status) {
- var error = new self.Error(message);
- error.formatted = "Error: " + H.S(message);
- if (line != null)
- error.line = line;
- if (column != null)
- error.column = column;
- if (file != null)
- error.file = file;
- error.status = $status;
- return error;
- },
- _render_closure: function _render_closure(t0, t1) {
- this.callback = t0;
- this.options = t1;
- },
- _render_closure0: function _render_closure0(t0) {
- this.callback = t0;
- },
- _render_closure1: function _render_closure1(t0) {
- this.callback = t0;
- },
- _parseFunctions_closure: function _parseFunctions_closure(t0, t1, t2) {
- this.options = t0;
- this.result = t1;
- this.asynch = t2;
- },
- _parseFunctions__closure: function _parseFunctions__closure(t0, t1) {
- this.options = t0;
- this.callback = t1;
- },
- _parseFunctions___closure0: function _parseFunctions___closure0(t0) {
- this.fiber = t0;
- },
- _parseFunctions____closure: function _parseFunctions____closure(t0, t1) {
- this.fiber = t0;
- this.result = t1;
- },
- _parseFunctions__closure0: function _parseFunctions__closure0(t0) {
- this.callback = t0;
- },
- _parseFunctions__closure1: function _parseFunctions__closure1(t0) {
- this.callback = t0;
- },
- _parseFunctions___closure: function _parseFunctions___closure(t0) {
- this.completer = t0;
- },
- _parseImporter_closure: function _parseImporter_closure(t0) {
- this.options = t0;
- },
- _parseImporter__closure: function _parseImporter__closure(t0, t1) {
- this.options = t0;
- this.importer = t1;
- },
- _parseImporter___closure: function _parseImporter___closure(t0) {
- this.fiber = t0;
- },
- _parseImporter____closure: function _parseImporter____closure(t0, t1) {
- this.fiber = t0;
- this.result = t1;
- },
- ReturnRule0: function ReturnRule0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- ShadowedModuleView_ifNecessary0: function(inner, functions, mixins, variables, $T) {
- return B.ShadowedModuleView__needsBlacklist0(inner.get$variables(), variables) || B.ShadowedModuleView__needsBlacklist0(inner.get$functions(inner), functions) || B.ShadowedModuleView__needsBlacklist0(inner.get$mixins(), mixins) ? new B.ShadowedModuleView0(inner, B.ShadowedModuleView__shadowedMap0(inner.get$variables(), variables, type$.Value_2), B.ShadowedModuleView__shadowedMap0(inner.get$variableNodes(), variables, type$.AstNode_2), B.ShadowedModuleView__shadowedMap0(inner.get$functions(inner), functions, $T), B.ShadowedModuleView__shadowedMap0(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView0<0>")) : null;
- },
- ShadowedModuleView__shadowedMap0: function(map, blocklist, $V) {
- if (map == null || !B.ShadowedModuleView__needsBlacklist0(map, blocklist))
- return map;
- return K.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
- },
- ShadowedModuleView__needsBlacklist0: function(map, blocklist) {
- var t1 = map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
- return t1;
- },
- ShadowedModuleView0: function ShadowedModuleView0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._shadowed_view0$_inner = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.$ti = t5;
- },
- SilentComment0: function SilentComment0(t0, t1) {
- this.text = t0;
- this.span = t1;
- },
- ModifiableCssSupportsRule0: function ModifiableCssSupportsRule0(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _._node2$_children = t3;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- SupportsRule0: function SupportsRule0(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- inImportRule0: function(callback) {
- var t1,
- wasInImportRule = $._inImportRule0;
- $._inImportRule0 = true;
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- $._inImportRule0 = wasInImportRule;
- }
- },
- resolveImportPath0: function(path) {
- var t1,
- extension = X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
- if (extension === ".sass" || extension === ".scss" || extension === ".css") {
- t1 = $._inImportRule0 ? new B.resolveImportPath_closure1(path, extension).call$0() : null;
- return t1 == null ? B._exactlyOne0(B._tryPath0(path)) : t1;
- }
- t1 = $._inImportRule0 ? new B.resolveImportPath_closure2(path).call$0() : null;
- if (t1 == null)
- t1 = B._exactlyOne0(B._tryPathWithExtensions0(path));
- return t1 == null ? B._tryPathAsDirectory0(path) : t1;
- },
- _tryPathWithExtensions0: function(path) {
- var result = B._tryPath0(J.$add$ansx(path, ".sass"));
- C.JSArray_methods.addAll$1(result, B._tryPath0(path + ".scss"));
- return result.length !== 0 ? result : B._tryPath0(path + ".css");
- },
- _tryPath0: function(path) {
- var t1 = $.$get$context(),
- partial = D.join(t1.dirname$1(path), "_" + H.S(X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename()), null);
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- if (B.fileExists0(partial))
- t1.push(partial);
- if (B.fileExists0(path))
- t1.push(path);
- return t1;
- },
- _tryPathAsDirectory0: function(path) {
- var t1;
- if (!B.dirExists0(path))
- return null;
- t1 = $._inImportRule0 ? new B._tryPathAsDirectory_closure0(path).call$0() : null;
- return t1 == null ? B._exactlyOne0(B._tryPathWithExtensions0(D.join(path, "index", null))) : t1;
- },
- _exactlyOne0: function(paths) {
- var t1 = paths.length;
- if (t1 === 0)
- return null;
- if (t1 === 1)
- return C.JSArray_methods.get$first(paths);
- throw H.wrapException("It's not clear which file to import. Found:\n" + C.JSArray_methods.map$1$1(paths, new B._exactlyOne_closure0(), type$.String).join$1(0, "\n"));
- },
- resolveImportPath_closure1: function resolveImportPath_closure1(t0, t1) {
- this.path = t0;
- this.extension = t1;
- },
- resolveImportPath_closure2: function resolveImportPath_closure2(t0) {
- this.path = t0;
- },
- _tryPathAsDirectory_closure0: function _tryPathAsDirectory_closure0(t0) {
- this.path = t0;
- },
- _exactlyOne_closure0: function _exactlyOne_closure0() {
- },
- forwardToString: function(klass) {
- klass.prototype.toString = P.allowInteropCaptureThis(new B.forwardToString_closure());
- },
- jsForEach: function(object, callback) {
- var t1, t2;
- for (t1 = J.get$iterator$ax(self.Object.keys(object)); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- callback.call$2(t2, object[t2]);
- }
- },
- createClass: function($name, $constructor, methods) {
- var klass = P.allowInteropCaptureThis($constructor);
- self.Object.defineProperty(klass, "name", {value: $name});
- methods.forEach$1(0, new B.createClass_closure(klass.prototype));
- return klass;
- },
- injectSuperclass: function(object, $constructor) {
- var $prototype = self.Object.getPrototypeOf(object),
- $parent = self.Object.getPrototypeOf($prototype);
- if ($parent != null)
- self.Object.setPrototypeOf($constructor.prototype, $parent);
- self.Object.setPrototypeOf($prototype, self.Object.create($constructor.prototype));
- },
- forwardToString_closure: function forwardToString_closure() {
- },
- createClass_closure: function createClass_closure(t0) {
- this.$prototype = t0;
- },
- _PropertyDescriptor0: function _PropertyDescriptor0() {
- },
- toSentence0: function(iter, conjunction) {
- if (iter.get$length(iter) === 1)
- return J.toString$0$(iter.get$first(iter));
- return iter.take$1(0, iter.get$length(iter) - 1).join$1(0, ", ") + (" " + conjunction + " " + H.S(iter.get$last(iter)));
- },
- indent0: function(string, indentation) {
- return new H.MappedListIterable(H.setRuntimeTypeInfo(string.split("\n"), type$.JSArray_String), new B.indent_closure0(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
- },
- pluralize0: function($name, number, plural) {
- if (number === 1)
- return $name;
- if (plural != null)
- return plural;
- return $name + "s";
- },
- trimAscii0: function(string, excludeEscape) {
- var start = B._firstNonWhitespace0(string);
- return start == null ? "" : J.substring$2$s(string, start, B._lastNonWhitespace0(string, true) + 1);
- },
- trimAsciiRight0: function(string, excludeEscape) {
- var end = B._lastNonWhitespace0(string, excludeEscape);
- return end == null ? "" : J.substring$2$s(string, 0, end + 1);
- },
- _firstNonWhitespace0: function(string) {
- var t1, i, t2;
- for (t1 = string.length, i = 0; i < t1; ++i) {
- t2 = C.JSString_methods._codeUnitAt$1(string, i);
- if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
- return i;
- }
- return null;
- },
- _lastNonWhitespace0: function(string, excludeEscape) {
- var t1, i, t2, codeUnit;
- for (t1 = string.length, i = t1 - 1, t2 = J.getInterceptor$s(string); i >= 0; --i) {
- codeUnit = t2.codeUnitAt$1(string, i);
- if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
- if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
- return i + 1;
- else
- return i;
- }
- return null;
- },
- isPublic0: function(member) {
- var start = J._codeUnitAt$1$s(member, 0);
- return start !== 45 && start !== 95;
- },
- flattenVertically0: function(iterable, $T) {
- var result,
- queues = new H.MappedListIterable(iterable, new B.flattenVertically_closure1($T), iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>")).toList$0(0);
- if (queues.length === 1)
- return C.JSArray_methods.get$first(queues);
- result = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0>"));
- for (; queues.length !== 0;) {
- if (!!queues.fixed$length)
- H.throwExpression(P.UnsupportedError$("removeWhere"));
- C.JSArray_methods._removeWhere$2(queues, new B.flattenVertically_closure2(result), true);
- }
- return result;
- },
- firstOrNull0: function(iterable) {
- var iterator = J.get$iterator$ax(iterable);
- return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
- },
- codepointIndexToCodeUnitIndex0: function(string, codepointIndex) {
- var t1, codeUnitIndex, i, codeUnitIndex0, t2;
- for (t1 = J.getInterceptor$s(string), codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
- codeUnitIndex0 = codeUnitIndex + 1;
- t2 = t1._codeUnitAt$1(string, codeUnitIndex);
- codeUnitIndex = t2 >= 55296 && t2 <= 56319 ? codeUnitIndex0 + 1 : codeUnitIndex0;
- }
- return codeUnitIndex;
- },
- codeUnitIndexToCodepointIndex0: function(string, codeUnitIndex) {
- var t1, codepointIndex, i, t2;
- for (t1 = J.getInterceptor$s(string), codepointIndex = 0, i = 0; i < codeUnitIndex; i = (t2 >= 55296 && t2 <= 56319 ? i + 1 : i) + 1) {
- ++codepointIndex;
- t2 = t1._codeUnitAt$1(string, i);
- }
- return codepointIndex;
- },
- frameForSpan0: function(span, member, url) {
- var t2, t3, t4,
- t1 = url == null ? span.file.url : url;
- if (t1 == null)
- t1 = $.$get$_noSourceUrl0();
- t2 = span.file;
- t3 = span._file$_start;
- t4 = Y.FileLocation$_(t2, t3);
- t4 = t4.file.getLine$1(t4.offset);
- t3 = Y.FileLocation$_(t2, t3);
- return new A.Frame(t1, t4 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
- },
- spanForList0: function(nodes) {
- var left, right;
- if (nodes.length === 0)
- return null;
- left = C.JSArray_methods.get$first(nodes).get$span();
- if (left == null)
- return null;
- right = C.JSArray_methods.get$last(nodes).get$span();
- if (right == null)
- return null;
- return left.expand$1(0, right);
- },
- declarationName0: function(span) {
- var text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
- return B.trimAsciiRight0(C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":")), false);
- },
- unvendor0: function($name) {
- var i,
- t1 = $name.length;
- if (t1 < 2)
- return $name;
- if (J.getInterceptor$s($name)._codeUnitAt$1($name, 0) !== 45)
- return $name;
- if (C.JSString_methods._codeUnitAt$1($name, 1) === 45)
- return $name;
- for (i = 2; i < t1; ++i)
- if (C.JSString_methods._codeUnitAt$1($name, i) === 45)
- return C.JSString_methods.substring$1($name, i + 1);
- return $name;
- },
- equalsIgnoreCase0: function(string1, string2) {
- var t1, i;
- if (string1 == string2)
- return true;
- if (string1 == null || string2 == null)
- return false;
- t1 = string1.length;
- if (t1 !== string2.length)
- return false;
- for (i = 0; i < t1; ++i)
- if (!T.characterEqualsIgnoreCase0(C.JSString_methods._codeUnitAt$1(string1, i), C.JSString_methods._codeUnitAt$1(string2, i)))
- return false;
- return true;
- },
- startsWithIgnoreCase0: function(string, prefix) {
- var t2, i,
- t1 = prefix.length;
- if (string.length < t1)
- return false;
- for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
- if (!T.characterEqualsIgnoreCase0(t2._codeUnitAt$1(string, i), C.JSString_methods._codeUnitAt$1(prefix, i)))
- return false;
- return true;
- },
- mapInPlace0: function(list, $function) {
- var i;
- for (i = 0; i < list.length; ++i)
- list[i] = $function.call$1(list[i]);
- },
- longestCommonSubsequence0: function(list1, list2, select, $T) {
- var t1, lengths, selections, t2, i, i0, j, selection, t3, j0, t4, t5;
- if (select == null)
- select = new B.longestCommonSubsequence_closure2($T);
- t1 = J.getInterceptor$asx(list1);
- lengths = P.List_List$generate(t1.get$length(list1) + 1, new B.longestCommonSubsequence_closure3(list2), false, type$.List_int);
- selections = P.List_List$generate(t1.get$length(list1), new B.longestCommonSubsequence_closure4(list2, $T), false, $T._eval$1("List<0>"));
- for (t2 = J.getInterceptor$asx(list2), i = 0; i < t1.get$length(list1); i = i0)
- for (i0 = i + 1, j = 0; j < t2.get$length(list2); j = j0) {
- selection = select.call$2(t1.$index(list1, i), t2.$index(list2, j));
- J.$indexSet$ax(selections[i], j, selection);
- t3 = lengths[i0];
- j0 = j + 1;
- if (selection == null) {
- t4 = J.$index$asx(t3, j);
- t5 = J.$index$asx(lengths[i], j0);
- t5 = Math.max(H.checkNum(t4), H.checkNum(t5));
- t4 = t5;
- } else
- t4 = J.$index$asx(lengths[i], j) + 1;
- J.$indexSet$ax(t3, j0, t4);
- }
- return new B.longestCommonSubsequence_backtrack0(selections, lengths, $T).call$2(t1.get$length(list1) - 1, t2.get$length(list2) - 1);
- },
- removeFirstWhere0: function(list, test, orElse) {
- var toRemove, element,
- t1 = list.length,
- _i = 0;
- while (true) {
- if (!(_i < list.length)) {
- toRemove = null;
- break;
- }
- c$0: {
- element = list[_i];
- if (!test.call$1(element))
- break c$0;
- toRemove = element;
- break;
- }
- list.length === t1 || (0, H.throwConcurrentModificationError)(list);
- ++_i;
- }
- if (toRemove == null)
- return orElse.call$0();
- else {
- C.JSArray_methods.remove$1(list, toRemove);
- return toRemove;
- }
- },
- mapAddAll20: function(destination, source) {
- source.forEach$1(0, new B.mapAddAll2_closure0(destination));
- },
- setAll0: function(map, keys, value) {
- var t1;
- for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
- map.$indexSet(0, t1.get$current(t1), value);
- },
- rotateSlice0: function(list, start, end) {
- var i, next,
- element = list.$index(0, end - 1);
- for (i = start; i < end; ++i, element = next) {
- next = list.$index(0, i);
- list.$indexSet(0, i, element);
- }
- },
- mapAsync0: function(iterable, callback, $E, $F) {
- return B.mapAsync$body0(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
- },
- mapAsync$body0: function(iterable, callback, $E, $F, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, t2, _i, t1, $async$temp1;
- var $async$mapAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = H.setRuntimeTypeInfo([], $F._eval$1("JSArray<0>"));
- t2 = iterable.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$temp1 = t1;
- $async$goto = 6;
- return P._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync0);
- case 6:
- // returning from await.
- $async$temp1.push($async$result);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$mapAsync0, $async$completer);
- },
- putIfAbsentAsync0: function(map, key, ifAbsent, $K, $V) {
- return B.putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $V);
- },
- putIfAbsentAsync$body0: function(map, key, ifAbsent, $K, $V, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, value;
- var $async$putIfAbsentAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (map.containsKey$1(key)) {
- $async$returnValue = map.$index(0, key);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return P._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync0);
- case 3:
- // returning from await.
- value = $async$result;
- map.$indexSet(0, key, value);
- $async$returnValue = value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$putIfAbsentAsync0, $async$completer);
- },
- mapMapAsync0: function(map, value, K1, V1, K2, V2) {
- return B.mapMapAsync$body0(map, value, K1, V1, K2, V2, K2._eval$1("@<0>")._bind$1(V2)._eval$1("Map<1,2>"));
- },
- mapMapAsync$body0: function(map, value, K1, V1, K2, V2, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, t1, mapKey, mapValue, key, result, $async$temp1, $async$temp2;
- var $async$mapMapAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- key = new B.mapMapAsync_closure0(K2, K1, V1);
- result = P.LinkedHashMap_LinkedHashMap$_empty(K2, V2);
- t1 = J.get$iterator$ax(map.get$keys());
- case 3:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 4;
- break;
- }
- mapKey = t1.get$current(t1);
- mapValue = map.$index(0, mapKey);
- $async$temp1 = result;
- $async$goto = 5;
- return P._asyncAwait(key.call$2(mapKey, mapValue), $async$mapMapAsync0);
- case 5:
- // returning from await.
- $async$temp2 = $async$result;
- $async$goto = 6;
- return P._asyncAwait(value.call$2(mapKey, mapValue), $async$mapMapAsync0);
- case 6:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, $async$result);
- // goto for condition
- $async$goto = 3;
- break;
- case 4:
- // after for
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$mapMapAsync0, $async$completer);
- },
- copyMapOfMap0: function(map, K1, K2, $V) {
- var t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>");
- return Y.mapMap(map, null, new B.copyMapOfMap_closure0(K2, $V), K1, t1, K1, t1);
- },
- copyMapOfList0: function(map, $K, $E) {
- var t1 = $E._eval$1("List<0>");
- return Y.mapMap(map, null, new B.copyMapOfList_closure0(), $K, t1, $K, t1);
- },
- SpanExtensions_trim0: function(_this) {
- var t3, end, end0,
- t1 = _this.file,
- t2 = _this._file$_start,
- text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t2, _this._end), 0, null),
- start = 0;
- while (true) {
- t3 = C.JSString_methods._codeUnitAt$1(text, start);
- if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
- break;
- ++start;
- }
- end = text.length - 1;
- end0 = end;
- while (true) {
- t3 = C.JSString_methods.codeUnitAt$1(text, end0);
- if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
- break;
- --end0;
- }
- return start === 0 && end0 === end ? _this : t1.span$2(Y.FileLocation$_(t1, t2).offset + start, Y.FileLocation$_(t1, t2).offset + end0 + 1);
- },
- indent_closure0: function indent_closure0(t0) {
- this.indentation = t0;
- },
- flattenVertically_closure1: function flattenVertically_closure1(t0) {
- this.T = t0;
- },
- flattenVertically_closure2: function flattenVertically_closure2(t0) {
- this.result = t0;
- },
- longestCommonSubsequence_closure2: function longestCommonSubsequence_closure2(t0) {
- this.T = t0;
- },
- longestCommonSubsequence_closure3: function longestCommonSubsequence_closure3(t0) {
- this.list2 = t0;
- },
- longestCommonSubsequence_closure4: function longestCommonSubsequence_closure4(t0, t1) {
- this.list2 = t0;
- this.T = t1;
- },
- longestCommonSubsequence_backtrack0: function longestCommonSubsequence_backtrack0(t0, t1, t2) {
- this.selections = t0;
- this.lengths = t1;
- this.T = t2;
- },
- mapAddAll2_closure0: function mapAddAll2_closure0(t0) {
- this.destination = t0;
- },
- mapMapAsync_closure0: function mapMapAsync_closure0(t0, t1, t2) {
- this.K2 = t0;
- this.K1 = t1;
- this.V1 = t2;
- },
- copyMapOfMap_closure0: function copyMapOfMap_closure0(t0, t1) {
- this.K2 = t0;
- this.V = t1;
- },
- copyMapOfList_closure0: function copyMapOfList_closure0() {
- },
- isAlphabetic: function(char) {
- var t1;
- if (!(char >= 65 && char <= 90))
- t1 = char >= 97 && char <= 122;
- else
- t1 = true;
- return t1;
- },
- isDriveLetter: function(path, index) {
- var t1 = path.length,
- t2 = index + 2;
- if (t1 < t2)
- return false;
- if (!B.isAlphabetic(C.JSString_methods.codeUnitAt$1(path, index)))
- return false;
- if (C.JSString_methods.codeUnitAt$1(path, index + 1) !== 58)
- return false;
- if (t1 === t2)
- return true;
- return C.JSString_methods.codeUnitAt$1(path, t2) === 47;
- },
- isAllTheSame: function(iter) {
- var t1, lastValue, value;
- for (t1 = new H.ListIterator(iter, iter.get$length(iter)), lastValue = null; t1.moveNext$0();) {
- value = t1.__internal$_current;
- if (lastValue == null)
- lastValue = value;
- else if (!J.$eq$(value, lastValue))
- return false;
- }
- return true;
- },
- replaceFirstNull: function(list, element) {
- var index = C.JSArray_methods.indexOf$1(list, null);
- if (index < 0)
- throw H.wrapException(P.ArgumentError$(H.S(list) + " contains no null elements."));
- list[index] = element;
- },
- replaceWithNull: function(list, element) {
- var index = C.JSArray_methods.indexOf$1(list, element);
- if (index < 0)
- throw H.wrapException(P.ArgumentError$(H.S(list) + " contains no elements matching " + element.toString$0(0) + "."));
- list[index] = null;
- },
- countCodeUnits: function(string, codeUnit) {
- var t1, count;
- for (t1 = new H.CodeUnits(string), t1 = new H.ListIterator(t1, t1.get$length(t1)), count = 0; t1.moveNext$0();)
- if (t1.__internal$_current === codeUnit)
- ++count;
- return count;
- },
- findLineStart: function(context, text, column) {
- var beginningOfLine, index, lineStart;
- if (text.length === 0)
- for (beginningOfLine = 0; true;) {
- index = C.JSString_methods.indexOf$2(context, "\n", beginningOfLine);
- if (index === -1)
- return context.length - beginningOfLine >= column ? beginningOfLine : null;
- if (index - beginningOfLine >= column)
- return beginningOfLine;
- beginningOfLine = index + 1;
- }
- index = C.JSString_methods.indexOf$1(context, text);
- for (; index !== -1;) {
- lineStart = index === 0 ? 0 : C.JSString_methods.lastIndexOf$2(context, "\n", index - 1) + 1;
- if (column === index - lineStart)
- return lineStart;
- index = C.JSString_methods.indexOf$2(context, text, index + 1);
- }
- return null;
- },
- validateErrorArgs: function(string, match, position, $length) {
- var t2,
- t1 = position != null;
- if (t1)
- if (position < 0)
- throw H.wrapException(P.RangeError$("position must be greater than or equal to 0."));
- else if (position > string.length)
- throw H.wrapException(P.RangeError$("position must be less than or equal to the string length."));
- t2 = $length != null;
- if (t2 && $length < 0)
- throw H.wrapException(P.RangeError$("length must be greater than or equal to 0."));
- if (t1 && t2 && position + $length > string.length)
- throw H.wrapException(P.RangeError$("position plus length must not go beyond the end of the string."));
- }
- },
- O = {
- EmptyUnmodifiableSet__throw: function() {
- throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
- },
- EmptyUnmodifiableSet: function EmptyUnmodifiableSet(t0) {
- this.$ti = t0;
- },
- Style__getPlatformStyle: function() {
- if (P.Uri_base().get$scheme() !== "file")
- return $.$get$Style_url();
- var t1 = P.Uri_base();
- if (!C.JSString_methods.endsWith$1(t1.get$path(t1), "/"))
- return $.$get$Style_url();
- if (P._Uri__Uri(null, "a/b", null, null).toFilePath$0() === "a\\b")
- return $.$get$Style_windows();
- return $.$get$Style_posix();
- },
- Style: function Style() {
- },
- NullExpression: function NullExpression(t0) {
- this.span = t0;
- },
- Statement: function Statement() {
- },
- AsyncImportCache__toImporters: function(importers, loadPaths, packageResolver) {
- var _i, t2, t3, path, _null = null,
- sassPath = H._asStringNullable(J.get$env$x(self.process).SASS_PATH),
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_AsyncImporter);
- for (_i = 0; false; ++_i)
- t1.push(importers[_i]);
- if (loadPaths != null)
- for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push(new F.FilesystemImporter($.$get$context().absolute$7(t3, _null, _null, _null, _null, _null, _null)));
- }
- if (sassPath != null) {
- t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
- t3 = t2.length;
- _i = 0;
- for (; _i < t3; ++_i) {
- path = t2[_i];
- t1.push(new F.FilesystemImporter($.$get$context().absolute$7(path, _null, _null, _null, _null, _null, _null)));
- }
- }
- return t1;
- },
- AsyncImportCache: function AsyncImportCache(t0, t1, t2, t3, t4) {
- var _ = this;
- _._async_import_cache$_importers = t0;
- _._async_import_cache$_logger = t1;
- _._async_import_cache$_canonicalizeCache = t2;
- _._async_import_cache$_importCache = t3;
- _._async_import_cache$_resultsCache = t4;
- },
- AsyncImportCache_canonicalize_closure: function AsyncImportCache_canonicalize_closure(t0, t1, t2) {
- this.$this = t0;
- this.url = t1;
- this.forImport = t2;
- },
- AsyncImportCache__canonicalize_closure: function AsyncImportCache__canonicalize_closure(t0, t1) {
- this.importer = t0;
- this.url = t1;
- },
- AsyncImportCache_importCanonical_closure: function AsyncImportCache_importCanonical_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- },
- AsyncImportCache_humanize_closure: function AsyncImportCache_humanize_closure(t0) {
- this.canonicalUrl = t0;
- },
- AsyncImportCache_humanize_closure0: function AsyncImportCache_humanize_closure0() {
- },
- AsyncImportCache_humanize_closure1: function AsyncImportCache_humanize_closure1() {
- },
- Environment$: function(sourceMap) {
- var _null = null,
- t1 = type$.String,
- t2 = type$.Module_Callable,
- t3 = type$.AstNode,
- t4 = H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable),
- t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value),
- t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode) : _null,
- t7 = type$.int,
- t8 = type$.Callable,
- t9 = type$.JSArray_Map_String_Callable;
- 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);
- },
- Environment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
- var t1 = type$.String,
- t2 = type$.int;
- 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);
- },
- _EnvironmentModule__EnvironmentModule: function(environment, css, extender, forwarded) {
- var t1, t2, t3, t4, t5, t6;
- if (forwarded == null)
- forwarded = C.Set_empty;
- t1 = O._EnvironmentModule__makeModulesByVariable(forwarded);
- t2 = H._instanceType(forwarded);
- 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$.Value);
- t4 = environment._variableNodes;
- 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$.AstNode);
- t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String,Callable>>");
- t5 = type$.Callable;
- t6 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._functions), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure1(), t2), t5);
- t5 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._mixins), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure2(), t2), t5);
- t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._allModules, new O._EnvironmentModule__EnvironmentModule_closure3());
- 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()));
- },
- _EnvironmentModule__makeModulesByVariable: function(forwarded) {
- var modulesByVariable, t1, t2, t3, t4;
- if (forwarded.get$isEmpty(forwarded))
- return C.Map_empty0;
- modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable);
- for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2 instanceof O._EnvironmentModule) {
- for (t3 = t2._modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- B.setAll(modulesByVariable, t4.get$variables().get$keys(), t4);
- }
- B.setAll(modulesByVariable, C.JSArray_methods.get$first(t2._environment._variables).get$keys(), t2);
- } else
- B.setAll(modulesByVariable, t2.get$variables().get$keys(), t2);
- }
- return modulesByVariable;
- },
- _EnvironmentModule__memberMap: function(localMap, otherMaps, $V) {
- var t1, t2, t3;
- localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
- t1 = otherMaps.__internal$_iterable;
- t2 = J.getInterceptor$asx(t1);
- if (t2.get$isEmpty(t1))
- return localMap;
- t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String,0>>"));
- for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- if (t2.get$isNotEmpty(t2))
- t3.push(t2);
- }
- t3.push(localMap);
- if (t3.length === 1)
- return localMap;
- return Z.MergedMapView$(t3, type$.String, $V);
- },
- _EnvironmentModule$_: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
- return new O._EnvironmentModule(_environment._allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
- },
- Environment: function Environment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
- var _ = this;
- _._environment$_modules = t0;
- _._namespaceNodes = t1;
- _._globalModules = t2;
- _._globalModuleNodes = t3;
- _._forwardedModules = t4;
- _._forwardedModuleNodes = t5;
- _._nestedForwardedModules = t6;
- _._allModules = t7;
- _._variables = t8;
- _._variableNodes = t9;
- _._variableIndices = t10;
- _._functions = t11;
- _._functionIndices = t12;
- _._mixins = t13;
- _._mixinIndices = t14;
- _._content = t15;
- _._inMixin = false;
- _._inSemiGlobalScope = true;
- _._lastVariableIndex = _._lastVariableName = null;
- },
- Environment_importForwards_closure: function Environment_importForwards_closure() {
- },
- Environment_importForwards_closure0: function Environment_importForwards_closure0() {
- },
- Environment_importForwards_closure1: function Environment_importForwards_closure1() {
- },
- Environment_importForwards_closure2: function Environment_importForwards_closure2() {
- },
- Environment__getVariableFromGlobalModule_closure: function Environment__getVariableFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- Environment_setVariable_closure: function Environment_setVariable_closure(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- Environment_setVariable_closure0: function Environment_setVariable_closure0(t0) {
- this.name = t0;
- },
- Environment_setVariable_closure1: function Environment_setVariable_closure1(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- Environment__getFunctionFromGlobalModule_closure: function Environment__getFunctionFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- Environment__getMixinFromGlobalModule_closure: function Environment__getMixinFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- _EnvironmentModule: function _EnvironmentModule(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
- var _ = this;
- _.upstream = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.extender = t5;
- _.css = t6;
- _.transitivelyContainsCss = t7;
- _.transitivelyContainsExtensions = t8;
- _._environment = t9;
- _._modulesByVariable = t10;
- },
- _EnvironmentModule__EnvironmentModule_closure: function _EnvironmentModule__EnvironmentModule_closure() {
- },
- _EnvironmentModule__EnvironmentModule_closure0: function _EnvironmentModule__EnvironmentModule_closure0() {
- },
- _EnvironmentModule__EnvironmentModule_closure1: function _EnvironmentModule__EnvironmentModule_closure1() {
- },
- _EnvironmentModule__EnvironmentModule_closure2: function _EnvironmentModule__EnvironmentModule_closure2() {
- },
- _EnvironmentModule__EnvironmentModule_closure3: function _EnvironmentModule__EnvironmentModule_closure3() {
- },
- _EnvironmentModule__EnvironmentModule_closure4: function _EnvironmentModule__EnvironmentModule_closure4() {
- },
- SassNull: function SassNull() {
- },
- AsyncImportCache$none: function(logger) {
- var t1 = type$.Uri;
- return new O.AsyncImportCache0(C.C_StderrLogger, P.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, type$.Tuple3_AsyncImporter_Uri_Uri), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Stylesheet), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ImporterResult));
- },
- AsyncImportCache0: function AsyncImportCache0(t0, t1, t2, t3) {
- var _ = this;
- _._async_import_cache0$_logger = t0;
- _._async_import_cache0$_canonicalizeCache = t1;
- _._async_import_cache0$_importCache = t2;
- _._async_import_cache0$_resultsCache = t3;
- },
- AsyncImportCache_canonicalize_closure0: function AsyncImportCache_canonicalize_closure0(t0, t1, t2) {
- this.$this = t0;
- this.url = t1;
- this.forImport = t2;
- },
- AsyncImportCache__canonicalize_closure0: function AsyncImportCache__canonicalize_closure0(t0, t1) {
- this.importer = t0;
- this.url = t1;
- },
- AsyncImportCache_importCanonical_closure0: function AsyncImportCache_importCanonical_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- },
- AsyncImportCache_humanize_closure2: function AsyncImportCache_humanize_closure2(t0) {
- this.canonicalUrl = t0;
- },
- AsyncImportCache_humanize_closure3: function AsyncImportCache_humanize_closure3() {
- },
- AsyncImportCache_humanize_closure4: function AsyncImportCache_humanize_closure4() {
- },
- Environment$0: function(sourceMap) {
- var _null = null,
- t1 = type$.String,
- t2 = type$.Module_Callable_2,
- t3 = type$.AstNode_2,
- t4 = H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable_2),
- t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2),
- t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2) : _null,
- t7 = type$.int,
- t8 = type$.Callable_2,
- t9 = type$.JSArray_Map_String_Callable_2;
- 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);
- },
- Environment$_0: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
- var t1 = type$.String,
- t2 = type$.int;
- 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);
- },
- _EnvironmentModule__EnvironmentModule1: function(environment, css, extender, forwarded) {
- var t1, t2, t3, t4, t5, t6;
- if (forwarded == null)
- forwarded = C.Set_empty2;
- t1 = O._EnvironmentModule__makeModulesByVariable1(forwarded);
- t2 = H._instanceType(forwarded);
- 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$.Value_2);
- t4 = environment._environment0$_variableNodes;
- 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$.AstNode_2);
- t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String,Callable0>>");
- t5 = type$.Callable_2;
- t6 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_functions), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure13(), t2), t5);
- t5 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_mixins), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure14(), t2), t5);
- t2 = J.get$isNotEmpty$asx(css.get$children()) || C.JSArray_methods.any$1(environment._environment0$_allModules, new O._EnvironmentModule__EnvironmentModule_closure15());
- 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()));
- },
- _EnvironmentModule__makeModulesByVariable1: function(forwarded) {
- var modulesByVariable, t1, t2, t3, t4;
- if (forwarded.get$isEmpty(forwarded))
- return C.Map_empty6;
- modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable_2);
- for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2 instanceof O._EnvironmentModule1) {
- for (t3 = t2._environment0$_modulesByVariable.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- B.setAll0(modulesByVariable, t4.get$variables().get$keys(), t4);
- }
- B.setAll0(modulesByVariable, C.JSArray_methods.get$first(t2._environment0$_environment._environment0$_variables).get$keys(), t2);
- } else
- B.setAll0(modulesByVariable, t2.get$variables().get$keys(), t2);
- }
- return modulesByVariable;
- },
- _EnvironmentModule__memberMap1: function(localMap, otherMaps, $V) {
- var t1, t2, t3;
- localMap = new U.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
- t1 = otherMaps.__internal$_iterable;
- t2 = J.getInterceptor$asx(t1);
- if (t2.get$isEmpty(t1))
- return localMap;
- t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String,0>>"));
- for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- if (t2.get$isNotEmpty(t2))
- t3.push(t2);
- }
- t3.push(localMap);
- if (t3.length === 1)
- return localMap;
- return Z.MergedMapView$0(t3, type$.String, $V);
- },
- _EnvironmentModule$_1: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
- return new O._EnvironmentModule1(_environment._environment0$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
- },
- Environment0: function Environment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
- var _ = this;
- _._environment0$_modules = t0;
- _._environment0$_namespaceNodes = t1;
- _._environment0$_globalModules = t2;
- _._environment0$_globalModuleNodes = t3;
- _._environment0$_forwardedModules = t4;
- _._environment0$_forwardedModuleNodes = t5;
- _._environment0$_nestedForwardedModules = t6;
- _._environment0$_allModules = t7;
- _._environment0$_variables = t8;
- _._environment0$_variableNodes = t9;
- _._environment0$_variableIndices = t10;
- _._environment0$_functions = t11;
- _._environment0$_functionIndices = t12;
- _._environment0$_mixins = t13;
- _._environment0$_mixinIndices = t14;
- _._environment0$_content = t15;
- _._environment0$_inMixin = false;
- _._environment0$_inSemiGlobalScope = true;
- _._environment0$_lastVariableIndex = _._environment0$_lastVariableName = null;
- },
- Environment_importForwards_closure3: function Environment_importForwards_closure3() {
- },
- Environment_importForwards_closure4: function Environment_importForwards_closure4() {
- },
- Environment_importForwards_closure5: function Environment_importForwards_closure5() {
- },
- Environment_importForwards_closure6: function Environment_importForwards_closure6() {
- },
- Environment__getVariableFromGlobalModule_closure0: function Environment__getVariableFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- Environment_setVariable_closure2: function Environment_setVariable_closure2(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- Environment_setVariable_closure3: function Environment_setVariable_closure3(t0) {
- this.name = t0;
- },
- Environment_setVariable_closure4: function Environment_setVariable_closure4(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- Environment__getFunctionFromGlobalModule_closure0: function Environment__getFunctionFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- Environment__getMixinFromGlobalModule_closure0: function Environment__getMixinFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- _EnvironmentModule1: function _EnvironmentModule1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
- var _ = this;
- _.upstream = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.extender = t5;
- _.css = t6;
- _.transitivelyContainsCss = t7;
- _.transitivelyContainsExtensions = t8;
- _._environment0$_environment = t9;
- _._environment0$_modulesByVariable = t10;
- },
- _EnvironmentModule__EnvironmentModule_closure11: function _EnvironmentModule__EnvironmentModule_closure11() {
- },
- _EnvironmentModule__EnvironmentModule_closure12: function _EnvironmentModule__EnvironmentModule_closure12() {
- },
- _EnvironmentModule__EnvironmentModule_closure13: function _EnvironmentModule__EnvironmentModule_closure13() {
- },
- _EnvironmentModule__EnvironmentModule_closure14: function _EnvironmentModule__EnvironmentModule_closure14() {
- },
- _EnvironmentModule__EnvironmentModule_closure15: function _EnvironmentModule__EnvironmentModule_closure15() {
- },
- _EnvironmentModule__EnvironmentModule_closure16: function _EnvironmentModule__EnvironmentModule_closure16() {
- },
- NullExpression0: function NullExpression0(t0) {
- this.span = t0;
- },
- closure224: function closure224() {
- },
- _closure29: function _closure29() {
- },
- _closure30: function _closure30() {
- },
- SassNull0: function SassNull0() {
- },
- Statement0: function Statement0() {
- }
- },
- U = {DefaultEquality: function DefaultEquality() {
- }, IterableEquality: function IterableEquality() {
- }, ListEquality: function ListEquality() {
- }, _MapEntry: function _MapEntry(t0, t1, t2) {
- this.equality = t0;
- this.key = t1;
- this.value = t2;
- }, MapEquality: function MapEquality() {
- }, ModifiableCssAtRule: function ModifiableCssAtRule(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.isChildless = t2;
- _.span = t3;
- _.children = t4;
- _._children = t5;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- }, ModifiableCssKeyframeBlock: function ModifiableCssKeyframeBlock(t0, t1, t2, t3) {
- var _ = this;
- _.selector = t0;
- _.span = t1;
- _.children = t2;
- _._children = t3;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- AtRule$: function($name, span, children, value) {
- var t1 = children == null ? null : P.List_List$unmodifiable(children, type$.Statement),
- t2 = t1 == null ? null : C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new U.AtRule($name, value, span, t1, t2 === true);
- },
- AtRule: function AtRule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- SupportsOperation: function SupportsOperation(t0, t1, t2, t3) {
- var _ = this;
- _.left = t0;
- _.right = t1;
- _.operator = t2;
- _.span = t3;
- },
- _compileStylesheet: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
- var serializeResult = N.serialize(R._EvaluateVisitor$(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet).stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true),
- t1 = serializeResult.sourceMap;
- if (t1 != null && true)
- B.mapInPlace(t1.urls, new U._compileStylesheet_closure(stylesheet, importCache));
- return new X.CompileResult(serializeResult);
- },
- _compileStylesheet_closure: function _compileStylesheet_closure(t0, t1) {
- this.stylesheet = t0;
- this.importCache = t1;
- },
- SassParser: function SassParser(t0, t1, t2) {
- var _ = this;
- _._currentIndentation = 0;
- _._spaces = _._nextIndentationEnd = _._nextIndentation = null;
- _._isUseAllowed = true;
- _._stylesheet$_inMixin = false;
- _._mixinHasContent = null;
- _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
- _._globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- },
- SassParser_children_closure: function SassParser_children_closure(t0, t1, t2) {
- this.$this = t0;
- this.children = t1;
- this.child = t2;
- },
- MultiDirWatcher: function MultiDirWatcher(t0, t1, t2) {
- this._watchers = t0;
- this._group = t1;
- this._poll = t2;
- },
- PublicMemberMapView: function PublicMemberMapView(t0, t1) {
- this._inner = t0;
- this.$ti = t1;
- },
- Highlighter$: function(span, color) {
- var t1 = U.Highlighter__collateLines(H.setRuntimeTypeInfo([U._Highlight$(span, null, true)], type$.JSArray__Highlight)),
- t2 = new U.Highlighter_closure(color).call$0(),
- t3 = C.JSInt_methods.toString$0(C.JSArray_methods.get$last(t1).number + 1),
- t4 = U.Highlighter__contiguous(t1) ? 0 : 3,
- t5 = H._arrayInstanceType(t1);
- 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$.int)), !B.isAllTheSame(new H.MappedListIterable(t1, new U.Highlighter$__closure0(), t5._eval$1("MappedListIterable<1,Object>"))), new P.StringBuffer(""));
- },
- Highlighter$multiple: function(primarySpan, primaryLabel, secondarySpans, color, primaryColor, secondaryColor) {
- var t2, t3, t4, t5, t6,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray__Highlight);
- t1.push(U._Highlight$(primarySpan, primaryLabel, true));
- for (t2 = secondarySpans.get$entries(), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push(U._Highlight$(t3.key, t3.value, false));
- }
- t1 = U.Highlighter__collateLines(t1);
- if (color)
- t2 = "\x1b[31m";
- else
- t2 = null;
- if (color)
- t3 = "\x1b[34m";
- else
- t3 = null;
- t4 = C.JSInt_methods.toString$0(C.JSArray_methods.get$last(t1).number + 1);
- t5 = U.Highlighter__contiguous(t1) ? 0 : 3;
- t6 = H._arrayInstanceType(t1);
- 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$.int)), !B.isAllTheSame(new H.MappedListIterable(t1, new U.Highlighter$__closure0(), t6._eval$1("MappedListIterable<1,Object>"))), new P.StringBuffer(""));
- },
- Highlighter__contiguous: function(lines) {
- var i, thisLine, nextLine;
- for (i = 0; i < lines.length - 1;) {
- thisLine = lines[i];
- ++i;
- nextLine = lines[i];
- if (thisLine.number + 1 !== nextLine.number && J.$eq$(thisLine.url, nextLine.url))
- return false;
- }
- return true;
- },
- Highlighter__collateLines: function(highlights) {
- var t1, t2,
- highlightsByUrl = Y.groupBy(highlights, new U.Highlighter__collateLines_closure(), type$._Highlight, type$.dynamic);
- for (t1 = highlightsByUrl.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
- J.sort$1$ax(t1.get$current(t1), new U.Highlighter__collateLines_closure0());
- t1 = highlightsByUrl.get$values();
- t2 = H._instanceType(t1)._eval$1("ExpandIterable<Iterable.E,_Line>");
- return P.List_List$from(new H.ExpandIterable(t1, new U.Highlighter__collateLines_closure1(), t2), true, t2._eval$1("Iterable.E"));
- },
- _Highlight$: function(span, label, primary) {
- return new U._Highlight(new U._Highlight_closure(span).call$0(), primary, label);
- },
- _Highlight__normalizeNewlines: function(span) {
- var endOffset, t1, i, t2, t3, t4,
- text = span.get$text();
- if (!C.JSString_methods.contains$1(text, "\r\n"))
- return span;
- endOffset = span.get$end(span).get$offset();
- for (t1 = text.length - 1, i = 0; i < t1; ++i)
- if (C.JSString_methods._codeUnitAt$1(text, i) === 13 && C.JSString_methods._codeUnitAt$1(text, i + 1) === 10)
- --endOffset;
- t1 = span.get$start(span);
- t2 = span.get$sourceUrl();
- t3 = span.get$end(span).get$line();
- t2 = V.SourceLocation$(endOffset, span.get$end(span).get$column(), t3, t2);
- t3 = H.stringReplaceAllUnchecked(text, "\r\n", "\n");
- t4 = span.get$context(span);
- return X.SourceSpanWithContext$(t1, t2, t3, H.stringReplaceAllUnchecked(t4, "\r\n", "\n"));
- },
- _Highlight__normalizeTrailingNewline: function(span) {
- var context, text, start, end, t1, t2, t3;
- if (!C.JSString_methods.endsWith$1(span.get$context(span), "\n"))
- return span;
- if (C.JSString_methods.endsWith$1(span.get$text(), "\n\n"))
- return span;
- context = C.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1);
- text = span.get$text();
- start = span.get$start(span);
- end = span.get$end(span);
- 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) {
- text = C.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
- if (text.length === 0)
- end = start;
- else {
- t1 = span.get$end(span).get$offset();
- t2 = span.get$sourceUrl();
- t3 = span.get$end(span).get$line();
- end = V.SourceLocation$(t1 - 1, U._Highlight__lastLineLength(context), t3 - 1, t2);
- start = span.get$start(span).get$offset() === span.get$end(span).get$offset() ? end : span.get$start(span);
- }
- }
- return X.SourceSpanWithContext$(start, end, text, context);
- },
- _Highlight__normalizeEndOfLine: function(span) {
- var text, t1, t2, t3, t4;
- if (span.get$end(span).get$column() !== 0)
- return span;
- if (span.get$end(span).get$line() == span.get$start(span).get$line())
- return span;
- text = C.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
- t1 = span.get$start(span);
- t2 = span.get$end(span).get$offset();
- t3 = span.get$sourceUrl();
- t4 = span.get$end(span).get$line();
- t3 = V.SourceLocation$(t2 - 1, text.length - C.JSString_methods.lastIndexOf$1(text, "\n") - 1, t4 - 1, t3);
- 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));
- },
- _Highlight__lastLineLength: function(text) {
- var t1 = text.length;
- if (t1 === 0)
- return 0;
- else if (C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 10)
- return t1 === 1 ? 0 : t1 - C.JSString_methods.lastIndexOf$2(text, "\n", t1 - 2) - 1;
- else
- return t1 - C.JSString_methods.lastIndexOf$1(text, "\n") - 1;
- },
- Highlighter: function Highlighter(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._lines = t0;
- _._primaryColor = t1;
- _._secondaryColor = t2;
- _._paddingBeforeSidebar = t3;
- _._maxMultilineSpans = t4;
- _._multipleFiles = t5;
- _._highlighter$_buffer = t6;
- },
- Highlighter_closure: function Highlighter_closure(t0) {
- this.color = t0;
- },
- Highlighter$__closure: function Highlighter$__closure() {
- },
- Highlighter$___closure: function Highlighter$___closure() {
- },
- Highlighter$__closure0: function Highlighter$__closure0() {
- },
- Highlighter__collateLines_closure: function Highlighter__collateLines_closure() {
- },
- Highlighter__collateLines_closure0: function Highlighter__collateLines_closure0() {
- },
- Highlighter__collateLines_closure1: function Highlighter__collateLines_closure1() {
- },
- Highlighter__collateLines__closure: function Highlighter__collateLines__closure(t0) {
- this.line = t0;
- },
- Highlighter_highlight_closure: function Highlighter_highlight_closure() {
- },
- Highlighter_highlight_closure0: function Highlighter_highlight_closure0() {
- },
- Highlighter__writeFileStart_closure: function Highlighter__writeFileStart_closure(t0) {
- this.$this = t0;
- },
- Highlighter__writeMultilineHighlights_closure: function Highlighter__writeMultilineHighlights_closure(t0, t1, t2) {
- this.$this = t0;
- this.startLine = t1;
- this.line = t2;
- },
- Highlighter__writeMultilineHighlights_closure0: function Highlighter__writeMultilineHighlights_closure0(t0, t1) {
- this.$this = t0;
- this.highlight = t1;
- },
- Highlighter__writeMultilineHighlights_closure1: function Highlighter__writeMultilineHighlights_closure1(t0) {
- this.$this = t0;
- },
- Highlighter__writeMultilineHighlights_closure2: function Highlighter__writeMultilineHighlights_closure2(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.current = t2;
- _.startLine = t3;
- _.line = t4;
- _.highlight = t5;
- _.endLine = t6;
- },
- Highlighter__writeMultilineHighlights__closure: function Highlighter__writeMultilineHighlights__closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- Highlighter__writeMultilineHighlights__closure0: function Highlighter__writeMultilineHighlights__closure0(t0, t1) {
- this.$this = t0;
- this.vertical = t1;
- },
- Highlighter__writeHighlightedText_closure: function Highlighter__writeHighlightedText_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.text = t1;
- _.startColumn = t2;
- _.endColumn = t3;
- },
- Highlighter__writeIndicator_closure: function Highlighter__writeIndicator_closure(t0, t1, t2) {
- this.$this = t0;
- this.line = t1;
- this.highlight = t2;
- },
- Highlighter__writeIndicator_closure0: function Highlighter__writeIndicator_closure0(t0, t1, t2) {
- this.$this = t0;
- this.line = t1;
- this.highlight = t2;
- },
- Highlighter__writeIndicator_closure1: function Highlighter__writeIndicator_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.coversWholeLine = t1;
- _.line = t2;
- _.highlight = t3;
- },
- Highlighter__writeSidebar_closure: function Highlighter__writeSidebar_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.end = t2;
- },
- _Highlight: function _Highlight(t0, t1, t2) {
- this.span = t0;
- this.isPrimary = t1;
- this.label = t2;
- },
- _Highlight_closure: function _Highlight_closure(t0) {
- this.span = t0;
- },
- _Line: function _Line(t0, t1, t2, t3) {
- var _ = this;
- _.text = t0;
- _.number = t1;
- _.url = t2;
- _.highlights = t3;
- },
- Chain_Chain$parse: function(chain) {
- var _s26_ = "<asynchronous suspension>\n",
- _s51_ = "===== asynchronous gap ===========================\n";
- if (chain.length === 0)
- return new U.Chain(P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_Trace), type$.Trace));
- if (C.JSString_methods.contains$1(chain, _s26_))
- 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_String_Trace), type$.Trace));
- if (!C.JSString_methods.contains$1(chain, _s51_))
- return new U.Chain(P.List_List$unmodifiable(H.setRuntimeTypeInfo([Y.Trace_Trace$parse(chain)], type$.JSArray_Trace), type$.Trace));
- 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_String_Trace), type$.Trace));
- },
- Chain: function Chain(t0) {
- this.traces = t0;
- },
- Chain_Chain$parse_closure: function Chain_Chain$parse_closure() {
- },
- Chain_Chain$parse_closure0: function Chain_Chain$parse_closure0() {
- },
- Chain_toTrace_closure: function Chain_toTrace_closure() {
- },
- Chain_toString_closure0: function Chain_toString_closure0() {
- },
- Chain_toString__closure0: function Chain_toString__closure0() {
- },
- Chain_toString_closure: function Chain_toString_closure(t0) {
- this.longest = t0;
- },
- Chain_toString__closure: function Chain_toString__closure(t0) {
- this.longest = t0;
- },
- ModifiableCssAtRule0: function ModifiableCssAtRule0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.isChildless = t2;
- _.span = t3;
- _.children = t4;
- _._node2$_children = t5;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- AtRule$0: function($name, span, children, value) {
- var t1 = children == null ? null : P.List_List$unmodifiable(children, type$.Statement_2),
- t2 = t1 == null ? null : C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new U.AtRule0($name, value, span, t1, t2 === true);
- },
- AtRule0: function AtRule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- _compileStylesheet1: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
- var evaluateResult = R._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet),
- serializeResult = N.serialize0(evaluateResult.stylesheet, true, indentWidth, false, lineFeed, sourceMap, style, useSpaces),
- t1 = serializeResult.sourceMap;
- if (t1 != null && importCache != null)
- B.mapInPlace0(t1.urls, new U._compileStylesheet_closure1(stylesheet, importCache));
- return new X.CompileResult0(evaluateResult, serializeResult);
- },
- _compileStylesheet_closure1: function _compileStylesheet_closure1(t0, t1) {
- this.stylesheet = t0;
- this.importCache = t1;
- },
- ModifiableCssKeyframeBlock0: function ModifiableCssKeyframeBlock0(t0, t1, t2, t3) {
- var _ = this;
- _.selector = t0;
- _.span = t1;
- _.children = t2;
- _._node2$_children = t3;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- SupportsOperation0: function SupportsOperation0(t0, t1, t2, t3) {
- var _ = this;
- _.left = t0;
- _.right = t1;
- _.operator = t2;
- _.span = t3;
- },
- PublicMemberMapView0: function PublicMemberMapView0(t0, t1) {
- this._public_member_map_view$_inner = t0;
- this.$ti = t1;
- },
- RenderResult: function RenderResult() {
- },
- RenderResultStats: function RenderResultStats() {
- },
- main: function(args) {
- return U.main$body(args);
- },
- main$body: function(args) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $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;
- var $async$main = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- _box_0.printedError = false;
- printError = new U.main_printError(_box_0);
- _box_0.options = null;
- $async$handler = 4;
- options = B.ExecutableOptions_ExecutableOptions$parse(args);
- _box_0.options = options;
- t1 = options._options;
- $._glyphs = !(t1.wasParsed$1("unicode") ? H._asBoolNullable(t1.$index(0, "unicode")) : $._glyphs !== C.C_AsciiGlyphSet) ? C.C_AsciiGlyphSet : C.C_UnicodeGlyphSet;
- $async$goto = H._asBoolNullable(_box_0.options._options.$index(0, "version")) ? 7 : 8;
- break;
- case 7:
- // then
- $async$temp1 = P;
- $async$goto = 9;
- return P._asyncAwait(U._loadVersion(), $async$main);
- case 9:
- // returning from await.
- $async$temp1.print($async$result);
- self.process.exitCode = 0;
- // goto return
- $async$goto = 1;
- break;
- case 8:
- // join
- $async$goto = _box_0.options.get$interactive() ? 10 : 11;
- break;
- case 10:
- // then
- $async$goto = 12;
- return P._asyncAwait(Y.repl(_box_0.options), $async$main);
- case 12:
- // returning from await.
- // goto return
- $async$goto = 1;
- break;
- case 11:
- // join
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Importer);
- t2 = type$.List_String._as(_box_0.options._options.$index(0, "load-path"));
- t3 = _box_0.options;
- t4 = type$.Uri;
- graph = new M.StylesheetGraph(P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.StylesheetNode), R.ImportCache$(t1, t2, H._asBoolNullable(t3._options.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(t3.get$color())), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.DateTime));
- $async$goto = H._asBoolNullable(_box_0.options._options.$index(0, "watch")) ? 13 : 14;
- break;
- case 13:
- // then
- $async$goto = 15;
- return P._asyncAwait(A.watch(_box_0.options, graph), $async$main);
- case 15:
- // returning from await.
- // goto return
- $async$goto = 1;
- break;
- case 14:
- // join
- t1 = _box_0.options, t1._ensureSources$0(), t1 = J.get$iterator$ax(t1._sourcesToDestinations.get$keys());
- case 16:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 17;
- break;
- }
- source = t1.get$current(t1);
- t2 = _box_0.options;
- t2._ensureSources$0();
- destination = t2._sourcesToDestinations.$index(0, source);
- $async$handler = 19;
- t2 = _box_0.options;
- $async$goto = 22;
- return P._asyncAwait(D.compileStylesheet(t2, graph, source, destination, H._asBoolNullable(t2._options.$index(0, "update"))), $async$main);
- case 22:
- // returning from await.
- $async$handler = 4;
- // goto after finally
- $async$goto = 21;
- break;
- case 19:
- // catch
- $async$handler = 18;
- $async$exception = $async$currentError;
- t2 = H.unwrapException($async$exception);
- if (t2 instanceof E.SassException) {
- error = t2;
- stackTrace = H.getTraceFromException($async$exception);
- new U.main_closure(_box_0, destination).call$0();
- t2 = _box_0.options._options;
- if (t2._parser.options._collection$_map.$index(0, "color") == null)
- H.throwExpression(P.ArgumentError$('Could not find an option named "color".'));
- if (t2._parsed.containsKey$1("color"))
- t2 = H._asBoolNullable(t2.$index(0, "color"));
- else {
- t2 = self.process.stdout.isTTY;
- if (t2 == null)
- t2 = false;
- }
- t2 = J.toString$1$color$(error, t2);
- t3 = H._asBoolNullable(_box_0.options._options.$index(0, "trace")) ? stackTrace : null;
- printError.call$2(t2, t3);
- if (!J.$eq$(self.process.exitCode, 66))
- self.process.exitCode = 65;
- if (H._asBoolNullable(_box_0.options._options.$index(0, "stop-on-error"))) {
- // goto return
- $async$goto = 1;
- break;
- }
- } else if (t2 instanceof B.FileSystemException) {
- error0 = t2;
- stackTrace0 = H.getTraceFromException($async$exception);
- t2 = error0.path;
- t2 = "Error reading " + H.S($.$get$context().relative$2$from(t2, null)) + ": " + error0.message + ".";
- t3 = H._asBoolNullable(_box_0.options._options.$index(0, "trace")) ? stackTrace0 : null;
- printError.call$2(t2, t3);
- self.process.exitCode = 66;
- if (H._asBoolNullable(_box_0.options._options.$index(0, "stop-on-error"))) {
- // goto return
- $async$goto = 1;
- break;
- }
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 21;
- break;
- case 18:
- // uncaught
- // goto catch
- $async$goto = 4;
- break;
- case 21:
- // after finally
- // goto for condition
- $async$goto = 16;
- break;
- case 17:
- // after for
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception1 = $async$currentError;
- t1 = H.unwrapException($async$exception1);
- if (t1 instanceof B.UsageException) {
- error1 = t1;
- P.print(H.S(error1.message) + "\n");
- P.print("Usage: sass <input.scss> [output.css]\n sass <input.scss>:<output.css> <input/>:<output/> <dir/>\n");
- t1 = $.$get$ExecutableOptions__parser();
- P.print(new G.Usage(t1._optionsAndSeparators, t1.usageLineLength).generate$0());
- self.process.exitCode = 64;
- } else {
- error2 = t1;
- stackTrace1 = H.getTraceFromException($async$exception1);
- buffer = new P.StringBuffer("");
- t1 = _box_0.options;
- if (t1 != null && t1.get$color())
- buffer._contents += "\x1b[31m\x1b[1m";
- buffer._contents += "Unexpected exception:";
- t1 = _box_0.options;
- if (t1 != null && t1.get$color())
- buffer._contents += "\x1b[0m";
- buffer._contents += "\n";
- buffer._contents += H.S(error2) + "\n";
- t1 = buffer._contents;
- printError.call$2(t1.charCodeAt(0) == 0 ? t1 : t1, stackTrace1);
- self.process.exitCode = 255;
- }
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$main, $async$completer);
- },
- _loadVersion: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue;
- var $async$_loadVersion = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = "1.26.8 compiled with dart2js 2.8.4";
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_loadVersion, $async$completer);
- },
- main_printError: function main_printError(t0) {
- this._box_0 = t0;
- },
- main_closure: function main_closure(t0, t1) {
- this._box_0 = t0;
- this.destination = t1;
- },
- SassParser0: function SassParser0(t0, t1, t2) {
- var _ = this;
- _._sass0$_currentIndentation = 0;
- _._sass0$_spaces = _._sass0$_nextIndentationEnd = _._sass0$_nextIndentation = null;
- _._stylesheet0$_isUseAllowed = true;
- _._stylesheet0$_inMixin = false;
- _._stylesheet0$_mixinHasContent = null;
- _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
- _._stylesheet0$_globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- },
- SassParser_children_closure0: function SassParser_children_closure0(t0, t1, t2) {
- this.$this = t0;
- this.children = t1;
- this.child = t2;
- }
- },
- M = {_DelegatingIterableBase: function _DelegatingIterableBase() {
- }, DelegatingIterable: function DelegatingIterable() {
- }, DelegatingSet: function DelegatingSet(t0, t1) {
- this._base = t0;
- this.$ti = t1;
- }, MapKeySet: function MapKeySet(t0, t1) {
- this._baseMap = t0;
- this.$ti = t1;
- }, _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin: function _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin() {
- },
- Context_Context: function(style) {
- var current = style == null ? D.current() : ".";
- if (style == null)
- style = $.$get$Style_platform();
- return new M.Context(style, current);
- },
- _parseUri: function(uri) {
- if (typeof uri == "string")
- return P.Uri_parse(uri);
- if (type$.Uri._is(uri))
- return uri;
- throw H.wrapException(P.ArgumentError$value(uri, "uri", "Value must be a String or a Uri"));
- },
- _validateArgList: function(method, args) {
- var numArgs, i, numArgs0, message, t1, t2;
- for (numArgs = args.length, i = 1; i < numArgs; ++i) {
- if (args[i] == null || args[i - 1] != null)
- continue;
- for (; numArgs >= 1; numArgs = numArgs0) {
- numArgs0 = numArgs - 1;
- if (args[numArgs0] != null)
- break;
- }
- message = new P.StringBuffer("");
- t1 = method + "(";
- message._contents = t1;
- t2 = H.SubListIterable$(args, 0, numArgs, H._arrayInstanceType(args)._precomputed1);
- t2 = t1 + new H.MappedListIterable(t2, new M._validateArgList_closure(), t2.$ti._eval$1("MappedListIterable<ListIterable.E,String>")).join$1(0, ", ");
- message._contents = t2;
- message._contents = t2 + ("): part " + (i - 1) + " was null, but part " + i + " was not.");
- throw H.wrapException(P.ArgumentError$(message.toString$0(0)));
- }
- },
- Context: function Context(t0, t1) {
- this.style = t0;
- this._context$_current = t1;
- },
- Context_join_closure: function Context_join_closure() {
- },
- Context_joinAll_closure: function Context_joinAll_closure() {
- },
- Context_split_closure: function Context_split_closure() {
- },
- _validateArgList_closure: function _validateArgList_closure() {
- },
- _PathDirection: function _PathDirection(t0) {
- this.name = t0;
- },
- _PathRelation: function _PathRelation(t0) {
- this.name = t0;
- },
- CallableDeclaration: function CallableDeclaration() {
- },
- FunctionRule: function FunctionRule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.$arguments = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- ParentStatement: function ParentStatement() {
- },
- ParentStatement_closure: function ParentStatement_closure() {
- },
- ParentStatement__closure: function ParentStatement__closure() {
- },
- SupportsNegation: function SupportsNegation(t0, t1) {
- this.condition = t0;
- this.span = t1;
- },
- ParentSelector: function ParentSelector(t0) {
- this.suffix = t0;
- },
- SimpleSelector: function SimpleSelector() {
- },
- Importer: function Importer() {
- },
- StylesheetNode$_: function(_stylesheet, importer, canonicalUrl, allUpstream) {
- var t1 = new M.StylesheetNode(_stylesheet, importer, canonicalUrl, allUpstream.item1, allUpstream.item2, P.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode));
- t1.StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream);
- return t1;
- },
- StylesheetGraph: function StylesheetGraph(t0, t1, t2) {
- this._nodes = t0;
- this.importCache = t1;
- this._transitiveModificationTimes = t2;
- },
- StylesheetGraph_modifiedSince_transitiveModificationTime: function StylesheetGraph_modifiedSince_transitiveModificationTime(t0) {
- this.$this = t0;
- },
- StylesheetGraph_modifiedSince_transitiveModificationTime_closure: function StylesheetGraph_modifiedSince_transitiveModificationTime_closure(t0, t1) {
- this.node = t0;
- this.transitiveModificationTime = t1;
- },
- StylesheetGraph__add_closure: function StylesheetGraph__add_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.baseImporter = t2;
- _.baseUrl = t3;
- },
- StylesheetGraph_addCanonical_closure: function StylesheetGraph_addCanonical_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- },
- StylesheetGraph_reload_closure: function StylesheetGraph_reload_closure(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.canonicalUrl = t2;
- },
- StylesheetGraph__recanonicalizeImportsForNode_closure: function StylesheetGraph__recanonicalizeImportsForNode_closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.node = t3;
- _.forImport = t4;
- _.newMap = t5;
- },
- StylesheetGraph__nodeFor_closure: function StylesheetGraph__nodeFor_closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.baseImporter = t2;
- _.baseUrl = t3;
- _.forImport = t4;
- },
- StylesheetGraph__nodeFor_closure0: function StylesheetGraph__nodeFor_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.resolvedUrl = t3;
- },
- StylesheetNode: function StylesheetNode(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._stylesheet_graph$_stylesheet = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _._upstream = t3;
- _._upstreamImports = t4;
- _._downstream = t5;
- },
- Syntax_forPath: function(path) {
- switch (X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
- case ".sass":
- return C.Syntax_Sass;
- case ".css":
- return C.Syntax_CSS;
- default:
- return C.Syntax_SCSS;
- }
- },
- Syntax: function Syntax(t0) {
- this._syntax$_name = t0;
- },
- CallableDeclaration0: function CallableDeclaration0() {
- },
- FunctionRule0: function FunctionRule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.$arguments = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- Importer0: function Importer0() {
- },
- SupportsNegation0: function SupportsNegation0(t0, t1) {
- this.condition = t0;
- this.span = t1;
- },
- ParentSelector0: function ParentSelector0(t0) {
- this.suffix = t0;
- },
- ParentStatement0: function ParentStatement0() {
- },
- ParentStatement_closure0: function ParentStatement_closure0() {
- },
- ParentStatement__closure0: function ParentStatement__closure0() {
- },
- SimpleSelector0: function SimpleSelector0() {
- },
- Syntax_forPath0: function(path) {
- switch (X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
- case ".sass":
- return C.Syntax_Sass0;
- case ".css":
- return C.Syntax_CSS0;
- default:
- return C.Syntax_SCSS0;
- }
- },
- Syntax0: function Syntax0(t0) {
- this._syntax0$_name = t0;
- }
- },
- X = {
- ParsedPath_ParsedPath$parse: function(path, style) {
- var t1, parts, separators, start, i,
- root = style.getRoot$1(path),
- isRootRelative = style.isRootRelative$1(path);
- if (root != null)
- path = J.substring$1$s(path, root.length);
- t1 = type$.JSArray_String;
- parts = H.setRuntimeTypeInfo([], t1);
- separators = H.setRuntimeTypeInfo([], t1);
- t1 = path.length;
- if (t1 !== 0 && style.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, 0))) {
- separators.push(path[0]);
- start = 1;
- } else {
- separators.push("");
- start = 0;
- }
- for (i = start; i < t1; ++i)
- if (style.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, i))) {
- parts.push(C.JSString_methods.substring$2(path, start, i));
- separators.push(path[i]);
- start = i + 1;
- }
- if (start < t1) {
- parts.push(C.JSString_methods.substring$1(path, start));
- separators.push("");
- }
- return new X.ParsedPath(style, root, isRootRelative, parts, separators);
- },
- ParsedPath: function ParsedPath(t0, t1, t2, t3, t4) {
- var _ = this;
- _.style = t0;
- _.root = t1;
- _.isRootRelative = t2;
- _.parts = t3;
- _.separators = t4;
- },
- ParsedPath_normalize_closure: function ParsedPath_normalize_closure(t0) {
- this.$this = t0;
- },
- ParsedPath__splitExtension_closure: function ParsedPath__splitExtension_closure() {
- },
- ParsedPath__splitExtension_closure0: function ParsedPath__splitExtension_closure0() {
- },
- PathException$: function(message) {
- return new X.PathException(message);
- },
- PathException: function PathException(t0) {
- this.message = t0;
- },
- ModifiableCssStyleRule$: function(selector, span, originalSelector) {
- var t1 = originalSelector == null ? selector.value : originalSelector,
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return new X.ModifiableCssStyleRule(selector, t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
- },
- ModifiableCssStyleRule: function ModifiableCssStyleRule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.selector = t0;
- _.originalSelector = t1;
- _.span = t2;
- _.children = t3;
- _._children = t4;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ArgumentInvocation$: function(positional, named, span, keywordRest, rest) {
- var t1 = type$.Expression;
- return new X.ArgumentInvocation(P.List_List$unmodifiable(positional, t1), H.ConstantMap_ConstantMap$from(named, type$.String, t1), rest, keywordRest, span);
- },
- ArgumentInvocation: function ArgumentInvocation(t0, t1, t2, t3, t4) {
- var _ = this;
- _.positional = t0;
- _.named = t1;
- _.rest = t2;
- _.keywordRest = t3;
- _.span = t4;
- },
- UnaryOperationExpression: function UnaryOperationExpression(t0, t1, t2) {
- this.operator = t0;
- this.operand = t1;
- this.span = t2;
- },
- UnaryOperator: function UnaryOperator(t0, t1) {
- this.name = t0;
- this.operator = t1;
- },
- Interpolation$: function(contents, span) {
- var t1 = new X.Interpolation(P.List_List$unmodifiable(contents, type$.Object), span);
- t1.Interpolation$2(contents, span);
- return t1;
- },
- Interpolation: function Interpolation(t0, t1) {
- this.contents = t0;
- this.span = t1;
- },
- Interpolation_toString_closure: function Interpolation_toString_closure() {
- },
- ExtendRule: function ExtendRule(t0, t1, t2) {
- this.selector = t0;
- this.isOptional = t1;
- this.span = t2;
- },
- StyleRule: function StyleRule(t0, t1, t2, t3) {
- var _ = this;
- _.selector = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- SupportsInterpolation: function SupportsInterpolation(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- ClassSelector: function ClassSelector(t0) {
- this.name = t0;
- },
- CompoundSelector$: function(components) {
- var t1 = P.List_List$unmodifiable(components, type$.SimpleSelector);
- if (t1.length === 0)
- H.throwExpression(P.ArgumentError$("components may not be empty."));
- return new X.CompoundSelector(t1);
- },
- CompoundSelector: function CompoundSelector(t0) {
- this.components = t0;
- this._compound$_maxSpecificity = this._compound$_minSpecificity = null;
- },
- CompoundSelector_isInvisible_closure: function CompoundSelector_isInvisible_closure() {
- },
- compileAsync: function(path, charset, importCache, logger, sourceMap, style, syntax) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult),
- $async$returnValue, t2, stylesheet, t1;
- var $async$compileAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = syntax === M.Syntax_forPath(path);
- $async$goto = t1 ? 3 : 5;
- break;
- case 3:
- // then
- t1 = D.absolute(".");
- t2 = $.$get$context();
- $async$goto = 6;
- return P._asyncAwait(importCache.importCanonical$3(new F.FilesystemImporter(t1), t2.toUri$1(t2.canonicalize$1(path)), t2.toUri$1(path)), $async$compileAsync);
- case 6:
- // returning from await.
- stylesheet = $async$result;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t1 = B.readFile(path);
- stylesheet = V.Stylesheet_Stylesheet$parse(t1, syntax, logger, $.$get$context().toUri$1(path));
- case 4:
- // join
- $async$goto = 7;
- return P._asyncAwait(X._compileStylesheet0(stylesheet, logger, importCache, null, new F.FilesystemImporter(D.absolute(".")), null, style, true, null, null, sourceMap, charset), $async$compileAsync);
- case 7:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$compileAsync, $async$completer);
- },
- compileStringAsync: function(source, charset, importCache, importer, logger, sourceMap, style, syntax) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult),
- $async$returnValue, stylesheet;
- var $async$compileStringAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- stylesheet = V.Stylesheet_Stylesheet$parse(source, syntax, logger, null);
- $async$returnValue = X._compileStylesheet0(stylesheet, logger, importCache, null, importer, null, style, true, null, null, sourceMap, charset);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$compileStringAsync, $async$completer);
- },
- _compileStylesheet0: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult),
- $async$returnValue, serializeResult, t1, $async$temp1;
- var $async$_compileStylesheet0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = N;
- $async$goto = 3;
- return P._asyncAwait(E._EvaluateVisitor$0(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet0);
- case 3:
- // returning from await.
- serializeResult = $async$temp1.serialize($async$result.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true);
- t1 = serializeResult.sourceMap;
- if (t1 != null && true)
- B.mapInPlace(t1.urls, new X._compileStylesheet_closure0(stylesheet, importCache));
- $async$returnValue = new X.CompileResult(serializeResult);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_compileStylesheet0, $async$completer);
- },
- _compileStylesheet_closure0: function _compileStylesheet_closure0(t0, t1) {
- this.stylesheet = t0;
- this.importCache = t1;
- },
- CompileResult: function CompileResult(t0) {
- this._serialize = t0;
- },
- closure70: function closure70() {
- },
- closure71: function closure71() {
- },
- SourceSpanWithContext$: function(start, end, text, _context) {
- var t1 = new X.SourceSpanWithContext(_context, start, end, text);
- t1.SourceSpanBase$3(start, end, text);
- if (!C.JSString_methods.contains$1(_context, text))
- H.throwExpression(P.ArgumentError$('The context line "' + _context + '" must contain "' + text + '".'));
- if (B.findLineStart(_context, text, start.get$column()) == null)
- H.throwExpression(P.ArgumentError$('The span text "' + text + '" must start at column ' + (start.get$column() + 1) + ' in a line within "' + _context + '".'));
- return t1;
- },
- SourceSpanWithContext: function SourceSpanWithContext(t0, t1, t2, t3) {
- var _ = this;
- _._context = t0;
- _.start = t1;
- _.end = t2;
- _.text = t3;
- },
- StringScanner$: function(string, position, sourceUrl) {
- var t1 = typeof sourceUrl == "string" ? P.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
- return new X.StringScanner(t1, string);
- },
- StringScanner: function StringScanner(t0, t1) {
- var _ = this;
- _.sourceUrl = t0;
- _.string = t1;
- _._string_scanner$_position = 0;
- _._lastMatchPosition = _._lastMatch = null;
- },
- ArgumentInvocation$0: function(positional, named, span, keywordRest, rest) {
- var t1 = type$.Expression_2;
- return new X.ArgumentInvocation0(P.List_List$unmodifiable(positional, t1), H.ConstantMap_ConstantMap$from(named, type$.String, t1), rest, keywordRest, span);
- },
- ArgumentInvocation0: function ArgumentInvocation0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.positional = t0;
- _.named = t1;
- _.rest = t2;
- _.keywordRest = t3;
- _.span = t4;
- },
- compileAsync0: function(path, functions, indentWidth, lineFeed, nodeImporter, sourceMap, style, syntax, useSpaces) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult_2),
- $async$returnValue, t1, t2, stylesheet;
- var $async$compileAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = B.readFile0(path);
- t2 = syntax == null ? M.Syntax_forPath0(path) : syntax;
- stylesheet = V.Stylesheet_Stylesheet$parse0(t1, t2, null, $.$get$context().toUri$1(path));
- $async$goto = 3;
- return P._asyncAwait(X._compileStylesheet2(stylesheet, null, null, nodeImporter, new F.FilesystemImporter0(D.absolute(".")), functions, style, useSpaces, indentWidth, lineFeed, sourceMap, true), $async$compileAsync0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$compileAsync0, $async$completer);
- },
- compileStringAsync0: function(source, functions, indentWidth, lineFeed, nodeImporter, sourceMap, style, syntax, url, useSpaces) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult_2),
- $async$returnValue, stylesheet, t1;
- var $async$compileStringAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- stylesheet = V.Stylesheet_Stylesheet$parse0(source, syntax == null ? C.Syntax_SCSS0 : syntax, null, url);
- t1 = D.absolute(".");
- $async$returnValue = X._compileStylesheet2(stylesheet, null, null, nodeImporter, new F.FilesystemImporter0(t1), functions, style, useSpaces, indentWidth, lineFeed, sourceMap, true);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$compileStringAsync0, $async$completer);
- },
- _compileStylesheet2: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.CompileResult_2),
- $async$returnValue, evaluateResult, serializeResult, t1;
- var $async$_compileStylesheet2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(E._EvaluateVisitor$2(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet2);
- case 3:
- // returning from await.
- evaluateResult = $async$result;
- serializeResult = N.serialize0(evaluateResult.stylesheet, true, indentWidth, false, lineFeed, sourceMap, style, useSpaces);
- t1 = serializeResult.sourceMap;
- if (t1 != null && importCache != null)
- B.mapInPlace0(t1.urls, new X._compileStylesheet_closure2(stylesheet, importCache));
- $async$returnValue = new X.CompileResult0(evaluateResult, serializeResult);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_compileStylesheet2, $async$completer);
- },
- _compileStylesheet_closure2: function _compileStylesheet_closure2(t0, t1) {
- this.stylesheet = t0;
- this.importCache = t1;
- },
- CompileResult0: function CompileResult0(t0, t1) {
- this._evaluate = t0;
- this._async_compile$_serialize = t1;
- },
- ClassSelector0: function ClassSelector0(t0) {
- this.name = t0;
- },
- closure178: function closure178() {
- },
- closure179: function closure179() {
- },
- CompoundSelector$0: function(components) {
- var t1 = P.List_List$unmodifiable(components, type$.SimpleSelector_2);
- if (t1.length === 0)
- H.throwExpression(P.ArgumentError$("components may not be empty."));
- return new X.CompoundSelector0(t1);
- },
- CompoundSelector0: function CompoundSelector0(t0) {
- this.components = t0;
- this._compound0$_maxSpecificity = this._compound0$_minSpecificity = null;
- },
- CompoundSelector_isInvisible_closure0: function CompoundSelector_isInvisible_closure0() {
- },
- ExtendRule0: function ExtendRule0(t0, t1, t2) {
- this.selector = t0;
- this.isOptional = t1;
- this.span = t2;
- },
- Interpolation$0: function(contents, span) {
- var t1 = new X.Interpolation0(P.List_List$unmodifiable(contents, type$.Object), span);
- t1.Interpolation$20(contents, span);
- return t1;
- },
- Interpolation0: function Interpolation0(t0, t1) {
- this.contents = t0;
- this.span = t1;
- },
- Interpolation_toString_closure0: function Interpolation_toString_closure0() {
- },
- SupportsInterpolation0: function SupportsInterpolation0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- ModifiableCssStyleRule$0: function(selector, span, originalSelector) {
- var t1 = originalSelector == null ? selector.value : originalSelector,
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return new X.ModifiableCssStyleRule0(selector, t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
- },
- ModifiableCssStyleRule0: function ModifiableCssStyleRule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.selector = t0;
- _.originalSelector = t1;
- _.span = t2;
- _.children = t3;
- _._node2$_children = t4;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- StyleRule0: function StyleRule0(t0, t1, t2, t3) {
- var _ = this;
- _.selector = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- UnaryOperationExpression0: function UnaryOperationExpression0(t0, t1, t2) {
- this.operator = t0;
- this.operand = t1;
- this.span = t2;
- },
- UnaryOperator0: function UnaryOperator0(t0, t1) {
- this.name = t0;
- this.operator = t1;
- },
- _combine: function(hash, value) {
- hash = 536870911 & hash + value;
- hash = 536870911 & hash + ((524287 & hash) << 10);
- return hash ^ hash >>> 6;
- },
- _finish: function(hash) {
- hash = 536870911 & hash + ((67108863 & hash) << 3);
- hash ^= hash >>> 11;
- return 536870911 & hash + ((16383 & hash) << 15);
- }
- },
- K = {
- PathMap__create: function(context, $V) {
- var t1 = {};
- t1.context = context;
- t1.context = $.$get$context();
- return P.LinkedHashMap_LinkedHashMap(new K.PathMap__create_closure(t1), new K.PathMap__create_closure0(t1), new K.PathMap__create_closure1(), type$.String, $V);
- },
- PathMap: function PathMap(t0, t1) {
- this._collection$_map = t0;
- this.$ti = t1;
- },
- PathMap__create_closure: function PathMap__create_closure(t0) {
- this._box_0 = t0;
- },
- PathMap__create_closure0: function PathMap__create_closure0(t0) {
- this._box_0 = t0;
- },
- PathMap__create_closure1: function PathMap__create_closure1() {
- },
- ColorExpression: function ColorExpression(t0) {
- this.value = t0;
- },
- _functionString: function($name, $arguments) {
- return new D.SassString($name + "(" + J.map$1$1$ax($arguments, new K._functionString_closure(), type$.String).join$1(0, ", ") + ")", false);
- },
- _removedColorFunction: function($name, argument, negative) {
- var t1 = S.SpanScanner$("@function " + $name + "($color, $amount) {", "sass:color");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new K._removedColorFunction_closure($name, argument, negative), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- _rgb: function($name, $arguments) {
- var t2, red, green, blue, t3, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : _null;
- if (!t1.$index($arguments, 0).get$isSpecialNumber())
- if (!t1.$index($arguments, 1).get$isSpecialNumber())
- if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
- t2 = alpha == null ? _null : alpha.get$isSpecialNumber();
- t2 = t2 === true;
- } else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- return K._functionString($name, $arguments);
- red = t1.$index($arguments, 0).assertNumber$1("red");
- green = t1.$index($arguments, 1).assertNumber$1("green");
- blue = t1.$index($arguments, 2).assertNumber$1("blue");
- t1 = T.fuzzyRound(K._percentageOrUnitless(red, 255, "red"));
- t2 = T.fuzzyRound(K._percentageOrUnitless(green, 255, "green"));
- t3 = T.fuzzyRound(K._percentageOrUnitless(blue, 255, "blue"));
- return K.SassColor$rgb(t1, t2, t3, alpha == null ? _null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha"), _null);
- },
- _rgbTwoArg: function($name, $arguments) {
- var first, t2, color,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar())
- return K._functionString($name, $arguments);
- else if (t1.$index($arguments, 1).get$isVar()) {
- first = t1.$index($arguments, 0);
- if (first instanceof K.SassColor) {
- t2 = $name + "(" + H.S(first.get$red()) + ", " + H.S(first.get$green()) + ", " + H.S(first.get$blue()) + ", ";
- t1 = t1.$index($arguments, 1);
- t1.toString;
- return new D.SassString(t2 + N.serializeValue0(t1, false, true) + ")", false);
- } else
- return K._functionString($name, $arguments);
- } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
- color = t1.$index($arguments, 0).assertColor$1("color");
- t2 = $name + "(" + H.S(color.get$red()) + ", " + H.S(color.get$green()) + ", " + H.S(color.get$blue()) + ", ";
- t1 = t1.$index($arguments, 1);
- t1.toString;
- return new D.SassString(t2 + N.serializeValue0(t1, false, true) + ")", false);
- }
- return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(K._percentageOrUnitless(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
- },
- _hsl: function($name, $arguments) {
- var t2, hue, saturation, lightness, t3,
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
- if (!t1.$index($arguments, 0).get$isSpecialNumber())
- if (!t1.$index($arguments, 1).get$isSpecialNumber())
- if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
- t2 = alpha == null ? null : alpha.get$isSpecialNumber();
- t2 = t2 === true;
- } else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- return K._functionString($name, $arguments);
- hue = t1.$index($arguments, 0).assertNumber$1("hue");
- saturation = t1.$index($arguments, 1).assertNumber$1("saturation");
- lightness = t1.$index($arguments, 2).assertNumber$1("lightness");
- t1 = J.clamp$2$n(saturation.value, 0, 100);
- t2 = J.clamp$2$n(lightness.value, 0, 100);
- t3 = alpha == null ? null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
- return K.SassColor$hsl(hue.value, t1, t2, t3);
- },
- _parseChannels: function($name, argumentNames, channels) {
- var isCommaSeparated, isBracketed, buffer, t1, list, maybeSlashSeparated, t2, t3,
- _s17_ = "$channels must be",
- _s32_ = "$channels must be an unbracketed";
- if (channels.get$isVar())
- return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value));
- isCommaSeparated = channels.get$separator() === C.ListSeparator_comma;
- isBracketed = channels.get$hasBrackets();
- if (isCommaSeparated || isBracketed) {
- buffer = new P.StringBuffer(_s17_);
- if (isBracketed) {
- buffer._contents = _s32_;
- t1 = _s32_;
- } else
- t1 = _s17_;
- if (isCommaSeparated) {
- t1 += isBracketed ? "," : " a";
- buffer._contents = t1;
- t1 = buffer._contents = t1 + " space-separated";
- }
- buffer._contents = t1 + " list.";
- throw H.wrapException(E.SassScriptException$(buffer.toString$0(0)));
- }
- list = channels.get$asList();
- t1 = list.length;
- if (t1 > 3)
- throw H.wrapException(E.SassScriptException$("Only 3 elements allowed, but " + t1 + " were passed."));
- else if (t1 < 3) {
- if (!C.JSArray_methods.any$1(list, new K._parseChannels_closure()))
- if (list.length !== 0) {
- t1 = C.JSArray_methods.get$last(list);
- if (t1 instanceof D.SassString)
- if (t1.hasQuotes) {
- t1 = t1.text;
- t1 = B.startsWithIgnoreCase(t1, "var(") && J.contains$1$asx(t1, "/");
- } else
- t1 = false;
- else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = true;
- if (t1)
- return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value));
- else
- throw H.wrapException(E.SassScriptException$("Missing element " + argumentNames[list.length] + "."));
- }
- maybeSlashSeparated = list[2];
- if (maybeSlashSeparated instanceof T.SassNumber && maybeSlashSeparated.asSlash != null) {
- t1 = list[0];
- t2 = list[1];
- t3 = maybeSlashSeparated.asSlash;
- return H.setRuntimeTypeInfo([t1, t2, t3.item1, t3.item2], type$.JSArray_Value);
- } else if (maybeSlashSeparated instanceof D.SassString && !maybeSlashSeparated.hasQuotes && J.contains$1$asx(maybeSlashSeparated.text, "/"))
- return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value));
- else
- return list;
- },
- _percentageOrUnitless: function(number, max, $name) {
- var value;
- if (!(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0))
- value = number.value;
- else if (number.hasUnit$1("%"))
- value = max * number.value / 100;
- else
- throw H.wrapException(E.SassScriptException$("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".'));
- return J.clamp$2$n(value, 0, max);
- },
- _mixColors: function(color1, color2, weight) {
- var weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
- normalizedWeight = weightScale * 2 - 1,
- t1 = color1.alpha,
- t2 = color2.alpha,
- alphaDistance = t1 - t2,
- t3 = normalizedWeight * alphaDistance,
- weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2,
- weight2 = 1 - weight1;
- 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);
- },
- _opacify: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color");
- 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));
- },
- _transparentize: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color");
- 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));
- },
- _function4: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:color");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- closure43: function closure43() {
- },
- closure44: function closure44() {
- },
- closure45: function closure45() {
- },
- closure46: function closure46() {
- },
- closure47: function closure47() {
- },
- closure48: function closure48() {
- },
- closure49: function closure49() {
- },
- closure50: function closure50() {
- },
- closure51: function closure51() {
- },
- closure52: function closure52() {
- },
- closure53: function closure53() {
- },
- closure54: function closure54() {
- },
- closure55: function closure55() {
- },
- closure56: function closure56() {
- },
- closure57: function closure57() {
- },
- closure58: function closure58() {
- },
- closure59: function closure59() {
- },
- closure60: function closure60() {
- },
- closure61: function closure61() {
- },
- closure62: function closure62() {
- },
- closure63: function closure63() {
- },
- closure64: function closure64() {
- },
- closure65: function closure65() {
- },
- closure66: function closure66() {
- },
- closure67: function closure67() {
- },
- closure68: function closure68() {
- },
- _closure10: function _closure10() {
- },
- closure69: function closure69() {
- },
- closure96: function closure96() {
- },
- closure97: function closure97() {
- },
- closure98: function closure98() {
- },
- closure99: function closure99() {
- },
- _closure12: function _closure12() {
- },
- closure100: function closure100() {
- },
- closure83: function closure83() {
- },
- closure82: function closure82() {
- },
- closure81: function closure81() {
- },
- closure80: function closure80() {
- },
- closure79: function closure79() {
- },
- closure78: function closure78() {
- },
- closure77: function closure77() {
- },
- closure76: function closure76() {
- },
- closure74: function closure74() {
- },
- closure_getInRange0: function closure_getInRange0(t0) {
- this.keywords = t0;
- },
- _closure9: function _closure9() {
- },
- closure73: function closure73() {
- },
- closure_getScale: function closure_getScale(t0) {
- this.keywords = t0;
- },
- closure_scaleValue: function closure_scaleValue() {
- },
- _closure8: function _closure8() {
- },
- closure72: function closure72() {
- },
- closure_getInRange: function closure_getInRange(t0) {
- this.keywords = t0;
- },
- _closure7: function _closure7() {
- },
- closure75: function closure75() {
- },
- closure_hexString: function closure_hexString() {
- },
- _functionString_closure: function _functionString_closure() {
- },
- _removedColorFunction_closure: function _removedColorFunction_closure(t0, t1, t2) {
- this.name = t0;
- this.argument = t1;
- this.negative = t2;
- },
- _parseChannels_closure: function _parseChannels_closure() {
- },
- _fuzzyRoundIfZero: function(number) {
- if (!(Math.abs(number - 0) < $.$get$epsilon()))
- return number;
- return C.JSNumber_methods.get$isNegative(number) ? -0.0 : 0;
- },
- _coerceToRad: function(number) {
- var error, t1, t2, exception;
- try {
- t1 = type$.JSArray_String;
- t2 = H.setRuntimeTypeInfo(["rad"], t1);
- t1 = H.setRuntimeTypeInfo([], t1);
- t2 = T.SassNumber$withUnits(number.valueInUnits$2(t2, t1), t1, t2);
- return t2;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassScriptException) {
- error = t1;
- if (!C.JSString_methods.startsWith$1(error.message, "Incompatible units"))
- throw exception;
- throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to be an angle."));
- } else
- throw exception;
- }
- },
- _numberFunction: function($name, transform) {
- var t1 = S.SpanScanner$("@function " + $name + "($number) {", "sass:math");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new K._numberFunction_closure(transform), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- _function1: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:math");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- closure25: function closure25() {
- },
- closure91: function closure91() {
- },
- closure24: function closure24() {
- },
- closure23: function closure23() {
- },
- closure22: function closure22() {
- },
- closure26: function closure26() {
- },
- closure89: function closure89() {
- },
- _closure11: function _closure11() {
- },
- closure88: function closure88() {
- },
- closure87: function closure87() {
- },
- closure85: function closure85() {
- },
- closure95: function closure95() {
- },
- closure94: function closure94() {
- },
- closure93: function closure93() {
- },
- closure92: function closure92() {
- },
- closure90: function closure90() {
- },
- closure86: function closure86() {
- },
- closure84: function closure84() {
- },
- closure18: function closure18() {
- },
- closure17: function closure17() {
- },
- closure19: function closure19() {
- },
- closure21: function closure21() {
- },
- closure20: function closure20() {
- },
- _numberFunction_closure: function _numberFunction_closure(t0) {
- this.transform = t0;
- },
- LimitedMapView$safelist: function(_map, safelist, $K, $V) {
- return new K.LimitedMapView(_map, safelist._base.intersection$1(new M.MapKeySet(_map, type$.MapKeySet_Object)), $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
- },
- LimitedMapView$blocklist: function(_map, blocklist, $K, $V) {
- var t2, key,
- t1 = P.LinkedHashSet_LinkedHashSet($K);
- for (t2 = J.get$iterator$ax(_map.get$keys()); t2.moveNext$0();) {
- key = t2.get$current(t2);
- if (!blocklist.contains$1(0, key))
- t1.add$1(0, key);
- }
- return new K.LimitedMapView(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
- },
- LimitedMapView: function LimitedMapView(t0, t1, t2) {
- this._limited_map_view$_map = t0;
- this._limited_map_view$_keys = t1;
- this.$ti = t2;
- },
- SassColor$rgb: function(_red, _green, _blue, alpha, originalSpan) {
- var t1 = new K.SassColor(_red, _green, _blue, null, null, null, alpha == null ? 1 : T.fuzzyAssertRange(alpha, 0, 1, "alpha"), originalSpan);
- P.RangeError_checkValueInInterval(t1.get$red(), 0, 255, "red");
- P.RangeError_checkValueInInterval(t1.get$green(), 0, 255, "green");
- P.RangeError_checkValueInInterval(t1.get$blue(), 0, 255, "blue");
- return t1;
- },
- SassColor$hsl: function(hue, saturation, lightness, alpha) {
- var _null = null,
- t1 = C.JSNumber_methods.$mod(hue, 360),
- t2 = T.fuzzyAssertRange(saturation, 0, 100, "saturation"),
- t3 = T.fuzzyAssertRange(lightness, 0, 100, "lightness");
- return new K.SassColor(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : T.fuzzyAssertRange(alpha, 0, 1, "alpha"), _null);
- },
- SassColor: function SassColor(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _._red = t0;
- _._green = t1;
- _._blue = t2;
- _._hue = t3;
- _._saturation = t4;
- _._lightness = t5;
- _.alpha = t6;
- _.originalSpan = t7;
- },
- UnicodeGlyphSet: function UnicodeGlyphSet() {
- },
- ColorExpression0: function ColorExpression0(t0) {
- this.value = t0;
- },
- _functionString0: function($name, $arguments) {
- return new D.SassString0($name + "(" + J.map$1$1$ax($arguments, new K._functionString_closure0(), type$.String).join$1(0, ", ") + ")", false);
- },
- _removedColorFunction0: function($name, argument, negative) {
- var t1 = S.SpanScanner$("@function " + $name + "($color, $amount) {", "sass:color");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new K._removedColorFunction_closure0($name, argument, negative), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- _rgb0: function($name, $arguments) {
- var t2, red, green, blue, t3, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : _null;
- if (!t1.$index($arguments, 0).get$isSpecialNumber())
- if (!t1.$index($arguments, 1).get$isSpecialNumber())
- if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
- t2 = alpha == null ? _null : alpha.get$isSpecialNumber();
- t2 = t2 === true;
- } else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- return K._functionString0($name, $arguments);
- red = t1.$index($arguments, 0).assertNumber$1("red");
- green = t1.$index($arguments, 1).assertNumber$1("green");
- blue = t1.$index($arguments, 2).assertNumber$1("blue");
- t1 = T.fuzzyRound0(K._percentageOrUnitless0(red, 255, "red"));
- t2 = T.fuzzyRound0(K._percentageOrUnitless0(green, 255, "green"));
- t3 = T.fuzzyRound0(K._percentageOrUnitless0(blue, 255, "blue"));
- return K.SassColor$rgb0(t1, t2, t3, alpha == null ? _null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha"), _null);
- },
- _rgbTwoArg0: function($name, $arguments) {
- var first, t2, color,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar())
- return K._functionString0($name, $arguments);
- else if (t1.$index($arguments, 1).get$isVar()) {
- first = t1.$index($arguments, 0);
- if (first instanceof K.SassColor0) {
- t2 = $name + "(" + H.S(first.get$red()) + ", " + H.S(first.get$green()) + ", " + H.S(first.get$blue()) + ", ";
- t1 = t1.$index($arguments, 1);
- t1.toString;
- return new D.SassString0(t2 + N.serializeValue(t1, false, true) + ")", false);
- } else
- return K._functionString0($name, $arguments);
- } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
- color = t1.$index($arguments, 0).assertColor$1("color");
- t2 = $name + "(" + H.S(color.get$red()) + ", " + H.S(color.get$green()) + ", " + H.S(color.get$blue()) + ", ";
- t1 = t1.$index($arguments, 1);
- t1.toString;
- return new D.SassString0(t2 + N.serializeValue(t1, false, true) + ")", false);
- }
- return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(K._percentageOrUnitless0(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
- },
- _hsl0: function($name, $arguments) {
- var t2, hue, saturation, lightness, t3,
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
- if (!t1.$index($arguments, 0).get$isSpecialNumber())
- if (!t1.$index($arguments, 1).get$isSpecialNumber())
- if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
- t2 = alpha == null ? null : alpha.get$isSpecialNumber();
- t2 = t2 === true;
- } else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- return K._functionString0($name, $arguments);
- hue = t1.$index($arguments, 0).assertNumber$1("hue");
- saturation = t1.$index($arguments, 1).assertNumber$1("saturation");
- lightness = t1.$index($arguments, 2).assertNumber$1("lightness");
- t1 = J.clamp$2$n(saturation.value, 0, 100);
- t2 = J.clamp$2$n(lightness.value, 0, 100);
- t3 = alpha == null ? null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
- return K.SassColor$hsl0(hue.value, t1, t2, t3);
- },
- _parseChannels0: function($name, argumentNames, channels) {
- var isCommaSeparated, isBracketed, buffer, t1, list, maybeSlashSeparated, t2, t3,
- _s17_ = "$channels must be",
- _s32_ = "$channels must be an unbracketed";
- if (channels.get$isVar())
- return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value_2));
- isCommaSeparated = channels.get$separator() === C.ListSeparator_comma0;
- isBracketed = channels.get$hasBrackets();
- if (isCommaSeparated || isBracketed) {
- buffer = new P.StringBuffer(_s17_);
- if (isBracketed) {
- buffer._contents = _s32_;
- t1 = _s32_;
- } else
- t1 = _s17_;
- if (isCommaSeparated) {
- t1 += isBracketed ? "," : " a";
- buffer._contents = t1;
- t1 = buffer._contents = t1 + " space-separated";
- }
- buffer._contents = t1 + " list.";
- throw H.wrapException(E.SassScriptException$0(buffer.toString$0(0)));
- }
- list = channels.get$asList();
- t1 = list.length;
- if (t1 > 3)
- throw H.wrapException(E.SassScriptException$0("Only 3 elements allowed, but " + t1 + " were passed."));
- else if (t1 < 3) {
- if (!C.JSArray_methods.any$1(list, new K._parseChannels_closure0()))
- if (list.length !== 0) {
- t1 = C.JSArray_methods.get$last(list);
- if (t1 instanceof D.SassString0)
- if (t1.hasQuotes) {
- t1 = t1.text;
- t1 = B.startsWithIgnoreCase0(t1, "var(") && J.contains$1$asx(t1, "/");
- } else
- t1 = false;
- else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = true;
- if (t1)
- return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value_2));
- else
- throw H.wrapException(E.SassScriptException$0("Missing element " + argumentNames[list.length] + "."));
- }
- maybeSlashSeparated = list[2];
- if (maybeSlashSeparated instanceof T.SassNumber0 && maybeSlashSeparated.asSlash != null) {
- t1 = list[0];
- t2 = list[1];
- t3 = maybeSlashSeparated.asSlash;
- return H.setRuntimeTypeInfo([t1, t2, t3.item1, t3.item2], type$.JSArray_Value_2);
- } else if (maybeSlashSeparated instanceof D.SassString0 && !maybeSlashSeparated.hasQuotes && J.contains$1$asx(maybeSlashSeparated.text, "/"))
- return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_Value_2));
- else
- return list;
- },
- _percentageOrUnitless0: function(number, max, $name) {
- var value;
- if (!(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0))
- value = number.value;
- else if (number.hasUnit$1("%"))
- value = max * number.value / 100;
- else
- throw H.wrapException(E.SassScriptException$0("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".'));
- return J.clamp$2$n(value, 0, max);
- },
- _mixColors0: function(color1, color2, weight) {
- var weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
- normalizedWeight = weightScale * 2 - 1,
- t1 = color1.alpha,
- t2 = color2.alpha,
- alphaDistance = t1 - t2,
- t3 = normalizedWeight * alphaDistance,
- weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2,
- weight2 = 1 - weight1;
- 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);
- },
- _opacify0: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color");
- 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));
- },
- _transparentize0: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color");
- 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));
- },
- _function11: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:color");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- closure151: function closure151() {
- },
- closure152: function closure152() {
- },
- closure153: function closure153() {
- },
- closure154: function closure154() {
- },
- closure155: function closure155() {
- },
- closure156: function closure156() {
- },
- closure157: function closure157() {
- },
- closure158: function closure158() {
- },
- closure159: function closure159() {
- },
- closure160: function closure160() {
- },
- closure161: function closure161() {
- },
- closure162: function closure162() {
- },
- closure163: function closure163() {
- },
- closure164: function closure164() {
- },
- closure165: function closure165() {
- },
- closure166: function closure166() {
- },
- closure167: function closure167() {
- },
- closure168: function closure168() {
- },
- closure169: function closure169() {
- },
- closure170: function closure170() {
- },
- closure171: function closure171() {
- },
- closure172: function closure172() {
- },
- closure173: function closure173() {
- },
- closure174: function closure174() {
- },
- closure175: function closure175() {
- },
- closure176: function closure176() {
- },
- _closure25: function _closure25() {
- },
- closure177: function closure177() {
- },
- closure204: function closure204() {
- },
- closure205: function closure205() {
- },
- closure206: function closure206() {
- },
- closure207: function closure207() {
- },
- _closure27: function _closure27() {
- },
- closure208: function closure208() {
- },
- closure191: function closure191() {
- },
- closure190: function closure190() {
- },
- closure189: function closure189() {
- },
- closure188: function closure188() {
- },
- closure187: function closure187() {
- },
- closure186: function closure186() {
- },
- closure185: function closure185() {
- },
- closure184: function closure184() {
- },
- closure182: function closure182() {
- },
- closure_getInRange2: function closure_getInRange2(t0) {
- this.keywords = t0;
- },
- _closure24: function _closure24() {
- },
- closure181: function closure181() {
- },
- closure_getScale0: function closure_getScale0(t0) {
- this.keywords = t0;
- },
- closure_scaleValue0: function closure_scaleValue0() {
- },
- _closure23: function _closure23() {
- },
- closure180: function closure180() {
- },
- closure_getInRange1: function closure_getInRange1(t0) {
- this.keywords = t0;
- },
- _closure22: function _closure22() {
- },
- closure183: function closure183() {
- },
- closure_hexString0: function closure_hexString0() {
- },
- _functionString_closure0: function _functionString_closure0() {
- },
- _removedColorFunction_closure0: function _removedColorFunction_closure0(t0, t1, t2) {
- this.name = t0;
- this.argument = t1;
- this.negative = t2;
- },
- _parseChannels_closure0: function _parseChannels_closure0() {
- },
- _NodeSassColor: function _NodeSassColor() {
- },
- closure239: function closure239() {
- },
- closure240: function closure240() {
- },
- closure241: function closure241() {
- },
- closure242: function closure242() {
- },
- closure243: function closure243() {
- },
- closure244: function closure244() {
- },
- closure245: function closure245() {
- },
- closure246: function closure246() {
- },
- closure247: function closure247() {
- },
- closure248: function closure248() {
- },
- SassColor$rgb0: function(_red, _green, _blue, alpha, originalSpan) {
- var t1 = new K.SassColor0(_red, _green, _blue, null, null, null, alpha == null ? 1 : T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), originalSpan);
- P.RangeError_checkValueInInterval(t1.get$red(), 0, 255, "red");
- P.RangeError_checkValueInInterval(t1.get$green(), 0, 255, "green");
- P.RangeError_checkValueInInterval(t1.get$blue(), 0, 255, "blue");
- return t1;
- },
- SassColor$hsl0: function(hue, saturation, lightness, alpha) {
- var _null = null,
- t1 = C.JSNumber_methods.$mod(hue, 360),
- t2 = T.fuzzyAssertRange0(saturation, 0, 100, "saturation"),
- t3 = T.fuzzyAssertRange0(lightness, 0, 100, "lightness");
- return new K.SassColor0(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), _null);
- },
- SassColor0: function SassColor0(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _._color1$_red = t0;
- _._color1$_green = t1;
- _._color1$_blue = t2;
- _._color1$_hue = t3;
- _._color1$_saturation = t4;
- _._color1$_lightness = t5;
- _.alpha = t6;
- _.originalSpan = t7;
- },
- LimitedMapView$safelist0: function(_map, safelist, $K, $V) {
- return new K.LimitedMapView0(_map, safelist._base.intersection$1(new M.MapKeySet(_map, type$.MapKeySet_Object)), $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
- },
- LimitedMapView$blocklist0: function(_map, blocklist, $K, $V) {
- var t2, key,
- t1 = P.LinkedHashSet_LinkedHashSet($K);
- for (t2 = J.get$iterator$ax(_map.get$keys()); t2.moveNext$0();) {
- key = t2.get$current(t2);
- if (!blocklist.contains$1(0, key))
- t1.add$1(0, key);
- }
- return new K.LimitedMapView0(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
- },
- LimitedMapView0: function LimitedMapView0(t0, t1, t2) {
- this._limited_map_view0$_map = t0;
- this._limited_map_view0$_keys = t1;
- this.$ti = t2;
- },
- _fuzzyRoundIfZero0: function(number) {
- if (!(Math.abs(number - 0) < $.$get$epsilon0()))
- return number;
- return C.JSNumber_methods.get$isNegative(number) ? -0.0 : 0;
- },
- _coerceToRad0: function(number) {
- var error, t1, t2, exception;
- try {
- t1 = type$.JSArray_String;
- t2 = H.setRuntimeTypeInfo(["rad"], t1);
- t1 = H.setRuntimeTypeInfo([], t1);
- t2 = T.SassNumber$withUnits0(number.valueInUnits$2(t2, t1), t1, t2);
- return t2;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassScriptException0) {
- error = t1;
- if (!C.JSString_methods.startsWith$1(error.message, "Incompatible units"))
- throw exception;
- throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to be an angle."));
- } else
- throw exception;
- }
- },
- _numberFunction0: function($name, transform) {
- var t1 = S.SpanScanner$("@function " + $name + "($number) {", "sass:math");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new K._numberFunction_closure0(transform), type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- _function8: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:math");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- closure133: function closure133() {
- },
- closure199: function closure199() {
- },
- closure132: function closure132() {
- },
- closure131: function closure131() {
- },
- closure130: function closure130() {
- },
- closure134: function closure134() {
- },
- closure197: function closure197() {
- },
- _closure26: function _closure26() {
- },
- closure196: function closure196() {
- },
- closure195: function closure195() {
- },
- closure193: function closure193() {
- },
- closure203: function closure203() {
- },
- closure202: function closure202() {
- },
- closure201: function closure201() {
- },
- closure200: function closure200() {
- },
- closure198: function closure198() {
- },
- closure194: function closure194() {
- },
- closure192: function closure192() {
- },
- closure126: function closure126() {
- },
- closure125: function closure125() {
- },
- closure127: function closure127() {
- },
- closure129: function closure129() {
- },
- closure128: function closure128() {
- },
- _numberFunction_closure0: function _numberFunction_closure0(t0) {
- this.transform = t0;
- }
- },
- R = {ModifiableCssComment: function ModifiableCssComment(t0, t1) {
- var _ = this;
- _.text = t0;
- _.span = t1;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ImportCache$: function(importers, loadPaths, logger) {
- var t1 = R.ImportCache__toImporters(importers, loadPaths, null),
- t2 = logger == null ? C.StderrLogger_false : logger,
- t3 = type$.Uri;
- return new R.ImportCache(t1, t2, P.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, type$.Tuple3_Importer_Uri_Uri), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Stylesheet_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
- },
- ImportCache__toImporters: function(importers, loadPaths, packageResolver) {
- var _i, t2, t3, path, _null = null,
- sassPath = H._asStringNullable(J.get$env$x(self.process).SASS_PATH),
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Importer);
- for (_i = 0; false; ++_i)
- t1.push(importers[_i]);
- if (loadPaths != null)
- for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push(new F.FilesystemImporter($.$get$context().absolute$7(t3, _null, _null, _null, _null, _null, _null)));
- }
- if (sassPath != null) {
- t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
- t3 = t2.length;
- _i = 0;
- for (; _i < t3; ++_i) {
- path = t2[_i];
- t1.push(new F.FilesystemImporter($.$get$context().absolute$7(path, _null, _null, _null, _null, _null, _null)));
- }
- }
- return t1;
- },
- ImportCache: function ImportCache(t0, t1, t2, t3, t4) {
- var _ = this;
- _._importers = t0;
- _._logger = t1;
- _._canonicalizeCache = t2;
- _._importCache = t3;
- _._resultsCache = t4;
- },
- ImportCache_canonicalize_closure: function ImportCache_canonicalize_closure(t0, t1, t2) {
- this.$this = t0;
- this.url = t1;
- this.forImport = t2;
- },
- ImportCache__canonicalize_closure: function ImportCache__canonicalize_closure(t0, t1) {
- this.importer = t0;
- this.url = t1;
- },
- ImportCache_importCanonical_closure: function ImportCache_importCanonical_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- },
- ImportCache_humanize_closure: function ImportCache_humanize_closure(t0) {
- this.canonicalUrl = t0;
- },
- ImportCache_humanize_closure0: function ImportCache_humanize_closure0() {
- },
- ImportCache_humanize_closure1: function ImportCache_humanize_closure1() {
- },
- ForwardedModuleView_ifNecessary: function(inner, rule, $T) {
- var t1;
- if (rule.prefix == null)
- if (rule.shownMixinsAndFunctions == null)
- if (rule.shownVariables == null) {
- t1 = rule.hiddenMixinsAndFunctions;
- if (t1 != null) {
- t1 = t1._base;
- t1 = t1.get$isEmpty(t1);
- } else
- t1 = true;
- if (t1) {
- t1 = rule.hiddenVariables;
- if (t1 != null) {
- t1 = t1._base;
- t1 = t1.get$isEmpty(t1);
- } else
- t1 = true;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- return inner;
- else
- return R.ForwardedModuleView$(inner, rule, $T);
- },
- ForwardedModuleView$: function(_inner, _rule, $T) {
- var t5,
- t1 = _rule.prefix,
- t2 = _rule.shownVariables,
- t3 = _rule.hiddenVariables,
- t4 = R.ForwardedModuleView__forwardedMap(_inner.get$variables(), t1, t2, t3, type$.Value);
- t2 = _inner.get$variableNodes() == null ? null : R.ForwardedModuleView__forwardedMap(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode);
- t3 = _rule.shownMixinsAndFunctions;
- t5 = _rule.hiddenMixinsAndFunctions;
- return new R.ForwardedModuleView(_inner, _rule, t4, t2, R.ForwardedModuleView__forwardedMap(_inner.get$functions(_inner), t1, t3, t5, $T), R.ForwardedModuleView__forwardedMap(_inner.get$mixins(), t1, t3, t5, $T), $T._eval$1("ForwardedModuleView<0>"));
- },
- ForwardedModuleView__forwardedMap: function(map, prefix, safelist, blocklist, $V) {
- var t2,
- t1 = prefix == null;
- if (t1)
- if (safelist == null)
- if (blocklist != null) {
- t2 = blocklist._base;
- t2 = t2.get$isEmpty(t2);
- } else
- t2 = true;
- else
- t2 = false;
- else
- t2 = false;
- if (t2)
- return map;
- if (!t1)
- map = new F.PrefixedMapView(map, prefix, $V._eval$1("PrefixedMapView<0>"));
- if (safelist != null)
- map = K.LimitedMapView$safelist(map, safelist, type$.String, $V);
- else {
- if (blocklist != null) {
- t1 = blocklist._base;
- t1 = t1.get$isNotEmpty(t1);
- } else
- t1 = false;
- if (t1)
- map = K.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
- }
- return map;
- },
- ForwardedModuleView: function ForwardedModuleView(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._forwarded_view$_inner = t0;
- _._rule = t1;
- _.variables = t2;
- _.variableNodes = t3;
- _.functions = t4;
- _.mixins = t5;
- _.$ti = t6;
- },
- UnprefixedMapView: function UnprefixedMapView(t0, t1, t2) {
- this._unprefixed_map_view$_map = t0;
- this._unprefixed_map_view$_prefix = t1;
- this.$ti = t2;
- },
- _UnprefixedKeys: function _UnprefixedKeys(t0) {
- this._unprefixed_map_view$_view = t0;
- },
- _UnprefixedKeys_iterator_closure: function _UnprefixedKeys_iterator_closure(t0) {
- this.$this = t0;
- },
- _UnprefixedKeys_iterator_closure0: function _UnprefixedKeys_iterator_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor$: function(functions, importCache, logger, nodeImporter, sourceMap) {
- var t1 = type$.String,
- t2 = type$.Uri,
- t3 = type$.Module_Callable,
- t4 = type$.AstNode,
- t5 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_String_AstNode),
- t6 = logger == null ? C.StderrLogger_false : logger;
- t5 = new R._EvaluateVisitor(importCache, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.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);
- t5._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap(functions, importCache, logger, nodeImporter, sourceMap);
- return t5;
- },
- _ArgumentResults$: function(positional, named, separator, namedNodes, positionalNodes) {
- return new R._ArgumentResults(positional, positionalNodes, named, namedNodes, separator);
- },
- Evaluator: function Evaluator(t0, t1) {
- this._visitor = t0;
- this._importer = t1;
- },
- _EvaluateVisitor: function _EvaluateVisitor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
- var _ = this;
- _._evaluate$_importCache = t0;
- _._evaluate$_nodeImporter = t1;
- _._builtInFunctions = t2;
- _._builtInModules = t3;
- _._modules = t4;
- _._moduleNodes = t5;
- _._evaluate$_logger = t6;
- _._sourceMap = t7;
- _._evaluate$_environment = t8;
- _._declarationName = _._evaluate$_parent = _._mediaQueries = _._styleRule = null;
- _._member = "root stylesheet";
- _._importSpan = _._callableNode = null;
- _._inKeyframes = _._atRootExcludingStyleRule = _._inUnknownAtRule = _._inFunction = false;
- _._evaluate$_includedFiles = t9;
- _._activeModules = t10;
- _._stack = t11;
- _._extender = _._outOfOrderImports = _._endOfImports = _._root = _._stylesheet = _._importer = null;
- _._configuration = t12;
- },
- _EvaluateVisitor_closure: function _EvaluateVisitor_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure0: function _EvaluateVisitor_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure1: function _EvaluateVisitor_closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure2: function _EvaluateVisitor_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure3: function _EvaluateVisitor_closure3(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure4: function _EvaluateVisitor_closure4(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure5: function _EvaluateVisitor_closure5(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure6: function _EvaluateVisitor_closure6(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure3: function _EvaluateVisitor__closure3(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure7: function _EvaluateVisitor_closure7(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure1: function _EvaluateVisitor__closure1() {
- },
- _EvaluateVisitor__closure2: function _EvaluateVisitor__closure2() {
- },
- _EvaluateVisitor_closure8: function _EvaluateVisitor_closure8(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure: function _EvaluateVisitor__closure(t0, t1) {
- this.values = t0;
- this.span = t1;
- },
- _EvaluateVisitor__closure0: function _EvaluateVisitor__closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_run_closure: function _EvaluateVisitor_run_closure(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.importer = t2;
- },
- _EvaluateVisitor_runExpression_closure: function _EvaluateVisitor_runExpression_closure(t0, t1, t2) {
- this.$this = t0;
- this.importer = t1;
- this.expression = t2;
- },
- _EvaluateVisitor_runExpression__closure: function _EvaluateVisitor_runExpression__closure(t0, t1) {
- this.$this = t0;
- this.expression = t1;
- },
- _EvaluateVisitor_runStatement_closure: function _EvaluateVisitor_runStatement_closure(t0, t1, t2) {
- this.$this = t0;
- this.importer = t1;
- this.statement = t2;
- },
- _EvaluateVisitor_runStatement__closure: function _EvaluateVisitor_runStatement__closure(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor__withWarnCallback_closure: function _EvaluateVisitor__withWarnCallback_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__loadModule_closure: function _EvaluateVisitor__loadModule_closure(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.nodeWithSpan = t2;
- _.baseUrl = t3;
- _.namesInErrors = t4;
- _.configuration = t5;
- _.callback = t6;
- },
- _EvaluateVisitor__execute_closure: function _EvaluateVisitor__execute_closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.importer = t2;
- _.stylesheet = t3;
- _.extender = t4;
- _.configuration = t5;
- },
- _EvaluateVisitor__combineCss_closure: function _EvaluateVisitor__combineCss_closure() {
- },
- _EvaluateVisitor__combineCss_closure0: function _EvaluateVisitor__combineCss_closure0(t0) {
- this.selectors = t0;
- },
- _EvaluateVisitor__combineCss_closure1: function _EvaluateVisitor__combineCss_closure1() {
- },
- _EvaluateVisitor__extendModules_closure: function _EvaluateVisitor__extendModules_closure(t0) {
- this.originalSelectors = t0;
- },
- _EvaluateVisitor__extendModules_closure0: function _EvaluateVisitor__extendModules_closure0() {
- },
- _EvaluateVisitor__topologicalModules_visitModule: function _EvaluateVisitor__topologicalModules_visitModule(t0, t1) {
- this.seen = t0;
- this.sorted = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure: function _EvaluateVisitor_visitAtRootRule_closure(t0, t1) {
- this.$this = t0;
- this.resolved = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure0: function _EvaluateVisitor_visitAtRootRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure1: function _EvaluateVisitor_visitAtRootRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure: function _EvaluateVisitor__scopeForAtRoot_closure(t0, t1, t2) {
- this.$this = t0;
- this.newParent = t1;
- this.node = t2;
- },
- _EvaluateVisitor__scopeForAtRoot_closure0: function _EvaluateVisitor__scopeForAtRoot_closure0(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure1: function _EvaluateVisitor__scopeForAtRoot_closure1(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot__closure: function _EvaluateVisitor__scopeForAtRoot__closure(t0, t1) {
- this.innerScope = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure2: function _EvaluateVisitor__scopeForAtRoot_closure2(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure3: function _EvaluateVisitor__scopeForAtRoot_closure3() {
- },
- _EvaluateVisitor__scopeForAtRoot_closure4: function _EvaluateVisitor__scopeForAtRoot_closure4(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor_visitContentRule_closure: function _EvaluateVisitor_visitContentRule_closure(t0, t1) {
- this.$this = t0;
- this.content = t1;
- },
- _EvaluateVisitor_visitDeclaration_closure: function _EvaluateVisitor_visitDeclaration_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitEachRule_closure: function _EvaluateVisitor_visitEachRule_closure(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure0: function _EvaluateVisitor_visitEachRule_closure0(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure1: function _EvaluateVisitor_visitEachRule_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.list = t1;
- _.setVariables = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitEachRule__closure: function _EvaluateVisitor_visitEachRule__closure(t0, t1, t2) {
- this.$this = t0;
- this.setVariables = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitEachRule___closure: function _EvaluateVisitor_visitEachRule___closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitExtendRule_closure: function _EvaluateVisitor_visitExtendRule_closure(t0, t1) {
- this.$this = t0;
- this.targetText = t1;
- },
- _EvaluateVisitor_visitAtRule_closure: function _EvaluateVisitor_visitAtRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRule__closure: function _EvaluateVisitor_visitAtRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRule_closure0: function _EvaluateVisitor_visitAtRule_closure0() {
- },
- _EvaluateVisitor_visitForRule_closure: function _EvaluateVisitor_visitForRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure0: function _EvaluateVisitor_visitForRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure1: function _EvaluateVisitor_visitForRule_closure1(t0, t1) {
- this.fromNumber = t0;
- this.toNumber = t1;
- },
- _EvaluateVisitor_visitForRule_closure2: function _EvaluateVisitor_visitForRule_closure2(t0) {
- this.toNumber = t0;
- },
- _EvaluateVisitor_visitForRule_closure3: function _EvaluateVisitor_visitForRule_closure3(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.from = t3;
- _.direction = t4;
- },
- _EvaluateVisitor_visitForRule__closure: function _EvaluateVisitor_visitForRule__closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitForwardRule_closure: function _EvaluateVisitor_visitForwardRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForwardRule_closure0: function _EvaluateVisitor_visitForwardRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__assertConfigurationIsEmpty_closure: function _EvaluateVisitor__assertConfigurationIsEmpty_closure(t0, t1, t2) {
- this.$this = t0;
- this.only = t1;
- this.nameInError = t2;
- },
- _EvaluateVisitor_visitIfRule_closure: function _EvaluateVisitor_visitIfRule_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitIfRule__closure: function _EvaluateVisitor_visitIfRule__closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport_closure: function _EvaluateVisitor__visitDynamicImport_closure(t0, t1) {
- this.$this = t0;
- this.$import = t1;
- },
- _EvaluateVisitor__visitDynamicImport__closure: function _EvaluateVisitor__visitDynamicImport__closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.importer = t2;
- _.stylesheet = t3;
- _.environment = t4;
- },
- _EvaluateVisitor_visitIncludeRule_closure: function _EvaluateVisitor_visitIncludeRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure0: function _EvaluateVisitor_visitIncludeRule_closure0(t0) {
- this.node = t0;
- },
- _EvaluateVisitor_visitIncludeRule_closure1: function _EvaluateVisitor_visitIncludeRule_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.contentCallable = t1;
- _.mixin = t2;
- _.nodeWithSpan = t3;
- },
- _EvaluateVisitor_visitIncludeRule__closure: function _EvaluateVisitor_visitIncludeRule__closure(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitIncludeRule___closure: function _EvaluateVisitor_visitIncludeRule___closure(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitIncludeRule____closure: function _EvaluateVisitor_visitIncludeRule____closure(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure: function _EvaluateVisitor_visitMediaRule_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.queries = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitMediaRule__closure: function _EvaluateVisitor_visitMediaRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule___closure: function _EvaluateVisitor_visitMediaRule___closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure0: function _EvaluateVisitor_visitMediaRule_closure0(t0) {
- this.mergedQueries = t0;
- },
- _EvaluateVisitor__visitMediaQueries_closure: function _EvaluateVisitor__visitMediaQueries_closure(t0, t1) {
- this.$this = t0;
- this.resolved = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure: function _EvaluateVisitor_visitStyleRule_closure(t0, t1) {
- this.$this = t0;
- this.selectorText = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure0: function _EvaluateVisitor_visitStyleRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure1: function _EvaluateVisitor_visitStyleRule_closure1() {
- },
- _EvaluateVisitor_visitStyleRule_closure2: function _EvaluateVisitor_visitStyleRule_closure2(t0, t1) {
- this.$this = t0;
- this.selectorText = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure3: function _EvaluateVisitor_visitStyleRule_closure3(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure4: function _EvaluateVisitor_visitStyleRule_closure4(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitStyleRule__closure: function _EvaluateVisitor_visitStyleRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure5: function _EvaluateVisitor_visitStyleRule_closure5() {
- },
- _EvaluateVisitor_visitSupportsRule_closure: function _EvaluateVisitor_visitSupportsRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule__closure: function _EvaluateVisitor_visitSupportsRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule_closure0: function _EvaluateVisitor_visitSupportsRule_closure0() {
- },
- _EvaluateVisitor_visitVariableDeclaration_closure: function _EvaluateVisitor_visitVariableDeclaration_closure(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.override = t2;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure0: function _EvaluateVisitor_visitVariableDeclaration_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure1: function _EvaluateVisitor_visitVariableDeclaration_closure1(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.value = t2;
- },
- _EvaluateVisitor_visitUseRule_closure: function _EvaluateVisitor_visitUseRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWarnRule_closure: function _EvaluateVisitor_visitWarnRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule_closure: function _EvaluateVisitor_visitWhileRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule__closure: function _EvaluateVisitor_visitWhileRule__closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitBinaryOperationExpression_closure: function _EvaluateVisitor_visitBinaryOperationExpression_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableExpression_closure: function _EvaluateVisitor_visitVariableExpression_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitListExpression_closure: function _EvaluateVisitor_visitListExpression_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitFunctionExpression_closure: function _EvaluateVisitor_visitFunctionExpression_closure(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.plainName = t2;
- },
- _EvaluateVisitor_visitFunctionExpression_closure0: function _EvaluateVisitor_visitFunctionExpression_closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor__runUserDefinedCallable_closure: function _EvaluateVisitor__runUserDefinedCallable_closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.callable = t1;
- _.evaluated = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable__closure: function _EvaluateVisitor__runUserDefinedCallable__closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable___closure: function _EvaluateVisitor__runUserDefinedCallable___closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable____closure: function _EvaluateVisitor__runUserDefinedCallable____closure() {
- },
- _EvaluateVisitor__runFunctionCallable_closure: function _EvaluateVisitor__runFunctionCallable_closure(t0, t1) {
- this.$this = t0;
- this.callable = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure: function _EvaluateVisitor__runBuiltInCallable_closure(t0, t1, t2) {
- this.overload = t0;
- this.evaluated = t1;
- this.namedSet = t2;
- },
- _EvaluateVisitor__runBuiltInCallable_closure0: function _EvaluateVisitor__runBuiltInCallable_closure0() {
- },
- _EvaluateVisitor__evaluateArguments_closure: function _EvaluateVisitor__evaluateArguments_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__evaluateArguments_closure0: function _EvaluateVisitor__evaluateArguments_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__evaluateArguments_closure1: function _EvaluateVisitor__evaluateArguments_closure1(t0, t1, t2) {
- this.named = t0;
- this.namedNodes = t1;
- this.restNodeForSpan = t2;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure: function _EvaluateVisitor__evaluateMacroArguments_closure() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure0: function _EvaluateVisitor__evaluateMacroArguments_closure0() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure1: function _EvaluateVisitor__evaluateMacroArguments_closure1(t0) {
- this.named = t0;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure2: function _EvaluateVisitor__evaluateMacroArguments_closure2() {
- },
- _EvaluateVisitor__addRestMap_closure: function _EvaluateVisitor__addRestMap_closure(t0) {
- this.T = t0;
- },
- _EvaluateVisitor__addRestMap_closure0: function _EvaluateVisitor__addRestMap_closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.values = t2;
- _.map = t3;
- _.nodeWithSpan = t4;
- },
- _EvaluateVisitor__verifyArguments_closure: function _EvaluateVisitor__verifyArguments_closure(t0, t1, t2) {
- this.$arguments = t0;
- this.positional = t1;
- this.named = t2;
- },
- _EvaluateVisitor_visitStringExpression_closure: function _EvaluateVisitor_visitStringExpression_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitCssAtRule_closure: function _EvaluateVisitor_visitCssAtRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssAtRule_closure0: function _EvaluateVisitor_visitCssAtRule_closure0() {
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure: function _EvaluateVisitor_visitCssKeyframeBlock_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure0: function _EvaluateVisitor_visitCssKeyframeBlock_closure0() {
- },
- _EvaluateVisitor_visitCssMediaRule_closure: function _EvaluateVisitor_visitCssMediaRule_closure(t0, t1, t2) {
- this.$this = t0;
- this.mergedQueries = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssMediaRule__closure: function _EvaluateVisitor_visitCssMediaRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule___closure: function _EvaluateVisitor_visitCssMediaRule___closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure0: function _EvaluateVisitor_visitCssMediaRule_closure0(t0) {
- this.mergedQueries = t0;
- },
- _EvaluateVisitor_visitCssStyleRule_closure: function _EvaluateVisitor_visitCssStyleRule_closure(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssStyleRule__closure: function _EvaluateVisitor_visitCssStyleRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssStyleRule_closure0: function _EvaluateVisitor_visitCssStyleRule_closure0() {
- },
- _EvaluateVisitor_visitCssSupportsRule_closure: function _EvaluateVisitor_visitCssSupportsRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule__closure: function _EvaluateVisitor_visitCssSupportsRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule_closure0: function _EvaluateVisitor_visitCssSupportsRule_closure0() {
- },
- _EvaluateVisitor__performInterpolation_closure: function _EvaluateVisitor__performInterpolation_closure(t0, t1) {
- this.$this = t0;
- this.warnForColor = t1;
- },
- _EvaluateVisitor__serialize_closure: function _EvaluateVisitor__serialize_closure(t0, t1) {
- this.value = t0;
- this.quote = t1;
- },
- _EvaluateVisitor__stackTrace_closure: function _EvaluateVisitor__stackTrace_closure(t0) {
- this.$this = t0;
- },
- _ImportedCssVisitor: function _ImportedCssVisitor(t0) {
- this._visitor = t0;
- },
- _ImportedCssVisitor_visitCssAtRule_closure: function _ImportedCssVisitor_visitCssAtRule_closure() {
- },
- _ImportedCssVisitor_visitCssMediaRule_closure: function _ImportedCssVisitor_visitCssMediaRule_closure(t0) {
- this.hasBeenMerged = t0;
- },
- _ImportedCssVisitor_visitCssStyleRule_closure: function _ImportedCssVisitor_visitCssStyleRule_closure() {
- },
- _ImportedCssVisitor_visitCssSupportsRule_closure: function _ImportedCssVisitor_visitCssSupportsRule_closure() {
- },
- _ArgumentResults: function _ArgumentResults(t0, t1, t2, t3, t4) {
- var _ = this;
- _.positional = t0;
- _.positionalNodes = t1;
- _.named = t2;
- _.namedNodes = t3;
- _.separator = t4;
- },
- _collectToList: function(element, soFar, $T) {
- if (soFar == null)
- soFar = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0>"));
- J.add$1$ax(soFar, element);
- return soFar;
- },
- _debounceAggregate: function(duration, collect, leading, trailing, $T, $R) {
- var t1 = {};
- t1.soFar = t1.timer = null;
- t1.emittedLatestAsLeading = t1.shouldClose = false;
- 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(), $R), $T._eval$1("@<0>")._bind$1($R)._eval$1("_StreamTransformer<1,2>"));
- },
- _debounceAggregate_closure: function _debounceAggregate_closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.collect = t1;
- _.leading = t2;
- _.duration = t3;
- _.trailing = t4;
- },
- _debounceAggregate__closure: function _debounceAggregate__closure(t0, t1, t2) {
- this._box_0 = t0;
- this.trailing = t1;
- this.sink = t2;
- },
- _debounceAggregate_closure0: function _debounceAggregate_closure0(t0, t1) {
- this._box_0 = t0;
- this.trailing = t1;
- },
- ModifiableCssComment0: function ModifiableCssComment0(t0, t1) {
- var _ = this;
- _.text = t0;
- _.span = t1;
- _._node2$_indexInParent = _._node2$_parent = null;
- _.isGroupEnd = false;
- },
- _EvaluateVisitor$1: function(functions, importCache, logger, nodeImporter, sourceMap) {
- var t6,
- t1 = type$.String,
- t2 = type$.Uri,
- t3 = type$.Module_Callable_2,
- t4 = type$.AstNode_2,
- t5 = H.setRuntimeTypeInfo([], type$.JSArray_Tuple2_String_AstNode_2);
- if (nodeImporter == null)
- t6 = importCache == null ? R.ImportCache$none(logger) : importCache;
- else
- t6 = null;
- t1 = new R._EvaluateVisitor1(t6, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.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);
- t1._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap1(functions, importCache, logger, nodeImporter, sourceMap);
- return t1;
- },
- _ArgumentResults$1: function(positional, named, separator, namedNodes, positionalNodes) {
- return new R._ArgumentResults1(positional, positionalNodes, named, namedNodes, separator);
- },
- _EvaluateVisitor1: function _EvaluateVisitor1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
- var _ = this;
- _._evaluate0$_importCache = t0;
- _._nodeImporter = t1;
- _._evaluate0$_builtInFunctions = t2;
- _._evaluate0$_builtInModules = t3;
- _._evaluate0$_modules = t4;
- _._evaluate0$_moduleNodes = t5;
- _._evaluate0$_logger = t6;
- _._evaluate0$_sourceMap = t7;
- _._evaluate0$_environment = t8;
- _._evaluate0$_declarationName = _._evaluate0$_parent = _._evaluate0$_mediaQueries = _._evaluate0$_styleRule = null;
- _._evaluate0$_member = "root stylesheet";
- _._evaluate0$_importSpan = _._evaluate0$_callableNode = null;
- _._evaluate0$_inKeyframes = _._evaluate0$_atRootExcludingStyleRule = _._evaluate0$_inUnknownAtRule = _._evaluate0$_inFunction = false;
- _._includedFiles = t9;
- _._evaluate0$_activeModules = t10;
- _._evaluate0$_stack = t11;
- _._evaluate0$_extender = _._evaluate0$_outOfOrderImports = _._evaluate0$_endOfImports = _._evaluate0$_root = _._evaluate0$_stylesheet = _._evaluate0$_importer = null;
- _._evaluate0$_configuration = t12;
- },
- _EvaluateVisitor_closure19: function _EvaluateVisitor_closure19(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure20: function _EvaluateVisitor_closure20(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure21: function _EvaluateVisitor_closure21(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure22: function _EvaluateVisitor_closure22(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure23: function _EvaluateVisitor_closure23(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure24: function _EvaluateVisitor_closure24(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure25: function _EvaluateVisitor_closure25(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure26: function _EvaluateVisitor_closure26(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure13: function _EvaluateVisitor__closure13(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure27: function _EvaluateVisitor_closure27(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure11: function _EvaluateVisitor__closure11() {
- },
- _EvaluateVisitor__closure12: function _EvaluateVisitor__closure12() {
- },
- _EvaluateVisitor_closure28: function _EvaluateVisitor_closure28(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure9: function _EvaluateVisitor__closure9(t0, t1) {
- this.values = t0;
- this.span = t1;
- },
- _EvaluateVisitor__closure10: function _EvaluateVisitor__closure10(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_run_closure1: function _EvaluateVisitor_run_closure1(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.importer = t2;
- },
- _EvaluateVisitor__withWarnCallback_closure1: function _EvaluateVisitor__withWarnCallback_closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__loadModule_closure1: function _EvaluateVisitor__loadModule_closure1(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.nodeWithSpan = t2;
- _.baseUrl = t3;
- _.namesInErrors = t4;
- _.configuration = t5;
- _.callback = t6;
- },
- _EvaluateVisitor__execute_closure1: function _EvaluateVisitor__execute_closure1(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.importer = t2;
- _.stylesheet = t3;
- _.extender = t4;
- _.configuration = t5;
- },
- _EvaluateVisitor__combineCss_closure5: function _EvaluateVisitor__combineCss_closure5() {
- },
- _EvaluateVisitor__combineCss_closure6: function _EvaluateVisitor__combineCss_closure6(t0) {
- this.selectors = t0;
- },
- _EvaluateVisitor__combineCss_closure7: function _EvaluateVisitor__combineCss_closure7() {
- },
- _EvaluateVisitor__extendModules_closure3: function _EvaluateVisitor__extendModules_closure3(t0) {
- this.originalSelectors = t0;
- },
- _EvaluateVisitor__extendModules_closure4: function _EvaluateVisitor__extendModules_closure4() {
- },
- _EvaluateVisitor__topologicalModules_visitModule1: function _EvaluateVisitor__topologicalModules_visitModule1(t0, t1) {
- this.seen = t0;
- this.sorted = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure5: function _EvaluateVisitor_visitAtRootRule_closure5(t0, t1) {
- this.$this = t0;
- this.resolved = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure6: function _EvaluateVisitor_visitAtRootRule_closure6(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure7: function _EvaluateVisitor_visitAtRootRule_closure7(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure11: function _EvaluateVisitor__scopeForAtRoot_closure11(t0, t1, t2) {
- this.$this = t0;
- this.newParent = t1;
- this.node = t2;
- },
- _EvaluateVisitor__scopeForAtRoot_closure12: function _EvaluateVisitor__scopeForAtRoot_closure12(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure13: function _EvaluateVisitor__scopeForAtRoot_closure13(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot__closure1: function _EvaluateVisitor__scopeForAtRoot__closure1(t0, t1) {
- this.innerScope = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure14: function _EvaluateVisitor__scopeForAtRoot_closure14(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure15: function _EvaluateVisitor__scopeForAtRoot_closure15() {
- },
- _EvaluateVisitor__scopeForAtRoot_closure16: function _EvaluateVisitor__scopeForAtRoot_closure16(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor_visitContentRule_closure1: function _EvaluateVisitor_visitContentRule_closure1(t0, t1) {
- this.$this = t0;
- this.content = t1;
- },
- _EvaluateVisitor_visitDeclaration_closure1: function _EvaluateVisitor_visitDeclaration_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitEachRule_closure5: function _EvaluateVisitor_visitEachRule_closure5(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure6: function _EvaluateVisitor_visitEachRule_closure6(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure7: function _EvaluateVisitor_visitEachRule_closure7(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.list = t1;
- _.setVariables = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitEachRule__closure1: function _EvaluateVisitor_visitEachRule__closure1(t0, t1, t2) {
- this.$this = t0;
- this.setVariables = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitEachRule___closure1: function _EvaluateVisitor_visitEachRule___closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitExtendRule_closure1: function _EvaluateVisitor_visitExtendRule_closure1(t0, t1) {
- this.$this = t0;
- this.targetText = t1;
- },
- _EvaluateVisitor_visitAtRule_closure3: function _EvaluateVisitor_visitAtRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRule__closure1: function _EvaluateVisitor_visitAtRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRule_closure4: function _EvaluateVisitor_visitAtRule_closure4() {
- },
- _EvaluateVisitor_visitForRule_closure9: function _EvaluateVisitor_visitForRule_closure9(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure10: function _EvaluateVisitor_visitForRule_closure10(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure11: function _EvaluateVisitor_visitForRule_closure11(t0, t1) {
- this.fromNumber = t0;
- this.toNumber = t1;
- },
- _EvaluateVisitor_visitForRule_closure12: function _EvaluateVisitor_visitForRule_closure12(t0) {
- this.toNumber = t0;
- },
- _EvaluateVisitor_visitForRule_closure13: function _EvaluateVisitor_visitForRule_closure13(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.from = t3;
- _.direction = t4;
- },
- _EvaluateVisitor_visitForRule__closure1: function _EvaluateVisitor_visitForRule__closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitForwardRule_closure3: function _EvaluateVisitor_visitForwardRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForwardRule_closure4: function _EvaluateVisitor_visitForwardRule_closure4(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__assertConfigurationIsEmpty_closure1: function _EvaluateVisitor__assertConfigurationIsEmpty_closure1(t0, t1, t2) {
- this.$this = t0;
- this.only = t1;
- this.nameInError = t2;
- },
- _EvaluateVisitor_visitIfRule_closure1: function _EvaluateVisitor_visitIfRule_closure1(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitIfRule__closure1: function _EvaluateVisitor_visitIfRule__closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport_closure1: function _EvaluateVisitor__visitDynamicImport_closure1(t0, t1) {
- this.$this = t0;
- this.$import = t1;
- },
- _EvaluateVisitor__visitDynamicImport__closure1: function _EvaluateVisitor__visitDynamicImport__closure1(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.importer = t2;
- _.stylesheet = t3;
- _.environment = t4;
- },
- _EvaluateVisitor_visitIncludeRule_closure5: function _EvaluateVisitor_visitIncludeRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure6: function _EvaluateVisitor_visitIncludeRule_closure6(t0) {
- this.node = t0;
- },
- _EvaluateVisitor_visitIncludeRule_closure7: function _EvaluateVisitor_visitIncludeRule_closure7(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.contentCallable = t1;
- _.mixin = t2;
- _.nodeWithSpan = t3;
- },
- _EvaluateVisitor_visitIncludeRule__closure1: function _EvaluateVisitor_visitIncludeRule__closure1(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitIncludeRule___closure1: function _EvaluateVisitor_visitIncludeRule___closure1(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitIncludeRule____closure1: function _EvaluateVisitor_visitIncludeRule____closure1(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure3: function _EvaluateVisitor_visitMediaRule_closure3(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.queries = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitMediaRule__closure1: function _EvaluateVisitor_visitMediaRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule___closure1: function _EvaluateVisitor_visitMediaRule___closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure4: function _EvaluateVisitor_visitMediaRule_closure4(t0) {
- this.mergedQueries = t0;
- },
- _EvaluateVisitor__visitMediaQueries_closure1: function _EvaluateVisitor__visitMediaQueries_closure1(t0, t1) {
- this.$this = t0;
- this.resolved = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure13: function _EvaluateVisitor_visitStyleRule_closure13(t0, t1) {
- this.$this = t0;
- this.selectorText = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure14: function _EvaluateVisitor_visitStyleRule_closure14(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure15: function _EvaluateVisitor_visitStyleRule_closure15() {
- },
- _EvaluateVisitor_visitStyleRule_closure16: function _EvaluateVisitor_visitStyleRule_closure16(t0, t1) {
- this.$this = t0;
- this.selectorText = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure17: function _EvaluateVisitor_visitStyleRule_closure17(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure18: function _EvaluateVisitor_visitStyleRule_closure18(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitStyleRule__closure1: function _EvaluateVisitor_visitStyleRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure19: function _EvaluateVisitor_visitStyleRule_closure19() {
- },
- _EvaluateVisitor_visitSupportsRule_closure3: function _EvaluateVisitor_visitSupportsRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule__closure1: function _EvaluateVisitor_visitSupportsRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule_closure4: function _EvaluateVisitor_visitSupportsRule_closure4() {
- },
- _EvaluateVisitor_visitVariableDeclaration_closure5: function _EvaluateVisitor_visitVariableDeclaration_closure5(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.override = t2;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure6: function _EvaluateVisitor_visitVariableDeclaration_closure6(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure7: function _EvaluateVisitor_visitVariableDeclaration_closure7(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.value = t2;
- },
- _EvaluateVisitor_visitUseRule_closure1: function _EvaluateVisitor_visitUseRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWarnRule_closure1: function _EvaluateVisitor_visitWarnRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule_closure1: function _EvaluateVisitor_visitWhileRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule__closure1: function _EvaluateVisitor_visitWhileRule__closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitBinaryOperationExpression_closure1: function _EvaluateVisitor_visitBinaryOperationExpression_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableExpression_closure1: function _EvaluateVisitor_visitVariableExpression_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitListExpression_closure1: function _EvaluateVisitor_visitListExpression_closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitFunctionExpression_closure3: function _EvaluateVisitor_visitFunctionExpression_closure3(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.plainName = t2;
- },
- _EvaluateVisitor_visitFunctionExpression_closure4: function _EvaluateVisitor_visitFunctionExpression_closure4(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor__runUserDefinedCallable_closure1: function _EvaluateVisitor__runUserDefinedCallable_closure1(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.callable = t1;
- _.evaluated = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable__closure1: function _EvaluateVisitor__runUserDefinedCallable__closure1(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable___closure1: function _EvaluateVisitor__runUserDefinedCallable___closure1(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- },
- _EvaluateVisitor__runUserDefinedCallable____closure1: function _EvaluateVisitor__runUserDefinedCallable____closure1() {
- },
- _EvaluateVisitor__runFunctionCallable_closure1: function _EvaluateVisitor__runFunctionCallable_closure1(t0, t1) {
- this.$this = t0;
- this.callable = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure3: function _EvaluateVisitor__runBuiltInCallable_closure3(t0, t1, t2) {
- this.overload = t0;
- this.evaluated = t1;
- this.namedSet = t2;
- },
- _EvaluateVisitor__runBuiltInCallable_closure4: function _EvaluateVisitor__runBuiltInCallable_closure4() {
- },
- _EvaluateVisitor__evaluateArguments_closure5: function _EvaluateVisitor__evaluateArguments_closure5(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__evaluateArguments_closure6: function _EvaluateVisitor__evaluateArguments_closure6(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__evaluateArguments_closure7: function _EvaluateVisitor__evaluateArguments_closure7(t0, t1, t2) {
- this.named = t0;
- this.namedNodes = t1;
- this.restNodeForSpan = t2;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure7: function _EvaluateVisitor__evaluateMacroArguments_closure7() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure8: function _EvaluateVisitor__evaluateMacroArguments_closure8() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure9: function _EvaluateVisitor__evaluateMacroArguments_closure9(t0) {
- this.named = t0;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure10: function _EvaluateVisitor__evaluateMacroArguments_closure10() {
- },
- _EvaluateVisitor__addRestMap_closure3: function _EvaluateVisitor__addRestMap_closure3(t0) {
- this.T = t0;
- },
- _EvaluateVisitor__addRestMap_closure4: function _EvaluateVisitor__addRestMap_closure4(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.values = t2;
- _.map = t3;
- _.nodeWithSpan = t4;
- },
- _EvaluateVisitor__verifyArguments_closure1: function _EvaluateVisitor__verifyArguments_closure1(t0, t1, t2) {
- this.$arguments = t0;
- this.positional = t1;
- this.named = t2;
- },
- _EvaluateVisitor_visitStringExpression_closure1: function _EvaluateVisitor_visitStringExpression_closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitCssAtRule_closure3: function _EvaluateVisitor_visitCssAtRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssAtRule_closure4: function _EvaluateVisitor_visitCssAtRule_closure4() {
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure3: function _EvaluateVisitor_visitCssKeyframeBlock_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure4: function _EvaluateVisitor_visitCssKeyframeBlock_closure4() {
- },
- _EvaluateVisitor_visitCssMediaRule_closure3: function _EvaluateVisitor_visitCssMediaRule_closure3(t0, t1, t2) {
- this.$this = t0;
- this.mergedQueries = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssMediaRule__closure1: function _EvaluateVisitor_visitCssMediaRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule___closure1: function _EvaluateVisitor_visitCssMediaRule___closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure4: function _EvaluateVisitor_visitCssMediaRule_closure4(t0) {
- this.mergedQueries = t0;
- },
- _EvaluateVisitor_visitCssStyleRule_closure3: function _EvaluateVisitor_visitCssStyleRule_closure3(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssStyleRule__closure1: function _EvaluateVisitor_visitCssStyleRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssStyleRule_closure4: function _EvaluateVisitor_visitCssStyleRule_closure4() {
- },
- _EvaluateVisitor_visitCssSupportsRule_closure3: function _EvaluateVisitor_visitCssSupportsRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule__closure1: function _EvaluateVisitor_visitCssSupportsRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule_closure4: function _EvaluateVisitor_visitCssSupportsRule_closure4() {
- },
- _EvaluateVisitor__performInterpolation_closure1: function _EvaluateVisitor__performInterpolation_closure1(t0, t1) {
- this.$this = t0;
- this.warnForColor = t1;
- },
- _EvaluateVisitor__serialize_closure1: function _EvaluateVisitor__serialize_closure1(t0, t1) {
- this.value = t0;
- this.quote = t1;
- },
- _EvaluateVisitor__stackTrace_closure1: function _EvaluateVisitor__stackTrace_closure1(t0) {
- this.$this = t0;
- },
- _ImportedCssVisitor1: function _ImportedCssVisitor1(t0) {
- this._evaluate0$_visitor = t0;
- },
- _ImportedCssVisitor_visitCssAtRule_closure1: function _ImportedCssVisitor_visitCssAtRule_closure1() {
- },
- _ImportedCssVisitor_visitCssMediaRule_closure1: function _ImportedCssVisitor_visitCssMediaRule_closure1(t0) {
- this.hasBeenMerged = t0;
- },
- _ImportedCssVisitor_visitCssStyleRule_closure1: function _ImportedCssVisitor_visitCssStyleRule_closure1() {
- },
- _ImportedCssVisitor_visitCssSupportsRule_closure1: function _ImportedCssVisitor_visitCssSupportsRule_closure1() {
- },
- _ArgumentResults1: function _ArgumentResults1(t0, t1, t2, t3, t4) {
- var _ = this;
- _.positional = t0;
- _.positionalNodes = t1;
- _.named = t2;
- _.namedNodes = t3;
- _.separator = t4;
- },
- ForwardedModuleView_ifNecessary0: function(inner, rule, $T) {
- var t1;
- if (rule.prefix == null)
- if (rule.shownMixinsAndFunctions == null)
- if (rule.shownVariables == null) {
- t1 = rule.hiddenMixinsAndFunctions;
- if (t1 != null) {
- t1 = t1._base;
- t1 = t1.get$isEmpty(t1);
- } else
- t1 = true;
- if (t1) {
- t1 = rule.hiddenVariables;
- if (t1 != null) {
- t1 = t1._base;
- t1 = t1.get$isEmpty(t1);
- } else
- t1 = true;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- return inner;
- else
- return R.ForwardedModuleView$0(inner, rule, $T);
- },
- ForwardedModuleView$0: function(_inner, _rule, $T) {
- var t5,
- t1 = _rule.prefix,
- t2 = _rule.shownVariables,
- t3 = _rule.hiddenVariables,
- t4 = R.ForwardedModuleView__forwardedMap0(_inner.get$variables(), t1, t2, t3, type$.Value_2);
- t2 = _inner.get$variableNodes() == null ? null : R.ForwardedModuleView__forwardedMap0(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode_2);
- t3 = _rule.shownMixinsAndFunctions;
- t5 = _rule.hiddenMixinsAndFunctions;
- return new R.ForwardedModuleView0(_inner, _rule, t4, t2, R.ForwardedModuleView__forwardedMap0(_inner.get$functions(_inner), t1, t3, t5, $T), R.ForwardedModuleView__forwardedMap0(_inner.get$mixins(), t1, t3, t5, $T), $T._eval$1("ForwardedModuleView0<0>"));
- },
- ForwardedModuleView__forwardedMap0: function(map, prefix, safelist, blocklist, $V) {
- var t2,
- t1 = prefix == null;
- if (t1)
- if (safelist == null)
- if (blocklist != null) {
- t2 = blocklist._base;
- t2 = t2.get$isEmpty(t2);
- } else
- t2 = true;
- else
- t2 = false;
- else
- t2 = false;
- if (t2)
- return map;
- if (!t1)
- map = new F.PrefixedMapView0(map, prefix, $V._eval$1("PrefixedMapView0<0>"));
- if (safelist != null)
- map = K.LimitedMapView$safelist0(map, safelist, type$.String, $V);
- else {
- if (blocklist != null) {
- t1 = blocklist._base;
- t1 = t1.get$isNotEmpty(t1);
- } else
- t1 = false;
- if (t1)
- map = K.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
- }
- return map;
- },
- ForwardedModuleView0: function ForwardedModuleView0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._forwarded_view0$_inner = t0;
- _._forwarded_view0$_rule = t1;
- _.variables = t2;
- _.variableNodes = t3;
- _.functions = t4;
- _.mixins = t5;
- _.$ti = t6;
- },
- ImportCache$none: function(logger) {
- var t1 = type$.Uri;
- return new R.ImportCache0(C.C_StderrLogger, P.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, type$.Tuple3_Importer_Uri_Uri_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Stylesheet), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ImporterResult));
- },
- ImportCache0: function ImportCache0(t0, t1, t2, t3) {
- var _ = this;
- _._import_cache$_logger = t0;
- _._import_cache$_canonicalizeCache = t1;
- _._import_cache$_importCache = t2;
- _._import_cache$_resultsCache = t3;
- },
- ImportCache_canonicalize_closure0: function ImportCache_canonicalize_closure0(t0, t1, t2) {
- this.$this = t0;
- this.url = t1;
- this.forImport = t2;
- },
- ImportCache__canonicalize_closure0: function ImportCache__canonicalize_closure0(t0, t1) {
- this.importer = t0;
- this.url = t1;
- },
- ImportCache_importCanonical_closure0: function ImportCache_importCanonical_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- },
- ImportCache_humanize_closure2: function ImportCache_humanize_closure2(t0) {
- this.canonicalUrl = t0;
- },
- ImportCache_humanize_closure3: function ImportCache_humanize_closure3() {
- },
- ImportCache_humanize_closure4: function ImportCache_humanize_closure4() {
- },
- RenderOptions: function RenderOptions() {
- },
- main0: function() {
- new Uint8Array(0);
- J.set$render$x(self.exports, P.allowInterop(B.node___render$closure()));
- J.set$renderSync$x(self.exports, P.allowInterop(B.node___renderSync$closure()));
- J.set$info$x(self.exports, "dart-sass\t1.26.8\t(Sass Compiler)\t[Dart]\ndart2js\t2.8.4\t(Dart Compiler)\t[Dart]");
- 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});
- J.set$NULL$x(self.exports, C.C_SassNull);
- J.set$TRUE$x(self.exports, C.SassBoolean_true);
- J.set$FALSE$x(self.exports, C.SassBoolean_false);
- J.set$cli_pkg_main_0_$x(self.exports, R._wrapMain(U.sass__main$closure()));
- },
- _wrapMain: function(main) {
- if (type$.Object_Function._is(main))
- return P.allowInterop(new R._wrapMain_closure(main));
- else
- return P.allowInterop(new R._wrapMain_closure0(main));
- },
- _Exports: function _Exports() {
- },
- _wrapMain_closure: function _wrapMain_closure(t0) {
- this.main = t0;
- },
- _wrapMain_closure0: function _wrapMain_closure0(t0) {
- this.main = t0;
- },
- UnprefixedMapView0: function UnprefixedMapView0(t0, t1, t2) {
- this._unprefixed_map_view0$_map = t0;
- this._unprefixed_map_view0$_prefix = t1;
- this.$ti = t2;
- },
- _UnprefixedKeys0: function _UnprefixedKeys0(t0) {
- this._unprefixed_map_view0$_view = t0;
- },
- _UnprefixedKeys_iterator_closure1: function _UnprefixedKeys_iterator_closure1(t0) {
- this.$this = t0;
- },
- _UnprefixedKeys_iterator_closure2: function _UnprefixedKeys_iterator_closure2(t0) {
- this.$this = t0;
- }
- },
- T = {Expression: function Expression() {
- }, NumberExpression: function NumberExpression(t0, t1, t2) {
- this.value = t0;
- this.unit = t1;
- this.span = t2;
- }, ParenthesizedExpression: function ParenthesizedExpression(t0, t1) {
- this.expression = t0;
- this.span = t1;
- }, SelectorExpression: function SelectorExpression(t0) {
- this.span = t0;
- }, MixinRule: function MixinRule(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.hasContent = t0;
- _.name = t1;
- _.$arguments = t2;
- _.span = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- UseRule$: function(url, namespace, span, configuration) {
- var t1 = new T.UseRule(url, namespace, configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
- t1.UseRule$4$configuration(url, namespace, span, configuration);
- return t1;
- },
- UseRule: function UseRule(t0, t1, t2, t3) {
- var _ = this;
- _.url = t0;
- _.namespace = t1;
- _.configuration = t2;
- _.span = t3;
- },
- Selector: function Selector() {
- },
- EmptyExtender: function EmptyExtender() {
- },
- _prependParent: function(compound) {
- var t2, t3, _i, _null = null,
- t1 = compound.components,
- first = C.JSArray_methods.get$first(t1);
- if (first instanceof N.UniversalSelector)
- return _null;
- if (first instanceof F.TypeSelector) {
- t2 = first.name;
- if (t2.namespace != null)
- return _null;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
- t3.push(new M.ParentSelector(t2.name));
- for (t1 = H.SubListIterable$(t1, 1, _null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
- t3.push(t1.__internal$_current);
- return X.CompoundSelector$(t3);
- } else {
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
- t2.push(new M.ParentSelector(_null));
- for (t3 = t1.length, _i = 0; _i < t3; ++_i)
- t2.push(t1[_i]);
- return X.CompoundSelector$(t2);
- }
- },
- _function0: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:selector");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- closure13: function closure13() {
- },
- _closure1: function _closure1() {
- },
- _closure2: function _closure2() {
- },
- closure12: function closure12() {
- },
- _closure: function _closure() {
- },
- _closure0: function _closure0() {
- },
- __closure: function __closure(t0) {
- this.parent = t0;
- },
- closure11: function closure11() {
- },
- closure10: function closure10() {
- },
- closure9: function closure9() {
- },
- closure16: function closure16() {
- },
- closure15: function closure15() {
- },
- _closure3: function _closure3() {
- },
- closure14: function closure14() {
- },
- TrackingLogger: function TrackingLogger(t0) {
- this._tracking$_logger = t0;
- this._emittedDebug = this._emittedWarning = false;
- },
- SelectorParser: function SelectorParser(t0, t1, t2, t3) {
- var _ = this;
- _._allowParent = t0;
- _._allowPlaceholder = t1;
- _.scanner = t2;
- _.logger = t3;
- },
- SelectorParser_parse_closure: function SelectorParser_parse_closure(t0) {
- this.$this = t0;
- },
- SelectorParser_parseCompoundSelector_closure: function SelectorParser_parseCompoundSelector_closure(t0) {
- this.$this = t0;
- },
- SassNumber$: function(value, unit) {
- var t1 = unit == null ? null : H.setRuntimeTypeInfo([unit], type$.JSArray_String);
- t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
- return new T.SassNumber(value, t1, C.List_empty, null);
- },
- SassNumber$withUnits: function(value, denominatorUnits, numeratorUnits) {
- var t1 = numeratorUnits == null ? C.List_empty : P.List_List$unmodifiable(numeratorUnits, type$.String);
- return new T.SassNumber(value, t1, denominatorUnits == null ? C.List_empty : P.List_List$unmodifiable(denominatorUnits, type$.String), null);
- },
- SassNumber: function SassNumber(t0, t1, t2, t3) {
- var _ = this;
- _.value = t0;
- _.numeratorUnits = t1;
- _.denominatorUnits = t2;
- _.asSlash = t3;
- },
- SassNumber_valueInUnits_closure: function SassNumber_valueInUnits_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.newNumerator = t2;
- },
- SassNumber_valueInUnits_closure0: function SassNumber_valueInUnits_closure0(t0, t1, t2) {
- this.$this = t0;
- this.newNumerators = t1;
- this.newDenominators = t2;
- },
- SassNumber_valueInUnits_closure1: function SassNumber_valueInUnits_closure1(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.newDenominator = t2;
- },
- SassNumber_valueInUnits_closure2: function SassNumber_valueInUnits_closure2(t0, t1, t2) {
- this.$this = t0;
- this.newNumerators = t1;
- this.newDenominators = t2;
- },
- SassNumber_modulo_closure: function SassNumber_modulo_closure() {
- },
- SassNumber_plus_closure: function SassNumber_plus_closure() {
- },
- SassNumber_minus_closure: function SassNumber_minus_closure() {
- },
- SassNumber__multiplyUnits_closure: function SassNumber__multiplyUnits_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.numerator = t2;
- },
- SassNumber__multiplyUnits_closure0: function SassNumber__multiplyUnits_closure0(t0, t1) {
- this.newNumerators = t0;
- this.numerator = t1;
- },
- SassNumber__multiplyUnits_closure1: function SassNumber__multiplyUnits_closure1(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.numerator = t2;
- },
- SassNumber__multiplyUnits_closure2: function SassNumber__multiplyUnits_closure2(t0, t1) {
- this.newNumerators = t0;
- this.numerator = t1;
- },
- SassNumber__areAnyConvertible_closure: function SassNumber__areAnyConvertible_closure(t0, t1) {
- this.$this = t0;
- this.units2 = t1;
- },
- SassNumber__canonicalMultiplier_closure: function SassNumber__canonicalMultiplier_closure() {
- },
- SingleMapping_SingleMapping$fromEntries: function(entries) {
- var lines, t2, t3, urls, t4, files, t5, t6, targetEntries, lineNum, _i, sourceEntry, sourceUrl, t7, urlId, _null = null,
- t1 = type$.dynamic,
- sourceEntries = P.List_List$from(entries, true, t1);
- C.JSArray_methods.sort$0(sourceEntries);
- lines = H.setRuntimeTypeInfo([], type$.JSArray_TargetLineEntry);
- t2 = type$.String;
- t3 = type$.int;
- urls = P.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
- t4 = type$.SourceFile;
- files = P.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
- for (t5 = sourceEntries.length, t6 = type$.JSArray_TargetEntry, targetEntries = _null, lineNum = targetEntries, _i = 0; _i < sourceEntries.length; sourceEntries.length === t5 || (0, H.throwConcurrentModificationError)(sourceEntries), ++_i) {
- sourceEntry = sourceEntries[_i];
- if (lineNum == null || sourceEntry.get$target().get$line() > lineNum) {
- lineNum = sourceEntry.get$target().get$line();
- targetEntries = H.setRuntimeTypeInfo([], t6);
- lines.push(new T.TargetLineEntry(lineNum, targetEntries));
- }
- if (sourceEntry.get$source() == null)
- targetEntries.push(new T.TargetEntry(sourceEntry.get$target().get$column(), _null, _null, _null, _null));
- else {
- sourceUrl = sourceEntry.get$source().get$sourceUrl();
- t7 = sourceUrl == null ? "" : sourceUrl.toString$0(0);
- urlId = urls.putIfAbsent$2(t7, new T.SingleMapping_SingleMapping$fromEntries_closure(urls));
- if (sourceEntry.get$source() instanceof Y.FileLocation)
- files.putIfAbsent$2(urlId, new T.SingleMapping_SingleMapping$fromEntries_closure0(sourceEntry));
- sourceEntry.get$identifierName();
- targetEntries.push(new T.TargetEntry(sourceEntry.get$target().get$column(), urlId, sourceEntry.get$source().get$line(), sourceEntry.get$source().get$column(), _null));
- }
- }
- t5 = urls.get$values();
- t4 = H.MappedIterable_MappedIterable(t5, new T.SingleMapping_SingleMapping$fromEntries_closure1(files), H._instanceType(t5)._eval$1("Iterable.E"), t4);
- t4 = P.List_List$from(t4, true, H._instanceType(t4)._eval$1("Iterable.E"));
- t5 = urls.get$keys();
- t5 = P.List_List$from(t5, true, H._instanceType(t5)._eval$1("Iterable.E"));
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(t2, t3).get$keys();
- 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));
- },
- Mapping: function Mapping() {
- },
- SingleMapping: function SingleMapping(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.urls = t0;
- _.names = t1;
- _.files = t2;
- _.lines = t3;
- _.targetUrl = t4;
- _.sourceRoot = null;
- _.extensions = t5;
- },
- SingleMapping_SingleMapping$fromEntries_closure: function SingleMapping_SingleMapping$fromEntries_closure(t0) {
- this.urls = t0;
- },
- SingleMapping_SingleMapping$fromEntries_closure0: function SingleMapping_SingleMapping$fromEntries_closure0(t0) {
- this.sourceEntry = t0;
- },
- SingleMapping_SingleMapping$fromEntries_closure1: function SingleMapping_SingleMapping$fromEntries_closure1(t0) {
- this.files = t0;
- },
- SingleMapping_toJson_closure: function SingleMapping_toJson_closure() {
- },
- SingleMapping_toJson_closure0: function SingleMapping_toJson_closure0(t0) {
- this.result = t0;
- },
- TargetLineEntry: function TargetLineEntry(t0, t1) {
- this.line = t0;
- this.entries = t1;
- },
- TargetEntry: function TargetEntry(t0, t1, t2, t3, t4) {
- var _ = this;
- _.column = t0;
- _.sourceUrlId = t1;
- _.sourceLine = t2;
- _.sourceColumn = t3;
- _.sourceNameId = t4;
- },
- LazyTrace: function LazyTrace(t0) {
- this._thunk = t0;
- this._lazy_trace$_inner = null;
- },
- LazyTrace_terse_closure: function LazyTrace_terse_closure(t0) {
- this.$this = t0;
- },
- EmptyExtender0: function EmptyExtender0() {
- },
- Expression0: function Expression0() {
- },
- MixinRule0: function MixinRule0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.hasContent = t0;
- _.name = t1;
- _.$arguments = t2;
- _.span = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- NumberExpression0: function NumberExpression0(t0, t1, t2) {
- this.value = t0;
- this.unit = t1;
- this.span = t2;
- },
- _parseNumber: function(value, unit) {
- var t1, invalidUnit, operands, numerator, denominator, numeratorUnits, denominatorUnits;
- if (unit == null || unit.length === 0)
- return new T.SassNumber0(value, C.List_empty, C.List_empty, null);
- if (!J.contains$1$asx(unit, "*") && !C.JSString_methods.contains$1(unit, "/")) {
- t1 = H.setRuntimeTypeInfo([unit], type$.JSArray_String);
- t1 = P.List_List$unmodifiable(t1, type$.String);
- return new T.SassNumber0(value, t1, C.List_empty, null);
- }
- invalidUnit = new P.ArgumentError(true, unit, "unit", "is invalid.");
- operands = unit.split("/");
- t1 = operands.length;
- if (t1 > 2)
- throw H.wrapException(invalidUnit);
- numerator = operands[0];
- denominator = t1 === 1 ? null : operands[1];
- t1 = type$.JSArray_String;
- numeratorUnits = numerator.length === 0 ? H.setRuntimeTypeInfo([], t1) : H.setRuntimeTypeInfo(numerator.split("*"), t1);
- if (C.JSArray_methods.any$1(numeratorUnits, new T._parseNumber_closure()))
- throw H.wrapException(invalidUnit);
- denominatorUnits = denominator == null ? H.setRuntimeTypeInfo([], t1) : H.setRuntimeTypeInfo(denominator.split("*"), t1);
- if (C.JSArray_methods.any$1(denominatorUnits, new T._parseNumber_closure0()))
- throw H.wrapException(invalidUnit);
- return T.SassNumber$withUnits0(value, denominatorUnits, numeratorUnits);
- },
- _NodeSassNumber: function _NodeSassNumber() {
- },
- closure218: function closure218() {
- },
- closure219: function closure219() {
- },
- closure220: function closure220() {
- },
- closure221: function closure221() {
- },
- closure222: function closure222() {
- },
- closure223: function closure223() {
- },
- _parseNumber_closure: function _parseNumber_closure() {
- },
- _parseNumber_closure0: function _parseNumber_closure0() {
- },
- SassNumber$0: function(value, unit) {
- var t1 = unit == null ? null : H.setRuntimeTypeInfo([unit], type$.JSArray_String);
- t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
- return new T.SassNumber0(value, t1, C.List_empty, null);
- },
- SassNumber$withUnits0: function(value, denominatorUnits, numeratorUnits) {
- var t1 = numeratorUnits == null ? C.List_empty : P.List_List$unmodifiable(numeratorUnits, type$.String);
- return new T.SassNumber0(value, t1, denominatorUnits == null ? C.List_empty : P.List_List$unmodifiable(denominatorUnits, type$.String), null);
- },
- SassNumber0: function SassNumber0(t0, t1, t2, t3) {
- var _ = this;
- _.value = t0;
- _.numeratorUnits = t1;
- _.denominatorUnits = t2;
- _.asSlash = t3;
- },
- SassNumber_valueInUnits_closure3: function SassNumber_valueInUnits_closure3(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.newNumerator = t2;
- },
- SassNumber_valueInUnits_closure4: function SassNumber_valueInUnits_closure4(t0, t1, t2) {
- this.$this = t0;
- this.newNumerators = t1;
- this.newDenominators = t2;
- },
- SassNumber_valueInUnits_closure5: function SassNumber_valueInUnits_closure5(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.newDenominator = t2;
- },
- SassNumber_valueInUnits_closure6: function SassNumber_valueInUnits_closure6(t0, t1, t2) {
- this.$this = t0;
- this.newNumerators = t1;
- this.newDenominators = t2;
- },
- SassNumber_modulo_closure0: function SassNumber_modulo_closure0() {
- },
- SassNumber_plus_closure0: function SassNumber_plus_closure0() {
- },
- SassNumber_minus_closure0: function SassNumber_minus_closure0() {
- },
- SassNumber__multiplyUnits_closure3: function SassNumber__multiplyUnits_closure3(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.numerator = t2;
- },
- SassNumber__multiplyUnits_closure4: function SassNumber__multiplyUnits_closure4(t0, t1) {
- this.newNumerators = t0;
- this.numerator = t1;
- },
- SassNumber__multiplyUnits_closure5: function SassNumber__multiplyUnits_closure5(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.numerator = t2;
- },
- SassNumber__multiplyUnits_closure6: function SassNumber__multiplyUnits_closure6(t0, t1) {
- this.newNumerators = t0;
- this.numerator = t1;
- },
- SassNumber__areAnyConvertible_closure0: function SassNumber__areAnyConvertible_closure0(t0, t1) {
- this.$this = t0;
- this.units2 = t1;
- },
- SassNumber__canonicalMultiplier_closure0: function SassNumber__canonicalMultiplier_closure0() {
- },
- ParenthesizedExpression0: function ParenthesizedExpression0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- Selector0: function Selector0() {
- },
- SelectorExpression0: function SelectorExpression0(t0) {
- this.span = t0;
- },
- _prependParent0: function(compound) {
- var t2, t3, _i, _null = null,
- t1 = compound.components,
- first = C.JSArray_methods.get$first(t1);
- if (first instanceof N.UniversalSelector0)
- return _null;
- if (first instanceof F.TypeSelector0) {
- t2 = first.name;
- if (t2.namespace != null)
- return _null;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
- t3.push(new M.ParentSelector0(t2.name));
- for (t1 = H.SubListIterable$(t1, 1, _null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
- t3.push(t1.__internal$_current);
- return X.CompoundSelector$0(t3);
- } else {
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
- t2.push(new M.ParentSelector0(_null));
- for (t3 = t1.length, _i = 0; _i < t3; ++_i)
- t2.push(t1[_i]);
- return X.CompoundSelector$0(t2);
- }
- },
- _function7: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:selector");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- closure121: function closure121() {
- },
- _closure16: function _closure16() {
- },
- _closure17: function _closure17() {
- },
- closure120: function closure120() {
- },
- _closure14: function _closure14() {
- },
- _closure15: function _closure15() {
- },
- __closure0: function __closure0(t0) {
- this.parent = t0;
- },
- closure119: function closure119() {
- },
- closure118: function closure118() {
- },
- closure117: function closure117() {
- },
- closure124: function closure124() {
- },
- closure123: function closure123() {
- },
- _closure18: function _closure18() {
- },
- closure122: function closure122() {
- },
- SelectorParser0: function SelectorParser0(t0, t1, t2, t3) {
- var _ = this;
- _._selector$_allowParent = t0;
- _._selector$_allowPlaceholder = t1;
- _.scanner = t2;
- _.logger = t3;
- },
- SelectorParser_parse_closure0: function SelectorParser_parse_closure0(t0) {
- this.$this = t0;
- },
- SelectorParser_parseCompoundSelector_closure0: function SelectorParser_parseCompoundSelector_closure0(t0) {
- this.$this = t0;
- },
- UseRule$0: function(url, namespace, span, configuration) {
- var t1 = new T.UseRule0(url, namespace, configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
- t1.UseRule$4$configuration0(url, namespace, span, configuration);
- return t1;
- },
- UseRule0: function UseRule0(t0, t1, t2, t3) {
- var _ = this;
- _.url = t0;
- _.namespace = t1;
- _.configuration = t2;
- _.span = t3;
- },
- isWhitespace: function(character) {
- return character === 32 || character === 9 || T.isNewline(character);
- },
- isNewline: function(character) {
- return character === 10 || character === 13 || character === 12;
- },
- isAlphabetic0: function(character) {
- var t1;
- if (!(character >= 97 && character <= 122))
- t1 = character >= 65 && character <= 90;
- else
- t1 = true;
- return t1;
- },
- isDigit: function(character) {
- return character != null && character >= 48 && character <= 57;
- },
- isHex: function(character) {
- if (character == null)
- return false;
- if (T.isDigit(character))
- return true;
- if (character >= 97 && character <= 102)
- return true;
- if (character >= 65 && character <= 70)
- return true;
- return false;
- },
- isPrivate: function(identifier) {
- var first = C.JSString_methods._codeUnitAt$1(identifier, 0);
- return first === 45 || first === 95;
- },
- asHex: function(character) {
- if (character <= 57)
- return character - 48;
- if (character <= 70)
- return 10 + character - 65;
- return 10 + character - 97;
- },
- hexCharFor: function(number) {
- return number < 10 ? 48 + number : 87 + number;
- },
- opposite: function(character) {
- switch (character) {
- case 40:
- return 41;
- case 123:
- return 125;
- case 91:
- return 93;
- default:
- return null;
- }
- },
- characterEqualsIgnoreCase: function(character1, character2) {
- var upperCase1;
- if (character1 == character2)
- return true;
- if ((character1 ^ character2) >>> 0 !== 32)
- return false;
- upperCase1 = (character1 & 4294967263) >>> 0;
- return upperCase1 >= 65 && upperCase1 <= 90;
- },
- fuzzyEquals: function(number1, number2) {
- return Math.abs(number1 - number2) < $.$get$epsilon();
- },
- fuzzyLessThan: function(number1, number2) {
- return number1 < number2 && !(Math.abs(number1 - number2) < $.$get$epsilon());
- },
- fuzzyLessThanOrEquals: function(number1, number2) {
- return number1 < number2 || Math.abs(number1 - number2) < $.$get$epsilon();
- },
- fuzzyGreaterThan: function(number1, number2) {
- return number1 > number2 && !(Math.abs(number1 - number2) < $.$get$epsilon());
- },
- fuzzyGreaterThanOrEquals: function(number1, number2) {
- return number1 > number2 || Math.abs(number1 - number2) < $.$get$epsilon();
- },
- fuzzyIsInt: function(number) {
- if (H._isInt(number))
- return true;
- return Math.abs(C.JSNumber_methods.$mod(Math.abs(number - 0.5), 1) - 0.5) < $.$get$epsilon();
- },
- fuzzyRound: function(number) {
- var t1;
- if (number > 0) {
- t1 = C.JSNumber_methods.$mod(number, 1);
- return t1 < 0.5 && !(Math.abs(t1 - 0.5) < $.$get$epsilon()) ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
- } else {
- t1 = C.JSNumber_methods.$mod(number, 1);
- return t1 < 0.5 || Math.abs(t1 - 0.5) < $.$get$epsilon() ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
- }
- },
- fuzzyCheckRange: function(number, min, max) {
- var t1 = $.$get$epsilon();
- if (Math.abs(number - min) < t1)
- return min;
- if (Math.abs(number - max) < t1)
- return max;
- if (number > min && number < max)
- return number;
- return null;
- },
- fuzzyAssertRange: function(number, min, max, $name) {
- var result = T.fuzzyCheckRange(number, min, max);
- if (result != null)
- return result;
- throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
- },
- isWhitespace0: function(character) {
- return character === 32 || character === 9 || T.isNewline0(character);
- },
- isNewline0: function(character) {
- return character === 10 || character === 13 || character === 12;
- },
- isAlphabetic1: function(character) {
- var t1;
- if (!(character >= 97 && character <= 122))
- t1 = character >= 65 && character <= 90;
- else
- t1 = true;
- return t1;
- },
- isDigit0: function(character) {
- return character != null && character >= 48 && character <= 57;
- },
- isHex0: function(character) {
- if (character == null)
- return false;
- if (T.isDigit0(character))
- return true;
- if (character >= 97 && character <= 102)
- return true;
- if (character >= 65 && character <= 70)
- return true;
- return false;
- },
- isPrivate0: function(identifier) {
- var first = C.JSString_methods._codeUnitAt$1(identifier, 0);
- return first === 45 || first === 95;
- },
- asHex0: function(character) {
- if (character <= 57)
- return character - 48;
- if (character <= 70)
- return 10 + character - 65;
- return 10 + character - 97;
- },
- hexCharFor0: function(number) {
- return number < 10 ? 48 + number : 87 + number;
- },
- opposite0: function(character) {
- switch (character) {
- case 40:
- return 41;
- case 123:
- return 125;
- case 91:
- return 93;
- default:
- return null;
- }
- },
- characterEqualsIgnoreCase0: function(character1, character2) {
- var upperCase1;
- if (character1 == character2)
- return true;
- if ((character1 ^ character2) >>> 0 !== 32)
- return false;
- upperCase1 = (character1 & 4294967263) >>> 0;
- return upperCase1 >= 65 && upperCase1 <= 90;
- },
- fuzzyEquals0: function(number1, number2) {
- return Math.abs(number1 - number2) < $.$get$epsilon0();
- },
- fuzzyLessThan0: function(number1, number2) {
- return number1 < number2 && !(Math.abs(number1 - number2) < $.$get$epsilon0());
- },
- fuzzyLessThanOrEquals0: function(number1, number2) {
- return number1 < number2 || Math.abs(number1 - number2) < $.$get$epsilon0();
- },
- fuzzyGreaterThan0: function(number1, number2) {
- return number1 > number2 && !(Math.abs(number1 - number2) < $.$get$epsilon0());
- },
- fuzzyGreaterThanOrEquals0: function(number1, number2) {
- return number1 > number2 || Math.abs(number1 - number2) < $.$get$epsilon0();
- },
- fuzzyIsInt0: function(number) {
- if (H._isInt(number))
- return true;
- return Math.abs(C.JSNumber_methods.$mod(Math.abs(number - 0.5), 1) - 0.5) < $.$get$epsilon0();
- },
- fuzzyRound0: function(number) {
- var t1;
- if (number > 0) {
- t1 = C.JSNumber_methods.$mod(number, 1);
- return t1 < 0.5 && !(Math.abs(t1 - 0.5) < $.$get$epsilon0()) ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
- } else {
- t1 = C.JSNumber_methods.$mod(number, 1);
- return t1 < 0.5 || Math.abs(t1 - 0.5) < $.$get$epsilon0() ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
- }
- },
- fuzzyCheckRange0: function(number, min, max) {
- var t1 = $.$get$epsilon0();
- if (Math.abs(number - min) < t1)
- return min;
- if (Math.abs(number - max) < t1)
- return max;
- if (number > min && number < max)
- return number;
- return null;
- },
- fuzzyAssertRange0: function(number, min, max, $name) {
- var result = T.fuzzyCheckRange0(number, min, max);
- if (result != null)
- return result;
- throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
- }
- },
- D = {ListExpression: function ListExpression(t0, t1, t2, t3) {
- var _ = this;
- _.contents = t0;
- _.separator = t1;
- _.hasBrackets = t2;
- _.span = t3;
- }, ListExpression_toString_closure: function ListExpression_toString_closure(t0) {
- this.$this = t0;
- }, StringExpression: function StringExpression(t0, t1) {
- this.text = t0;
- this.hasQuotes = t1;
- }, ErrorRule: function ErrorRule(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- SelectorList$: function(components) {
- var t1 = P.List_List$unmodifiable(components, type$.ComplexSelector);
- if (t1.length === 0)
- H.throwExpression(P.ArgumentError$("components may not be empty."));
- return new D.SelectorList(t1);
- },
- SelectorList_SelectorList$parse: function(contents, allowParent, allowPlaceholder, logger) {
- var t1 = S.SpanScanner$(contents, null);
- return new T.SelectorParser(allowParent, allowPlaceholder, t1, logger == null ? C.StderrLogger_false : logger).parse$0();
- },
- SelectorList: function SelectorList(t0) {
- this.components = t0;
- },
- SelectorList_isInvisible_closure: function SelectorList_isInvisible_closure() {
- },
- SelectorList_asSassList_closure: function SelectorList_asSassList_closure() {
- },
- SelectorList_asSassList__closure: function SelectorList_asSassList__closure() {
- },
- SelectorList_unify_closure: function SelectorList_unify_closure(t0) {
- this.other = t0;
- },
- SelectorList_unify__closure: function SelectorList_unify__closure(t0) {
- this.complex1 = t0;
- },
- SelectorList_unify___closure: function SelectorList_unify___closure() {
- },
- SelectorList_resolveParentSelectors_closure: function SelectorList_resolveParentSelectors_closure(t0, t1, t2) {
- this.$this = t0;
- this.implicitParent = t1;
- this.parent = t2;
- },
- SelectorList_resolveParentSelectors__closure: function SelectorList_resolveParentSelectors__closure(t0) {
- this.complex = t0;
- },
- SelectorList_resolveParentSelectors__closure0: function SelectorList_resolveParentSelectors__closure0(t0) {
- this._box_0 = t0;
- },
- SelectorList__complexContainsParentSelector_closure: function SelectorList__complexContainsParentSelector_closure() {
- },
- SelectorList__complexContainsParentSelector__closure: function SelectorList__complexContainsParentSelector__closure() {
- },
- SelectorList__resolveParentSelectorsCompound_closure: function SelectorList__resolveParentSelectorsCompound_closure() {
- },
- SelectorList__resolveParentSelectorsCompound_closure0: function SelectorList__resolveParentSelectorsCompound_closure0(t0) {
- this.parent = t0;
- },
- SelectorList__resolveParentSelectorsCompound_closure1: function SelectorList__resolveParentSelectorsCompound_closure1(t0, t1) {
- this.compound = t0;
- this.resolvedMembers = t1;
- },
- PseudoSelector$: function($name, argument, element, selector) {
- var t1 = !element,
- t2 = t1 && !D.PseudoSelector__isFakePseudoElement($name);
- return new D.PseudoSelector($name, B.unvendor($name), t2, t1, argument, selector);
- },
- PseudoSelector__isFakePseudoElement: function($name) {
- switch (C.JSString_methods._codeUnitAt$1($name, 0)) {
- case 97:
- case 65:
- return B.equalsIgnoreCase($name, "after");
- case 98:
- case 66:
- return B.equalsIgnoreCase($name, "before");
- case 102:
- case 70:
- return B.equalsIgnoreCase($name, "first-line") || B.equalsIgnoreCase($name, "first-letter");
- default:
- return false;
- }
- },
- PseudoSelector: function PseudoSelector(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.normalizedName = t1;
- _.isClass = t2;
- _.isSyntacticClass = t3;
- _.argument = t4;
- _.selector = t5;
- _._pseudo$_maxSpecificity = _._pseudo$_minSpecificity = null;
- },
- QualifiedName: function QualifiedName(t0, t1) {
- this.name = t0;
- this.namespace = t1;
- },
- Callable: function Callable() {
- },
- compileStylesheet: function(options, graph, source, destination, ifModified) {
- return D.compileStylesheet$body(options, graph, source, destination, ifModified);
- },
- compileStylesheet$body: function(options, graph, source, destination, ifModified) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $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;
- var $async$compileStylesheet = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- importer = new F.FilesystemImporter(D.absolute("."));
- if (ifModified)
- try {
- if (source != null && destination != null && !graph.modifiedSince$3($.$get$context().toUri$1(source), B.modificationTime(destination), importer)) {
- // goto return
- $async$goto = 1;
- break;
- }
- } catch (exception) {
- if (!(H.unwrapException(exception) instanceof B.FileSystemException))
- throw exception;
- }
- syntax = null;
- if (H._asBoolNullable(options._ifParsed$1("indented")) === true)
- syntax = C.Syntax_Sass;
- else if (source != null)
- syntax = M.Syntax_forPath(source);
- else
- syntax = C.Syntax_SCSS;
- result = null;
- $async$handler = 4;
- t1 = options._options;
- $async$goto = H._asBoolNullable(t1.$index(0, "async")) ? 7 : 9;
- break;
- case 7:
- // then
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_AsyncImporter);
- t3 = type$.List_String._as(t1.$index(0, "load-path"));
- t4 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
- t3 = O.AsyncImportCache__toImporters(t2, t3, null);
- t2 = t4 == null ? C.StderrLogger_false : t4;
- t4 = type$.Uri;
- importCache = new O.AsyncImportCache(t3, t2, P.LinkedHashMap_LinkedHashMap$_empty(type$.Tuple2_Uri_bool, type$.Tuple3_AsyncImporter_Uri_Uri_2), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.Stylesheet_2), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.ImporterResult_2));
- $async$goto = source == null ? 10 : 12;
- break;
- case 10:
- // then
- $async$goto = 13;
- return P._asyncAwait(B.readStdin(), $async$compileStylesheet);
- case 13:
- // returning from await.
- t2 = $async$result;
- t3 = syntax;
- t4 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
- t5 = D.absolute(".");
- t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
- t7 = options.get$emitSourceMap();
- $async$goto = 14;
- return P._asyncAwait(X.compileStringAsync(t2, H._asBoolNullable(t1.$index(0, "charset")), importCache, new F.FilesystemImporter(t5), t4, t7, t6, t3), $async$compileStylesheet);
- case 14:
- // returning from await.
- result0 = $async$result;
- // goto join
- $async$goto = 11;
- break;
- case 12:
- // else
- t2 = syntax;
- t3 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
- t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
- t5 = options.get$emitSourceMap();
- $async$goto = 15;
- return P._asyncAwait(X.compileAsync(source, H._asBoolNullable(t1.$index(0, "charset")), importCache, t3, t5, t4, t2), $async$compileStylesheet);
- case 15:
- // returning from await.
- result0 = $async$result;
- case 11:
- // join
- result = result0;
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- $async$goto = source == null ? 16 : 18;
- break;
- case 16:
- // then
- $async$goto = 19;
- return P._asyncAwait(B.readStdin(), $async$compileStylesheet);
- case 19:
- // returning from await.
- t2 = $async$result;
- t3 = syntax;
- t4 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
- t5 = D.absolute(".");
- t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
- t7 = options.get$emitSourceMap();
- t1 = H._asBoolNullable(t1.$index(0, "charset"));
- stylesheet = V.Stylesheet_Stylesheet$parse(t2, t3 == null ? C.Syntax_SCSS : t3, t4, null);
- result0 = U._compileStylesheet(stylesheet, t4, graph.importCache, null, new F.FilesystemImporter(t5), null, t6, true, null, null, t7, t1);
- // goto join
- $async$goto = 17;
- break;
- case 18:
- // else
- t2 = syntax;
- t3 = H._asBoolNullable(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
- importCache = graph.importCache;
- t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
- t5 = options.get$emitSourceMap();
- t1 = H._asBoolNullable(t1.$index(0, "charset"));
- t6 = t2 == null || t2 === M.Syntax_forPath(source);
- if (t6) {
- t2 = D.absolute(".");
- t6 = $.$get$context();
- stylesheet = importCache.importCanonical$3(new F.FilesystemImporter(t2), t6.toUri$1(t6.canonicalize$1(source)), t6.toUri$1(source));
- } else {
- t6 = B.readFile(source);
- if (t2 == null)
- t2 = M.Syntax_forPath(source);
- stylesheet = V.Stylesheet_Stylesheet$parse(t6, t2, t3, $.$get$context().toUri$1(source));
- }
- result0 = U._compileStylesheet(stylesheet, t3, importCache, null, new F.FilesystemImporter(D.absolute(".")), null, t4, true, null, null, t5, t1);
- case 17:
- // join
- result = result0;
- case 8:
- // join
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (t1 instanceof E.SassException) {
- error = t1;
- if (options.get$emitErrorCss())
- if (destination == null)
- P.print(error.toCssString$0());
- else {
- B.ensureDir($.$get$context().dirname$1(destination));
- B.writeFile(destination, error.toCssString$0() + "\n");
- }
- throw $async$exception;
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- css = result._serialize.css + D._writeSourceMap(options, result._serialize.sourceMap, destination);
- if (destination == null) {
- if (css.length !== 0)
- P.print(css);
- } else {
- B.ensureDir($.$get$context().dirname$1(destination));
- B.writeFile(destination, css + "\n");
- }
- t1 = options._options;
- if (!H._asBoolNullable(t1.$index(0, "quiet")))
- t1 = !H._asBoolNullable(t1.$index(0, "update")) && !H._asBoolNullable(t1.$index(0, "watch"));
- else
- t1 = true;
- if (t1) {
- // goto return
- $async$goto = 1;
- break;
- }
- buffer = new P.StringBuffer("");
- t1 = options.get$color() ? buffer._contents = "\x1b[32m" : "";
- if (source == null)
- sourceName = "stdin";
- else {
- t2 = $.$get$context();
- sourceName = t2.prettyUri$1(t2.toUri$1(source));
- }
- t2 = $.$get$context();
- destinationName = t2.prettyUri$1(t2.toUri$1(destination));
- t1 += "Compiled " + H.S(sourceName) + " to " + H.S(destinationName) + ".";
- buffer._contents = t1;
- if (options.get$color())
- buffer._contents = t1 + "\x1b[0m";
- P.print(buffer);
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$compileStylesheet, $async$completer);
- },
- _writeSourceMap: function(options, sourceMap, destination) {
- var t1, sourceMapText, url, sourceMapPath, t2;
- if (sourceMap == null)
- return "";
- if (destination != null) {
- t1 = $.$get$context();
- sourceMap.targetUrl = J.toString$0$(t1.toUri$1(X.ParsedPath_ParsedPath$parse(destination, t1.style).get$basename()));
- }
- B.mapInPlace(sourceMap.urls, new D._writeSourceMap_closure(options, destination));
- t1 = options._options;
- sourceMapText = C.C_JsonCodec.encode$2$toEncodable(sourceMap.toJson$1$includeSourceContents(H._asBoolNullable(t1.$index(0, "embed-sources"))), null);
- if (H._asBoolNullable(t1.$index(0, "embed-source-map")))
- url = P.Uri_Uri$dataFromString(sourceMapText, C.C_Utf8Codec, "application/json");
- else {
- sourceMapPath = J.$add$ansx(destination, ".map");
- t2 = $.$get$context();
- B.ensureDir(t2.dirname$1(sourceMapPath));
- B.writeFile(sourceMapPath, sourceMapText);
- url = t2.toUri$1(t2.relative$2$from(sourceMapPath, t2.dirname$1(destination)));
- }
- t1 = (J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0) === C.OutputStyle_compressed ? "" : "\n\n";
- return t1 + ("/*# sourceMappingURL=" + H.S(url) + " */");
- },
- _writeSourceMap_closure: function _writeSourceMap_closure(t0, t1) {
- this.options = t0;
- this.destination = t1;
- },
- _function3: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:list");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- closure42: function closure42() {
- },
- closure41: function closure41() {
- },
- closure40: function closure40() {
- },
- closure39: function closure39() {
- },
- closure38: function closure38() {
- },
- closure37: function closure37() {
- },
- _closure4: function _closure4() {
- },
- _closure5: function _closure5(t0) {
- this._box_0 = t0;
- },
- _closure6: function _closure6(t0) {
- this._box_0 = t0;
- },
- closure36: function closure36() {
- },
- closure34: function closure34() {
- },
- closure35: function closure35() {
- },
- _codepointForIndex: function(index, lengthInCodepoints, allowNegative) {
- var result;
- if (index === 0)
- return 0;
- if (index > 0)
- return Math.min(index - 1, H.checkNum(lengthInCodepoints));
- result = lengthInCodepoints + index;
- if (result < 0 && !allowNegative)
- return 0;
- return result;
- },
- _function: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:string");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- closure8: function closure8() {
- },
- closure7: function closure7() {
- },
- closure3: function closure3() {
- },
- closure2: function closure2() {
- },
- closure1: function closure1() {
- },
- closure0: function closure0() {
- },
- closure6: function closure6() {
- },
- closure5: function closure5() {
- },
- closure4: function closure4() {
- },
- SourceMapBuffer0: function SourceMapBuffer0(t0, t1, t2) {
- var _ = this;
- _._source_map_buffer0$_buffer = t0;
- _._source_map_buffer0$_entries = t1;
- _._sourceFiles = t2;
- _._source_map_buffer0$_column = _._source_map_buffer0$_line = 0;
- _._source_map_buffer0$_inSpan = false;
- },
- SourceMapBuffer_sourceFiles_closure: function SourceMapBuffer_sourceFiles_closure() {
- },
- SourceMapBuffer__addEntry_closure: function SourceMapBuffer__addEntry_closure(t0) {
- this.source = t0;
- },
- SourceMapBuffer_buildSourceMap_closure: function SourceMapBuffer_buildSourceMap_closure(t0, t1) {
- this._box_0 = t0;
- this.prefixLength = t1;
- },
- SassArgumentList: function SassArgumentList(t0, t1, t2, t3) {
- var _ = this;
- _._keywords = t0;
- _._wereKeywordsAccessed = false;
- _._list$_contents = t1;
- _.separator = t2;
- _.hasBrackets = t3;
- },
- SassList$: function(contents, separator, brackets) {
- var t1 = new D.SassList(P.List_List$unmodifiable(contents, type$.Value), separator, brackets);
- t1.SassList$3$brackets(contents, separator, brackets);
- return t1;
- },
- SassList: function SassList(t0, t1, t2) {
- this._list$_contents = t0;
- this.separator = t1;
- this.hasBrackets = t2;
- },
- SassList_isBlank_closure: function SassList_isBlank_closure() {
- },
- ListSeparator: function ListSeparator(t0) {
- this._list$_name = t0;
- },
- SassString$: function(text, quotes) {
- return new D.SassString(text, quotes);
- },
- SassString: function SassString(t0, t1) {
- this.text = t0;
- this.hasQuotes = t1;
- this._sassLength = null;
- },
- RecursiveStatementVisitor: function RecursiveStatementVisitor() {
- },
- SourceLocationMixin: function SourceLocationMixin() {
- },
- SassArgumentList0: function SassArgumentList0(t0, t1, t2, t3) {
- var _ = this;
- _._argument_list$_keywords = t0;
- _._argument_list$_wereKeywordsAccessed = false;
- _._list1$_contents = t1;
- _.separator = t2;
- _.hasBrackets = t3;
- },
- Callable0: function Callable0() {
- },
- ErrorRule0: function ErrorRule0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- Exports: function Exports() {
- },
- ListExpression0: function ListExpression0(t0, t1, t2, t3) {
- var _ = this;
- _.contents = t0;
- _.separator = t1;
- _.hasBrackets = t2;
- _.span = t3;
- },
- ListExpression_toString_closure0: function ListExpression_toString_closure0(t0) {
- this.$this = t0;
- },
- _function10: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:list");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- closure150: function closure150() {
- },
- closure149: function closure149() {
- },
- closure148: function closure148() {
- },
- closure147: function closure147() {
- },
- closure146: function closure146() {
- },
- closure145: function closure145() {
- },
- _closure19: function _closure19() {
- },
- _closure20: function _closure20(t0) {
- this._box_0 = t0;
- },
- _closure21: function _closure21(t0) {
- this._box_0 = t0;
- },
- closure144: function closure144() {
- },
- closure142: function closure142() {
- },
- closure143: function closure143() {
- },
- SelectorList$0: function(components) {
- var t1 = P.List_List$unmodifiable(components, type$.ComplexSelector_2);
- if (t1.length === 0)
- H.throwExpression(P.ArgumentError$("components may not be empty."));
- return new D.SelectorList0(t1);
- },
- SelectorList_SelectorList$parse0: function(contents, allowParent, allowPlaceholder, logger) {
- var t1 = S.SpanScanner$(contents, null);
- return new T.SelectorParser0(allowParent, allowPlaceholder, t1, logger == null ? C.C_StderrLogger : logger).parse$0();
- },
- SelectorList0: function SelectorList0(t0) {
- this.components = t0;
- },
- SelectorList_isInvisible_closure0: function SelectorList_isInvisible_closure0() {
- },
- SelectorList_asSassList_closure0: function SelectorList_asSassList_closure0() {
- },
- SelectorList_asSassList__closure0: function SelectorList_asSassList__closure0() {
- },
- SelectorList_unify_closure0: function SelectorList_unify_closure0(t0) {
- this.other = t0;
- },
- SelectorList_unify__closure0: function SelectorList_unify__closure0(t0) {
- this.complex1 = t0;
- },
- SelectorList_unify___closure0: function SelectorList_unify___closure0() {
- },
- SelectorList_resolveParentSelectors_closure0: function SelectorList_resolveParentSelectors_closure0(t0, t1, t2) {
- this.$this = t0;
- this.implicitParent = t1;
- this.parent = t2;
- },
- SelectorList_resolveParentSelectors__closure1: function SelectorList_resolveParentSelectors__closure1(t0) {
- this.complex = t0;
- },
- SelectorList_resolveParentSelectors__closure2: function SelectorList_resolveParentSelectors__closure2(t0) {
- this._box_0 = t0;
- },
- SelectorList__complexContainsParentSelector_closure0: function SelectorList__complexContainsParentSelector_closure0() {
- },
- SelectorList__complexContainsParentSelector__closure0: function SelectorList__complexContainsParentSelector__closure0() {
- },
- SelectorList__resolveParentSelectorsCompound_closure2: function SelectorList__resolveParentSelectorsCompound_closure2() {
- },
- SelectorList__resolveParentSelectorsCompound_closure3: function SelectorList__resolveParentSelectorsCompound_closure3(t0) {
- this.parent = t0;
- },
- SelectorList__resolveParentSelectorsCompound_closure4: function SelectorList__resolveParentSelectorsCompound_closure4(t0, t1) {
- this.compound = t0;
- this.resolvedMembers = t1;
- },
- _NodeSassList: function _NodeSassList() {
- },
- closure232: function closure232() {
- },
- _closure33: function _closure33() {
- },
- closure233: function closure233() {
- },
- closure234: function closure234() {
- },
- closure235: function closure235() {
- },
- closure236: function closure236() {
- },
- closure237: function closure237() {
- },
- closure238: function closure238() {
- },
- SassList$0: function(contents, separator, brackets) {
- var t1 = new D.SassList0(P.List_List$unmodifiable(contents, type$.Value_2), separator, brackets);
- t1.SassList$3$brackets0(contents, separator, brackets);
- return t1;
- },
- SassList0: function SassList0(t0, t1, t2) {
- this._list1$_contents = t0;
- this.separator = t1;
- this.hasBrackets = t2;
- },
- SassList_isBlank_closure0: function SassList_isBlank_closure0() {
- },
- ListSeparator0: function ListSeparator0(t0) {
- this._list1$_name = t0;
- },
- PseudoSelector$0: function($name, argument, element, selector) {
- var t1 = !element,
- t2 = t1 && !D.PseudoSelector__isFakePseudoElement0($name);
- return new D.PseudoSelector0($name, B.unvendor0($name), t2, t1, argument, selector);
- },
- PseudoSelector__isFakePseudoElement0: function($name) {
- switch (C.JSString_methods._codeUnitAt$1($name, 0)) {
- case 97:
- case 65:
- return B.equalsIgnoreCase0($name, "after");
- case 98:
- case 66:
- return B.equalsIgnoreCase0($name, "before");
- case 102:
- case 70:
- return B.equalsIgnoreCase0($name, "first-line") || B.equalsIgnoreCase0($name, "first-letter");
- default:
- return false;
- }
- },
- PseudoSelector0: function PseudoSelector0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.normalizedName = t1;
- _.isClass = t2;
- _.isSyntacticClass = t3;
- _.argument = t4;
- _.selector = t5;
- _._pseudo0$_maxSpecificity = _._pseudo0$_minSpecificity = null;
- },
- QualifiedName0: function QualifiedName0(t0, t1) {
- this.name = t0;
- this.namespace = t1;
- },
- SourceMapBuffer: function SourceMapBuffer(t0, t1, t2) {
- var _ = this;
- _._source_map_buffer$_buffer = t0;
- _._entries = t1;
- _._source_map_buffer$_sourceFiles = t2;
- _._column = _._line = 0;
- _._inSpan = false;
- },
- SourceMapBuffer_sourceFiles_closure0: function SourceMapBuffer_sourceFiles_closure0() {
- },
- SourceMapBuffer__addEntry_closure0: function SourceMapBuffer__addEntry_closure0(t0) {
- this.source = t0;
- },
- SourceMapBuffer_buildSourceMap_closure0: function SourceMapBuffer_buildSourceMap_closure0(t0, t1) {
- this._box_0 = t0;
- this.prefixLength = t1;
- },
- StringExpression0: function StringExpression0(t0, t1) {
- this.text = t0;
- this.hasQuotes = t1;
- },
- _codepointForIndex0: function(index, lengthInCodepoints, allowNegative) {
- var result;
- if (index === 0)
- return 0;
- if (index > 0)
- return Math.min(index - 1, H.checkNum(lengthInCodepoints));
- result = lengthInCodepoints + index;
- if (result < 0 && !allowNegative)
- return 0;
- return result;
- },
- _function6: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:string");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- closure116: function closure116() {
- },
- closure115: function closure115() {
- },
- closure111: function closure111() {
- },
- closure110: function closure110() {
- },
- closure109: function closure109() {
- },
- closure108: function closure108() {
- },
- closure114: function closure114() {
- },
- closure113: function closure113() {
- },
- closure112: function closure112() {
- },
- _NodeSassString: function _NodeSassString() {
- },
- closure214: function closure214() {
- },
- closure215: function closure215() {
- },
- closure216: function closure216() {
- },
- closure217: function closure217() {
- },
- SassString$0: function(text, quotes) {
- return new D.SassString0(text, quotes);
- },
- SassString0: function SassString0(t0, t1) {
- this.text = t0;
- this.hasQuotes = t1;
- this._string$_sassLength = null;
- },
- current: function() {
- var exception, t1, path, lastIndex, uri = null;
- try {
- uri = P.Uri_base();
- } catch (exception) {
- if (type$.Exception._is(H.unwrapException(exception))) {
- t1 = $._current;
- if (t1 != null)
- return t1;
- throw exception;
- } else
- throw exception;
- }
- if (J.$eq$(uri, $._currentUriBase))
- return $._current;
- $._currentUriBase = uri;
- if ($.$get$Style_platform() == $.$get$Style_url())
- t1 = $._current = uri.resolve$1(".").toString$0(0);
- else {
- path = uri.toFilePath$0();
- lastIndex = path.length - 1;
- t1 = $._current = lastIndex === 0 ? path : C.JSString_methods.substring$2(path, 0, lastIndex);
- }
- return t1;
- },
- absolute: function(part1) {
- var _null = null;
- return $.$get$context().absolute$7(part1, _null, _null, _null, _null, _null, _null);
- },
- dirname: function(path) {
- return $.$get$context().dirname$1(path);
- },
- join: function(part1, part2, part3) {
- var _null = null;
- return $.$get$context().join$8(0, part1, part2, part3, _null, _null, _null, _null, _null);
- }
- },
- A = {MapExpression: function MapExpression(t0, t1) {
- this.pairs = t0;
- this.span = t1;
- }, MapExpression_toString_closure: function MapExpression_toString_closure() {
- }, IncludeRule: function IncludeRule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.$arguments = t2;
- _.content = t3;
- _.span = t4;
- }, Configuration: function Configuration(t0, t1, t2) {
- this._values = t0;
- this.nodeWithSpan = t1;
- this.isImplicit = t2;
- },
- watch: function(options, graph) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, t2, t3, t4, t5, t6, dirWatcher, watcher, destination, t1;
- var $async$watch = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (options._ensureSources$0(), t2 = J.get$iterator$ax(options._sourceDirectoriesToDestinations.get$keys()); t2.moveNext$0();)
- t1.push(t2.get$current(t2));
- for (options._ensureSources$0(), t2 = type$.String, t3 = J.map$1$1$ax(options._sourcesToDestinations.get$keys(), D.path__dirname$closure(), t2), t3 = t3.get$iterator(t3); t3.moveNext$0();)
- t1.push(t3.get$current(t3));
- for (t3 = options._options, t4 = J.get$iterator$ax(type$.List_String._as(t3.$index(0, "load-path"))); t4.moveNext$0();)
- t1.push(t4.get$current(t4));
- t4 = H._asBoolNullable(t3.$index(0, "poll"));
- t5 = type$.Stream_WatchEvent;
- t6 = new L.StreamGroup(C._StreamGroupState_dormant, P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.StreamSubscription_WatchEvent), type$.StreamGroup_WatchEvent);
- t6._controller = P.StreamController_StreamController(t6.get$_onCancel(), t6.get$_onListen(), t6.get$_onPause(), t6.get$_onResume(), true, type$.WatchEvent);
- dirWatcher = new U.MultiDirWatcher(P.LinkedHashMap_LinkedHashMap$_empty(t2, t5), t6, t4);
- $async$goto = 3;
- return P._asyncAwait(P.Future_wait(new H.MappedListIterable(t1, new A.watch_closure(dirWatcher), type$.MappedListIterable_of_String_and_Future_void), type$.void), $async$watch);
- case 3:
- // returning from await.
- watcher = new A._Watcher(options, graph);
- options._ensureSources$0(), t1 = J.get$iterator$ax(options._sourcesToDestinations.get$keys());
- case 4:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t2 = t1.get$current(t1);
- options._ensureSources$0();
- destination = options._sourcesToDestinations.$index(0, t2);
- t4 = $.$get$context();
- 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);
- $async$goto = 6;
- return P._asyncAwait(watcher.compile$3$ifModified(t2, destination, true), $async$watch);
- case 6:
- // returning from await.
- if (!$async$result && H._asBoolNullable(t3.$index(0, "stop-on-error"))) {
- dirWatcher._group._controller._subscribe$4(null, null, null, false).cancel$0();
- // goto return
- $async$goto = 1;
- break;
- }
- // goto for condition
- $async$goto = 4;
- break;
- case 5:
- // after for
- P.print("Sass is watching for changes. Press Ctrl-C to stop.\n");
- $async$goto = 7;
- return P._asyncAwait(watcher.watch$1(0, dirWatcher), $async$watch);
- case 7:
- // returning from await.
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$watch, $async$completer);
- },
- watch_closure: function watch_closure(t0) {
- this.dirWatcher = t0;
- },
- _Watcher: function _Watcher(t0, t1) {
- this._watch$_options = t0;
- this._graph = t1;
- },
- _Watcher__debounceEvents_closure: function _Watcher__debounceEvents_closure() {
- },
- _Watcher__debounceEvents__closure: function _Watcher__debounceEvents__closure(t0) {
- this.typeForPath = t0;
- },
- MergedExtension_merge: function(left, right) {
- var t2, t3, t4,
- t1 = left.extender;
- if (!J.$eq$(t1, right.extender) || !J.$eq$(left.target, right.target))
- throw H.wrapException(P.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension."));
- t2 = left.mediaContext;
- t3 = t2 == null;
- if (!t3) {
- t4 = right.mediaContext;
- t4 = t4 != null && !C.C_ListEquality.equals$2(t2, t4);
- } else
- t4 = false;
- if (t4)
- throw H.wrapException(E.SassException$("From " + left.span.message$1(0, "") + "\nYou may not @extend the same selector from within different media queries.", right.span));
- if (right.isOptional && right.mediaContext == null)
- return left;
- if (left.isOptional && t3)
- return right;
- if (t3)
- t2 = right.mediaContext;
- t3 = left.specificity;
- if (t3 == null)
- t3 = t1.get$maxSpecificity();
- return new A.MergedExtension(left, right, t1, left.target, t3, true, false, t2, left.extenderSpan, left.span);
- },
- MergedExtension: function MergedExtension(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
- var _ = this;
- _.left = t0;
- _.right = t1;
- _.extender = t2;
- _.target = t3;
- _.specificity = t4;
- _.isOptional = t5;
- _.isOriginal = t6;
- _.mediaContext = t7;
- _.extenderSpan = t8;
- _.span = t9;
- },
- _function2: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:map");
- return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value));
- },
- closure33: function closure33() {
- },
- closure32: function closure32() {
- },
- closure30: function closure30() {
- },
- closure31: function closure31() {
- },
- closure29: function closure29() {
- },
- closure28: function closure28() {
- },
- closure27: function closure27() {
- },
- SassMap: function SassMap(t0) {
- this.contents = t0;
- },
- SassMap_asList_closure: function SassMap_asList_closure(t0) {
- this.result = t0;
- },
- Frame_Frame$parseVM: function(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseVM_closure(frame));
- },
- Frame_Frame$parseV8: function(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseV8_closure(frame));
- },
- Frame_Frame$parseFirefox: function(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFirefox_closure(frame));
- },
- Frame_Frame$parseFriendly: function(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFriendly_closure(frame));
- },
- Frame__uriOrPathToUri: function(uriOrPath) {
- if (J.getInterceptor$asx(uriOrPath).contains$1(uriOrPath, $.$get$Frame__uriRegExp()))
- return P.Uri_parse(uriOrPath);
- else if (C.JSString_methods.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()))
- return P._Uri__Uri$file(uriOrPath, true);
- else if (C.JSString_methods.startsWith$1(uriOrPath, "/"))
- return P._Uri__Uri$file(uriOrPath, false);
- if (C.JSString_methods.contains$1(uriOrPath, "\\"))
- return $.$get$windows().toUri$1(uriOrPath);
- return P.Uri_parse(uriOrPath);
- },
- Frame__catchFormatException: function(text, body) {
- var t1, exception;
- try {
- t1 = body.call$0();
- return t1;
- } catch (exception) {
- if (type$.FormatException._is(H.unwrapException(exception)))
- return new N.UnparsedFrame(P._Uri__Uri(null, "unparsed", null, null), text);
- else
- throw exception;
- }
- },
- Frame: function Frame(t0, t1, t2, t3) {
- var _ = this;
- _.uri = t0;
- _.line = t1;
- _.column = t2;
- _.member = t3;
- },
- Frame_Frame$parseVM_closure: function Frame_Frame$parseVM_closure(t0) {
- this.frame = t0;
- },
- Frame_Frame$parseV8_closure: function Frame_Frame$parseV8_closure(t0) {
- this.frame = t0;
- },
- Frame_Frame$parseV8_closure_parseLocation: function Frame_Frame$parseV8_closure_parseLocation(t0) {
- this.frame = t0;
- },
- Frame_Frame$parseFirefox_closure: function Frame_Frame$parseFirefox_closure(t0) {
- this.frame = t0;
- },
- Frame_Frame$parseFriendly_closure: function Frame_Frame$parseFriendly_closure(t0) {
- this.frame = t0;
- },
- AsciiGlyphSet: function AsciiGlyphSet() {
- },
- Configuration0: function Configuration0(t0, t1, t2) {
- this._configuration$_values = t0;
- this.nodeWithSpan = t1;
- this.isImplicit = t2;
- },
- IncludeRule0: function IncludeRule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.$arguments = t2;
- _.content = t3;
- _.span = t4;
- },
- MapExpression0: function MapExpression0(t0, t1) {
- this.pairs = t0;
- this.span = t1;
- },
- MapExpression_toString_closure0: function MapExpression_toString_closure0() {
- },
- _function9: function($name, $arguments, callback) {
- var t1 = S.SpanScanner$("@function " + $name + "(" + $arguments + ") {", "sass:map");
- return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2)], type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2));
- },
- closure141: function closure141() {
- },
- closure140: function closure140() {
- },
- closure138: function closure138() {
- },
- closure139: function closure139() {
- },
- closure137: function closure137() {
- },
- closure136: function closure136() {
- },
- closure135: function closure135() {
- },
- _NodeSassMap: function _NodeSassMap() {
- },
- closure225: function closure225() {
- },
- _closure31: function _closure31() {
- },
- _closure32: function _closure32() {
- },
- closure226: function closure226() {
- },
- closure227: function closure227() {
- },
- closure228: function closure228() {
- },
- closure229: function closure229() {
- },
- closure230: function closure230() {
- },
- closure231: function closure231() {
- },
- SassMap0: function SassMap0(t0) {
- this.contents = t0;
- },
- SassMap_asList_closure0: function SassMap_asList_closure0(t0) {
- this.result = t0;
- },
- MergedExtension_merge0: function(left, right) {
- var t2, t3, t4,
- t1 = left.extender;
- if (!J.$eq$(t1, right.extender) || !J.$eq$(left.target, right.target))
- throw H.wrapException(P.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension."));
- t2 = left.mediaContext;
- t3 = t2 == null;
- if (!t3) {
- t4 = right.mediaContext;
- t4 = t4 != null && !C.C_ListEquality.equals$2(t2, t4);
- } else
- t4 = false;
- if (t4)
- throw H.wrapException(E.SassException$0("From " + left.span.message$1(0, "") + "\nYou may not @extend the same selector from within different media queries.", right.span));
- if (right.isOptional && right.mediaContext == null)
- return left;
- if (left.isOptional && t3)
- return right;
- if (t3)
- t2 = right.mediaContext;
- t3 = left.specificity;
- if (t3 == null)
- t3 = t1.get$maxSpecificity();
- return new A.MergedExtension0(left, right, t1, left.target, t3, true, false, t2, left.extenderSpan, left.span);
- },
- MergedExtension0: function MergedExtension0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
- var _ = this;
- _.left = t0;
- _.right = t1;
- _.extender = t2;
- _.target = t3;
- _.specificity = t4;
- _.isOptional = t5;
- _.isOriginal = t6;
- _.mediaContext = t7;
- _.extenderSpan = t8;
- _.span = t9;
- }
- },
- S = {VariableExpression: function VariableExpression(t0, t1, t2) {
- this.namespace = t0;
- this.name = t1;
- this.span = t2;
- },
- ComplexSelector$: function(components, lineBreak) {
- var t1 = P.List_List$unmodifiable(components, type$.ComplexSelectorComponent);
- if (t1.length === 0)
- H.throwExpression(P.ArgumentError$("components may not be empty."));
- return new S.ComplexSelector(t1, lineBreak);
- },
- ComplexSelector: function ComplexSelector(t0, t1) {
- var _ = this;
- _.components = t0;
- _.lineBreak = t1;
- _._complex$_isInvisible = _._maxSpecificity = _._minSpecificity = null;
- },
- ComplexSelector_isInvisible_closure: function ComplexSelector_isInvisible_closure() {
- },
- ComplexSelectorComponent: function ComplexSelectorComponent() {
- },
- Combinator: function Combinator(t0) {
- this._complex$_text = t0;
- },
- AsyncBuiltInCallable$mixin: function($name, $arguments, callback, url) {
- var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
- return new S.AsyncBuiltInCallable($name, new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, C.StderrLogger_false).parseArgumentDeclaration$0(), new S.AsyncBuiltInCallable$mixin_closure(callback));
- },
- AsyncBuiltInCallable: function AsyncBuiltInCallable(t0, t1, t2) {
- this.name = t0;
- this._async_built_in$_arguments = t1;
- this._async_built_in$_callback = t2;
- },
- AsyncBuiltInCallable$mixin_closure: function AsyncBuiltInCallable$mixin_closure(t0) {
- this.callback = t0;
- },
- Extension$oneOff: function(extender, isOriginal, specificity) {
- var _null = null;
- return new S.Extension(extender, _null, specificity == null ? extender.get$maxSpecificity() : specificity, true, isOriginal, _null, _null, _null);
- },
- Extension: function Extension(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _.extender = t0;
- _.target = t1;
- _.specificity = t2;
- _.isOptional = t3;
- _.isOriginal = t4;
- _.mediaContext = t5;
- _.extenderSpan = t6;
- _.span = t7;
- },
- StderrLogger: function StderrLogger(t0) {
- this.color = t0;
- },
- SpanScanner$: function(string, sourceUrl) {
- var t1, t2, t3, t4;
- string.toString;
- t1 = new H.CodeUnits(string);
- t2 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
- t3 = typeof sourceUrl == "string";
- t4 = t3 ? P.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
- t2 = new Y.SourceFile(t4, t2, new Uint32Array(H._ensureNativeList(t1.toList$0(t1))));
- t2.SourceFile$decoded$2$url(t1, sourceUrl);
- t1 = t3 ? P.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
- return new S.SpanScanner(t2, t1, string);
- },
- SpanScanner: function SpanScanner(t0, t1, t2) {
- var _ = this;
- _._sourceFile = t0;
- _.sourceUrl = t1;
- _.string = t2;
- _._string_scanner$_position = 0;
- _._lastMatchPosition = _._lastMatch = null;
- },
- _SpanScannerState: function _SpanScannerState(t0, t1) {
- this._scanner = t0;
- this.position = t1;
- },
- Tuple2: function Tuple2(t0, t1, t2) {
- this.item1 = t0;
- this.item2 = t1;
- this.$ti = t2;
- },
- Tuple3: function Tuple3(t0, t1, t2, t3) {
- var _ = this;
- _.item1 = t0;
- _.item2 = t1;
- _.item3 = t2;
- _.$ti = t3;
- },
- AsyncBuiltInCallable$mixin0: function($name, $arguments, callback, url) {
- var t1 = S.SpanScanner$("@mixin " + $name + "(" + $arguments + ") {", url);
- return new S.AsyncBuiltInCallable0($name, new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseArgumentDeclaration$0(), new S.AsyncBuiltInCallable$mixin_closure0(callback));
- },
- AsyncBuiltInCallable0: function AsyncBuiltInCallable0(t0, t1, t2) {
- this.name = t0;
- this._async_built_in0$_arguments = t1;
- this._async_built_in0$_callback = t2;
- },
- AsyncBuiltInCallable$mixin_closure0: function AsyncBuiltInCallable$mixin_closure0(t0) {
- this.callback = t0;
- },
- ComplexSelector$0: function(components, lineBreak) {
- var t1 = P.List_List$unmodifiable(components, type$.ComplexSelectorComponent_2);
- if (t1.length === 0)
- H.throwExpression(P.ArgumentError$("components may not be empty."));
- return new S.ComplexSelector0(t1, lineBreak);
- },
- ComplexSelector0: function ComplexSelector0(t0, t1) {
- var _ = this;
- _.components = t0;
- _.lineBreak = t1;
- _._complex0$_isInvisible = _._complex0$_maxSpecificity = _._complex0$_minSpecificity = null;
- },
- ComplexSelector_isInvisible_closure0: function ComplexSelector_isInvisible_closure0() {
- },
- ComplexSelectorComponent0: function ComplexSelectorComponent0() {
- },
- Combinator0: function Combinator0(t0) {
- this._complex0$_text = t0;
- },
- Extension$oneOff0: function(extender, isOriginal, specificity) {
- var _null = null;
- return new S.Extension0(extender, _null, specificity == null ? extender.get$maxSpecificity() : specificity, true, isOriginal, _null, _null, _null);
- },
- Extension0: function Extension0(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _.extender = t0;
- _.target = t1;
- _.specificity = t2;
- _.isOptional = t3;
- _.isOriginal = t4;
- _.mediaContext = t5;
- _.extenderSpan = t6;
- _.span = t7;
- },
- StderrLogger0: function StderrLogger0() {
- },
- VariableExpression0: function VariableExpression0(t0, t1, t2) {
- this.namespace = t0;
- this.name = t1;
- this.span = t2;
- }
- };
- 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];
- hunkHelpers.setFunctionNamesIfNecessary(holders);
- var $ = {};
- H.JS_CONST.prototype = {};
- J.Interceptor.prototype = {
- $eq: function(receiver, other) {
- return receiver === other;
- },
- get$hashCode: function(receiver) {
- return H.Primitives_objectHashCode(receiver);
- },
- toString$0: function(receiver) {
- return "Instance of '" + H.S(H.Primitives_objectTypeName(receiver)) + "'";
- },
- noSuchMethod$1: function(receiver, invocation) {
- throw H.wrapException(P.NoSuchMethodError$(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
- }
- };
- J.JSBool.prototype = {
- toString$0: function(receiver) {
- return String(receiver);
- },
- get$hashCode: function(receiver) {
- return receiver ? 519018 : 218159;
- },
- $isbool: 1
- };
- J.JSNull.prototype = {
- $eq: function(receiver, other) {
- return null == other;
- },
- toString$0: function(receiver) {
- return "null";
- },
- get$hashCode: function(receiver) {
- return 0;
- },
- noSuchMethod$1: function(receiver, invocation) {
- return this.super$Interceptor$noSuchMethod(receiver, invocation);
- },
- $isNull: 1
- };
- J.JavaScriptObject.prototype = {
- get$hashCode: function(receiver) {
- return 0;
- },
- toString$0: function(receiver) {
- return String(receiver);
- },
- $is_SystemError: 1,
- $is_NodeSassColor: 1,
- $isJSError: 1,
- $isJSFunction0: 1,
- $isNodeImporterResult0: 1,
- $is_NodeSassList: 1,
- $is_NodeSassMap: 1,
- $is_SystemError0: 1,
- $is_NodeSassNumber: 1,
- $isRenderOptions: 1,
- $isRenderResult: 1,
- $is_NodeSassString: 1,
- get$isTTY: function(obj) {
- return obj.isTTY;
- },
- get$write: function(obj) {
- return obj.write;
- },
- write$1: function(receiver, p0) {
- return receiver.write(p0);
- },
- createInterface$1: function(receiver, p0) {
- return receiver.createInterface(p0);
- },
- on$2: function(receiver, p0, p1) {
- return receiver.on(p0, p1);
- },
- get$close: function(obj) {
- return obj.close;
- },
- close$0: function(receiver) {
- return receiver.close();
- },
- setPrompt$1: function(receiver, p0) {
- return receiver.setPrompt(p0);
- },
- readFileSync$2: function(receiver, p0, p1) {
- return receiver.readFileSync(p0, p1);
- },
- writeFileSync$2: function(receiver, p0, p1) {
- return receiver.writeFileSync(p0, p1);
- },
- existsSync$1: function(receiver, p0) {
- return receiver.existsSync(p0);
- },
- mkdirSync$1: function(receiver, p0) {
- return receiver.mkdirSync(p0);
- },
- statSync$1: function(receiver, p0) {
- return receiver.statSync(p0);
- },
- unlinkSync$1: function(receiver, p0) {
- return receiver.unlinkSync(p0);
- },
- readdirSync$1: function(receiver, p0) {
- return receiver.readdirSync(p0);
- },
- isFile$0: function(receiver) {
- return receiver.isFile();
- },
- isDirectory$0: function(receiver) {
- return receiver.isDirectory();
- },
- get$mtime: function(obj) {
- return obj.mtime;
- },
- getTime$0: function(receiver) {
- return receiver.getTime();
- },
- get$message: function(obj) {
- return obj.message;
- },
- message$1: function(receiver, p0) {
- return receiver.message(p0);
- },
- get$code: function(obj) {
- return obj.code;
- },
- get$syscall: function(obj) {
- return obj.syscall;
- },
- get$path: function(obj) {
- return obj.path;
- },
- get$platform: function(obj) {
- return obj.platform;
- },
- get$env: function(obj) {
- return obj.env;
- },
- watch$2: function(receiver, p0, p1) {
- return receiver.watch(p0, p1);
- },
- call$2: function(receiver, p0, p1) {
- return receiver.call(p0, p1);
- },
- call$1: function(receiver, p0) {
- return receiver.call(p0);
- },
- call$0: function(receiver) {
- return receiver.call();
- },
- call$1$1: function(receiver, p0) {
- return receiver.call(p0);
- },
- call$3: function(receiver, p0, p1, p2) {
- return receiver.call(p0, p1, p2);
- },
- call$1$3: function(receiver, p0, p1, p2) {
- return receiver.call(p0, p1, p2);
- },
- call$2$2: function(receiver, p0, p1) {
- return receiver.call(p0, p1);
- },
- call$1$0: function(receiver) {
- return receiver.call();
- },
- apply$2: function(receiver, p0, p1) {
- return receiver.apply(p0, p1);
- },
- get$file: function(obj) {
- return obj.file;
- },
- get$contents: function(obj) {
- return obj.contents;
- },
- get$dartValue: function(obj) {
- return obj.dartValue;
- },
- set$dartValue: function(obj, v) {
- return obj.dartValue = v;
- },
- set$render: function(obj, v) {
- return obj.render = v;
- },
- set$renderSync: function(obj, v) {
- return obj.renderSync = v;
- },
- set$info: function(obj, v) {
- return obj.info = v;
- },
- set$types: function(obj, v) {
- return obj.types = v;
- },
- set$NULL: function(obj, v) {
- return obj.NULL = v;
- },
- set$TRUE: function(obj, v) {
- return obj.TRUE = v;
- },
- set$FALSE: function(obj, v) {
- return obj.FALSE = v;
- },
- get$current: function(obj) {
- return obj.current;
- },
- yield$0: function(receiver) {
- return receiver.yield();
- },
- run$1: function(receiver, p0) {
- return receiver.run(p0);
- },
- run$0: function(receiver) {
- return receiver.run();
- },
- get$options: function(obj) {
- return obj.options;
- },
- get$data: function(obj) {
- return obj.data;
- },
- get$includePaths: function(obj) {
- return obj.includePaths;
- },
- get$indentType: function(obj) {
- return obj.indentType;
- },
- get$indentWidth: function(obj) {
- return obj.indentWidth;
- },
- get$linefeed: function(obj) {
- return obj.linefeed;
- },
- set$context: function(obj, v) {
- return obj.context = v;
- },
- get$importer: function(obj) {
- return obj.importer;
- },
- get$functions: function(obj) {
- return obj.functions;
- },
- get$indentedSyntax: function(obj) {
- return obj.indentedSyntax;
- },
- get$omitSourceMapUrl: function(obj) {
- return obj.omitSourceMapUrl;
- },
- get$outFile: function(obj) {
- return obj.outFile;
- },
- get$outputStyle: function(obj) {
- return obj.outputStyle;
- },
- get$fiber: function(obj) {
- return obj.fiber;
- },
- get$sourceMap: function(obj) {
- return obj.sourceMap;
- },
- get$sourceMapContents: function(obj) {
- return obj.sourceMapContents;
- },
- get$sourceMapEmbed: function(obj) {
- return obj.sourceMapEmbed;
- },
- get$sourceMapRoot: function(obj) {
- return obj.sourceMapRoot;
- },
- map$1: function(receiver, p0) {
- return receiver.map(p0);
- },
- map$1$1: function(receiver, p0) {
- return receiver.map(p0);
- },
- get$start: function(obj) {
- return obj.start;
- },
- get$end: function(obj) {
- return obj.end;
- },
- set$cli_pkg_main_0_: function(obj, v) {
- return obj.cli_pkg_main_0_ = v;
- }
- };
- J.PlainJavaScriptObject.prototype = {};
- J.UnknownJavaScriptObject.prototype = {};
- J.JavaScriptFunction.prototype = {
- toString$0: function(receiver) {
- var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()];
- if (dartClosure == null)
- return this.super$JavaScriptObject$toString(receiver);
- return "JavaScript function for " + H.S(J.toString$0$(dartClosure));
- },
- $signature: function() {
- return {func: 1, opt: [,,,,,,,,,,,,,,,,]};
- },
- $isFunction: 1
- };
- J.JSArray.prototype = {
- cast$1$0: function(receiver, $R) {
- return new H.CastList(receiver, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
- },
- add$1: function(receiver, value) {
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("add"));
- receiver.push(value);
- },
- removeAt$1: function(receiver, index) {
- var t1;
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("removeAt"));
- t1 = receiver.length;
- if (index >= t1)
- throw H.wrapException(P.RangeError$value(index, null, null));
- return receiver.splice(index, 1)[0];
- },
- insert$2: function(receiver, index, value) {
- var t1;
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("insert"));
- t1 = receiver.length;
- if (index > t1)
- throw H.wrapException(P.RangeError$value(index, null, null));
- receiver.splice(index, 0, value);
- },
- insertAll$2: function(receiver, index, iterable) {
- var insertionLength, end;
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("insertAll"));
- P.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
- if (!type$.EfficientLengthIterable_dynamic._is(iterable))
- iterable = J.toList$0$ax(iterable);
- insertionLength = J.get$length$asx(iterable);
- this.set$length(receiver, receiver.length + insertionLength);
- end = index + insertionLength;
- this.setRange$4(receiver, end, receiver.length, receiver, index);
- this.setRange$3(receiver, index, end, iterable);
- },
- setAll$2: function(receiver, index, iterable) {
- var t1, index0;
- if (!!receiver.immutable$list)
- H.throwExpression(P.UnsupportedError$("setAll"));
- P.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
- for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0(); index = index0) {
- index0 = index + 1;
- this.$indexSet(receiver, index, t1.get$current(t1));
- }
- },
- removeLast$0: function(receiver) {
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("removeLast"));
- if (receiver.length === 0)
- throw H.wrapException(H.diagnoseIndexError(receiver, -1));
- return receiver.pop();
- },
- remove$1: function(receiver, element) {
- var i;
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("remove"));
- for (i = 0; i < receiver.length; ++i)
- if (J.$eq$(receiver[i], element)) {
- receiver.splice(i, 1);
- return true;
- }
- return false;
- },
- _removeWhere$2: function(receiver, test, removeMatching) {
- var i, element, t1, retained = [],
- end = receiver.length;
- for (i = 0; i < end; ++i) {
- element = receiver[i];
- if (!test.call$1(element))
- retained.push(element);
- if (receiver.length !== end)
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- t1 = retained.length;
- if (t1 === end)
- return;
- this.set$length(receiver, t1);
- for (i = 0; i < retained.length; ++i)
- receiver[i] = retained[i];
- },
- where$1: function(receiver, f) {
- return new H.WhereIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("WhereIterable<1>"));
- },
- expand$1$1: function(receiver, f, $T) {
- return new H.ExpandIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
- },
- addAll$1: function(receiver, collection) {
- var t1;
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("addAll"));
- for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();)
- receiver.push(t1.get$current(t1));
- },
- forEach$1: function(receiver, f) {
- var i,
- end = receiver.length;
- for (i = 0; i < end; ++i) {
- f.call$1(receiver[i]);
- if (receiver.length !== end)
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- },
- map$1$1: function(receiver, f, $T) {
- return new H.MappedListIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
- },
- map$1: function($receiver, f) {
- return this.map$1$1($receiver, f, type$.dynamic);
- },
- join$1: function(receiver, separator) {
- var i,
- list = new Array(receiver.length);
- list.fixed$length = Array;
- for (i = 0; i < receiver.length; ++i)
- list[i] = H.S(receiver[i]);
- return list.join(separator);
- },
- join$0: function($receiver) {
- return this.join$1($receiver, "");
- },
- take$1: function(receiver, n) {
- return H.SubListIterable$(receiver, 0, n, H._arrayInstanceType(receiver)._precomputed1);
- },
- skip$1: function(receiver, n) {
- return H.SubListIterable$(receiver, n, null, H._arrayInstanceType(receiver)._precomputed1);
- },
- fold$1$2: function(receiver, initialValue, combine) {
- var value, i,
- $length = receiver.length;
- for (value = initialValue, i = 0; i < $length; ++i) {
- value = combine.call$2(value, receiver[i]);
- if (receiver.length !== $length)
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- return value;
- },
- fold$2: function($receiver, initialValue, combine) {
- return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
- },
- firstWhere$2$orElse: function(receiver, test, orElse) {
- var i, element,
- end = receiver.length;
- for (i = 0; i < end; ++i) {
- element = receiver[i];
- if (test.call$1(element))
- return element;
- if (receiver.length !== end)
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- if (orElse != null)
- return orElse.call$0();
- throw H.wrapException(H.IterableElementError_noElement());
- },
- lastWhere$2$orElse: function(receiver, test, orElse) {
- var i, element,
- $length = receiver.length;
- for (i = $length - 1; i >= 0; --i) {
- element = receiver[i];
- if (test.call$1(element))
- return element;
- if ($length !== receiver.length)
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- if (orElse != null)
- return orElse.call$0();
- throw H.wrapException(H.IterableElementError_noElement());
- },
- elementAt$1: function(receiver, index) {
- return receiver[index];
- },
- sublist$2: function(receiver, start, end) {
- if (start < 0 || start > receiver.length)
- throw H.wrapException(P.RangeError$range(start, 0, receiver.length, "start", null));
- if (end == null)
- end = receiver.length;
- else if (end < start || end > receiver.length)
- throw H.wrapException(P.RangeError$range(end, start, receiver.length, "end", null));
- if (start === end)
- return H.setRuntimeTypeInfo([], H._arrayInstanceType(receiver));
- return H.setRuntimeTypeInfo(receiver.slice(start, end), H._arrayInstanceType(receiver));
- },
- sublist$1: function($receiver, start) {
- return this.sublist$2($receiver, start, null);
- },
- getRange$2: function(receiver, start, end) {
- P.RangeError_checkValidRange(start, end, receiver.length);
- return H.SubListIterable$(receiver, start, end, H._arrayInstanceType(receiver)._precomputed1);
- },
- get$first: function(receiver) {
- if (receiver.length > 0)
- return receiver[0];
- throw H.wrapException(H.IterableElementError_noElement());
- },
- get$last: function(receiver) {
- var t1 = receiver.length;
- if (t1 > 0)
- return receiver[t1 - 1];
- throw H.wrapException(H.IterableElementError_noElement());
- },
- get$single: function(receiver) {
- var t1 = receiver.length;
- if (t1 === 1)
- return receiver[0];
- if (t1 === 0)
- throw H.wrapException(H.IterableElementError_noElement());
- throw H.wrapException(H.IterableElementError_tooMany());
- },
- removeRange$2: function(receiver, start, end) {
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("removeRange"));
- P.RangeError_checkValidRange(start, end, receiver.length);
- receiver.splice(start, end - start);
- },
- setRange$4: function(receiver, start, end, iterable, skipCount) {
- var $length, otherStart, otherList, t1, i;
- if (!!receiver.immutable$list)
- H.throwExpression(P.UnsupportedError$("setRange"));
- P.RangeError_checkValidRange(start, end, receiver.length);
- $length = end - start;
- if ($length === 0)
- return;
- P.RangeError_checkNotNegative(skipCount, "skipCount");
- if (type$.List_dynamic._is(iterable)) {
- otherStart = skipCount;
- otherList = iterable;
- } else {
- otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
- otherStart = 0;
- }
- t1 = J.getInterceptor$asx(otherList);
- if (otherStart + $length > t1.get$length(otherList))
- throw H.wrapException(H.IterableElementError_tooFew());
- if (otherStart < start)
- for (i = $length - 1; i >= 0; --i)
- receiver[start + i] = t1.$index(otherList, otherStart + i);
- else
- for (i = 0; i < $length; ++i)
- receiver[start + i] = t1.$index(otherList, otherStart + i);
- },
- setRange$3: function($receiver, start, end, iterable) {
- return this.setRange$4($receiver, start, end, iterable, 0);
- },
- fillRange$3: function(receiver, start, end, fillValue) {
- var i;
- if (!!receiver.immutable$list)
- H.throwExpression(P.UnsupportedError$("fill range"));
- P.RangeError_checkValidRange(start, end, receiver.length);
- for (i = start; i < end; ++i)
- receiver[i] = fillValue;
- },
- any$1: function(receiver, test) {
- var i,
- end = receiver.length;
- for (i = 0; i < end; ++i) {
- if (test.call$1(receiver[i]))
- return true;
- if (receiver.length !== end)
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- return false;
- },
- every$1: function(receiver, test) {
- var i,
- end = receiver.length;
- for (i = 0; i < end; ++i) {
- if (!test.call$1(receiver[i]))
- return false;
- if (receiver.length !== end)
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- return true;
- },
- get$reversed: function(receiver) {
- return new H.ReversedListIterable(receiver, H._arrayInstanceType(receiver)._eval$1("ReversedListIterable<1>"));
- },
- sort$1: function(receiver, compare) {
- if (!!receiver.immutable$list)
- H.throwExpression(P.UnsupportedError$("sort"));
- H.Sort_sort(receiver, compare == null ? J._interceptors_JSArray__compareAny$closure() : compare);
- },
- sort$0: function($receiver) {
- return this.sort$1($receiver, null);
- },
- indexOf$1: function(receiver, element) {
- var i;
- if (0 >= receiver.length)
- return -1;
- for (i = 0; i < receiver.length; ++i)
- if (J.$eq$(receiver[i], element))
- return i;
- return -1;
- },
- contains$1: function(receiver, other) {
- var i;
- for (i = 0; i < receiver.length; ++i)
- if (J.$eq$(receiver[i], other))
- return true;
- return false;
- },
- get$isEmpty: function(receiver) {
- return receiver.length === 0;
- },
- get$isNotEmpty: function(receiver) {
- return receiver.length !== 0;
- },
- toString$0: function(receiver) {
- return P.IterableBase_iterableToFullString(receiver, "[", "]");
- },
- toList$1$growable: function(receiver, growable) {
- var t1 = H._arrayInstanceType(receiver);
- return growable ? H.setRuntimeTypeInfo(receiver.slice(0), t1) : J.JSArray_JSArray$markFixed(receiver.slice(0), t1._precomputed1);
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- },
- toSet$0: function(receiver) {
- return P.LinkedHashSet_LinkedHashSet$from(receiver, H._arrayInstanceType(receiver)._precomputed1);
- },
- get$iterator: function(receiver) {
- return new J.ArrayIterator(receiver, receiver.length);
- },
- get$hashCode: function(receiver) {
- return H.Primitives_objectHashCode(receiver);
- },
- get$length: function(receiver) {
- return receiver.length;
- },
- set$length: function(receiver, newLength) {
- if (!!receiver.fixed$length)
- H.throwExpression(P.UnsupportedError$("set length"));
- if (newLength < 0)
- throw H.wrapException(P.RangeError$range(newLength, 0, null, "newLength", null));
- receiver.length = newLength;
- },
- $index: function(receiver, index) {
- if (!H._isInt(index))
- throw H.wrapException(H.diagnoseIndexError(receiver, index));
- if (index >= receiver.length || index < 0)
- throw H.wrapException(H.diagnoseIndexError(receiver, index));
- return receiver[index];
- },
- $indexSet: function(receiver, index, value) {
- if (!!receiver.immutable$list)
- H.throwExpression(P.UnsupportedError$("indexed set"));
- if (!H._isInt(index))
- throw H.wrapException(H.diagnoseIndexError(receiver, index));
- if (index >= receiver.length || index < 0)
- throw H.wrapException(H.diagnoseIndexError(receiver, index));
- receiver[index] = value;
- },
- $add: function(receiver, other) {
- var totalLength = receiver.length + other.length,
- t1 = H.setRuntimeTypeInfo([], H._arrayInstanceType(receiver));
- this.set$length(t1, totalLength);
- this.setRange$3(t1, 0, receiver.length, receiver);
- this.setRange$3(t1, receiver.length, totalLength, other);
- return t1;
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isList: 1
- };
- J.JSUnmodifiableArray.prototype = {};
- J.ArrayIterator.prototype = {
- get$current: function(_) {
- return this._current;
- },
- moveNext$0: function() {
- var t2, _this = this,
- t1 = _this._iterable,
- $length = t1.length;
- if (_this._length !== $length)
- throw H.wrapException(H.throwConcurrentModificationError(t1));
- t2 = _this._index;
- if (t2 >= $length) {
- _this._current = null;
- return false;
- }
- _this._current = t1[t2];
- _this._index = t2 + 1;
- return true;
- }
- };
- J.JSNumber.prototype = {
- compareTo$1: function(receiver, b) {
- var bIsNegative;
- if (typeof b != "number")
- throw H.wrapException(H.argumentErrorValue(b));
- if (receiver < b)
- return -1;
- else if (receiver > b)
- return 1;
- else if (receiver === b) {
- if (receiver === 0) {
- bIsNegative = this.get$isNegative(b);
- if (this.get$isNegative(receiver) === bIsNegative)
- return 0;
- if (this.get$isNegative(receiver))
- return -1;
- return 1;
- }
- return 0;
- } else if (isNaN(receiver)) {
- if (isNaN(b))
- return 0;
- return 1;
- } else
- return -1;
- },
- get$isNegative: function(receiver) {
- return receiver === 0 ? 1 / receiver < 0 : receiver < 0;
- },
- ceil$0: function(receiver) {
- var truncated, d;
- if (receiver >= 0) {
- if (receiver <= 2147483647) {
- truncated = receiver | 0;
- return receiver === truncated ? truncated : truncated + 1;
- }
- } else if (receiver >= -2147483648)
- return receiver | 0;
- d = Math.ceil(receiver);
- if (isFinite(d))
- return d;
- throw H.wrapException(P.UnsupportedError$("" + receiver + ".ceil()"));
- },
- floor$0: function(receiver) {
- var truncated, d;
- if (receiver >= 0) {
- if (receiver <= 2147483647)
- return receiver | 0;
- } else if (receiver >= -2147483648) {
- truncated = receiver | 0;
- return receiver === truncated ? truncated : truncated - 1;
- }
- d = Math.floor(receiver);
- if (isFinite(d))
- return d;
- throw H.wrapException(P.UnsupportedError$("" + receiver + ".floor()"));
- },
- round$0: function(receiver) {
- if (receiver > 0) {
- if (receiver !== 1 / 0)
- return Math.round(receiver);
- } else if (receiver > -1 / 0)
- return 0 - Math.round(0 - receiver);
- throw H.wrapException(P.UnsupportedError$("" + receiver + ".round()"));
- },
- clamp$2: function(receiver, lowerLimit, upperLimit) {
- if (C.JSInt_methods.compareTo$1(lowerLimit, upperLimit) > 0)
- throw H.wrapException(H.argumentErrorValue(lowerLimit));
- if (this.compareTo$1(receiver, lowerLimit) < 0)
- return lowerLimit;
- if (this.compareTo$1(receiver, upperLimit) > 0)
- return upperLimit;
- return receiver;
- },
- toRadixString$1: function(receiver, radix) {
- var result, match, exponent, t1;
- if (radix < 2 || radix > 36)
- throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", null));
- result = receiver.toString(radix);
- if (C.JSString_methods.codeUnitAt$1(result, result.length - 1) !== 41)
- return result;
- match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result);
- if (match == null)
- H.throwExpression(P.UnsupportedError$("Unexpected toString result: " + result));
- result = match[1];
- exponent = +match[3];
- t1 = match[2];
- if (t1 != null) {
- result += t1;
- exponent -= t1.length;
- }
- return result + C.JSString_methods.$mul("0", exponent);
- },
- toString$0: function(receiver) {
- if (receiver === 0 && 1 / receiver < 0)
- return "-0.0";
- else
- return "" + receiver;
- },
- get$hashCode: function(receiver) {
- var absolute, floorLog2, factor, scaled,
- intValue = receiver | 0;
- if (receiver === intValue)
- return 536870911 & intValue;
- absolute = Math.abs(receiver);
- floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0;
- factor = Math.pow(2, floorLog2);
- scaled = absolute < 1 ? absolute / factor : factor / absolute;
- return 536870911 & ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259;
- },
- $add: function(receiver, other) {
- if (typeof other != "number")
- throw H.wrapException(H.argumentErrorValue(other));
- return receiver + other;
- },
- $mod: function(receiver, other) {
- var result = receiver % other;
- if (result === 0)
- return 0;
- if (result > 0)
- return result;
- if (other < 0)
- return result - other;
- else
- return result + other;
- },
- $tdiv: function(receiver, other) {
- if ((receiver | 0) === receiver)
- if (other >= 1 || other < -1)
- return receiver / other | 0;
- return this._tdivSlow$1(receiver, other);
- },
- _tdivFast$1: function(receiver, other) {
- return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other);
- },
- _tdivSlow$1: function(receiver, other) {
- var quotient = receiver / other;
- if (quotient >= -2147483648 && quotient <= 2147483647)
- return quotient | 0;
- if (quotient > 0) {
- if (quotient !== 1 / 0)
- return Math.floor(quotient);
- } else if (quotient > -1 / 0)
- return Math.ceil(quotient);
- throw H.wrapException(P.UnsupportedError$("Result of truncating division is " + H.S(quotient) + ": " + H.S(receiver) + " ~/ " + other));
- },
- _shrOtherPositive$1: function(receiver, other) {
- var t1;
- if (receiver > 0)
- t1 = this._shrBothPositive$1(receiver, other);
- else {
- t1 = other > 31 ? 31 : other;
- t1 = receiver >> t1 >>> 0;
- }
- return t1;
- },
- _shrReceiverPositive$1: function(receiver, other) {
- if (other < 0)
- throw H.wrapException(H.argumentErrorValue(other));
- return this._shrBothPositive$1(receiver, other);
- },
- _shrBothPositive$1: function(receiver, other) {
- return other > 31 ? 0 : receiver >>> other;
- },
- $isComparable: 1,
- $isdouble: 1,
- $isnum: 1
- };
- J.JSInt.prototype = {$isint: 1};
- J.JSDouble.prototype = {};
- J.JSString.prototype = {
- codeUnitAt$1: function(receiver, index) {
- if (!H._isInt(index))
- throw H.wrapException(H.diagnoseIndexError(receiver, index));
- if (index < 0)
- throw H.wrapException(H.diagnoseIndexError(receiver, index));
- if (index >= receiver.length)
- H.throwExpression(H.diagnoseIndexError(receiver, index));
- return receiver.charCodeAt(index);
- },
- _codeUnitAt$1: function(receiver, index) {
- if (index >= receiver.length)
- throw H.wrapException(H.diagnoseIndexError(receiver, index));
- return receiver.charCodeAt(index);
- },
- allMatches$2: function(receiver, string, start) {
- var t1;
- if (typeof string != "string")
- H.throwExpression(H.argumentErrorValue(string));
- t1 = string.length;
- if (start > t1)
- throw H.wrapException(P.RangeError$range(start, 0, t1, null, null));
- return new H._StringAllMatchesIterable(string, receiver, start);
- },
- allMatches$1: function($receiver, string) {
- return this.allMatches$2($receiver, string, 0);
- },
- matchAsPrefix$2: function(receiver, string, start) {
- var t1, t2, i, _null = null;
- if (start < 0 || start > string.length)
- throw H.wrapException(P.RangeError$range(start, 0, string.length, _null, _null));
- t1 = receiver.length;
- if (start + t1 > string.length)
- return _null;
- for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
- if (t2.codeUnitAt$1(string, start + i) !== this._codeUnitAt$1(receiver, i))
- return _null;
- return new H.StringMatch(start, receiver);
- },
- $add: function(receiver, other) {
- if (typeof other != "string")
- throw H.wrapException(P.ArgumentError$value(other, null, null));
- return receiver + other;
- },
- endsWith$1: function(receiver, other) {
- var otherLength = other.length,
- t1 = receiver.length;
- if (otherLength > t1)
- return false;
- return other === this.substring$1(receiver, t1 - otherLength);
- },
- replaceFirst$2: function(receiver, from, to) {
- P.RangeError_checkValueInInterval(0, 0, receiver.length, "startIndex");
- return H.stringReplaceFirstUnchecked(receiver, from, to, 0);
- },
- replaceRange$3: function(receiver, start, end, replacement) {
- if (typeof replacement != "string")
- H.throwExpression(H.argumentErrorValue(replacement));
- end = P.RangeError_checkValidRange(start, end, receiver.length);
- return H.stringReplaceRangeUnchecked(receiver, start, end, replacement);
- },
- startsWith$2: function(receiver, pattern, index) {
- var endIndex;
- if (!H._isInt(index))
- H.throwExpression(H.argumentErrorValue(index));
- if (index < 0 || index > receiver.length)
- throw H.wrapException(P.RangeError$range(index, 0, receiver.length, null, null));
- if (typeof pattern == "string") {
- endIndex = index + pattern.length;
- if (endIndex > receiver.length)
- return false;
- return pattern === receiver.substring(index, endIndex);
- }
- return J.matchAsPrefix$2$s(pattern, receiver, index) != null;
- },
- startsWith$1: function($receiver, pattern) {
- return this.startsWith$2($receiver, pattern, 0);
- },
- substring$2: function(receiver, startIndex, endIndex) {
- var _null = null;
- if (!H._isInt(startIndex))
- H.throwExpression(H.argumentErrorValue(startIndex));
- if (endIndex == null)
- endIndex = receiver.length;
- if (startIndex < 0)
- throw H.wrapException(P.RangeError$value(startIndex, _null, _null));
- if (startIndex > endIndex)
- throw H.wrapException(P.RangeError$value(startIndex, _null, _null));
- if (endIndex > receiver.length)
- throw H.wrapException(P.RangeError$value(endIndex, _null, _null));
- return receiver.substring(startIndex, endIndex);
- },
- substring$1: function($receiver, startIndex) {
- return this.substring$2($receiver, startIndex, null);
- },
- trim$0: function(receiver) {
- var startIndex, t1, endIndex0,
- result = receiver.trim(),
- endIndex = result.length;
- if (endIndex === 0)
- return result;
- if (this._codeUnitAt$1(result, 0) === 133) {
- startIndex = J.JSString__skipLeadingWhitespace(result, 1);
- if (startIndex === endIndex)
- return "";
- } else
- startIndex = 0;
- t1 = endIndex - 1;
- endIndex0 = this.codeUnitAt$1(result, t1) === 133 ? J.JSString__skipTrailingWhitespace(result, t1) : endIndex;
- if (startIndex === 0 && endIndex0 === endIndex)
- return result;
- return result.substring(startIndex, endIndex0);
- },
- trimRight$0: function(receiver) {
- var result, endIndex, t1;
- if (typeof receiver.trimRight != "undefined") {
- result = receiver.trimRight();
- endIndex = result.length;
- if (endIndex === 0)
- return result;
- t1 = endIndex - 1;
- if (this.codeUnitAt$1(result, t1) === 133)
- endIndex = J.JSString__skipTrailingWhitespace(result, t1);
- } else {
- endIndex = J.JSString__skipTrailingWhitespace(receiver, receiver.length);
- result = receiver;
- }
- if (endIndex === result.length)
- return result;
- if (endIndex === 0)
- return "";
- return result.substring(0, endIndex);
- },
- $mul: function(receiver, times) {
- var s, result;
- if (0 >= times)
- return "";
- if (times === 1 || receiver.length === 0)
- return receiver;
- if (times !== times >>> 0)
- throw H.wrapException(C.C_OutOfMemoryError);
- for (s = receiver, result = ""; true;) {
- if ((times & 1) === 1)
- result = s + result;
- times = times >>> 1;
- if (times === 0)
- break;
- s += s;
- }
- return result;
- },
- padLeft$2: function(receiver, width, padding) {
- var delta = width - receiver.length;
- if (delta <= 0)
- return receiver;
- return this.$mul(padding, delta) + receiver;
- },
- padRight$1: function(receiver, width) {
- var delta = width - receiver.length;
- if (delta <= 0)
- return receiver;
- return receiver + this.$mul(" ", delta);
- },
- indexOf$2: function(receiver, pattern, start) {
- var t1, t2, i;
- if (pattern == null)
- H.throwExpression(H.argumentErrorValue(pattern));
- if (start < 0 || start > receiver.length)
- throw H.wrapException(P.RangeError$range(start, 0, receiver.length, null, null));
- if (typeof pattern == "string")
- return receiver.indexOf(pattern, start);
- for (t1 = receiver.length, t2 = J.getInterceptor$s(pattern), i = start; i <= t1; ++i)
- if (t2.matchAsPrefix$2(pattern, receiver, i) != null)
- return i;
- return -1;
- },
- indexOf$1: function($receiver, pattern) {
- return this.indexOf$2($receiver, pattern, 0);
- },
- lastIndexOf$2: function(receiver, pattern, start) {
- var t1, t2, i;
- if (pattern == null)
- H.throwExpression(H.argumentErrorValue(pattern));
- if (start == null)
- start = receiver.length;
- else if (start < 0 || start > receiver.length)
- throw H.wrapException(P.RangeError$range(start, 0, receiver.length, null, null));
- if (typeof pattern == "string") {
- t1 = pattern.length;
- t2 = receiver.length;
- if (start + t1 > t2)
- start = t2 - t1;
- return receiver.lastIndexOf(pattern, start);
- }
- for (t1 = J.getInterceptor$s(pattern), i = start; i >= 0; --i)
- if (t1.matchAsPrefix$2(pattern, receiver, i) != null)
- return i;
- return -1;
- },
- lastIndexOf$1: function($receiver, pattern) {
- return this.lastIndexOf$2($receiver, pattern, null);
- },
- contains$2: function(receiver, other, startIndex) {
- var t1;
- if (other == null)
- H.throwExpression(H.argumentErrorValue(other));
- t1 = receiver.length;
- if (startIndex > t1)
- throw H.wrapException(P.RangeError$range(startIndex, 0, t1, null, null));
- return H.stringContainsUnchecked(receiver, other, startIndex);
- },
- contains$1: function($receiver, other) {
- return this.contains$2($receiver, other, 0);
- },
- get$isNotEmpty: function(receiver) {
- return receiver.length !== 0;
- },
- compareTo$1: function(receiver, other) {
- var t1;
- if (typeof other != "string")
- throw H.wrapException(H.argumentErrorValue(other));
- if (receiver === other)
- t1 = 0;
- else
- t1 = receiver < other ? -1 : 1;
- return t1;
- },
- toString$0: function(receiver) {
- return receiver;
- },
- get$hashCode: function(receiver) {
- var t1, hash, i;
- for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) {
- hash = 536870911 & hash + receiver.charCodeAt(i);
- hash = 536870911 & hash + ((524287 & hash) << 10);
- hash ^= hash >> 6;
- }
- hash = 536870911 & hash + ((67108863 & hash) << 3);
- hash ^= hash >> 11;
- return 536870911 & hash + ((16383 & hash) << 15);
- },
- get$length: function(receiver) {
- return receiver.length;
- },
- $isComparable: 1,
- $isString: 1
- };
- H._CastIterableBase.prototype = {
- get$iterator: function(_) {
- var t1 = H._instanceType(this);
- 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>"));
- },
- get$length: function(_) {
- return J.get$length$asx(this.get$_source());
- },
- get$isEmpty: function(_) {
- return J.get$isEmpty$asx(this.get$_source());
- },
- get$isNotEmpty: function(_) {
- return J.get$isNotEmpty$asx(this.get$_source());
- },
- skip$1: function(_, count) {
- var t1 = H._instanceType(this);
- return H.CastIterable_CastIterable(J.skip$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
- },
- take$1: function(_, count) {
- var t1 = H._instanceType(this);
- return H.CastIterable_CastIterable(J.take$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
- },
- elementAt$1: function(_, index) {
- return H._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$_source(), index));
- },
- get$first: function(_) {
- return H._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$_source()));
- },
- get$last: function(_) {
- return H._instanceType(this)._rest[1]._as(J.get$last$ax(this.get$_source()));
- },
- get$single: function(_) {
- return H._instanceType(this)._rest[1]._as(J.get$single$ax(this.get$_source()));
- },
- contains$1: function(_, other) {
- return J.contains$1$asx(this.get$_source(), other);
- },
- toString$0: function(_) {
- return J.toString$0$(this.get$_source());
- }
- };
- H.CastIterator.prototype = {
- moveNext$0: function() {
- return this._source.moveNext$0();
- },
- get$current: function(_) {
- var t1 = this._source;
- return this.$ti._rest[1]._as(t1.get$current(t1));
- }
- };
- H.CastIterable.prototype = {
- cast$1$0: function(_, $R) {
- return H.CastIterable_CastIterable(this._source, H._instanceType(this)._precomputed1, $R);
- },
- get$_source: function() {
- return this._source;
- }
- };
- H._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1};
- H._CastListBase.prototype = {
- $index: function(_, index) {
- return this.$ti._rest[1]._as(J.$index$asx(this._source, index));
- },
- $indexSet: function(_, index, value) {
- J.$indexSet$ax(this._source, index, this.$ti._precomputed1._as(value));
- },
- set$length: function(_, $length) {
- J.set$length$asx(this._source, $length);
- },
- add$1: function(_, value) {
- J.add$1$ax(this._source, this.$ti._precomputed1._as(value));
- },
- addAll$1: function(_, values) {
- var t1 = this.$ti;
- J.addAll$1$ax(this._source, H.CastIterable_CastIterable(values, t1._rest[1], t1._precomputed1));
- },
- sort$1: function(_, compare) {
- var t1 = compare == null ? null : new H._CastListBase_sort_closure(this, compare);
- J.sort$1$ax(this._source, t1);
- },
- setRange$4: function(_, start, end, iterable, skipCount) {
- var t1 = this.$ti;
- J.setRange$4$ax(this._source, start, end, H.CastIterable_CastIterable(iterable, t1._rest[1], t1._precomputed1), skipCount);
- },
- fillRange$3: function(_, start, end, fillValue) {
- J.fillRange$3$ax(this._source, start, end, this.$ti._precomputed1._as(fillValue));
- },
- $isEfficientLengthIterable: 1,
- $isList: 1
- };
- H._CastListBase_sort_closure.prototype = {
- call$2: function(v1, v2) {
- var t1 = this.$this.$ti._rest[1];
- return this.compare.call$2(t1._as(v1), t1._as(v2));
- },
- $signature: function() {
- return this.$this.$ti._eval$1("int(1,1)");
- }
- };
- H.CastList.prototype = {
- cast$1$0: function(_, $R) {
- return new H.CastList(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
- },
- get$_source: function() {
- return this._source;
- }
- };
- H.CastSet.prototype = {
- cast$1$0: function(_, $R) {
- return new H.CastSet(this._source, this._emptySet, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastSet<1,2>"));
- },
- add$1: function(_, value) {
- return this._source.add$1(0, this.$ti._precomputed1._as(value));
- },
- addAll$1: function(_, elements) {
- var t1 = this.$ti;
- this._source.addAll$1(0, H.CastIterable_CastIterable(elements, t1._rest[1], t1._precomputed1));
- },
- toSet$0: function(_) {
- var t1 = this._emptySet,
- result = t1 == null ? P.LinkedHashSet_LinkedHashSet(this.$ti._rest[1]) : t1.call$0();
- result.addAll$1(0, this);
- return result;
- },
- $isEfficientLengthIterable: 1,
- $isSet: 1,
- get$_source: function() {
- return this._source;
- }
- };
- H.CastQueue.prototype = {
- cast$1$0: function(_, $R) {
- return new H.CastQueue(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastQueue<1,2>"));
- },
- add$1: function(_, value) {
- this._source._add$1(this.$ti._precomputed1._as(value));
- },
- $isEfficientLengthIterable: 1,
- $isQueue: 1,
- get$_source: function() {
- return this._source;
- }
- };
- H.CodeUnits.prototype = {
- get$length: function(_) {
- return this._string.length;
- },
- $index: function(_, i) {
- return C.JSString_methods.codeUnitAt$1(this._string, i);
- }
- };
- H.EfficientLengthIterable.prototype = {};
- H.ListIterable.prototype = {
- get$iterator: function(_) {
- return new H.ListIterator(this, this.get$length(this));
- },
- get$isEmpty: function(_) {
- return this.get$length(this) === 0;
- },
- get$first: function(_) {
- if (this.get$length(this) === 0)
- throw H.wrapException(H.IterableElementError_noElement());
- return this.elementAt$1(0, 0);
- },
- get$last: function(_) {
- var _this = this;
- if (_this.get$length(_this) === 0)
- throw H.wrapException(H.IterableElementError_noElement());
- return _this.elementAt$1(0, _this.get$length(_this) - 1);
- },
- get$single: function(_) {
- var _this = this;
- if (_this.get$length(_this) === 0)
- throw H.wrapException(H.IterableElementError_noElement());
- if (_this.get$length(_this) > 1)
- throw H.wrapException(H.IterableElementError_tooMany());
- return _this.elementAt$1(0, 0);
- },
- contains$1: function(_, element) {
- var i, _this = this,
- $length = _this.get$length(_this);
- for (i = 0; i < $length; ++i) {
- if (J.$eq$(_this.elementAt$1(0, i), element))
- return true;
- if ($length !== _this.get$length(_this))
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- }
- return false;
- },
- any$1: function(_, test) {
- var i, _this = this,
- $length = _this.get$length(_this);
- for (i = 0; i < $length; ++i) {
- if (test.call$1(_this.elementAt$1(0, i)))
- return true;
- if ($length !== _this.get$length(_this))
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- }
- return false;
- },
- join$1: function(_, separator) {
- var first, t1, i, _this = this,
- $length = _this.get$length(_this);
- if (separator.length !== 0) {
- if ($length === 0)
- return "";
- first = H.S(_this.elementAt$1(0, 0));
- if ($length !== _this.get$length(_this))
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- for (t1 = first, i = 1; i < $length; ++i) {
- t1 = t1 + separator + H.S(_this.elementAt$1(0, i));
- if ($length !== _this.get$length(_this))
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else {
- for (i = 0, t1 = ""; i < $length; ++i) {
- t1 += H.S(_this.elementAt$1(0, i));
- if ($length !== _this.get$length(_this))
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- },
- join$0: function($receiver) {
- return this.join$1($receiver, "");
- },
- where$1: function(_, test) {
- return this.super$Iterable$where(0, test);
- },
- map$1$1: function(_, f, $T) {
- return new H.MappedListIterable(this, f, H._instanceType(this)._eval$1("@<ListIterable.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
- },
- reduce$1: function(_, combine) {
- var value, i, _this = this,
- $length = _this.get$length(_this);
- if ($length === 0)
- throw H.wrapException(H.IterableElementError_noElement());
- value = _this.elementAt$1(0, 0);
- for (i = 1; i < $length; ++i) {
- value = combine.call$2(value, _this.elementAt$1(0, i));
- if ($length !== _this.get$length(_this))
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- }
- return value;
- },
- fold$1$2: function(_, initialValue, combine) {
- var value, i, _this = this,
- $length = _this.get$length(_this);
- for (value = initialValue, i = 0; i < $length; ++i) {
- value = combine.call$2(value, _this.elementAt$1(0, i));
- if ($length !== _this.get$length(_this))
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- }
- return value;
- },
- fold$2: function($receiver, initialValue, combine) {
- return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
- },
- skip$1: function(_, count) {
- return H.SubListIterable$(this, count, null, H._instanceType(this)._eval$1("ListIterable.E"));
- },
- take$1: function(_, count) {
- return H.SubListIterable$(this, 0, count, H._instanceType(this)._eval$1("ListIterable.E"));
- },
- toList$1$growable: function(_, growable) {
- var result, t2, i, _this = this,
- t1 = H._instanceType(_this)._eval$1("JSArray<ListIterable.E>");
- if (growable) {
- result = H.setRuntimeTypeInfo([], t1);
- C.JSArray_methods.set$length(result, _this.get$length(_this));
- } else {
- t2 = new Array(_this.get$length(_this));
- t2.fixed$length = Array;
- result = H.setRuntimeTypeInfo(t2, t1);
- }
- for (i = 0; i < _this.get$length(_this); ++i)
- result[i] = _this.elementAt$1(0, i);
- return result;
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- },
- toSet$0: function(_) {
- var i, _this = this,
- result = P.LinkedHashSet_LinkedHashSet(H._instanceType(_this)._eval$1("ListIterable.E"));
- for (i = 0; i < _this.get$length(_this); ++i)
- result.add$1(0, _this.elementAt$1(0, i));
- return result;
- }
- };
- H.SubListIterable.prototype = {
- get$_endIndex: function() {
- var $length = J.get$length$asx(this.__internal$_iterable),
- t1 = this._endOrLength;
- if (t1 == null || t1 > $length)
- return $length;
- return t1;
- },
- get$_startIndex: function() {
- var $length = J.get$length$asx(this.__internal$_iterable),
- t1 = this._start;
- if (t1 > $length)
- return $length;
- return t1;
- },
- get$length: function(_) {
- var t2,
- $length = J.get$length$asx(this.__internal$_iterable),
- t1 = this._start;
- if (t1 >= $length)
- return 0;
- t2 = this._endOrLength;
- if (t2 == null || t2 >= $length)
- return $length - t1;
- return t2 - t1;
- },
- elementAt$1: function(_, index) {
- var _this = this,
- realIndex = _this.get$_startIndex() + index;
- if (index < 0 || realIndex >= _this.get$_endIndex())
- throw H.wrapException(P.IndexError$(index, _this, "index", null, null));
- return J.elementAt$1$ax(_this.__internal$_iterable, realIndex);
- },
- skip$1: function(_, count) {
- var newStart, t1, _this = this;
- P.RangeError_checkNotNegative(count, "count");
- newStart = _this._start + count;
- t1 = _this._endOrLength;
- if (t1 != null && newStart >= t1)
- return new H.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>"));
- return H.SubListIterable$(_this.__internal$_iterable, newStart, t1, _this.$ti._precomputed1);
- },
- take$1: function(_, count) {
- var t1, t2, newEnd, _this = this;
- P.RangeError_checkNotNegative(count, "count");
- t1 = _this._endOrLength;
- t2 = _this._start;
- if (t1 == null)
- return H.SubListIterable$(_this.__internal$_iterable, t2, t2 + count, _this.$ti._precomputed1);
- else {
- newEnd = t2 + count;
- if (t1 < newEnd)
- return _this;
- return H.SubListIterable$(_this.__internal$_iterable, t2, newEnd, _this.$ti._precomputed1);
- }
- },
- toList$1$growable: function(_, growable) {
- var $length, t3, result, t4, i, _this = this,
- start = _this._start,
- t1 = _this.__internal$_iterable,
- t2 = J.getInterceptor$asx(t1),
- end = t2.get$length(t1),
- end0 = _this._endOrLength;
- if (end0 != null && end0 < end)
- end = end0;
- $length = end - start;
- if ($length < 0)
- $length = 0;
- t3 = _this.$ti._eval$1("JSArray<1>");
- if (growable) {
- result = H.setRuntimeTypeInfo([], t3);
- C.JSArray_methods.set$length(result, $length);
- } else {
- t4 = new Array($length);
- t4.fixed$length = Array;
- result = H.setRuntimeTypeInfo(t4, t3);
- }
- for (i = 0; i < $length; ++i) {
- result[i] = t2.elementAt$1(t1, start + i);
- if (t2.get$length(t1) < end)
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- }
- return result;
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- }
- };
- H.ListIterator.prototype = {
- get$current: function(_) {
- return this.__internal$_current;
- },
- moveNext$0: function() {
- var t3, _this = this,
- t1 = _this.__internal$_iterable,
- t2 = J.getInterceptor$asx(t1),
- $length = t2.get$length(t1);
- if (_this.__internal$_length !== $length)
- throw H.wrapException(P.ConcurrentModificationError$(t1));
- t3 = _this.__internal$_index;
- if (t3 >= $length) {
- _this.__internal$_current = null;
- return false;
- }
- _this.__internal$_current = t2.elementAt$1(t1, t3);
- ++_this.__internal$_index;
- return true;
- }
- };
- H.MappedIterable.prototype = {
- get$iterator: function(_) {
- return new H.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
- },
- get$length: function(_) {
- return J.get$length$asx(this.__internal$_iterable);
- },
- get$isEmpty: function(_) {
- return J.get$isEmpty$asx(this.__internal$_iterable);
- },
- get$first: function(_) {
- return this._f.call$1(J.get$first$ax(this.__internal$_iterable));
- },
- get$last: function(_) {
- return this._f.call$1(J.get$last$ax(this.__internal$_iterable));
- },
- get$single: function(_) {
- return this._f.call$1(J.get$single$ax(this.__internal$_iterable));
- },
- elementAt$1: function(_, index) {
- return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index));
- }
- };
- H.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1};
- H.MappedIterator.prototype = {
- moveNext$0: function() {
- var _this = this,
- t1 = _this._iterator;
- if (t1.moveNext$0()) {
- _this.__internal$_current = _this._f.call$1(t1.get$current(t1));
- return true;
- }
- _this.__internal$_current = null;
- return false;
- },
- get$current: function(_) {
- return this.__internal$_current;
- }
- };
- H.MappedListIterable.prototype = {
- get$length: function(_) {
- return J.get$length$asx(this._source);
- },
- elementAt$1: function(_, index) {
- return this._f.call$1(J.elementAt$1$ax(this._source, index));
- }
- };
- H.WhereIterable.prototype = {
- get$iterator: function(_) {
- return new H.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
- },
- map$1$1: function(_, f, $T) {
- return new H.MappedIterable(this, f, this.$ti._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
- }
- };
- H.WhereIterator.prototype = {
- moveNext$0: function() {
- var t1, t2;
- for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();)
- if (t2.call$1(t1.get$current(t1)))
- return true;
- return false;
- },
- get$current: function(_) {
- var t1 = this._iterator;
- return t1.get$current(t1);
- }
- };
- H.ExpandIterable.prototype = {
- get$iterator: function(_) {
- return new H.ExpandIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, C.C_EmptyIterator);
- }
- };
- H.ExpandIterator.prototype = {
- get$current: function(_) {
- return this.__internal$_current;
- },
- moveNext$0: function() {
- var t2, t3, _this = this,
- t1 = _this._currentExpansion;
- if (t1 == null)
- return false;
- for (t2 = _this._iterator, t3 = _this._f; !t1.moveNext$0();) {
- _this.__internal$_current = null;
- if (t2.moveNext$0()) {
- _this._currentExpansion = null;
- t1 = J.get$iterator$ax(t3.call$1(t2.get$current(t2)));
- _this._currentExpansion = t1;
- } else
- return false;
- }
- t1 = _this._currentExpansion;
- _this.__internal$_current = t1.get$current(t1);
- return true;
- }
- };
- H.TakeIterable.prototype = {
- get$iterator: function(_) {
- return new H.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount);
- }
- };
- H.EfficientLengthTakeIterable.prototype = {
- get$length: function(_) {
- var iterableLength = J.get$length$asx(this.__internal$_iterable),
- t1 = this._takeCount;
- if (iterableLength > t1)
- return t1;
- return iterableLength;
- },
- $isEfficientLengthIterable: 1
- };
- H.TakeIterator.prototype = {
- moveNext$0: function() {
- if (--this._remaining >= 0)
- return this._iterator.moveNext$0();
- this._remaining = -1;
- return false;
- },
- get$current: function(_) {
- var t1;
- if (this._remaining < 0)
- return null;
- t1 = this._iterator;
- return t1.get$current(t1);
- }
- };
- H.SkipIterable.prototype = {
- skip$1: function(_, count) {
- P.ArgumentError_checkNotNull(count, "count");
- P.RangeError_checkNotNegative(count, "count");
- return new H.SkipIterable(this.__internal$_iterable, this._skipCount + count, H._instanceType(this)._eval$1("SkipIterable<1>"));
- },
- get$iterator: function(_) {
- return new H.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount);
- }
- };
- H.EfficientLengthSkipIterable.prototype = {
- get$length: function(_) {
- var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount;
- if ($length >= 0)
- return $length;
- return 0;
- },
- skip$1: function(_, count) {
- P.ArgumentError_checkNotNull(count, "count");
- P.RangeError_checkNotNegative(count, "count");
- return new H.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti);
- },
- $isEfficientLengthIterable: 1
- };
- H.SkipIterator.prototype = {
- moveNext$0: function() {
- var t1, i;
- for (t1 = this._iterator, i = 0; i < this._skipCount; ++i)
- t1.moveNext$0();
- this._skipCount = 0;
- return t1.moveNext$0();
- },
- get$current: function(_) {
- var t1 = this._iterator;
- return t1.get$current(t1);
- }
- };
- H.SkipWhileIterable.prototype = {
- get$iterator: function(_) {
- return new H.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
- }
- };
- H.SkipWhileIterator.prototype = {
- moveNext$0: function() {
- var t1, t2, _this = this;
- if (!_this._hasSkipped) {
- _this._hasSkipped = true;
- for (t1 = _this._iterator, t2 = _this._f; t1.moveNext$0();)
- if (!t2.call$1(t1.get$current(t1)))
- return true;
- }
- return _this._iterator.moveNext$0();
- },
- get$current: function(_) {
- var t1 = this._iterator;
- return t1.get$current(t1);
- }
- };
- H.EmptyIterable.prototype = {
- get$iterator: function(_) {
- return C.C_EmptyIterator;
- },
- get$isEmpty: function(_) {
- return true;
- },
- get$length: function(_) {
- return 0;
- },
- get$first: function(_) {
- throw H.wrapException(H.IterableElementError_noElement());
- },
- get$last: function(_) {
- throw H.wrapException(H.IterableElementError_noElement());
- },
- get$single: function(_) {
- throw H.wrapException(H.IterableElementError_noElement());
- },
- elementAt$1: function(_, index) {
- throw H.wrapException(P.RangeError$range(index, 0, 0, "index", null));
- },
- contains$1: function(_, element) {
- return false;
- },
- join$1: function(_, separator) {
- return "";
- },
- join$0: function($receiver) {
- return this.join$1($receiver, "");
- },
- where$1: function(_, test) {
- return this;
- },
- map$1$1: function(_, f, $T) {
- return new H.EmptyIterable($T._eval$1("EmptyIterable<0>"));
- },
- skip$1: function(_, count) {
- P.RangeError_checkNotNegative(count, "count");
- return this;
- },
- take$1: function(_, count) {
- P.RangeError_checkNotNegative(count, "count");
- return this;
- },
- toList$1$growable: function(_, growable) {
- var t2,
- t1 = this.$ti._eval$1("JSArray<1>");
- if (growable)
- t1 = H.setRuntimeTypeInfo([], t1);
- else {
- t2 = new Array(0);
- t2.fixed$length = Array;
- t1 = H.setRuntimeTypeInfo(t2, t1);
- }
- return t1;
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- },
- toSet$0: function(_) {
- return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
- }
- };
- H.EmptyIterator.prototype = {
- moveNext$0: function() {
- return false;
- },
- get$current: function(_) {
- return null;
- }
- };
- H.FollowedByIterable.prototype = {
- get$iterator: function(_) {
- return new H.FollowedByIterator(J.get$iterator$ax(this.__internal$_first), this._second);
- },
- get$length: function(_) {
- var t1 = this._second;
- return J.get$length$asx(this.__internal$_first) + t1.get$length(t1);
- },
- get$isEmpty: function(_) {
- var t1;
- if (J.get$isEmpty$asx(this.__internal$_first)) {
- t1 = this._second;
- t1 = t1.get$isEmpty(t1);
- } else
- t1 = false;
- return t1;
- },
- get$isNotEmpty: function(_) {
- var t1;
- if (!J.get$isNotEmpty$asx(this.__internal$_first)) {
- t1 = this._second;
- t1 = t1.get$isNotEmpty(t1);
- } else
- t1 = true;
- return t1;
- },
- contains$1: function(_, value) {
- return J.contains$1$asx(this.__internal$_first, value) || this._second.contains$1(0, value);
- },
- get$first: function(_) {
- var t1,
- iterator = J.get$iterator$ax(this.__internal$_first);
- if (iterator.moveNext$0())
- return iterator.get$current(iterator);
- t1 = this._second;
- return t1.get$first(t1);
- },
- get$last: function(_) {
- var last,
- t1 = this._second,
- iterator = t1.get$iterator(t1);
- if (iterator.moveNext$0()) {
- last = iterator.get$current(iterator);
- for (; iterator.moveNext$0();)
- last = iterator.get$current(iterator);
- return last;
- }
- return J.get$last$ax(this.__internal$_first);
- }
- };
- H.EfficientLengthFollowedByIterable.prototype = {
- skip$1: function(_, count) {
- var _this = this,
- t1 = _this.__internal$_first,
- t2 = J.getInterceptor$asx(t1),
- firstLength = t2.get$length(t1);
- if (count >= firstLength) {
- t1 = _this._second;
- return H.SkipIterable_SkipIterable(t1, count - firstLength, H._instanceType(t1)._eval$1("Iterable.E"));
- }
- return new H.EfficientLengthFollowedByIterable(t2.skip$1(t1, count), _this._second, _this.$ti);
- },
- take$1: function(_, count) {
- var t1 = this.__internal$_first,
- t2 = J.getInterceptor$asx(t1),
- firstLength = t2.get$length(t1);
- if (count <= firstLength)
- return t2.take$1(t1, count);
- t2 = this._second;
- return new H.EfficientLengthFollowedByIterable(t1, H.TakeIterable_TakeIterable(t2, count - firstLength, H._instanceType(t2)._eval$1("Iterable.E")), this.$ti);
- },
- elementAt$1: function(_, index) {
- var t1 = this.__internal$_first,
- t2 = J.getInterceptor$asx(t1),
- firstLength = t2.get$length(t1);
- if (index < firstLength)
- return t2.elementAt$1(t1, index);
- return this._second.elementAt$1(0, index - firstLength);
- },
- get$first: function(_) {
- var t1 = this.__internal$_first,
- t2 = J.getInterceptor$asx(t1);
- if (t2.get$isNotEmpty(t1))
- return t2.get$first(t1);
- t1 = this._second;
- return t1.get$first(t1);
- },
- get$last: function(_) {
- var t1 = this._second;
- if (t1.get$isNotEmpty(t1))
- return t1.get$last(t1);
- return J.get$last$ax(this.__internal$_first);
- },
- $isEfficientLengthIterable: 1
- };
- H.FollowedByIterator.prototype = {
- moveNext$0: function() {
- var t1, _this = this;
- if (_this._currentIterator.moveNext$0())
- return true;
- t1 = _this._nextIterable;
- if (t1 != null) {
- t1 = t1.get$iterator(t1);
- _this._currentIterator = t1;
- _this._nextIterable = null;
- return t1.moveNext$0();
- }
- return false;
- },
- get$current: function(_) {
- var t1 = this._currentIterator;
- return t1.get$current(t1);
- }
- };
- H.WhereTypeIterable.prototype = {
- get$iterator: function(_) {
- return new H.WhereTypeIterator(J.get$iterator$ax(this._source), this.$ti._eval$1("WhereTypeIterator<1>"));
- }
- };
- H.WhereTypeIterator.prototype = {
- moveNext$0: function() {
- var t1, t2;
- for (t1 = this._source, t2 = this.$ti._precomputed1; t1.moveNext$0();)
- if (t2._is(t1.get$current(t1)))
- return true;
- return false;
- },
- get$current: function(_) {
- var t1 = this._source;
- return t1.get$current(t1);
- }
- };
- H.FixedLengthListMixin.prototype = {
- set$length: function(receiver, newLength) {
- throw H.wrapException(P.UnsupportedError$("Cannot change the length of a fixed-length list"));
- },
- add$1: function(receiver, value) {
- throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list"));
- },
- addAll$1: function(receiver, iterable) {
- throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list"));
- }
- };
- H.UnmodifiableListMixin.prototype = {
- $indexSet: function(_, index, value) {
- throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
- },
- set$length: function(_, newLength) {
- throw H.wrapException(P.UnsupportedError$("Cannot change the length of an unmodifiable list"));
- },
- add$1: function(_, value) {
- throw H.wrapException(P.UnsupportedError$("Cannot add to an unmodifiable list"));
- },
- addAll$1: function(_, iterable) {
- throw H.wrapException(P.UnsupportedError$("Cannot add to an unmodifiable list"));
- },
- sort$1: function(_, compare) {
- throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
- },
- setRange$4: function(_, start, end, iterable, skipCount) {
- throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
- },
- fillRange$3: function(_, start, end, fillValue) {
- throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
- }
- };
- H.UnmodifiableListBase.prototype = {};
- H.ReversedListIterable.prototype = {
- get$length: function(_) {
- return J.get$length$asx(this._source);
- },
- elementAt$1: function(_, index) {
- var t1 = this._source,
- t2 = J.getInterceptor$asx(t1);
- return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index);
- }
- };
- H.Symbol.prototype = {
- get$hashCode: function(_) {
- var hash = this._hashCode;
- if (hash != null)
- return hash;
- hash = 536870911 & 664597 * J.get$hashCode$(this.__internal$_name);
- this._hashCode = hash;
- return hash;
- },
- toString$0: function(_) {
- return 'Symbol("' + H.S(this.__internal$_name) + '")';
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof H.Symbol && this.__internal$_name == other.__internal$_name;
- },
- $isSymbol0: 1
- };
- H.__CastListBase__CastIterableBase_ListMixin.prototype = {};
- H.ConstantMapView.prototype = {};
- H.ConstantMap.prototype = {
- get$isEmpty: function(_) {
- return this.get$length(this) === 0;
- },
- get$isNotEmpty: function(_) {
- return this.get$length(this) !== 0;
- },
- toString$0: function(_) {
- return P.MapBase_mapToString(this);
- },
- $indexSet: function(_, key, val) {
- return H.ConstantMap__throwUnmodifiable();
- },
- putIfAbsent$2: function(key, ifAbsent) {
- return H.ConstantMap__throwUnmodifiable();
- },
- remove$1: function(_, key) {
- return H.ConstantMap__throwUnmodifiable();
- },
- addAll$1: function(_, other) {
- return H.ConstantMap__throwUnmodifiable();
- },
- get$entries: function() {
- return this.entries$body$ConstantMap(H._instanceType(this)._eval$1("MapEntry<1,2>"));
- },
- entries$body$ConstantMap: function($async$type) {
- var $async$self = this;
- return P._makeSyncStarIterable(function() {
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, key;
- return function $async$get$entries($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- 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>");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- key = t1.get$current(t1);
- $async$goto = 4;
- return new P.MapEntry(key, $async$self.$index(0, key), t2);
- case 4:
- // after yield
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._IterationMarker_endOfIteration();
- case 1:
- // rethrow
- return P._IterationMarker_uncaughtError($async$currentError);
- }
- };
- }, $async$type);
- },
- $isMap: 1
- };
- H.ConstantStringMap.prototype = {
- get$length: function(_) {
- return this.__js_helper$_length;
- },
- containsKey$1: function(key) {
- if (typeof key != "string")
- return false;
- if ("__proto__" === key)
- return false;
- return this._jsObject.hasOwnProperty(key);
- },
- $index: function(_, key) {
- if (!this.containsKey$1(key))
- return null;
- return this._fetch$1(key);
- },
- _fetch$1: function(key) {
- return this._jsObject[key];
- },
- forEach$1: function(_, f) {
- var t1, i, key,
- keys = this.__js_helper$_keys;
- for (t1 = keys.length, i = 0; i < t1; ++i) {
- key = keys[i];
- f.call$2(key, this._fetch$1(key));
- }
- },
- get$keys: function() {
- return new H._ConstantMapKeyIterable(this, H._instanceType(this)._eval$1("_ConstantMapKeyIterable<1>"));
- },
- get$values: function() {
- var t1 = H._instanceType(this);
- return H.MappedIterable_MappedIterable(this.__js_helper$_keys, new H.ConstantStringMap_values_closure(this), t1._precomputed1, t1._rest[1]);
- }
- };
- H.ConstantStringMap_values_closure.prototype = {
- call$1: function(key) {
- return this.$this._fetch$1(key);
- },
- $signature: function() {
- return H._instanceType(this.$this)._eval$1("2(1)");
- }
- };
- H.ConstantProtoMap.prototype = {
- containsKey$1: function(key) {
- if (typeof key != "string")
- return false;
- if ("__proto__" === key)
- return true;
- return this._jsObject.hasOwnProperty(key);
- },
- _fetch$1: function(key) {
- return "__proto__" === key ? this._protoValue : this._jsObject[key];
- }
- };
- H._ConstantMapKeyIterable.prototype = {
- get$iterator: function(_) {
- var t1 = this._map.__js_helper$_keys;
- return new J.ArrayIterator(t1, t1.length);
- },
- get$length: function(_) {
- return this._map.__js_helper$_keys.length;
- }
- };
- H.Instantiation.prototype = {
- Instantiation$1: function(_genericClosure) {
- if (false)
- H.instantiatedGenericFunctionType(0, 0);
- },
- toString$0: function(_) {
- var types = "<" + C.JSArray_methods.join$1(this.get$_types(), ", ") + ">";
- return H.S(this._genericClosure) + " with " + types;
- }
- };
- H.Instantiation1.prototype = {
- get$_types: function() {
- return [H.createRuntimeType(this.$ti._precomputed1)];
- },
- call$2: function(a0, a1) {
- return this._genericClosure.call$1$2(a0, a1, this.$ti._rest[0]);
- },
- call$0: function() {
- return this._genericClosure.call$1$0(this.$ti._rest[0]);
- },
- call$3: function(a0, a1, a2) {
- return this._genericClosure.call$1$3(a0, a1, a2, this.$ti._rest[0]);
- },
- call$4: function(a0, a1, a2, a3) {
- return this._genericClosure.call$1$4(a0, a1, a2, a3, this.$ti._rest[0]);
- },
- $signature: function() {
- return H.instantiatedGenericFunctionType(H.closureFunctionType(this._genericClosure), this.$ti);
- }
- };
- H.JSInvocationMirror.prototype = {
- get$memberName: function() {
- var t1 = this.__js_helper$_memberName;
- return t1;
- },
- get$positionalArguments: function() {
- var t1, argumentCount, list, index, _this = this;
- if (_this.__js_helper$_kind === 1)
- return C.List_empty22;
- t1 = _this._arguments;
- argumentCount = t1.length - _this._namedArgumentNames.length - _this._typeArgumentCount;
- if (argumentCount === 0)
- return C.List_empty22;
- list = [];
- for (index = 0; index < argumentCount; ++index)
- list.push(t1[index]);
- return J.JSArray_markUnmodifiableList(list);
- },
- get$namedArguments: function() {
- var t1, namedArgumentCount, t2, namedArgumentsStartIndex, map, i, _this = this;
- if (_this.__js_helper$_kind !== 0)
- return C.Map_empty10;
- t1 = _this._namedArgumentNames;
- namedArgumentCount = t1.length;
- t2 = _this._arguments;
- namedArgumentsStartIndex = t2.length - namedArgumentCount - _this._typeArgumentCount;
- if (namedArgumentCount === 0)
- return C.Map_empty10;
- map = new H.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic);
- for (i = 0; i < namedArgumentCount; ++i)
- map.$indexSet(0, new H.Symbol(t1[i]), t2[namedArgumentsStartIndex + i]);
- return new H.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic);
- }
- };
- H.Primitives_functionNoSuchMethod_closure.prototype = {
- call$2: function($name, argument) {
- var t1 = this._box_0;
- t1.names = t1.names + "$" + H.S($name);
- this.namedArgumentList.push($name);
- this.$arguments.push(argument);
- ++t1.argumentCount;
- }
- };
- H.TypeErrorDecoder.prototype = {
- matchTypeError$1: function(message) {
- var result, t1, _this = this,
- match = new RegExp(_this._pattern).exec(message);
- if (match == null)
- return null;
- result = Object.create(null);
- t1 = _this._arguments;
- if (t1 !== -1)
- result.arguments = match[t1 + 1];
- t1 = _this._argumentsExpr;
- if (t1 !== -1)
- result.argumentsExpr = match[t1 + 1];
- t1 = _this._expr;
- if (t1 !== -1)
- result.expr = match[t1 + 1];
- t1 = _this._method;
- if (t1 !== -1)
- result.method = match[t1 + 1];
- t1 = _this._receiver;
- if (t1 !== -1)
- result.receiver = match[t1 + 1];
- return result;
- }
- };
- H.NullError.prototype = {
- toString$0: function(_) {
- var t1 = this._method;
- if (t1 == null)
- return "NoSuchMethodError: " + H.S(this.__js_helper$_message);
- return "NoSuchMethodError: method not found: '" + t1 + "' on null";
- }
- };
- H.JsNoSuchMethodError.prototype = {
- toString$0: function(_) {
- var t2, _this = this,
- _s38_ = "NoSuchMethodError: method not found: '",
- t1 = _this._method;
- if (t1 == null)
- return "NoSuchMethodError: " + H.S(_this.__js_helper$_message);
- t2 = _this._receiver;
- if (t2 == null)
- return _s38_ + t1 + "' (" + H.S(_this.__js_helper$_message) + ")";
- return _s38_ + t1 + "' on '" + t2 + "' (" + H.S(_this.__js_helper$_message) + ")";
- }
- };
- H.UnknownJsTypeError.prototype = {
- toString$0: function(_) {
- var t1 = this.__js_helper$_message;
- return t1.length === 0 ? "Error" : "Error: " + t1;
- }
- };
- H.ExceptionAndStackTrace.prototype = {};
- H.unwrapException_saveStackTrace.prototype = {
- call$1: function(error) {
- if (type$.Error._is(error))
- if (error.$thrownJsError == null)
- error.$thrownJsError = this.ex;
- return error;
- },
- $signature: 28
- };
- H._StackTrace.prototype = {
- toString$0: function(_) {
- var trace,
- t1 = this._trace;
- if (t1 != null)
- return t1;
- t1 = this._exception;
- trace = t1 !== null && typeof t1 === "object" ? t1.stack : null;
- return this._trace = trace == null ? "" : trace;
- },
- $isStackTrace: 1
- };
- H.Closure.prototype = {
- toString$0: function(_) {
- var $constructor = this.constructor,
- $name = $constructor == null ? null : $constructor.name;
- return "Closure '" + H.unminifyOrTag($name == null ? "unknown" : $name) + "'";
- },
- $isFunction: 1,
- get$$call: function() {
- return this;
- },
- "call*": "call$1",
- $requiredArgCount: 1,
- $defaultValues: null
- };
- H.TearOffClosure.prototype = {};
- H.StaticClosure.prototype = {
- toString$0: function(_) {
- var $name = this.$static_name;
- if ($name == null)
- return "Closure of unknown static method";
- return "Closure '" + H.unminifyOrTag($name) + "'";
- }
- };
- H.BoundClosure.prototype = {
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- if (_this === other)
- return true;
- if (!(other instanceof H.BoundClosure))
- return false;
- return _this._self === other._self && _this._target === other._target && _this._receiver === other._receiver;
- },
- get$hashCode: function(_) {
- var receiverHashCode,
- t1 = this._receiver;
- if (t1 == null)
- receiverHashCode = H.Primitives_objectHashCode(this._self);
- else
- receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primitives_objectHashCode(t1);
- return (receiverHashCode ^ H.Primitives_objectHashCode(this._target)) >>> 0;
- },
- toString$0: function(_) {
- var receiver = this._receiver;
- if (receiver == null)
- receiver = this._self;
- return "Closure '" + H.S(this.__js_helper$_name) + "' of " + ("Instance of '" + H.S(H.Primitives_objectTypeName(receiver)) + "'");
- }
- };
- H.RuntimeError.prototype = {
- toString$0: function(_) {
- return "RuntimeError: " + H.S(this.message);
- },
- get$message: function(receiver) {
- return this.message;
- }
- };
- H.JsLinkedHashMap.prototype = {
- get$length: function(_) {
- return this.__js_helper$_length;
- },
- get$isEmpty: function(_) {
- return this.__js_helper$_length === 0;
- },
- get$isNotEmpty: function(_) {
- return !this.get$isEmpty(this);
- },
- get$keys: function() {
- return new H.LinkedHashMapKeyIterable(this, H._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>"));
- },
- get$values: function() {
- var t1 = H._instanceType(this);
- return H.MappedIterable_MappedIterable(this.get$keys(), new H.JsLinkedHashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
- },
- containsKey$1: function(key) {
- var strings, nums, _this = this;
- if (typeof key == "string") {
- strings = _this._strings;
- if (strings == null)
- return false;
- return _this._containsTableEntry$2(strings, key);
- } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
- nums = _this._nums;
- if (nums == null)
- return false;
- return _this._containsTableEntry$2(nums, key);
- } else
- return _this.internalContainsKey$1(key);
- },
- internalContainsKey$1: function(key) {
- var _this = this,
- rest = _this.__js_helper$_rest;
- if (rest == null)
- return false;
- return _this.internalFindBucketIndex$2(_this._getTableBucket$2(rest, _this.internalComputeHashCode$1(key)), key) >= 0;
- },
- addAll$1: function(_, other) {
- other.forEach$1(0, new H.JsLinkedHashMap_addAll_closure(this));
- },
- $index: function(_, key) {
- var strings, cell, t1, nums, _this = this, _null = null;
- if (typeof key == "string") {
- strings = _this._strings;
- if (strings == null)
- return _null;
- cell = _this._getTableCell$2(strings, key);
- t1 = cell == null ? _null : cell.hashMapCellValue;
- return t1;
- } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
- nums = _this._nums;
- if (nums == null)
- return _null;
- cell = _this._getTableCell$2(nums, key);
- t1 = cell == null ? _null : cell.hashMapCellValue;
- return t1;
- } else
- return _this.internalGet$1(key);
- },
- internalGet$1: function(key) {
- var bucket, index, _this = this,
- rest = _this.__js_helper$_rest;
- if (rest == null)
- return null;
- bucket = _this._getTableBucket$2(rest, _this.internalComputeHashCode$1(key));
- index = _this.internalFindBucketIndex$2(bucket, key);
- if (index < 0)
- return null;
- return bucket[index].hashMapCellValue;
- },
- $indexSet: function(_, key, value) {
- var strings, nums, _this = this;
- if (typeof key == "string") {
- strings = _this._strings;
- _this._addHashTableEntry$3(strings == null ? _this._strings = _this._newHashTable$0() : strings, key, value);
- } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
- nums = _this._nums;
- _this._addHashTableEntry$3(nums == null ? _this._nums = _this._newHashTable$0() : nums, key, value);
- } else
- _this.internalSet$2(key, value);
- },
- internalSet$2: function(key, value) {
- var hash, bucket, index, _this = this,
- rest = _this.__js_helper$_rest;
- if (rest == null)
- rest = _this.__js_helper$_rest = _this._newHashTable$0();
- hash = _this.internalComputeHashCode$1(key);
- bucket = _this._getTableBucket$2(rest, hash);
- if (bucket == null)
- _this._setTableEntry$3(rest, hash, [_this._newLinkedCell$2(key, value)]);
- else {
- index = _this.internalFindBucketIndex$2(bucket, key);
- if (index >= 0)
- bucket[index].hashMapCellValue = value;
- else
- bucket.push(_this._newLinkedCell$2(key, value));
- }
- },
- putIfAbsent$2: function(key, ifAbsent) {
- var value;
- if (this.containsKey$1(key))
- return this.$index(0, key);
- value = ifAbsent.call$0();
- this.$indexSet(0, key, value);
- return value;
- },
- remove$1: function(_, key) {
- var _this = this;
- if (typeof key == "string")
- return _this.__js_helper$_removeHashTableEntry$2(_this._strings, key);
- else if (typeof key == "number" && (key & 0x3ffffff) === key)
- return _this.__js_helper$_removeHashTableEntry$2(_this._nums, key);
- else
- return _this.internalRemove$1(key);
- },
- internalRemove$1: function(key) {
- var hash, bucket, index, cell, _this = this,
- rest = _this.__js_helper$_rest;
- if (rest == null)
- return null;
- hash = _this.internalComputeHashCode$1(key);
- bucket = _this._getTableBucket$2(rest, hash);
- index = _this.internalFindBucketIndex$2(bucket, key);
- if (index < 0)
- return null;
- cell = bucket.splice(index, 1)[0];
- _this.__js_helper$_unlinkCell$1(cell);
- if (bucket.length === 0)
- _this._deleteTableEntry$2(rest, hash);
- return cell.hashMapCellValue;
- },
- clear$0: function(_) {
- var _this = this;
- if (_this.__js_helper$_length > 0) {
- _this._strings = _this._nums = _this.__js_helper$_rest = _this._first = _this._last = null;
- _this.__js_helper$_length = 0;
- _this._modified$0();
- }
- },
- forEach$1: function(_, action) {
- var _this = this,
- cell = _this._first,
- modifications = _this._modifications;
- for (; cell != null;) {
- action.call$2(cell.hashMapCellKey, cell.hashMapCellValue);
- if (modifications !== _this._modifications)
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- cell = cell._next;
- }
- },
- _addHashTableEntry$3: function(table, key, value) {
- var cell = this._getTableCell$2(table, key);
- if (cell == null)
- this._setTableEntry$3(table, key, this._newLinkedCell$2(key, value));
- else
- cell.hashMapCellValue = value;
- },
- __js_helper$_removeHashTableEntry$2: function(table, key) {
- var cell;
- if (table == null)
- return null;
- cell = this._getTableCell$2(table, key);
- if (cell == null)
- return null;
- this.__js_helper$_unlinkCell$1(cell);
- this._deleteTableEntry$2(table, key);
- return cell.hashMapCellValue;
- },
- _modified$0: function() {
- this._modifications = this._modifications + 1 & 67108863;
- },
- _newLinkedCell$2: function(key, value) {
- var last, _this = this,
- cell = new H.LinkedHashMapCell(key, value);
- if (_this._first == null)
- _this._first = _this._last = cell;
- else {
- last = _this._last;
- cell._previous = last;
- _this._last = last._next = cell;
- }
- ++_this.__js_helper$_length;
- _this._modified$0();
- return cell;
- },
- __js_helper$_unlinkCell$1: function(cell) {
- var _this = this,
- previous = cell._previous,
- next = cell._next;
- if (previous == null)
- _this._first = next;
- else
- previous._next = next;
- if (next == null)
- _this._last = previous;
- else
- next._previous = previous;
- --_this.__js_helper$_length;
- _this._modified$0();
- },
- internalComputeHashCode$1: function(key) {
- return J.get$hashCode$(key) & 0x3ffffff;
- },
- internalFindBucketIndex$2: function(bucket, key) {
- var $length, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i)
- if (J.$eq$(bucket[i].hashMapCellKey, key))
- return i;
- return -1;
- },
- toString$0: function(_) {
- return P.MapBase_mapToString(this);
- },
- _getTableCell$2: function(table, key) {
- return table[key];
- },
- _getTableBucket$2: function(table, key) {
- return table[key];
- },
- _setTableEntry$3: function(table, key, value) {
- table[key] = value;
- },
- _deleteTableEntry$2: function(table, key) {
- delete table[key];
- },
- _containsTableEntry$2: function(table, key) {
- return this._getTableCell$2(table, key) != null;
- },
- _newHashTable$0: function() {
- var _s20_ = "<non-identifier-key>",
- table = Object.create(null);
- this._setTableEntry$3(table, _s20_, table);
- this._deleteTableEntry$2(table, _s20_);
- return table;
- }
- };
- H.JsLinkedHashMap_values_closure.prototype = {
- call$1: function(each) {
- return this.$this.$index(0, each);
- },
- $signature: function() {
- return H._instanceType(this.$this)._eval$1("2(1)");
- }
- };
- H.JsLinkedHashMap_addAll_closure.prototype = {
- call$2: function(key, value) {
- this.$this.$indexSet(0, key, value);
- },
- $signature: function() {
- return H._instanceType(this.$this)._eval$1("Null(1,2)");
- }
- };
- H.LinkedHashMapCell.prototype = {};
- H.LinkedHashMapKeyIterable.prototype = {
- get$length: function(_) {
- return this._map.__js_helper$_length;
- },
- get$isEmpty: function(_) {
- return this._map.__js_helper$_length === 0;
- },
- get$iterator: function(_) {
- var t1 = this._map,
- t2 = new H.LinkedHashMapKeyIterator(t1, t1._modifications);
- t2._cell = t1._first;
- return t2;
- },
- contains$1: function(_, element) {
- return this._map.containsKey$1(element);
- }
- };
- H.LinkedHashMapKeyIterator.prototype = {
- get$current: function(_) {
- return this.__js_helper$_current;
- },
- moveNext$0: function() {
- var _this = this,
- t1 = _this._map;
- if (_this._modifications !== t1._modifications)
- throw H.wrapException(P.ConcurrentModificationError$(t1));
- else {
- t1 = _this._cell;
- if (t1 == null) {
- _this.__js_helper$_current = null;
- return false;
- } else {
- _this.__js_helper$_current = t1.hashMapCellKey;
- _this._cell = t1._next;
- return true;
- }
- }
- }
- };
- H.initHooks_closure.prototype = {
- call$1: function(o) {
- return this.getTag(o);
- },
- $signature: 28
- };
- H.initHooks_closure0.prototype = {
- call$2: function(o, tag) {
- return this.getUnknownTag(o, tag);
- }
- };
- H.initHooks_closure1.prototype = {
- call$1: function(tag) {
- return this.prototypeForTag(tag);
- }
- };
- H.JSSyntaxRegExp.prototype = {
- toString$0: function(_) {
- return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags;
- },
- get$_nativeGlobalVersion: function() {
- var _this = this,
- t1 = _this._nativeGlobalRegExp;
- if (t1 != null)
- return t1;
- t1 = _this._nativeRegExp;
- return _this._nativeGlobalRegExp = H.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
- },
- get$_nativeAnchoredVersion: function() {
- var _this = this,
- t1 = _this._nativeAnchoredRegExp;
- if (t1 != null)
- return t1;
- t1 = _this._nativeRegExp;
- return _this._nativeAnchoredRegExp = H.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
- },
- firstMatch$1: function(string) {
- var m;
- if (typeof string != "string")
- H.throwExpression(H.argumentErrorValue(string));
- m = this._nativeRegExp.exec(string);
- if (m == null)
- return null;
- return new H._MatchImplementation(m);
- },
- allMatches$2: function(_, string, start) {
- var t1 = string.length;
- if (start > t1)
- throw H.wrapException(P.RangeError$range(start, 0, t1, null, null));
- return new H._AllMatchesIterable(this, string, start);
- },
- allMatches$1: function($receiver, string) {
- return this.allMatches$2($receiver, string, 0);
- },
- _execGlobal$2: function(string, start) {
- var match,
- regexp = this.get$_nativeGlobalVersion();
- regexp.lastIndex = start;
- match = regexp.exec(string);
- if (match == null)
- return null;
- return new H._MatchImplementation(match);
- },
- _execAnchored$2: function(string, start) {
- var match,
- regexp = this.get$_nativeAnchoredVersion();
- regexp.lastIndex = start;
- match = regexp.exec(string);
- if (match == null)
- return null;
- if (match.pop() != null)
- return null;
- return new H._MatchImplementation(match);
- },
- matchAsPrefix$2: function(_, string, start) {
- if (start < 0 || start > string.length)
- throw H.wrapException(P.RangeError$range(start, 0, string.length, null, null));
- return this._execAnchored$2(string, start);
- }
- };
- H._MatchImplementation.prototype = {
- get$start: function(_) {
- return this._match.index;
- },
- get$end: function(_) {
- var t1 = this._match;
- return t1.index + t1[0].length;
- },
- $isMatch: 1,
- $isRegExpMatch: 1
- };
- H._AllMatchesIterable.prototype = {
- get$iterator: function(_) {
- return new H._AllMatchesIterator(this._re, this.__js_helper$_string, this.__js_helper$_start);
- }
- };
- H._AllMatchesIterator.prototype = {
- get$current: function(_) {
- return this.__js_helper$_current;
- },
- moveNext$0: function() {
- var t2, t3, match, nextIndex, _this = this,
- t1 = _this.__js_helper$_string;
- if (t1 == null)
- return false;
- t2 = _this._nextIndex;
- if (t2 <= t1.length) {
- t3 = _this._regExp;
- match = t3._execGlobal$2(t1, t2);
- if (match != null) {
- _this.__js_helper$_current = match;
- nextIndex = match.get$end(match);
- if (match._match.index === nextIndex) {
- if (t3._nativeRegExp.unicode) {
- t1 = _this._nextIndex;
- t2 = t1 + 1;
- t3 = _this.__js_helper$_string;
- if (t2 < t3.length) {
- t1 = J.getInterceptor$s(t3).codeUnitAt$1(t3, t1);
- if (t1 >= 55296 && t1 <= 56319) {
- t1 = C.JSString_methods.codeUnitAt$1(t3, t2);
- t1 = t1 >= 56320 && t1 <= 57343;
- } else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1;
- }
- _this._nextIndex = nextIndex;
- return true;
- }
- }
- _this.__js_helper$_string = _this.__js_helper$_current = null;
- return false;
- }
- };
- H.StringMatch.prototype = {
- get$end: function(_) {
- return this.start + this.pattern.length;
- },
- group$1: function(group_) {
- if (group_ !== 0)
- throw H.wrapException(P.RangeError$value(group_, null, null));
- return this.pattern;
- },
- $isMatch: 1,
- get$start: function(receiver) {
- return this.start;
- }
- };
- H._StringAllMatchesIterable.prototype = {
- get$iterator: function(_) {
- return new H._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index);
- },
- get$first: function(_) {
- var t1 = this._pattern,
- index = this._input.indexOf(t1, this.__js_helper$_index);
- if (index >= 0)
- return new H.StringMatch(index, t1);
- throw H.wrapException(H.IterableElementError_noElement());
- }
- };
- H._StringAllMatchesIterator.prototype = {
- moveNext$0: function() {
- var index, end, _this = this,
- t1 = _this.__js_helper$_index,
- t2 = _this._pattern,
- t3 = t2.length,
- t4 = _this._input,
- t5 = t4.length;
- if (t1 + t3 > t5) {
- _this.__js_helper$_current = null;
- return false;
- }
- index = t4.indexOf(t2, t1);
- if (index < 0) {
- _this.__js_helper$_index = t5 + 1;
- _this.__js_helper$_current = null;
- return false;
- }
- end = index + t3;
- _this.__js_helper$_current = new H.StringMatch(index, t2);
- _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end;
- return true;
- },
- get$current: function(_) {
- return this.__js_helper$_current;
- }
- };
- H.NativeTypedData.prototype = {
- _invalidPosition$3: function(receiver, position, $length, $name) {
- if (!H._isInt(position))
- throw H.wrapException(P.ArgumentError$value(position, $name, "Invalid list position"));
- else
- throw H.wrapException(P.RangeError$range(position, 0, $length, $name, null));
- },
- _checkPosition$3: function(receiver, position, $length, $name) {
- if (position >>> 0 !== position || position > $length)
- this._invalidPosition$3(receiver, position, $length, $name);
- }
- };
- H.NativeTypedArray.prototype = {
- get$length: function(receiver) {
- return receiver.length;
- },
- _setRangeFast$4: function(receiver, start, end, source, skipCount) {
- var count, sourceLength,
- targetLength = receiver.length;
- this._checkPosition$3(receiver, start, targetLength, "start");
- this._checkPosition$3(receiver, end, targetLength, "end");
- if (start > end)
- throw H.wrapException(P.RangeError$range(start, 0, end, null, null));
- count = end - start;
- if (skipCount < 0)
- throw H.wrapException(P.ArgumentError$(skipCount));
- sourceLength = source.length;
- if (sourceLength - skipCount < count)
- throw H.wrapException(P.StateError$("Not enough elements"));
- if (skipCount !== 0 || sourceLength !== count)
- source = source.subarray(skipCount, skipCount + count);
- receiver.set(source, start);
- },
- $isJavaScriptIndexingBehavior: 1
- };
- H.NativeTypedArrayOfDouble.prototype = {
- $index: function(receiver, index) {
- H._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- $indexSet: function(receiver, index, value) {
- H._checkValidIndex(index, receiver, receiver.length);
- receiver[index] = value;
- },
- setRange$4: function(receiver, start, end, iterable, skipCount) {
- if (type$.NativeTypedArrayOfDouble._is(iterable)) {
- this._setRangeFast$4(receiver, start, end, iterable, skipCount);
- return;
- }
- this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isList: 1
- };
- H.NativeTypedArrayOfInt.prototype = {
- $indexSet: function(receiver, index, value) {
- H._checkValidIndex(index, receiver, receiver.length);
- receiver[index] = value;
- },
- setRange$4: function(receiver, start, end, iterable, skipCount) {
- if (type$.NativeTypedArrayOfInt._is(iterable)) {
- this._setRangeFast$4(receiver, start, end, iterable, skipCount);
- return;
- }
- this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isList: 1
- };
- H.NativeFloat32List.prototype = {
- sublist$2: function(receiver, start, end) {
- return new Float32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- }
- };
- H.NativeFloat64List.prototype = {
- sublist$2: function(receiver, start, end) {
- return new Float64Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- }
- };
- H.NativeInt16List.prototype = {
- $index: function(receiver, index) {
- H._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2: function(receiver, start, end) {
- return new Int16Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- }
- };
- H.NativeInt32List.prototype = {
- $index: function(receiver, index) {
- H._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2: function(receiver, start, end) {
- return new Int32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- }
- };
- H.NativeInt8List.prototype = {
- $index: function(receiver, index) {
- H._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2: function(receiver, start, end) {
- return new Int8Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- }
- };
- H.NativeUint16List.prototype = {
- $index: function(receiver, index) {
- H._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2: function(receiver, start, end) {
- return new Uint16Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- }
- };
- H.NativeUint32List.prototype = {
- $index: function(receiver, index) {
- H._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2: function(receiver, start, end) {
- return new Uint32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- }
- };
- H.NativeUint8ClampedList.prototype = {
- get$length: function(receiver) {
- return receiver.length;
- },
- $index: function(receiver, index) {
- H._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2: function(receiver, start, end) {
- return new Uint8ClampedArray(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- }
- };
- H.NativeUint8List.prototype = {
- get$length: function(receiver) {
- return receiver.length;
- },
- $index: function(receiver, index) {
- H._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2: function(receiver, start, end) {
- return new Uint8Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
- },
- $isNativeUint8List: 1,
- $isUint8List: 1
- };
- H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {};
- H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
- H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {};
- H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
- H.Rti.prototype = {
- _eval$1: function(recipe) {
- return H._Universe_evalInEnvironment(init.typeUniverse, this, recipe);
- },
- _bind$1: function(typeOrTuple) {
- return H._Universe_bind(init.typeUniverse, this, typeOrTuple);
- }
- };
- H._FunctionParameters.prototype = {};
- H._Type.prototype = {
- toString$0: function(_) {
- return H._rtiToString(this._rti, null);
- }
- };
- H._Error.prototype = {
- toString$0: function(_) {
- return this._message;
- }
- };
- H._TypeError.prototype = {
- get$message: function(_) {
- return this._message;
- }
- };
- P._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = {
- call$1: function(_) {
- var t1 = this._box_0,
- f = t1.storedCallback;
- t1.storedCallback = null;
- f.call$0();
- },
- $signature: 54
- };
- P._AsyncRun__initializeScheduleImmediate_closure.prototype = {
- call$1: function(callback) {
- var t1, t2;
- this._box_0.storedCallback = callback;
- t1 = this.div;
- t2 = this.span;
- t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2);
- }
- };
- P._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = {
- call$0: function() {
- this.callback.call$0();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = {
- call$0: function() {
- this.callback.call$0();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._TimerImpl.prototype = {
- _TimerImpl$2: function(milliseconds, callback) {
- if (self.setTimeout != null)
- this._handle = self.setTimeout(H.convertDartClosureToJS(new P._TimerImpl_internalCallback(this, callback), 0), milliseconds);
- else
- throw H.wrapException(P.UnsupportedError$("`setTimeout()` not found."));
- },
- _TimerImpl$periodic$2: function(milliseconds, callback) {
- if (self.setTimeout != null)
- this._handle = self.setInterval(H.convertDartClosureToJS(new P._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds);
- else
- throw H.wrapException(P.UnsupportedError$("Periodic timer."));
- },
- cancel$0: function() {
- if (self.setTimeout != null) {
- var t1 = this._handle;
- if (t1 == null)
- return;
- if (this._once)
- self.clearTimeout(t1);
- else
- self.clearInterval(t1);
- this._handle = null;
- } else
- throw H.wrapException(P.UnsupportedError$("Canceling a timer."));
- }
- };
- P._TimerImpl_internalCallback.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._handle = null;
- t1._tick = 1;
- this.callback.call$0();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 1
- };
- P._TimerImpl$periodic_closure.prototype = {
- call$0: function() {
- var duration, _this = this,
- t1 = _this.$this,
- tick = t1._tick + 1,
- t2 = _this.milliseconds;
- if (t2 > 0) {
- duration = Date.now() - _this.start;
- if (duration > (tick + 1) * t2)
- tick = C.JSInt_methods.$tdiv(duration, t2);
- }
- t1._tick = tick;
- _this.callback.call$1(t1);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._AsyncAwaitCompleter.prototype = {
- complete$1: function(value) {
- var t1 = !this.isSync || this.$ti._eval$1("Future<1>")._is(value),
- t2 = this._future;
- if (t1)
- t2._asyncComplete$1(value);
- else
- t2._completeWithValue$1(value);
- },
- completeError$2: function(e, st) {
- var t1;
- if (st == null)
- st = P.AsyncError_defaultStackTrace(e);
- t1 = this._future;
- if (this.isSync)
- t1._completeError$2(e, st);
- else
- t1._asyncCompleteError$2(e, st);
- }
- };
- P._awaitOnObject_closure.prototype = {
- call$1: function(result) {
- return this.bodyFunction.call$2(0, result);
- },
- $signature: 178
- };
- P._awaitOnObject_closure0.prototype = {
- call$2: function(error, stackTrace) {
- this.bodyFunction.call$2(1, new H.ExceptionAndStackTrace(error, stackTrace));
- },
- "call*": "call$2",
- $requiredArgCount: 2,
- $signature: 58
- };
- P._wrapJsFunctionForAsync_closure.prototype = {
- call$2: function(errorCode, result) {
- this.$protected(errorCode, result);
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- P._asyncStarHelper_closure.prototype = {
- call$0: function() {
- var t1 = this.controller,
- t2 = t1.controller,
- t3 = t2._state;
- if ((t3 & 1) !== 0 ? (t2.get$_subscription()._state & 4) !== 0 : (t3 & 2) === 0) {
- t1.isSuspended = true;
- return;
- }
- this.bodyFunctionOrErrorCode.call$2(null, 0);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._asyncStarHelper_closure0.prototype = {
- call$1: function(_) {
- var errorCode = this.controller.cancelationFuture != null ? 2 : 0;
- this.bodyFunctionOrErrorCode.call$2(errorCode, null);
- },
- $signature: 54
- };
- P._AsyncStarStreamController.prototype = {
- add$1: function(_, $event) {
- return this.controller.add$1(0, $event);
- },
- _AsyncStarStreamController$1: function(body, $T) {
- var t1 = new P._AsyncStarStreamController__resumeBody(body);
- this.controller = P.StreamController_StreamController(new P._AsyncStarStreamController_closure(this, body), new P._AsyncStarStreamController_closure0(t1), null, new P._AsyncStarStreamController_closure1(this, t1), false, $T);
- }
- };
- P._AsyncStarStreamController__resumeBody.prototype = {
- call$0: function() {
- P.scheduleMicrotask(new P._AsyncStarStreamController__resumeBody_closure(this.body));
- },
- $signature: 0
- };
- P._AsyncStarStreamController__resumeBody_closure.prototype = {
- call$0: function() {
- this.body.call$2(0, null);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._AsyncStarStreamController_closure0.prototype = {
- call$0: function() {
- this._resumeBody.call$0();
- },
- $signature: 0
- };
- P._AsyncStarStreamController_closure1.prototype = {
- call$0: function() {
- var t1 = this.$this;
- if (t1.isSuspended) {
- t1.isSuspended = false;
- this._resumeBody.call$0();
- }
- },
- $signature: 0
- };
- P._AsyncStarStreamController_closure.prototype = {
- call$0: function() {
- var t1 = this.$this;
- if ((t1.controller._state & 4) === 0) {
- t1.cancelationFuture = new P._Future($.Zone__current, type$._Future_dynamic);
- if (t1.isSuspended) {
- t1.isSuspended = false;
- P.scheduleMicrotask(new P._AsyncStarStreamController__closure(this.body));
- }
- return t1.cancelationFuture;
- }
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 143
- };
- P._AsyncStarStreamController__closure.prototype = {
- call$0: function() {
- this.body.call$2(2, null);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._IterationMarker.prototype = {
- toString$0: function(_) {
- return "IterationMarker(" + this.state + ", " + H.S(this.value) + ")";
- }
- };
- P._SyncStarIterator.prototype = {
- get$current: function(_) {
- var t1 = this._nestedIterator;
- if (t1 == null)
- return this._async$_current;
- return t1.get$current(t1);
- },
- moveNext$0: function() {
- var t1, value, state, inner, _this = this;
- for (; true;) {
- t1 = _this._nestedIterator;
- if (t1 != null)
- if (t1.moveNext$0())
- return true;
- else
- _this._nestedIterator = null;
- value = function(body, SUCCESS, ERROR) {
- var errorValue,
- errorCode = SUCCESS;
- while (true)
- try {
- return body(errorCode, errorValue);
- } catch (error) {
- errorValue = error;
- errorCode = ERROR;
- }
- }(_this._body, 0, 1);
- if (value instanceof P._IterationMarker) {
- state = value.state;
- if (state === 2) {
- t1 = _this._suspendedBodies;
- if (t1 == null || t1.length === 0) {
- _this._async$_current = null;
- return false;
- }
- _this._body = t1.pop();
- continue;
- } else {
- t1 = value.value;
- if (state === 3)
- throw t1;
- else {
- inner = J.get$iterator$ax(t1);
- if (inner instanceof P._SyncStarIterator) {
- t1 = _this._suspendedBodies;
- if (t1 == null)
- t1 = _this._suspendedBodies = [];
- t1.push(_this._body);
- _this._body = inner._body;
- continue;
- } else {
- _this._nestedIterator = inner;
- continue;
- }
- }
- }
- } else {
- _this._async$_current = value;
- return true;
- }
- }
- return false;
- }
- };
- P._SyncStarIterable.prototype = {
- get$iterator: function(_) {
- return new P._SyncStarIterator(this._outerHelper());
- }
- };
- P._BroadcastStream.prototype = {
- get$isBroadcast: function() {
- return true;
- }
- };
- P._BroadcastSubscription.prototype = {
- _async$_onPause$0: function() {
- },
- _async$_onResume$0: function() {
- }
- };
- P._BroadcastStreamController.prototype = {
- set$onPause: function(onPauseHandler) {
- throw H.wrapException(P.UnsupportedError$("Broadcast stream controllers do not support pause callbacks"));
- },
- set$onResume: function(onResumeHandler) {
- throw H.wrapException(P.UnsupportedError$("Broadcast stream controllers do not support pause callbacks"));
- },
- get$stream: function() {
- return new P._BroadcastStream(this, H._instanceType(this)._eval$1("_BroadcastStream<1>"));
- },
- get$_mayAddEvent: function() {
- return this._state < 4;
- },
- _ensureDoneFuture$0: function() {
- var t1 = this._doneFuture;
- if (t1 != null)
- return t1;
- return this._doneFuture = new P._Future($.Zone__current, type$._Future_dynamic);
- },
- _removeListener$1: function(subscription) {
- var previous = subscription._async$_previous,
- next = subscription._async$_next;
- if (previous == null)
- this._firstSubscription = next;
- else
- previous._async$_next = next;
- if (next == null)
- this._lastSubscription = previous;
- else
- next._async$_previous = previous;
- subscription._async$_previous = subscription;
- subscription._async$_next = subscription;
- },
- _subscribe$4: function(onData, onError, onDone, cancelOnError) {
- var t1, t2, t3, subscription, oldLast, _this = this;
- if ((_this._state & 4) !== 0) {
- if (onDone == null)
- onDone = P.async___nullDoneHandler$closure();
- t1 = new P._DoneStreamSubscription($.Zone__current, onDone, H._instanceType(_this)._eval$1("_DoneStreamSubscription<1>"));
- t1._schedule$0();
- return t1;
- }
- t1 = H._instanceType(_this);
- t2 = $.Zone__current;
- t3 = cancelOnError ? 1 : 0;
- subscription = new P._BroadcastSubscription(_this, t2, t3, t1._eval$1("_BroadcastSubscription<1>"));
- subscription._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, t1._precomputed1);
- subscription._async$_previous = subscription;
- subscription._async$_next = subscription;
- subscription._eventState = _this._state & 1;
- oldLast = _this._lastSubscription;
- _this._lastSubscription = subscription;
- subscription._async$_next = null;
- subscription._async$_previous = oldLast;
- if (oldLast == null)
- _this._firstSubscription = subscription;
- else
- oldLast._async$_next = subscription;
- if (_this._firstSubscription === subscription)
- P._runGuarded(_this.onListen);
- return subscription;
- },
- _recordCancel$1: function(sub) {
- var t1, _this = this;
- if (sub._async$_next === sub)
- return null;
- t1 = sub._eventState;
- if ((t1 & 2) !== 0)
- sub._eventState = t1 | 4;
- else {
- _this._removeListener$1(sub);
- if ((_this._state & 2) === 0 && _this._firstSubscription == null)
- _this._callOnCancel$0();
- }
- return null;
- },
- _recordPause$1: function(subscription) {
- },
- _recordResume$1: function(subscription) {
- },
- _addEventError$0: function() {
- if ((this._state & 4) !== 0)
- return new P.StateError("Cannot add new events after calling close");
- return new P.StateError("Cannot add new events while doing an addStream");
- },
- add$1: function(_, data) {
- if (!this.get$_mayAddEvent())
- throw H.wrapException(this._addEventError$0());
- this._sendData$1(data);
- },
- addError$2: function(error, stackTrace) {
- var replacement;
- P.ArgumentError_checkNotNull(error, "error");
- if (!this.get$_mayAddEvent())
- throw H.wrapException(this._addEventError$0());
- replacement = $.Zone__current.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- if (error == null)
- error = new P.NullThrownError();
- stackTrace = replacement.stackTrace;
- }
- this._sendError$2(error, stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace);
- },
- close$0: function(_) {
- var doneFuture, _this = this;
- if ((_this._state & 4) !== 0)
- return _this._doneFuture;
- if (!_this.get$_mayAddEvent())
- throw H.wrapException(_this._addEventError$0());
- _this._state |= 4;
- doneFuture = _this._ensureDoneFuture$0();
- _this._sendDone$0();
- return doneFuture;
- },
- _forEachListener$1: function(action) {
- var subscription, id, next, _this = this,
- t1 = _this._state;
- if ((t1 & 2) !== 0)
- throw H.wrapException(P.StateError$("Cannot fire new event. Controller is already firing an event"));
- subscription = _this._firstSubscription;
- if (subscription == null)
- return;
- id = t1 & 1;
- _this._state = t1 ^ 3;
- for (; subscription != null;) {
- t1 = subscription._eventState;
- if ((t1 & 1) === id) {
- subscription._eventState = t1 | 2;
- action.call$1(subscription);
- t1 = subscription._eventState ^= 1;
- next = subscription._async$_next;
- if ((t1 & 4) !== 0)
- _this._removeListener$1(subscription);
- subscription._eventState &= 4294967293;
- subscription = next;
- } else
- subscription = subscription._async$_next;
- }
- _this._state &= 4294967293;
- if (_this._firstSubscription == null)
- _this._callOnCancel$0();
- },
- _callOnCancel$0: function() {
- var _this = this;
- if ((_this._state & 4) !== 0 && _this._doneFuture._state === 0)
- _this._doneFuture._asyncComplete$1(null);
- P._runGuarded(_this.onCancel);
- },
- $isEventSink: 1,
- set$onListen: function(val) {
- return this.onListen = val;
- },
- set$onCancel: function(val) {
- return this.onCancel = val;
- }
- };
- P._SyncBroadcastStreamController.prototype = {
- get$_mayAddEvent: function() {
- return P._BroadcastStreamController.prototype.get$_mayAddEvent.call(this) && (this._state & 2) === 0;
- },
- _addEventError$0: function() {
- if ((this._state & 2) !== 0)
- return new P.StateError("Cannot fire new event. Controller is already firing an event");
- return this.super$_BroadcastStreamController$_addEventError();
- },
- _sendData$1: function(data) {
- var _this = this,
- t1 = _this._firstSubscription;
- if (t1 == null)
- return;
- if (t1 === _this._lastSubscription) {
- _this._state |= 2;
- t1._async$_add$1(data);
- _this._state &= 4294967293;
- if (_this._firstSubscription == null)
- _this._callOnCancel$0();
- return;
- }
- _this._forEachListener$1(new P._SyncBroadcastStreamController__sendData_closure(data));
- },
- _sendError$2: function(error, stackTrace) {
- if (this._firstSubscription == null)
- return;
- this._forEachListener$1(new P._SyncBroadcastStreamController__sendError_closure(error, stackTrace));
- },
- _sendDone$0: function() {
- if (this._firstSubscription != null)
- this._forEachListener$1(new P._SyncBroadcastStreamController__sendDone_closure());
- else
- this._doneFuture._asyncComplete$1(null);
- }
- };
- P._SyncBroadcastStreamController__sendData_closure.prototype = {
- call$1: function(subscription) {
- subscription._async$_add$1(this.data);
- }
- };
- P._SyncBroadcastStreamController__sendError_closure.prototype = {
- call$1: function(subscription) {
- subscription._addError$2(this.error, this.stackTrace);
- }
- };
- P._SyncBroadcastStreamController__sendDone_closure.prototype = {
- call$1: function(subscription) {
- subscription._close$0();
- }
- };
- P.Future.prototype = {};
- P.Future_wait_handleError.prototype = {
- call$2: function(theError, theStackTrace) {
- var _this = this,
- t1 = _this._box_0,
- t2 = --t1.remaining;
- if (t1.values != null) {
- t1.values = null;
- if (t1.remaining === 0 || _this.eagerError)
- _this.result._completeError$2(theError, theStackTrace);
- else {
- t1.error = theError;
- t1.stackTrace = theStackTrace;
- }
- } else if (t2 === 0 && !_this.eagerError)
- _this.result._completeError$2(t1.error, t1.stackTrace);
- },
- "call*": "call$2",
- $requiredArgCount: 2,
- $signature: 89
- };
- P.Future_wait_closure.prototype = {
- call$1: function(value) {
- var _this = this,
- t1 = _this._box_0,
- t2 = --t1.remaining,
- t3 = t1.values;
- if (t3 != null) {
- t3[_this.pos] = value;
- if (t2 === 0)
- _this.result._completeWithValue$1(t3);
- } else if (t1.remaining === 0 && !_this.eagerError)
- _this.result._completeError$2(t1.error, t1.stackTrace);
- },
- $signature: function() {
- return this.T._eval$1("Null(0)");
- }
- };
- P._Completer.prototype = {
- completeError$2: function(error, stackTrace) {
- var t1, replacement;
- P.ArgumentError_checkNotNull(error, "error");
- t1 = this.future;
- if (t1._state !== 0)
- throw H.wrapException(P.StateError$("Future already completed"));
- replacement = $.Zone__current.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- if (error == null)
- error = new P.NullThrownError();
- stackTrace = replacement.stackTrace;
- }
- t1._asyncCompleteError$2(error, stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace);
- },
- completeError$1: function(error) {
- return this.completeError$2(error, null);
- }
- };
- P._AsyncCompleter.prototype = {
- complete$1: function(value) {
- var t1 = this.future;
- if (t1._state !== 0)
- throw H.wrapException(P.StateError$("Future already completed"));
- t1._asyncComplete$1(value);
- },
- complete$0: function() {
- return this.complete$1(null);
- }
- };
- P._FutureListener.prototype = {
- matchesErrorTest$1: function(asyncError) {
- if ((this.state & 15) !== 6)
- return true;
- return this.result._zone.runUnary$2(this.callback, asyncError.error);
- },
- handleError$1: function(asyncError) {
- var errorCallback = this.errorCallback,
- t1 = this.result._zone;
- if (type$.dynamic_Function_Object_StackTrace._is(errorCallback))
- return t1.runBinary$3(errorCallback, asyncError.error, asyncError.stackTrace);
- else
- return t1.runUnary$2(errorCallback, asyncError.error);
- }
- };
- P._Future.prototype = {
- then$1$2$onError: function(f, onError, $R) {
- var result,
- currentZone = $.Zone__current;
- if (currentZone !== C.C__RootZone) {
- f = currentZone.registerUnaryCallback$1(f);
- if (onError != null)
- onError = P._registerErrorHandler(onError, currentZone);
- }
- result = new P._Future($.Zone__current, $R._eval$1("_Future<0>"));
- this._addListener$1(new P._FutureListener(result, onError == null ? 1 : 3, f, onError));
- return result;
- },
- then$1$1: function(f, $R) {
- return this.then$1$2$onError(f, null, $R);
- },
- then$1: function(f) {
- return this.then$1$2$onError(f, null, type$.dynamic);
- },
- _thenAwait$1$2: function(f, onError, $E) {
- var result = new P._Future($.Zone__current, $E._eval$1("_Future<0>"));
- this._addListener$1(new P._FutureListener(result, 19, f, onError));
- return result;
- },
- whenComplete$1: function(action) {
- var t1 = $.Zone__current,
- result = new P._Future(t1, this.$ti);
- this._addListener$1(new P._FutureListener(result, 8, t1 !== C.C__RootZone ? t1.registerCallback$1(action) : action, null));
- return result;
- },
- _addListener$1: function(listener) {
- var t2, _this = this,
- t1 = _this._state;
- if (t1 <= 1) {
- listener._nextListener = _this._resultOrListeners;
- _this._resultOrListeners = listener;
- } else {
- if (t1 === 2) {
- t1 = _this._resultOrListeners;
- t2 = t1._state;
- if (t2 < 4) {
- t1._addListener$1(listener);
- return;
- }
- _this._state = t2;
- _this._resultOrListeners = t1._resultOrListeners;
- }
- _this._zone.scheduleMicrotask$1(new P._Future__addListener_closure(_this, listener));
- }
- },
- _prependListeners$1: function(listeners) {
- var t1, existingListeners, cursor, cursor0, t2, _this = this, _box_0 = {};
- _box_0.listeners = listeners;
- if (listeners == null)
- return;
- t1 = _this._state;
- if (t1 <= 1) {
- existingListeners = _this._resultOrListeners;
- cursor = _this._resultOrListeners = listeners;
- if (existingListeners != null) {
- for (; cursor0 = cursor._nextListener, cursor0 != null; cursor = cursor0)
- ;
- cursor._nextListener = existingListeners;
- }
- } else {
- if (t1 === 2) {
- t1 = _this._resultOrListeners;
- t2 = t1._state;
- if (t2 < 4) {
- t1._prependListeners$1(listeners);
- return;
- }
- _this._state = t2;
- _this._resultOrListeners = t1._resultOrListeners;
- }
- _box_0.listeners = _this._reverseListeners$1(listeners);
- _this._zone.scheduleMicrotask$1(new P._Future__prependListeners_closure(_box_0, _this));
- }
- },
- _removeListeners$0: function() {
- var current = this._resultOrListeners;
- this._resultOrListeners = null;
- return this._reverseListeners$1(current);
- },
- _reverseListeners$1: function(listeners) {
- var current, prev, next;
- for (current = listeners, prev = null; current != null; prev = current, current = next) {
- next = current._nextListener;
- current._nextListener = prev;
- }
- return prev;
- },
- _complete$1: function(value) {
- var listeners, _this = this,
- t1 = _this.$ti;
- if (t1._eval$1("Future<1>")._is(value))
- if (t1._is(value))
- P._Future__chainCoreFuture(value, _this);
- else
- P._Future__chainForeignFuture(value, _this);
- else {
- listeners = _this._removeListeners$0();
- _this._state = 4;
- _this._resultOrListeners = value;
- P._Future__propagateToListeners(_this, listeners);
- }
- },
- _completeWithValue$1: function(value) {
- var _this = this,
- listeners = _this._removeListeners$0();
- _this._state = 4;
- _this._resultOrListeners = value;
- P._Future__propagateToListeners(_this, listeners);
- },
- _completeError$2: function(error, stackTrace) {
- var _this = this,
- listeners = _this._removeListeners$0(),
- t1 = P.AsyncError$(error, stackTrace);
- _this._state = 8;
- _this._resultOrListeners = t1;
- P._Future__propagateToListeners(_this, listeners);
- },
- _completeError$1: function(error) {
- return this._completeError$2(error, null);
- },
- _asyncComplete$1: function(value) {
- var _this = this;
- if (_this.$ti._eval$1("Future<1>")._is(value)) {
- _this._chainFuture$1(value);
- return;
- }
- _this._state = 1;
- _this._zone.scheduleMicrotask$1(new P._Future__asyncComplete_closure(_this, value));
- },
- _chainFuture$1: function(value) {
- var _this = this;
- if (_this.$ti._is(value)) {
- if (value._state === 8) {
- _this._state = 1;
- _this._zone.scheduleMicrotask$1(new P._Future__chainFuture_closure(_this, value));
- } else
- P._Future__chainCoreFuture(value, _this);
- return;
- }
- P._Future__chainForeignFuture(value, _this);
- },
- _asyncCompleteError$2: function(error, stackTrace) {
- this._state = 1;
- this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteError_closure(this, error, stackTrace));
- },
- $isFuture: 1
- };
- P._Future__addListener_closure.prototype = {
- call$0: function() {
- P._Future__propagateToListeners(this.$this, this.listener);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._Future__prependListeners_closure.prototype = {
- call$0: function() {
- P._Future__propagateToListeners(this.$this, this._box_0.listeners);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._Future__chainForeignFuture_closure.prototype = {
- call$1: function(value) {
- var t1 = this.target;
- t1._state = 0;
- t1._complete$1(value);
- },
- $signature: 54
- };
- P._Future__chainForeignFuture_closure0.prototype = {
- call$2: function(error, stackTrace) {
- this.target._completeError$2(error, stackTrace);
- },
- call$1: function(error) {
- return this.call$2(error, null);
- },
- "call*": "call$2",
- $defaultValues: function() {
- return [null];
- },
- $signature: 123
- };
- P._Future__chainForeignFuture_closure1.prototype = {
- call$0: function() {
- this.target._completeError$2(this.e, this.s);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._Future__asyncComplete_closure.prototype = {
- call$0: function() {
- this.$this._completeWithValue$1(this.value);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._Future__chainFuture_closure.prototype = {
- call$0: function() {
- P._Future__chainCoreFuture(this.value, this.$this);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._Future__asyncCompleteError_closure.prototype = {
- call$0: function() {
- this.$this._completeError$2(this.error, this.stackTrace);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._Future__propagateToListeners_handleWhenCompleteCallback.prototype = {
- call$0: function() {
- var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null;
- try {
- t1 = _this.listener;
- completeResult = t1.result._zone.run$1(0, t1.callback);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- if (_this.hasError) {
- t1 = _this._box_1.source._resultOrListeners.error;
- t2 = e;
- t2 = t1 == null ? t2 == null : t1 === t2;
- t1 = t2;
- } else
- t1 = false;
- t2 = _this._box_0;
- if (t1)
- t2.listenerValueOrError = _this._box_1.source._resultOrListeners;
- else
- t2.listenerValueOrError = P.AsyncError$(e, s);
- t2.listenerHasError = true;
- return;
- }
- if (type$.Future_dynamic._is(completeResult)) {
- if (completeResult instanceof P._Future && completeResult._state >= 4) {
- if (completeResult._state === 8) {
- t1 = _this._box_0;
- t1.listenerValueOrError = completeResult._resultOrListeners;
- t1.listenerHasError = true;
- }
- return;
- }
- originalSource = _this._box_1.source;
- t1 = _this._box_0;
- t1.listenerValueOrError = completeResult.then$1$1(new P._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic);
- t1.listenerHasError = false;
- }
- },
- $signature: 1
- };
- P._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = {
- call$1: function(_) {
- return this.originalSource;
- },
- $signature: 121
- };
- P._Future__propagateToListeners_handleValueCallback.prototype = {
- call$0: function() {
- var e, s, t1, exception, _this = this;
- try {
- t1 = _this.listener;
- _this._box_0.listenerValueOrError = t1.result._zone.runUnary$2(t1.callback, _this.sourceResult);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- t1 = _this._box_0;
- t1.listenerValueOrError = P.AsyncError$(e, s);
- t1.listenerHasError = true;
- }
- },
- $signature: 1
- };
- P._Future__propagateToListeners_handleError.prototype = {
- call$0: function() {
- var asyncError, e, s, t1, t2, exception, t3, t4, _this = this;
- try {
- asyncError = _this._box_1.source._resultOrListeners;
- t1 = _this.listener;
- if (t1.matchesErrorTest$1(asyncError) && t1.errorCallback != null) {
- t2 = _this._box_0;
- t2.listenerValueOrError = t1.handleError$1(asyncError);
- t2.listenerHasError = false;
- }
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- t1 = _this._box_1.source._resultOrListeners;
- t2 = t1.error;
- t3 = e;
- t4 = _this._box_0;
- if (t2 == null ? t3 == null : t2 === t3)
- t4.listenerValueOrError = t1;
- else
- t4.listenerValueOrError = P.AsyncError$(e, s);
- t4.listenerHasError = true;
- }
- },
- $signature: 1
- };
- P._AsyncCallbackEntry.prototype = {};
- P.Stream.prototype = {
- get$isBroadcast: function() {
- return false;
- },
- get$length: function(_) {
- var t1 = {},
- future = new P._Future($.Zone__current, type$._Future_int);
- t1.count = 0;
- this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1, this), true, new P.Stream_length_closure0(t1, future), future.get$_completeError());
- return future;
- }
- };
- P.Stream_Stream$fromFuture_closure.prototype = {
- call$1: function(value) {
- var t1 = this.controller;
- t1._async$_add$1(value);
- t1._closeUnchecked$0();
- },
- $signature: function() {
- return this.T._eval$1("Null(0)");
- }
- };
- P.Stream_Stream$fromFuture_closure0.prototype = {
- call$2: function(error, stackTrace) {
- var t1 = this.controller;
- t1._addError$2(error, stackTrace);
- t1._closeUnchecked$0();
- },
- "call*": "call$2",
- $requiredArgCount: 2,
- $signature: 38
- };
- P.Stream_length_closure.prototype = {
- call$1: function(_) {
- ++this._box_0.count;
- },
- $signature: function() {
- return H._instanceType(this.$this)._eval$1("Null(Stream.T)");
- }
- };
- P.Stream_length_closure0.prototype = {
- call$0: function() {
- this.future._complete$1(this._box_0.count);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P.StreamSubscription.prototype = {};
- P.EventSink.prototype = {};
- P.StreamTransformerBase.prototype = {};
- P._StreamController.prototype = {
- get$stream: function() {
- return new P._ControllerStream(this, H._instanceType(this)._eval$1("_ControllerStream<1>"));
- },
- get$_pendingEvents: function() {
- if ((this._state & 8) === 0)
- return this._varData;
- return this._varData.varData;
- },
- _ensurePendingEvents$0: function() {
- var t1, state, _this = this;
- if ((_this._state & 8) === 0) {
- t1 = _this._varData;
- return t1 == null ? _this._varData = new P._StreamImplEvents() : t1;
- }
- state = _this._varData;
- t1 = state.varData;
- return t1 == null ? state.varData = new P._StreamImplEvents() : t1;
- },
- get$_subscription: function() {
- if ((this._state & 8) !== 0)
- return this._varData.varData;
- return this._varData;
- },
- _badEventState$0: function() {
- if ((this._state & 4) !== 0)
- return new P.StateError("Cannot add event after closing");
- return new P.StateError("Cannot add event while adding a stream");
- },
- addStream$2$cancelOnError: function(source, cancelOnError) {
- var t2, t3, t4, _this = this,
- t1 = _this._state;
- if (t1 >= 4)
- throw H.wrapException(_this._badEventState$0());
- if ((t1 & 2) !== 0) {
- t1 = new P._Future($.Zone__current, type$._Future_dynamic);
- t1._asyncComplete$1(null);
- return t1;
- }
- t1 = _this._varData;
- t2 = new P._Future($.Zone__current, type$._Future_dynamic);
- t3 = source.listen$4$cancelOnError$onDone$onError(_this.get$_async$_add(), false, _this.get$_close(), _this.get$_addError());
- t4 = _this._state;
- if ((t4 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t4 & 2) === 0)
- t3.pause$0(0);
- _this._varData = new P._StreamControllerAddStreamState(t1, t2, t3);
- _this._state |= 8;
- return t2;
- },
- _ensureDoneFuture$0: function() {
- var t1 = this._doneFuture;
- if (t1 == null)
- t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new P._Future($.Zone__current, type$._Future_dynamic);
- return t1;
- },
- add$1: function(_, value) {
- if (this._state >= 4)
- throw H.wrapException(this._badEventState$0());
- this._async$_add$1(value);
- },
- addError$2: function(error, stackTrace) {
- var replacement;
- P.ArgumentError_checkNotNull(error, "error");
- if (this._state >= 4)
- throw H.wrapException(this._badEventState$0());
- if (error == null)
- error = new P.NullThrownError();
- replacement = $.Zone__current.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- if (error == null)
- error = new P.NullThrownError();
- stackTrace = replacement.stackTrace;
- }
- this._addError$2(error, stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace);
- },
- addError$1: function(error) {
- return this.addError$2(error, null);
- },
- close$0: function(_) {
- var _this = this,
- t1 = _this._state;
- if ((t1 & 4) !== 0)
- return _this._ensureDoneFuture$0();
- if (t1 >= 4)
- throw H.wrapException(_this._badEventState$0());
- _this._closeUnchecked$0();
- return _this._ensureDoneFuture$0();
- },
- _closeUnchecked$0: function() {
- var t1 = this._state |= 4;
- if ((t1 & 1) !== 0)
- this._sendDone$0();
- else if ((t1 & 3) === 0)
- this._ensurePendingEvents$0().add$1(0, C.C__DelayedDone);
- },
- _async$_add$1: function(value) {
- var t1 = this._state;
- if ((t1 & 1) !== 0)
- this._sendData$1(value);
- else if ((t1 & 3) === 0)
- this._ensurePendingEvents$0().add$1(0, new P._DelayedData(value));
- },
- _addError$2: function(error, stackTrace) {
- var t1 = this._state;
- if ((t1 & 1) !== 0)
- this._sendError$2(error, stackTrace);
- else if ((t1 & 3) === 0)
- this._ensurePendingEvents$0().add$1(0, new P._DelayedError(error, stackTrace));
- },
- _close$0: function() {
- var addState = this._varData;
- this._varData = addState.varData;
- this._state &= 4294967287;
- addState.addStreamFuture._asyncComplete$1(null);
- },
- _subscribe$4: function(onData, onError, onDone, cancelOnError) {
- var t1, t2, t3, subscription, pendingEvents, addState, _this = this;
- if ((_this._state & 3) !== 0)
- throw H.wrapException(P.StateError$("Stream has already been listened to."));
- t1 = H._instanceType(_this);
- t2 = $.Zone__current;
- t3 = cancelOnError ? 1 : 0;
- subscription = new P._ControllerSubscription(_this, t2, t3, t1._eval$1("_ControllerSubscription<1>"));
- subscription._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, t1._precomputed1);
- pendingEvents = _this.get$_pendingEvents();
- t1 = _this._state |= 1;
- if ((t1 & 8) !== 0) {
- addState = _this._varData;
- addState.varData = subscription;
- addState.addSubscription.resume$0();
- } else
- _this._varData = subscription;
- subscription._setPendingEvents$1(pendingEvents);
- subscription._guardCallback$1(new P._StreamController__subscribe_closure(_this));
- return subscription;
- },
- _recordCancel$1: function(subscription) {
- var e, s, t1, exception, result0, _this = this, result = null;
- if ((_this._state & 8) !== 0)
- result = _this._varData.cancel$0();
- _this._varData = null;
- _this._state = _this._state & 4294967286 | 2;
- t1 = _this.onCancel;
- if (t1 != null)
- if (result == null)
- try {
- result = t1.call$0();
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- result0 = new P._Future($.Zone__current, type$._Future_dynamic);
- result0._asyncCompleteError$2(e, s);
- result = result0;
- }
- else
- result = result.whenComplete$1(t1);
- t1 = new P._StreamController__recordCancel_complete(_this);
- if (result != null)
- result = result.whenComplete$1(t1);
- else
- t1.call$0();
- return result;
- },
- _recordPause$1: function(subscription) {
- if ((this._state & 8) !== 0)
- this._varData.addSubscription.pause$0(0);
- P._runGuarded(this.onPause);
- },
- _recordResume$1: function(subscription) {
- if ((this._state & 8) !== 0)
- this._varData.addSubscription.resume$0();
- P._runGuarded(this.onResume);
- },
- $isEventSink: 1,
- set$onListen: function(val) {
- return this.onListen = val;
- },
- set$onPause: function(val) {
- return this.onPause = val;
- },
- set$onResume: function(val) {
- return this.onResume = val;
- },
- set$onCancel: function(val) {
- return this.onCancel = val;
- }
- };
- P._StreamController__subscribe_closure.prototype = {
- call$0: function() {
- P._runGuarded(this.$this.onListen);
- },
- $signature: 0
- };
- P._StreamController__recordCancel_complete.prototype = {
- call$0: function() {
- var t1 = this.$this._doneFuture;
- if (t1 != null && t1._state === 0)
- t1._asyncComplete$1(null);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 1
- };
- P._SyncStreamControllerDispatch.prototype = {
- _sendData$1: function(data) {
- this.get$_subscription()._async$_add$1(data);
- },
- _sendError$2: function(error, stackTrace) {
- this.get$_subscription()._addError$2(error, stackTrace);
- },
- _sendDone$0: function() {
- this.get$_subscription()._close$0();
- }
- };
- P._AsyncStreamControllerDispatch.prototype = {
- _sendData$1: function(data) {
- this.get$_subscription()._addPending$1(new P._DelayedData(data));
- },
- _sendError$2: function(error, stackTrace) {
- this.get$_subscription()._addPending$1(new P._DelayedError(error, stackTrace));
- },
- _sendDone$0: function() {
- this.get$_subscription()._addPending$1(C.C__DelayedDone);
- }
- };
- P._AsyncStreamController.prototype = {};
- P._SyncStreamController.prototype = {};
- P._ControllerStream.prototype = {
- get$hashCode: function(_) {
- return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>> 0;
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- if (this === other)
- return true;
- return other instanceof P._ControllerStream && other._async$_controller === this._async$_controller;
- }
- };
- P._ControllerSubscription.prototype = {
- _async$_onCancel$0: function() {
- return this._async$_controller._recordCancel$1(this);
- },
- _async$_onPause$0: function() {
- this._async$_controller._recordPause$1(this);
- },
- _async$_onResume$0: function() {
- this._async$_controller._recordResume$1(this);
- }
- };
- P._AddStreamState.prototype = {
- cancel$0: function() {
- var cancel = this.addSubscription.cancel$0();
- if (cancel == null) {
- this.addStreamFuture._asyncComplete$1(null);
- return null;
- }
- return cancel.whenComplete$1(new P._AddStreamState_cancel_closure(this));
- }
- };
- P._AddStreamState_cancel_closure.prototype = {
- call$0: function() {
- this.$this.addStreamFuture._asyncComplete$1(null);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._StreamControllerAddStreamState.prototype = {};
- P._BufferingStreamSubscription.prototype = {
- _BufferingStreamSubscription$4: function(onData, onError, onDone, cancelOnError, $T) {
- var handleError, _this = this,
- handleData = onData == null ? P.async___nullDataHandler$closure() : onData,
- t1 = _this._zone;
- _this._onData = t1.registerUnaryCallback$1(handleData);
- handleError = onError == null ? P.async___nullErrorHandler$closure() : onError;
- if (type$.void_Function_Object_StackTrace._is(handleError))
- _this._onError = t1.registerBinaryCallback$1(handleError);
- else if (type$.void_Function_Object._is(handleError))
- _this._onError = t1.registerUnaryCallback$1(handleError);
- else
- H.throwExpression(P.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace."));
- _this._onDone = t1.registerCallback$1(onDone == null ? P.async___nullDoneHandler$closure() : onDone);
- },
- _setPendingEvents$1: function(pendingEvents) {
- var _this = this;
- if (pendingEvents == null)
- return;
- _this._pending = pendingEvents;
- if (pendingEvents.lastPendingEvent != null) {
- _this._state = (_this._state | 64) >>> 0;
- pendingEvents.schedule$1(_this);
- }
- },
- pause$1: function(_, resumeSignal) {
- var t2, t3, _this = this,
- t1 = _this._state;
- if ((t1 & 8) !== 0)
- return;
- t2 = (t1 + 128 | 4) >>> 0;
- _this._state = t2;
- if (t1 < 128 && _this._pending != null) {
- t3 = _this._pending;
- if (t3._state === 1)
- t3._state = 3;
- }
- if ((t1 & 4) === 0 && (t2 & 32) === 0)
- _this._guardCallback$1(_this.get$_async$_onPause());
- },
- pause$0: function($receiver) {
- return this.pause$1($receiver, null);
- },
- resume$0: function() {
- var _this = this,
- t1 = _this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 >= 128) {
- t1 = _this._state = t1 - 128;
- if (t1 < 128)
- if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent != null)
- _this._pending.schedule$1(_this);
- else {
- t1 = (t1 & 4294967291) >>> 0;
- _this._state = t1;
- if ((t1 & 32) === 0)
- _this._guardCallback$1(_this.get$_async$_onResume());
- }
- }
- },
- cancel$0: function() {
- var _this = this,
- t1 = (_this._state & 4294967279) >>> 0;
- _this._state = t1;
- if ((t1 & 8) === 0)
- _this._cancel$0();
- t1 = _this._cancelFuture;
- return t1 == null ? $.$get$Future__nullFuture() : t1;
- },
- _cancel$0: function() {
- var t2, _this = this,
- t1 = _this._state = (_this._state | 8) >>> 0;
- if ((t1 & 64) !== 0) {
- t2 = _this._pending;
- if (t2._state === 1)
- t2._state = 3;
- }
- if ((t1 & 32) === 0)
- _this._pending = null;
- _this._cancelFuture = _this._async$_onCancel$0();
- },
- _async$_add$1: function(data) {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 < 32)
- this._sendData$1(data);
- else
- this._addPending$1(new P._DelayedData(data));
- },
- _addError$2: function(error, stackTrace) {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 < 32)
- this._sendError$2(error, stackTrace);
- else
- this._addPending$1(new P._DelayedError(error, stackTrace));
- },
- _close$0: function() {
- var _this = this,
- t1 = _this._state;
- if ((t1 & 8) !== 0)
- return;
- t1 = (t1 | 2) >>> 0;
- _this._state = t1;
- if (t1 < 32)
- _this._sendDone$0();
- else
- _this._addPending$1(C.C__DelayedDone);
- },
- _async$_onPause$0: function() {
- },
- _async$_onResume$0: function() {
- },
- _async$_onCancel$0: function() {
- return null;
- },
- _addPending$1: function($event) {
- var t1, _this = this,
- pending = _this._pending;
- (pending == null ? _this._pending = new P._StreamImplEvents() : pending).add$1(0, $event);
- t1 = _this._state;
- if ((t1 & 64) === 0) {
- t1 = (t1 | 64) >>> 0;
- _this._state = t1;
- if (t1 < 128)
- _this._pending.schedule$1(_this);
- }
- },
- _sendData$1: function(data) {
- var _this = this,
- t1 = _this._state;
- _this._state = (t1 | 32) >>> 0;
- _this._zone.runUnaryGuarded$2(_this._onData, data);
- _this._state = (_this._state & 4294967263) >>> 0;
- _this._checkState$1((t1 & 4) !== 0);
- },
- _sendError$2: function(error, stackTrace) {
- var _this = this,
- t1 = _this._state,
- t2 = new P._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace);
- if ((t1 & 1) !== 0) {
- _this._state = (t1 | 16) >>> 0;
- _this._cancel$0();
- t1 = _this._cancelFuture;
- if (t1 != null && t1 !== $.$get$Future__nullFuture())
- t1.whenComplete$1(t2);
- else
- t2.call$0();
- } else {
- t2.call$0();
- _this._checkState$1((t1 & 4) !== 0);
- }
- },
- _sendDone$0: function() {
- var t2, _this = this,
- t1 = new P._BufferingStreamSubscription__sendDone_sendDone(_this);
- _this._cancel$0();
- _this._state = (_this._state | 16) >>> 0;
- t2 = _this._cancelFuture;
- if (t2 != null && t2 !== $.$get$Future__nullFuture())
- t2.whenComplete$1(t1);
- else
- t1.call$0();
- },
- _guardCallback$1: function(callback) {
- var _this = this,
- t1 = _this._state;
- _this._state = (t1 | 32) >>> 0;
- callback.call$0();
- _this._state = (_this._state & 4294967263) >>> 0;
- _this._checkState$1((t1 & 4) !== 0);
- },
- _checkState$1: function(wasInputPaused) {
- var t2, isInputPaused, _this = this,
- t1 = _this._state;
- if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent == null) {
- t1 = _this._state = (t1 & 4294967231) >>> 0;
- if ((t1 & 4) !== 0)
- if (t1 < 128) {
- t2 = _this._pending;
- t2 = t2 == null || t2.lastPendingEvent == null;
- } else
- t2 = false;
- else
- t2 = false;
- if (t2) {
- t1 = (t1 & 4294967291) >>> 0;
- _this._state = t1;
- }
- }
- for (; true; wasInputPaused = isInputPaused) {
- if ((t1 & 8) !== 0) {
- _this._pending = null;
- return;
- }
- isInputPaused = (t1 & 4) !== 0;
- if (wasInputPaused === isInputPaused)
- break;
- _this._state = (t1 ^ 32) >>> 0;
- if (isInputPaused)
- _this._async$_onPause$0();
- else
- _this._async$_onResume$0();
- t1 = (_this._state & 4294967263) >>> 0;
- _this._state = t1;
- }
- if ((t1 & 64) !== 0 && t1 < 128)
- _this._pending.schedule$1(_this);
- },
- $isStreamSubscription: 1
- };
- P._BufferingStreamSubscription__sendError_sendError.prototype = {
- call$0: function() {
- var onError, t3,
- t1 = this.$this,
- t2 = t1._state;
- if ((t2 & 8) !== 0 && (t2 & 16) === 0)
- return;
- t1._state = (t2 | 32) >>> 0;
- onError = t1._onError;
- t2 = this.error;
- t3 = t1._zone;
- if (type$.void_Function_Object_StackTrace._is(onError))
- t3.runBinaryGuarded$3(onError, t2, this.stackTrace);
- else
- t3.runUnaryGuarded$2(onError, t2);
- t1._state = (t1._state & 4294967263) >>> 0;
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 1
- };
- P._BufferingStreamSubscription__sendDone_sendDone.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._state;
- if ((t2 & 16) === 0)
- return;
- t1._state = (t2 | 42) >>> 0;
- t1._zone.runGuarded$1(t1._onDone);
- t1._state = (t1._state & 4294967263) >>> 0;
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 1
- };
- P._StreamImpl.prototype = {
- listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
- return this._async$_controller._subscribe$4(onData, onError, onDone, true === cancelOnError);
- },
- listen$3$onDone$onError: function(onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
- }
- };
- P._DelayedEvent.prototype = {
- get$next: function() {
- return this.next;
- },
- set$next: function(val) {
- return this.next = val;
- }
- };
- P._DelayedData.prototype = {
- perform$1: function(dispatch) {
- dispatch._sendData$1(this.value);
- }
- };
- P._DelayedError.prototype = {
- perform$1: function(dispatch) {
- dispatch._sendError$2(this.error, this.stackTrace);
- }
- };
- P._DelayedDone.prototype = {
- perform$1: function(dispatch) {
- dispatch._sendDone$0();
- },
- get$next: function() {
- return null;
- },
- set$next: function(_) {
- throw H.wrapException(P.StateError$("No events after a done."));
- }
- };
- P._PendingEvents.prototype = {
- schedule$1: function(dispatch) {
- var _this = this,
- t1 = _this._state;
- if (t1 === 1)
- return;
- if (t1 >= 1) {
- _this._state = 1;
- return;
- }
- P.scheduleMicrotask(new P._PendingEvents_schedule_closure(_this, dispatch));
- _this._state = 1;
- }
- };
- P._PendingEvents_schedule_closure.prototype = {
- call$0: function() {
- var $event, t2,
- t1 = this.$this,
- oldState = t1._state;
- t1._state = 0;
- if (oldState === 3)
- return;
- $event = t1.firstPendingEvent;
- t2 = $event.get$next();
- t1.firstPendingEvent = t2;
- if (t2 == null)
- t1.lastPendingEvent = null;
- $event.perform$1(this.dispatch);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- P._StreamImplEvents.prototype = {
- add$1: function(_, $event) {
- var _this = this,
- t1 = _this.lastPendingEvent;
- if (t1 == null)
- _this.firstPendingEvent = _this.lastPendingEvent = $event;
- else {
- t1.set$next($event);
- _this.lastPendingEvent = $event;
- }
- }
- };
- P._DoneStreamSubscription.prototype = {
- _schedule$0: function() {
- var _this = this;
- if ((_this._state & 2) !== 0)
- return;
- _this._zone.scheduleMicrotask$1(_this.get$_sendDone());
- _this._state = (_this._state | 2) >>> 0;
- },
- pause$1: function(_, resumeSignal) {
- this._state += 4;
- },
- pause$0: function($receiver) {
- return this.pause$1($receiver, null);
- },
- resume$0: function() {
- var t1 = this._state;
- if (t1 >= 4) {
- t1 = this._state = t1 - 4;
- if (t1 < 4 && (t1 & 1) === 0)
- this._schedule$0();
- }
- },
- cancel$0: function() {
- return $.$get$Future__nullFuture();
- },
- _sendDone$0: function() {
- var _this = this,
- t1 = _this._state = (_this._state & 4294967293) >>> 0;
- if (t1 >= 4)
- return;
- _this._state = (t1 | 1) >>> 0;
- _this._zone.runGuarded$1(_this._onDone);
- },
- $isStreamSubscription: 1
- };
- P._StreamIterator.prototype = {
- get$current: function(_) {
- if (this._subscription != null && this._isPaused)
- return this._stateData;
- return null;
- },
- moveNext$0: function() {
- var future, _this = this,
- t1 = _this._subscription;
- if (t1 != null) {
- if (_this._isPaused) {
- future = new P._Future($.Zone__current, type$._Future_bool);
- _this._stateData = future;
- _this._isPaused = false;
- t1.resume$0();
- return future;
- }
- throw H.wrapException(P.StateError$("Already waiting for next."));
- }
- return _this._initializeOrDone$0();
- },
- _initializeOrDone$0: function() {
- var _this = this,
- stateData = _this._stateData;
- if (stateData != null) {
- _this._subscription = stateData.listen$4$cancelOnError$onDone$onError(_this.get$_onData(), true, _this.get$_onDone(), _this.get$_onError());
- return _this._stateData = new P._Future($.Zone__current, type$._Future_bool);
- }
- return $.$get$Future__falseFuture();
- },
- cancel$0: function() {
- var _this = this,
- subscription = _this._subscription,
- stateData = _this._stateData;
- _this._stateData = null;
- if (subscription != null) {
- _this._subscription = null;
- if (!_this._isPaused)
- stateData._asyncComplete$1(false);
- return subscription.cancel$0();
- }
- return $.$get$Future__nullFuture();
- },
- _onData$1: function(data) {
- var t1, _this = this,
- moveNextFuture = _this._stateData;
- _this._stateData = data;
- _this._isPaused = true;
- moveNextFuture._complete$1(true);
- t1 = _this._subscription;
- if (t1 != null && _this._isPaused)
- t1.pause$0(0);
- },
- _onError$2: function(error, stackTrace) {
- var moveNextFuture = this._stateData;
- this._stateData = this._subscription = null;
- moveNextFuture._completeError$2(error, stackTrace);
- },
- _onError$1: function(error) {
- return this._onError$2(error, null);
- },
- _onDone$0: function() {
- var moveNextFuture = this._stateData;
- this._stateData = this._subscription = null;
- moveNextFuture._complete$1(false);
- }
- };
- P._ForwardingStream.prototype = {
- get$isBroadcast: function() {
- return this._async$_source.get$isBroadcast();
- },
- listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
- var t1, t2, t3, t4;
- cancelOnError = true === cancelOnError;
- t1 = H._instanceType(this);
- t2 = t1._rest[1];
- t3 = $.Zone__current;
- t4 = cancelOnError ? 1 : 0;
- t1 = new P._ForwardingStreamSubscription(this, t3, t4, t1._eval$1("@<1>")._bind$1(t2)._eval$1("_ForwardingStreamSubscription<1,2>"));
- t1._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, t2);
- t1._subscription = this._async$_source.listen$3$onDone$onError(t1.get$_handleData(), t1.get$_handleDone(), t1.get$_handleError());
- return t1;
- },
- listen$3$onDone$onError: function(onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
- },
- _handleData$2: function(data, sink) {
- sink._async$_add$1(data);
- }
- };
- P._ForwardingStreamSubscription.prototype = {
- _async$_add$1: function(data) {
- if ((this._state & 2) !== 0)
- return;
- this.super$_BufferingStreamSubscription$_add(data);
- },
- _addError$2: function(error, stackTrace) {
- if ((this._state & 2) !== 0)
- return;
- this.super$_BufferingStreamSubscription$_addError(error, stackTrace);
- },
- _async$_onPause$0: function() {
- var t1 = this._subscription;
- if (t1 == null)
- return;
- t1.pause$0(0);
- },
- _async$_onResume$0: function() {
- var t1 = this._subscription;
- if (t1 == null)
- return;
- t1.resume$0();
- },
- _async$_onCancel$0: function() {
- var t1 = this._subscription;
- if (t1 != null) {
- this._subscription = null;
- return t1.cancel$0();
- }
- return null;
- },
- _handleData$1: function(data) {
- this._stream._handleData$2(data, this);
- },
- _handleError$2: function(error, stackTrace) {
- this._addError$2(error, stackTrace);
- },
- _handleDone$0: function() {
- this._close$0();
- }
- };
- P._ExpandStream.prototype = {
- _handleData$2: function(inputEvent, sink) {
- var value, e, s, t1, exception;
- try {
- for (t1 = J.get$iterator$ax(this._expand.call$1(inputEvent)); t1.moveNext$0();) {
- value = t1.get$current(t1);
- sink._async$_add$1(value);
- }
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- P._addErrorWithReplacement(sink, e, s);
- }
- }
- };
- P.Timer.prototype = {};
- P.AsyncError.prototype = {
- toString$0: function(_) {
- return H.S(this.error);
- },
- $isError: 1,
- get$stackTrace: function() {
- return this.stackTrace;
- }
- };
- P._ZoneFunction.prototype = {};
- P._RunNullaryZoneFunction.prototype = {};
- P._RunUnaryZoneFunction.prototype = {};
- P._RunBinaryZoneFunction.prototype = {};
- P._RegisterNullaryZoneFunction.prototype = {};
- P._RegisterUnaryZoneFunction.prototype = {};
- P._RegisterBinaryZoneFunction.prototype = {};
- P.ZoneSpecification.prototype = {};
- P._ZoneSpecification.prototype = {$isZoneSpecification: 1};
- P.ZoneDelegate.prototype = {};
- P.Zone.prototype = {};
- P._ZoneDelegate.prototype = {$isZoneDelegate: 1};
- P._Zone.prototype = {$isZone: 1};
- P._CustomZone.prototype = {
- get$_delegate: function() {
- var t1 = this._delegateCache;
- if (t1 != null)
- return t1;
- return this._delegateCache = new P._ZoneDelegate(this);
- },
- get$errorZone: function() {
- return this._handleUncaughtError.zone;
- },
- runGuarded$1: function(f) {
- var e, s, exception;
- try {
- this.run$1(0, f);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- this.handleUncaughtError$2(e, s);
- }
- },
- runUnaryGuarded$1$2: function(f, arg) {
- var e, s, exception;
- try {
- this.runUnary$2(f, arg);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- this.handleUncaughtError$2(e, s);
- }
- },
- runUnaryGuarded$2: function(f, arg) {
- return this.runUnaryGuarded$1$2(f, arg, type$.dynamic);
- },
- runBinaryGuarded$2$3: function(f, arg1, arg2) {
- var e, s, exception;
- try {
- this.runBinary$3(f, arg1, arg2);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- this.handleUncaughtError$2(e, s);
- }
- },
- runBinaryGuarded$3: function(f, arg1, arg2) {
- return this.runBinaryGuarded$2$3(f, arg1, arg2, type$.dynamic, type$.dynamic);
- },
- bindCallback$1$1: function(f, $R) {
- return new P._CustomZone_bindCallback_closure(this, this.registerCallback$1(f), $R);
- },
- bindUnaryCallback$2$1: function(f, $R, $T) {
- return new P._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$1(f), $T, $R);
- },
- bindCallbackGuarded$1: function(f) {
- return new P._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1(f));
- },
- $index: function(_, key) {
- var value,
- t1 = this._async$_map,
- result = t1.$index(0, key);
- if (result != null || t1.containsKey$1(key))
- return result;
- value = this.parent.$index(0, key);
- if (value != null)
- t1.$indexSet(0, key, value);
- return value;
- },
- handleUncaughtError$2: function(error, stackTrace) {
- var implementation = this._handleUncaughtError,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$5(t1, parentDelegate, this, error, stackTrace);
- },
- fork$2$specification$zoneValues: function(specification, zoneValues) {
- var implementation = this._fork,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$5(t1, parentDelegate, this, specification, zoneValues);
- },
- run$1$1: function(_, f) {
- var implementation = this._run,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$4(t1, parentDelegate, this, f);
- },
- run$1: function($receiver, f) {
- return this.run$1$1($receiver, f, type$.dynamic);
- },
- runUnary$2$2: function(f, arg) {
- var implementation = this._runUnary,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$5(t1, parentDelegate, this, f, arg);
- },
- runUnary$2: function(f, arg) {
- return this.runUnary$2$2(f, arg, type$.dynamic, type$.dynamic);
- },
- runBinary$3$3: function(f, arg1, arg2) {
- var implementation = this._runBinary,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$6(t1, parentDelegate, this, f, arg1, arg2);
- },
- runBinary$3: function(f, arg1, arg2) {
- return this.runBinary$3$3(f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
- },
- registerCallback$1$1: function(callback) {
- var implementation = this._registerCallback,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$4(t1, parentDelegate, this, callback);
- },
- registerCallback$1: function(callback) {
- return this.registerCallback$1$1(callback, type$.dynamic);
- },
- registerUnaryCallback$2$1: function(callback) {
- var implementation = this._registerUnaryCallback,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$4(t1, parentDelegate, this, callback);
- },
- registerUnaryCallback$1: function(callback) {
- return this.registerUnaryCallback$2$1(callback, type$.dynamic, type$.dynamic);
- },
- registerBinaryCallback$3$1: function(callback) {
- var implementation = this._registerBinaryCallback,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$4(t1, parentDelegate, this, callback);
- },
- registerBinaryCallback$1: function(callback) {
- return this.registerBinaryCallback$3$1(callback, type$.dynamic, type$.dynamic, type$.dynamic);
- },
- errorCallback$2: function(error, stackTrace) {
- var implementation, implementationZone, parentDelegate;
- P.ArgumentError_checkNotNull(error, "error");
- implementation = this._errorCallback;
- implementationZone = implementation.zone;
- if (implementationZone === C.C__RootZone)
- return null;
- parentDelegate = P._parentDelegate(implementationZone);
- return implementation.$function.call$5(implementationZone, parentDelegate, this, error, stackTrace);
- },
- scheduleMicrotask$1: function(f) {
- var implementation = this._scheduleMicrotask,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$4(t1, parentDelegate, this, f);
- },
- createTimer$2: function(duration, f) {
- var implementation = this._createTimer,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$5(t1, parentDelegate, this, duration, f);
- },
- print$1: function(line) {
- var implementation = this._print,
- t1 = implementation.zone,
- parentDelegate = P._parentDelegate(t1);
- return implementation.$function.call$4(t1, parentDelegate, this, line);
- },
- get$_run: function() {
- return this._run;
- },
- get$_runUnary: function() {
- return this._runUnary;
- },
- get$_runBinary: function() {
- return this._runBinary;
- },
- get$_registerCallback: function() {
- return this._registerCallback;
- },
- get$_registerUnaryCallback: function() {
- return this._registerUnaryCallback;
- },
- get$_registerBinaryCallback: function() {
- return this._registerBinaryCallback;
- },
- get$_errorCallback: function() {
- return this._errorCallback;
- },
- get$_scheduleMicrotask: function() {
- return this._scheduleMicrotask;
- },
- get$_createTimer: function() {
- return this._createTimer;
- },
- get$_createPeriodicTimer: function() {
- return this._createPeriodicTimer;
- },
- get$_print: function() {
- return this._print;
- },
- get$_fork: function() {
- return this._fork;
- },
- get$_handleUncaughtError: function() {
- return this._handleUncaughtError;
- },
- get$parent: function() {
- return this.parent;
- },
- get$_async$_map: function() {
- return this._async$_map;
- }
- };
- P._CustomZone_bindCallback_closure.prototype = {
- call$0: function() {
- return this.$this.run$1(0, this.registered);
- },
- $signature: function() {
- return this.R._eval$1("0()");
- }
- };
- P._CustomZone_bindUnaryCallback_closure.prototype = {
- call$1: function(arg) {
- return this.$this.runUnary$2(this.registered, arg);
- },
- $signature: function() {
- return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
- }
- };
- P._CustomZone_bindCallbackGuarded_closure.prototype = {
- call$0: function() {
- return this.$this.runGuarded$1(this.registered);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 1
- };
- P._rootHandleUncaughtError_closure.prototype = {
- call$0: function() {
- var error,
- t1 = this._box_0,
- t2 = t1.stackTrace;
- if (t2 == null)
- throw H.wrapException(t1.error);
- error = H.wrapException(t1.error);
- error.stack = t2.toString$0(0);
- throw error;
- },
- $signature: 0
- };
- P._RootZone.prototype = {
- get$_run: function() {
- return C._RunNullaryZoneFunction__RootZone__rootRun;
- },
- get$_runUnary: function() {
- return C._RunUnaryZoneFunction__RootZone__rootRunUnary;
- },
- get$_runBinary: function() {
- return C._RunBinaryZoneFunction__RootZone__rootRunBinary;
- },
- get$_registerCallback: function() {
- return C._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback;
- },
- get$_registerUnaryCallback: function() {
- return C._RegisterUnaryZoneFunction_Bqo;
- },
- get$_registerBinaryCallback: function() {
- return C._RegisterBinaryZoneFunction_kGu;
- },
- get$_errorCallback: function() {
- return C._ZoneFunction__RootZone__rootErrorCallback;
- },
- get$_scheduleMicrotask: function() {
- return C._ZoneFunction__RootZone__rootScheduleMicrotask;
- },
- get$_createTimer: function() {
- return C._ZoneFunction__RootZone__rootCreateTimer;
- },
- get$_createPeriodicTimer: function() {
- return C._ZoneFunction_3bB;
- },
- get$_print: function() {
- return C._ZoneFunction__RootZone__rootPrint;
- },
- get$_fork: function() {
- return C._ZoneFunction__RootZone__rootFork;
- },
- get$_handleUncaughtError: function() {
- return C._ZoneFunction_NMc;
- },
- get$parent: function() {
- return null;
- },
- get$_async$_map: function() {
- return $.$get$_RootZone__rootMap();
- },
- get$_delegate: function() {
- var t1 = $._RootZone__rootDelegate;
- if (t1 != null)
- return t1;
- return $._RootZone__rootDelegate = new P._ZoneDelegate(this);
- },
- get$errorZone: function() {
- return this;
- },
- runGuarded$1: function(f) {
- var e, s, exception, _null = null;
- try {
- if (C.C__RootZone === $.Zone__current) {
- f.call$0();
- return;
- }
- P._rootRun(_null, _null, this, f);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- P._rootHandleUncaughtError(_null, _null, this, e, s);
- }
- },
- runUnaryGuarded$1$2: function(f, arg) {
- var e, s, exception, _null = null;
- try {
- if (C.C__RootZone === $.Zone__current) {
- f.call$1(arg);
- return;
- }
- P._rootRunUnary(_null, _null, this, f, arg);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- P._rootHandleUncaughtError(_null, _null, this, e, s);
- }
- },
- runUnaryGuarded$2: function(f, arg) {
- return this.runUnaryGuarded$1$2(f, arg, type$.dynamic);
- },
- runBinaryGuarded$2$3: function(f, arg1, arg2) {
- var e, s, exception, _null = null;
- try {
- if (C.C__RootZone === $.Zone__current) {
- f.call$2(arg1, arg2);
- return;
- }
- P._rootRunBinary(_null, _null, this, f, arg1, arg2);
- } catch (exception) {
- e = H.unwrapException(exception);
- s = H.getTraceFromException(exception);
- P._rootHandleUncaughtError(_null, _null, this, e, s);
- }
- },
- runBinaryGuarded$3: function(f, arg1, arg2) {
- return this.runBinaryGuarded$2$3(f, arg1, arg2, type$.dynamic, type$.dynamic);
- },
- bindCallback$1$1: function(f, $R) {
- return new P._RootZone_bindCallback_closure(this, f, $R);
- },
- bindCallbackGuarded$1: function(f) {
- return new P._RootZone_bindCallbackGuarded_closure(this, f);
- },
- $index: function(_, key) {
- return null;
- },
- handleUncaughtError$2: function(error, stackTrace) {
- P._rootHandleUncaughtError(null, null, this, error, stackTrace);
- },
- fork$2$specification$zoneValues: function(specification, zoneValues) {
- return P._rootFork(null, null, this, specification, zoneValues);
- },
- run$1$1: function(_, f) {
- if ($.Zone__current === C.C__RootZone)
- return f.call$0();
- return P._rootRun(null, null, this, f);
- },
- run$1: function($receiver, f) {
- return this.run$1$1($receiver, f, type$.dynamic);
- },
- runUnary$2$2: function(f, arg) {
- if ($.Zone__current === C.C__RootZone)
- return f.call$1(arg);
- return P._rootRunUnary(null, null, this, f, arg);
- },
- runUnary$2: function(f, arg) {
- return this.runUnary$2$2(f, arg, type$.dynamic, type$.dynamic);
- },
- runBinary$3$3: function(f, arg1, arg2) {
- if ($.Zone__current === C.C__RootZone)
- return f.call$2(arg1, arg2);
- return P._rootRunBinary(null, null, this, f, arg1, arg2);
- },
- runBinary$3: function(f, arg1, arg2) {
- return this.runBinary$3$3(f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
- },
- registerCallback$1$1: function(f) {
- return f;
- },
- registerCallback$1: function(f) {
- return this.registerCallback$1$1(f, type$.dynamic);
- },
- registerUnaryCallback$2$1: function(f) {
- return f;
- },
- registerUnaryCallback$1: function(f) {
- return this.registerUnaryCallback$2$1(f, type$.dynamic, type$.dynamic);
- },
- registerBinaryCallback$3$1: function(f) {
- return f;
- },
- registerBinaryCallback$1: function(f) {
- return this.registerBinaryCallback$3$1(f, type$.dynamic, type$.dynamic, type$.dynamic);
- },
- errorCallback$2: function(error, stackTrace) {
- return null;
- },
- scheduleMicrotask$1: function(f) {
- P._rootScheduleMicrotask(null, null, this, f);
- },
- createTimer$2: function(duration, f) {
- return P.Timer__createTimer(duration, f);
- },
- print$1: function(line) {
- H.printString(line);
- }
- };
- P._RootZone_bindCallback_closure.prototype = {
- call$0: function() {
- return this.$this.run$1(0, this.f);
- },
- $signature: function() {
- return this.R._eval$1("0()");
- }
- };
- P._RootZone_bindCallbackGuarded_closure.prototype = {
- call$0: function() {
- return this.$this.runGuarded$1(this.f);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 1
- };
- P._HashMap.prototype = {
- get$length: function(_) {
- return this._collection$_length;
- },
- get$isEmpty: function(_) {
- return this._collection$_length === 0;
- },
- get$isNotEmpty: function(_) {
- return this._collection$_length !== 0;
- },
- get$keys: function() {
- return new P._HashMapKeyIterable(this, H._instanceType(this)._eval$1("_HashMapKeyIterable<1>"));
- },
- get$values: function() {
- var t1 = H._instanceType(this);
- return H.MappedIterable_MappedIterable(new P._HashMapKeyIterable(this, t1._eval$1("_HashMapKeyIterable<1>")), new P._HashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
- },
- containsKey$1: function(key) {
- var strings, nums;
- if (typeof key == "string" && key !== "__proto__") {
- strings = this._collection$_strings;
- return strings == null ? false : strings[key] != null;
- } else if (typeof key == "number" && (key & 1073741823) === key) {
- nums = this._collection$_nums;
- return nums == null ? false : nums[key] != null;
- } else
- return this._containsKey$1(key);
- },
- _containsKey$1: function(key) {
- var rest = this._collection$_rest;
- if (rest == null)
- return false;
- return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0;
- },
- addAll$1: function(_, other) {
- other.forEach$1(0, new P._HashMap_addAll_closure(this));
- },
- $index: function(_, key) {
- var strings, t1, nums;
- if (typeof key == "string" && key !== "__proto__") {
- strings = this._collection$_strings;
- t1 = strings == null ? null : P._HashMap__getTableEntry(strings, key);
- return t1;
- } else if (typeof key == "number" && (key & 1073741823) === key) {
- nums = this._collection$_nums;
- t1 = nums == null ? null : P._HashMap__getTableEntry(nums, key);
- return t1;
- } else
- return this._get$1(key);
- },
- _get$1: function(key) {
- var bucket, index,
- rest = this._collection$_rest;
- if (rest == null)
- return null;
- bucket = this._getBucket$2(rest, key);
- index = this._findBucketIndex$2(bucket, key);
- return index < 0 ? null : bucket[index + 1];
- },
- $indexSet: function(_, key, value) {
- var strings, nums, _this = this;
- if (typeof key == "string" && key !== "__proto__") {
- strings = _this._collection$_strings;
- _this._collection$_addHashTableEntry$3(strings == null ? _this._collection$_strings = P._HashMap__newHashTable() : strings, key, value);
- } else if (typeof key == "number" && (key & 1073741823) === key) {
- nums = _this._collection$_nums;
- _this._collection$_addHashTableEntry$3(nums == null ? _this._collection$_nums = P._HashMap__newHashTable() : nums, key, value);
- } else
- _this._set$2(key, value);
- },
- _set$2: function(key, value) {
- var hash, bucket, index, _this = this,
- rest = _this._collection$_rest;
- if (rest == null)
- rest = _this._collection$_rest = P._HashMap__newHashTable();
- hash = _this._computeHashCode$1(key);
- bucket = rest[hash];
- if (bucket == null) {
- P._HashMap__setTableEntry(rest, hash, [key, value]);
- ++_this._collection$_length;
- _this._keys = null;
- } else {
- index = _this._findBucketIndex$2(bucket, key);
- if (index >= 0)
- bucket[index + 1] = value;
- else {
- bucket.push(key, value);
- ++_this._collection$_length;
- _this._keys = null;
- }
- }
- },
- putIfAbsent$2: function(key, ifAbsent) {
- var value;
- if (this.containsKey$1(key))
- return this.$index(0, key);
- value = ifAbsent.call$0();
- this.$indexSet(0, key, value);
- return value;
- },
- remove$1: function(_, key) {
- var t1;
- if (typeof key == "string" && key !== "__proto__")
- return this._removeHashTableEntry$2(this._collection$_strings, key);
- else {
- t1 = this._remove$1(key);
- return t1;
- }
- },
- _remove$1: function(key) {
- var hash, bucket, index, result, _this = this,
- rest = _this._collection$_rest;
- if (rest == null)
- return null;
- hash = _this._computeHashCode$1(key);
- bucket = rest[hash];
- index = _this._findBucketIndex$2(bucket, key);
- if (index < 0)
- return null;
- --_this._collection$_length;
- _this._keys = null;
- result = bucket.splice(index, 2)[1];
- if (0 === bucket.length)
- delete rest[hash];
- return result;
- },
- forEach$1: function(_, action) {
- var $length, i, key, _this = this,
- keys = _this._computeKeys$0();
- for ($length = keys.length, i = 0; i < $length; ++i) {
- key = keys[i];
- action.call$2(key, _this.$index(0, key));
- if (keys !== _this._keys)
- throw H.wrapException(P.ConcurrentModificationError$(_this));
- }
- },
- _computeKeys$0: function() {
- var result, strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this,
- t1 = _this._keys;
- if (t1 != null)
- return t1;
- result = new Array(_this._collection$_length);
- result.fixed$length = Array;
- strings = _this._collection$_strings;
- if (strings != null) {
- names = Object.getOwnPropertyNames(strings);
- entries = names.length;
- for (index = 0, i = 0; i < entries; ++i) {
- result[index] = names[i];
- ++index;
- }
- } else
- index = 0;
- nums = _this._collection$_nums;
- if (nums != null) {
- names = Object.getOwnPropertyNames(nums);
- entries = names.length;
- for (i = 0; i < entries; ++i) {
- result[index] = +names[i];
- ++index;
- }
- }
- rest = _this._collection$_rest;
- if (rest != null) {
- names = Object.getOwnPropertyNames(rest);
- entries = names.length;
- for (i = 0; i < entries; ++i) {
- bucket = rest[names[i]];
- $length = bucket.length;
- for (i0 = 0; i0 < $length; i0 += 2) {
- result[index] = bucket[i0];
- ++index;
- }
- }
- }
- return _this._keys = result;
- },
- _collection$_addHashTableEntry$3: function(table, key, value) {
- if (table[key] == null) {
- ++this._collection$_length;
- this._keys = null;
- }
- P._HashMap__setTableEntry(table, key, value);
- },
- _removeHashTableEntry$2: function(table, key) {
- var value;
- if (table != null && table[key] != null) {
- value = P._HashMap__getTableEntry(table, key);
- delete table[key];
- --this._collection$_length;
- this._keys = null;
- return value;
- } else
- return null;
- },
- _computeHashCode$1: function(key) {
- return J.get$hashCode$(key) & 1073741823;
- },
- _getBucket$2: function(table, key) {
- return table[this._computeHashCode$1(key)];
- },
- _findBucketIndex$2: function(bucket, key) {
- var $length, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; i += 2)
- if (J.$eq$(bucket[i], key))
- return i;
- return -1;
- }
- };
- P._HashMap_values_closure.prototype = {
- call$1: function(each) {
- return this.$this.$index(0, each);
- },
- $signature: function() {
- return H._instanceType(this.$this)._eval$1("2(1)");
- }
- };
- P._HashMap_addAll_closure.prototype = {
- call$2: function(key, value) {
- this.$this.$indexSet(0, key, value);
- },
- $signature: function() {
- return H._instanceType(this.$this)._eval$1("Null(1,2)");
- }
- };
- P._HashMapKeyIterable.prototype = {
- get$length: function(_) {
- return this._collection$_map._collection$_length;
- },
- get$isEmpty: function(_) {
- return this._collection$_map._collection$_length === 0;
- },
- get$iterator: function(_) {
- var t1 = this._collection$_map;
- return new P._HashMapKeyIterator(t1, t1._computeKeys$0());
- },
- contains$1: function(_, element) {
- return this._collection$_map.containsKey$1(element);
- }
- };
- P._HashMapKeyIterator.prototype = {
- get$current: function(_) {
- return this._collection$_current;
- },
- moveNext$0: function() {
- var _this = this,
- keys = _this._keys,
- offset = _this._offset,
- t1 = _this._collection$_map;
- if (keys !== t1._keys)
- throw H.wrapException(P.ConcurrentModificationError$(t1));
- else if (offset >= keys.length) {
- _this._collection$_current = null;
- return false;
- } else {
- _this._collection$_current = keys[offset];
- _this._offset = offset + 1;
- return true;
- }
- }
- };
- P._LinkedIdentityHashMap.prototype = {
- internalComputeHashCode$1: function(key) {
- return H.objectHashCode(key) & 1073741823;
- },
- internalFindBucketIndex$2: function(bucket, key) {
- var $length, i, t1;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i) {
- t1 = bucket[i].hashMapCellKey;
- if (t1 == null ? key == null : t1 === key)
- return i;
- }
- return -1;
- }
- };
- P._LinkedCustomHashMap.prototype = {
- $index: function(_, key) {
- if (!this._validKey.call$1(key))
- return null;
- return this.super$JsLinkedHashMap$internalGet(key);
- },
- $indexSet: function(_, key, value) {
- this.super$JsLinkedHashMap$internalSet(key, value);
- },
- containsKey$1: function(key) {
- if (!this._validKey.call$1(key))
- return false;
- return this.super$JsLinkedHashMap$internalContainsKey(key);
- },
- remove$1: function(_, key) {
- if (!this._validKey.call$1(key))
- return null;
- return this.super$JsLinkedHashMap$internalRemove(key);
- },
- internalComputeHashCode$1: function(key) {
- return this._hashCode.call$1(key) & 1073741823;
- },
- internalFindBucketIndex$2: function(bucket, key) {
- var $length, t1, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (t1 = this._equals, i = 0; i < $length; ++i)
- if (t1.call$2(bucket[i].hashMapCellKey, key))
- return i;
- return -1;
- }
- };
- P._LinkedCustomHashMap_closure.prototype = {
- call$1: function(v) {
- return this.K._is(v);
- },
- $signature: 53
- };
- P._LinkedHashSet.prototype = {
- _newSet$0: function() {
- return new P._LinkedHashSet(H._instanceType(this)._eval$1("_LinkedHashSet<1>"));
- },
- _newSimilarSet$1$0: function($R) {
- return new P._LinkedHashSet($R._eval$1("_LinkedHashSet<0>"));
- },
- _newSimilarSet$0: function() {
- return this._newSimilarSet$1$0(type$.dynamic);
- },
- get$iterator: function(_) {
- var t1 = new P._LinkedHashSetIterator(this, this._collection$_modifications);
- t1._collection$_cell = this._collection$_first;
- return t1;
- },
- get$length: function(_) {
- return this._collection$_length;
- },
- get$isEmpty: function(_) {
- return this._collection$_length === 0;
- },
- get$isNotEmpty: function(_) {
- return this._collection$_length !== 0;
- },
- contains$1: function(_, object) {
- var strings, nums;
- if (typeof object == "string" && object !== "__proto__") {
- strings = this._collection$_strings;
- if (strings == null)
- return false;
- return strings[object] != null;
- } else if (typeof object == "number" && (object & 1073741823) === object) {
- nums = this._collection$_nums;
- if (nums == null)
- return false;
- return nums[object] != null;
- } else
- return this._contains$1(object);
- },
- _contains$1: function(object) {
- var rest = this._collection$_rest;
- if (rest == null)
- return false;
- return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0;
- },
- get$first: function(_) {
- var t1 = this._collection$_first;
- if (t1 == null)
- throw H.wrapException(P.StateError$("No elements"));
- return t1._element;
- },
- get$last: function(_) {
- var t1 = this._collection$_last;
- if (t1 == null)
- throw H.wrapException(P.StateError$("No elements"));
- return t1._element;
- },
- add$1: function(_, element) {
- var strings, nums, _this = this;
- if (typeof element == "string" && element !== "__proto__") {
- strings = _this._collection$_strings;
- return _this._collection$_addHashTableEntry$2(strings == null ? _this._collection$_strings = P._LinkedHashSet__newHashTable() : strings, element);
- } else if (typeof element == "number" && (element & 1073741823) === element) {
- nums = _this._collection$_nums;
- return _this._collection$_addHashTableEntry$2(nums == null ? _this._collection$_nums = P._LinkedHashSet__newHashTable() : nums, element);
- } else
- return _this._add$1(element);
- },
- _add$1: function(element) {
- var hash, bucket, _this = this,
- rest = _this._collection$_rest;
- if (rest == null)
- rest = _this._collection$_rest = P._LinkedHashSet__newHashTable();
- hash = _this._computeHashCode$1(element);
- bucket = rest[hash];
- if (bucket == null)
- rest[hash] = [_this._collection$_newLinkedCell$1(element)];
- else {
- if (_this._findBucketIndex$2(bucket, element) >= 0)
- return false;
- bucket.push(_this._collection$_newLinkedCell$1(element));
- }
- return true;
- },
- remove$1: function(_, object) {
- var _this = this;
- if (typeof object == "string" && object !== "__proto__")
- return _this._removeHashTableEntry$2(_this._collection$_strings, object);
- else if (typeof object == "number" && (object & 1073741823) === object)
- return _this._removeHashTableEntry$2(_this._collection$_nums, object);
- else
- return _this._remove$1(object);
- },
- _remove$1: function(object) {
- var hash, bucket, index, cell, _this = this,
- rest = _this._collection$_rest;
- if (rest == null)
- return false;
- hash = _this._computeHashCode$1(object);
- bucket = rest[hash];
- index = _this._findBucketIndex$2(bucket, object);
- if (index < 0)
- return false;
- cell = bucket.splice(index, 1)[0];
- if (0 === bucket.length)
- delete rest[hash];
- _this._unlinkCell$1(cell);
- return true;
- },
- _collection$_addHashTableEntry$2: function(table, element) {
- if (table[element] != null)
- return false;
- table[element] = this._collection$_newLinkedCell$1(element);
- return true;
- },
- _removeHashTableEntry$2: function(table, element) {
- var cell;
- if (table == null)
- return false;
- cell = table[element];
- if (cell == null)
- return false;
- this._unlinkCell$1(cell);
- delete table[element];
- return true;
- },
- _collection$_modified$0: function() {
- this._collection$_modifications = 1073741823 & this._collection$_modifications + 1;
- },
- _collection$_newLinkedCell$1: function(element) {
- var last, _this = this,
- cell = new P._LinkedHashSetCell(element);
- if (_this._collection$_first == null)
- _this._collection$_first = _this._collection$_last = cell;
- else {
- last = _this._collection$_last;
- cell._collection$_previous = last;
- _this._collection$_last = last._collection$_next = cell;
- }
- ++_this._collection$_length;
- _this._collection$_modified$0();
- return cell;
- },
- _unlinkCell$1: function(cell) {
- var _this = this,
- previous = cell._collection$_previous,
- next = cell._collection$_next;
- if (previous == null)
- _this._collection$_first = next;
- else
- previous._collection$_next = next;
- if (next == null)
- _this._collection$_last = previous;
- else
- next._collection$_previous = previous;
- --_this._collection$_length;
- _this._collection$_modified$0();
- },
- _computeHashCode$1: function(element) {
- return J.get$hashCode$(element) & 1073741823;
- },
- _findBucketIndex$2: function(bucket, element) {
- var $length, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i)
- if (J.$eq$(bucket[i]._element, element))
- return i;
- return -1;
- }
- };
- P._LinkedIdentityHashSet.prototype = {
- _newSet$0: function() {
- return new P._LinkedIdentityHashSet(this.$ti);
- },
- _newSimilarSet$1$0: function($R) {
- return new P._LinkedIdentityHashSet($R._eval$1("_LinkedIdentityHashSet<0>"));
- },
- _newSimilarSet$0: function() {
- return this._newSimilarSet$1$0(type$.dynamic);
- },
- _computeHashCode$1: function(key) {
- return H.objectHashCode(key) & 1073741823;
- },
- _findBucketIndex$2: function(bucket, element) {
- var $length, i, t1;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i) {
- t1 = bucket[i]._element;
- if (t1 == null ? element == null : t1 === element)
- return i;
- }
- return -1;
- }
- };
- P._LinkedHashSetCell.prototype = {};
- P._LinkedHashSetIterator.prototype = {
- get$current: function(_) {
- return this._collection$_current;
- },
- moveNext$0: function() {
- var _this = this,
- t1 = _this._set;
- if (_this._collection$_modifications !== t1._collection$_modifications)
- throw H.wrapException(P.ConcurrentModificationError$(t1));
- else {
- t1 = _this._collection$_cell;
- if (t1 == null) {
- _this._collection$_current = null;
- return false;
- } else {
- _this._collection$_current = t1._element;
- _this._collection$_cell = t1._collection$_next;
- return true;
- }
- }
- }
- };
- P.UnmodifiableListView.prototype = {
- cast$1$0: function(_, $R) {
- return new P.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>"));
- },
- get$length: function(_) {
- return J.get$length$asx(this._collection$_source);
- },
- $index: function(_, index) {
- return J.elementAt$1$ax(this._collection$_source, index);
- }
- };
- P.HashMap_HashMap$from_closure.prototype = {
- call$2: function(k, v) {
- this.result.$indexSet(0, k, v);
- },
- $signature: 38
- };
- P.IterableBase.prototype = {};
- P.LinkedHashMap_LinkedHashMap$from_closure.prototype = {
- call$2: function(k, v) {
- this.result.$indexSet(0, k, v);
- },
- $signature: 38
- };
- P.ListBase.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1};
- P.ListMixin.prototype = {
- get$iterator: function(receiver) {
- return new H.ListIterator(receiver, this.get$length(receiver));
- },
- elementAt$1: function(receiver, index) {
- return this.$index(receiver, index);
- },
- get$isEmpty: function(receiver) {
- return this.get$length(receiver) === 0;
- },
- get$isNotEmpty: function(receiver) {
- return !this.get$isEmpty(receiver);
- },
- get$first: function(receiver) {
- if (this.get$length(receiver) === 0)
- throw H.wrapException(H.IterableElementError_noElement());
- return this.$index(receiver, 0);
- },
- get$last: function(receiver) {
- if (this.get$length(receiver) === 0)
- throw H.wrapException(H.IterableElementError_noElement());
- return this.$index(receiver, this.get$length(receiver) - 1);
- },
- get$single: function(receiver) {
- if (this.get$length(receiver) === 0)
- throw H.wrapException(H.IterableElementError_noElement());
- if (this.get$length(receiver) > 1)
- throw H.wrapException(H.IterableElementError_tooMany());
- return this.$index(receiver, 0);
- },
- contains$1: function(receiver, element) {
- var i,
- $length = this.get$length(receiver);
- for (i = 0; i < $length; ++i) {
- if (J.$eq$(this.$index(receiver, i), element))
- return true;
- if ($length !== this.get$length(receiver))
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- return false;
- },
- every$1: function(receiver, test) {
- var i,
- $length = this.get$length(receiver);
- for (i = 0; i < $length; ++i) {
- if (!test.call$1(this.$index(receiver, i)))
- return false;
- if ($length !== this.get$length(receiver))
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- return true;
- },
- any$1: function(receiver, test) {
- var i,
- $length = this.get$length(receiver);
- for (i = 0; i < $length; ++i) {
- if (test.call$1(this.$index(receiver, i)))
- return true;
- if ($length !== this.get$length(receiver))
- throw H.wrapException(P.ConcurrentModificationError$(receiver));
- }
- return false;
- },
- join$1: function(receiver, separator) {
- var t1;
- if (this.get$length(receiver) === 0)
- return "";
- t1 = P.StringBuffer__writeAll("", receiver, separator);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- join$0: function($receiver) {
- return this.join$1($receiver, "");
- },
- where$1: function(receiver, test) {
- return new H.WhereIterable(receiver, test, H.instanceType(receiver)._eval$1("WhereIterable<ListMixin.E>"));
- },
- map$1$1: function(receiver, f, $T) {
- return new H.MappedListIterable(receiver, f, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
- },
- expand$1$1: function(receiver, f, $T) {
- return new H.ExpandIterable(receiver, f, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
- },
- skip$1: function(receiver, count) {
- return H.SubListIterable$(receiver, count, null, H.instanceType(receiver)._eval$1("ListMixin.E"));
- },
- take$1: function(receiver, count) {
- return H.SubListIterable$(receiver, 0, count, H.instanceType(receiver)._eval$1("ListMixin.E"));
- },
- toList$1$growable: function(receiver, growable) {
- var result, t2, i, _this = this,
- t1 = H.instanceType(receiver)._eval$1("JSArray<ListMixin.E>");
- if (growable) {
- result = H.setRuntimeTypeInfo([], t1);
- C.JSArray_methods.set$length(result, _this.get$length(receiver));
- } else {
- t2 = new Array(_this.get$length(receiver));
- t2.fixed$length = Array;
- result = H.setRuntimeTypeInfo(t2, t1);
- }
- for (i = 0; i < _this.get$length(receiver); ++i)
- result[i] = _this.$index(receiver, i);
- return result;
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- },
- toSet$0: function(receiver) {
- var i,
- result = P.LinkedHashSet_LinkedHashSet(H.instanceType(receiver)._eval$1("ListMixin.E"));
- for (i = 0; i < this.get$length(receiver); ++i)
- result.add$1(0, this.$index(receiver, i));
- return result;
- },
- add$1: function(receiver, element) {
- var t1 = this.get$length(receiver);
- this.set$length(receiver, t1 + 1);
- this.$indexSet(receiver, t1, element);
- },
- addAll$1: function(receiver, iterable) {
- var t1, element, i0,
- i = this.get$length(receiver);
- for (t1 = iterable.get$iterator(iterable); t1.moveNext$0(); i = i0) {
- element = t1.get$current(t1);
- i0 = i + 1;
- this.set$length(receiver, i0);
- this.$indexSet(receiver, i, element);
- }
- },
- cast$1$0: function(receiver, $R) {
- return new H.CastList(receiver, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($R)._eval$1("CastList<1,2>"));
- },
- sort$1: function(receiver, compare) {
- H.Sort_sort(receiver, compare == null ? P.collection_ListMixin__compareAny$closure() : compare);
- },
- sublist$2: function(receiver, start, end) {
- var $length, result, i,
- listLength = this.get$length(receiver);
- P.RangeError_checkValidRange(start, end, listLength);
- $length = end - start;
- result = H.setRuntimeTypeInfo([], H.instanceType(receiver)._eval$1("JSArray<ListMixin.E>"));
- C.JSArray_methods.set$length(result, $length);
- for (i = 0; i < $length; ++i)
- result[i] = this.$index(receiver, start + i);
- return result;
- },
- getRange$2: function(receiver, start, end) {
- P.RangeError_checkValidRange(start, end, this.get$length(receiver));
- return H.SubListIterable$(receiver, start, end, H.instanceType(receiver)._eval$1("ListMixin.E"));
- },
- fillRange$3: function(receiver, start, end, fill) {
- var i;
- P.RangeError_checkValidRange(start, end, this.get$length(receiver));
- for (i = start; i < end; ++i)
- this.$indexSet(receiver, i, fill);
- },
- setRange$4: function(receiver, start, end, iterable, skipCount) {
- var $length, otherStart, otherList, t1, i;
- P.RangeError_checkValidRange(start, end, this.get$length(receiver));
- $length = end - start;
- if ($length === 0)
- return;
- P.RangeError_checkNotNegative(skipCount, "skipCount");
- if (H.instanceType(receiver)._eval$1("List<ListMixin.E>")._is(iterable)) {
- otherStart = skipCount;
- otherList = iterable;
- } else {
- otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
- otherStart = 0;
- }
- t1 = J.getInterceptor$asx(otherList);
- if (otherStart + $length > t1.get$length(otherList))
- throw H.wrapException(H.IterableElementError_tooFew());
- if (otherStart < start)
- for (i = $length - 1; i >= 0; --i)
- this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
- else
- for (i = 0; i < $length; ++i)
- this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
- },
- get$reversed: function(receiver) {
- return new H.ReversedListIterable(receiver, H.instanceType(receiver)._eval$1("ReversedListIterable<ListMixin.E>"));
- },
- toString$0: function(receiver) {
- return P.IterableBase_iterableToFullString(receiver, "[", "]");
- }
- };
- P.MapBase.prototype = {};
- P.MapBase_mapToString_closure.prototype = {
- call$2: function(k, v) {
- var t2,
- t1 = this._box_0;
- if (!t1.first)
- this.result._contents += ", ";
- t1.first = false;
- t1 = this.result;
- t2 = t1._contents += H.S(k);
- t1._contents = t2 + ": ";
- t1._contents += H.S(v);
- },
- $signature: 38
- };
- P.MapMixin.prototype = {
- forEach$1: function(_, action) {
- var t1, key;
- for (t1 = J.get$iterator$ax(this.get$keys()); t1.moveNext$0();) {
- key = t1.get$current(t1);
- action.call$2(key, this.$index(0, key));
- }
- },
- addAll$1: function(_, other) {
- var t1, key;
- for (t1 = J.get$iterator$ax(other.get$keys()); t1.moveNext$0();) {
- key = t1.get$current(t1);
- this.$indexSet(0, key, other.$index(0, key));
- }
- },
- putIfAbsent$2: function(key, ifAbsent) {
- var t1;
- if (this.containsKey$1(key))
- return this.$index(0, key);
- t1 = ifAbsent.call$0();
- this.$indexSet(0, key, t1);
- return t1;
- },
- get$entries: function() {
- 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>"));
- },
- containsKey$1: function(key) {
- return J.contains$1$asx(this.get$keys(), key);
- },
- get$length: function(_) {
- return J.get$length$asx(this.get$keys());
- },
- get$isEmpty: function(_) {
- return J.get$isEmpty$asx(this.get$keys());
- },
- get$isNotEmpty: function(_) {
- return J.get$isNotEmpty$asx(this.get$keys());
- },
- get$values: function() {
- var t1 = H._instanceType(this);
- return new P._MapBaseValueIterable(this, t1._eval$1("@<MapMixin.K>")._bind$1(t1._eval$1("MapMixin.V"))._eval$1("_MapBaseValueIterable<1,2>"));
- },
- toString$0: function(_) {
- return P.MapBase_mapToString(this);
- },
- $isMap: 1
- };
- P.MapMixin_entries_closure.prototype = {
- call$1: function(key) {
- var t1 = this.$this,
- t2 = H._instanceType(t1);
- 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>"));
- },
- $signature: function() {
- return H._instanceType(this.$this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>(MapMixin.K)");
- }
- };
- P.UnmodifiableMapBase.prototype = {};
- P._MapBaseValueIterable.prototype = {
- get$length: function(_) {
- var t1 = this._collection$_map;
- return t1.get$length(t1);
- },
- get$isEmpty: function(_) {
- var t1 = this._collection$_map;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty: function(_) {
- var t1 = this._collection$_map;
- return t1.get$isNotEmpty(t1);
- },
- get$first: function(_) {
- var t1 = this._collection$_map;
- return t1.$index(0, J.get$first$ax(t1.get$keys()));
- },
- get$single: function(_) {
- var t1 = this._collection$_map;
- return t1.$index(0, J.get$single$ax(t1.get$keys()));
- },
- get$last: function(_) {
- var t1 = this._collection$_map;
- return t1.$index(0, J.get$last$ax(t1.get$keys()));
- },
- get$iterator: function(_) {
- var t1 = this._collection$_map;
- return new P._MapBaseValueIterator(J.get$iterator$ax(t1.get$keys()), t1);
- }
- };
- P._MapBaseValueIterator.prototype = {
- moveNext$0: function() {
- var _this = this,
- t1 = _this._keys;
- if (t1.moveNext$0()) {
- _this._collection$_current = _this._collection$_map.$index(0, t1.get$current(t1));
- return true;
- }
- _this._collection$_current = null;
- return false;
- },
- get$current: function(_) {
- return this._collection$_current;
- }
- };
- P._UnmodifiableMapMixin.prototype = {
- $indexSet: function(_, key, value) {
- throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
- },
- addAll$1: function(_, other) {
- throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
- },
- remove$1: function(_, key) {
- throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
- },
- putIfAbsent$2: function(key, ifAbsent) {
- throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
- }
- };
- P.MapView.prototype = {
- $index: function(_, key) {
- return this._collection$_map.$index(0, key);
- },
- $indexSet: function(_, key, value) {
- this._collection$_map.$indexSet(0, key, value);
- },
- addAll$1: function(_, other) {
- this._collection$_map.addAll$1(0, other);
- },
- putIfAbsent$2: function(key, ifAbsent) {
- return this._collection$_map.putIfAbsent$2(key, ifAbsent);
- },
- containsKey$1: function(key) {
- return this._collection$_map.containsKey$1(key);
- },
- forEach$1: function(_, action) {
- this._collection$_map.forEach$1(0, action);
- },
- get$isEmpty: function(_) {
- var t1 = this._collection$_map;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty: function(_) {
- var t1 = this._collection$_map;
- return t1.get$isNotEmpty(t1);
- },
- get$length: function(_) {
- var t1 = this._collection$_map;
- return t1.get$length(t1);
- },
- get$keys: function() {
- return this._collection$_map.get$keys();
- },
- remove$1: function(_, key) {
- return this._collection$_map.remove$1(0, key);
- },
- toString$0: function(_) {
- return J.toString$0$(this._collection$_map);
- },
- get$values: function() {
- return this._collection$_map.get$values();
- },
- get$entries: function() {
- return this._collection$_map.get$entries();
- },
- $isMap: 1
- };
- P.UnmodifiableMapView.prototype = {};
- P.Queue.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1};
- P.ListQueue.prototype = {
- cast$1$0: function(_, $R) {
- return new H.CastQueue(this, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastQueue<1,2>"));
- },
- get$iterator: function(_) {
- var _this = this;
- return new P._ListQueueIterator(_this, _this._collection$_tail, _this._modificationCount, _this._collection$_head);
- },
- get$isEmpty: function(_) {
- return this._collection$_head === this._collection$_tail;
- },
- get$length: function(_) {
- return (this._collection$_tail - this._collection$_head & this._collection$_table.length - 1) >>> 0;
- },
- get$first: function(_) {
- var t1 = this._collection$_head;
- if (t1 === this._collection$_tail)
- throw H.wrapException(H.IterableElementError_noElement());
- return this._collection$_table[t1];
- },
- get$last: function(_) {
- var t1 = this._collection$_head,
- t2 = this._collection$_tail;
- if (t1 === t2)
- throw H.wrapException(H.IterableElementError_noElement());
- t1 = this._collection$_table;
- return t1[(t2 - 1 & t1.length - 1) >>> 0];
- },
- get$single: function(_) {
- var _this = this;
- if (_this._collection$_head === _this._collection$_tail)
- throw H.wrapException(H.IterableElementError_noElement());
- if (_this.get$length(_this) > 1)
- throw H.wrapException(H.IterableElementError_tooMany());
- return _this._collection$_table[_this._collection$_head];
- },
- elementAt$1: function(_, index) {
- var t1;
- P.RangeError_checkValidIndex(index, this, null);
- t1 = this._collection$_table;
- return t1[(this._collection$_head + index & t1.length - 1) >>> 0];
- },
- toList$1$growable: function(_, growable) {
- var list, t2, _this = this,
- t1 = _this.$ti._eval$1("JSArray<1>");
- if (growable) {
- list = H.setRuntimeTypeInfo([], t1);
- C.JSArray_methods.set$length(list, _this.get$length(_this));
- } else {
- t2 = new Array(_this.get$length(_this));
- t2.fixed$length = Array;
- list = H.setRuntimeTypeInfo(t2, t1);
- }
- _this._collection$_writeToList$1(list);
- return list;
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- },
- add$1: function(_, value) {
- this._add$1(value);
- },
- addAll$1: function(_, elements) {
- var addCount, $length, t2, t3, t4, newTable, endSpace, preSpace, _this = this,
- t1 = _this.$ti;
- if (t1._eval$1("List<1>")._is(elements)) {
- addCount = J.get$length$asx(elements);
- $length = _this.get$length(_this);
- t2 = $length + addCount;
- t3 = _this._collection$_table;
- t4 = t3.length;
- if (t2 >= t4) {
- t3 = new Array(P.ListQueue__nextPowerOf2(t2 + C.JSInt_methods._shrOtherPositive$1(t2, 1)));
- t3.fixed$length = Array;
- newTable = H.setRuntimeTypeInfo(t3, t1._eval$1("JSArray<1>"));
- _this._collection$_tail = _this._collection$_writeToList$1(newTable);
- _this._collection$_table = newTable;
- _this._collection$_head = 0;
- C.JSArray_methods.setRange$4(newTable, $length, t2, elements, 0);
- _this._collection$_tail += addCount;
- } else {
- t1 = _this._collection$_tail;
- endSpace = t4 - t1;
- if (addCount < endSpace) {
- C.JSArray_methods.setRange$4(t3, t1, t1 + addCount, elements, 0);
- _this._collection$_tail += addCount;
- } else {
- preSpace = addCount - endSpace;
- C.JSArray_methods.setRange$4(t3, t1, t1 + endSpace, elements, 0);
- C.JSArray_methods.setRange$4(_this._collection$_table, 0, preSpace, elements, endSpace);
- _this._collection$_tail = preSpace;
- }
- }
- ++_this._modificationCount;
- } else
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- _this._add$1(t1.get$current(t1));
- },
- clear$0: function(_) {
- var t2, t3, _this = this,
- i = _this._collection$_head,
- t1 = _this._collection$_tail;
- if (i !== t1) {
- for (t2 = _this._collection$_table, t3 = t2.length - 1; i !== t1; i = (i + 1 & t3) >>> 0)
- t2[i] = null;
- _this._collection$_head = _this._collection$_tail = 0;
- ++_this._modificationCount;
- }
- },
- toString$0: function(_) {
- return P.IterableBase_iterableToFullString(this, "{", "}");
- },
- addFirst$1: function(value) {
- var _this = this,
- t1 = _this._collection$_head,
- t2 = _this._collection$_table;
- t1 = _this._collection$_head = (t1 - 1 & t2.length - 1) >>> 0;
- t2[t1] = value;
- if (t1 === _this._collection$_tail)
- _this._collection$_grow$0();
- ++_this._modificationCount;
- },
- removeFirst$0: function() {
- var t2, result, _this = this,
- t1 = _this._collection$_head;
- if (t1 === _this._collection$_tail)
- throw H.wrapException(H.IterableElementError_noElement());
- ++_this._modificationCount;
- t2 = _this._collection$_table;
- result = t2[t1];
- t2[t1] = null;
- _this._collection$_head = (t1 + 1 & t2.length - 1) >>> 0;
- return result;
- },
- removeLast$0: function(_) {
- var result, _this = this,
- t1 = _this._collection$_head,
- t2 = _this._collection$_tail;
- if (t1 === t2)
- throw H.wrapException(H.IterableElementError_noElement());
- ++_this._modificationCount;
- t1 = _this._collection$_table;
- t2 = _this._collection$_tail = (t2 - 1 & t1.length - 1) >>> 0;
- result = t1[t2];
- t1[t2] = null;
- return result;
- },
- _add$1: function(element) {
- var _this = this,
- t1 = _this._collection$_table,
- t2 = _this._collection$_tail;
- t1[t2] = element;
- t1 = (t2 + 1 & t1.length - 1) >>> 0;
- _this._collection$_tail = t1;
- if (_this._collection$_head === t1)
- _this._collection$_grow$0();
- ++_this._modificationCount;
- },
- _collection$_grow$0: function() {
- var newTable, t2, split, _this = this,
- t1 = new Array(_this._collection$_table.length * 2);
- t1.fixed$length = Array;
- newTable = H.setRuntimeTypeInfo(t1, _this.$ti._eval$1("JSArray<1>"));
- t1 = _this._collection$_table;
- t2 = _this._collection$_head;
- split = t1.length - t2;
- C.JSArray_methods.setRange$4(newTable, 0, split, t1, t2);
- C.JSArray_methods.setRange$4(newTable, split, split + _this._collection$_head, _this._collection$_table, 0);
- _this._collection$_head = 0;
- _this._collection$_tail = _this._collection$_table.length;
- _this._collection$_table = newTable;
- },
- _collection$_writeToList$1: function(target) {
- var $length, firstPartSize, _this = this,
- t1 = _this._collection$_head,
- t2 = _this._collection$_tail,
- t3 = _this._collection$_table;
- if (t1 <= t2) {
- $length = t2 - t1;
- C.JSArray_methods.setRange$4(target, 0, $length, t3, t1);
- return $length;
- } else {
- firstPartSize = t3.length - t1;
- C.JSArray_methods.setRange$4(target, 0, firstPartSize, t3, t1);
- C.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this._collection$_tail, _this._collection$_table, 0);
- return _this._collection$_tail + firstPartSize;
- }
- },
- $isQueue: 1
- };
- P._ListQueueIterator.prototype = {
- get$current: function(_) {
- return this._collection$_current;
- },
- moveNext$0: function() {
- var t2, _this = this,
- t1 = _this._queue;
- if (_this._modificationCount !== t1._modificationCount)
- H.throwExpression(P.ConcurrentModificationError$(t1));
- t2 = _this._collection$_position;
- if (t2 === _this._collection$_end) {
- _this._collection$_current = null;
- return false;
- }
- t1 = t1._collection$_table;
- _this._collection$_current = t1[t2];
- _this._collection$_position = (t2 + 1 & t1.length - 1) >>> 0;
- return true;
- }
- };
- P._SetBase.prototype = {
- cast$1$0: function(_, $R) {
- return P.Set_castFrom(this, this.get$_newSimilarSet(), H._instanceType(this)._precomputed1, $R);
- },
- difference$1: function(other) {
- var t1, element,
- result = this._newSet$0();
- for (t1 = this.get$iterator(this); t1.moveNext$0();) {
- element = t1.get$current(t1);
- if (!other.contains$1(0, element))
- result.add$1(0, element);
- }
- return result;
- },
- intersection$1: function(other) {
- var t1, t2, element,
- result = this._newSet$0();
- for (t1 = this.get$iterator(this), t2 = other._baseMap; t1.moveNext$0();) {
- element = t1.get$current(t1);
- if (t2.containsKey$1(element))
- result.add$1(0, element);
- }
- return result;
- },
- toSet$0: function(_) {
- var t1 = this._newSet$0();
- t1.addAll$1(0, this);
- return t1;
- },
- get$isEmpty: function(_) {
- return this.get$length(this) === 0;
- },
- get$isNotEmpty: function(_) {
- return this.get$length(this) !== 0;
- },
- addAll$1: function(_, elements) {
- var t1;
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- this.add$1(0, t1.get$current(t1));
- },
- removeAll$1: function(elements) {
- var t1;
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- this.remove$1(0, t1.get$current(t1));
- },
- toList$1$growable: function(_, growable) {
- var result, t2, i, i0, _this = this,
- t1 = H._instanceType(_this)._eval$1("JSArray<1>");
- if (growable) {
- result = H.setRuntimeTypeInfo([], t1);
- C.JSArray_methods.set$length(result, _this.get$length(_this));
- } else {
- t2 = new Array(_this.get$length(_this));
- t2.fixed$length = Array;
- result = H.setRuntimeTypeInfo(t2, t1);
- }
- for (t1 = _this.get$iterator(_this), i = 0; t1.moveNext$0(); i = i0) {
- i0 = i + 1;
- result[i] = t1.get$current(t1);
- }
- return result;
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- },
- map$1$1: function(_, f, $T) {
- return new H.EfficientLengthMappedIterable(this, f, H._instanceType(this)._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
- },
- get$single: function(_) {
- var it, _this = this;
- if (_this.get$length(_this) > 1)
- throw H.wrapException(H.IterableElementError_tooMany());
- it = _this.get$iterator(_this);
- if (!it.moveNext$0())
- throw H.wrapException(H.IterableElementError_noElement());
- return it.get$current(it);
- },
- toString$0: function(_) {
- return P.IterableBase_iterableToFullString(this, "{", "}");
- },
- where$1: function(_, f) {
- return new H.WhereIterable(this, f, H._instanceType(this)._eval$1("WhereIterable<1>"));
- },
- join$1: function(_, separator) {
- var t1,
- iterator = this.get$iterator(this);
- if (!iterator.moveNext$0())
- return "";
- if (separator === "") {
- t1 = "";
- do
- t1 += H.S(iterator.get$current(iterator));
- while (iterator.moveNext$0());
- } else {
- t1 = H.S(iterator.get$current(iterator));
- for (; iterator.moveNext$0();)
- t1 = t1 + separator + H.S(iterator.get$current(iterator));
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- join$0: function($receiver) {
- return this.join$1($receiver, "");
- },
- any$1: function(_, test) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- if (test.call$1(t1.get$current(t1)))
- return true;
- return false;
- },
- take$1: function(_, n) {
- return H.TakeIterable_TakeIterable(this, n, H._instanceType(this)._precomputed1);
- },
- skip$1: function(_, n) {
- return H.SkipIterable_SkipIterable(this, n, H._instanceType(this)._precomputed1);
- },
- get$first: function(_) {
- var it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw H.wrapException(H.IterableElementError_noElement());
- return it.get$current(it);
- },
- get$last: function(_) {
- var result,
- it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw H.wrapException(H.IterableElementError_noElement());
- do
- result = it.get$current(it);
- while (it.moveNext$0());
- return result;
- },
- elementAt$1: function(_, index) {
- var t1, elementIndex, element, _s5_ = "index";
- P.ArgumentError_checkNotNull(index, _s5_);
- P.RangeError_checkNotNegative(index, _s5_);
- for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
- element = t1.get$current(t1);
- if (index === elementIndex)
- return element;
- ++elementIndex;
- }
- throw H.wrapException(P.IndexError$(index, this, _s5_, null, elementIndex));
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isSet: 1
- };
- P._UnmodifiableSet.prototype = {
- _newSet$0: function() {
- return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
- },
- _newSimilarSet$1$0: function($R) {
- return P.LinkedHashSet_LinkedHashSet($R);
- },
- _newSimilarSet$0: function() {
- return this._newSimilarSet$1$0(type$.dynamic);
- },
- contains$1: function(_, element) {
- return this._collection$_map.containsKey$1(element);
- },
- get$iterator: function(_) {
- return J.get$iterator$ax(this._collection$_map.get$keys());
- },
- get$length: function(_) {
- var t1 = this._collection$_map;
- return t1.get$length(t1);
- },
- add$1: function(_, value) {
- throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
- },
- addAll$1: function(_, elements) {
- throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
- },
- remove$1: function(_, value) {
- throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
- }
- };
- P._ListBase_Object_ListMixin.prototype = {};
- P._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {};
- P.AsciiCodec.prototype = {
- encode$1: function(source) {
- return C.AsciiEncoder_127.convert$1(source);
- },
- get$encoder: function() {
- return C.AsciiEncoder_127;
- }
- };
- P._UnicodeSubsetEncoder.prototype = {
- convert$1: function(string) {
- var t1, t2, i, codeUnit,
- $length = P.RangeError_checkValidRange(0, null, string.length) - 0,
- result = new Uint8Array($length);
- for (t1 = ~this._subsetMask, t2 = J.getInterceptor$s(string), i = 0; i < $length; ++i) {
- codeUnit = t2._codeUnitAt$1(string, i);
- if ((codeUnit & t1) !== 0)
- throw H.wrapException(P.ArgumentError$value(string, "string", "Contains invalid characters."));
- result[i] = codeUnit;
- }
- return result;
- }
- };
- P.AsciiEncoder.prototype = {};
- P.Base64Codec.prototype = {
- get$encoder: function() {
- return C.C_Base64Encoder;
- },
- normalize$3: function(source, start, end) {
- var inverseAlphabet, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, digit2, char0, value, t1, t2, endLength, $length,
- _s31_ = "Invalid base64 encoding length ";
- end = P.RangeError_checkValidRange(start, end, source.length);
- inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet();
- for (i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) {
- i0 = i + 1;
- char = C.JSString_methods._codeUnitAt$1(source, i);
- if (char === 37) {
- i1 = i0 + 2;
- if (i1 <= end) {
- digit1 = H.hexDigitValue(C.JSString_methods._codeUnitAt$1(source, i0));
- digit2 = H.hexDigitValue(C.JSString_methods._codeUnitAt$1(source, i0 + 1));
- char0 = digit1 * 16 + digit2 - (digit2 & 256);
- if (char0 === 37)
- char0 = -1;
- i0 = i1;
- } else
- char0 = -1;
- } else
- char0 = char;
- if (0 <= char0 && char0 <= 127) {
- value = inverseAlphabet[char0];
- if (value >= 0) {
- char0 = C.JSString_methods.codeUnitAt$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", value);
- if (char0 === char)
- continue;
- char = char0;
- } else {
- if (value === -1) {
- if (firstPadding < 0) {
- t1 = buffer == null ? null : buffer._contents.length;
- if (t1 == null)
- t1 = 0;
- firstPadding = t1 + (i - sliceStart);
- firstPaddingSourceIndex = i;
- }
- ++paddingCount;
- if (char === 61)
- continue;
- }
- char = char0;
- }
- if (value !== -2) {
- if (buffer == null)
- buffer = new P.StringBuffer("");
- buffer._contents += C.JSString_methods.substring$2(source, sliceStart, i);
- buffer._contents += H.Primitives_stringFromCharCode(char);
- sliceStart = i0;
- continue;
- }
- }
- throw H.wrapException(P.FormatException$("Invalid base64 data", source, i));
- }
- if (buffer != null) {
- t1 = buffer._contents += C.JSString_methods.substring$2(source, sliceStart, end);
- t2 = t1.length;
- if (firstPadding >= 0)
- P.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2);
- else {
- endLength = C.JSInt_methods.$mod(t2 - 1, 4) + 1;
- if (endLength === 1)
- throw H.wrapException(P.FormatException$(_s31_, source, end));
- for (; endLength < 4;) {
- t1 += "=";
- buffer._contents = t1;
- ++endLength;
- }
- }
- t1 = buffer._contents;
- return C.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1);
- }
- $length = end - start;
- if (firstPadding >= 0)
- P.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length);
- else {
- endLength = C.JSInt_methods.$mod($length, 4);
- if (endLength === 1)
- throw H.wrapException(P.FormatException$(_s31_, source, end));
- if (endLength > 1)
- source = C.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "=");
- }
- return source;
- }
- };
- P.Base64Encoder.prototype = {
- convert$1: function(input) {
- var t1 = J.getInterceptor$asx(input);
- if (t1.get$isEmpty(input))
- return "";
- return P.String_String$fromCharCodes(new P._Base64Encoder("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").encode$4(input, 0, t1.get$length(input), true), 0, null);
- },
- startChunkedConversion$1: function(sink) {
- var t1,
- _s64_ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
- if (type$.StringConversionSink._is(sink)) {
- t1 = sink.asUtf8Sink$1(false);
- return new P._Utf8Base64EncoderSink(t1, new P._Base64Encoder(_s64_));
- }
- return new P._AsciiBase64EncoderSink(sink, new P._BufferCachingBase64Encoder(_s64_));
- }
- };
- P._Base64Encoder.prototype = {
- createBuffer$1: function(bufferLength) {
- return new Uint8Array(bufferLength);
- },
- encode$4: function(bytes, start, end, isLast) {
- var output, _this = this,
- byteCount = (_this._convert$_state & 3) + (end - start),
- fullChunks = C.JSInt_methods._tdivFast$1(byteCount, 3),
- bufferLength = fullChunks * 4;
- if (isLast && byteCount - fullChunks * 3 > 0)
- bufferLength += 4;
- output = _this.createBuffer$1(bufferLength);
- _this._convert$_state = P._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state);
- if (bufferLength > 0)
- return output;
- return null;
- }
- };
- P._BufferCachingBase64Encoder.prototype = {
- createBuffer$1: function(bufferLength) {
- var t1 = this.bufferCache;
- if (t1 == null || t1.length < bufferLength)
- t1 = this.bufferCache = new Uint8Array(bufferLength);
- return H.NativeUint8List_NativeUint8List$view(t1.buffer, t1.byteOffset, bufferLength);
- }
- };
- P._Base64EncoderSink.prototype = {
- add$1: function(_, source) {
- this._convert$_add$4(source, 0, J.get$length$asx(source), false);
- },
- close$0: function(_) {
- this._convert$_add$4(null, 0, 0, true);
- },
- addSlice$4: function(source, start, end, isLast) {
- P.RangeError_checkValidRange(start, end, source.length);
- this._convert$_add$4(source, start, end, isLast);
- }
- };
- P._AsciiBase64EncoderSink.prototype = {
- _convert$_add$4: function(source, start, end, isLast) {
- var buffer = this._encoder.encode$4(source, start, end, isLast);
- if (buffer != null)
- this._sink.add$1(0, P.String_String$fromCharCodes(buffer, 0, null));
- if (isLast)
- this._sink.close$0(0);
- }
- };
- P._Utf8Base64EncoderSink.prototype = {
- _convert$_add$4: function(source, start, end, isLast) {
- var buffer = this._encoder.encode$4(source, start, end, isLast);
- if (buffer != null)
- this._sink.addSlice$4(buffer, 0, buffer.length, isLast);
- }
- };
- P.ByteConversionSink.prototype = {};
- P.ByteConversionSinkBase.prototype = {};
- P.ChunkedConversionSink.prototype = {};
- P.Codec.prototype = {
- encode$1: function(input) {
- return this.get$encoder().convert$1(input);
- }
- };
- P.Converter.prototype = {};
- P.Encoding.prototype = {};
- P.JsonUnsupportedObjectError.prototype = {
- toString$0: function(_) {
- var safeString = P.Error_safeToString(this.unsupportedObject);
- return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString;
- }
- };
- P.JsonCyclicError.prototype = {
- toString$0: function(_) {
- return "Cyclic error in JSON stringify";
- }
- };
- P.JsonCodec.prototype = {
- encode$2$toEncodable: function(value, toEncodable) {
- var t1 = P._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null);
- return t1;
- },
- get$encoder: function() {
- return C.JsonEncoder_null;
- }
- };
- P.JsonEncoder.prototype = {
- convert$1: function(object) {
- var t1,
- output = new P.StringBuffer("");
- P._JsonStringStringifier_printOn(object, output, this._toEncodable, null);
- t1 = output._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- P._JsonStringifier.prototype = {
- writeStringContent$1: function(s) {
- var t1, offset, i, charCode, t2, _this = this,
- $length = s.length;
- for (t1 = J.getInterceptor$s(s), offset = 0, i = 0; i < $length; ++i) {
- charCode = t1._codeUnitAt$1(s, i);
- if (charCode > 92)
- continue;
- if (charCode < 32) {
- if (i > offset)
- _this.writeStringSlice$3(s, offset, i);
- offset = i + 1;
- _this.writeCharCode$1(92);
- switch (charCode) {
- case 8:
- _this.writeCharCode$1(98);
- break;
- case 9:
- _this.writeCharCode$1(116);
- break;
- case 10:
- _this.writeCharCode$1(110);
- break;
- case 12:
- _this.writeCharCode$1(102);
- break;
- case 13:
- _this.writeCharCode$1(114);
- break;
- default:
- _this.writeCharCode$1(117);
- _this.writeCharCode$1(48);
- _this.writeCharCode$1(48);
- t2 = charCode >>> 4 & 15;
- _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- t2 = charCode & 15;
- _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- break;
- }
- } else if (charCode === 34 || charCode === 92) {
- if (i > offset)
- _this.writeStringSlice$3(s, offset, i);
- offset = i + 1;
- _this.writeCharCode$1(92);
- _this.writeCharCode$1(charCode);
- }
- }
- if (offset === 0)
- _this.writeString$1(s);
- else if (offset < $length)
- _this.writeStringSlice$3(s, offset, $length);
- },
- _checkCycle$1: function(object) {
- var t1, t2, i, t3;
- for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) {
- t3 = t1[i];
- if (object == null ? t3 == null : object === t3)
- throw H.wrapException(new P.JsonCyclicError(object, null));
- }
- t1.push(object);
- },
- writeObject$1: function(object) {
- var customJson, e, t1, exception, _this = this;
- if (_this.writeJsonValue$1(object))
- return;
- _this._checkCycle$1(object);
- try {
- customJson = _this._toEncodable.call$1(object);
- if (!_this.writeJsonValue$1(customJson)) {
- t1 = P.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult());
- throw H.wrapException(t1);
- }
- _this._seen.pop();
- } catch (exception) {
- e = H.unwrapException(exception);
- t1 = P.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult());
- throw H.wrapException(t1);
- }
- },
- writeJsonValue$1: function(object) {
- var success, _this = this;
- if (typeof object == "number") {
- if (!isFinite(object))
- return false;
- _this.writeNumber$1(object);
- return true;
- } else if (object === true) {
- _this.writeString$1("true");
- return true;
- } else if (object === false) {
- _this.writeString$1("false");
- return true;
- } else if (object == null) {
- _this.writeString$1("null");
- return true;
- } else if (typeof object == "string") {
- _this.writeString$1('"');
- _this.writeStringContent$1(object);
- _this.writeString$1('"');
- return true;
- } else if (type$.List_dynamic._is(object)) {
- _this._checkCycle$1(object);
- _this.writeList$1(object);
- _this._seen.pop();
- return true;
- } else if (type$.Map_dynamic_dynamic._is(object)) {
- _this._checkCycle$1(object);
- success = _this.writeMap$1(object);
- _this._seen.pop();
- return success;
- } else
- return false;
- },
- writeList$1: function(list) {
- var t1, i, _this = this;
- _this.writeString$1("[");
- t1 = J.getInterceptor$asx(list);
- if (t1.get$isNotEmpty(list)) {
- _this.writeObject$1(t1.$index(list, 0));
- for (i = 1; i < t1.get$length(list); ++i) {
- _this.writeString$1(",");
- _this.writeObject$1(t1.$index(list, i));
- }
- }
- _this.writeString$1("]");
- },
- writeMap$1: function(map) {
- var t1, keyValueList, i, separator, _this = this, _box_0 = {};
- if (map.get$isEmpty(map)) {
- _this.writeString$1("{}");
- return true;
- }
- t1 = map.get$length(map) * 2;
- keyValueList = new Array(t1);
- keyValueList.fixed$length = Array;
- i = _box_0.i = 0;
- _box_0.allStringKeys = true;
- map.forEach$1(0, new P._JsonStringifier_writeMap_closure(_box_0, keyValueList));
- if (!_box_0.allStringKeys)
- return false;
- _this.writeString$1("{");
- for (separator = '"'; i < t1; i += 2, separator = ',"') {
- _this.writeString$1(separator);
- _this.writeStringContent$1(keyValueList[i]);
- _this.writeString$1('":');
- _this.writeObject$1(keyValueList[i + 1]);
- }
- _this.writeString$1("}");
- return true;
- }
- };
- P._JsonStringifier_writeMap_closure.prototype = {
- call$2: function(key, value) {
- var t1, t2, t3, i;
- if (typeof key != "string")
- this._box_0.allStringKeys = false;
- t1 = this.keyValueList;
- t2 = this._box_0;
- t3 = t2.i;
- i = t2.i = t3 + 1;
- t1[t3] = key;
- t2.i = i + 1;
- t1[i] = value;
- },
- $signature: 38
- };
- P._JsonStringStringifier.prototype = {
- get$_partialResult: function() {
- var t1 = this._sink;
- return type$.StringBuffer._is(t1) ? t1.toString$0(0) : null;
- },
- writeNumber$1: function(number) {
- this._sink.write$1(0, C.JSNumber_methods.toString$0(number));
- },
- writeString$1: function(string) {
- this._sink.write$1(0, string);
- },
- writeStringSlice$3: function(string, start, end) {
- this._sink.write$1(0, C.JSString_methods.substring$2(string, start, end));
- },
- writeCharCode$1: function(charCode) {
- this._sink.writeCharCode$1(charCode);
- }
- };
- P.StringConversionSinkBase.prototype = {};
- P.StringConversionSinkMixin.prototype = {
- add$1: function(_, str) {
- this.addSlice$4(str, 0, str.length, false);
- },
- asUtf8Sink$1: function(allowMalformed) {
- var t1 = new P.StringBuffer("");
- return new P._Utf8ConversionSink(new P._Utf8Decoder(false, t1), this, t1);
- },
- $isStringConversionSink: 1
- };
- P._StringSinkConversionSink.prototype = {
- close$0: function(_) {
- },
- addSlice$4: function(str, start, end, isLast) {
- var t1, t2, i;
- if (start !== 0 || end !== str.length)
- for (t1 = this._stringSink, t2 = J.getInterceptor$s(str), i = start; i < end; ++i)
- t1._contents += H.Primitives_stringFromCharCode(t2._codeUnitAt$1(str, i));
- else
- this._stringSink._contents += H.S(str);
- if (isLast)
- this.close$0(0);
- },
- add$1: function(_, str) {
- this._stringSink._contents += H.S(str);
- },
- asUtf8Sink$1: function(allowMalformed) {
- return new P._Utf8StringSinkAdapter(new P._Utf8Decoder(false, this._stringSink), this);
- }
- };
- P._StringCallbackSink.prototype = {
- close$0: function(_) {
- var t1 = this._stringSink,
- t2 = t1._contents;
- t1._contents = "";
- this._convert$_callback.call$1(t2.charCodeAt(0) == 0 ? t2 : t2);
- },
- asUtf8Sink$1: function(allowMalformed) {
- return new P._Utf8StringSinkAdapter(new P._Utf8Decoder(false, this._stringSink), this);
- }
- };
- P._StringAdapterSink.prototype = {
- add$1: function(_, str) {
- this._sink.add$1(0, str);
- },
- addSlice$4: function(str, start, end, isLast) {
- var t1 = start === 0 && end === str.length,
- t2 = this._sink;
- if (t1)
- t2.add$1(0, str);
- else
- t2.add$1(0, J.substring$2$s(str, start, end));
- if (isLast)
- t2.close$0(0);
- },
- close$0: function(_) {
- this._sink.close$0(0);
- }
- };
- P._Utf8StringSinkAdapter.prototype = {
- close$0: function(_) {
- this._decoder.flush$0();
- this._sink.close$0(0);
- },
- add$1: function(_, chunk) {
- this._decoder.convert$3(chunk, 0, J.get$length$asx(chunk));
- },
- addSlice$4: function(codeUnits, startIndex, endIndex, isLast) {
- this._decoder.convert$3(codeUnits, startIndex, endIndex);
- if (isLast)
- this.close$0(0);
- }
- };
- P._Utf8ConversionSink.prototype = {
- close$0: function(_) {
- var t1, t2, t3, accumulated;
- this._decoder.flush$0();
- t1 = this._convert$_buffer;
- t2 = t1._contents;
- t3 = this._chunkedSink;
- if (t2.length !== 0) {
- accumulated = t2.charCodeAt(0) == 0 ? t2 : t2;
- t1._contents = "";
- t3.addSlice$4(accumulated, 0, accumulated.length, true);
- } else
- t3.close$0(0);
- },
- add$1: function(_, chunk) {
- this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
- },
- addSlice$4: function(chunk, startIndex, endIndex, isLast) {
- var t1, t2, accumulated, _this = this;
- _this._decoder.convert$3(chunk, startIndex, endIndex);
- t1 = _this._convert$_buffer;
- t2 = t1._contents;
- if (t2.length !== 0) {
- accumulated = t2.charCodeAt(0) == 0 ? t2 : t2;
- _this._chunkedSink.addSlice$4(accumulated, 0, accumulated.length, isLast);
- t1._contents = "";
- return;
- }
- if (isLast)
- _this.close$0(0);
- }
- };
- P.Utf8Codec.prototype = {
- get$encoder: function() {
- return C.C_Utf8Encoder;
- }
- };
- P.Utf8Encoder.prototype = {
- convert$1: function(string) {
- var t1, encoder,
- end = P.RangeError_checkValidRange(0, null, string.length),
- $length = end - 0;
- if ($length === 0)
- return new Uint8Array(0);
- t1 = new Uint8Array($length * 3);
- encoder = new P._Utf8Encoder(t1);
- if (encoder._fillBuffer$3(string, 0, end) !== end)
- encoder._writeSurrogate$2(J.codeUnitAt$1$s(string, end - 1), 0);
- return C.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex);
- }
- };
- P._Utf8Encoder.prototype = {
- _writeSurrogate$2: function(leadingSurrogate, nextCodeUnit) {
- var rune, _this = this,
- t1 = _this._convert$_buffer,
- t2 = _this._bufferIndex,
- t3 = t2 + 1;
- if ((nextCodeUnit & 64512) === 56320) {
- rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023;
- _this._bufferIndex = t3;
- t1[t2] = 240 | rune >>> 18;
- t2 = _this._bufferIndex = t3 + 1;
- t1[t3] = 128 | rune >>> 12 & 63;
- t3 = _this._bufferIndex = t2 + 1;
- t1[t2] = 128 | rune >>> 6 & 63;
- _this._bufferIndex = t3 + 1;
- t1[t3] = 128 | rune & 63;
- return true;
- } else {
- _this._bufferIndex = t3;
- t1[t2] = 224 | leadingSurrogate >>> 12;
- t2 = _this._bufferIndex = t3 + 1;
- t1[t3] = 128 | leadingSurrogate >>> 6 & 63;
- _this._bufferIndex = t2 + 1;
- t1[t2] = 128 | leadingSurrogate & 63;
- return false;
- }
- },
- _fillBuffer$3: function(str, start, end) {
- var t1, t2, t3, stringIndex, codeUnit, t4, stringIndex0, t5, _this = this;
- if (start !== end && (J.codeUnitAt$1$s(str, end - 1) & 64512) === 55296)
- --end;
- for (t1 = _this._convert$_buffer, t2 = t1.length, t3 = J.getInterceptor$s(str), stringIndex = start; stringIndex < end; ++stringIndex) {
- codeUnit = t3._codeUnitAt$1(str, stringIndex);
- if (codeUnit <= 127) {
- t4 = _this._bufferIndex;
- if (t4 >= t2)
- break;
- _this._bufferIndex = t4 + 1;
- t1[t4] = codeUnit;
- } else if ((codeUnit & 64512) === 55296) {
- if (_this._bufferIndex + 3 >= t2)
- break;
- stringIndex0 = stringIndex + 1;
- if (_this._writeSurrogate$2(codeUnit, C.JSString_methods._codeUnitAt$1(str, stringIndex0)))
- stringIndex = stringIndex0;
- } else if (codeUnit <= 2047) {
- t4 = _this._bufferIndex;
- t5 = t4 + 1;
- if (t5 >= t2)
- break;
- _this._bufferIndex = t5;
- t1[t4] = 192 | codeUnit >>> 6;
- _this._bufferIndex = t5 + 1;
- t1[t5] = 128 | codeUnit & 63;
- } else {
- t4 = _this._bufferIndex;
- if (t4 + 2 >= t2)
- break;
- t5 = _this._bufferIndex = t4 + 1;
- t1[t4] = 224 | codeUnit >>> 12;
- t4 = _this._bufferIndex = t5 + 1;
- t1[t5] = 128 | codeUnit >>> 6 & 63;
- _this._bufferIndex = t4 + 1;
- t1[t4] = 128 | codeUnit & 63;
- }
- }
- return stringIndex;
- }
- };
- P.Utf8Decoder.prototype = {
- convert$1: function(codeUnits) {
- var end, oneBytes, firstPart, buffer, start, isFirstCharacter, decoder, t1,
- result = P.Utf8Decoder__convertIntercepted(false, codeUnits, 0, null);
- if (result != null)
- return result;
- end = P.RangeError_checkValidRange(0, null, J.get$length$asx(codeUnits));
- oneBytes = P._scanOneByteCharacters(codeUnits, 0, end);
- if (oneBytes > 0) {
- firstPart = P.String_String$fromCharCodes(codeUnits, 0, oneBytes);
- if (oneBytes === end)
- return firstPart;
- buffer = new P.StringBuffer(firstPart);
- start = oneBytes;
- isFirstCharacter = false;
- } else {
- start = 0;
- buffer = null;
- isFirstCharacter = true;
- }
- if (buffer == null)
- buffer = new P.StringBuffer("");
- decoder = new P._Utf8Decoder(false, buffer);
- decoder._isFirstCharacter = isFirstCharacter;
- decoder.convert$3(codeUnits, start, end);
- decoder.flush$2(codeUnits, end);
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- startChunkedConversion$1: function(sink) {
- return (type$.StringConversionSink._is(sink) ? sink : new P._StringAdapterSink(sink)).asUtf8Sink$1(false);
- }
- };
- P._Utf8Decoder.prototype = {
- flush$2: function(source, offset) {
- var t1;
- if (this._expectedUnits > 0) {
- t1 = P.FormatException$("Unfinished UTF-8 octet sequence", source, offset);
- throw H.wrapException(t1);
- }
- },
- flush$0: function() {
- return this.flush$2(null, null);
- },
- convert$3: function(codeUnits, startIndex, endIndex) {
- var t1, t2, i, unit, t3, oneBytes, i0, i1, t4, _this = this,
- _s21_ = "Bad UTF-8 encoding 0x",
- value = _this._value,
- expectedUnits = _this._expectedUnits,
- extraUnits = _this._extraUnits;
- _this._extraUnits = _this._expectedUnits = _this._value = 0;
- $label0$0:
- for (t1 = J.getInterceptor$asx(codeUnits), t2 = _this._stringSink, i = startIndex; true; i = i1) {
- $label1$1:
- if (expectedUnits > 0) {
- do {
- if (i === endIndex)
- break $label0$0;
- unit = t1.$index(codeUnits, i);
- if ((unit & 192) !== 128) {
- t3 = P.FormatException$(_s21_ + C.JSInt_methods.toRadixString$1(unit, 16), codeUnits, i);
- throw H.wrapException(t3);
- } else {
- value = (value << 6 | unit & 63) >>> 0;
- --expectedUnits;
- ++i;
- }
- } while (expectedUnits > 0);
- if (value <= C.List_127_2047_65535_1114111[extraUnits - 1]) {
- t3 = P.FormatException$("Overlong encoding of 0x" + C.JSInt_methods.toRadixString$1(value, 16), codeUnits, i - extraUnits - 1);
- throw H.wrapException(t3);
- }
- if (value > 1114111) {
- t3 = P.FormatException$("Character outside valid Unicode range: 0x" + C.JSInt_methods.toRadixString$1(value, 16), codeUnits, i - extraUnits - 1);
- throw H.wrapException(t3);
- }
- if (!_this._isFirstCharacter || value !== 65279)
- t2._contents += H.Primitives_stringFromCharCode(value);
- _this._isFirstCharacter = false;
- }
- for (t3 = i < endIndex; t3;) {
- oneBytes = P._scanOneByteCharacters(codeUnits, i, endIndex);
- if (oneBytes > 0) {
- _this._isFirstCharacter = false;
- i0 = i + oneBytes;
- t2._contents += P.String_String$fromCharCodes(codeUnits, i, i0);
- if (i0 === endIndex)
- break;
- } else
- i0 = i;
- i1 = i0 + 1;
- unit = t1.$index(codeUnits, i0);
- if (unit < 0) {
- t4 = P.FormatException$("Negative UTF-8 code unit: -0x" + C.JSInt_methods.toRadixString$1(-unit, 16), codeUnits, i1 - 1);
- throw H.wrapException(t4);
- } else {
- if ((unit & 224) === 192) {
- value = unit & 31;
- expectedUnits = 1;
- extraUnits = 1;
- continue $label0$0;
- }
- if ((unit & 240) === 224) {
- value = unit & 15;
- expectedUnits = 2;
- extraUnits = 2;
- continue $label0$0;
- }
- if ((unit & 248) === 240 && unit < 245) {
- value = unit & 7;
- expectedUnits = 3;
- extraUnits = 3;
- continue $label0$0;
- }
- t4 = P.FormatException$(_s21_ + C.JSInt_methods.toRadixString$1(unit, 16), codeUnits, i1 - 1);
- throw H.wrapException(t4);
- }
- }
- break $label0$0;
- }
- if (expectedUnits > 0) {
- _this._value = value;
- _this._expectedUnits = expectedUnits;
- _this._extraUnits = extraUnits;
- }
- }
- };
- P.NoSuchMethodError_toString_closure.prototype = {
- call$2: function(key, value) {
- var t3,
- t1 = this.sb,
- t2 = this._box_0;
- t1._contents += t2.comma;
- t3 = t1._contents += H.S(key.__internal$_name);
- t1._contents = t3 + ": ";
- t1._contents += P.Error_safeToString(value);
- t2.comma = ", ";
- }
- };
- P.bool.prototype = {};
- P.DateTime.prototype = {
- add$1: function(_, duration) {
- return P.DateTime$_withValue(C.JSInt_methods.$add(this._core$_value, duration.get$inMilliseconds()), false);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof P.DateTime && this._core$_value === other._core$_value && true;
- },
- compareTo$1: function(_, other) {
- return C.JSInt_methods.compareTo$1(this._core$_value, other._core$_value);
- },
- get$hashCode: function(_) {
- var t1 = this._core$_value;
- return (t1 ^ C.JSInt_methods._shrOtherPositive$1(t1, 30)) & 1073741823;
- },
- toString$0: function(_) {
- var _this = this,
- y = P.DateTime__fourDigits(H.Primitives_getYear(_this)),
- m = P.DateTime__twoDigits(H.Primitives_getMonth(_this)),
- d = P.DateTime__twoDigits(H.Primitives_getDay(_this)),
- h = P.DateTime__twoDigits(H.Primitives_getHours(_this)),
- min = P.DateTime__twoDigits(H.Primitives_getMinutes(_this)),
- sec = P.DateTime__twoDigits(H.Primitives_getSeconds(_this)),
- ms = P.DateTime__threeDigits(H.Primitives_getMilliseconds(_this)),
- t1 = y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms;
- return t1;
- },
- $isComparable: 1
- };
- P.double.prototype = {};
- P.Duration.prototype = {
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof P.Duration && this._duration === other._duration;
- },
- get$hashCode: function(_) {
- return C.JSInt_methods.get$hashCode(this._duration);
- },
- compareTo$1: function(_, other) {
- return C.JSInt_methods.compareTo$1(this._duration, other._duration);
- },
- toString$0: function(_) {
- var twoDigitMinutes, twoDigitSeconds, sixDigitUs,
- t1 = new P.Duration_toString_twoDigits(),
- t2 = this._duration;
- if (t2 < 0)
- return "-" + new P.Duration(0 - t2).toString$0(0);
- twoDigitMinutes = t1.call$1(C.JSInt_methods._tdivFast$1(t2, 60000000) % 60);
- twoDigitSeconds = t1.call$1(C.JSInt_methods._tdivFast$1(t2, 1000000) % 60);
- sixDigitUs = new P.Duration_toString_sixDigits().call$1(t2 % 1000000);
- return "" + C.JSInt_methods._tdivFast$1(t2, 3600000000) + ":" + H.S(twoDigitMinutes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs);
- },
- $isComparable: 1
- };
- P.Duration_toString_sixDigits.prototype = {
- call$1: function(n) {
- if (n >= 100000)
- return "" + n;
- if (n >= 10000)
- return "0" + n;
- if (n >= 1000)
- return "00" + n;
- if (n >= 100)
- return "000" + n;
- if (n >= 10)
- return "0000" + n;
- return "00000" + n;
- },
- $signature: 36
- };
- P.Duration_toString_twoDigits.prototype = {
- call$1: function(n) {
- if (n >= 10)
- return "" + n;
- return "0" + n;
- },
- $signature: 36
- };
- P.Error.prototype = {
- get$stackTrace: function() {
- return H.getTraceFromException(this.$thrownJsError);
- }
- };
- P.AssertionError.prototype = {
- toString$0: function(_) {
- var t1 = this.message;
- if (t1 != null)
- return "Assertion failed: " + P.Error_safeToString(t1);
- return "Assertion failed";
- },
- get$message: function(receiver) {
- return this.message;
- }
- };
- P.NullThrownError.prototype = {
- toString$0: function(_) {
- return "Throw of null.";
- }
- };
- P.ArgumentError.prototype = {
- get$_errorName: function() {
- return "Invalid argument" + (!this._hasValue ? "(s)" : "");
- },
- get$_errorExplanation: function() {
- return "";
- },
- toString$0: function(_) {
- var message, prefix, explanation, errorValue, _this = this,
- t1 = _this.name,
- nameString = t1 != null ? " (" + t1 + ")" : "";
- t1 = _this.message;
- message = t1 == null ? "" : ": " + H.S(t1);
- prefix = _this.get$_errorName() + nameString + message;
- if (!_this._hasValue)
- return prefix;
- explanation = _this.get$_errorExplanation();
- errorValue = P.Error_safeToString(_this.invalidValue);
- return prefix + explanation + ": " + errorValue;
- },
- get$message: function(receiver) {
- return this.message;
- }
- };
- P.RangeError.prototype = {
- get$_errorName: function() {
- return "RangeError";
- },
- get$_errorExplanation: function() {
- var explanation, t2,
- t1 = this.start;
- if (t1 == null) {
- t1 = this.end;
- explanation = t1 != null ? ": Not less than or equal to " + H.S(t1) : "";
- } else {
- t2 = this.end;
- if (t2 == null)
- explanation = ": Not greater than or equal to " + H.S(t1);
- else if (t2 > t1)
- explanation = ": Not in range " + H.S(t1) + ".." + H.S(t2) + ", inclusive";
- else
- explanation = t2 < t1 ? ": Valid value range is empty" : ": Only valid value is " + H.S(t1);
- }
- return explanation;
- }
- };
- P.IndexError.prototype = {
- get$_errorName: function() {
- return "RangeError";
- },
- get$_errorExplanation: function() {
- if (this.invalidValue < 0)
- return ": index must not be negative";
- var t1 = this.length;
- if (t1 === 0)
- return ": no indices are valid";
- return ": index should be less than " + t1;
- },
- get$length: function(receiver) {
- return this.length;
- }
- };
- P.NoSuchMethodError.prototype = {
- toString$0: function(_) {
- var t1, t2, _i, t3, t4, argument, receiverText, actualParameters, _this = this, _box_0 = {},
- sb = new P.StringBuffer("");
- _box_0.comma = "";
- for (t1 = _this._core$_arguments, t2 = t1.length, _i = 0, t3 = "", t4 = ""; _i < t2; ++_i, t4 = ", ") {
- argument = t1[_i];
- sb._contents = t3 + t4;
- t3 = sb._contents += P.Error_safeToString(argument);
- _box_0.comma = ", ";
- }
- _this._namedArguments.forEach$1(0, new P.NoSuchMethodError_toString_closure(_box_0, sb));
- receiverText = P.Error_safeToString(_this._core$_receiver);
- actualParameters = sb.toString$0(0);
- t1 = "NoSuchMethodError: method not found: '" + H.S(_this._memberName.__internal$_name) + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]";
- return t1;
- }
- };
- P.UnsupportedError.prototype = {
- toString$0: function(_) {
- return "Unsupported operation: " + this.message;
- },
- get$message: function(receiver) {
- return this.message;
- }
- };
- P.UnimplementedError.prototype = {
- toString$0: function(_) {
- var t1 = this.message;
- return t1 != null ? "UnimplementedError: " + t1 : "UnimplementedError";
- },
- get$message: function(receiver) {
- return this.message;
- }
- };
- P.StateError.prototype = {
- toString$0: function(_) {
- return "Bad state: " + this.message;
- },
- get$message: function(receiver) {
- return this.message;
- }
- };
- P.ConcurrentModificationError.prototype = {
- toString$0: function(_) {
- var t1 = this.modifiedObject;
- if (t1 == null)
- return "Concurrent modification during iteration.";
- return "Concurrent modification during iteration: " + P.Error_safeToString(t1) + ".";
- }
- };
- P.OutOfMemoryError.prototype = {
- toString$0: function(_) {
- return "Out of Memory";
- },
- get$stackTrace: function() {
- return null;
- },
- $isError: 1
- };
- P.StackOverflowError.prototype = {
- toString$0: function(_) {
- return "Stack Overflow";
- },
- get$stackTrace: function() {
- return null;
- },
- $isError: 1
- };
- P.CyclicInitializationError.prototype = {
- toString$0: function(_) {
- var t1 = this.variableName;
- return t1 == null ? "Reading static variable during its initialization" : "Reading static variable '" + t1 + "' during its initialization";
- }
- };
- P._Exception.prototype = {
- toString$0: function(_) {
- return "Exception: " + this.message;
- },
- $isException: 1,
- get$message: function(receiver) {
- return this.message;
- }
- };
- P.FormatException.prototype = {
- toString$0: function(_) {
- var source, lineNum, lineStart, previousCharWasCR, i, char, lineEnd, end, start, prefix, postfix, slice,
- t1 = this.message,
- report = t1 != null && "" !== t1 ? "FormatException: " + H.S(t1) : "FormatException",
- offset = this.offset,
- objectSource = this.source;
- if (typeof objectSource == "string") {
- if (offset != null)
- t1 = offset < 0 || offset > objectSource.length;
- else
- t1 = false;
- if (t1)
- offset = null;
- if (offset == null) {
- source = objectSource.length > 78 ? C.JSString_methods.substring$2(objectSource, 0, 75) + "..." : objectSource;
- return report + "\n" + source;
- }
- for (lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) {
- char = C.JSString_methods._codeUnitAt$1(objectSource, i);
- if (char === 10) {
- if (lineStart !== i || !previousCharWasCR)
- ++lineNum;
- lineStart = i + 1;
- previousCharWasCR = false;
- } else if (char === 13) {
- ++lineNum;
- lineStart = i + 1;
- previousCharWasCR = true;
- }
- }
- report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n");
- lineEnd = objectSource.length;
- for (i = offset; i < lineEnd; ++i) {
- char = C.JSString_methods.codeUnitAt$1(objectSource, i);
- if (char === 10 || char === 13) {
- lineEnd = i;
- break;
- }
- }
- if (lineEnd - lineStart > 78)
- if (offset - lineStart < 75) {
- end = lineStart + 75;
- start = lineStart;
- prefix = "";
- postfix = "...";
- } else {
- if (lineEnd - offset < 75) {
- start = lineEnd - 75;
- end = lineEnd;
- postfix = "";
- } else {
- start = offset - 36;
- end = offset + 36;
- postfix = "...";
- }
- prefix = "...";
- }
- else {
- end = lineEnd;
- start = lineStart;
- prefix = "";
- postfix = "";
- }
- slice = C.JSString_methods.substring$2(objectSource, start, end);
- return report + prefix + slice + postfix + "\n" + C.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n";
- } else
- return offset != null ? report + (" (at offset " + H.S(offset) + ")") : report;
- },
- $isException: 1,
- get$message: function(receiver) {
- return this.message;
- },
- get$source: function() {
- return this.source;
- }
- };
- P.Function.prototype = {};
- P.int.prototype = {};
- P.Iterable.prototype = {
- cast$1$0: function(_, $R) {
- return H.CastIterable_CastIterable(this, H._instanceType(this)._eval$1("Iterable.E"), $R);
- },
- followedBy$1: function(_, other) {
- var _this = this,
- t1 = H._instanceType(_this);
- if (t1._eval$1("EfficientLengthIterable<Iterable.E>")._is(_this))
- return H.FollowedByIterable_FollowedByIterable$firstEfficient(_this, other, t1._eval$1("Iterable.E"));
- return new H.FollowedByIterable(_this, other, t1._eval$1("FollowedByIterable<Iterable.E>"));
- },
- map$1$1: function(_, f, $T) {
- return H.MappedIterable_MappedIterable(this, f, H._instanceType(this)._eval$1("Iterable.E"), $T);
- },
- where$1: function(_, test) {
- return new H.WhereIterable(this, test, H._instanceType(this)._eval$1("WhereIterable<Iterable.E>"));
- },
- expand$1$1: function(_, f, $T) {
- return new H.ExpandIterable(this, f, H._instanceType(this)._eval$1("@<Iterable.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
- },
- contains$1: function(_, element) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- if (J.$eq$(t1.get$current(t1), element))
- return true;
- return false;
- },
- fold$1$2: function(_, initialValue, combine) {
- var t1, value;
- for (t1 = this.get$iterator(this), value = initialValue; t1.moveNext$0();)
- value = combine.call$2(value, t1.get$current(t1));
- return value;
- },
- fold$2: function($receiver, initialValue, combine) {
- return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
- },
- join$1: function(_, separator) {
- var t1,
- iterator = this.get$iterator(this);
- if (!iterator.moveNext$0())
- return "";
- if (separator === "") {
- t1 = "";
- do
- t1 += H.S(iterator.get$current(iterator));
- while (iterator.moveNext$0());
- } else {
- t1 = H.S(iterator.get$current(iterator));
- for (; iterator.moveNext$0();)
- t1 = t1 + separator + H.S(iterator.get$current(iterator));
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- join$0: function($receiver) {
- return this.join$1($receiver, "");
- },
- any$1: function(_, test) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- if (test.call$1(t1.get$current(t1)))
- return true;
- return false;
- },
- toList$1$growable: function(_, growable) {
- return P.List_List$from(this, growable, H._instanceType(this)._eval$1("Iterable.E"));
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- },
- toSet$0: function(_) {
- return P.LinkedHashSet_LinkedHashSet$from(this, H._instanceType(this)._eval$1("Iterable.E"));
- },
- get$length: function(_) {
- var count,
- it = this.get$iterator(this);
- for (count = 0; it.moveNext$0();)
- ++count;
- return count;
- },
- get$isEmpty: function(_) {
- return !this.get$iterator(this).moveNext$0();
- },
- get$isNotEmpty: function(_) {
- return !this.get$isEmpty(this);
- },
- take$1: function(_, count) {
- return H.TakeIterable_TakeIterable(this, count, H._instanceType(this)._eval$1("Iterable.E"));
- },
- skip$1: function(_, count) {
- return H.SkipIterable_SkipIterable(this, count, H._instanceType(this)._eval$1("Iterable.E"));
- },
- skipWhile$1: function(_, test) {
- return new H.SkipWhileIterable(this, test, H._instanceType(this)._eval$1("SkipWhileIterable<Iterable.E>"));
- },
- get$first: function(_) {
- var it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw H.wrapException(H.IterableElementError_noElement());
- return it.get$current(it);
- },
- get$last: function(_) {
- var result,
- it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw H.wrapException(H.IterableElementError_noElement());
- do
- result = it.get$current(it);
- while (it.moveNext$0());
- return result;
- },
- get$single: function(_) {
- var result,
- it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw H.wrapException(H.IterableElementError_noElement());
- result = it.get$current(it);
- if (it.moveNext$0())
- throw H.wrapException(H.IterableElementError_tooMany());
- return result;
- },
- firstWhere$2$orElse: function(_, test, orElse) {
- var t1, element;
- for (t1 = this.get$iterator(this); t1.moveNext$0();) {
- element = t1.get$current(t1);
- if (test.call$1(element))
- return element;
- }
- return orElse.call$0();
- },
- elementAt$1: function(_, index) {
- var t1, elementIndex, element, _s5_ = "index";
- P.ArgumentError_checkNotNull(index, _s5_);
- P.RangeError_checkNotNegative(index, _s5_);
- for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
- element = t1.get$current(t1);
- if (index === elementIndex)
- return element;
- ++elementIndex;
- }
- throw H.wrapException(P.IndexError$(index, this, _s5_, null, elementIndex));
- },
- toString$0: function(_) {
- return P.IterableBase_iterableToShortString(this, "(", ")");
- }
- };
- P._GeneratorIterable.prototype = {
- elementAt$1: function(_, index) {
- P.RangeError_checkValidIndex(index, this, null);
- return this._generator.call$1(index);
- },
- get$length: function(receiver) {
- return this.length;
- }
- };
- P.Iterator.prototype = {};
- P.List.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1};
- P.Map.prototype = {};
- P.MapEntry.prototype = {
- toString$0: function(_) {
- return "MapEntry(" + H.S(this.key) + ": " + H.S(this.value) + ")";
- }
- };
- P.Null.prototype = {
- get$hashCode: function(_) {
- return P.Object.prototype.get$hashCode.call(this, this);
- },
- toString$0: function(_) {
- return "null";
- }
- };
- P.num.prototype = {$isComparable: 1};
- P.Object.prototype = {constructor: P.Object, $isObject: 1,
- $eq: function(_, other) {
- return this === other;
- },
- get$hashCode: function(_) {
- return H.Primitives_objectHashCode(this);
- },
- toString$0: function(_) {
- return "Instance of '" + H.S(H.Primitives_objectTypeName(this)) + "'";
- },
- noSuchMethod$1: function(_, invocation) {
- throw H.wrapException(P.NoSuchMethodError$(this, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
- },
- toString: function() {
- return this.toString$0(this);
- }
- };
- P.Match.prototype = {};
- P.RegExpMatch.prototype = {$isMatch: 1};
- P.Set.prototype = {};
- P.StackTrace.prototype = {};
- P._StringStackTrace.prototype = {
- toString$0: function(_) {
- return this._stackTrace;
- },
- $isStackTrace: 1
- };
- P.String.prototype = {$isComparable: 1};
- P.Runes.prototype = {
- get$iterator: function(_) {
- return new P.RuneIterator(this.string);
- },
- get$last: function(_) {
- var code, previousCode,
- t1 = this.string,
- t2 = t1.length;
- if (t2 === 0)
- throw H.wrapException(P.StateError$("No elements."));
- code = C.JSString_methods.codeUnitAt$1(t1, t2 - 1);
- if ((code & 64512) === 56320 && t2 > 1) {
- previousCode = C.JSString_methods.codeUnitAt$1(t1, t2 - 2);
- if ((previousCode & 64512) === 55296)
- return P._combineSurrogatePair(previousCode, code);
- }
- return code;
- }
- };
- P.RuneIterator.prototype = {
- get$current: function(_) {
- return this._currentCodePoint;
- },
- moveNext$0: function() {
- var codeUnit, nextPosition, nextCodeUnit, _this = this,
- t1 = _this._position = _this._nextPosition,
- t2 = _this.string,
- t3 = t2.length;
- if (t1 === t3) {
- _this._currentCodePoint = -1;
- return false;
- }
- codeUnit = C.JSString_methods._codeUnitAt$1(t2, t1);
- nextPosition = t1 + 1;
- if ((codeUnit & 64512) === 55296 && nextPosition < t3) {
- nextCodeUnit = C.JSString_methods._codeUnitAt$1(t2, nextPosition);
- if ((nextCodeUnit & 64512) === 56320) {
- _this._nextPosition = nextPosition + 1;
- _this._currentCodePoint = P._combineSurrogatePair(codeUnit, nextCodeUnit);
- return true;
- }
- }
- _this._nextPosition = nextPosition;
- _this._currentCodePoint = codeUnit;
- return true;
- }
- };
- P.StringBuffer.prototype = {
- get$length: function(_) {
- return this._contents.length;
- },
- write$1: function(_, obj) {
- this._contents += H.S(obj);
- },
- writeCharCode$1: function(charCode) {
- this._contents += H.Primitives_stringFromCharCode(charCode);
- },
- toString$0: function(_) {
- var t1 = this._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- P.StringSink.prototype = {};
- P.Symbol0.prototype = {};
- P.Uri.prototype = {};
- P.Uri__parseIPv4Address_error.prototype = {
- call$2: function(msg, position) {
- throw H.wrapException(P.FormatException$("Illegal IPv4 address, " + msg, this.host, position));
- }
- };
- P.Uri_parseIPv6Address_error.prototype = {
- call$2: function(msg, position) {
- throw H.wrapException(P.FormatException$("Illegal IPv6 address, " + msg, this.host, position));
- },
- call$1: function(msg) {
- return this.call$2(msg, null);
- }
- };
- P.Uri_parseIPv6Address_parseHex.prototype = {
- call$2: function(start, end) {
- var value;
- if (end - start > 4)
- this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
- value = P.int_parse(C.JSString_methods.substring$2(this.host, start, end), null, 16);
- if (value < 0 || value > 65535)
- this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start);
- return value;
- }
- };
- P._Uri.prototype = {
- get$userInfo: function() {
- return this._userInfo;
- },
- get$host: function() {
- var t1 = this._host;
- if (t1 == null)
- return "";
- if (C.JSString_methods.startsWith$1(t1, "["))
- return C.JSString_methods.substring$2(t1, 1, t1.length - 1);
- return t1;
- },
- get$port: function() {
- var t1 = this._port;
- if (t1 == null)
- return P._Uri__defaultPort(this.scheme);
- return t1;
- },
- get$query: function() {
- var t1 = this._query;
- return t1 == null ? "" : t1;
- },
- get$fragment: function() {
- var t1 = this._fragment;
- return t1 == null ? "" : t1;
- },
- get$pathSegments: function() {
- var pathToSplit,
- result = this._pathSegments;
- if (result != null)
- return result;
- pathToSplit = this.path;
- if (pathToSplit.length !== 0 && C.JSString_methods._codeUnitAt$1(pathToSplit, 0) === 47)
- pathToSplit = C.JSString_methods.substring$1(pathToSplit, 1);
- return this._pathSegments = pathToSplit === "" ? 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);
- },
- _mergePaths$2: function(base, reference) {
- var backCount, refStart, baseEnd, newEnd, delta, t1;
- for (backCount = 0, refStart = 0; C.JSString_methods.startsWith$2(reference, "../", refStart);) {
- refStart += 3;
- ++backCount;
- }
- baseEnd = C.JSString_methods.lastIndexOf$1(base, "/");
- while (true) {
- if (!(baseEnd > 0 && backCount > 0))
- break;
- newEnd = C.JSString_methods.lastIndexOf$2(base, "/", baseEnd - 1);
- if (newEnd < 0)
- break;
- delta = baseEnd - newEnd;
- t1 = delta !== 2;
- if (!t1 || delta === 3)
- if (C.JSString_methods.codeUnitAt$1(base, newEnd + 1) === 46)
- t1 = !t1 || C.JSString_methods.codeUnitAt$1(base, newEnd + 2) === 46;
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- break;
- --backCount;
- baseEnd = newEnd;
- }
- return C.JSString_methods.replaceRange$3(base, baseEnd + 1, null, C.JSString_methods.substring$1(reference, refStart - 3 * backCount));
- },
- resolve$1: function(reference) {
- return this.resolveUri$1(P.Uri_parse(reference));
- },
- resolveUri$1: function(reference) {
- var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, t1, mergedPath, t2, _this = this, _null = null;
- if (reference.get$scheme().length !== 0) {
- targetScheme = reference.get$scheme();
- if (reference.get$hasAuthority()) {
- targetUserInfo = reference.get$userInfo();
- targetHost = reference.get$host();
- targetPort = reference.get$hasPort() ? reference.get$port() : _null;
- } else {
- targetPort = _null;
- targetHost = targetPort;
- targetUserInfo = "";
- }
- targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
- targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
- } else {
- targetScheme = _this.scheme;
- if (reference.get$hasAuthority()) {
- targetUserInfo = reference.get$userInfo();
- targetHost = reference.get$host();
- targetPort = P._Uri__makePort(reference.get$hasPort() ? reference.get$port() : _null, targetScheme);
- targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
- targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
- } else {
- targetUserInfo = _this._userInfo;
- targetHost = _this._host;
- targetPort = _this._port;
- if (reference.get$path(reference) === "") {
- targetPath = _this.path;
- targetQuery = reference.get$hasQuery() ? reference.get$query() : _this._query;
- } else {
- if (reference.get$hasAbsolutePath())
- targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
- else {
- t1 = _this.path;
- if (t1.length === 0)
- if (targetHost == null)
- targetPath = targetScheme.length === 0 ? reference.get$path(reference) : P._Uri__removeDotSegments(reference.get$path(reference));
- else
- targetPath = P._Uri__removeDotSegments("/" + reference.get$path(reference));
- else {
- mergedPath = _this._mergePaths$2(t1, reference.get$path(reference));
- t2 = targetScheme.length === 0;
- if (!t2 || targetHost != null || C.JSString_methods.startsWith$1(t1, "/"))
- targetPath = P._Uri__removeDotSegments(mergedPath);
- else
- targetPath = P._Uri__normalizeRelativePath(mergedPath, !t2 || targetHost != null);
- }
- }
- targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
- }
- }
- }
- return new P._Uri(targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, reference.get$hasFragment() ? reference.get$fragment() : _null);
- },
- get$hasAuthority: function() {
- return this._host != null;
- },
- get$hasPort: function() {
- return this._port != null;
- },
- get$hasQuery: function() {
- return this._query != null;
- },
- get$hasFragment: function() {
- return this._fragment != null;
- },
- get$hasAbsolutePath: function() {
- return C.JSString_methods.startsWith$1(this.path, "/");
- },
- toFilePath$0: function() {
- var windows, pathSegments, _this = this,
- t1 = _this.scheme;
- if (t1 !== "" && t1 !== "file")
- throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a " + H.S(t1) + " URI"));
- t1 = _this._query;
- if ((t1 == null ? "" : t1) !== "")
- throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a URI with a query component"));
- t1 = _this._fragment;
- if ((t1 == null ? "" : t1) !== "")
- throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a URI with a fragment component"));
- windows = $.$get$_Uri__isWindowsCached();
- if (windows)
- t1 = P._Uri__toWindowsFilePath(_this);
- else {
- if (_this._host != null && _this.get$host() !== "")
- H.throwExpression(P.UnsupportedError$("Cannot extract a non-Windows file path from a file URI with an authority"));
- pathSegments = _this.get$pathSegments();
- P._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false);
- t1 = P.StringBuffer__writeAll(C.JSString_methods.startsWith$1(_this.path, "/") ? "/" : "", pathSegments, "/");
- t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- return t1;
- },
- toString$0: function(_) {
- var t2, t3, t4, _this = this,
- t1 = _this._text;
- if (t1 == null) {
- t1 = _this.scheme;
- t2 = t1.length !== 0 ? t1 + ":" : "";
- t3 = _this._host;
- t4 = t3 == null;
- if (!t4 || t1 === "file") {
- t1 = t2 + "//";
- t2 = _this._userInfo;
- if (t2.length !== 0)
- t1 = t1 + t2 + "@";
- if (!t4)
- t1 += t3;
- t2 = _this._port;
- if (t2 != null)
- t1 = t1 + ":" + H.S(t2);
- } else
- t1 = t2;
- t1 += _this.path;
- t2 = _this._query;
- if (t2 != null)
- t1 = t1 + "?" + t2;
- t2 = _this._fragment;
- if (t2 != null)
- t1 = t1 + "#" + t2;
- t1 = _this._text = t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- return t1;
- },
- $eq: function(_, other) {
- var t1, t2, _this = this;
- if (other == null)
- return false;
- if (_this === other)
- return true;
- if (type$.Uri._is(other))
- if (_this.scheme == other.get$scheme())
- if (_this._host != null === other.get$hasAuthority())
- if (_this._userInfo == other.get$userInfo())
- if (_this.get$host() == other.get$host())
- if (_this.get$port() == other.get$port())
- if (_this.path === other.get$path(other)) {
- t1 = _this._query;
- t2 = t1 == null;
- if (!t2 === other.get$hasQuery()) {
- if (t2)
- t1 = "";
- if (t1 === other.get$query()) {
- t1 = _this._fragment;
- t2 = t1 == null;
- if (!t2 === other.get$hasFragment()) {
- if (t2)
- t1 = "";
- t1 = t1 === other.get$fragment();
- } else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- get$hashCode: function(_) {
- var t1 = this._hashCodeCache;
- return t1 == null ? this._hashCodeCache = C.JSString_methods.get$hashCode(this.toString$0(0)) : t1;
- },
- $isUri: 1,
- get$scheme: function() {
- return this.scheme;
- },
- get$path: function(receiver) {
- return this.path;
- }
- };
- P._Uri__Uri$notSimple_closure.prototype = {
- call$1: function(_) {
- throw H.wrapException(P.FormatException$("Invalid port", this.uri, this.portStart + 1));
- }
- };
- P._Uri__checkNonWindowsPathReservedCharacters_closure.prototype = {
- call$1: function(segment) {
- var _s23_ = "Illegal path character ";
- if (J.contains$1$asx(segment, "/"))
- if (this.argumentError)
- throw H.wrapException(P.ArgumentError$(_s23_ + segment));
- else
- throw H.wrapException(P.UnsupportedError$(_s23_ + segment));
- }
- };
- P._Uri__makePath_closure.prototype = {
- call$1: function(s) {
- return P._Uri__uriEncode(C.List_qg40, s, C.C_Utf8Codec, false);
- }
- };
- P.UriData.prototype = {
- get$uri: function() {
- var t2, queryIndex, end, query, _this = this, _null = null,
- t1 = _this._uriCache;
- if (t1 != null)
- return t1;
- t1 = _this._text;
- t2 = _this._separatorIndices[0] + 1;
- queryIndex = C.JSString_methods.indexOf$2(t1, "?", t2);
- end = t1.length;
- if (queryIndex >= 0) {
- query = P._Uri__normalizeOrSubstring(t1, queryIndex + 1, end, C.List_CVk, false);
- end = queryIndex;
- } else
- query = _null;
- return _this._uriCache = new P._DataUri("data", _null, _null, _null, P._Uri__normalizeOrSubstring(t1, t2, end, C.List_qg4, false), query, _null);
- },
- toString$0: function(_) {
- var t1 = this._text;
- return this._separatorIndices[0] === -1 ? "data:" + t1 : t1;
- }
- };
- P._createTables_closure.prototype = {
- call$1: function(_) {
- return new Uint8Array(96);
- },
- $signature: 109
- };
- P._createTables_build.prototype = {
- call$2: function(state, defaultTransition) {
- var t1 = this.tables[state];
- J.fillRange$3$ax(t1, 0, 96, defaultTransition);
- return t1;
- },
- $signature: 108
- };
- P._createTables_setChars.prototype = {
- call$3: function(target, chars, transition) {
- var t1, i;
- for (t1 = chars.length, i = 0; i < t1; ++i)
- target[C.JSString_methods._codeUnitAt$1(chars, i) ^ 96] = transition;
- }
- };
- P._createTables_setRange.prototype = {
- call$3: function(target, range, transition) {
- var i, n;
- for (i = C.JSString_methods._codeUnitAt$1(range, 0), n = C.JSString_methods._codeUnitAt$1(range, 1); i <= n; ++i)
- target[(i ^ 96) >>> 0] = transition;
- }
- };
- P._SimpleUri.prototype = {
- get$hasAuthority: function() {
- return this._hostStart > 0;
- },
- get$hasPort: function() {
- return this._hostStart > 0 && this._portStart + 1 < this._pathStart;
- },
- get$hasQuery: function() {
- return this._queryStart < this._fragmentStart;
- },
- get$hasFragment: function() {
- return this._fragmentStart < this._uri.length;
- },
- get$_isFile: function() {
- return this._schemeEnd === 4 && C.JSString_methods.startsWith$1(this._uri, "file");
- },
- get$_isHttp: function() {
- return this._schemeEnd === 4 && C.JSString_methods.startsWith$1(this._uri, "http");
- },
- get$_isHttps: function() {
- return this._schemeEnd === 5 && C.JSString_methods.startsWith$1(this._uri, "https");
- },
- get$hasAbsolutePath: function() {
- return C.JSString_methods.startsWith$2(this._uri, "/", this._pathStart);
- },
- get$scheme: function() {
- var t2, _this = this,
- _s7_ = "package",
- t1 = _this._schemeEnd;
- if (t1 <= 0)
- return "";
- t2 = _this._schemeCache;
- if (t2 != null)
- return t2;
- if (_this.get$_isHttp())
- t1 = _this._schemeCache = "http";
- else if (_this.get$_isHttps()) {
- _this._schemeCache = "https";
- t1 = "https";
- } else if (_this.get$_isFile()) {
- _this._schemeCache = "file";
- t1 = "file";
- } else if (t1 === 7 && C.JSString_methods.startsWith$1(_this._uri, _s7_)) {
- _this._schemeCache = _s7_;
- t1 = _s7_;
- } else {
- t1 = C.JSString_methods.substring$2(_this._uri, 0, t1);
- _this._schemeCache = t1;
- }
- return t1;
- },
- get$userInfo: function() {
- var t1 = this._hostStart,
- t2 = this._schemeEnd + 3;
- return t1 > t2 ? C.JSString_methods.substring$2(this._uri, t2, t1 - 1) : "";
- },
- get$host: function() {
- var t1 = this._hostStart;
- return t1 > 0 ? C.JSString_methods.substring$2(this._uri, t1, this._portStart) : "";
- },
- get$port: function() {
- var _this = this;
- if (_this.get$hasPort())
- return P.int_parse(C.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null, null);
- if (_this.get$_isHttp())
- return 80;
- if (_this.get$_isHttps())
- return 443;
- return 0;
- },
- get$path: function(_) {
- return C.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart);
- },
- get$query: function() {
- var t1 = this._queryStart,
- t2 = this._fragmentStart;
- return t1 < t2 ? C.JSString_methods.substring$2(this._uri, t1 + 1, t2) : "";
- },
- get$fragment: function() {
- var t1 = this._fragmentStart,
- t2 = this._uri;
- return t1 < t2.length ? C.JSString_methods.substring$1(t2, t1 + 1) : "";
- },
- get$pathSegments: function() {
- var parts, i,
- start = this._pathStart,
- end = this._queryStart,
- t1 = this._uri;
- if (C.JSString_methods.startsWith$2(t1, "/", start))
- ++start;
- if (start == end)
- return C.List_empty;
- parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (i = start; i < end; ++i)
- if (C.JSString_methods.codeUnitAt$1(t1, i) === 47) {
- parts.push(C.JSString_methods.substring$2(t1, start, i));
- start = i + 1;
- }
- parts.push(C.JSString_methods.substring$2(t1, start, end));
- return P.List_List$unmodifiable(parts, type$.String);
- },
- _isPort$1: function(port) {
- var portDigitStart = this._portStart + 1;
- return portDigitStart + port.length === this._pathStart && C.JSString_methods.startsWith$2(this._uri, port, portDigitStart);
- },
- removeFragment$0: function() {
- var _this = this,
- t1 = _this._fragmentStart,
- t2 = _this._uri;
- if (t1 >= t2.length)
- return _this;
- 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);
- },
- resolve$1: function(reference) {
- return this.resolveUri$1(P.Uri_parse(reference));
- },
- resolveUri$1: function(reference) {
- if (reference instanceof P._SimpleUri)
- return this._simpleMerge$2(this, reference);
- return this._toNonSimple$0().resolveUri$1(reference);
- },
- _simpleMerge$2: function(base, ref) {
- var t2, t3, isSimple, delta, refStart, baseStart, baseEnd, baseUri, baseStart0, backCount, refStart0, insert,
- t1 = ref._schemeEnd;
- if (t1 > 0)
- return ref;
- t2 = ref._hostStart;
- if (t2 > 0) {
- t3 = base._schemeEnd;
- if (t3 <= 0)
- return ref;
- if (base.get$_isFile())
- isSimple = ref._pathStart != ref._queryStart;
- else if (base.get$_isHttp())
- isSimple = !ref._isPort$1("80");
- else
- isSimple = !base.get$_isHttps() || !ref._isPort$1("443");
- if (isSimple) {
- delta = t3 + 1;
- 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);
- } else
- return this._toNonSimple$0().resolveUri$1(ref);
- }
- refStart = ref._pathStart;
- t1 = ref._queryStart;
- if (refStart == t1) {
- t2 = ref._fragmentStart;
- if (t1 < t2) {
- t3 = base._queryStart;
- delta = t3 - t1;
- 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);
- }
- t1 = ref._uri;
- if (t2 < t1.length) {
- t3 = base._fragmentStart;
- 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);
- }
- return base.removeFragment$0();
- }
- t2 = ref._uri;
- if (C.JSString_methods.startsWith$2(t2, "/", refStart)) {
- t3 = base._pathStart;
- delta = t3 - refStart;
- 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);
- }
- baseStart = base._pathStart;
- baseEnd = base._queryStart;
- if (baseStart == baseEnd && base._hostStart > 0) {
- for (; C.JSString_methods.startsWith$2(t2, "../", refStart);)
- refStart += 3;
- delta = baseStart - refStart + 1;
- 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);
- }
- baseUri = base._uri;
- for (baseStart0 = baseStart; C.JSString_methods.startsWith$2(baseUri, "../", baseStart0);)
- baseStart0 += 3;
- backCount = 0;
- while (true) {
- refStart0 = refStart + 3;
- if (!(refStart0 <= t1 && C.JSString_methods.startsWith$2(t2, "../", refStart)))
- break;
- ++backCount;
- refStart = refStart0;
- }
- for (insert = ""; baseEnd > baseStart0;) {
- --baseEnd;
- if (C.JSString_methods.codeUnitAt$1(baseUri, baseEnd) === 47) {
- if (backCount === 0) {
- insert = "/";
- break;
- }
- --backCount;
- insert = "/";
- }
- }
- if (baseEnd === baseStart0 && base._schemeEnd <= 0 && !C.JSString_methods.startsWith$2(baseUri, "/", baseStart)) {
- refStart -= backCount * 3;
- insert = "";
- }
- delta = baseEnd - refStart + insert.length;
- 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);
- },
- toFilePath$0: function() {
- var t1, t2, windows, _this = this;
- if (_this._schemeEnd >= 0 && !_this.get$_isFile())
- throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a " + H.S(_this.get$scheme()) + " URI"));
- t1 = _this._queryStart;
- t2 = _this._uri;
- if (t1 < t2.length) {
- if (t1 < _this._fragmentStart)
- throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a URI with a query component"));
- throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a URI with a fragment component"));
- }
- windows = $.$get$_Uri__isWindowsCached();
- if (windows)
- t1 = P._Uri__toWindowsFilePath(_this);
- else {
- if (_this._hostStart < _this._portStart)
- H.throwExpression(P.UnsupportedError$("Cannot extract a non-Windows file path from a file URI with an authority"));
- t1 = C.JSString_methods.substring$2(t2, _this._pathStart, t1);
- }
- return t1;
- },
- get$hashCode: function(_) {
- var t1 = this._hashCodeCache;
- return t1 == null ? this._hashCodeCache = C.JSString_methods.get$hashCode(this._uri) : t1;
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- if (this === other)
- return true;
- return type$.Uri._is(other) && this._uri === other.toString$0(0);
- },
- _toNonSimple$0: function() {
- var _this = this, _null = null,
- t1 = _this.get$scheme(),
- t2 = _this.get$userInfo(),
- t3 = _this._hostStart > 0 ? _this.get$host() : _null,
- t4 = _this.get$hasPort() ? _this.get$port() : _null,
- t5 = _this._uri,
- t6 = _this._queryStart,
- t7 = C.JSString_methods.substring$2(t5, _this._pathStart, t6),
- t8 = _this._fragmentStart;
- t6 = t6 < t8 ? _this.get$query() : _null;
- return new P._Uri(t1, t2, t3, t4, t7, t6, t8 < t5.length ? _this.get$fragment() : _null);
- },
- toString$0: function(_) {
- return this._uri;
- },
- $isUri: 1
- };
- P._DataUri.prototype = {};
- P._JSRandom.prototype = {
- nextInt$1: function(max) {
- if (max <= 0 || max > 4294967296)
- throw H.wrapException(P.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max));
- return Math.random() * max >>> 0;
- },
- nextDouble$0: function() {
- return Math.random();
- }
- };
- P.Uint8List.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1};
- N.ArgParser.prototype = {
- addFlag$6$abbr$defaultsTo$help$hide$negatable: function($name, abbr, defaultsTo, help, hide, negatable) {
- var _null = null;
- this._addOption$11$hide$negatable($name, abbr, help, _null, _null, _null, defaultsTo, _null, C.OptionType_nMZ, hide, negatable);
- },
- addFlag$2$hide: function($name, hide) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, null, hide, true);
- },
- addFlag$2$help: function($name, help) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, true);
- },
- addFlag$3$defaultsTo$help: function($name, defaultsTo, help) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, defaultsTo, help, false, true);
- },
- addFlag$3$help$negatable: function($name, help, negatable) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, negatable);
- },
- addFlag$4$abbr$help$negatable: function($name, abbr, help, negatable) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, negatable);
- },
- addFlag$3$abbr$help: function($name, abbr, help) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, true);
- },
- addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp: function($name, abbr, allowed, defaultsTo, help, hide, valueHelp) {
- this._addOption$11$hide$splitCommas($name, abbr, help, valueHelp, allowed, null, defaultsTo, null, C.OptionType_YwU, hide, null);
- },
- addOption$2$hide: function($name, hide) {
- return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, null, null, null, hide, null);
- },
- addOption$6$abbr$allowed$defaultsTo$help$valueHelp: function($name, abbr, allowed, defaultsTo, help, valueHelp) {
- return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, false, valueHelp);
- },
- addOption$4$allowed$defaultsTo$help: function($name, allowed, defaultsTo, help) {
- return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, allowed, defaultsTo, help, false, null);
- },
- addMultiOption$5$abbr$help$splitCommas$valueHelp: function($name, abbr, help, splitCommas, valueHelp) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- this._addOption$11$hide$splitCommas($name, abbr, help, valueHelp, null, null, t1, null, C.OptionType_qyr, false, false);
- },
- _addOption$12$hide$negatable$splitCommas: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable, splitCommas) {
- var t2, existing, t3, option,
- t1 = this._arg_parser$_options;
- if (t1.containsKey$1($name))
- throw H.wrapException(P.ArgumentError$('Duplicate option "' + $name + '".'));
- t2 = abbr != null;
- if (t2) {
- existing = this.findByAbbreviation$1(abbr);
- if (existing != null)
- throw H.wrapException(P.ArgumentError$('Abbreviation "' + abbr + '" is already used by "' + existing.name + '".'));
- }
- t3 = allowed == null ? null : P.List_List$unmodifiable(allowed, type$.String);
- option = new G.Option($name, abbr, help, valueHelp, t3, null, defaultsTo, negatable, callback, type, splitCommas == null ? type === C.OptionType_qyr : splitCommas, hide);
- if ($name.length === 0)
- H.throwExpression(P.ArgumentError$("Name cannot be empty."));
- else if (C.JSString_methods.startsWith$1($name, "-"))
- H.throwExpression(P.ArgumentError$("Name " + $name + ' cannot start with "-".'));
- t3 = $.$get$Option__invalidChars()._nativeRegExp;
- if (t3.test($name))
- H.throwExpression(P.ArgumentError$('Name "' + $name + '" contains invalid characters.'));
- if (t2) {
- if (abbr.length !== 1)
- H.throwExpression(P.ArgumentError$("Abbreviation must be null or have length 1."));
- else if (abbr === "-")
- H.throwExpression(P.ArgumentError$('Abbreviation cannot be "-".'));
- if (t3.test(abbr))
- H.throwExpression(P.ArgumentError$("Abbreviation is an invalid character."));
- }
- t1.$indexSet(0, $name, option);
- this._optionsAndSeparators.push(option);
- },
- _addOption$11$hide$splitCommas: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, splitCommas) {
- return this._addOption$12$hide$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, false, splitCommas);
- },
- _addOption$11$hide$negatable: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable) {
- return this._addOption$12$hide$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable, null);
- },
- findByAbbreviation$1: function(abbr) {
- return this.options._collection$_map.get$values().firstWhere$2$orElse(0, new N.ArgParser_findByAbbreviation_closure(abbr), new N.ArgParser_findByAbbreviation_closure0());
- }
- };
- N.ArgParser_findByAbbreviation_closure.prototype = {
- call$1: function(option) {
- return option.abbr === this.abbr;
- }
- };
- N.ArgParser_findByAbbreviation_closure0.prototype = {
- call$0: function() {
- return null;
- },
- $signature: 0
- };
- Z.ArgParserException.prototype = {};
- V.ArgResults.prototype = {
- $index: function(_, $name) {
- var t1 = this._parser.options._collection$_map;
- if (!t1.containsKey$1($name))
- throw H.wrapException(P.ArgumentError$('Could not find an option named "' + $name + '".'));
- return t1.$index(0, $name).getOrDefault$1(this._parsed.$index(0, $name));
- },
- wasParsed$1: function($name) {
- if (this._parser.options._collection$_map.$index(0, $name) == null)
- throw H.wrapException(P.ArgumentError$('Could not find an option named "' + H.S($name) + '".'));
- return this._parsed.containsKey$1($name);
- }
- };
- G.Option.prototype = {
- getOrDefault$1: function(value) {
- var t1;
- if (value != null)
- return value;
- if (this.type === C.OptionType_qyr) {
- t1 = this.defaultsTo;
- return t1 == null ? H.setRuntimeTypeInfo([], type$.JSArray_String) : t1;
- }
- return this.defaultsTo;
- }
- };
- G.OptionType.prototype = {};
- G.Parser0.prototype = {
- parse$0: function() {
- var commandName, commandParser, error, t1, t2, t4, t5, t6, t7, t8, t9, command, exception, _i, _this = this,
- t3 = _this.args,
- $arguments = t3.toList$0(0),
- commandResults = null;
- for (t4 = _this.rest, t5 = _this.grammar, t6 = !t5.allowTrailingOptions, t7 = t5.commands; !t3.get$isEmpty(t3);) {
- t8 = t3._collection$_head;
- t9 = t8 === t3._collection$_tail;
- if (t9)
- H.throwExpression(H.IterableElementError_noElement());
- t8 = t3._collection$_table[t8];
- if (t8 === "--") {
- t3.removeFirst$0();
- break;
- }
- if (t9)
- H.throwExpression(H.IterableElementError_noElement());
- command = t7._collection$_map.$index(0, t8);
- if (command != null) {
- if (t4.length !== 0)
- H.throwExpression(Z.ArgParserException$("Cannot specify arguments before a command.", null));
- commandName = t3.removeFirst$0();
- t6 = type$.JSArray_String;
- t7 = H.setRuntimeTypeInfo([], t6);
- C.JSArray_methods.addAll$1(t7, t4);
- commandParser = new G.Parser0(commandName, _this, command, t3, t7, P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
- try {
- commandResults = commandParser.parse$0();
- } catch (exception) {
- t3 = H.unwrapException(exception);
- if (t3 instanceof Z.ArgParserException) {
- error = t3;
- if (commandName == null)
- throw exception;
- t3 = error.message;
- t1 = H.setRuntimeTypeInfo([], t6);
- J.add$1$ax(t1, commandName);
- for (t4 = error.commands, t5 = t4.length, _i = 0; _i < t5; ++_i) {
- t2 = t4[_i];
- J.add$1$ax(t1, t2);
- }
- throw H.wrapException(Z.ArgParserException$(t3, t1));
- } else
- throw exception;
- }
- C.JSArray_methods.set$length(t4, 0);
- break;
- }
- if (_this.parseSoloOption$0())
- continue;
- if (_this.parseAbbreviation$1(_this))
- continue;
- if (_this.parseLongOption$0())
- continue;
- if (t6)
- break;
- t4.push(t3.removeFirst$0());
- }
- t5.options._collection$_map.forEach$1(0, new G.Parser_parse_closure(_this));
- C.JSArray_methods.addAll$1(t4, t3);
- t3.clear$0(0);
- return V.ArgResults$_(t5, _this.results, _this.commandName, commandResults, t4, $arguments);
- },
- readNextArgAsValue$1: function(option) {
- var t1 = this.args,
- t2 = t1.get$isEmpty(t1),
- t3 = 'Missing argument for "' + option.name + '".';
- if (t2)
- H.throwExpression(Z.ArgParserException$(t3, null));
- this.setOption$3(this.results, option, t1.get$first(t1));
- t1.removeFirst$0();
- },
- parseSoloOption$0: function() {
- var opt, option, t2, _this = this,
- t1 = _this.args;
- if (t1.get$first(t1).length !== 2)
- return false;
- if (!J.startsWith$1$s(t1.get$first(t1), "-"))
- return false;
- opt = t1.get$first(t1)[1];
- if (!G._isLetterOrDigit(C.JSString_methods._codeUnitAt$1(opt, 0)))
- return false;
- option = _this.grammar.findByAbbreviation$1(opt);
- if (option == null) {
- t1 = _this.parent;
- t2 = 'Could not find an option or flag "-' + opt + '".';
- if (t1 == null)
- H.throwExpression(Z.ArgParserException$(t2, null));
- return t1.parseSoloOption$0();
- }
- t1.removeFirst$0();
- if (option.type === C.OptionType_nMZ)
- _this.results.$indexSet(0, option.name, true);
- else
- _this.readNextArgAsValue$1(option);
- return true;
- },
- parseAbbreviation$1: function(innermostCommand) {
- var index, t2, t3, lettersAndDigits, rest, c, first, i, i0, _this = this,
- t1 = _this.args;
- if (t1.get$first(t1).length < 2)
- return false;
- if (!J.startsWith$1$s(t1.get$first(t1), "-"))
- return false;
- index = 1;
- while (true) {
- t2 = t1._collection$_head;
- t3 = t2 === t1._collection$_tail;
- if (t3)
- H.throwExpression(H.IterableElementError_noElement());
- t2 = t1._collection$_table[t2];
- if (index < t2.length) {
- if (t3)
- H.throwExpression(H.IterableElementError_noElement());
- t2 = J._codeUnitAt$1$s(t2, index);
- if (!(t2 >= 65 && t2 <= 90))
- if (!(t2 >= 97 && t2 <= 122))
- t2 = t2 >= 48 && t2 <= 57;
- else
- t2 = true;
- else
- t2 = true;
- } else
- t2 = false;
- if (!t2)
- break;
- ++index;
- }
- if (index === 1)
- return false;
- lettersAndDigits = J.substring$2$s(t1.get$first(t1), 1, index);
- rest = J.substring$1$s(t1.get$first(t1), index);
- if (C.JSString_methods.contains$1(rest, "\n") || C.JSString_methods.contains$1(rest, "\r"))
- return false;
- c = C.JSString_methods.substring$2(lettersAndDigits, 0, 1);
- first = _this.grammar.findByAbbreviation$1(c);
- if (first == null) {
- t1 = _this.parent;
- t2 = 'Could not find an option with short name "-' + c + '".';
- if (t1 == null)
- H.throwExpression(Z.ArgParserException$(t2, null));
- return t1.parseAbbreviation$1(innermostCommand);
- } else if (first.type !== C.OptionType_nMZ)
- _this.setOption$3(_this.results, first, C.JSString_methods.substring$1(lettersAndDigits, 1) + rest);
- else {
- t2 = 'Option "-' + c + '" is a flag and cannot handle value "' + C.JSString_methods.substring$1(lettersAndDigits, 1) + rest + '".';
- if (rest !== "")
- H.throwExpression(Z.ArgParserException$(t2, null));
- for (t2 = lettersAndDigits.length, i = 0; i < t2; i = i0) {
- i0 = i + 1;
- innermostCommand.parseShortFlag$1(C.JSString_methods.substring$2(lettersAndDigits, i, i0));
- }
- }
- t1.removeFirst$0();
- return true;
- },
- parseShortFlag$1: function(c) {
- var t1, t2,
- option = this.grammar.findByAbbreviation$1(c);
- if (option == null) {
- t1 = this.parent;
- t2 = 'Could not find an option with short name "-' + c + '".';
- if (t1 == null)
- H.throwExpression(Z.ArgParserException$(t2, null));
- t1.parseShortFlag$1(c);
- return;
- }
- t1 = option.type;
- t2 = 'Option "-' + c + '" must be a flag to be in a collapsed "-".';
- if (t1 !== C.OptionType_nMZ)
- H.throwExpression(Z.ArgParserException$(t2, null));
- this.results.$indexSet(0, option.name, true);
- },
- parseLongOption$0: function() {
- var index, t2, $name, t3, i, t4, t5, value, option, _this = this, _null = null,
- _s32_ = 'Could not find an option named "',
- t1 = _this.args;
- if (!J.startsWith$1$s(t1.get$first(t1), "--"))
- return false;
- index = J.indexOf$1$asx(t1.get$first(t1), "=");
- t2 = index === -1;
- $name = t2 ? J.substring$1$s(t1.get$first(t1), 2) : J.substring$2$s(t1.get$first(t1), 2, index);
- for (t3 = $name.length, i = 0; i !== t3; ++i) {
- t4 = C.JSString_methods._codeUnitAt$1($name, i);
- if (!(t4 >= 65 && t4 <= 90))
- if (!(t4 >= 97 && t4 <= 122))
- t5 = t4 >= 48 && t4 <= 57;
- else
- t5 = true;
- else
- t5 = true;
- if (!(t5 || t4 === 45 || t4 === 95))
- return false;
- }
- value = t2 ? _null : J.substring$1$s(t1.get$first(t1), index + 1);
- t2 = value != null;
- if (t2)
- t3 = C.JSString_methods.contains$1(value, "\n") || C.JSString_methods.contains$1(value, "\r");
- else
- t3 = false;
- if (t3)
- return false;
- t3 = _this.grammar.options._collection$_map;
- option = t3.$index(0, $name);
- if (option != null) {
- t1.removeFirst$0();
- if (option.type === C.OptionType_nMZ) {
- t1 = 'Flag option "' + $name + '" should not be given a value.';
- if (t2)
- H.throwExpression(Z.ArgParserException$(t1, _null));
- _this.results.$indexSet(0, option.name, true);
- } else if (t2)
- _this.setOption$3(_this.results, option, value);
- else
- _this.readNextArgAsValue$1(option);
- } else if (C.JSString_methods.startsWith$1($name, "no-")) {
- $name = C.JSString_methods.substring$1($name, 3);
- option = t3.$index(0, $name);
- if (option == null) {
- t1 = _this.parent;
- t2 = _s32_ + $name + '".';
- if (t1 == null)
- H.throwExpression(Z.ArgParserException$(t2, _null));
- return t1.parseLongOption$0();
- }
- t1.removeFirst$0();
- t1 = option.type;
- t2 = 'Cannot negate non-flag option "' + $name + '".';
- if (t1 !== C.OptionType_nMZ)
- H.throwExpression(Z.ArgParserException$(t2, _null));
- t1 = option.negatable;
- t2 = 'Cannot negate option "' + $name + '".';
- if (!t1)
- H.throwExpression(Z.ArgParserException$(t2, _null));
- _this.results.$indexSet(0, option.name, false);
- } else {
- t1 = _this.parent;
- t2 = _s32_ + $name + '".';
- if (t1 == null)
- H.throwExpression(Z.ArgParserException$(t2, _null));
- return t1.parseLongOption$0();
- }
- return true;
- },
- setOption$3: function(results, option, value) {
- var list, t1, t2, t3, _i, element;
- if (option.type !== C.OptionType_qyr) {
- this._validateAllowed$2(option, value);
- results.$indexSet(0, option.name, value);
- return;
- }
- list = results.putIfAbsent$2(option.name, new G.Parser_setOption_closure());
- if (option.splitCommas)
- for (t1 = value.split(","), t2 = t1.length, t3 = J.getInterceptor$ax(list), _i = 0; _i < t2; ++_i) {
- element = t1[_i];
- this._validateAllowed$2(option, element);
- t3.add$1(list, element);
- }
- else {
- this._validateAllowed$2(option, value);
- J.add$1$ax(list, value);
- }
- },
- _validateAllowed$2: function(option, value) {
- var t2,
- t1 = option.allowed;
- if (t1 == null)
- return;
- t1 = C.JSArray_methods.contains$1(t1, value);
- t2 = '"' + H.S(value) + '" is not an allowed value for option "' + option.name + '".';
- if (!t1)
- H.throwExpression(Z.ArgParserException$(t2, null));
- }
- };
- G.Parser_parse_closure.prototype = {
- call$2: function($name, option) {
- var t1 = option.callback;
- if (t1 == null)
- return;
- t1.call$1(option.getOrDefault$1(this.$this.results.$index(0, $name)));
- }
- };
- G.Parser_setOption_closure.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_String);
- },
- $signature: 32
- };
- G.Usage.prototype = {
- generate$0: function() {
- var t1, t2, t3, t4, _i, optionOrSeparator, t5, t6, allowedNames, t7, t8, _i0, $name, isDefault, t9, _this = this;
- _this.buffer = new P.StringBuffer("");
- _this.calculateColumnWidths$0();
- for (t1 = _this.optionsAndSeparators, t2 = t1.length, t3 = type$.Option, t4 = type$.List_dynamic, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- optionOrSeparator = t1[_i];
- if (typeof optionOrSeparator == "string") {
- t5 = _this.buffer;
- t6 = t5._contents;
- t5._contents = (t6.length !== 0 ? t5._contents = t6 + "\n\n" : t6) + optionOrSeparator;
- _this.newlinesNeeded = 1;
- continue;
- }
- t3._as(optionOrSeparator);
- if (optionOrSeparator.hide)
- continue;
- t5 = optionOrSeparator.abbr;
- _this.write$2(0, 0, t5 == null ? "" : "-" + t5 + ", ");
- _this.write$2(0, 1, _this.getLongOption$1(optionOrSeparator));
- t5 = optionOrSeparator.help;
- if (t5 != null)
- _this.write$2(0, 2, t5);
- t5 = optionOrSeparator.allowedHelp;
- if (t5 != null) {
- allowedNames = J.toList$1$growable$ax(t5.get$keys(), false);
- if (!!allowedNames.immutable$list)
- H.throwExpression(P.UnsupportedError$("sort"));
- t6 = allowedNames.length - 1;
- if (t6 - 0 <= 32)
- H.Sort__insertionSort(allowedNames, 0, t6, J._interceptors_JSArray__compareAny$closure());
- else
- H.Sort__dualPivotQuicksort(allowedNames, 0, t6, J._interceptors_JSArray__compareAny$closure());
- ++_this.newlinesNeeded;
- _this.numHelpLines = _this.currentColumn = 0;
- for (t6 = allowedNames.length, t7 = optionOrSeparator.defaultsTo, t8 = t4._is(t7), _i0 = 0; _i0 < allowedNames.length; allowedNames.length === t6 || (0, H.throwConcurrentModificationError)(allowedNames), ++_i0) {
- $name = allowedNames[_i0];
- isDefault = t8 ? C.JSArray_methods.contains$1(t7, $name) : t7 == null ? $name == null : t7 === $name;
- t9 = " [" + H.S($name) + "]";
- _this.write$2(0, 1, t9 + (isDefault ? " (default)" : ""));
- _this.write$2(0, 2, t5.$index(0, $name));
- }
- ++_this.newlinesNeeded;
- _this.numHelpLines = _this.currentColumn = 0;
- } else if (optionOrSeparator.allowed != null)
- _this.write$2(0, 2, _this.buildAllowedList$1(optionOrSeparator));
- else {
- t5 = optionOrSeparator.type;
- if (t5 === C.OptionType_nMZ) {
- if (optionOrSeparator.defaultsTo === true)
- _this.write$2(0, 2, "(defaults to on)");
- } else if (t5 === C.OptionType_qyr) {
- t5 = optionOrSeparator.defaultsTo;
- if (t5 != null && J.get$isNotEmpty$asx(t5))
- _this.write$2(0, 2, "(defaults to " + J.map$1$ax(t5, new G.Usage_generate_closure()).join$1(0, ", ") + ")");
- } else {
- t5 = optionOrSeparator.defaultsTo;
- if (t5 != null)
- _this.write$2(0, 2, '(defaults to "' + H.S(t5) + '")');
- }
- }
- }
- return J.toString$0$(_this.buffer);
- },
- getLongOption$1: function(option) {
- var t1 = option.name,
- result = option.negatable ? "--[no-]" + t1 : "--" + t1;
- t1 = option.valueHelp;
- return t1 != null ? result + ("=<" + t1 + ">") : result;
- },
- calculateColumnWidths$0: function() {
- var t1, t2, t3, abbr, title, _i, option, t4, t5, t6, allowed, isDefault, t7;
- for (t1 = this.optionsAndSeparators, t2 = t1.length, t3 = type$.List_dynamic, abbr = 0, title = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- option = t1[_i];
- if (!(option instanceof G.Option))
- continue;
- if (option.hide)
- continue;
- t4 = option.abbr;
- abbr = Math.max(abbr, (t4 == null ? "" : "-" + t4 + ", ").length);
- title = Math.max(title, this.getLongOption$1(option).length);
- t4 = option.allowedHelp;
- if (t4 != null)
- for (t4 = J.get$iterator$ax(t4.get$keys()), t5 = option.defaultsTo, t6 = t3._is(t5); t4.moveNext$0();) {
- allowed = t4.get$current(t4);
- isDefault = t6 ? C.JSArray_methods.contains$1(t5, allowed) : t5 == null ? allowed == null : t5 === allowed;
- t7 = " [" + H.S(allowed) + "]";
- title = Math.max(title, (t7 + (isDefault ? " (default)" : "")).length);
- }
- }
- this.columnWidths = H.setRuntimeTypeInfo([abbr, title + 4], type$.JSArray_int);
- },
- write$2: function(_, column, text) {
- var t1, _i,
- lines = H.setRuntimeTypeInfo(text.split("\n"), type$.JSArray_String);
- this.columnWidths.length;
- while (true) {
- if (!(lines.length !== 0 && J.trim$0$s(lines[0]) === ""))
- break;
- if (!!lines.fixed$length)
- H.throwExpression(P.UnsupportedError$("removeRange"));
- P.RangeError_checkValidRange(0, 1, lines.length);
- lines.splice(0, 1);
- }
- while (true) {
- t1 = lines.length;
- if (!(t1 !== 0 && J.trim$0$s(lines[t1 - 1]) === ""))
- break;
- lines.pop();
- }
- for (t1 = lines.length, _i = 0; _i < lines.length; lines.length === t1 || (0, H.throwConcurrentModificationError)(lines), ++_i)
- this.writeLine$2(column, lines[_i]);
- },
- writeLine$2: function(column, text) {
- var t1, t2, _this = this;
- for (; t1 = _this.newlinesNeeded, t1 > 0;) {
- _this.buffer._contents += "\n";
- _this.newlinesNeeded = t1 - 1;
- }
- for (; t1 = _this.currentColumn, t1 !== column;) {
- t2 = _this.buffer;
- if (t1 < 2)
- t2._contents += C.JSString_methods.$mul(" ", _this.columnWidths[t1]);
- else
- t2._contents += "\n";
- _this.currentColumn = (_this.currentColumn + 1) % 3;
- }
- t1 = _this.columnWidths;
- t1.length;
- t2 = _this.buffer;
- if (column < 2)
- t2._contents += J.padRight$1$s(text, t1[column]);
- else {
- t2.toString;
- t2._contents += H.S(text);
- }
- _this.currentColumn = (_this.currentColumn + 1) % 3;
- t1 = column === 2;
- if (t1)
- ++_this.newlinesNeeded;
- if (t1)
- ++_this.numHelpLines;
- else
- _this.numHelpLines = 0;
- },
- buildAllowedList$1: function(option) {
- var t2, first, _i, t3, allowed,
- t1 = option.defaultsTo,
- isDefault = type$.List_dynamic._is(t1) ? C.JSArray_methods.get$contains(t1) : new G.Usage_buildAllowedList_closure(option);
- for (t1 = option.allowed, t2 = t1.length, first = true, _i = 0, t3 = "["; _i < t2; ++_i, first = false) {
- allowed = t1[_i];
- if (!first)
- t3 += ", ";
- t3 += H.S(allowed);
- if (isDefault.call$1(allowed))
- t3 += " (default)";
- }
- t1 = t3 + "]";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- G.Usage_generate_closure.prototype = {
- call$1: function(value) {
- return '"' + H.S(value) + '"';
- },
- $signature: 105
- };
- G.Usage_buildAllowedList_closure.prototype = {
- call$1: function(value) {
- var t1 = this.option.defaultsTo;
- return value == null ? t1 == null : value === t1;
- },
- $signature: 53
- };
- V.ErrorResult.prototype = {
- complete$1: function(completer) {
- completer.completeError$2(this.error, this.stackTrace);
- },
- get$hashCode: function(_) {
- return (J.get$hashCode$(this.error) ^ J.get$hashCode$(this.stackTrace) ^ 492929599) >>> 0;
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof V.ErrorResult && J.$eq$(this.error, other.error) && this.stackTrace == other.stackTrace;
- },
- $isResult: 1
- };
- E.Result.prototype = {};
- F.ValueResult.prototype = {
- complete$1: function(completer) {
- completer.complete$1(this.value);
- },
- get$hashCode: function(_) {
- return (J.get$hashCode$(this.value) ^ 842997089) >>> 0;
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof F.ValueResult && J.$eq$(this.value, other.value);
- },
- $isResult: 1
- };
- Y.StreamCompleter.prototype = {
- setSourceStream$1: function(sourceStream) {
- var t1 = this._stream_completer$_stream;
- if (t1._sourceStream != null)
- throw H.wrapException(P.StateError$("Source stream already set"));
- t1._sourceStream = sourceStream;
- if (t1._stream_completer$_controller != null)
- t1._linkStreamToController$0();
- },
- setError$2: function(error, stackTrace) {
- var t1 = this.$ti._precomputed1;
- this.setSourceStream$1(P.Stream_Stream$fromFuture(P.Future_Future$error(error, stackTrace, t1), t1));
- },
- setError$1: function(error) {
- return this.setError$2(error, null);
- }
- };
- Y._CompleterStream.prototype = {
- listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
- var t1, _this = this, _null = null;
- if (_this._stream_completer$_controller == null) {
- t1 = _this._sourceStream;
- if (t1 != null && !t1.get$isBroadcast())
- return _this._sourceStream.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError);
- _this._stream_completer$_controller = P.StreamController_StreamController(_null, _null, _null, _null, true, _this.$ti._precomputed1);
- if (_this._sourceStream != null)
- _this._linkStreamToController$0();
- }
- t1 = _this._stream_completer$_controller;
- t1.toString;
- return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDone, onError);
- },
- listen$3$onDone$onError: function(onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onError);
- },
- listen$1: function(onData) {
- return this.listen$4$cancelOnError$onDone$onError(onData, null, null, null);
- },
- _linkStreamToController$0: function() {
- var t1 = this._stream_completer$_controller.addStream$2$cancelOnError(this._sourceStream, false),
- t2 = this._stream_completer$_controller;
- t1.whenComplete$1(t2.get$close(t2));
- }
- };
- L.StreamGroup.prototype = {
- add$1: function(_, stream) {
- var t1, _this = this;
- if (_this._closed)
- throw H.wrapException(P.StateError$("Can't add a Stream to a closed StreamGroup."));
- t1 = _this._stream_group$_state;
- if (t1 === C._StreamGroupState_dormant)
- _this._subscriptions.putIfAbsent$2(stream, new L.StreamGroup_add_closure());
- else if (t1 === C._StreamGroupState_canceled)
- return stream.listen$1(null).cancel$0();
- else
- _this._subscriptions.putIfAbsent$2(stream, new L.StreamGroup_add_closure0(_this, stream));
- return null;
- },
- remove$1: function(_, stream) {
- var t1 = this._subscriptions,
- subscription = t1.remove$1(0, stream),
- future = subscription == null ? null : subscription.cancel$0();
- if (this._closed && t1.get$isEmpty(t1))
- this._controller.close$0(0);
- return future;
- },
- _onListen$0: function() {
- this._stream_group$_state = C._StreamGroupState_listening;
- this._subscriptions.forEach$1(0, new L.StreamGroup__onListen_closure(this));
- },
- _onPause$0: function() {
- this._stream_group$_state = C._StreamGroupState_paused;
- for (var t1 = this._subscriptions.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
- t1.get$current(t1).pause$0(0);
- },
- _onResume$0: function() {
- this._stream_group$_state = C._StreamGroupState_listening;
- for (var t1 = this._subscriptions.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
- t1.get$current(t1).resume$0();
- },
- _onCancel$0: function() {
- var t1, t2, t3, futures;
- this._stream_group$_state = C._StreamGroupState_canceled;
- t1 = this._subscriptions;
- t2 = t1.get$values();
- t2 = H.MappedIterable_MappedIterable(t2, new L.StreamGroup__onCancel_closure(), H._instanceType(t2)._eval$1("Iterable.E"), type$.Future_void);
- t3 = H._instanceType(t2)._eval$1("WhereIterable<Iterable.E>");
- futures = P.List_List$from(new H.WhereIterable(t2, new L.StreamGroup__onCancel_closure0(), t3), true, t3._eval$1("Iterable.E"));
- t1.clear$0(0);
- return futures.length === 0 ? null : P.Future_wait(futures, type$.void);
- },
- _listenToStream$1: function(stream) {
- var t1 = this._controller,
- subscription = stream.listen$3$onDone$onError(t1.get$add(t1), new L.StreamGroup__listenToStream_closure(this, stream), t1.get$addError());
- if (this._stream_group$_state === C._StreamGroupState_paused)
- subscription.pause$0(0);
- return subscription;
- }
- };
- L.StreamGroup_add_closure.prototype = {
- call$0: function() {
- return null;
- },
- $signature: 0
- };
- L.StreamGroup_add_closure0.prototype = {
- call$0: function() {
- return this.$this._listenToStream$1(this.stream);
- },
- $signature: function() {
- return this.$this.$ti._eval$1("StreamSubscription<1>()");
- }
- };
- L.StreamGroup__onListen_closure.prototype = {
- call$2: function(stream, subscription) {
- var t1;
- if (subscription != null)
- return;
- t1 = this.$this;
- t1._subscriptions.$indexSet(0, stream, t1._listenToStream$1(stream));
- }
- };
- L.StreamGroup__onCancel_closure.prototype = {
- call$1: function(subscription) {
- return subscription.cancel$0();
- }
- };
- L.StreamGroup__onCancel_closure0.prototype = {
- call$1: function(future) {
- return future != null;
- }
- };
- L.StreamGroup__listenToStream_closure.prototype = {
- call$0: function() {
- return this.$this.remove$1(0, this.stream);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 61
- };
- L._StreamGroupState.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- G.StreamQueue.prototype = {
- get$next: function() {
- var t1 = this.$ti,
- t2 = new P._Future($.Zone__current, t1._eval$1("_Future<1>"));
- this._addRequest$1(new G._NextRequest(new P._AsyncCompleter(t2, t1._eval$1("_AsyncCompleter<1>")), t1._eval$1("_NextRequest<1>")));
- return t2;
- },
- _updateRequests$0: function() {
- var t1, t2, t3, _this = this;
- for (t1 = _this._requestQueue, t2 = _this._eventQueue; !t1.get$isEmpty(t1);) {
- t3 = t1._collection$_head;
- if (t3 === t1._collection$_tail)
- H.throwExpression(H.IterableElementError_noElement());
- if (t1._collection$_table[t3].update$2(t2, _this._isDone))
- t1.removeFirst$0();
- else
- return;
- }
- if (!_this._isDone)
- _this._stream_queue$_subscription.pause$0(0);
- },
- _ensureListening$0: function() {
- var t1, _this = this;
- if (_this._isDone)
- return;
- t1 = _this._stream_queue$_subscription;
- if (t1 == null)
- _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));
- else
- t1.resume$0();
- },
- _addResult$1: function(result) {
- ++this._eventsReceived;
- this._eventQueue._queue_list$_add$1(result);
- this._updateRequests$0();
- },
- _addRequest$1: function(request) {
- var _this = this,
- t1 = _this._requestQueue;
- if (t1._collection$_head === t1._collection$_tail) {
- if (request.update$2(_this._eventQueue, _this._isDone))
- return;
- _this._ensureListening$0();
- }
- t1._add$1(request);
- }
- };
- G.StreamQueue__ensureListening_closure.prototype = {
- call$1: function(data) {
- var t1 = this.$this;
- t1._addResult$1(new F.ValueResult(data, t1.$ti._eval$1("ValueResult<1>")));
- },
- $signature: function() {
- return this.$this.$ti._eval$1("Null(1)");
- }
- };
- G.StreamQueue__ensureListening_closure1.prototype = {
- call$2: function(error, stackTrace) {
- this.$this._addResult$1(new V.ErrorResult(error, stackTrace));
- },
- "call*": "call$2",
- $requiredArgCount: 2,
- $signature: 58
- };
- G.StreamQueue__ensureListening_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._stream_queue$_subscription = null;
- t1._isDone = true;
- t1._updateRequests$0();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- G._EventRequest.prototype = {};
- G._NextRequest.prototype = {
- update$2: function(events, isDone) {
- if (!events.get$isEmpty(events)) {
- events.removeFirst$0().complete$1(this._completer);
- return true;
- }
- if (isDone) {
- this._completer.completeError$2(new P.StateError("No elements"), P.StackTrace_current());
- return true;
- }
- return false;
- },
- $is_EventRequest: 1
- };
- Q.Repl.prototype = {};
- Q.closure106.prototype = {
- call$1: function(text) {
- return true;
- }
- };
- B.ReplAdapter.prototype = {
- runAsync$0: function() {
- var $async$runAsync$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- switch ($async$errorCode) {
- case 2:
- $async$next = $async$nextWhenCanceled;
- $async$goto = $async$next.pop();
- break;
- case 1:
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.get$isTTY$x(self.process.stdin);
- output = (t1 == null ? false : t1) ? self.process.stdout : null;
- t1 = $async$self.repl;
- $prompt = t1.prompt;
- $async$self.rl = J.createInterface$1$x($.$get$readline(), {input: self.process.stdin, output: output, prompt: $prompt});
- controller = P.StreamController_StreamController(null, null, null, null, false, type$.String);
- queue = new G.StreamQueue(new P._ControllerStream(controller, H._instanceType(controller)._eval$1("_ControllerStream<1>")), Q.QueueList$(null, type$.Result_String), P.ListQueue$(type$._EventRequest_dynamic), type$.StreamQueue_String);
- J.on$2$x($async$self.rl, "line", P.allowInterop(new B.ReplAdapter_runAsync_closure(controller)));
- prompt0 = t1.continuation, prompt1 = $prompt, statement = "";
- case 3:
- // for condition
- // trivial condition
- t2 = J.get$isTTY$x(self.process.stdin);
- if (t2 == null ? false : t2)
- J.write$1$x(self.process.stdout, prompt1);
- $async$goto = 5;
- return P._asyncStarHelper(queue.get$next(), $async$runAsync$0, $async$controller);
- case 5:
- // returning from await.
- line = $async$result;
- t2 = J.get$isTTY$x(self.process.stdin);
- if (!(t2 == null ? false : t2)) {
- line0 = prompt1 + H.S(line);
- t2 = $.printToZone;
- if (t2 == null)
- H.printString(line0);
- else
- t2.call$1(line0);
- }
- statement = C.JSString_methods.$add(statement, line);
- $async$goto = t1.validator.call$1(statement) ? 6 : 8;
- break;
- case 6:
- // then
- $async$goto = 9;
- $async$nextWhenCanceled = [1];
- return P._asyncStarHelper(P._IterationMarker_yieldSingle(statement), $async$runAsync$0, $async$controller);
- case 9:
- // after yield
- J.setPrompt$1$x($async$self.rl, $prompt);
- prompt1 = $prompt;
- statement = "";
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- statement += "\n";
- J.setPrompt$1$x($async$self.rl, prompt0);
- prompt1 = prompt0;
- case 7:
- // join
- // goto for condition
- $async$goto = 3;
- break;
- case 4:
- // after for
- case 1:
- // return
- return P._asyncStarHelper(null, 0, $async$controller);
- case 2:
- // rethrow
- return P._asyncStarHelper($async$currentError, 1, $async$controller);
- }
- });
- var $async$goto = 0,
- $async$controller = P._makeAsyncStarStreamController($async$runAsync$0, type$.String),
- $async$nextWhenCanceled, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $prompt, controller, queue, prompt0, prompt1, statement, t2, line, line0, t1, output;
- return P._streamOfController($async$controller);
- }
- };
- B.ReplAdapter_runAsync_closure.prototype = {
- call$1: function(value) {
- this.controller.add$1(0, value);
- },
- call$0: function() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues: function() {
- return [null];
- },
- $signature: 51
- };
- B.Stdin.prototype = {};
- B.Stdout.prototype = {};
- B.ReadlineModule.prototype = {};
- B.ReadlineOptions.prototype = {};
- B.ReadlineInterface.prototype = {};
- O.EmptyUnmodifiableSet.prototype = {
- get$iterator: function(_) {
- return C.C_EmptyIterator;
- },
- get$length: function(_) {
- return 0;
- },
- cast$1$0: function(_, $T) {
- return new O.EmptyUnmodifiableSet($T._eval$1("EmptyUnmodifiableSet<0>"));
- },
- contains$1: function(_, element) {
- return false;
- },
- toSet$0: function(_) {
- return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
- },
- add$1: function(_, value) {
- return O.EmptyUnmodifiableSet__throw();
- },
- addAll$1: function(_, elements) {
- return O.EmptyUnmodifiableSet__throw();
- },
- $isEfficientLengthIterable: 1,
- $isSet: 1
- };
- U.DefaultEquality.prototype = {};
- U.IterableEquality.prototype = {
- equals$2: function(elements1, elements2) {
- var it1, it2, hasNext;
- if (elements1 === elements2)
- return true;
- it1 = J.get$iterator$ax(elements1);
- it2 = J.get$iterator$ax(elements2);
- for (; true;) {
- hasNext = it1.moveNext$0();
- if (hasNext !== it2.moveNext$0())
- return false;
- if (!hasNext)
- return true;
- if (!J.$eq$(it1.get$current(it1), it2.get$current(it2)))
- return false;
- }
- }
- };
- U.ListEquality.prototype = {
- equals$2: function(list1, list2) {
- var t1, $length, t2, i;
- if (list1 == null ? list2 == null : list1 === list2)
- return true;
- if (list1 == null || list2 == null)
- return false;
- t1 = J.getInterceptor$asx(list1);
- $length = t1.get$length(list1);
- t2 = J.getInterceptor$asx(list2);
- if ($length !== t2.get$length(list2))
- return false;
- for (i = 0; i < $length; ++i)
- if (!J.$eq$(t1.$index(list1, i), t2.$index(list2, i)))
- return false;
- return true;
- },
- hash$1: function(list) {
- var t1, hash, i;
- for (t1 = list.length, hash = 0, i = 0; i < t1; ++i) {
- hash = hash + J.get$hashCode$(list[i]) & 2147483647;
- hash = hash + (hash << 10 >>> 0) & 2147483647;
- hash ^= hash >>> 6;
- }
- hash = hash + (hash << 3 >>> 0) & 2147483647;
- hash ^= hash >>> 11;
- return hash + (hash << 15 >>> 0) & 2147483647;
- }
- };
- U._MapEntry.prototype = {
- get$hashCode: function(_) {
- return 3 * J.get$hashCode$(this.key) + 7 * J.get$hashCode$(this.value) & 2147483647;
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof U._MapEntry && J.$eq$(this.key, other.key) && J.$eq$(this.value, other.value);
- }
- };
- U.MapEquality.prototype = {
- equals$2: function(map1, map2) {
- var equalElementCounts, t1, key, entry, count;
- if (map1 === map2)
- return true;
- if (map1.get$length(map1) !== map2.get$length(map2))
- return false;
- equalElementCounts = P.HashMap_HashMap(type$._MapEntry, type$.int);
- for (t1 = J.get$iterator$ax(map1.get$keys()); t1.moveNext$0();) {
- key = t1.get$current(t1);
- entry = new U._MapEntry(this, key, map1.$index(0, key));
- count = equalElementCounts.$index(0, entry);
- equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1);
- }
- for (t1 = J.get$iterator$ax(map2.get$keys()); t1.moveNext$0();) {
- key = t1.get$current(t1);
- entry = new U._MapEntry(this, key, map2.$index(0, key));
- count = equalElementCounts.$index(0, entry);
- if (count == null || count === 0)
- return false;
- equalElementCounts.$indexSet(0, entry, count - 1);
- }
- return true;
- },
- hash$1: function(map) {
- var t1, hash, key;
- for (t1 = J.get$iterator$ax(map.get$keys()), hash = 0; t1.moveNext$0();) {
- key = t1.get$current(t1);
- hash = hash + 3 * J.get$hashCode$(key) + 7 * J.get$hashCode$(map.$index(0, key)) & 2147483647;
- }
- hash = hash + (hash << 3 >>> 0) & 2147483647;
- hash ^= hash >>> 11;
- return hash + (hash << 15 >>> 0) & 2147483647;
- }
- };
- Y.mapMap_closure.prototype = {
- call$2: function(mapKey, _) {
- return this.K2._as(mapKey);
- },
- $signature: function() {
- return this.K2._eval$1("@<0>")._bind$1(this.K1)._bind$1(this.V1)._eval$1("1(2,3)");
- }
- };
- Y.mapMap_closure0.prototype = {
- call$2: function(_, mapValue) {
- return this.V2._as(mapValue);
- },
- $signature: function() {
- return this.V2._eval$1("@<0>")._bind$1(this.K1)._bind$1(this.V1)._eval$1("1(2,3)");
- }
- };
- Y.mapMap_closure1.prototype = {
- call$2: function(mapKey, mapValue) {
- var t1 = this._box_0;
- this.result.$indexSet(0, t1.key.call$2(mapKey, mapValue), t1.value.call$2(mapKey, mapValue));
- },
- $signature: function() {
- return this.K1._eval$1("@<0>")._bind$1(this.V1)._eval$1("Null(1,2)");
- }
- };
- Y.groupBy_closure.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], this.S._eval$1("JSArray<0>"));
- },
- $signature: function() {
- return this.S._eval$1("List<0>()");
- }
- };
- Q.QueueList.prototype = {
- QueueList$1: function(initialCapacity, $E) {
- var t1;
- if (initialCapacity == null || initialCapacity < 8)
- initialCapacity = 8;
- else if ((initialCapacity & initialCapacity - 1) >>> 0 !== 0)
- initialCapacity = Q.QueueList__nextPowerOf2(initialCapacity);
- t1 = new Array(initialCapacity);
- t1.fixed$length = Array;
- this._table = H.setRuntimeTypeInfo(t1, $E._eval$1("JSArray<0>"));
- },
- add$1: function(_, element) {
- this._queue_list$_add$1(element);
- },
- addAll$1: function(_, iterable) {
- var addCount, $length, t1, endSpace, preSpace, _this = this;
- if (type$.List_dynamic._is(iterable)) {
- addCount = J.get$length$asx(iterable);
- $length = _this.get$length(_this);
- t1 = $length + addCount;
- if (t1 >= J.get$length$asx(_this._table)) {
- _this._preGrow$1(t1);
- J.setRange$4$ax(_this._table, $length, t1, iterable, 0);
- _this.set$_tail(_this.get$_tail() + addCount);
- } else {
- endSpace = J.get$length$asx(_this._table) - _this.get$_tail();
- t1 = _this._table;
- if (addCount < endSpace) {
- J.setRange$4$ax(t1, _this.get$_tail(), _this.get$_tail() + addCount, iterable, 0);
- _this.set$_tail(_this.get$_tail() + addCount);
- } else {
- preSpace = addCount - endSpace;
- J.setRange$4$ax(t1, _this.get$_tail(), _this.get$_tail() + endSpace, iterable, 0);
- J.setRange$4$ax(_this._table, 0, preSpace, iterable, endSpace);
- _this.set$_tail(preSpace);
- }
- }
- } else
- for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0();)
- _this._queue_list$_add$1(t1.get$current(t1));
- },
- cast$1$0: function(_, $T) {
- var t1 = new Q._CastQueueList(this, null, null, H._instanceType(this)._eval$1("@<QueueList.E>")._bind$1($T)._eval$1("_CastQueueList<1,2>"));
- t1._table = J.cast$1$0$ax(this._table, $T);
- return t1;
- },
- toString$0: function(_) {
- return P.IterableBase_iterableToFullString(this, "{", "}");
- },
- addFirst$1: function(element) {
- var _this = this;
- _this.set$_head((_this.get$_head() - 1 & J.get$length$asx(_this._table) - 1) >>> 0);
- J.$indexSet$ax(_this._table, _this.get$_head(), element);
- if (_this.get$_head() == _this.get$_tail())
- _this._grow$0();
- },
- removeFirst$0: function() {
- var result, _this = this;
- if (_this.get$_head() == _this.get$_tail())
- throw H.wrapException(P.StateError$("No element"));
- result = J.$index$asx(_this._table, _this.get$_head());
- J.$indexSet$ax(_this._table, _this.get$_head(), null);
- _this.set$_head((_this.get$_head() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
- return result;
- },
- get$length: function(_) {
- return (this.get$_tail() - this.get$_head() & J.get$length$asx(this._table) - 1) >>> 0;
- },
- set$length: function(_, value) {
- var delta, newTail, t1, t2, _this = this;
- if (value < 0)
- throw H.wrapException(P.RangeError$("Length " + value + " may not be negative."));
- delta = value - _this.get$length(_this);
- if (delta >= 0) {
- if (J.get$length$asx(_this._table) <= value)
- _this._preGrow$1(value);
- _this.set$_tail((_this.get$_tail() + delta & J.get$length$asx(_this._table) - 1) >>> 0);
- return;
- }
- newTail = _this.get$_tail() + delta;
- t1 = _this._table;
- if (newTail >= 0)
- J.fillRange$3$ax(t1, newTail, _this.get$_tail(), null);
- else {
- newTail += J.get$length$asx(t1);
- J.fillRange$3$ax(_this._table, 0, _this.get$_tail(), null);
- t1 = _this._table;
- t2 = J.getInterceptor$asx(t1);
- t2.fillRange$3(t1, newTail, t2.get$length(t1), null);
- }
- _this.set$_tail(newTail);
- },
- $index: function(_, index) {
- var _this = this;
- if (index < 0 || index >= _this.get$length(_this))
- throw H.wrapException(P.RangeError$("Index " + H.S(index) + " must be in the range [0.." + _this.get$length(_this) + ")."));
- return J.$index$asx(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0);
- },
- $indexSet: function(_, index, value) {
- var _this = this;
- if (index < 0 || index >= _this.get$length(_this))
- throw H.wrapException(P.RangeError$("Index " + H.S(index) + " must be in the range [0.." + _this.get$length(_this) + ")."));
- J.$indexSet$ax(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0, value);
- },
- _queue_list$_add$1: function(element) {
- var _this = this;
- J.$indexSet$ax(_this._table, _this.get$_tail(), element);
- _this.set$_tail((_this.get$_tail() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
- if (_this.get$_head() == _this.get$_tail())
- _this._grow$0();
- },
- _grow$0: function() {
- var newTable, split, _this = this,
- t1 = new Array(J.get$length$asx(_this._table) * 2);
- t1.fixed$length = Array;
- newTable = H.setRuntimeTypeInfo(t1, H._instanceType(_this)._eval$1("JSArray<QueueList.E>"));
- split = J.get$length$asx(_this._table) - _this.get$_head();
- C.JSArray_methods.setRange$4(newTable, 0, split, _this._table, _this.get$_head());
- C.JSArray_methods.setRange$4(newTable, split, split + _this.get$_head(), _this._table, 0);
- _this.set$_head(0);
- _this.set$_tail(J.get$length$asx(_this._table));
- _this._table = newTable;
- },
- _writeToList$1: function(target) {
- var $length, firstPartSize, _this = this;
- if (_this.get$_head() <= _this.get$_tail()) {
- $length = _this.get$_tail() - _this.get$_head();
- C.JSArray_methods.setRange$4(target, 0, $length, _this._table, _this.get$_head());
- return $length;
- } else {
- firstPartSize = J.get$length$asx(_this._table) - _this.get$_head();
- C.JSArray_methods.setRange$4(target, 0, firstPartSize, _this._table, _this.get$_head());
- C.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this.get$_tail(), _this._table, 0);
- return _this.get$_tail() + firstPartSize;
- }
- },
- _preGrow$1: function(newElementCount) {
- var newTable, _this = this,
- t1 = new Array(Q.QueueList__nextPowerOf2(newElementCount + C.JSInt_methods._shrOtherPositive$1(newElementCount, 1)));
- t1.fixed$length = Array;
- newTable = H.setRuntimeTypeInfo(t1, H._instanceType(_this)._eval$1("JSArray<QueueList.E>"));
- _this.set$_tail(_this._writeToList$1(newTable));
- _this._table = newTable;
- _this.set$_head(0);
- },
- $isEfficientLengthIterable: 1,
- $isQueue: 1,
- $isIterable: 1,
- $isList: 1,
- get$_head: function() {
- return this._head;
- },
- get$_tail: function() {
- return this._tail;
- },
- set$_head: function(val) {
- return this._head = val;
- },
- set$_tail: function(val) {
- return this._tail = val;
- }
- };
- Q._CastQueueList.prototype = {
- get$_head: function() {
- return this._queue_list$_delegate.get$_head();
- },
- set$_head: function(value) {
- this._queue_list$_delegate.set$_head(value);
- },
- get$_tail: function() {
- return this._queue_list$_delegate.get$_tail();
- },
- set$_tail: function(value) {
- this._queue_list$_delegate.set$_tail(value);
- }
- };
- Q._QueueList_Object_ListMixin.prototype = {};
- L.UnmodifiableSetView.prototype = {};
- L.UnmodifiableSetMixin.prototype = {
- add$1: function(_, value) {
- return L.UnmodifiableSetMixin__throw();
- },
- addAll$1: function(_, elements) {
- return L.UnmodifiableSetMixin__throw();
- }
- };
- L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin.prototype = {};
- B.defaultCompare_closure.prototype = {
- call$2: function(value1, value2) {
- return J.compareTo$1$ns(type$.Comparable_dynamic._as(value1), value2);
- },
- $signature: function() {
- return this.T._eval$1("int(0,0)");
- }
- };
- M._DelegatingIterableBase.prototype = {
- cast$1$0: function(_, $T) {
- return J.cast$1$0$ax(this.get$_base(), $T);
- },
- contains$1: function(_, element) {
- return J.contains$1$asx(this.get$_base(), element);
- },
- elementAt$1: function(_, index) {
- return J.elementAt$1$ax(this.get$_base(), index);
- },
- get$first: function(_) {
- return J.get$first$ax(this.get$_base());
- },
- get$isEmpty: function(_) {
- return J.get$isEmpty$asx(this.get$_base());
- },
- get$isNotEmpty: function(_) {
- return J.get$isNotEmpty$asx(this.get$_base());
- },
- get$iterator: function(_) {
- return J.get$iterator$ax(this.get$_base());
- },
- join$1: function(_, separator) {
- return J.join$1$ax(this.get$_base(), separator);
- },
- join$0: function($receiver) {
- return this.join$1($receiver, "");
- },
- get$last: function(_) {
- return J.get$last$ax(this.get$_base());
- },
- get$length: function(_) {
- return J.get$length$asx(this.get$_base());
- },
- map$1$1: function(_, f, $T) {
- return J.map$1$1$ax(this.get$_base(), f, $T);
- },
- get$single: function(_) {
- return J.get$single$ax(this.get$_base());
- },
- skip$1: function(_, n) {
- return J.skip$1$ax(this.get$_base(), n);
- },
- take$1: function(_, n) {
- return J.take$1$ax(this.get$_base(), n);
- },
- toList$1$growable: function(_, growable) {
- return J.toList$1$growable$ax(this.get$_base(), growable);
- },
- toList$0: function($receiver) {
- return this.toList$1$growable($receiver, true);
- },
- toSet$0: function(_) {
- return J.toSet$0$ax(this.get$_base());
- },
- where$1: function(_, test) {
- return J.where$1$ax(this.get$_base(), test);
- },
- toString$0: function(_) {
- return J.toString$0$(this.get$_base());
- },
- $isIterable: 1
- };
- M.DelegatingIterable.prototype = {
- get$_base: function() {
- return this._base;
- }
- };
- M.DelegatingSet.prototype = {
- add$1: function(_, value) {
- return this._base.add$1(0, value);
- },
- addAll$1: function(_, elements) {
- this._base.addAll$1(0, elements);
- },
- cast$1$0: function(_, $T) {
- var t1 = this._base;
- return P.Set_castFrom(t1, t1.get$_newSimilarSet(), H._instanceType(t1)._precomputed1, $T);
- },
- toSet$0: function(_) {
- return new M.DelegatingSet(this._base.toSet$0(0), H._instanceType(this)._eval$1("DelegatingSet<1>"));
- },
- $isEfficientLengthIterable: 1,
- $isSet: 1
- };
- M.MapKeySet.prototype = {
- get$_base: function() {
- return this._baseMap.get$keys();
- },
- cast$1$0: function(_, $T) {
- var _this = this,
- t1 = $T._eval$1("MapKeySet<0>");
- if (t1._is(_this))
- return t1._as(_this);
- return P.Set_castFrom(_this, null, _this.$ti._precomputed1, $T);
- },
- contains$1: function(_, element) {
- return this._baseMap.containsKey$1(element);
- },
- get$isEmpty: function(_) {
- var t1 = this._baseMap;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty: function(_) {
- var t1 = this._baseMap;
- return t1.get$isNotEmpty(t1);
- },
- get$length: function(_) {
- var t1 = this._baseMap;
- return t1.get$length(t1);
- },
- toString$0: function(_) {
- return "{" + J.join$1$ax(this._baseMap.get$keys(), ", ") + "}";
- },
- $isEfficientLengthIterable: 1,
- $isSet: 1
- };
- M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin.prototype = {};
- M.Context.prototype = {
- absolute$7: function(part1, part2, part3, part4, part5, part6, part7) {
- var t1;
- M._validateArgList("absolute", H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7], type$.JSArray_String));
- t1 = this.style;
- t1 = t1.rootLength$1(part1) > 0 && !t1.isRootRelative$1(part1);
- if (t1)
- return part1;
- t1 = this._context$_current;
- return this.join$8(0, t1 == null ? D.current() : t1, part1, part2, part3, part4, part5, part6, part7);
- },
- absolute$1: function(part1) {
- return this.absolute$7(part1, null, null, null, null, null, null);
- },
- dirname$1: function(path) {
- var t1, t2,
- parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
- parsed.removeTrailingSeparators$0();
- t1 = parsed.parts;
- t2 = t1.length;
- if (t2 === 0) {
- t1 = parsed.root;
- return t1 == null ? "." : t1;
- }
- if (t2 === 1) {
- t1 = parsed.root;
- return t1 == null ? "." : t1;
- }
- C.JSArray_methods.removeLast$0(t1);
- C.JSArray_methods.removeLast$0(parsed.separators);
- parsed.removeTrailingSeparators$0();
- return parsed.toString$0(0);
- },
- join$8: function(_, part1, part2, part3, part4, part5, part6, part7, part8) {
- var parts = H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7, part8], type$.JSArray_String);
- M._validateArgList("join", parts);
- return this.joinAll$1(new H.WhereIterable(parts, new M.Context_join_closure(), type$.WhereIterable_String));
- },
- join$2: function($receiver, part1, part2) {
- return this.join$8($receiver, part1, part2, null, null, null, null, null, null);
- },
- joinAll$1: function(parts) {
- var t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, t4, t5, parsed, path;
- 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();) {
- t5 = t1.get$current(t1);
- if (t3.isRootRelative$1(t5) && isAbsoluteAndNotRootRelative) {
- parsed = X.ParsedPath_ParsedPath$parse(t5, t3);
- path = t4.charCodeAt(0) == 0 ? t4 : t4;
- t4 = C.JSString_methods.substring$2(path, 0, t3.rootLength$2$withDrive(path, true));
- parsed.root = t4;
- if (t3.needsSeparator$1(t4))
- parsed.separators[0] = t3.get$separator();
- t4 = parsed.toString$0(0);
- } else if (t3.rootLength$1(t5) > 0) {
- isAbsoluteAndNotRootRelative = !t3.isRootRelative$1(t5);
- t4 = H.S(t5);
- } else {
- if (!(t5.length !== 0 && t3.containsSeparator$1(t5[0])))
- if (needsSeparator)
- t4 += t3.get$separator();
- t4 += t5;
- }
- needsSeparator = t3.needsSeparator$1(t5);
- }
- return t4.charCodeAt(0) == 0 ? t4 : t4;
- },
- split$1: function(_, path) {
- var parsed = X.ParsedPath_ParsedPath$parse(path, this.style),
- t1 = parsed.parts,
- t2 = H._arrayInstanceType(t1)._eval$1("WhereIterable<1>");
- t2 = P.List_List$from(new H.WhereIterable(t1, new M.Context_split_closure(), t2), true, t2._eval$1("Iterable.E"));
- parsed.parts = t2;
- t1 = parsed.root;
- if (t1 != null)
- C.JSArray_methods.insert$2(t2, 0, t1);
- return parsed.parts;
- },
- canonicalize$1: function(path) {
- var t1, parsed;
- path = this.absolute$1(path);
- t1 = this.style;
- if (t1 != $.$get$Style_windows() && !this._needsNormalization$1(path))
- return path;
- parsed = X.ParsedPath_ParsedPath$parse(path, t1);
- parsed.normalize$1$canonicalize(true);
- return parsed.toString$0(0);
- },
- normalize$1: function(path) {
- var parsed;
- if (!this._needsNormalization$1(path))
- return path;
- parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
- parsed.normalize$0();
- return parsed.toString$0(0);
- },
- _needsNormalization$1: function(path) {
- var t1, root, i, start, previous, t2, t3, previousPrevious, codeUnit, t4;
- path.toString;
- t1 = this.style;
- root = t1.rootLength$1(path);
- if (root !== 0) {
- if (t1 === $.$get$Style_windows())
- for (i = 0; i < root; ++i)
- if (C.JSString_methods._codeUnitAt$1(path, i) === 47)
- return true;
- start = root;
- previous = 47;
- } else {
- start = 0;
- previous = null;
- }
- for (t2 = new H.CodeUnits(path)._string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) {
- codeUnit = C.JSString_methods.codeUnitAt$1(t2, i);
- if (t1.isSeparator$1(codeUnit)) {
- if (t1 === $.$get$Style_windows() && codeUnit === 47)
- return true;
- if (previous != null && t1.isSeparator$1(previous))
- return true;
- if (previous === 46)
- t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious);
- else
- t4 = false;
- if (t4)
- return true;
- }
- }
- if (previous == null)
- return true;
- if (t1.isSeparator$1(previous))
- return true;
- if (previous === 46)
- t1 = previousPrevious == null || t1.isSeparator$1(previousPrevious) || previousPrevious === 46;
- else
- t1 = false;
- if (t1)
- return true;
- return false;
- },
- relative$2$from: function(path, from) {
- var fromParsed, pathParsed, t2, t3, _this = this,
- _s26_ = 'Unable to find a path to "',
- t1 = from == null;
- if (t1 && _this.style.rootLength$1(path) <= 0)
- return _this.normalize$1(path);
- if (t1) {
- t1 = _this._context$_current;
- from = t1 == null ? D.current() : t1;
- } else
- from = _this.absolute$1(from);
- t1 = _this.style;
- if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0)
- return _this.normalize$1(path);
- if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path))
- path = _this.absolute$1(path);
- if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0)
- throw H.wrapException(X.PathException$(_s26_ + H.S(path) + '" from "' + H.S(from) + '".'));
- fromParsed = X.ParsedPath_ParsedPath$parse(from, t1);
- fromParsed.normalize$0();
- pathParsed = X.ParsedPath_ParsedPath$parse(path, t1);
- pathParsed.normalize$0();
- t2 = fromParsed.parts;
- if (t2.length !== 0 && J.$eq$(t2[0], "."))
- return pathParsed.toString$0(0);
- t2 = fromParsed.root;
- t3 = pathParsed.root;
- if (t2 != t3)
- t2 = t2 == null || t3 == null || !t1.pathsEqual$2(t2, t3);
- else
- t2 = false;
- if (t2)
- return pathParsed.toString$0(0);
- while (true) {
- t2 = fromParsed.parts;
- if (t2.length !== 0) {
- t3 = pathParsed.parts;
- t2 = t3.length !== 0 && t1.pathsEqual$2(t2[0], t3[0]);
- } else
- t2 = false;
- if (!t2)
- break;
- C.JSArray_methods.removeAt$1(fromParsed.parts, 0);
- C.JSArray_methods.removeAt$1(fromParsed.separators, 1);
- C.JSArray_methods.removeAt$1(pathParsed.parts, 0);
- C.JSArray_methods.removeAt$1(pathParsed.separators, 1);
- }
- t2 = fromParsed.parts;
- if (t2.length !== 0 && J.$eq$(t2[0], ".."))
- throw H.wrapException(X.PathException$(_s26_ + H.S(path) + '" from "' + H.S(from) + '".'));
- t2 = type$.String;
- C.JSArray_methods.insertAll$2(pathParsed.parts, 0, P.List_List$filled(fromParsed.parts.length, "..", t2));
- t3 = pathParsed.separators;
- t3[0] = "";
- C.JSArray_methods.insertAll$2(t3, 1, P.List_List$filled(fromParsed.parts.length, t1.get$separator(), t2));
- t1 = pathParsed.parts;
- t2 = t1.length;
- if (t2 === 0)
- return ".";
- if (t2 > 1 && J.$eq$(C.JSArray_methods.get$last(t1), ".")) {
- C.JSArray_methods.removeLast$0(pathParsed.parts);
- t1 = pathParsed.separators;
- C.JSArray_methods.removeLast$0(t1);
- C.JSArray_methods.removeLast$0(t1);
- C.JSArray_methods.add$1(t1, "");
- }
- pathParsed.root = "";
- pathParsed.removeTrailingSeparators$0();
- return pathParsed.toString$0(0);
- },
- relative$1: function(path) {
- return this.relative$2$from(path, null);
- },
- _isWithinOrEquals$2: function($parent, child) {
- var relative, childIsRootRelative, parentIsRootRelative, result, exception, _this = this,
- t1 = _this.style,
- parentIsAbsolute = t1.rootLength$1($parent) > 0,
- childIsAbsolute = t1.rootLength$1(child) > 0;
- if (parentIsAbsolute && !childIsAbsolute) {
- child = _this.absolute$1(child);
- if (t1.isRootRelative$1($parent))
- $parent = _this.absolute$1($parent);
- } else if (childIsAbsolute && !parentIsAbsolute) {
- $parent = _this.absolute$1($parent);
- if (t1.isRootRelative$1(child))
- child = _this.absolute$1(child);
- } else if (childIsAbsolute && parentIsAbsolute) {
- childIsRootRelative = t1.isRootRelative$1(child);
- parentIsRootRelative = t1.isRootRelative$1($parent);
- if (childIsRootRelative && !parentIsRootRelative)
- child = _this.absolute$1(child);
- else if (parentIsRootRelative && !childIsRootRelative)
- $parent = _this.absolute$1($parent);
- }
- result = _this._isWithinOrEqualsFast$2($parent, child);
- if (result !== C._PathRelation_inconclusive)
- return result;
- relative = null;
- try {
- relative = _this.relative$2$from(child, $parent);
- } catch (exception) {
- if (H.unwrapException(exception) instanceof X.PathException)
- return C._PathRelation_different;
- else
- throw exception;
- }
- if (t1.rootLength$1(relative) > 0)
- return C._PathRelation_different;
- if (J.$eq$(relative, "."))
- return C._PathRelation_equal;
- if (J.$eq$(relative, ".."))
- return C._PathRelation_different;
- 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;
- },
- _isWithinOrEqualsFast$2: function($parent, child) {
- var t1, parentRootLength, childRootLength, t2, t3, i, childIndex, parentIndex, lastCodeUnit, lastParentSeparator, parentCodeUnit, childCodeUnit, parentIndex0, t4, direction, _this = this;
- if ($parent === ".")
- $parent = "";
- t1 = _this.style;
- parentRootLength = t1.rootLength$1($parent);
- childRootLength = t1.rootLength$1(child);
- if (parentRootLength !== childRootLength)
- return C._PathRelation_different;
- for (t2 = J.getInterceptor$s($parent), t3 = J.getInterceptor$s(child), i = 0; i < parentRootLength; ++i)
- if (!t1.codeUnitsEqual$2(t2._codeUnitAt$1($parent, i), t3._codeUnitAt$1(child, i)))
- return C._PathRelation_different;
- t2 = $parent.length;
- childIndex = childRootLength;
- parentIndex = parentRootLength;
- lastCodeUnit = 47;
- lastParentSeparator = null;
- while (true) {
- if (!(parentIndex < t2 && childIndex < child.length))
- break;
- c$0: {
- parentCodeUnit = C.JSString_methods.codeUnitAt$1($parent, parentIndex);
- childCodeUnit = t3.codeUnitAt$1(child, childIndex);
- if (t1.codeUnitsEqual$2(parentCodeUnit, childCodeUnit)) {
- if (t1.isSeparator$1(parentCodeUnit))
- lastParentSeparator = parentIndex;
- ++parentIndex;
- ++childIndex;
- lastCodeUnit = parentCodeUnit;
- break c$0;
- }
- if (t1.isSeparator$1(parentCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
- parentIndex0 = parentIndex + 1;
- lastParentSeparator = parentIndex;
- parentIndex = parentIndex0;
- break c$0;
- } else if (t1.isSeparator$1(childCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
- ++childIndex;
- break c$0;
- }
- if (parentCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
- ++parentIndex;
- if (parentIndex === t2)
- break;
- parentCodeUnit = C.JSString_methods.codeUnitAt$1($parent, parentIndex);
- if (t1.isSeparator$1(parentCodeUnit)) {
- parentIndex0 = parentIndex + 1;
- lastParentSeparator = parentIndex;
- parentIndex = parentIndex0;
- break c$0;
- }
- if (parentCodeUnit === 46) {
- ++parentIndex;
- if (parentIndex === t2 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1($parent, parentIndex)))
- return C._PathRelation_inconclusive;
- }
- }
- if (childCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
- ++childIndex;
- t4 = child.length;
- if (childIndex === t4)
- break;
- childCodeUnit = C.JSString_methods.codeUnitAt$1(child, childIndex);
- if (t1.isSeparator$1(childCodeUnit)) {
- ++childIndex;
- break c$0;
- }
- if (childCodeUnit === 46) {
- ++childIndex;
- if (childIndex === t4 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1(child, childIndex)))
- return C._PathRelation_inconclusive;
- }
- }
- if (_this._pathDirection$2(child, childIndex) !== C._PathDirection_988)
- return C._PathRelation_inconclusive;
- if (_this._pathDirection$2($parent, parentIndex) !== C._PathDirection_988)
- return C._PathRelation_inconclusive;
- return C._PathRelation_different;
- }
- }
- if (childIndex === child.length) {
- if (parentIndex === t2 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1($parent, parentIndex)))
- lastParentSeparator = parentIndex;
- else if (lastParentSeparator == null)
- lastParentSeparator = Math.max(0, parentRootLength - 1);
- direction = _this._pathDirection$2($parent, lastParentSeparator);
- if (direction === C._PathDirection_8Gl)
- return C._PathRelation_equal;
- return direction === C._PathDirection_ZGD ? C._PathRelation_inconclusive : C._PathRelation_different;
- }
- direction = _this._pathDirection$2(child, childIndex);
- if (direction === C._PathDirection_8Gl)
- return C._PathRelation_equal;
- if (direction === C._PathDirection_ZGD)
- return C._PathRelation_inconclusive;
- return t1.isSeparator$1(C.JSString_methods.codeUnitAt$1(child, childIndex)) || t1.isSeparator$1(lastCodeUnit) ? C._PathRelation_within : C._PathRelation_different;
- },
- _pathDirection$2: function(path, index) {
- var t1, t2, i, depth, reachedRoot, i0, t3;
- for (t1 = path.length, t2 = this.style, i = index, depth = 0, reachedRoot = false; i < t1;) {
- while (true) {
- if (!(i < t1 && t2.isSeparator$1(C.JSString_methods.codeUnitAt$1(path, i))))
- break;
- ++i;
- }
- if (i === t1)
- break;
- i0 = i;
- while (true) {
- if (!(i0 < t1 && !t2.isSeparator$1(C.JSString_methods.codeUnitAt$1(path, i0))))
- break;
- ++i0;
- }
- t3 = i0 - i;
- if (!(t3 === 1 && C.JSString_methods.codeUnitAt$1(path, i) === 46))
- if (t3 === 2 && C.JSString_methods.codeUnitAt$1(path, i) === 46 && C.JSString_methods.codeUnitAt$1(path, i + 1) === 46) {
- --depth;
- if (depth < 0)
- break;
- if (depth === 0)
- reachedRoot = true;
- } else
- ++depth;
- if (i0 === t1)
- break;
- i = i0 + 1;
- }
- if (depth < 0)
- return C._PathDirection_ZGD;
- if (depth === 0)
- return C._PathDirection_8Gl;
- if (reachedRoot)
- return C._PathDirection_FIw;
- return C._PathDirection_988;
- },
- hash$1: function(path) {
- var result, parsed, _this = this;
- path = _this.absolute$1(path);
- result = _this._hashFast$1(path);
- if (result != null)
- return result;
- parsed = X.ParsedPath_ParsedPath$parse(path, _this.style);
- parsed.normalize$0();
- return _this._hashFast$1(parsed.toString$0(0));
- },
- _hashFast$1: function(path) {
- var t1, t2, hash, beginning, wasSeparator, i, codeUnit, t3, next;
- for (t1 = path.length, t2 = this.style, hash = 4603, beginning = true, wasSeparator = true, i = 0; i < t1; ++i) {
- codeUnit = t2.canonicalizeCodeUnit$1(C.JSString_methods._codeUnitAt$1(path, i));
- if (t2.isSeparator$1(codeUnit)) {
- wasSeparator = true;
- continue;
- }
- if (codeUnit === 46 && wasSeparator) {
- t3 = i + 1;
- if (t3 === t1)
- break;
- next = C.JSString_methods._codeUnitAt$1(path, t3);
- if (t2.isSeparator$1(next))
- continue;
- if (!beginning)
- if (next === 46) {
- t3 = i + 2;
- t3 = t3 === t1 || t2.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, t3));
- } else
- t3 = false;
- else
- t3 = false;
- if (t3)
- return null;
- }
- hash = ((hash & 67108863) * 33 ^ codeUnit) >>> 0;
- beginning = false;
- wasSeparator = false;
- }
- return hash;
- },
- withoutExtension$1: function(path) {
- var i, t1,
- parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
- for (i = parsed.parts.length - 1; i >= 0; --i) {
- t1 = parsed.parts[i];
- t1.toString;
- if (J.get$length$asx(t1) !== 0) {
- parsed.parts[i] = parsed._splitExtension$0()[0];
- break;
- }
- }
- return parsed.toString$0(0);
- },
- toUri$1: function(path) {
- var t2,
- t1 = this.style;
- if (t1.rootLength$1(path) <= 0)
- return t1.relativePathToUri$1(path);
- else {
- t2 = this._context$_current;
- return t1.absolutePathToUri$1(this.join$2(0, t2 == null ? D.current() : t2, path));
- }
- },
- prettyUri$1: function(uri) {
- var path, rel, _this = this,
- typedUri = M._parseUri(uri);
- if (typedUri.get$scheme() === "file" && _this.style == $.$get$Style_url())
- return typedUri.toString$0(0);
- else if (typedUri.get$scheme() !== "file" && typedUri.get$scheme() !== "" && _this.style != $.$get$Style_url())
- return typedUri.toString$0(0);
- path = _this.normalize$1(_this.style.pathFromUri$1(M._parseUri(typedUri)));
- rel = _this.relative$1(path);
- return _this.split$1(0, rel).length > _this.split$1(0, path).length ? path : rel;
- }
- };
- M.Context_join_closure.prototype = {
- call$1: function(part) {
- return part != null;
- }
- };
- M.Context_joinAll_closure.prototype = {
- call$1: function(part) {
- return part !== "";
- }
- };
- M.Context_split_closure.prototype = {
- call$1: function(part) {
- return part.length !== 0;
- }
- };
- M._validateArgList_closure.prototype = {
- call$1: function(arg) {
- return arg == null ? "null" : '"' + arg + '"';
- }
- };
- M._PathDirection.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- M._PathRelation.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- B.InternalStyle.prototype = {
- getRoot$1: function(path) {
- var $length = this.rootLength$1(path);
- if ($length > 0)
- return J.substring$2$s(path, 0, $length);
- return this.isRootRelative$1(path) ? path[0] : null;
- },
- relativePathToUri$1: function(path) {
- var segments = M.Context_Context(this).split$1(0, path);
- if (this.isSeparator$1(J.codeUnitAt$1$s(path, path.length - 1)))
- C.JSArray_methods.add$1(segments, "");
- return P._Uri__Uri(null, null, segments, null);
- },
- codeUnitsEqual$2: function(codeUnit1, codeUnit2) {
- return codeUnit1 === codeUnit2;
- },
- pathsEqual$2: function(path1, path2) {
- return path1 == path2;
- },
- canonicalizeCodeUnit$1: function(codeUnit) {
- return codeUnit;
- },
- canonicalizePart$1: function(part) {
- return part;
- }
- };
- X.ParsedPath.prototype = {
- get$basename: function() {
- var _this = this,
- t1 = type$.String,
- 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));
- copy.removeTrailingSeparators$0();
- t1 = copy.parts;
- if (t1.length === 0) {
- t1 = _this.root;
- return t1 == null ? "" : t1;
- }
- return C.JSArray_methods.get$last(t1);
- },
- get$hasTrailingSeparator: function() {
- var t1 = this.parts;
- if (t1.length !== 0)
- t1 = J.$eq$(C.JSArray_methods.get$last(t1), "") || !J.$eq$(C.JSArray_methods.get$last(this.separators), "");
- else
- t1 = false;
- return t1;
- },
- removeTrailingSeparators$0: function() {
- var t1, t2, _this = this;
- while (true) {
- t1 = _this.parts;
- if (!(t1.length !== 0 && J.$eq$(C.JSArray_methods.get$last(t1), "")))
- break;
- C.JSArray_methods.removeLast$0(_this.parts);
- C.JSArray_methods.removeLast$0(_this.separators);
- }
- t1 = _this.separators;
- t2 = t1.length;
- if (t2 !== 0)
- t1[t2 - 1] = "";
- },
- normalize$1$canonicalize: function(canonicalize) {
- var t1, t2, t3, leadingDoubles, _i, part, t4, newSeparators, _this = this,
- newParts = H.setRuntimeTypeInfo([], type$.JSArray_String);
- 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) {
- part = t1[_i];
- t4 = J.getInterceptor$(part);
- if (!(t4.$eq(part, ".") || t4.$eq(part, "")))
- if (t4.$eq(part, ".."))
- if (newParts.length !== 0)
- newParts.pop();
- else
- ++leadingDoubles;
- else
- newParts.push(canonicalize ? t3.canonicalizePart$1(part) : part);
- }
- if (_this.root == null)
- C.JSArray_methods.insertAll$2(newParts, 0, P.List_List$filled(leadingDoubles, "..", type$.String));
- if (newParts.length === 0 && _this.root == null)
- newParts.push(".");
- newSeparators = P.List_List$generate(newParts.length, new X.ParsedPath_normalize_closure(_this), true, type$.String);
- t1 = _this.root;
- C.JSArray_methods.insert$2(newSeparators, 0, t1 != null && newParts.length !== 0 && t3.needsSeparator$1(t1) ? t3.get$separator() : "");
- _this.parts = newParts;
- _this.separators = newSeparators;
- t1 = _this.root;
- if (t1 != null && t3 === $.$get$Style_windows()) {
- if (canonicalize)
- t1 = _this.root = t1.toLowerCase();
- t1.toString;
- _this.root = H.stringReplaceAllUnchecked(t1, "/", "\\");
- }
- _this.removeTrailingSeparators$0();
- },
- normalize$0: function() {
- return this.normalize$1$canonicalize(false);
- },
- toString$0: function(_) {
- var i, _this = this,
- t1 = _this.root;
- t1 = t1 != null ? t1 : "";
- for (i = 0; i < _this.parts.length; ++i)
- t1 = t1 + H.S(_this.separators[i]) + H.S(_this.parts[i]);
- t1 += H.S(C.JSArray_methods.get$last(_this.separators));
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _kthLastIndexOf$3: function(path, character, k) {
- var index, count, leftMostIndexedCharacter;
- for (index = path.length - 1, count = 0, leftMostIndexedCharacter = 0; index >= 0; --index)
- if (path[index] === character) {
- ++count;
- if (count === k)
- return index;
- leftMostIndexedCharacter = index;
- }
- return leftMostIndexedCharacter;
- },
- _splitExtension$1: function(level) {
- var file, lastDot;
- if (level <= 0)
- throw H.wrapException(P.RangeError$value(level, "level", "level's value must be greater than 0"));
- file = C.JSArray_methods.lastWhere$2$orElse(this.parts, new X.ParsedPath__splitExtension_closure(), new X.ParsedPath__splitExtension_closure0());
- if (file == null)
- return H.setRuntimeTypeInfo(["", ""], type$.JSArray_String);
- if (file === "..")
- return H.setRuntimeTypeInfo(["..", ""], type$.JSArray_String);
- lastDot = this._kthLastIndexOf$3(file, ".", level);
- if (lastDot <= 0)
- return H.setRuntimeTypeInfo([file, ""], type$.JSArray_String);
- return H.setRuntimeTypeInfo([C.JSString_methods.substring$2(file, 0, lastDot), C.JSString_methods.substring$1(file, lastDot)], type$.JSArray_String);
- },
- _splitExtension$0: function() {
- return this._splitExtension$1(1);
- }
- };
- X.ParsedPath_normalize_closure.prototype = {
- call$1: function(_) {
- return this.$this.style.get$separator();
- },
- $signature: 36
- };
- X.ParsedPath__splitExtension_closure.prototype = {
- call$1: function(p) {
- return p !== "";
- }
- };
- X.ParsedPath__splitExtension_closure0.prototype = {
- call$0: function() {
- return null;
- },
- $signature: 0
- };
- X.PathException.prototype = {
- toString$0: function(_) {
- return "PathException: " + this.message;
- },
- $isException: 1,
- get$message: function(receiver) {
- return this.message;
- }
- };
- K.PathMap.prototype = {};
- K.PathMap__create_closure.prototype = {
- call$2: function(path1, path2) {
- if (path1 == null)
- return path2 == null;
- if (path2 == null)
- return false;
- return this._box_0.context._isWithinOrEquals$2(path1, path2) === C._PathRelation_equal;
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- K.PathMap__create_closure0.prototype = {
- call$1: function(path) {
- return path == null ? 0 : this._box_0.context.hash$1(path);
- }
- };
- K.PathMap__create_closure1.prototype = {
- call$1: function(path) {
- return typeof path == "string" || path == null;
- },
- $signature: 53
- };
- O.Style.prototype = {
- toString$0: function(_) {
- return this.get$name();
- }
- };
- E.PosixStyle.prototype = {
- containsSeparator$1: function(path) {
- return C.JSString_methods.contains$1(path, "/");
- },
- isSeparator$1: function(codeUnit) {
- return codeUnit === 47;
- },
- needsSeparator$1: function(path) {
- var t1 = path.length;
- return t1 !== 0 && C.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47;
- },
- rootLength$2$withDrive: function(path, withDrive) {
- if (path.length !== 0 && C.JSString_methods._codeUnitAt$1(path, 0) === 47)
- return 1;
- return 0;
- },
- rootLength$1: function(path) {
- return this.rootLength$2$withDrive(path, false);
- },
- isRootRelative$1: function(path) {
- return false;
- },
- pathFromUri$1: function(uri) {
- var t1;
- if (uri.get$scheme() === "" || uri.get$scheme() === "file") {
- t1 = uri.get$path(uri);
- return P._Uri__uriDecode(t1, 0, t1.length, C.C_Utf8Codec, false);
- }
- throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'."));
- },
- absolutePathToUri$1: function(path) {
- var parsed = X.ParsedPath_ParsedPath$parse(path, this),
- t1 = parsed.parts;
- if (t1.length === 0)
- C.JSArray_methods.addAll$1(t1, H.setRuntimeTypeInfo(["", ""], type$.JSArray_String));
- else if (parsed.get$hasTrailingSeparator())
- C.JSArray_methods.add$1(parsed.parts, "");
- return P._Uri__Uri(null, null, parsed.parts, "file");
- },
- get$name: function() {
- return "posix";
- },
- get$separator: function() {
- return "/";
- }
- };
- F.UrlStyle.prototype = {
- containsSeparator$1: function(path) {
- return C.JSString_methods.contains$1(path, "/");
- },
- isSeparator$1: function(codeUnit) {
- return codeUnit === 47;
- },
- needsSeparator$1: function(path) {
- var t1 = path.length;
- if (t1 === 0)
- return false;
- if (C.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47)
- return true;
- return C.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === t1;
- },
- rootLength$2$withDrive: function(path, withDrive) {
- var i, codeUnit, index, t2,
- t1 = path.length;
- if (t1 === 0)
- return 0;
- if (C.JSString_methods._codeUnitAt$1(path, 0) === 47)
- return 1;
- for (i = 0; i < t1; ++i) {
- codeUnit = C.JSString_methods._codeUnitAt$1(path, i);
- if (codeUnit === 47)
- return 0;
- if (codeUnit === 58) {
- if (i === 0)
- return 0;
- index = C.JSString_methods.indexOf$2(path, "/", C.JSString_methods.startsWith$2(path, "//", i + 1) ? i + 3 : i);
- if (index <= 0)
- return t1;
- if (!withDrive || t1 < index + 3)
- return index;
- if (!C.JSString_methods.startsWith$1(path, "file://"))
- return index;
- if (!B.isDriveLetter(path, index + 1))
- return index;
- t2 = index + 3;
- return t1 === t2 ? t2 : index + 4;
- }
- }
- return 0;
- },
- rootLength$1: function(path) {
- return this.rootLength$2$withDrive(path, false);
- },
- isRootRelative$1: function(path) {
- return path.length !== 0 && C.JSString_methods._codeUnitAt$1(path, 0) === 47;
- },
- pathFromUri$1: function(uri) {
- return J.toString$0$(uri);
- },
- relativePathToUri$1: function(path) {
- return P.Uri_parse(path);
- },
- absolutePathToUri$1: function(path) {
- return P.Uri_parse(path);
- },
- get$name: function() {
- return "url";
- },
- get$separator: function() {
- return "/";
- }
- };
- L.WindowsStyle.prototype = {
- containsSeparator$1: function(path) {
- return C.JSString_methods.contains$1(path, "/");
- },
- isSeparator$1: function(codeUnit) {
- return codeUnit === 47 || codeUnit === 92;
- },
- needsSeparator$1: function(path) {
- var t1 = path.length;
- if (t1 === 0)
- return false;
- t1 = C.JSString_methods.codeUnitAt$1(path, t1 - 1);
- return !(t1 === 47 || t1 === 92);
- },
- rootLength$2$withDrive: function(path, withDrive) {
- var t2, index,
- t1 = path.length;
- if (t1 === 0)
- return 0;
- t2 = C.JSString_methods._codeUnitAt$1(path, 0);
- if (t2 === 47)
- return 1;
- if (t2 === 92) {
- if (t1 < 2 || C.JSString_methods._codeUnitAt$1(path, 1) !== 92)
- return 1;
- index = C.JSString_methods.indexOf$2(path, "\\", 2);
- if (index > 0) {
- index = C.JSString_methods.indexOf$2(path, "\\", index + 1);
- if (index > 0)
- return index;
- }
- return t1;
- }
- if (t1 < 3)
- return 0;
- if (!B.isAlphabetic(t2))
- return 0;
- if (C.JSString_methods._codeUnitAt$1(path, 1) !== 58)
- return 0;
- t1 = C.JSString_methods._codeUnitAt$1(path, 2);
- if (!(t1 === 47 || t1 === 92))
- return 0;
- return 3;
- },
- rootLength$1: function(path) {
- return this.rootLength$2$withDrive(path, false);
- },
- isRootRelative$1: function(path) {
- return this.rootLength$1(path) === 1;
- },
- pathFromUri$1: function(uri) {
- var path, t1;
- if (uri.get$scheme() !== "" && uri.get$scheme() !== "file")
- throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'."));
- path = uri.get$path(uri);
- if (uri.get$host() === "") {
- if (path.length >= 3 && C.JSString_methods.startsWith$1(path, "/") && B.isDriveLetter(path, 1))
- path = C.JSString_methods.replaceFirst$2(path, "/", "");
- } else
- path = "\\\\" + H.S(uri.get$host()) + path;
- t1 = H.stringReplaceAllUnchecked(path, "/", "\\");
- return P._Uri__uriDecode(t1, 0, t1.length, C.C_Utf8Codec, false);
- },
- absolutePathToUri$1: function(path) {
- var rootParts, t2,
- parsed = X.ParsedPath_ParsedPath$parse(path, this),
- t1 = parsed.root;
- if (J.startsWith$1$s(t1, "\\\\")) {
- rootParts = new H.WhereIterable(H.setRuntimeTypeInfo(t1.split("\\"), type$.JSArray_String), new L.WindowsStyle_absolutePathToUri_closure(), type$.WhereIterable_String);
- C.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootParts));
- if (parsed.get$hasTrailingSeparator())
- C.JSArray_methods.add$1(parsed.parts, "");
- return P._Uri__Uri(rootParts.get$first(rootParts), null, parsed.parts, "file");
- } else {
- if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator())
- C.JSArray_methods.add$1(parsed.parts, "");
- t1 = parsed.parts;
- t2 = parsed.root;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "/", "");
- C.JSArray_methods.insert$2(t1, 0, H.stringReplaceAllUnchecked(t2, "\\", ""));
- return P._Uri__Uri(null, null, parsed.parts, "file");
- }
- },
- codeUnitsEqual$2: function(codeUnit1, codeUnit2) {
- var upperCase1;
- if (codeUnit1 === codeUnit2)
- return true;
- if (codeUnit1 === 47)
- return codeUnit2 === 92;
- if (codeUnit1 === 92)
- return codeUnit2 === 47;
- if ((codeUnit1 ^ codeUnit2) !== 32)
- return false;
- upperCase1 = codeUnit1 | 32;
- return upperCase1 >= 97 && upperCase1 <= 122;
- },
- pathsEqual$2: function(path1, path2) {
- var t1, t2, i;
- if (path1 == path2)
- return true;
- t1 = path1.length;
- if (t1 !== path2.length)
- return false;
- for (t2 = J.getInterceptor$s(path2), i = 0; i < t1; ++i)
- if (!this.codeUnitsEqual$2(C.JSString_methods._codeUnitAt$1(path1, i), t2._codeUnitAt$1(path2, i)))
- return false;
- return true;
- },
- canonicalizeCodeUnit$1: function(codeUnit) {
- if (codeUnit === 47)
- return 92;
- if (codeUnit < 65)
- return codeUnit;
- if (codeUnit > 90)
- return codeUnit;
- return codeUnit | 32;
- },
- canonicalizePart$1: function(part) {
- return part.toLowerCase();
- },
- get$name: function() {
- return "windows";
- },
- get$separator: function() {
- return "\\";
- }
- };
- L.WindowsStyle_absolutePathToUri_closure.prototype = {
- call$1: function(part) {
- return part !== "";
- }
- };
- F.CssMediaQuery.prototype = {
- merge$1: function(other) {
- var _i, t8, negativeFeatures, features, type, modifier, fewerFeatures, fewerFeatures0, moreFeatures, _this = this, _null = null, _s3_ = "all",
- t1 = _this.modifier,
- ourModifier = t1 == null ? _null : t1.toLowerCase(),
- t2 = _this.type,
- t3 = t2 == null,
- ourType = t3 ? _null : t2.toLowerCase(),
- t4 = other.modifier,
- theirModifier = t4 == null ? _null : t4.toLowerCase(),
- t5 = other.type,
- t6 = t5 == null,
- theirType = t6 ? _null : t5.toLowerCase(),
- t7 = ourType == null;
- if (t7 && theirType == null) {
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t2 = _this.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i]);
- for (t2 = other.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i]);
- return new F.MediaQuerySuccessfulMergeResult(new F.CssMediaQuery(_null, _null, P.List_List$unmodifiable(t1, type$.String)));
- }
- t8 = ourModifier === "not";
- if (t8 !== (theirModifier === "not")) {
- if (ourType == theirType) {
- negativeFeatures = t8 ? _this.features : other.features;
- if (C.JSArray_methods.every$1(negativeFeatures, C.JSArray_methods.get$contains(t8 ? other.features : _this.features)))
- return C._SingletonCssMediaQueryMergeResult_empty;
- else
- return C._SingletonCssMediaQueryMergeResult_unrepresentable;
- } else if (t3 || B.equalsIgnoreCase(t2, _s3_) || t6 || B.equalsIgnoreCase(t5, _s3_))
- return C._SingletonCssMediaQueryMergeResult_unrepresentable;
- if (t8) {
- features = other.features;
- type = theirType;
- modifier = theirModifier;
- } else {
- features = _this.features;
- type = ourType;
- modifier = ourModifier;
- }
- } else if (t8) {
- if (ourType != theirType)
- return C._SingletonCssMediaQueryMergeResult_unrepresentable;
- fewerFeatures = _this.features;
- fewerFeatures0 = other.features;
- t3 = fewerFeatures.length > fewerFeatures0.length;
- moreFeatures = t3 ? fewerFeatures : fewerFeatures0;
- if (t3)
- fewerFeatures = fewerFeatures0;
- if (!C.JSArray_methods.every$1(fewerFeatures, C.JSArray_methods.get$contains(moreFeatures)))
- return C._SingletonCssMediaQueryMergeResult_unrepresentable;
- features = moreFeatures;
- type = ourType;
- modifier = ourModifier;
- } else if (t3 || B.equalsIgnoreCase(t2, _s3_)) {
- type = (t6 || B.equalsIgnoreCase(t5, _s3_)) && t7 ? _null : theirType;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- features = t3;
- modifier = theirModifier;
- } else {
- if (t6 || B.equalsIgnoreCase(t5, _s3_)) {
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- features = t3;
- modifier = ourModifier;
- } else {
- if (ourType != theirType)
- return C._SingletonCssMediaQueryMergeResult_empty;
- else {
- modifier = ourModifier == null ? theirModifier : ourModifier;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- }
- features = t3;
- }
- type = ourType;
- }
- t2 = type == ourType ? t2 : t5;
- return new F.MediaQuerySuccessfulMergeResult(F.CssMediaQuery$(t2, features, modifier == ourModifier ? t1 : t4));
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof F.CssMediaQuery && other.modifier == this.modifier && other.type == this.type && C.C_ListEquality.equals$2(other.features, this.features);
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ C.C_ListEquality.hash$1(this.features);
- },
- toString$0: function(_) {
- var t2, _this = this,
- t1 = _this.modifier;
- t1 = t1 != null ? t1 + " " : "";
- t2 = _this.type;
- if (t2 != null) {
- t1 += t2;
- if (_this.features.length !== 0)
- t1 += " and ";
- }
- t1 += C.JSArray_methods.join$1(_this.features, " and ");
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- F._SingletonCssMediaQueryMergeResult.prototype = {
- toString$0: function(_) {
- return this._media_query$_name;
- }
- };
- F.MediaQuerySuccessfulMergeResult.prototype = {};
- U.ModifiableCssAtRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssAtRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- var _this = this,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return new U.ModifiableCssAtRule(_this.name, _this.value, _this.isChildless, _this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- addChild$1: function(child) {
- this.super$ModifiableCssParentNode$addChild(child);
- },
- $isCssAtRule: 1,
- get$isChildless: function() {
- return this.isChildless;
- },
- get$span: function() {
- return this.span;
- }
- };
- R.ModifiableCssComment.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssComment$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $isCssComment: 1,
- get$span: function() {
- return this.span;
- }
- };
- L.ModifiableCssDeclaration.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssDeclaration$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$span: function() {
- return this.span;
- }
- };
- F.ModifiableCssImport.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssImport$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $isCssImport: 1,
- get$span: function() {
- return this.span;
- }
- };
- U.ModifiableCssKeyframeBlock.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssKeyframeBlock$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return new U.ModifiableCssKeyframeBlock(this.selector, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- get$span: function() {
- return this.span;
- }
- };
- G.ModifiableCssMediaRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssMediaRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- return G.ModifiableCssMediaRule$(this.queries, this.span);
- },
- $isCssMediaRule: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.ModifiableCssNode.prototype = {
- get$hasFollowingSibling: function() {
- var siblings, i, t2,
- t1 = this._parent;
- if (t1 == null)
- return false;
- siblings = t1.children;
- for (i = this._indexInParent + 1, t1 = siblings._collection$_source, t2 = J.getInterceptor$asx(t1); i < t2.get$length(t1); ++i)
- if (!this._node0$_isInvisible$1(t2.elementAt$1(t1, i)))
- return true;
- return false;
- },
- _node0$_isInvisible$1: function(node) {
- if (type$.CssParentNode._is(node)) {
- if (type$.CssAtRule._is(node))
- return false;
- if (type$.CssStyleRule._is(node) && node.selector.value.get$isInvisible())
- return true;
- return J.every$1$ax(node.get$children(), this.get$_node0$_isInvisible());
- } else
- return false;
- },
- get$isGroupEnd: function() {
- return this.isGroupEnd;
- }
- };
- B.ModifiableCssParentNode.prototype = {
- get$isChildless: function() {
- return false;
- },
- addChild$1: function(child) {
- var t1;
- child._parent = this;
- t1 = this._children;
- child._indexInParent = t1.length;
- t1.push(child);
- },
- $isCssParentNode: 1,
- get$children: function() {
- return this.children;
- }
- };
- X.ModifiableCssStyleRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssStyleRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- return X.ModifiableCssStyleRule$(this.selector, this.span, this.originalSelector);
- },
- $isCssStyleRule: 1,
- get$span: function() {
- return this.span;
- }
- };
- V.ModifiableCssStylesheet.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssStylesheet$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return new V.ModifiableCssStylesheet(this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- $isCssStylesheet: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.ModifiableCssSupportsRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssSupportsRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return new B.ModifiableCssSupportsRule(this.condition, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- $isCssSupportsRule: 1,
- get$span: function() {
- return this.span;
- }
- };
- F.ModifiableCssValue.prototype = {
- toString$0: function(_) {
- return J.toString$0$(this.value);
- },
- $isCssValue: 1,
- $isAstNode: 1,
- get$value: function(receiver) {
- return this.value;
- },
- get$span: function() {
- return this.span;
- }
- };
- B.CssNode.prototype = {
- toString$0: function(_) {
- return N.serialize(this, true, null, true, null, false, null, true).css;
- }
- };
- B.CssParentNode.prototype = {};
- V.CssStylesheet.prototype = {
- get$isGroupEnd: function() {
- return false;
- },
- get$isChildless: function() {
- return false;
- },
- accept$1$1: function(visitor) {
- return visitor.visitCssStylesheet$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$children: function() {
- return this.children;
- },
- get$span: function() {
- return this.span;
- }
- };
- F.CssValue.prototype = {
- toString$0: function(_) {
- return J.toString$0$(this.value);
- },
- $isAstNode: 1,
- get$value: function(receiver) {
- return this.value;
- },
- get$span: function() {
- return this.span;
- }
- };
- B.AstNode.prototype = {};
- B._FakeAstNode.prototype = {
- get$span: function() {
- return this._callback.call$0();
- },
- $isAstNode: 1
- };
- Z.Argument.prototype = {
- toString$0: function(_) {
- var t1 = this.defaultValue,
- t2 = this.name;
- return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.ArgumentDeclaration.prototype = {
- get$spanWithName: function() {
- var t3, t4,
- t1 = this.span,
- t2 = t1.file,
- text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
- i = Y.FileLocation$_(t2, t1._file$_start).offset - 1;
- while (true) {
- if (i > 0) {
- t3 = C.JSString_methods.codeUnitAt$1(text, i);
- t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
- } else
- t3 = false;
- if (!t3)
- break;
- --i;
- }
- t3 = C.JSString_methods.codeUnitAt$1(text, i);
- if (!(t3 === 95 || T.isAlphabetic0(t3) || t3 >= 128 || T.isDigit(t3) || t3 === 45))
- return t1;
- --i;
- while (true) {
- if (i >= 0) {
- t3 = C.JSString_methods.codeUnitAt$1(text, i);
- if (t3 !== 95) {
- if (!(t3 >= 97 && t3 <= 122))
- t4 = t3 >= 65 && t3 <= 90;
- else
- t4 = true;
- t4 = t4 || t3 >= 128;
- } else
- t4 = true;
- if (!t4) {
- t4 = t3 >= 48 && t3 <= 57;
- t3 = t4 || t3 === 45;
- } else
- t3 = true;
- } else
- t3 = false;
- if (!t3)
- break;
- --i;
- }
- t3 = i + 1;
- t4 = C.JSString_methods.codeUnitAt$1(text, t3);
- if (!(t4 === 95 || T.isAlphabetic0(t4) || t4 >= 128))
- return t1;
- return B.SpanExtensions_trim(t2.span$2(t3, Y.FileLocation$_(t2, t1._end).offset));
- },
- get$originalRestArgument: function() {
- var t1, text;
- if (this.restArgument == null)
- return null;
- t1 = this.span;
- text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
- 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, "."));
- },
- verify$2: function(positional, names) {
- var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
- _s10_ = "invocation",
- _s8_ = "argument";
- for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
- argument = t1[i];
- if (i < positional) {
- t4 = argument.name;
- if (t3.containsKey$1(t4))
- throw H.wrapException(E.SassScriptException$("Argument " + H.S(_this._originalArgumentName$1(t4)) + " was passed both by position and by name."));
- } else {
- t4 = argument.name;
- if (t3.containsKey$1(t4))
- ++namedUsed;
- else if (argument.defaultValue == null)
- throw H.wrapException(E.MultiSpanSassScriptException$("Missing argument " + H.S(_this._originalArgumentName$1(t4)) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
- }
- }
- if (_this.restArgument != null)
- return;
- if (positional > t2) {
- t1 = "Only " + t2 + " ";
- 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$.FileSpan, type$.String)));
- }
- if (namedUsed < t3.get$length(t3)) {
- t2 = type$.String;
- unknownNames = P.LinkedHashSet_LinkedHashSet$of(names, t2);
- unknownNames.removeAll$1(new H.MappedListIterable(t1, new B.ArgumentDeclaration_verify_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")));
- 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$.Object), "or")) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
- }
- },
- _originalArgumentName$1: function($name) {
- var t1, t2, _i, argument, t3, t4, text, end;
- if ($name === this.restArgument)
- return this.get$originalRestArgument();
- for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- argument = t1[_i];
- if (argument.name === $name) {
- t1 = argument.defaultValue;
- t2 = argument.span;
- t3 = t2.file;
- t4 = t2._file$_start;
- t2 = t2._end;
- if (t1 == null) {
- t1 = t3._decodedChars;
- t1 = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
- } else {
- t1 = t3._decodedChars;
- text = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
- t1 = C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":"));
- end = B._lastNonWhitespace(t1, false);
- t1 = end == null ? "" : C.JSString_methods.substring$2(t1, 0, end + 1);
- }
- return t1;
- }
- }
- throw H.wrapException(P.ArgumentError$('This declaration has no argument named "$' + $name + '".'));
- },
- matches$2: function(positional, names) {
- var t1, t2, t3, namedUsed, i, argument;
- for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
- argument = t1[i];
- if (i < positional) {
- if (t3.containsKey$1(argument.name))
- return false;
- } else if (t3.containsKey$1(argument.name))
- ++namedUsed;
- else if (argument.defaultValue == null)
- return false;
- }
- if (this.restArgument != null)
- return true;
- if (positional > t2)
- return false;
- if (namedUsed < t3.get$length(t3))
- return false;
- return true;
- },
- toString$0: function(_) {
- var t2, t3, _i,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(J.toString$0$(t2[_i]));
- t2 = this.restArgument;
- if (t2 != null)
- t1.push(t2 + "...");
- return C.JSArray_methods.join$1(t1, ", ");
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.ArgumentDeclaration_verify_closure.prototype = {
- call$1: function(argument) {
- return argument.name;
- }
- };
- B.ArgumentDeclaration_verify_closure0.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- X.ArgumentInvocation.prototype = {
- get$isEmpty: function(_) {
- var t1;
- if (this.positional.length === 0) {
- t1 = this.named;
- t1 = t1.get$isEmpty(t1) && this.rest == null;
- } else
- t1 = false;
- return t1;
- },
- toString$0: function(_) {
- var t2, t3, _i, t4, _this = this, t1 = [];
- for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i]);
- for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys()); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t1.push(H.S(t4) + ": " + H.S(t2.$index(0, t4)));
- }
- t2 = _this.rest;
- if (t2 != null)
- t1.push(t2.toString$0(0) + "...");
- t2 = _this.keywordRest;
- if (t2 != null)
- t1.push(t2.toString$0(0) + "...");
- return "(" + C.JSArray_methods.join$1(t1, ", ") + ")";
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- V.AtRootQuery.prototype = {
- excludes$1: function(node) {
- var _this = this;
- if (_this._all)
- return !_this.include;
- if (_this._at_root_query$_rule && type$.CssStyleRule._is(node))
- return !_this.include;
- return _this.names.contains$1(0, _this._nameFor$1(node)) !== _this.include;
- },
- _nameFor$1: function(node) {
- var t1;
- if (type$.CssMediaRule._is(node))
- return "media";
- if (type$.CssSupportsRule._is(node))
- return "supports";
- if (type$.CssAtRule._is(node)) {
- t1 = node.name;
- return t1.get$value(t1).toLowerCase();
- }
- return null;
- }
- };
- Z.ConfiguredVariable.prototype = {
- toString$0: function(_) {
- var t1 = "$" + this.name + ": " + H.S(this.expression);
- return t1 + (this.isGuarded ? " !default" : "");
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- T.Expression.prototype = {$isAstNode: 1};
- V.BinaryOperationExpression.prototype = {
- get$span: function() {
- var right,
- left = this.left;
- for (; left instanceof V.BinaryOperationExpression;)
- left = left.left;
- right = this.right;
- for (; right instanceof V.BinaryOperationExpression;)
- right = right.right;
- return B.spanForList(H.setRuntimeTypeInfo([left, right], type$.JSArray_AstNode));
- },
- accept$1$1: function(visitor) {
- return visitor.visitBinaryOperationExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t2, right, rightNeedsParens, _this = this,
- left = _this.left,
- leftNeedsParens = left instanceof V.BinaryOperationExpression && left.operator.precedence < _this.operator.precedence,
- t1 = leftNeedsParens ? H.Primitives_stringFromCharCode(40) : "";
- t1 += H.S(left);
- if (leftNeedsParens)
- t1 += H.Primitives_stringFromCharCode(41);
- t2 = _this.operator;
- t1 = t1 + H.Primitives_stringFromCharCode(32) + t2.operator + H.Primitives_stringFromCharCode(32);
- right = _this.right;
- rightNeedsParens = right instanceof V.BinaryOperationExpression && right.operator.precedence <= t2.precedence;
- if (rightNeedsParens)
- t1 += H.Primitives_stringFromCharCode(40);
- t1 += H.S(right);
- if (rightNeedsParens)
- t1 += H.Primitives_stringFromCharCode(41);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isExpression: 1
- };
- V.BinaryOperator.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- Z.BooleanExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitBooleanExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return String(this.value);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- K.ColorExpression.prototype = {
- get$span: function() {
- return this.value.originalSpan;
- },
- accept$1$1: function(visitor) {
- return visitor.visitColorExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return N.serializeValue0(this.value, true, true);
- },
- $isAstNode: 1,
- $isExpression: 1
- };
- F.FunctionExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitFunctionExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? t1 + "." : "";
- t1 += this.name.toString$0(0) + this.$arguments.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- L.IfExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitIfExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "if" + this.$arguments.toString$0(0);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- D.ListExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitListExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var _this = this,
- t1 = _this.hasBrackets,
- t2 = t1 ? H.Primitives_stringFromCharCode(91) : "",
- t3 = _this.contents,
- t4 = _this.separator === C.ListSeparator_comma ? ", " : " ";
- t4 = t2 + new H.MappedListIterable(t3, new D.ListExpression_toString_closure(_this), H._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t4);
- t1 = t1 ? t4 + H.Primitives_stringFromCharCode(93) : t4;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _list0$_elementNeedsParens$1: function(expression) {
- var t1, t2;
- if (expression instanceof D.ListExpression) {
- if (expression.contents.length < 2)
- return false;
- if (expression.hasBrackets)
- return false;
- t1 = this.separator;
- t2 = t1 === C.ListSeparator_comma;
- return t2 ? t2 : t1 !== C.ListSeparator_undecided;
- }
- if (this.separator !== C.ListSeparator_space)
- return false;
- if (expression instanceof X.UnaryOperationExpression) {
- t1 = expression.operator;
- return t1 === C.UnaryOperator_j2w || t1 === C.UnaryOperator_U4G;
- }
- return false;
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- D.ListExpression_toString_closure.prototype = {
- call$1: function(element) {
- return this.$this._list0$_elementNeedsParens$1(element) ? "(" + H.S(element) + ")" : J.toString$0$(element);
- }
- };
- A.MapExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitMapExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.pairs;
- return "(" + new H.MappedListIterable(t1, new A.MapExpression_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")";
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- A.MapExpression_toString_closure.prototype = {
- call$1: function(pair) {
- return H.S(pair.item1) + ": " + H.S(pair.item2);
- }
- };
- O.NullExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitNullExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "null";
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- T.NumberExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitNumberExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = H.S(this.value),
- t2 = this.unit;
- return t1 + (t2 == null ? "" : t2);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- T.ParenthesizedExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitParenthesizedExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return J.toString$0$(this.expression);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- T.SelectorExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitSelectorExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "&";
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- D.StringExpression.prototype = {
- get$span: function() {
- return this.text.span;
- },
- accept$1$1: function(visitor) {
- return visitor.visitStringExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- asInterpolation$1$static: function($static) {
- var quote, t1, t2, buffer, t3, t4, t5, t6, _i, value, t7, t8, i, codeUnit, next, t9, _this = this;
- if (!_this.hasQuotes)
- return _this.text;
- quote = _this._bestQuote$0();
- t1 = new P.StringBuffer("");
- t2 = [];
- buffer = new Z.InterpolationBuffer(t1, t2);
- t1._contents += H.Primitives_stringFromCharCode(quote);
- for (t3 = _this.text, t4 = t3.contents, t5 = t4.length, t6 = type$.Expression, _i = 0; _i < t5; ++_i) {
- value = t4[_i];
- if (t6._is(value)) {
- buffer._flushText$0();
- t2.push(value);
- } else if (typeof value == "string")
- for (t7 = value.length, t8 = t7 - 1, i = 0; i < t7; ++i) {
- codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
- if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
- t1._contents += H.Primitives_stringFromCharCode(92);
- t1._contents += H.Primitives_stringFromCharCode(97);
- if (i !== t8) {
- next = C.JSString_methods._codeUnitAt$1(value, i + 1);
- if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || T.isHex(next))
- t1._contents += H.Primitives_stringFromCharCode(32);
- }
- } else {
- if (codeUnit !== quote)
- if (codeUnit !== 92)
- t9 = $static && codeUnit === 35 && i < t8 && C.JSString_methods._codeUnitAt$1(value, i + 1) === 123;
- else
- t9 = true;
- else
- t9 = true;
- if (t9)
- t1._contents += H.Primitives_stringFromCharCode(92);
- t1._contents += H.Primitives_stringFromCharCode(codeUnit);
- }
- }
- }
- t1._contents += H.Primitives_stringFromCharCode(quote);
- return buffer.interpolation$1(t3.span);
- },
- asInterpolation$0: function() {
- return this.asInterpolation$1$static(false);
- },
- _bestQuote$0: function() {
- var t1, t2, containsDoubleQuote, _i, value, t3, i, codeUnit;
- for (t1 = this.text.contents, t2 = t1.length, containsDoubleQuote = false, _i = 0; _i < t2; ++_i) {
- value = t1[_i];
- if (typeof value == "string")
- for (t3 = value.length, i = 0; i < t3; ++i) {
- codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
- if (codeUnit === 39)
- return 34;
- if (codeUnit === 34)
- containsDoubleQuote = true;
- }
- }
- return containsDoubleQuote ? 39 : 34;
- },
- toString$0: function(_) {
- return this.asInterpolation$0().toString$0(0);
- },
- $isAstNode: 1,
- $isExpression: 1
- };
- X.UnaryOperationExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitUnaryOperationExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.operator,
- t2 = t1.operator;
- t1 = t1 === C.UnaryOperator_not_not ? t2 + H.Primitives_stringFromCharCode(32) : t2;
- t1 += H.S(this.operand);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.UnaryOperator.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- F.ValueExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitValueExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return J.toString$0$(this.value);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- S.VariableExpression.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitVariableExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? "$" + (t1 + ".") : "$";
- t1 += this.name;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span: function() {
- return this.span;
- }
- };
- F.Import.prototype = {$isAstNode: 1};
- B.DynamicImport.prototype = {
- toString$0: function(_) {
- return new D.StringExpression(X.Interpolation$([this.url], null), true).asInterpolation$1$static(true).get$asPlain();
- },
- $isAstNode: 1,
- $isImport: 1,
- get$span: function() {
- return this.span;
- }
- };
- Q.StaticImport.prototype = {
- toString$0: function(_) {
- var t1 = this.url.toString$0(0),
- t2 = this.supports;
- if (t2 != null)
- t1 += " supports(" + t2.toString$0(0) + ")";
- t2 = this.media;
- if (t2 != null)
- t1 += " " + t2.toString$0(0);
- t1 += H.Primitives_stringFromCharCode(59);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isImport: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.Interpolation.prototype = {
- get$asPlain: function() {
- var first,
- t1 = this.contents,
- t2 = t1.length;
- if (t2 === 0)
- return "";
- if (t2 > 1)
- return null;
- first = C.JSArray_methods.get$first(t1);
- return typeof first == "string" ? first : null;
- },
- Interpolation$2: function(contents, span) {
- var t1, t2, t3, i, t4, t5,
- _s8_ = "contents";
- for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression, i = 0; i < t2; ++i) {
- t4 = t1[i];
- t5 = typeof t4 == "string";
- if (!t5 && !t3._is(t4))
- throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May only contains Strings or Expressions."));
- if (i !== 0 && typeof t1[i - 1] == "string" && t5)
- throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
- }
- },
- toString$0: function(_) {
- var t1 = this.contents;
- return new H.MappedListIterable(t1, new X.Interpolation_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.Interpolation_toString_closure.prototype = {
- call$1: function(value) {
- return typeof value == "string" ? value : "#{" + H.S(value) + "}";
- },
- $signature: 27
- };
- B.SassNode.prototype = {};
- O.Statement.prototype = {$isAstNode: 1};
- V.AtRootRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitAtRootRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var buffer = new P.StringBuffer("@at-root "),
- t1 = this.query;
- if (t1 != null)
- buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
- t1 = this.children;
- return buffer.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- U.AtRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitAtRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = "@" + this.name.toString$0(0),
- buffer = new P.StringBuffer(t1),
- t2 = this.value;
- if (t2 != null)
- buffer._contents = t1 + (" " + t2.toString$0(0));
- t1 = this.children;
- return t1 == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + C.JSArray_methods.join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- M.CallableDeclaration.prototype = {
- get$span: function() {
- return this.span;
- }
- };
- Y.ContentBlock.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitContentBlock$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t2,
- t1 = this.$arguments;
- t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
- t2 = this.children;
- return t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
- }
- };
- Q.ContentRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitContentRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.$arguments;
- return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- Q.DebugRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitDebugRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@debug " + H.S(this.expression) + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- L.Declaration.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitDeclaration$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return H.S(this.name) + ": " + H.S(this.value) + ";";
- },
- get$span: function() {
- return this.span;
- }
- };
- V.EachRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitEachRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.variables,
- t2 = this.children;
- 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, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- V.EachRule_toString_closure.prototype = {
- call$1: function(variable) {
- return C.JSString_methods.$add("$", variable);
- }
- };
- D.ErrorRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitErrorRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@error " + H.S(this.expression) + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.ExtendRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitExtendRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@extend " + this.selector.toString$0(0);
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.ForRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitForRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var _this = this,
- t1 = "@for $" + _this.variable + " from " + H.S(_this.from) + " ",
- t2 = _this.children;
- return t1 + (_this.isExclusive ? "to" : "through") + " " + H.S(_this.to) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- L.ForwardRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitForwardRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t3, _this = this,
- t1 = "@forward " + H.S(new D.StringExpression(X.Interpolation$([J.toString$0$(_this.url)], null), true).asInterpolation$1$static(true).get$asPlain()),
- t2 = _this.shownMixinsAndFunctions;
- if (t2 != null)
- t1 = t1 + " show " + _this._forward_rule$_memberList$2(t2, _this.shownVariables);
- else {
- t2 = _this.hiddenMixinsAndFunctions;
- if (t2 != null) {
- t3 = t2._base;
- t3 = t3.get$isNotEmpty(t3);
- } else
- t3 = false;
- if (t3)
- t1 = t1 + " hide " + _this._forward_rule$_memberList$2(t2, _this.hiddenVariables);
- }
- t2 = _this.prefix;
- if (t2 != null)
- t1 += " as " + t2 + "*";
- t2 = _this.configuration;
- t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _forward_rule$_memberList$2: function(mixinsAndFunctions, variables) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_String),
- t2 = this.shownMixinsAndFunctions;
- if (t2 != null)
- for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.get$current(t2));
- t2 = this.shownVariables;
- if (t2 != null)
- for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push("$" + H.S(t2.get$current(t2)));
- return C.JSArray_methods.join$1(t1, ", ");
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- M.FunctionRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitFunctionRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return "@function " + H.S(this.name) + "(" + H.S(this.$arguments) + ") {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- }
- };
- V.IfRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitIfRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t2, t1 = {};
- t1.first = true;
- t2 = this.clauses;
- return new H.MappedListIterable(t2, new V.IfRule_toString_closure(t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$1(0, " ");
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- V.IfRule_toString_closure.prototype = {
- call$1: function(clause) {
- var t1 = this._box_0,
- $name = t1.first ? "if" : "else";
- t1.first = false;
- return "@" + $name + " " + H.S(clause.expression) + " {" + C.JSArray_methods.join$1(clause.children, " ") + "}";
- }
- };
- V.IfClause.prototype = {
- toString$0: function(_) {
- var t1 = this.expression;
- t1 = t1 == null ? "@else" : "@if " + t1.toString$0(0);
- return t1 + (" {" + C.JSArray_methods.join$1(this.children, " ") + "}");
- }
- };
- V.IfClause$__closure.prototype = {
- call$1: function(child) {
- var t1;
- if (!(child instanceof Z.VariableDeclaration))
- if (!(child instanceof M.FunctionRule))
- if (!(child instanceof T.MixinRule))
- t1 = child instanceof B.ImportRule && C.JSArray_methods.any$1(child.imports, new V.IfClause$___closure());
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- }
- };
- V.IfClause$___closure.prototype = {
- call$1: function($import) {
- return $import instanceof B.DynamicImport;
- }
- };
- B.ImportRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitImportRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@import " + C.JSArray_methods.join$1(this.imports, ", ") + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- A.IncludeRule.prototype = {
- get$spanWithoutContent: function() {
- var t2, t3,
- t1 = this.span;
- if (!(this.content == null)) {
- t2 = t1.file;
- t3 = this.$arguments.span;
- t3 = B.SpanExtensions_trim(t2.span$2(Y.FileLocation$_(t2, t1._file$_start).offset, Y.FileLocation$_(t3.file, t3._end).offset));
- t1 = t3;
- }
- return t1;
- },
- accept$1$1: function(visitor) {
- return visitor.visitIncludeRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t2, _this = this,
- t1 = _this.namespace;
- t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
- t1 += _this.name;
- t2 = _this.$arguments;
- if (!t2.get$isEmpty(t2))
- t1 += "(" + t2.toString$0(0) + ")";
- t2 = _this.content;
- t1 += t2 == null ? ";" : " " + t2.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- L.LoudComment.prototype = {
- get$span: function() {
- return this.text.span;
- },
- accept$1$1: function(visitor) {
- return visitor.visitLoudComment$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return this.text.toString$0(0);
- },
- $isAstNode: 1,
- $isStatement: 1
- };
- G.MediaRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitMediaRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return "@media " + this.query.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- T.MixinRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitMixinRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = "@mixin " + H.S(this.name),
- t2 = this.$arguments;
- if (!(t2.$arguments.length === 0 && t2.restArgument == null))
- t1 += "(" + t2.toString$0(0) + ")";
- t2 = this.children;
- t2 = t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- M.ParentStatement.prototype = {$isAstNode: 1, $isStatement: 1};
- M.ParentStatement_closure.prototype = {
- call$1: function(child) {
- var t1;
- if (!(child instanceof Z.VariableDeclaration))
- if (!(child instanceof M.FunctionRule))
- if (!(child instanceof T.MixinRule))
- t1 = child instanceof B.ImportRule && C.JSArray_methods.any$1(child.imports, new M.ParentStatement__closure());
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- }
- };
- M.ParentStatement__closure.prototype = {
- call$1: function($import) {
- return $import instanceof B.DynamicImport;
- }
- };
- B.ReturnRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitReturnRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@return " + H.S(this.expression) + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.SilentComment.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitSilentComment$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return this.text;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.StyleRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitStyleRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return this.selector.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- V.Stylesheet.prototype = {
- Stylesheet$3$plainCss: function(children, span, plainCss) {
- var t1, t2, t3, t4, _i, child;
- for (t1 = this.children, t2 = t1.length, t3 = this._forwards, t4 = this._uses, _i = 0; _i < t2; ++_i) {
- child = t1[_i];
- if (child instanceof T.UseRule)
- t4.push(child);
- else if (child instanceof L.ForwardRule)
- t3.push(child);
- else if (!(child instanceof B.SilentComment) && !(child instanceof L.LoudComment) && !(child instanceof Z.VariableDeclaration))
- break;
- }
- },
- accept$1$1: function(visitor) {
- return visitor.visitStylesheet$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return (t1 && C.JSArray_methods).join$1(t1, " ");
- },
- get$span: function() {
- return this.span;
- }
- };
- B.SupportsRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitSupportsRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return "@supports " + this.condition.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- T.UseRule.prototype = {
- UseRule$4$configuration: function(url, namespace, span, configuration) {
- var t1, t2, _i, variable;
- for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (variable.isGuarded)
- throw H.wrapException(P.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
- }
- },
- accept$1$1: function(visitor) {
- return visitor.visitUseRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.url,
- t2 = "@use " + H.S(new D.StringExpression(X.Interpolation$([J.toString$0$(t1)], null), true).asInterpolation$1$static(true).get$asPlain()),
- basename = t1.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(t1.get$pathSegments()),
- dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
- t1 = this.namespace;
- if (t1 !== C.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
- t1 = t2 + (" as " + (t1 == null ? "*" : t1));
- else
- t1 = t2;
- t2 = this.configuration;
- t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- Z.VariableDeclaration.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitVariableDeclaration$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? "$" + (t1 + ".") : "$";
- t1 += this.name + ": " + H.S(this.expression) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- Y.WarnRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitWarnRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@warn " + H.S(this.expression) + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span: function() {
- return this.span;
- }
- };
- G.WhileRule.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitWhileRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return "@while " + H.S(this.condition) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- N.SupportsCondition.prototype = {};
- L.SupportsDeclaration.prototype = {
- toString$0: function(_) {
- return "(" + H.S(this.name) + ": " + H.S(this.value) + ")";
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.SupportsInterpolation.prototype = {
- toString$0: function(_) {
- return "#{" + H.S(this.expression) + "}";
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- M.SupportsNegation.prototype = {
- toString$0: function(_) {
- var t1 = this.condition;
- if (t1 instanceof M.SupportsNegation || t1 instanceof U.SupportsOperation)
- return "not (" + t1.toString$0(0) + ")";
- else
- return "not " + t1.toString$0(0);
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- U.SupportsOperation.prototype = {
- toString$0: function(_) {
- var _this = this;
- return _this._operation$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation$_parenthesize$1(_this.right);
- },
- _operation$_parenthesize$1: function(condition) {
- var t1;
- if (!(condition instanceof M.SupportsNegation))
- t1 = condition instanceof U.SupportsOperation && condition.operator === this.operator;
- else
- t1 = true;
- return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
- },
- $isAstNode: 1,
- get$span: function() {
- return this.span;
- }
- };
- T.Selector.prototype = {
- get$isInvisible: function() {
- return false;
- },
- toString$0: function(_) {
- var visitor = N._SerializeVisitor$0(null, true, null, true, false, null, true);
- this.accept$1(visitor);
- return visitor._serialize$_buffer.toString$0(0);
- }
- };
- N.AttributeSelector.prototype = {
- accept$1$1: function(visitor) {
- var t2, _this = this,
- t1 = visitor._serialize$_buffer;
- t1.writeCharCode$1(91);
- t1.write$1(0, _this.name);
- t2 = _this.op;
- if (t2 != null) {
- t1.write$1(0, t2);
- t2 = _this.value;
- if (G.Parser_isIdentifier(t2) && !J.startsWith$1$s(t2, "--")) {
- t1.write$1(0, t2);
- t2 = _this.modifier;
- if (t2 != null)
- t1.writeCharCode$1(32);
- } else {
- visitor._visitQuotedString$1(t2);
- t2 = _this.modifier;
- if (t2 != null)
- if (visitor._style !== C.OutputStyle_compressed)
- t1.writeCharCode$1(32);
- }
- if (t2 != null)
- t1.write$1(0, t2);
- }
- t1.writeCharCode$1(93);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof N.AttributeSelector && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
- },
- get$hashCode: function(_) {
- var _this = this,
- t1 = _this.name;
- 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;
- }
- };
- N.AttributeOperator.prototype = {
- toString$0: function(_) {
- return this._attribute$_text;
- }
- };
- X.ClassSelector.prototype = {
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof X.ClassSelector && other.name === this.name;
- },
- accept$1$1: function(visitor) {
- var t1 = visitor._serialize$_buffer;
- t1.writeCharCode$1(46);
- t1.write$1(0, this.name);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1: function(suffix) {
- return new X.ClassSelector(this.name + suffix);
- },
- get$hashCode: function(_) {
- return C.JSString_methods.get$hashCode(this.name);
- }
- };
- S.ComplexSelector.prototype = {
- get$minSpecificity: function() {
- if (this._minSpecificity == null)
- this._computeSpecificity$0();
- return this._minSpecificity;
- },
- get$maxSpecificity: function() {
- if (this._maxSpecificity == null)
- this._computeSpecificity$0();
- return this._maxSpecificity;
- },
- get$isInvisible: function() {
- var t1 = this._complex$_isInvisible;
- if (t1 != null)
- return t1;
- return this._complex$_isInvisible = C.JSArray_methods.any$1(this.components, new S.ComplexSelector_isInvisible_closure());
- },
- accept$1$1: function(visitor) {
- return visitor.visitComplexSelector$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- _computeSpecificity$0: function() {
- var t1, t2, component, t3, _this = this,
- _i = _this._maxSpecificity = _this._minSpecificity = 0;
- for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
- component = t1[_i];
- if (component instanceof X.CompoundSelector) {
- t3 = _this._minSpecificity;
- if (component._compound$_minSpecificity == null)
- component._compound$_computeSpecificity$0();
- _this._minSpecificity = t3 + component._compound$_minSpecificity;
- t3 = _this._maxSpecificity;
- if (component._compound$_maxSpecificity == null)
- component._compound$_computeSpecificity$0();
- _this._maxSpecificity = t3 + component._compound$_maxSpecificity;
- }
- }
- },
- get$hashCode: function(_) {
- return C.C_ListEquality.hash$1(this.components);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof S.ComplexSelector && C.C_ListEquality.equals$2(this.components, other.components);
- }
- };
- S.ComplexSelector_isInvisible_closure.prototype = {
- call$1: function(component) {
- return component instanceof X.CompoundSelector && component.get$isInvisible();
- }
- };
- S.ComplexSelectorComponent.prototype = {};
- S.Combinator.prototype = {
- toString$0: function(_) {
- return this._complex$_text;
- },
- $isComplexSelectorComponent: 1
- };
- X.CompoundSelector.prototype = {
- get$isInvisible: function() {
- return C.JSArray_methods.any$1(this.components, new X.CompoundSelector_isInvisible_closure());
- },
- accept$1$1: function(visitor) {
- return visitor.visitCompoundSelector$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- _compound$_computeSpecificity$0: function() {
- var t1, t2, simple, _this = this,
- _i = _this._compound$_maxSpecificity = _this._compound$_minSpecificity = 0;
- for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
- simple = t1[_i];
- _this._compound$_minSpecificity = _this._compound$_minSpecificity + simple.get$minSpecificity();
- _this._compound$_maxSpecificity = _this._compound$_maxSpecificity + simple.get$maxSpecificity();
- }
- },
- get$hashCode: function(_) {
- return C.C_ListEquality.hash$1(this.components);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof X.CompoundSelector && C.C_ListEquality.equals$2(this.components, other.components);
- },
- $isComplexSelectorComponent: 1
- };
- X.CompoundSelector_isInvisible_closure.prototype = {
- call$1: function(component) {
- return component.get$isInvisible();
- }
- };
- N.IDSelector.prototype = {
- get$minSpecificity: function() {
- return H._asIntNullable(Math.pow(M.SimpleSelector.prototype.get$minSpecificity.call(this), 2));
- },
- accept$1$1: function(visitor) {
- var t1 = visitor._serialize$_buffer;
- t1.writeCharCode$1(35);
- t1.write$1(0, this.name);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1: function(suffix) {
- return new N.IDSelector(this.name + suffix);
- },
- unify$1: function(compound) {
- if (C.JSArray_methods.any$1(compound, new N.IDSelector_unify_closure(this)))
- return null;
- return this.super$SimpleSelector$unify(compound);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof N.IDSelector && other.name === this.name;
- },
- get$hashCode: function(_) {
- return C.JSString_methods.get$hashCode(this.name);
- }
- };
- N.IDSelector_unify_closure.prototype = {
- call$1: function(simple) {
- var t1;
- if (simple instanceof N.IDSelector) {
- t1 = simple.name;
- t1 = this.$this.name !== t1;
- } else
- t1 = false;
- return t1;
- }
- };
- D.SelectorList.prototype = {
- get$isInvisible: function() {
- return C.JSArray_methods.every$1(this.components, new D.SelectorList_isInvisible_closure());
- },
- get$asSassList: function() {
- var t1 = this.components;
- return D.SassList$(new H.MappedListIterable(t1, new D.SelectorList_asSassList_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), C.ListSeparator_comma, false);
- },
- accept$1$1: function(visitor) {
- return visitor.visitSelectorList$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1: function(other) {
- var t1 = this.components,
- t2 = H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector>"),
- contents = P.List_List$from(new H.ExpandIterable(t1, new D.SelectorList_unify_closure(other), t2), true, t2._eval$1("Iterable.E"));
- return contents.length === 0 ? null : D.SelectorList$(contents);
- },
- resolveParentSelectors$2$implicitParent: function($parent, implicitParent) {
- var t1, _this = this;
- if ($parent == null) {
- if (!C.JSArray_methods.any$1(_this.components, _this.get$_complexContainsParentSelector()))
- return _this;
- throw H.wrapException(E.SassScriptException$('Top-level selectors may not contain the parent selector "&".'));
- }
- t1 = _this.components;
- 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$.ComplexSelector));
- },
- resolveParentSelectors$1: function($parent) {
- return this.resolveParentSelectors$2$implicitParent($parent, true);
- },
- _complexContainsParentSelector$1: function(complex) {
- return C.JSArray_methods.any$1(complex.components, new D.SelectorList__complexContainsParentSelector_closure());
- },
- _resolveParentSelectorsCompound$2: function(compound, $parent) {
- var resolvedMembers0, parentSelector, t1,
- resolvedMembers = compound.components,
- containsSelectorPseudo = C.JSArray_methods.any$1(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure());
- if (!containsSelectorPseudo && !(C.JSArray_methods.get$first(resolvedMembers) instanceof M.ParentSelector))
- return null;
- resolvedMembers0 = containsSelectorPseudo ? new H.MappedListIterable(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure0($parent), H._arrayInstanceType(resolvedMembers)._eval$1("MappedListIterable<1,SimpleSelector>")) : resolvedMembers;
- parentSelector = C.JSArray_methods.get$first(resolvedMembers);
- if (parentSelector instanceof M.ParentSelector) {
- if (resolvedMembers.length === 1 && parentSelector.suffix == null)
- return $parent.components;
- } else
- return H.setRuntimeTypeInfo([S.ComplexSelector$(H.setRuntimeTypeInfo([X.CompoundSelector$(resolvedMembers0)], type$.JSArray_ComplexSelectorComponent), false)], type$.JSArray_ComplexSelector);
- t1 = $parent.components;
- return new H.MappedListIterable(t1, new D.SelectorList__resolveParentSelectorsCompound_closure1(compound, resolvedMembers0), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
- },
- get$hashCode: function(_) {
- return C.C_ListEquality.hash$1(this.components);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof D.SelectorList && C.C_ListEquality.equals$2(this.components, other.components);
- }
- };
- D.SelectorList_isInvisible_closure.prototype = {
- call$1: function(complex) {
- return complex.get$isInvisible();
- }
- };
- D.SelectorList_asSassList_closure.prototype = {
- call$1: function(complex) {
- var t1 = complex.components;
- return D.SassList$(new H.MappedListIterable(t1, new D.SelectorList_asSassList__closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), C.ListSeparator_space, false);
- }
- };
- D.SelectorList_asSassList__closure.prototype = {
- call$1: function(component) {
- return new D.SassString(J.toString$0$(component), false);
- }
- };
- D.SelectorList_unify_closure.prototype = {
- call$1: function(complex1) {
- var t1 = this.other.components;
- return new H.ExpandIterable(t1, new D.SelectorList_unify__closure(complex1), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector>"));
- }
- };
- D.SelectorList_unify__closure.prototype = {
- call$1: function(complex2) {
- var unified = Y.unifyComplex(H.setRuntimeTypeInfo([this.complex1.components, complex2.components], type$.JSArray_List_ComplexSelectorComponent));
- if (unified == null)
- return C.List_empty4;
- return J.map$1$1$ax(unified, new D.SelectorList_unify___closure(), type$.ComplexSelector);
- }
- };
- D.SelectorList_unify___closure.prototype = {
- call$1: function(complex) {
- return S.ComplexSelector$(complex, false);
- }
- };
- D.SelectorList_resolveParentSelectors_closure.prototype = {
- call$1: function(complex) {
- 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 = {},
- t1 = _this.$this;
- if (!t1._complexContainsParentSelector$1(complex)) {
- if (!_this.implicitParent)
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
- t1 = _this.parent.components;
- return new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors__closure(complex), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
- }
- t2 = type$.JSArray_ComplexSelectorComponent;
- t3 = type$.JSArray_List_ComplexSelectorComponent;
- newComplexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], t2)], t3);
- t4 = type$.JSArray_bool;
- _box_0.lineBreaks = H.setRuntimeTypeInfo([false], t4);
- for (t5 = complex.components, t6 = t5.length, t7 = _this.parent, _i = 0; _i < t6; ++_i) {
- component = t5[_i];
- if (component instanceof X.CompoundSelector) {
- resolved = t1._resolveParentSelectorsCompound$2(component, t7);
- if (resolved == null) {
- for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
- newComplexes[_i0].push(component);
- continue;
- }
- previousLineBreaks = _box_0.lineBreaks;
- newComplexes0 = H.setRuntimeTypeInfo([], t3);
- _box_0.lineBreaks = H.setRuntimeTypeInfo([], t4);
- 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) {
- newComplex = newComplexes[_i0];
- i0 = i + 1;
- lineBreak = previousLineBreaks[i];
- for (t10 = t9.get$iterator(resolved), t11 = !lineBreak; t10.moveNext$0();) {
- t12 = t10.get$current(t10);
- t13 = H.setRuntimeTypeInfo([], t2);
- for (t14 = C.JSArray_methods.get$iterator(newComplex); t14.moveNext$0();)
- t13.push(t14.get$current(t14));
- for (t14 = t12.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1)
- t13.push(t14[_i1]);
- newComplexes0.push(t13);
- t13 = _box_0.lineBreaks;
- t13.push(!t11 || t12.lineBreak);
- }
- }
- newComplexes = newComplexes0;
- } else
- for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
- newComplexes[_i0].push(component);
- }
- _box_0.i = 0;
- return new H.MappedListIterable(newComplexes, new D.SelectorList_resolveParentSelectors__closure0(_box_0), H._arrayInstanceType(newComplexes)._eval$1("MappedListIterable<1,ComplexSelector>"));
- }
- };
- D.SelectorList_resolveParentSelectors__closure.prototype = {
- call$1: function(parentComplex) {
- var t2, t3, _i, t4,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent);
- for (t2 = parentComplex.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i]);
- for (t2 = this.complex, t3 = t2.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
- t1.push(t3[_i]);
- return S.ComplexSelector$(t1, t2.lineBreak || parentComplex.lineBreak);
- }
- };
- D.SelectorList_resolveParentSelectors__closure0.prototype = {
- call$1: function(newComplex) {
- var t1 = this._box_0;
- return S.ComplexSelector$(newComplex, t1.lineBreaks[t1.i++]);
- }
- };
- D.SelectorList__complexContainsParentSelector_closure.prototype = {
- call$1: function(component) {
- return component instanceof X.CompoundSelector && C.JSArray_methods.any$1(component.components, new D.SelectorList__complexContainsParentSelector__closure());
- }
- };
- D.SelectorList__complexContainsParentSelector__closure.prototype = {
- call$1: function(simple) {
- var t1;
- if (!(simple instanceof M.ParentSelector))
- if (simple instanceof D.PseudoSelector) {
- t1 = simple.selector;
- t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector());
- } else
- t1 = false;
- else
- t1 = true;
- return t1;
- }
- };
- D.SelectorList__resolveParentSelectorsCompound_closure.prototype = {
- call$1: function(simple) {
- var t1;
- if (simple instanceof D.PseudoSelector) {
- t1 = simple.selector;
- t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector());
- } else
- t1 = false;
- return t1;
- }
- };
- D.SelectorList__resolveParentSelectorsCompound_closure0.prototype = {
- call$1: function(simple) {
- var t1, t2, t3;
- if (simple instanceof D.PseudoSelector) {
- t1 = simple.selector;
- if (t1 == null)
- return simple;
- if (!C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector()))
- return simple;
- t1 = t1.resolveParentSelectors$2$implicitParent(this.parent, false);
- t2 = simple.name;
- t3 = simple.isClass;
- return D.PseudoSelector$(t2, simple.argument, !t3, t1);
- } else
- return simple;
- }
- };
- D.SelectorList__resolveParentSelectorsCompound_closure1.prototype = {
- call$1: function(complex) {
- var suffix, t2, t3, t4, last, _i,
- t1 = complex.components,
- lastComponent = C.JSArray_methods.get$last(t1);
- if (!(lastComponent instanceof X.CompoundSelector))
- throw H.wrapException(E.SassScriptException$('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.'));
- suffix = type$.ParentSelector._as(C.JSArray_methods.get$first(this.compound.components)).suffix;
- t2 = type$.JSArray_SimpleSelector;
- if (suffix != null) {
- t2 = H.setRuntimeTypeInfo([], t2);
- 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();)
- t2.push(t4.__internal$_current);
- t2.push(C.JSArray_methods.get$last(t3).addSuffix$1(suffix));
- for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();)
- t2.push(t3.__internal$_current);
- last = X.CompoundSelector$(t2);
- } else {
- t2 = H.setRuntimeTypeInfo([], t2);
- for (t3 = lastComponent.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
- t2.push(t3[_i]);
- for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();)
- t2.push(t3.__internal$_current);
- last = X.CompoundSelector$(t2);
- }
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent);
- 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();)
- t2.push(t1.__internal$_current);
- t2.push(last);
- return S.ComplexSelector$(t2, complex.lineBreak);
- }
- };
- M.ParentSelector.prototype = {
- accept$1$1: function(visitor) {
- var t2,
- t1 = visitor._serialize$_buffer;
- t1.writeCharCode$1(38);
- t2 = this.suffix;
- if (t2 != null)
- t1.write$1(0, t2);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1: function(compound) {
- return H.throwExpression(P.UnsupportedError$("& doesn't support unification."));
- }
- };
- N.PlaceholderSelector.prototype = {
- get$isInvisible: function() {
- return true;
- },
- accept$1$1: function(visitor) {
- var t1 = visitor._serialize$_buffer;
- t1.writeCharCode$1(37);
- t1.write$1(0, this.name);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1: function(suffix) {
- return new N.PlaceholderSelector(this.name + suffix);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof N.PlaceholderSelector && other.name === this.name;
- },
- get$hashCode: function(_) {
- return C.JSString_methods.get$hashCode(this.name);
- }
- };
- D.PseudoSelector.prototype = {
- get$minSpecificity: function() {
- if (this._pseudo$_minSpecificity == null)
- this._pseudo$_computeSpecificity$0();
- return this._pseudo$_minSpecificity;
- },
- get$maxSpecificity: function() {
- if (this._pseudo$_maxSpecificity == null)
- this._pseudo$_computeSpecificity$0();
- return this._pseudo$_maxSpecificity;
- },
- get$isInvisible: function() {
- var t1 = this.selector;
- if (t1 == null)
- return false;
- return this.name !== "not" && t1.get$isInvisible();
- },
- addSuffix$1: function(suffix) {
- var _this = this;
- if (_this.argument != null || _this.selector != null)
- _this.super$SimpleSelector$addSuffix(suffix);
- return D.PseudoSelector$(_this.name + suffix, null, !_this.isClass, null);
- },
- unify$1: function(compound) {
- var result, t1, t2, addedThis, _i, simple, _this = this;
- if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector)
- return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector));
- if (C.JSArray_methods.contains$1(compound, _this))
- return compound;
- result = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
- for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
- simple = compound[_i];
- if (simple instanceof D.PseudoSelector && !simple.isClass) {
- if (t2)
- return null;
- result.push(_this);
- addedThis = true;
- }
- result.push(simple);
- }
- if (!addedThis)
- result.push(_this);
- return result;
- },
- _pseudo$_computeSpecificity$0: function() {
- var t1, _i, t2, complex, t3, t4, _this = this;
- if (!_this.isClass) {
- _this._pseudo$_maxSpecificity = _this._pseudo$_minSpecificity = 1;
- return;
- }
- t1 = _this.selector;
- if (t1 == null) {
- _this._pseudo$_minSpecificity = M.SimpleSelector.prototype.get$minSpecificity.call(_this);
- _this._pseudo$_maxSpecificity = M.SimpleSelector.prototype.get$maxSpecificity.call(_this);
- return;
- }
- if (_this.name === "not") {
- _i = _this._pseudo$_maxSpecificity = _this._pseudo$_minSpecificity = 0;
- for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
- complex = t1[_i];
- t3 = _this._pseudo$_minSpecificity;
- if (complex._minSpecificity == null)
- complex._computeSpecificity$0();
- t4 = complex._minSpecificity;
- _this._pseudo$_minSpecificity = Math.max(H.checkNum(t3), H.checkNum(t4));
- t4 = _this._pseudo$_maxSpecificity;
- if (complex._maxSpecificity == null)
- complex._computeSpecificity$0();
- t3 = complex._maxSpecificity;
- _this._pseudo$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
- }
- } else {
- _this._pseudo$_minSpecificity = H._asIntNullable(Math.pow(M.SimpleSelector.prototype.get$minSpecificity.call(_this), 3));
- _i = _this._pseudo$_maxSpecificity = 0;
- for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
- complex = t1[_i];
- t3 = _this._pseudo$_minSpecificity;
- if (complex._minSpecificity == null)
- complex._computeSpecificity$0();
- t4 = complex._minSpecificity;
- _this._pseudo$_minSpecificity = Math.min(H.checkNum(t3), H.checkNum(t4));
- t4 = _this._pseudo$_maxSpecificity;
- if (complex._maxSpecificity == null)
- complex._computeSpecificity$0();
- t3 = complex._maxSpecificity;
- _this._pseudo$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
- }
- }
- },
- accept$1$1: function(visitor) {
- return visitor.visitPseudoSelector$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof D.PseudoSelector && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
- },
- get$hashCode: function(_) {
- var _this = this;
- 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;
- }
- };
- D.QualifiedName.prototype = {
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof D.QualifiedName && other.name === this.name && other.namespace == this.namespace;
- },
- get$hashCode: function(_) {
- return C.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
- },
- toString$0: function(_) {
- var t1 = this.namespace,
- t2 = this.name;
- return t1 == null ? t2 : t1 + "|" + t2;
- }
- };
- M.SimpleSelector.prototype = {
- get$minSpecificity: function() {
- return 1000;
- },
- get$maxSpecificity: function() {
- return this.get$minSpecificity();
- },
- addSuffix$1: function(suffix) {
- return H.throwExpression(E.SassScriptException$('Invalid parent selector "' + this.toString$0(0) + '"'));
- },
- unify$1: function(compound) {
- var result, t1, addedThis, _i, simple, _this = this;
- if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector)
- return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector));
- if (C.JSArray_methods.contains$1(compound, _this))
- return compound;
- result = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
- for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
- simple = compound[_i];
- if (!addedThis && simple instanceof D.PseudoSelector) {
- result.push(_this);
- addedThis = true;
- }
- result.push(simple);
- }
- if (!addedThis)
- result.push(_this);
- return result;
- }
- };
- F.TypeSelector.prototype = {
- get$minSpecificity: function() {
- return 1;
- },
- accept$1$1: function(visitor) {
- visitor._serialize$_buffer.write$1(0, this.name);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1: function(suffix) {
- var t1 = this.name;
- return new F.TypeSelector(new D.QualifiedName(t1.name + suffix, t1.namespace));
- },
- unify$1: function(compound) {
- var unified, t1, t2, _i;
- if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector) {
- unified = Y.unifyUniversalAndElement(this, C.JSArray_methods.get$first(compound));
- if (unified == null)
- return null;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
- t1.push(unified);
- for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- return t1;
- } else {
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
- t1.push(this);
- for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
- t1.push(compound[_i]);
- return t1;
- }
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof F.TypeSelector && other.name.$eq(0, this.name);
- },
- get$hashCode: function(_) {
- var t1 = this.name;
- return C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
- }
- };
- N.UniversalSelector.prototype = {
- get$minSpecificity: function() {
- return 0;
- },
- accept$1$1: function(visitor) {
- var t2,
- t1 = this.namespace;
- if (t1 != null) {
- t2 = visitor._serialize$_buffer;
- t2.write$1(0, t1);
- t2.writeCharCode$1(124);
- }
- visitor._serialize$_buffer.writeCharCode$1(42);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1: function(compound) {
- var unified, t1, t2, _i, _this = this;
- if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector) {
- unified = Y.unifyUniversalAndElement(_this, C.JSArray_methods.get$first(compound));
- if (unified == null)
- return null;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
- t1.push(unified);
- for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- return t1;
- }
- t1 = _this.namespace;
- if (t1 != null && t1 !== "*") {
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector);
- t1.push(_this);
- for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
- t1.push(compound[_i]);
- return t1;
- }
- if (compound.length !== 0)
- return compound;
- return H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof N.UniversalSelector && other.namespace == this.namespace;
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.namespace);
- }
- };
- X._compileStylesheet_closure0.prototype = {
- call$1: function(url) {
- var t1, t2, _null = null;
- if (url === "")
- t1 = J.toString$0$(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));
- else {
- t1 = P.Uri_parse(url);
- t2 = this.importCache._async_import_cache$_resultsCache.$index(0, t1);
- t2 = t2 == null ? _null : t2.get$sourceMapUrl();
- t1 = J.toString$0$(t2 == null ? t1 : t2);
- }
- return t1;
- }
- };
- X.CompileResult.prototype = {};
- Q.AsyncEnvironment.prototype = {
- closure$0: function() {
- var t5, t6, t7, _this = this,
- t1 = _this._async_environment$_forwardedModules,
- t2 = _this._async_environment$_forwardedModuleNodes,
- t3 = _this._async_environment$_nestedForwardedModules,
- t4 = _this._async_environment$_variables;
- t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
- t5 = _this._async_environment$_variableNodes;
- if (t5 == null)
- t5 = null;
- else
- t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
- t6 = _this._async_environment$_functions;
- t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
- t7 = _this._async_environment$_mixins;
- t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
- 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);
- },
- addModule$3$namespace: function(module, nodeWithSpan, namespace) {
- var t1, t2, _this = this;
- if (namespace == null) {
- _this._async_environment$_globalModules.add$1(0, module);
- _this._async_environment$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
- _this._async_environment$_allModules.push(module);
- for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._async_environment$_variables).get$keys()); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (module.get$variables().containsKey$1(t2))
- throw H.wrapException(E.SassScriptException$('This module and the new module both define a variable named "$' + H.S(t2) + '".'));
- }
- } else {
- t1 = _this._async_environment$_modules;
- if (t1.containsKey$1(namespace))
- throw H.wrapException(E.MultiSpanSassScriptException$("There's already a module with namespace \"" + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._async_environment$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.FileSpan, type$.String)));
- t1.$indexSet(0, namespace, module);
- _this._async_environment$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
- _this._async_environment$_allModules.push(module);
- }
- },
- forwardModule$2: function(module, rule) {
- var view, t1, t2, _this = this;
- if (_this._async_environment$_forwardedModules == null)
- _this._async_environment$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_AsyncCallable);
- if (_this._async_environment$_forwardedModuleNodes == null)
- _this._async_environment$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
- view = R.ForwardedModuleView_ifNecessary(module, rule, type$.AsyncCallable);
- for (t1 = _this._async_environment$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
- t2 = t1._collection$_current;
- _this._async_environment$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
- _this._async_environment$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
- _this._async_environment$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
- }
- _this._async_environment$_allModules.push(module);
- _this._async_environment$_forwardedModules.add$1(0, view);
- _this._async_environment$_forwardedModuleNodes.$indexSet(0, view, rule);
- },
- _async_environment$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
- var larger, smaller, t1, t2, $name;
- if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
- larger = oldMembers;
- smaller = newMembers;
- } else {
- larger = newMembers;
- smaller = oldMembers;
- }
- for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- if (!larger.containsKey$1($name))
- continue;
- if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
- continue;
- if (t2)
- $name = "$" + H.S($name);
- 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$.FileSpan, type$.String)));
- }
- },
- importForwards$1: function(module) {
- var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
- t1 = module._async_environment$_environment,
- forwarded = t1._async_environment$_forwardedModules;
- if (forwarded == null)
- return;
- if (_this._async_environment$_forwardedModules != null) {
- t2 = P.LinkedHashSet_LinkedHashSet(type$.Module_AsyncCallable);
- for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._async_environment$_globalModules; t3.moveNext$0();) {
- t5 = t3._collection$_current;
- if (!_this._async_environment$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
- t2.add$1(0, t5);
- }
- forwarded = t2;
- }
- if (_this._async_environment$_forwardedModules == null)
- _this._async_environment$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_AsyncCallable);
- if (_this._async_environment$_forwardedModuleNodes == null)
- _this._async_environment$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
- t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String>");
- t3 = t2._eval$1("Iterable.E");
- forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure(), t2), t3);
- forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure0(), t2), t3);
- forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure1(), t2), t3);
- t2 = _this._async_environment$_variables;
- t3 = t2.length;
- if (t3 === 1) {
- for (t3 = _this._async_environment$_globalModules, t4 = t3.toList$0(0), t5 = t4.length, t6 = type$.AsyncCallable, t7 = _this._async_environment$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
- module = t4[_i];
- shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
- if (shadowed != null) {
- t3.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view$_inner;
- t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8) {
- t3.add$1(0, shadowed);
- t7.$indexSet(0, shadowed, t7.remove$1(0, module));
- }
- }
- }
- for (t4 = _this._async_environment$_forwardedModules.toList$0(0), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
- module = t4[_i];
- shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
- if (shadowed != null) {
- _this._async_environment$_forwardedModules.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view$_inner;
- t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8) {
- _this._async_environment$_forwardedModules.add$1(0, shadowed);
- t8 = _this._async_environment$_forwardedModuleNodes;
- t8.$indexSet(0, shadowed, t8.remove$1(0, module));
- }
- }
- }
- t3.addAll$1(0, forwarded);
- t7.addAll$1(0, t1._async_environment$_forwardedModuleNodes);
- _this._async_environment$_forwardedModules.addAll$1(0, forwarded);
- _this._async_environment$_forwardedModuleNodes.addAll$1(0, t1._async_environment$_forwardedModuleNodes);
- } else {
- t1 = _this._async_environment$_nestedForwardedModules;
- 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$.List_Module_AsyncCallable) : t1), forwarded);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment$_variableNodes, t4 = t3 != null, t5 = _this._async_environment$_variableIndices; t1.moveNext$0();) {
- t6 = t1._collection$_current;
- t5.remove$1(0, t6);
- J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
- if (t4)
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment$_functionIndices, t3 = _this._async_environment$_functions; t1.moveNext$0();) {
- t4 = t1._collection$_current;
- t2.remove$1(0, t4);
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment$_mixinIndices, t3 = _this._async_environment$_mixins; t1.moveNext$0();) {
- t4 = t1._collection$_current;
- t2.remove$1(0, t4);
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
- }
- },
- getVariable$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._async_environment$_getModule$1(namespace).get$variables().$index(0, $name);
- if (_this._async_environment$_lastVariableName === $name) {
- t1 = J.$index$asx(_this._async_environment$_variables[_this._async_environment$_lastVariableIndex], $name);
- return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
- }
- t1 = _this._async_environment$_variableIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = index;
- t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
- return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
- }
- index = _this._async_environment$_variableIndex$1($name);
- if (index == null)
- return _this._async_environment$_getVariableFromGlobalModule$1($name);
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = index;
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
- return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
- },
- getVariable$1: function($name) {
- return this.getVariable$2$namespace($name, null);
- },
- _async_environment$_getVariableFromGlobalModule$1: function($name) {
- return this._async_environment$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment__getVariableFromGlobalModule_closure($name));
- },
- getVariableNode$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._async_environment$_getModule$1(namespace).get$variableNodes().$index(0, $name);
- if (_this._async_environment$_lastVariableName === $name) {
- t1 = J.$index$asx(_this._async_environment$_variableNodes[_this._async_environment$_lastVariableIndex], $name);
- return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- t1 = _this._async_environment$_variableIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = index;
- t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
- return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- index = _this._async_environment$_variableIndex$1($name);
- if (index == null)
- return _this._async_environment$_getVariableNodeFromGlobalModule$1($name);
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = index;
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
- return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
- },
- _async_environment$_getVariableNodeFromGlobalModule$1: function($name) {
- var t1, value;
- for (t1 = this._async_environment$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
- value = t1._collection$_current.get$variableNodes().$index(0, $name);
- if (value != null)
- return value;
- }
- return null;
- },
- globalVariableExists$2$namespace: function($name, namespace) {
- if (namespace != null)
- return this._async_environment$_getModule$1(namespace).get$variables().containsKey$1($name);
- if (C.JSArray_methods.get$first(this._async_environment$_variables).containsKey$1($name))
- return true;
- return this._async_environment$_getVariableFromGlobalModule$1($name) != null;
- },
- globalVariableExists$1: function($name) {
- return this.globalVariableExists$2$namespace($name, null);
- },
- _async_environment$_variableIndex$1: function($name) {
- var t1, i;
- for (t1 = this._async_environment$_variables, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
- var t1, moduleWithName, t2, t3, index, _this = this;
- if (namespace != null) {
- _this._async_environment$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
- return;
- }
- if (global || _this._async_environment$_variables.length === 1) {
- _this._async_environment$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure(_this, $name));
- t1 = _this._async_environment$_variables;
- if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
- moduleWithName = _this._async_environment$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment_setVariable_closure0($name));
- if (moduleWithName != null) {
- moduleWithName.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
- t1 = _this._async_environment$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
- return;
- }
- if (_this._async_environment$_nestedForwardedModules != null && !_this._async_environment$_variableIndices.containsKey$1($name) && _this._async_environment$_variableIndex$1($name) == null) {
- t1 = _this._async_environment$_nestedForwardedModules;
- t1.toString;
- t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
- t1 = new H.ListIterator(t1, t1.get$length(t1));
- for (; t1.moveNext$0();)
- for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- if (t3.get$variables().containsKey$1($name)) {
- t3.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- }
- index = _this._async_environment$_lastVariableName === $name ? _this._async_environment$_lastVariableIndex : _this._async_environment$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure1(_this, $name));
- if (!_this._async_environment$_inSemiGlobalScope && index === 0) {
- index = _this._async_environment$_variables.length - 1;
- _this._async_environment$_variableIndices.$indexSet(0, $name, index);
- }
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = index;
- J.$indexSet$ax(_this._async_environment$_variables[index], $name, value);
- t1 = _this._async_environment$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(t1[index], $name, nodeWithSpan);
- },
- setVariable$4$global: function($name, value, nodeWithSpan, global) {
- return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
- },
- setLocalVariable$3: function($name, value, nodeWithSpan) {
- var index, _this = this,
- t1 = _this._async_environment$_variables,
- t2 = t1.length;
- _this._async_environment$_lastVariableName = $name;
- index = _this._async_environment$_lastVariableIndex = t2 - 1;
- _this._async_environment$_variableIndices.$indexSet(0, $name, index);
- J.$indexSet$ax(t1[index], $name, value);
- t1 = _this._async_environment$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(t1[index], $name, nodeWithSpan);
- },
- getFunction$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null) {
- t1 = _this._async_environment$_getModule$1(namespace);
- return t1.get$functions(t1).$index(0, $name);
- }
- t1 = _this._async_environment$_functionIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
- return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
- }
- index = _this._async_environment$_functionIndex$1($name);
- if (index == null)
- return _this._async_environment$_getFunctionFromGlobalModule$1($name);
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
- return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
- },
- _async_environment$_getFunctionFromGlobalModule$1: function($name) {
- return this._async_environment$_fromOneModule$3($name, "function", new Q.AsyncEnvironment__getFunctionFromGlobalModule_closure($name));
- },
- _async_environment$_functionIndex$1: function($name) {
- var t1, i;
- for (t1 = this._async_environment$_functions, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- getMixin$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._async_environment$_getModule$1(namespace).get$mixins().$index(0, $name);
- t1 = _this._async_environment$_mixinIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
- return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
- }
- index = _this._async_environment$_mixinIndex$1($name);
- if (index == null)
- return _this._async_environment$_getMixinFromGlobalModule$1($name);
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
- return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
- },
- _async_environment$_getMixinFromGlobalModule$1: function($name) {
- return this._async_environment$_fromOneModule$3($name, "mixin", new Q.AsyncEnvironment__getMixinFromGlobalModule_closure($name));
- },
- _async_environment$_mixinIndex$1: function($name) {
- var t1, i;
- for (t1 = this._async_environment$_mixins, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- withContent$2: function($content, callback) {
- return this.withContent$body$AsyncEnvironment($content, callback);
- },
- withContent$body$AsyncEnvironment: function($content, callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, oldContent;
- var $async$withContent$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldContent = $async$self._async_environment$_content;
- $async$self._async_environment$_content = $content;
- $async$goto = 2;
- return P._asyncAwait(callback.call$0(), $async$withContent$2);
- case 2:
- // returning from await.
- $async$self._async_environment$_content = oldContent;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$withContent$2, $async$completer);
- },
- asMixin$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, oldInMixin;
- var $async$asMixin$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldInMixin = $async$self._async_environment$_inMixin;
- $async$self._async_environment$_inMixin = true;
- $async$goto = 2;
- return P._asyncAwait(callback.call$0(), $async$asMixin$1);
- case 2:
- // returning from await.
- $async$self._async_environment$_inMixin = oldInMixin;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$asMixin$1, $async$completer);
- },
- scope$1$3$semiGlobal$when: function(callback, semiGlobal, when, $T) {
- return this.scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $T);
- },
- scope$1$1: function(callback, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
- },
- scope$1$2$when: function(callback, when, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
- },
- scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
- return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
- },
- scope$body$AsyncEnvironment: function(callback, semiGlobal, when, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5;
- var $async$scope$1$3$semiGlobal$when = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = !when ? 3 : 4;
- break;
- case 3:
- // then
- wasInSemiGlobalScope = $async$self._async_environment$_inSemiGlobalScope;
- $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
- $async$handler = 5;
- $async$goto = 8;
- return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
- case 8:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- $async$next = [1];
- // goto finally
- $async$goto = 6;
- break;
- $async$next.push(7);
- // goto finally
- $async$goto = 6;
- break;
- case 5:
- // uncaught
- $async$next = [2];
- case 6:
- // finally
- $async$handler = 2;
- $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 7:
- // after finally
- case 4:
- // join
- semiGlobal = semiGlobal && $async$self._async_environment$_inSemiGlobalScope;
- wasInSemiGlobalScope0 = $async$self._async_environment$_inSemiGlobalScope;
- $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
- t1 = $async$self._async_environment$_variables;
- t2 = type$.String;
- C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
- t3 = $async$self._async_environment$_variableNodes;
- if (t3 != null)
- C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
- t3 = $async$self._async_environment$_functions;
- t4 = type$.AsyncCallable;
- C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
- t5 = $async$self._async_environment$_mixins;
- C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
- t4 = $async$self._async_environment$_nestedForwardedModules;
- if (t4 != null)
- C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable));
- $async$handler = 9;
- $async$goto = 12;
- return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
- case 12:
- // returning from await.
- t2 = $async$result;
- $async$returnValue = t2;
- $async$next = [1];
- // goto finally
- $async$goto = 10;
- break;
- $async$next.push(11);
- // goto finally
- $async$goto = 10;
- break;
- case 9:
- // uncaught
- $async$next = [2];
- case 10:
- // finally
- $async$handler = 2;
- $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope0;
- $async$self._async_environment$_lastVariableIndex = $async$self._async_environment$_lastVariableName = null;
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = $async$self._async_environment$_variableIndices; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- t2.remove$1(0, $name);
- }
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = $async$self._async_environment$_functionIndices; t1.moveNext$0();) {
- name0 = t1.get$current(t1);
- t2.remove$1(0, name0);
- }
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = $async$self._async_environment$_mixinIndices; t1.moveNext$0();) {
- name1 = t1.get$current(t1);
- t2.remove$1(0, name1);
- }
- t1 = $async$self._async_environment$_nestedForwardedModules;
- if (t1 != null)
- C.JSArray_methods.removeLast$0(t1);
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 11:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
- },
- toImplicitConfiguration$0: function() {
- var t2, t3, t4, t5, i, values, nodes, t6, t7,
- t1 = type$.String,
- configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue);
- for (t2 = this._async_environment$_variables, t3 = this._async_environment$_variableNodes, t4 = t3 == null, t5 = type$.AstNode, i = 0; i < t2.length; ++i) {
- values = t2[i];
- nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
- for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
- t7 = t6.get$current(t6);
- configuration.$indexSet(0, t7, new Z.ConfiguredValue(values.$index(0, t7), null, nodes.$index(0, t7)));
- }
- }
- return new A.Configuration(configuration, null, true);
- },
- _async_environment$_getModule$1: function(namespace) {
- var module = this._async_environment$_modules.$index(0, namespace);
- if (module != null)
- return module;
- throw H.wrapException(E.SassScriptException$('There is no module with the namespace "' + namespace + '".'));
- },
- _async_environment$_fromOneModule$1$3: function($name, type, callback) {
- var t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
- t1 = this._async_environment$_nestedForwardedModules;
- if (t1 != null)
- 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();)
- for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- value = callback.call$1(t2.__internal$_current);
- if (value != null)
- return value;
- }
- for (t1 = this._async_environment$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.AsyncCallable, value = null, identity = null; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- valueInModule = callback.call$1(t3);
- if (valueInModule == null)
- continue;
- identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
- if (identityFromModule.$eq(0, identity))
- continue;
- if (value != null) {
- t1 = "This " + type + " is available from multiple global modules.";
- t2 = type + " use";
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- for (t4 = this._async_environment$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- if (callback.call$1(t5.key) != null)
- t3.$indexSet(0, t5.value.get$span(), "includes " + type);
- }
- throw H.wrapException(E.MultiSpanSassScriptException$(t1, t2, t3));
- }
- identity = identityFromModule;
- value = valueInModule;
- }
- return value;
- },
- _async_environment$_fromOneModule$3: function($name, type, callback) {
- return this._async_environment$_fromOneModule$1$3($name, type, callback, type$.dynamic);
- }
- };
- Q.AsyncEnvironment_importForwards_closure.prototype = {
- call$1: function(module) {
- return module.get$variables().get$keys();
- }
- };
- Q.AsyncEnvironment_importForwards_closure0.prototype = {
- call$1: function(module) {
- return module.get$functions(module).get$keys();
- }
- };
- Q.AsyncEnvironment_importForwards_closure1.prototype = {
- call$1: function(module) {
- return module.get$mixins().get$keys();
- }
- };
- Q.AsyncEnvironment_importForwards_closure2.prototype = {
- call$1: function(_) {
- return H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable);
- },
- $signature: 97
- };
- Q.AsyncEnvironment__getVariableFromGlobalModule_closure.prototype = {
- call$1: function(module) {
- return module.get$variables().$index(0, this.name);
- }
- };
- Q.AsyncEnvironment_setVariable_closure.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._async_environment$_lastVariableName = this.name;
- return t1._async_environment$_lastVariableIndex = 0;
- },
- $signature: 8
- };
- Q.AsyncEnvironment_setVariable_closure0.prototype = {
- call$1: function(module) {
- return module.get$variables().containsKey$1(this.name) ? module : null;
- }
- };
- Q.AsyncEnvironment_setVariable_closure1.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._async_environment$_variableIndex$1(this.name);
- return t2 == null ? t1._async_environment$_variables.length - 1 : t2;
- },
- $signature: 8
- };
- Q.AsyncEnvironment__getFunctionFromGlobalModule_closure.prototype = {
- call$1: function(module) {
- return module.get$functions(module).$index(0, this.name);
- }
- };
- Q.AsyncEnvironment__getMixinFromGlobalModule_closure.prototype = {
- call$1: function(module) {
- return module.get$mixins().$index(0, this.name);
- }
- };
- Q._EnvironmentModule0.prototype = {
- get$url: function() {
- return this.css.get$span().file.url;
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- var t1, t2,
- module = this._async_environment$_modulesByVariable.$index(0, $name);
- if (module != null) {
- module.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- t1 = this._async_environment$_environment;
- t2 = t1._async_environment$_variables;
- if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
- throw H.wrapException(E.SassScriptException$("Undefined variable."));
- J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
- t1 = t1._async_environment$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
- return;
- },
- variableIdentity$1: function($name) {
- var module = this._async_environment$_modulesByVariable.$index(0, $name);
- return module == null ? this : module.variableIdentity$1($name);
- },
- cloneCss$0: function() {
- var newCssAndExtender, _this = this,
- t1 = _this.css;
- if (J.get$isEmpty$asx(t1.get$children()))
- return _this;
- newCssAndExtender = V.cloneCssStylesheet(t1, _this.extender);
- 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);
- },
- toString$0: function(_) {
- var t1 = this.css;
- if (t1.get$span().file.url == null)
- t1 = "<unknown url>";
- else {
- t1 = t1.get$span().file;
- t1 = $.$get$context().prettyUri$1(t1.url);
- }
- return t1;
- },
- $isModule: 1,
- get$upstream: function() {
- return this.upstream;
- },
- get$variables: function() {
- return this.variables;
- },
- get$variableNodes: function() {
- return this.variableNodes;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- },
- get$extender: function() {
- return this.extender;
- },
- get$css: function(receiver) {
- return this.css;
- },
- get$transitivelyContainsCss: function() {
- return this.transitivelyContainsCss;
- },
- get$transitivelyContainsExtensions: function() {
- return this.transitivelyContainsExtensions;
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure5.prototype = {
- call$1: function(module) {
- return module.get$variables();
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure6.prototype = {
- call$1: function(module) {
- return module.get$variableNodes();
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure7.prototype = {
- call$1: function(module) {
- return module.get$functions(module);
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure8.prototype = {
- call$1: function(module) {
- return module.get$mixins();
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure9.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsCss();
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure10.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsExtensions();
- }
- };
- O.AsyncImportCache.prototype = {
- canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
- return this.canonicalize$body$AsyncImportCache(url, baseImporter, baseUrl, forImport);
- },
- canonicalize$body$AsyncImportCache: function(url, baseImporter, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple3_AsyncImporter_Uri_Uri_2),
- $async$returnValue, $async$self = this, resolvedUrl, canonicalUrl, t1;
- var $async$canonicalize$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = baseImporter != null ? 3 : 4;
- break;
- case 3:
- // then
- resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
- $async$goto = 5;
- return P._asyncAwait($async$self._async_import_cache$_canonicalize$3(baseImporter, resolvedUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
- case 5:
- // returning from await.
- canonicalUrl = $async$result;
- if (canonicalUrl != null) {
- $async$returnValue = new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_AsyncImporter_Uri_Uri_2);
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // join
- t1 = type$.Tuple2_Uri_bool;
- $async$goto = 6;
- return P._asyncAwait(B.putIfAbsentAsync($async$self._async_import_cache$_canonicalizeCache, new S.Tuple2(url, forImport, t1), new O.AsyncImportCache_canonicalize_closure($async$self, url, forImport), t1, type$.Tuple3_AsyncImporter_Uri_Uri_2), $async$canonicalize$4$baseImporter$baseUrl$forImport);
- case 6:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
- },
- _async_import_cache$_canonicalize$3: function(importer, url, forImport) {
- return this._canonicalize$body$AsyncImportCache(importer, url, forImport);
- },
- _canonicalize$body$AsyncImportCache: function(importer, url, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Uri),
- $async$returnValue, $async$self = this, result;
- var $async$_async_import_cache$_canonicalize$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(forImport ? B.inImportRule(new O.AsyncImportCache__canonicalize_closure(importer, url)) : importer.canonicalize$1(url), $async$_async_import_cache$_canonicalize$3);
- case 3:
- // returning from await.
- result = $async$result;
- if ((result == null ? null : result.get$scheme()) === "")
- $async$self._async_import_cache$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n", true);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_import_cache$_canonicalize$3, $async$completer);
- },
- import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
- return this.import$body$AsyncImportCache(url, baseImporter, baseUrl, forImport);
- },
- import$body$AsyncImportCache: function(url, baseImporter, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_AsyncImporter_Stylesheet),
- $async$returnValue, $async$self = this, t1, tuple, $async$temp1, $async$temp2;
- var $async$import$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport), $async$import$4$baseImporter$baseUrl$forImport);
- case 3:
- // returning from await.
- tuple = $async$result;
- if (tuple == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = tuple.item1;
- $async$temp1 = S;
- $async$temp2 = t1;
- $async$goto = 4;
- return P._asyncAwait($async$self.importCanonical$3(t1, tuple.item2, tuple.item3), $async$import$4$baseImporter$baseUrl$forImport);
- case 4:
- // returning from await.
- $async$returnValue = new $async$temp1.Tuple2($async$temp2, $async$result, type$.Tuple2_AsyncImporter_Stylesheet);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$import$4$baseImporter$baseUrl$forImport, $async$completer);
- },
- importCanonical$3: function(importer, canonicalUrl, originalUrl) {
- return this.importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl);
- },
- importCanonical$body$AsyncImportCache: function(importer, canonicalUrl, originalUrl) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet_2),
- $async$returnValue, $async$self = this;
- var $async$importCanonical$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(B.putIfAbsentAsync($async$self._async_import_cache$_importCache, canonicalUrl, new O.AsyncImportCache_importCanonical_closure($async$self, importer, canonicalUrl, originalUrl), type$.Uri, type$.Stylesheet_2), $async$importCanonical$3);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$importCanonical$3, $async$completer);
- },
- humanize$1: function(canonicalUrl) {
- var t1 = this._async_import_cache$_canonicalizeCache.get$values(),
- t2 = H._instanceType(t1),
- 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$.Uri, type$.dynamic);
- if (url == null)
- return canonicalUrl;
- t1 = $.$get$url();
- return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
- }
- };
- O.AsyncImportCache_canonicalize_closure.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple3_AsyncImporter_Uri_Uri_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this, t2 = t1._async_import_cache$_importers, t3 = t2.length, t4 = $async$self.url, t5 = $async$self.forImport, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2.length)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- importer = t2[_i];
- $async$goto = 6;
- return P._asyncAwait(t1._async_import_cache$_canonicalize$3(importer, t4, t5), $async$call$0);
- case 6:
- // returning from await.
- canonicalUrl = $async$result;
- if (canonicalUrl != null) {
- $async$returnValue = new S.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_AsyncImporter_Uri_Uri_2);
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 132
- };
- O.AsyncImportCache__canonicalize_closure.prototype = {
- call$0: function() {
- return this.importer.canonicalize$1(this.url);
- },
- $signature: 76
- };
- O.AsyncImportCache_importCanonical_closure.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet_2),
- $async$returnValue, $async$self = this, t2, t3, t4, t5, t1, result;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.canonicalUrl;
- $async$goto = 3;
- return P._asyncAwait($async$self.importer.load$1(t1), $async$call$0);
- case 3:
- // returning from await.
- result = $async$result;
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t2 = $async$self.$this;
- t2._async_import_cache$_resultsCache.$indexSet(0, t1, result);
- t3 = result.contents;
- t4 = result.syntax;
- t5 = $async$self.originalUrl;
- t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
- $async$returnValue = V.Stylesheet_Stylesheet$parse(t3, t4, t2._async_import_cache$_logger, t1);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 128
- };
- O.AsyncImportCache_humanize_closure.prototype = {
- call$1: function(tuple) {
- var t1 = tuple == null ? null : tuple.item2;
- return J.$eq$(t1, this.canonicalUrl);
- }
- };
- O.AsyncImportCache_humanize_closure0.prototype = {
- call$1: function(tuple) {
- return tuple.item3;
- }
- };
- O.AsyncImportCache_humanize_closure1.prototype = {
- call$1: function(url) {
- return J.get$length$asx(J.get$path$x(url));
- },
- $signature: 28
- };
- D.Callable.prototype = {};
- B.AsyncCallable.prototype = {};
- S.AsyncBuiltInCallable.prototype = {
- callbackFor$2: function(positional, names) {
- return new S.Tuple2(this._async_built_in$_arguments, this._async_built_in$_callback, type$.Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value);
- },
- $isAsyncCallable: 1,
- get$name: function() {
- return this.name;
- }
- };
- S.AsyncBuiltInCallable$mixin_closure.prototype = {
- call$1: function($arguments) {
- return this.$call$body$AsyncBuiltInCallable$mixin_closure($arguments);
- },
- $call$body$AsyncBuiltInCallable$mixin_closure: function($arguments) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- Q.BuiltInCallable.prototype = {
- callbackFor$2: function(positional, names) {
- var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
- for (t1 = this._overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- overload = t1[_i];
- t3 = overload.item1;
- if (t3.matches$2(positional, names))
- return overload;
- mismatchDistance = t3.$arguments.length - positional;
- if (minMismatchDistance != null) {
- t3 = Math.abs(mismatchDistance);
- t4 = Math.abs(minMismatchDistance);
- if (t3 > t4)
- continue;
- if (t3 === t4 && mismatchDistance < 0)
- continue;
- }
- minMismatchDistance = mismatchDistance;
- fuzzyMatch = overload;
- }
- return fuzzyMatch;
- },
- withName$1: function($name) {
- return new Q.BuiltInCallable($name, this._overloads);
- },
- $isCallable: 1,
- $isAsyncCallable: 1,
- $isAsyncBuiltInCallable: 1,
- get$name: function() {
- return this.name;
- }
- };
- Q.BuiltInCallable$mixin_closure.prototype = {
- call$1: function($arguments) {
- this.callback.call$1($arguments);
- return null;
- },
- $signature: 59
- };
- L.PlainCssCallable.prototype = {
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof L.PlainCssCallable && this.name == other.name;
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.name);
- },
- $isCallable: 1,
- $isAsyncCallable: 1,
- get$name: function() {
- return this.name;
- }
- };
- E.UserDefinedCallable.prototype = {
- get$name: function() {
- return this.declaration.name;
- },
- $isCallable: 1,
- $isAsyncCallable: 1
- };
- X.closure70.prototype = {
- call$2: function(_, color) {
- return color;
- }
- };
- X.closure71.prototype = {
- call$2: function($name, _) {
- return $name;
- }
- };
- U._compileStylesheet_closure.prototype = {
- call$1: function(url) {
- var t1, t2, _null = null;
- if (url === "")
- t1 = J.toString$0$(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));
- else {
- t1 = P.Uri_parse(url);
- t2 = this.importCache._resultsCache.$index(0, t1);
- t2 = t2 == null ? _null : t2.get$sourceMapUrl();
- t1 = J.toString$0$(t2 == null ? t1 : t2);
- }
- return t1;
- }
- };
- A.Configuration.prototype = {
- throughForward$1: function($forward) {
- var t1, t2,
- newValues = this._values;
- if (newValues.get$isEmpty(newValues))
- return C.Configuration_Map_empty_null_true;
- t1 = $forward.prefix;
- if (t1 != null)
- newValues = new R.UnprefixedMapView(newValues, t1, type$.UnprefixedMapView_ConfiguredValue);
- t1 = $forward.shownVariables;
- if (t1 != null)
- newValues = K.LimitedMapView$safelist(newValues, t1, type$.String, type$.ConfiguredValue);
- else {
- t1 = $forward.hiddenVariables;
- if (t1 == null)
- t2 = null;
- else {
- t2 = t1._base;
- t2 = t2.get$isNotEmpty(t2);
- }
- if (t2 === true)
- newValues = K.LimitedMapView$blocklist(newValues, t1, type$.String, type$.ConfiguredValue);
- }
- return this.isImplicit ? new A.Configuration(newValues, null, true) : new A.Configuration(newValues, this.nodeWithSpan, false);
- }
- };
- Z.ConfiguredValue.prototype = {};
- O.Environment.prototype = {
- closure$0: function() {
- var t5, t6, t7, _this = this,
- t1 = _this._forwardedModules,
- t2 = _this._forwardedModuleNodes,
- t3 = _this._nestedForwardedModules,
- t4 = _this._variables;
- t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
- t5 = _this._variableNodes;
- if (t5 == null)
- t5 = null;
- else
- t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
- t6 = _this._functions;
- t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
- t7 = _this._mixins;
- t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
- return O.Environment$_(_this._environment$_modules, _this._namespaceNodes, _this._globalModules, _this._globalModuleNodes, t1, t2, t3, _this._allModules, t4, t5, t6, t7, _this._content);
- },
- addModule$3$namespace: function(module, nodeWithSpan, namespace) {
- var t1, t2, _this = this;
- if (namespace == null) {
- _this._globalModules.add$1(0, module);
- _this._globalModuleNodes.$indexSet(0, module, nodeWithSpan);
- _this._allModules.push(module);
- for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._variables).get$keys()); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (module.get$variables().containsKey$1(t2))
- throw H.wrapException(E.SassScriptException$('This module and the new module both define a variable named "$' + H.S(t2) + '".'));
- }
- } else {
- t1 = _this._environment$_modules;
- if (t1.containsKey$1(namespace))
- throw H.wrapException(E.MultiSpanSassScriptException$("There's already a module with namespace \"" + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.FileSpan, type$.String)));
- t1.$indexSet(0, namespace, module);
- _this._namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
- _this._allModules.push(module);
- }
- },
- forwardModule$2: function(module, rule) {
- var view, t1, t2, _this = this;
- if (_this._forwardedModules == null)
- _this._forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_Callable);
- if (_this._forwardedModuleNodes == null)
- _this._forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
- view = R.ForwardedModuleView_ifNecessary(module, rule, type$.Callable);
- for (t1 = _this._forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
- t2 = t1._collection$_current;
- _this._assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
- _this._assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
- _this._assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
- }
- _this._allModules.push(module);
- _this._forwardedModules.add$1(0, view);
- _this._forwardedModuleNodes.$indexSet(0, view, rule);
- },
- _assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
- var larger, smaller, t1, t2, $name;
- if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
- larger = oldMembers;
- smaller = newMembers;
- } else {
- larger = newMembers;
- smaller = oldMembers;
- }
- for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- if (!larger.containsKey$1($name))
- continue;
- if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
- continue;
- if (t2)
- $name = "$" + H.S($name);
- 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$.FileSpan, type$.String)));
- }
- },
- importForwards$1: function(module) {
- var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
- t1 = module._environment,
- forwarded = t1._forwardedModules;
- if (forwarded == null)
- return;
- if (_this._forwardedModules != null) {
- t2 = P.LinkedHashSet_LinkedHashSet(type$.Module_Callable);
- for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._globalModules; t3.moveNext$0();) {
- t5 = t3._collection$_current;
- if (!_this._forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
- t2.add$1(0, t5);
- }
- forwarded = t2;
- }
- if (_this._forwardedModules == null)
- _this._forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_Callable);
- if (_this._forwardedModuleNodes == null)
- _this._forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
- t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String>");
- t3 = t2._eval$1("Iterable.E");
- forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure(), t2), t3);
- forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure0(), t2), t3);
- forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure1(), t2), t3);
- t2 = _this._variables;
- t3 = t2.length;
- if (t3 === 1) {
- for (t3 = _this._globalModules, t4 = t3.toList$0(0), t5 = t4.length, t6 = type$.Callable, t7 = _this._globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
- module = t4[_i];
- shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
- if (shadowed != null) {
- t3.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view$_inner;
- t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8) {
- t3.add$1(0, shadowed);
- t7.$indexSet(0, shadowed, t7.remove$1(0, module));
- }
- }
- }
- for (t4 = _this._forwardedModules.toList$0(0), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
- module = t4[_i];
- shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
- if (shadowed != null) {
- _this._forwardedModules.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view$_inner;
- t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8) {
- _this._forwardedModules.add$1(0, shadowed);
- t8 = _this._forwardedModuleNodes;
- t8.$indexSet(0, shadowed, t8.remove$1(0, module));
- }
- }
- }
- t3.addAll$1(0, forwarded);
- t7.addAll$1(0, t1._forwardedModuleNodes);
- _this._forwardedModules.addAll$1(0, forwarded);
- _this._forwardedModuleNodes.addAll$1(0, t1._forwardedModuleNodes);
- } else {
- t1 = _this._nestedForwardedModules;
- 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$.List_Module_Callable) : t1), forwarded);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._variableNodes, t4 = t3 != null, t5 = _this._variableIndices; t1.moveNext$0();) {
- t6 = t1._collection$_current;
- t5.remove$1(0, t6);
- J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
- if (t4)
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._functionIndices, t3 = _this._functions; t1.moveNext$0();) {
- t4 = t1._collection$_current;
- t2.remove$1(0, t4);
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._mixinIndices, t3 = _this._mixins; t1.moveNext$0();) {
- t4 = t1._collection$_current;
- t2.remove$1(0, t4);
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
- }
- },
- getVariable$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._getModule$1(namespace).get$variables().$index(0, $name);
- if (_this._lastVariableName === $name) {
- t1 = J.$index$asx(_this._variables[_this._lastVariableIndex], $name);
- return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
- }
- t1 = _this._variableIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- _this._lastVariableName = $name;
- _this._lastVariableIndex = index;
- t1 = J.$index$asx(_this._variables[index], $name);
- return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
- }
- index = _this._variableIndex$1($name);
- if (index == null)
- return _this._getVariableFromGlobalModule$1($name);
- _this._lastVariableName = $name;
- _this._lastVariableIndex = index;
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._variables[index], $name);
- return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
- },
- getVariable$1: function($name) {
- return this.getVariable$2$namespace($name, null);
- },
- _getVariableFromGlobalModule$1: function($name) {
- return this._fromOneModule$3($name, "variable", new O.Environment__getVariableFromGlobalModule_closure($name));
- },
- getVariableNode$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._getModule$1(namespace).get$variableNodes().$index(0, $name);
- if (_this._lastVariableName === $name) {
- t1 = J.$index$asx(_this._variableNodes[_this._lastVariableIndex], $name);
- return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
- }
- t1 = _this._variableIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- _this._lastVariableName = $name;
- _this._lastVariableIndex = index;
- t1 = J.$index$asx(_this._variableNodes[index], $name);
- return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
- }
- index = _this._variableIndex$1($name);
- if (index == null)
- return _this._getVariableNodeFromGlobalModule$1($name);
- _this._lastVariableName = $name;
- _this._lastVariableIndex = index;
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._variableNodes[index], $name);
- return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
- },
- _getVariableNodeFromGlobalModule$1: function($name) {
- var t1, value;
- for (t1 = this._globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
- value = t1._collection$_current.get$variableNodes().$index(0, $name);
- if (value != null)
- return value;
- }
- return null;
- },
- globalVariableExists$2$namespace: function($name, namespace) {
- if (namespace != null)
- return this._getModule$1(namespace).get$variables().containsKey$1($name);
- if (C.JSArray_methods.get$first(this._variables).containsKey$1($name))
- return true;
- return this._getVariableFromGlobalModule$1($name) != null;
- },
- globalVariableExists$1: function($name) {
- return this.globalVariableExists$2$namespace($name, null);
- },
- _variableIndex$1: function($name) {
- var t1, i;
- for (t1 = this._variables, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
- var t1, moduleWithName, t2, t3, index, _this = this;
- if (namespace != null) {
- _this._getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
- return;
- }
- if (global || _this._variables.length === 1) {
- _this._variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure(_this, $name));
- t1 = _this._variables;
- if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
- moduleWithName = _this._fromOneModule$3($name, "variable", new O.Environment_setVariable_closure0($name));
- if (moduleWithName != null) {
- moduleWithName.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
- t1 = _this._variableNodes;
- if (t1 != null)
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
- return;
- }
- if (_this._nestedForwardedModules != null && !_this._variableIndices.containsKey$1($name) && _this._variableIndex$1($name) == null) {
- t1 = _this._nestedForwardedModules;
- t1.toString;
- t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
- t1 = new H.ListIterator(t1, t1.get$length(t1));
- for (; t1.moveNext$0();)
- for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- if (t3.get$variables().containsKey$1($name)) {
- t3.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- }
- index = _this._lastVariableName === $name ? _this._lastVariableIndex : _this._variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure1(_this, $name));
- if (!_this._inSemiGlobalScope && index === 0) {
- index = _this._variables.length - 1;
- _this._variableIndices.$indexSet(0, $name, index);
- }
- _this._lastVariableName = $name;
- _this._lastVariableIndex = index;
- J.$indexSet$ax(_this._variables[index], $name, value);
- t1 = _this._variableNodes;
- if (t1 != null)
- J.$indexSet$ax(t1[index], $name, nodeWithSpan);
- },
- setVariable$4$global: function($name, value, nodeWithSpan, global) {
- return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
- },
- setLocalVariable$3: function($name, value, nodeWithSpan) {
- var index, _this = this,
- t1 = _this._variables,
- t2 = t1.length;
- _this._lastVariableName = $name;
- index = _this._lastVariableIndex = t2 - 1;
- _this._variableIndices.$indexSet(0, $name, index);
- J.$indexSet$ax(t1[index], $name, value);
- t1 = _this._variableNodes;
- if (t1 != null)
- J.$indexSet$ax(t1[index], $name, nodeWithSpan);
- },
- getFunction$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null) {
- t1 = _this._getModule$1(namespace);
- return t1.get$functions(t1).$index(0, $name);
- }
- t1 = _this._functionIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- t1 = J.$index$asx(_this._functions[index], $name);
- return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
- }
- index = _this._functionIndex$1($name);
- if (index == null)
- return _this._getFunctionFromGlobalModule$1($name);
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._functions[index], $name);
- return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
- },
- _getFunctionFromGlobalModule$1: function($name) {
- return this._fromOneModule$3($name, "function", new O.Environment__getFunctionFromGlobalModule_closure($name));
- },
- _functionIndex$1: function($name) {
- var t1, i;
- for (t1 = this._functions, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- getMixin$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._getModule$1(namespace).get$mixins().$index(0, $name);
- t1 = _this._mixinIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- t1 = J.$index$asx(_this._mixins[index], $name);
- return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
- }
- index = _this._mixinIndex$1($name);
- if (index == null)
- return _this._getMixinFromGlobalModule$1($name);
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._mixins[index], $name);
- return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
- },
- _getMixinFromGlobalModule$1: function($name) {
- return this._fromOneModule$3($name, "mixin", new O.Environment__getMixinFromGlobalModule_closure($name));
- },
- _mixinIndex$1: function($name) {
- var t1, i;
- for (t1 = this._mixins, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- scope$1$3$semiGlobal$when: function(callback, semiGlobal, when) {
- var wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5, _this = this;
- if (!when) {
- wasInSemiGlobalScope = _this._inSemiGlobalScope;
- _this._inSemiGlobalScope = semiGlobal;
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._inSemiGlobalScope = wasInSemiGlobalScope;
- }
- }
- semiGlobal = semiGlobal && _this._inSemiGlobalScope;
- wasInSemiGlobalScope0 = _this._inSemiGlobalScope;
- _this._inSemiGlobalScope = semiGlobal;
- t1 = _this._variables;
- t2 = type$.String;
- C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
- t3 = _this._variableNodes;
- if (t3 != null)
- C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
- t3 = _this._functions;
- t4 = type$.Callable;
- C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
- t5 = _this._mixins;
- C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
- t4 = _this._nestedForwardedModules;
- if (t4 != null)
- C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable));
- try {
- t2 = callback.call$0();
- return t2;
- } finally {
- _this._inSemiGlobalScope = wasInSemiGlobalScope0;
- _this._lastVariableIndex = _this._lastVariableName = null;
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = _this._variableIndices; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- t2.remove$1(0, $name);
- }
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = _this._functionIndices; t1.moveNext$0();) {
- name0 = t1.get$current(t1);
- t2.remove$1(0, name0);
- }
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = _this._mixinIndices; t1.moveNext$0();) {
- name1 = t1.get$current(t1);
- t2.remove$1(0, name1);
- }
- t1 = _this._nestedForwardedModules;
- if (t1 != null)
- C.JSArray_methods.removeLast$0(t1);
- }
- },
- scope$1$1: function(callback, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
- },
- scope$1$2$when: function(callback, when, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
- },
- scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
- return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
- },
- toImplicitConfiguration$0: function() {
- var t2, t3, t4, t5, i, values, nodes, t6, t7,
- t1 = type$.String,
- configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue);
- for (t2 = this._variables, t3 = this._variableNodes, t4 = t3 == null, t5 = type$.AstNode, i = 0; i < t2.length; ++i) {
- values = t2[i];
- nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
- for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
- t7 = t6.get$current(t6);
- configuration.$indexSet(0, t7, new Z.ConfiguredValue(values.$index(0, t7), null, nodes.$index(0, t7)));
- }
- }
- return new A.Configuration(configuration, null, true);
- },
- _getModule$1: function(namespace) {
- var module = this._environment$_modules.$index(0, namespace);
- if (module != null)
- return module;
- throw H.wrapException(E.SassScriptException$('There is no module with the namespace "' + namespace + '".'));
- },
- _fromOneModule$1$3: function($name, type, callback) {
- var t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
- t1 = this._nestedForwardedModules;
- if (t1 != null)
- 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();)
- for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- value = callback.call$1(t2.__internal$_current);
- if (value != null)
- return value;
- }
- for (t1 = this._globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.Callable, value = null, identity = null; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- valueInModule = callback.call$1(t3);
- if (valueInModule == null)
- continue;
- identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
- if (identityFromModule.$eq(0, identity))
- continue;
- if (value != null) {
- t1 = "This " + type + " is available from multiple global modules.";
- t2 = type + " use";
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- for (t4 = this._globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- if (callback.call$1(t5.key) != null)
- t3.$indexSet(0, t5.value.get$span(), "includes " + type);
- }
- throw H.wrapException(E.MultiSpanSassScriptException$(t1, t2, t3));
- }
- identity = identityFromModule;
- value = valueInModule;
- }
- return value;
- },
- _fromOneModule$3: function($name, type, callback) {
- return this._fromOneModule$1$3($name, type, callback, type$.dynamic);
- }
- };
- O.Environment_importForwards_closure.prototype = {
- call$1: function(module) {
- return module.get$variables().get$keys();
- }
- };
- O.Environment_importForwards_closure0.prototype = {
- call$1: function(module) {
- return module.get$functions(module).get$keys();
- }
- };
- O.Environment_importForwards_closure1.prototype = {
- call$1: function(module) {
- return module.get$mixins().get$keys();
- }
- };
- O.Environment_importForwards_closure2.prototype = {
- call$1: function(_) {
- return H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable);
- },
- $signature: 125
- };
- O.Environment__getVariableFromGlobalModule_closure.prototype = {
- call$1: function(module) {
- return module.get$variables().$index(0, this.name);
- }
- };
- O.Environment_setVariable_closure.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._lastVariableName = this.name;
- return t1._lastVariableIndex = 0;
- },
- $signature: 8
- };
- O.Environment_setVariable_closure0.prototype = {
- call$1: function(module) {
- return module.get$variables().containsKey$1(this.name) ? module : null;
- }
- };
- O.Environment_setVariable_closure1.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._variableIndex$1(this.name);
- return t2 == null ? t1._variables.length - 1 : t2;
- },
- $signature: 8
- };
- O.Environment__getFunctionFromGlobalModule_closure.prototype = {
- call$1: function(module) {
- return module.get$functions(module).$index(0, this.name);
- }
- };
- O.Environment__getMixinFromGlobalModule_closure.prototype = {
- call$1: function(module) {
- return module.get$mixins().$index(0, this.name);
- }
- };
- O._EnvironmentModule.prototype = {
- get$url: function() {
- return this.css.get$span().file.url;
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- var t1, t2,
- module = this._modulesByVariable.$index(0, $name);
- if (module != null) {
- module.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- t1 = this._environment;
- t2 = t1._variables;
- if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
- throw H.wrapException(E.SassScriptException$("Undefined variable."));
- J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
- t1 = t1._variableNodes;
- if (t1 != null)
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
- return;
- },
- variableIdentity$1: function($name) {
- var module = this._modulesByVariable.$index(0, $name);
- return module == null ? this : module.variableIdentity$1($name);
- },
- cloneCss$0: function() {
- var newCssAndExtender, _this = this,
- t1 = _this.css;
- if (J.get$isEmpty$asx(t1.get$children()))
- return _this;
- newCssAndExtender = V.cloneCssStylesheet(t1, _this.extender);
- return O._EnvironmentModule$_(_this._environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
- },
- toString$0: function(_) {
- var t1 = this.css;
- if (t1.get$span().file.url == null)
- t1 = "<unknown url>";
- else {
- t1 = t1.get$span().file;
- t1 = $.$get$context().prettyUri$1(t1.url);
- }
- return t1;
- },
- $isModule: 1,
- get$upstream: function() {
- return this.upstream;
- },
- get$variables: function() {
- return this.variables;
- },
- get$variableNodes: function() {
- return this.variableNodes;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- },
- get$extender: function() {
- return this.extender;
- },
- get$css: function(receiver) {
- return this.css;
- },
- get$transitivelyContainsCss: function() {
- return this.transitivelyContainsCss;
- },
- get$transitivelyContainsExtensions: function() {
- return this.transitivelyContainsExtensions;
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure.prototype = {
- call$1: function(module) {
- return module.get$variables();
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure0.prototype = {
- call$1: function(module) {
- return module.get$variableNodes();
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure1.prototype = {
- call$1: function(module) {
- return module.get$functions(module);
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure2.prototype = {
- call$1: function(module) {
- return module.get$mixins();
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure3.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsCss();
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure4.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsExtensions();
- }
- };
- E.SassException.prototype = {
- get$trace: function() {
- return new Y.Trace(P.List_List$unmodifiable(H.setRuntimeTypeInfo([B.frameForSpan(G.SourceSpanException.prototype.get$span.call(this), "root stylesheet", null)], type$.JSArray_Frame), type$.Frame), new P._StringStackTrace(null));
- },
- get$span: function() {
- return G.SourceSpanException.prototype.get$span.call(this);
- },
- toString$1$color: function(_, color) {
- var t2, _i, frame, t3,
- buffer = new P.StringBuffer(""),
- t1 = "Error: " + H.S(this._span_exception$_message) + "\n";
- buffer._contents = t1;
- buffer._contents = t1 + G.SourceSpanException.prototype.get$span.call(this).highlight$1$color(color);
- for (t1 = this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- frame = t1[_i];
- frame.toString;
- if (J.get$length$asx(frame) === 0)
- continue;
- t3 = buffer._contents += "\n";
- buffer._contents = t3 + (" " + H.S(frame));
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- toString$0: function($receiver) {
- return this.toString$1$color($receiver, null);
- },
- toCssString$0: function() {
- var stringMessage, rune,
- t1 = $._glyphs,
- t2 = $._glyphs = C.C_AsciiGlyphSet,
- t3 = this.toString$1$color(0, false),
- commentMessage = H.stringReplaceAllUnchecked(t3, "*/", "*\u2215");
- $._glyphs = t1 === C.C_AsciiGlyphSet ? t2 : C.C_UnicodeGlyphSet;
- stringMessage = new P.StringBuffer("");
- for (t1 = new P.RuneIterator(N.serializeValue0(new D.SassString(this.toString$1$color(0, false), true), true, true)); t1.moveNext$0();) {
- rune = t1._currentCodePoint;
- if (rune > 255) {
- stringMessage._contents += H.Primitives_stringFromCharCode(92);
- stringMessage._contents += C.JSInt_methods.toRadixString$1(rune, 16);
- t2 = stringMessage._contents += H.Primitives_stringFromCharCode(32);
- } else
- t2 = stringMessage._contents += H.Primitives_stringFromCharCode(rune);
- }
- 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}";
- }
- };
- E.MultiSpanSassException.prototype = {
- toString$1$color: function(_, color) {
- var t2, _i, frame, t3, _this = this,
- useColor = color === true && true,
- buffer = new P.StringBuffer(""),
- t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
- buffer._contents = t1;
- buffer._contents = t1 + U.Highlighter$multiple(G.SourceSpanException.prototype.get$span.call(_this), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0();
- for (t1 = _this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- frame = t1[_i];
- frame.toString;
- if (J.get$length$asx(frame) === 0)
- continue;
- t3 = buffer._contents += "\n";
- buffer._contents = t3 + (" " + H.S(frame));
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- toString$0: function($receiver) {
- return this.toString$1$color($receiver, null);
- }
- };
- E.SassRuntimeException.prototype = {
- get$trace: function() {
- return this.trace;
- }
- };
- E.MultiSpanSassRuntimeException.prototype = {$isSassRuntimeException: 1,
- get$trace: function() {
- return this.trace;
- }
- };
- E.SassFormatException.prototype = {
- get$source: function() {
- return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(this).file._decodedChars, 0, null), 0, null);
- },
- $isFormatException: 1,
- $isSourceSpanFormatException: 1
- };
- E.SassScriptException.prototype = {
- toString$0: function(_) {
- return this.message + "\n\nBUG: This should include a source span!";
- },
- get$message: function(receiver) {
- return this.message;
- }
- };
- E.MultiSpanSassScriptException.prototype = {};
- D._writeSourceMap_closure.prototype = {
- call$1: function(url) {
- return J.toString$0$(this.options.sourceMapUrl$2(P.Uri_parse(url), this.destination));
- }
- };
- B.ExecutableOptions.prototype = {
- get$interactive: function() {
- var t2, invalidOptions, _i, option,
- t1 = this._interactive;
- if (t1 != null)
- return t1;
- t1 = this._options;
- t2 = H._asBoolNullable(t1.$index(0, "interactive"));
- this._interactive = t2;
- if (!t2)
- return false;
- invalidOptions = ["stdin", "indented", "style", "source-map", "source-map-urls", "embed-sources", "embed-source-map", "update", "watch"];
- for (t2 = t1._parser.options._collection$_map, _i = 0; _i < 9; ++_i) {
- option = invalidOptions[_i];
- if (t2.$index(0, option) == null)
- H.throwExpression(P.ArgumentError$('Could not find an option named "' + option + '".'));
- if (t1._parsed.containsKey$1(option))
- throw H.wrapException(B.UsageException$("--" + option + " isn't allowed with --interactive."));
- }
- return true;
- },
- get$color: function() {
- var t1 = this._options;
- if (t1.wasParsed$1("color"))
- t1 = H._asBoolNullable(t1.$index(0, "color"));
- else {
- t1 = self.process.stdout.isTTY;
- if (t1 == null)
- t1 = false;
- }
- return t1;
- },
- get$emitErrorCss: function() {
- var t1 = H._asBoolNullable(this._options.$index(0, "error-css"));
- if (t1 == null) {
- this._ensureSources$0();
- t1 = this._sourcesToDestinations.get$values().any$1(0, new B.ExecutableOptions_emitErrorCss_closure());
- }
- return t1;
- },
- _ensureSources$0: function() {
- var t1, stdin, t2, t3, $directories, t4, colonArgs, positionalArgs, t5, t6, t7, message, target, source, destination, seen, i, t8, _this = this, _null = null,
- _s18_ = 'Duplicate source "';
- if (_this._sourcesToDestinations != null)
- return;
- t1 = _this._options;
- stdin = H._asBoolNullable(t1.$index(0, "stdin"));
- t2 = t1.rest;
- if (t2.get$length(t2) === 0 && !stdin)
- B.ExecutableOptions__fail("Compile Sass to CSS.");
- t3 = type$.String;
- $directories = P.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (t4 = new H.ListIterator(t2, t2.get$length(t2)), colonArgs = false, positionalArgs = false; t4.moveNext$0();) {
- t5 = t4.__internal$_current;
- t6 = t5.length;
- if (t6 === 0)
- B.ExecutableOptions__fail('Invalid argument "".');
- if (H.stringContainsUnchecked(t5, ":", 0)) {
- if (t6 > 2) {
- t7 = C.JSString_methods._codeUnitAt$1(t5, 0);
- if (!(t7 >= 97 && t7 <= 122))
- t7 = t7 >= 65 && t7 <= 90;
- else
- t7 = true;
- t7 = t7 && C.JSString_methods._codeUnitAt$1(t5, 1) === 58;
- } else
- t7 = false;
- if (t7) {
- if (2 > t6)
- H.throwExpression(P.RangeError$range(2, 0, t6, _null, _null));
- t6 = H.stringContainsUnchecked(t5, ":", 2);
- } else
- t6 = true;
- } else
- t6 = false;
- if (t6)
- colonArgs = true;
- else if (B.dirExists(t5))
- $directories.add$1(0, t5);
- else
- positionalArgs = true;
- }
- if (positionalArgs || t2.get$length(t2) === 0) {
- if (colonArgs)
- B.ExecutableOptions__fail('Positional and ":" arguments may not both be used.');
- else if (stdin) {
- if (J.get$length$asx(t2._collection$_source) > 1)
- B.ExecutableOptions__fail("Only one argument is allowed with --stdin.");
- else if (H._asBoolNullable(t1.$index(0, "update")))
- B.ExecutableOptions__fail("--update is not allowed with --stdin.");
- else if (H._asBoolNullable(t1.$index(0, "watch")))
- B.ExecutableOptions__fail("--watch is not allowed with --stdin.");
- t1 = t2.get$length(t2) === 0 ? _null : t2.get$first(t2);
- t2 = type$.dynamic;
- _this._sourcesToDestinations = H.ConstantMap_ConstantMap$from(P.LinkedHashMap_LinkedHashMap$_literal([null, t1], t2, t2), t3, t3);
- } else {
- t4 = t2._collection$_source;
- t5 = J.getInterceptor$asx(t4);
- if (t5.get$length(t4) > 2)
- B.ExecutableOptions__fail("Only two positional args may be passed.");
- else if ($directories._collection$_length !== 0) {
- message = 'Directory "' + H.S($directories.get$first($directories)) + '" may not be a positional arg.';
- target = t2.get$last(t2);
- 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);
- } else {
- source = J.$eq$(t2.get$first(t2), "-") ? _null : t2.get$first(t2);
- destination = t5.get$length(t4) === 1 ? _null : t2.get$last(t2);
- if (destination == null)
- if (H._asBoolNullable(t1.$index(0, "update")))
- B.ExecutableOptions__fail("--update is not allowed when printing to stdout.");
- else if (H._asBoolNullable(t1.$index(0, "watch")))
- B.ExecutableOptions__fail("--watch is not allowed when printing to stdout.");
- t1 = P.LinkedHashMap_LinkedHashMap$_literal([source, destination], t3, t3);
- t3 = K.PathMap__create(_null, t3);
- t3.addAll$1(0, t1);
- _this._sourcesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t3, type$.PathMap_String), type$.UnmodifiableMapView_String_String);
- }
- }
- _this._sourceDirectoriesToDestinations = C.Map_empty5;
- return;
- }
- if (stdin)
- B.ExecutableOptions__fail('--stdin may not be used with ":" arguments.');
- seen = P.LinkedHashSet_LinkedHashSet$_empty(t3);
- t1 = K.PathMap__create(_null, t3);
- t4 = type$.PathMap_String;
- t3 = K.PathMap__create(_null, t3);
- for (t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- t5 = t2.__internal$_current;
- if ($directories.contains$1(0, t5)) {
- if (!seen.add$1(0, t5))
- B.ExecutableOptions__fail(_s18_ + H.S(t5) + '".');
- t3.$indexSet(0, t5, t5);
- t1.addAll$1(0, _this._listSourceDirectory$2(t5, t5));
- continue;
- }
- for (t6 = t5.length, destination = _null, source = destination, i = 0; i < t6; ++i) {
- if (i === 1) {
- t7 = i - 1;
- if (t6 > t7 + 2) {
- t8 = C.JSString_methods.codeUnitAt$1(t5, t7);
- if (!(t8 >= 97 && t8 <= 122))
- t8 = t8 >= 65 && t8 <= 90;
- else
- t8 = true;
- t7 = t8 && C.JSString_methods.codeUnitAt$1(t5, t7 + 1) === 58;
- } else
- t7 = false;
- } else
- t7 = false;
- if (t7)
- continue;
- if (C.JSString_methods._codeUnitAt$1(t5, i) === 58)
- if (source == null) {
- source = C.JSString_methods.substring$2(t5, 0, i);
- destination = C.JSString_methods.substring$1(t5, i + 1);
- } else {
- if (i === source.length + 2) {
- t7 = i - 1;
- if (t6 > t7 + 2) {
- t8 = C.JSString_methods.codeUnitAt$1(t5, t7);
- if (!(t8 >= 97 && t8 <= 122))
- t8 = t8 >= 65 && t8 <= 90;
- else
- t8 = true;
- t7 = t8 && C.JSString_methods.codeUnitAt$1(t5, t7 + 1) === 58;
- } else
- t7 = false;
- t7 = !t7;
- } else
- t7 = true;
- if (t7)
- B.ExecutableOptions__fail('"' + t5 + '" may only contain one ":".');
- }
- }
- if (!seen.add$1(0, source))
- B.ExecutableOptions__fail(_s18_ + H.S(source) + '".');
- if (source === "-")
- t1.$indexSet(0, _null, destination);
- else if (B.dirExists(source)) {
- t3.$indexSet(0, source, destination);
- t1.addAll$1(0, _this._listSourceDirectory$2(source, destination));
- } else
- t1.$indexSet(0, source, destination);
- }
- t2 = type$.UnmodifiableMapView_String_String;
- _this._sourcesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t1, t4), t2);
- _this._sourceDirectoriesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t3, t4), t2);
- },
- _listSourceDirectory$2: function(source, destination) {
- var t2, t3, t4, t5, _null = null,
- t1 = type$.String;
- t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t2 = J.get$iterator$ax(B.listDir(source, true)), t3 = source == destination; t2.moveNext$0();) {
- t4 = t2.get$current(t2);
- if (this._isEntrypoint$1(t4))
- t5 = !(t3 && X.ParsedPath_ParsedPath$parse(t4, $.$get$context().style)._splitExtension$1(1)[1] === ".css");
- else
- t5 = false;
- if (t5) {
- t5 = $.$get$context();
- 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));
- }
- }
- return t1;
- },
- _isEntrypoint$1: function(path) {
- var extension,
- t1 = $.$get$context().style;
- if (J.startsWith$1$s(X.ParsedPath_ParsedPath$parse(path, t1).get$basename(), "_"))
- return false;
- extension = X.ParsedPath_ParsedPath$parse(path, t1)._splitExtension$1(1)[1];
- return extension === ".scss" || extension === ".sass" || extension === ".css";
- },
- get$_writeToStdout: function() {
- var t1, _this = this;
- _this._ensureSources$0();
- t1 = _this._sourcesToDestinations;
- if (t1.get$length(t1) === 1) {
- _this._ensureSources$0();
- t1 = _this._sourcesToDestinations.get$values();
- t1 = t1.get$single(t1) == null;
- } else
- t1 = false;
- return t1;
- },
- get$emitSourceMap: function() {
- var _this = this,
- _s10_ = "source-map",
- _s15_ = "source-map-urls",
- _s13_ = "embed-sources",
- _s16_ = "embed-source-map",
- t1 = _this._options;
- if (!H._asBoolNullable(t1.$index(0, _s10_)))
- if (t1.wasParsed$1(_s15_))
- B.ExecutableOptions__fail("--source-map-urls isn't allowed with --no-source-map.");
- else if (t1.wasParsed$1(_s13_))
- B.ExecutableOptions__fail("--embed-sources isn't allowed with --no-source-map.");
- else if (t1.wasParsed$1(_s16_))
- B.ExecutableOptions__fail("--embed-source-map isn't allowed with --no-source-map.");
- if (!_this.get$_writeToStdout())
- return H._asBoolNullable(t1.$index(0, _s10_));
- if (J.$eq$(_this._ifParsed$1(_s15_), "relative"))
- B.ExecutableOptions__fail("--source-map-urls=relative isn't allowed when printing to stdout.");
- if (H._asBoolNullable(t1.$index(0, _s16_)))
- return H._asBoolNullable(t1.$index(0, _s10_));
- else if (J.$eq$(_this._ifParsed$1(_s10_), true))
- B.ExecutableOptions__fail("When printing to stdout, --source-map requires --embed-source-map.");
- else if (t1.wasParsed$1(_s15_))
- B.ExecutableOptions__fail("When printing to stdout, --source-map-urls requires --embed-source-map.");
- else if (H._asBoolNullable(t1.$index(0, _s13_)))
- B.ExecutableOptions__fail("When printing to stdout, --embed-sources requires --embed-source-map.");
- else
- return false;
- },
- sourceMapUrl$2: function(url, destination) {
- var t1, path;
- if (url.get$scheme().length !== 0 && url.get$scheme() !== "file")
- return url;
- t1 = $.$get$context();
- path = t1.style.pathFromUri$1(M._parseUri(url));
- 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));
- },
- _ifParsed$1: function($name) {
- var t1 = this._options;
- return t1.wasParsed$1($name) ? t1.$index(0, $name) : null;
- }
- };
- B.ExecutableOptions_closure.prototype = {
- call$0: function() {
- var t1 = type$.String,
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Option),
- t3 = [],
- parser = new N.ArgParser(t2, new P.UnmodifiableMapView(t2, type$.UnmodifiableMapView_String_Option), new P.UnmodifiableMapView(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ArgParser), type$.UnmodifiableMapView_String_ArgParser), t3, true, null);
- parser.addOption$2$hide("precision", true);
- parser.addFlag$2$hide("async", true);
- t3.push(B.ExecutableOptions__separator("Input and Output"));
- parser.addFlag$2$help("stdin", "Read the stylesheet from stdin.");
- parser.addFlag$2$help("indented", "Use the indented syntax for input from stdin.");
- parser.addMultiOption$5$abbr$help$splitCommas$valueHelp("load-path", "I", "A path to use when resolving imports.\nMay be passed multiple times.", false, "PATH");
- t1 = type$.JSArray_String;
- parser.addOption$6$abbr$allowed$defaultsTo$help$valueHelp("style", "s", H.setRuntimeTypeInfo(["expanded", "compressed"], t1), "expanded", "Output style.", "NAME");
- parser.addFlag$3$defaultsTo$help("charset", true, "Emit a @charset or BOM for CSS with non-ASCII characters.");
- 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.");
- parser.addFlag$3$help$negatable("update", "Only compile out-of-date stylesheets.", false);
- t3.push(B.ExecutableOptions__separator("Source Maps"));
- parser.addFlag$3$defaultsTo$help("source-map", true, "Whether to generate source maps.");
- parser.addOption$4$allowed$defaultsTo$help("source-map-urls", H.setRuntimeTypeInfo(["relative", "absolute"], t1), "relative", "How to link from source maps to source files.");
- parser.addFlag$3$defaultsTo$help("embed-sources", false, "Embed source file contents in source maps.");
- parser.addFlag$3$defaultsTo$help("embed-source-map", false, "Embed source map contents in CSS.");
- t3.push(B.ExecutableOptions__separator("Other"));
- parser.addFlag$3$help$negatable("watch", "Watch stylesheets and recompile when they change.", false);
- parser.addFlag$2$help("poll", "Manually check for changes rather than using a native watcher.\nOnly valid with --watch.");
- parser.addFlag$2$help("stop-on-error", "Don't compile more files once an error is encountered.");
- parser.addFlag$4$abbr$help$negatable("interactive", "i", "Run an interactive SassScript shell.", false);
- parser.addFlag$3$abbr$help("color", "c", "Whether to use terminal colors for messages.");
- parser.addFlag$2$help("unicode", "Whether to use Unicode characters for messages.");
- parser.addFlag$3$abbr$help("quiet", "q", "Don't print warnings.");
- parser.addFlag$2$help("trace", "Print full Dart stack traces for exceptions.");
- parser.addFlag$4$abbr$help$negatable("help", "h", "Print this usage information.", false);
- parser.addFlag$3$help$negatable("version", "Print the version of Dart Sass.", false);
- return parser;
- },
- $signature: 116
- };
- B.ExecutableOptions_emitErrorCss_closure.prototype = {
- call$1: function(destination) {
- return destination != null;
- }
- };
- B.UsageException.prototype = {$isException: 1,
- get$message: function(receiver) {
- return this.message;
- }
- };
- A.watch_closure.prototype = {
- call$1: function(dir) {
- for (; !B.dirExists(dir);)
- dir = $.$get$context().dirname$1(dir);
- return this.dirWatcher.watch$1(0, dir);
- }
- };
- A._Watcher.prototype = {
- compile$3$ifModified: function(source, destination, ifModified) {
- return this.compile$body$_Watcher(source, destination, ifModified);
- },
- compile$2: function(source, destination) {
- return this.compile$3$ifModified(source, destination, false);
- },
- compile$body$_Watcher: function(source, destination, ifModified) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, stackTrace, error0, stackTrace0, exception, t1, $async$exception;
- var $async$compile$3$ifModified = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$goto = 7;
- return P._asyncAwait(D.compileStylesheet($async$self._watch$_options, $async$self._graph, source, destination, ifModified), $async$compile$3$ifModified);
- case 7:
- // returning from await.
- $async$returnValue = true;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (t1 instanceof E.SassException) {
- error = t1;
- stackTrace = H.getTraceFromException($async$exception);
- t1 = $async$self._watch$_options;
- if (!t1.get$emitErrorCss())
- $async$self._delete$1(destination);
- $async$self._printError$2(J.toString$1$color$(error, t1.get$color()), stackTrace);
- self.process.exitCode = 65;
- $async$returnValue = false;
- // goto return
- $async$goto = 1;
- break;
- } else if (t1 instanceof B.FileSystemException) {
- error0 = t1;
- stackTrace0 = H.getTraceFromException($async$exception);
- t1 = error0.path;
- $async$self._printError$2("Error reading " + H.S($.$get$context().relative$2$from(t1, null)) + ": " + error0.message + ".", stackTrace0);
- self.process.exitCode = 66;
- $async$returnValue = false;
- // goto return
- $async$goto = 1;
- break;
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$compile$3$ifModified, $async$completer);
- },
- _delete$1: function(path) {
- var buffer, t1, exception;
- try {
- B.deleteFile(path);
- buffer = new P.StringBuffer("");
- t1 = this._watch$_options;
- if (t1.get$color())
- buffer._contents += "\x1b[33m";
- buffer._contents += "Deleted " + H.S(path) + ".";
- if (t1.get$color())
- buffer._contents += "\x1b[0m";
- P.print(buffer);
- } catch (exception) {
- if (!(H.unwrapException(exception) instanceof B.FileSystemException))
- throw exception;
- }
- },
- _printError$2: function(message, stackTrace) {
- var t2,
- t1 = $.$get$stderr();
- t1.writeln$1(message);
- t2 = this._watch$_options._options;
- if (H._asBoolNullable(t2.$index(0, "trace"))) {
- t1.writeln$0();
- t1.writeln$1(C.JSString_methods.trimRight$0(Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
- }
- if (!H._asBoolNullable(t2.$index(0, "stop-on-error")))
- t1.writeln$0();
- },
- watch$1: function(_, watcher) {
- return this.watch$body$_Watcher(_, watcher);
- },
- watch$body$_Watcher: function(_, watcher) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $event, extension, success, success0, success1, t2, t1;
- var $async$watch$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = watcher._group._controller;
- t1.toString;
- t1 = P._StreamIterator$($async$self._debounceEvents$1(new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>"))));
- $async$handler = 3;
- t2 = $async$self._watch$_options._options;
- case 6:
- // for condition
- $async$goto = 8;
- return P._asyncAwait(t1.moveNext$0(), $async$watch$1);
- case 8:
- // returning from await.
- if (!$async$result) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $event = t1.get$current(t1);
- extension = X.ParsedPath_ParsedPath$parse($event.path, $.$get$context().style)._splitExtension$1(1)[1];
- if (!J.$eq$(extension, ".sass") && !J.$eq$(extension, ".scss") && !J.$eq$(extension, ".css")) {
- // goto for condition
- $async$goto = 6;
- break;
- }
- case 9:
- // switch
- switch ($event.type) {
- case C.ChangeType_modify:
- // goto case
- $async$goto = 11;
- break;
- case C.ChangeType_add:
- // goto case
- $async$goto = 12;
- break;
- case C.ChangeType_remove:
- // goto case
- $async$goto = 13;
- break;
- default:
- // goto after switch
- $async$goto = 10;
- break;
- }
- break;
- case 11:
- // case
- $async$goto = 14;
- return P._asyncAwait($async$self._handleModify$1($event.path), $async$watch$1);
- case 14:
- // returning from await.
- success = $async$result;
- if (!success && H._asBoolNullable(t2.$index(0, "stop-on-error"))) {
- $async$next = [1];
- // goto finally
- $async$goto = 4;
- break;
- }
- // goto after switch
- $async$goto = 10;
- break;
- case 12:
- // case
- $async$goto = 15;
- return P._asyncAwait($async$self._handleAdd$1($event.path), $async$watch$1);
- case 15:
- // returning from await.
- success0 = $async$result;
- if (!success0 && H._asBoolNullable(t2.$index(0, "stop-on-error"))) {
- $async$next = [1];
- // goto finally
- $async$goto = 4;
- break;
- }
- // goto after switch
- $async$goto = 10;
- break;
- case 13:
- // case
- $async$goto = 16;
- return P._asyncAwait($async$self._handleRemove$1($event.path), $async$watch$1);
- case 16:
- // returning from await.
- success1 = $async$result;
- if (!success1 && H._asBoolNullable(t2.$index(0, "stop-on-error"))) {
- $async$next = [1];
- // goto finally
- $async$goto = 4;
- break;
- }
- // goto after switch
- $async$goto = 10;
- break;
- case 10:
- // after switch
- // goto for condition
- $async$goto = 6;
- break;
- case 7:
- // after for
- $async$next.push(5);
- // goto finally
- $async$goto = 4;
- break;
- case 3:
- // uncaught
- $async$next = [2];
- case 4:
- // finally
- $async$handler = 2;
- $async$goto = 17;
- return P._asyncAwait(t1.cancel$0(), $async$watch$1);
- case 17:
- // returning from await.
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 5:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$watch$1, $async$completer);
- },
- _handleModify$1: function(path) {
- return this._handleModify$body$_Watcher(path);
- },
- _handleModify$body$_Watcher: function(path) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, t2, node, t1, url;
- var $async$_handleModify$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $.$get$context();
- url = t1.toUri$1(t1.canonicalize$1(path));
- t1 = $async$self._graph;
- t2 = t1._nodes;
- if (!t2.containsKey$1(url)) {
- $async$returnValue = $async$self._handleAdd$1(path);
- // goto return
- $async$goto = 1;
- break;
- }
- node = t2.$index(0, url);
- t1.reload$1(url);
- $async$goto = 3;
- return P._asyncAwait($async$self._recompileDownstream$1(H.setRuntimeTypeInfo([node], type$.JSArray_StylesheetNode)), $async$_handleModify$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_handleModify$1, $async$completer);
- },
- _handleAdd$1: function(path) {
- return this._handleAdd$body$_Watcher(path);
- },
- _handleAdd$body$_Watcher: function(path) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, destination, success, t1, t2, $async$temp1;
- var $async$_handleAdd$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- destination = $async$self._destinationFor$1(path);
- $async$temp1 = destination == null;
- if ($async$temp1)
- $async$result = $async$temp1;
- else {
- // goto then
- $async$goto = 3;
- break;
- }
- // goto join
- $async$goto = 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return P._asyncAwait($async$self.compile$2(path, destination), $async$_handleAdd$1);
- case 5:
- // returning from await.
- case 4:
- // join
- success = $async$result;
- t1 = D.absolute(".");
- t2 = $.$get$context();
- $async$goto = 6;
- 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);
- case 6:
- // returning from await.
- $async$returnValue = $async$result && success;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_handleAdd$1, $async$completer);
- },
- _handleRemove$1: function(path) {
- return this._handleRemove$body$_Watcher(path);
- },
- _handleRemove$body$_Watcher: function(path) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, t2, destination, t3, node, toRecompile, t1, url;
- var $async$_handleRemove$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $.$get$context();
- url = t1.toUri$1(t1.canonicalize$1(path));
- t1 = $async$self._graph;
- t2 = t1._nodes;
- if (t2.containsKey$1(url)) {
- destination = $async$self._destinationFor$1(path);
- if (destination != null)
- $async$self._delete$1(destination);
- }
- t3 = D.absolute(".");
- node = t2.remove$1(0, url);
- t2 = node != null;
- if (t2) {
- t1._transitiveModificationTimes.clear$0(0);
- t1.importCache.clearImport$1(url);
- node._stylesheet_graph$_remove$0();
- }
- toRecompile = t1._recanonicalizeImports$2(new F.FilesystemImporter(t3), url);
- if (t2)
- toRecompile.addAll$1(0, node._downstream);
- $async$goto = 3;
- return P._asyncAwait($async$self._recompileDownstream$1(toRecompile), $async$_handleRemove$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_handleRemove$1, $async$completer);
- },
- _debounceEvents$1: function(events) {
- var t1 = type$.WatchEvent;
- t1 = R._debounceAggregate(P.Duration$(25), H.instantiate1(R.rate_limit___collectToList$closure(), t1), false, true, t1, type$.List_WatchEvent).bind$1(events);
- return new P._ExpandStream(new A._Watcher__debounceEvents_closure(), t1, H._instanceType(t1)._eval$1("_ExpandStream<Stream.T,WatchEvent>"));
- },
- _recompileDownstream$1: function(nodes) {
- return this._recompileDownstream$body$_Watcher(nodes);
- },
- _recompileDownstream$body$_Watcher: function(nodes) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, t2, allSucceeded, node, success, t1, seen, toRecompile;
- var $async$_recompileDownstream$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.StylesheetNode;
- seen = P.LinkedHashSet_LinkedHashSet$_empty(t1);
- toRecompile = P.ListQueue_ListQueue$of(nodes, t1);
- t1 = type$.UnmodifiableSetView_StylesheetNode, t2 = $async$self._watch$_options._options, allSucceeded = true;
- case 3:
- // for condition
- if (!!toRecompile.get$isEmpty(toRecompile)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- node = toRecompile.removeFirst$0();
- if (!seen.add$1(0, node)) {
- // goto for condition
- $async$goto = 3;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait($async$self._compileIfEntrypoint$1(node.canonicalUrl), $async$_recompileDownstream$1);
- case 5:
- // returning from await.
- success = $async$result;
- allSucceeded = allSucceeded && success;
- if (!success && H._asBoolNullable(t2.$index(0, "stop-on-error"))) {
- $async$returnValue = false;
- // goto return
- $async$goto = 1;
- break;
- }
- toRecompile.addAll$1(0, new L.UnmodifiableSetView(node._downstream, t1));
- // goto for condition
- $async$goto = 3;
- break;
- case 4:
- // after for
- $async$returnValue = allSucceeded;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_recompileDownstream$1, $async$completer);
- },
- _compileIfEntrypoint$1: function(url) {
- return this._compileIfEntrypoint$body$_Watcher(url);
- },
- _compileIfEntrypoint$body$_Watcher: function(url) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, source, destination;
- var $async$_compileIfEntrypoint$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (url.get$scheme() !== "file") {
- $async$returnValue = true;
- // goto return
- $async$goto = 1;
- break;
- }
- source = $.$get$context().style.pathFromUri$1(M._parseUri(url));
- destination = $async$self._destinationFor$1(source);
- if (destination == null) {
- $async$returnValue = true;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return P._asyncAwait($async$self.compile$2(source, destination), $async$_compileIfEntrypoint$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_compileIfEntrypoint$1, $async$completer);
- },
- _destinationFor$1: function(source) {
- var destination, t2, t3, t4, _null = null,
- t1 = this._watch$_options;
- t1._ensureSources$0();
- destination = t1._sourcesToDestinations.$index(0, source);
- if (destination != null)
- return destination;
- t2 = $.$get$context();
- if (J.startsWith$1$s(X.ParsedPath_ParsedPath$parse(source, t2.style).get$basename(), "_"))
- return _null;
- for (t1._ensureSources$0(), t3 = J.get$iterator$ax(t1._sourceDirectoriesToDestinations.get$keys()); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- if (t2._isWithinOrEquals$2(t4, source) !== C._PathRelation_within)
- continue;
- t1._ensureSources$0();
- 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);
- if (t2._isWithinOrEquals$2(destination, source) !== C._PathRelation_equal)
- return destination;
- }
- return _null;
- }
- };
- A._Watcher__debounceEvents_closure.prototype = {
- call$1: function(buffer) {
- var t2, t3, t4, oldType,
- t1 = K.PathMap__create(null, type$.ChangeType);
- for (t2 = J.get$iterator$ax(buffer); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t4 = t3.path;
- oldType = t1.$index(0, t4);
- if (oldType == null)
- t1.$indexSet(0, t4, t3.type);
- else if (t3.type === C.ChangeType_remove)
- t1.$indexSet(0, t4, C.ChangeType_remove);
- else if (oldType !== C.ChangeType_add)
- t1.$indexSet(0, t4, C.ChangeType_modify);
- }
- return t1.get$keys().map$1$1(0, new A._Watcher__debounceEvents__closure(new K.PathMap(t1, type$.PathMap_ChangeType)), type$.WatchEvent);
- }
- };
- A._Watcher__debounceEvents__closure.prototype = {
- call$1: function(path) {
- return new E.WatchEvent(this.typeForPath._collection$_map.$index(0, path), path);
- }
- };
- T.EmptyExtender.prototype = {
- get$isEmpty: function(_) {
- return true;
- },
- get$simpleSelectors: function() {
- return C.C_EmptyUnmodifiableSet;
- },
- extensionsWhereTarget$1: function(callback) {
- return C.List_empty2;
- },
- addExtensions$1: function(extenders) {
- throw H.wrapException(P.UnsupportedError$("addExtensions() can't be called for a const Extender."));
- },
- clone$0: function() {
- return C.Tuple2_EmptyExtender_Map_empty;
- },
- $isExtender: 1
- };
- F.Extender.prototype = {
- get$isEmpty: function(_) {
- var t1 = this._extensions;
- return t1.get$isEmpty(t1);
- },
- get$simpleSelectors: function() {
- return new M.MapKeySet(this._selectors, type$.MapKeySet_SimpleSelector);
- },
- extensionsWhereTarget$1: function($async$callback) {
- var $async$self = this;
- return P._makeSyncStarIterable(function() {
- var callback = $async$callback;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4;
- return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._extensions, t2 = t1.get$keys(), t2 = t2.get$iterator(t2);
- case 2:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t3 = t2.get$current(t2);
- if (!callback.call$1(t3)) {
- // goto for condition
- $async$goto = 2;
- break;
- }
- t3 = t1.$index(0, t3).get$values(), t3 = t3.get$iterator(t3);
- case 4:
- // for condition
- if (!t3.moveNext$0()) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t4 = t3.get$current(t3);
- $async$goto = t4 instanceof A.MergedExtension ? 6 : 8;
- break;
- case 6:
- // then
- t4 = t4.unmerge$0();
- $async$goto = 9;
- return P._IterationMarker_yieldStar(new H.WhereIterable(t4, new F.Extender_extensionsWhereTarget_closure(), t4.$ti._eval$1("WhereIterable<Iterable.E>")));
- case 9:
- // after yield
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = !t4.isOptional ? 10 : 11;
- break;
- case 10:
- // then
- $async$goto = 12;
- return t4;
- case 12:
- // after yield
- case 11:
- // join
- case 7:
- // join
- // goto for condition
- $async$goto = 4;
- break;
- case 5:
- // after for
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._IterationMarker_endOfIteration();
- case 1:
- // rethrow
- return P._IterationMarker_uncaughtError($async$currentError);
- }
- };
- }, type$.Extension);
- },
- addSelector$3: function(selector, span, mediaContext) {
- var error, t1, t2, t3, _i, exception, modifiableSelector, _this = this,
- originalSelector = selector;
- if (!originalSelector.get$isInvisible())
- for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._originals, _i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i]);
- t1 = _this._extensions;
- if (t1.get$isNotEmpty(t1))
- try {
- selector = _this._extendList$3(originalSelector, t1, mediaContext);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException) {
- error = t1;
- throw H.wrapException(E.SassException$("From " + error.get$span().message$1(0, "") + "\n" + H.S(error._span_exception$_message), span));
- } else
- throw exception;
- }
- modifiableSelector = new F.ModifiableCssValue(selector, span, type$.ModifiableCssValue_SelectorList);
- if (mediaContext != null)
- _this._mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
- _this._registerSelector$2(selector, modifiableSelector);
- return modifiableSelector;
- },
- _registerSelector$2: function(list, selector) {
- var t1, t2, t3, _i, t4, t5, _i0, component, t6, t7, _i1, simple;
- for (t1 = list.components, t2 = t1.length, t3 = this._selectors, _i = 0; _i < t2; ++_i)
- for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) {
- component = t4[_i0];
- if (component instanceof X.CompoundSelector)
- for (t6 = component.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
- simple = t6[_i1];
- J.add$1$ax(t3.putIfAbsent$2(simple, new F.Extender__registerSelector_closure()), selector);
- if (simple instanceof D.PseudoSelector && simple.selector != null)
- this._registerSelector$2(simple.selector, selector);
- }
- }
- },
- addExtension$4: function(extender, target, extend, mediaContext) {
- 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,
- selectors = _this._selectors.$index(0, target),
- t1 = _this._extensionsByExtender,
- existingExtensions = t1.$index(0, target),
- sources = _this._extensions.putIfAbsent$2(target, new F.Extender_addExtension_closure());
- for (t2 = extender.value.components, t3 = t2.length, t4 = selectors == null, t5 = _this._sourceSpecificity, t6 = extender.span, t7 = extend.span, t8 = extend.isOptional, t9 = existingExtensions != null, t10 = type$.ComplexSelector, t11 = type$.Extension, newExtensions = null, _i = 0; _i < t3; ++_i) {
- complex = t2[_i];
- if (complex._maxSpecificity == null)
- complex._computeSpecificity$0();
- t12 = complex._maxSpecificity;
- state = new S.Extension(complex, target, t12, t8, false, mediaContext, t6, t7);
- existingState = sources.$index(0, complex);
- if (existingState != null) {
- sources.$indexSet(0, complex, A.MergedExtension_merge(existingState, state));
- continue;
- }
- sources.$indexSet(0, complex, state);
- for (t12 = complex.components, t13 = t12.length, _i0 = 0; _i0 < t13; ++_i0) {
- component = t12[_i0];
- if (component instanceof X.CompoundSelector)
- for (t14 = component.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1) {
- simple = t14[_i1];
- J.add$1$ax(t1.putIfAbsent$2(simple, new F.Extender_addExtension_closure0()), state);
- t5.putIfAbsent$2(simple, new F.Extender_addExtension_closure1(complex));
- }
- }
- if (!t4 || t9) {
- if (newExtensions == null)
- newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
- newExtensions.$indexSet(0, complex, state);
- }
- }
- if (newExtensions == null)
- return;
- newExtensionsByTarget = P.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], type$.SimpleSelector, type$.Map_ComplexSelector_Extension);
- if (t9) {
- additionalExtensions = _this._extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
- if (additionalExtensions != null)
- B.mapAddAll2(newExtensionsByTarget, additionalExtensions);
- }
- if (!t4)
- _this._extendExistingSelectors$2(selectors, newExtensionsByTarget);
- },
- _extendExistingExtensions$2: function(extensions, newExtensions) {
- 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;
- for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extensionsByExtender, t4 = type$.SimpleSelector, t5 = type$.Map_ComplexSelector_Extension, t6 = this._extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- extension = t1[_i];
- sources = t6.$index(0, extension.target);
- selectors = null;
- try {
- selectors = this._extendComplex$3(extension.extender, newExtensions, extension.mediaContext);
- if (selectors == null)
- continue;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException) {
- error = t1;
- throw H.wrapException(E.SassException$("From " + extension.extenderSpan.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
- } else
- throw exception;
- }
- containsExtension = J.$eq$(J.get$first$ax(selectors), extension.extender);
- for (t7 = selectors, t8 = t7.length, first = false, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, H.throwConcurrentModificationError)(t7), ++_i0) {
- complex = t7[_i0];
- if (containsExtension && first) {
- first = false;
- continue;
- }
- t9 = extension;
- t10 = t9.target;
- t11 = t9.extenderSpan;
- t12 = t9.span;
- t13 = t9.mediaContext;
- t14 = t9.specificity;
- t9 = t9.isOptional;
- if (t14 == null) {
- if (complex._maxSpecificity == null)
- complex._computeSpecificity$0();
- t14 = complex._maxSpecificity;
- }
- withExtender = new S.Extension(complex, t10, t14, t9, false, t13, t11, t12);
- existingExtension = sources.$index(0, complex);
- if (existingExtension != null)
- sources.$indexSet(0, complex, A.MergedExtension_merge(existingExtension, withExtender));
- else {
- sources.$indexSet(0, complex, withExtender);
- for (t9 = complex.components, t10 = t9.length, _i1 = 0; _i1 < t10; ++_i1) {
- component = t9[_i1];
- if (component instanceof X.CompoundSelector)
- for (t11 = component.components, t12 = t11.length, _i2 = 0; _i2 < t12; ++_i2)
- J.add$1$ax(t3.putIfAbsent$2(t11[_i2], new F.Extender__extendExistingExtensions_closure()), withExtender);
- }
- if (newExtensions.containsKey$1(extension.target)) {
- if (additionalExtensions == null)
- additionalExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
- additionalExtensions.putIfAbsent$2(extension.target, new F.Extender__extendExistingExtensions_closure0()).$indexSet(0, complex, withExtender);
- }
- }
- }
- if (!containsExtension)
- sources.remove$1(0, extension.extender);
- }
- return additionalExtensions;
- },
- _extendExistingSelectors$2: function(selectors, newExtensions) {
- var selector, error, t1, t2, oldValue, exception;
- for (t1 = selectors.get$iterator(selectors), t2 = this._mediaContexts; t1.moveNext$0();) {
- selector = t1.get$current(t1);
- oldValue = selector.value;
- try {
- selector.value = this._extendList$3(selector.value, newExtensions, t2.$index(0, selector));
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException) {
- error = t1;
- throw H.wrapException(E.SassException$("From " + selector.span.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
- } else
- throw exception;
- }
- if (oldValue == selector.value)
- continue;
- this._registerSelector$2(selector.value, selector);
- }
- },
- addExtensions$1: function(extenders) {
- var t1, t2, t3, _this = this, _box_0 = {};
- _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
- for (t1 = J.get$iterator$ax(extenders), t2 = _this._sourceSpecificity; t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- if (t3.get$isEmpty(t3))
- continue;
- t2.addAll$1(0, t3.get$_sourceSpecificity());
- t3.get$_extensions().forEach$1(0, new F.Extender_addExtensions_closure(_box_0, _this, t3));
- }
- t1 = _box_0.newExtensions;
- if (t1 == null)
- return;
- t2 = _box_0.extensionsToExtend;
- if (t2 != null)
- _this._extendExistingExtensions$2(t2, t1);
- t1 = _box_0.selectorsToExtend;
- if (t1 != null)
- _this._extendExistingSelectors$2(t1, _box_0.newExtensions);
- },
- _extendList$3: function(list, extensions, mediaQueryContext) {
- var t1, t2, t3, extended, i, complex, result, t4;
- for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector, extended = null, i = 0; i < t2; ++i) {
- complex = t1[i];
- result = this._extendComplex$3(complex, extensions, mediaQueryContext);
- if (result == null) {
- if (extended != null)
- extended.push(complex);
- } else {
- if (extended == null)
- if (i === 0)
- extended = H.setRuntimeTypeInfo([], t3);
- else {
- t4 = C.JSArray_methods.sublist$2(t1, 0, i);
- extended = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4)._eval$1("JSArray<1>"));
- }
- C.JSArray_methods.addAll$1(extended, result);
- }
- }
- if (extended == null)
- return list;
- t1 = this._originals;
- return D.SelectorList$(J.where$1$ax(this._trim$2(extended, t1.get$contains(t1)), new F.Extender__extendList_closure()));
- },
- _extendComplex$3: function(complex, extensions, mediaQueryContext) {
- var t1, t2, t3, t4, t5, t6, extendedNotExpanded, i, component, extended, result, t7,
- _s28_ = "components may not be empty.",
- _box_0 = {},
- isOriginal = this._originals.contains$1(0, complex);
- for (t1 = complex.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector, t4 = type$.JSArray_ComplexSelectorComponent, t5 = type$.ComplexSelectorComponent, t6 = H._arrayInstanceType(t1)._precomputed1, extendedNotExpanded = null, i = 0; i < t2; ++i) {
- component = t1[i];
- if (component instanceof X.CompoundSelector) {
- extended = this._extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
- if (extended == null) {
- if (extendedNotExpanded != null) {
- result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t7 = result;
- if (t7.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector(t7, false)], t3));
- }
- } else {
- if (extendedNotExpanded == null) {
- t7 = H.SubListIterable$(t1, 0, i, t6);
- extendedNotExpanded = new H.MappedListIterable(t7, new F.Extender__extendComplex_closure(complex), t7.$ti._eval$1("MappedListIterable<ListIterable.E,List<ComplexSelector>>")).toList$0(0);
- }
- C.JSArray_methods.add$1(extendedNotExpanded, extended);
- }
- } else if (extendedNotExpanded != null) {
- result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t7 = result;
- if (t7.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector(t7, false)], t3));
- }
- }
- if (extendedNotExpanded == null)
- return null;
- _box_0.first = true;
- t1 = type$.ComplexSelector;
- t1 = J.expand$1$1$ax(Y.paths(extendedNotExpanded, t1), new F.Extender__extendComplex_closure0(_box_0, this, complex), t1);
- return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
- },
- _extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
- var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, result, t12, t13, _this = this, _null = null,
- _s28_ = "components may not be empty.",
- _box_1 = {},
- t1 = _this._mode,
- targetsUsed = t1 === C.ExtendMode_normal || extensions.get$length(extensions) < 2 ? _null : P.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector);
- for (t2 = compound.components, t3 = t2.length, t4 = type$.JSArray_List_Extension, t5 = type$.JSArray_Extension, t6 = type$.JSArray_ComplexSelectorComponent, t7 = type$.ComplexSelectorComponent, t8 = H._arrayInstanceType(t2)._precomputed1, t9 = type$.SimpleSelector, t10 = _this._sourceSpecificity, t11 = type$.JSArray_SimpleSelector, options = _null, i = 0; i < t3; ++i) {
- simple = t2[i];
- extended = _this._extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
- if (extended == null) {
- if (options != null) {
- result = P.List_List$from(H.setRuntimeTypeInfo([simple], t11), false, t9);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- if (t12.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- result = P.List_List$from(H.setRuntimeTypeInfo([new X.CompoundSelector(t12)], t6), false, t7);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- if (t12.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- t13 = t10.$index(0, simple);
- if (t13 == null)
- t13 = 0;
- options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
- }
- } else {
- if (options == null) {
- options = H.setRuntimeTypeInfo([], t4);
- if (i !== 0) {
- result = P.List_List$from(H.SubListIterable$(t2, 0, i, t8), false, t9);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- compound = new X.CompoundSelector(t12);
- if (t12.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- result = P.List_List$from(H.setRuntimeTypeInfo([compound], t6), false, t7);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- if (t12.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- t13 = _this._sourceSpecificityFor$1(compound);
- options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
- }
- }
- C.JSArray_methods.addAll$1(options, extended);
- }
- }
- if (options == null)
- return _null;
- if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
- return _null;
- if (options.length === 1)
- return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure(mediaQueryContext), type$.ComplexSelector).toList$0(0);
- _box_1.first = t1 !== C.ExtendMode_replace;
- t1 = J.map$1$1$ax(Y.paths(options, type$.Extension), new F.Extender__extendCompound_closure0(_box_1, mediaQueryContext), type$.List_ComplexSelector).where$1(0, new F.Extender__extendCompound_closure1());
- t2 = t1.$ti._eval$1("ExpandIterable<Iterable.E,ComplexSelector>");
- return P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure2(), t2), true, t2._eval$1("Iterable.E"));
- },
- _extendSimple$4: function(simple, extensions, mediaQueryContext, targetsUsed) {
- var extended, result,
- t1 = new F.Extender__extendSimple_withoutPseudo(this, extensions, targetsUsed);
- if (simple instanceof D.PseudoSelector && simple.selector != null) {
- extended = this._extendPseudo$3(simple, extensions, mediaQueryContext);
- if (extended != null)
- return new H.MappedListIterable(extended, new F.Extender__extendSimple_closure(this, t1), H._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extension>>"));
- }
- result = t1.call$1(simple);
- return result == null ? null : H.setRuntimeTypeInfo([result], type$.JSArray_List_Extension);
- },
- _extensionForSimple$1: function(simple) {
- var t1 = S.ComplexSelector$(H.setRuntimeTypeInfo([X.CompoundSelector$(H.setRuntimeTypeInfo([simple], type$.JSArray_SimpleSelector))], type$.JSArray_ComplexSelectorComponent), false),
- t2 = this._sourceSpecificity.$index(0, simple);
- return S.Extension$oneOff(t1, true, t2 == null ? 0 : t2);
- },
- _extendPseudo$3: function(pseudo, extensions, mediaQueryContext) {
- var complexes, t2, result,
- t1 = pseudo.selector,
- extended = this._extendList$3(t1, extensions, mediaQueryContext);
- if (extended == t1)
- return null;
- complexes = extended.components;
- t2 = pseudo.normalizedName === "not";
- 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()))
- complexes = new H.WhereIterable(complexes, new F.Extender__extendPseudo_closure1(), H._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
- complexes = J.expand$1$1$ax(complexes, new F.Extender__extendPseudo_closure2(pseudo), type$.ComplexSelector);
- if (t2 && t1.components.length === 1) {
- t1 = H.MappedIterable_MappedIterable(complexes, new F.Extender__extendPseudo_closure3(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector);
- result = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
- return result.length === 0 ? null : result;
- } else
- return H.setRuntimeTypeInfo([D.PseudoSelector$(pseudo.name, pseudo.argument, !pseudo.isClass, D.SelectorList$(complexes))], type$.JSArray_PseudoSelector);
- },
- _trim$2: function(selectors, isOriginal) {
- var result, i, t1, numOriginals, _box_0, complex1, j, t2, t3, _i, component;
- if (selectors.length > 100)
- return selectors;
- result = Q.QueueList$(null, type$.ComplexSelector);
- $label0$0:
- for (i = selectors.length - 1, t1 = H._arrayInstanceType(selectors)._precomputed1, numOriginals = 0; i >= 0; --i) {
- _box_0 = {};
- complex1 = selectors[i];
- if (isOriginal.call$1(complex1)) {
- for (j = 0; j < numOriginals; ++j)
- if (J.$eq$(result.$index(0, j), complex1)) {
- B.rotateSlice(result, 0, j + 1);
- continue $label0$0;
- }
- ++numOriginals;
- result.addFirst$1(complex1);
- continue $label0$0;
- }
- _box_0.maxSpecificity = 0;
- for (t2 = complex1.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- component = t2[_i];
- if (component instanceof X.CompoundSelector)
- _box_0.maxSpecificity = Math.max(_box_0.maxSpecificity, this._sourceSpecificityFor$1(component));
- }
- if (result.any$1(result, new F.Extender__trim_closure(_box_0, complex1)))
- continue $label0$0;
- if (H.SubListIterable$(selectors, 0, i, t1).any$1(0, new F.Extender__trim_closure0(_box_0, complex1)))
- continue $label0$0;
- result.addFirst$1(complex1);
- }
- return result;
- },
- _sourceSpecificityFor$1: function(compound) {
- var t1, t2, t3, specificity, _i, t4;
- for (t1 = compound.components, t2 = t1.length, t3 = this._sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
- t4 = t3.$index(0, t1[_i]);
- specificity = Math.max(specificity, H.checkNum(t4 == null ? 0 : t4));
- }
- return specificity;
- },
- clone$0: function() {
- var t3, t4, _this = this,
- t1 = type$.SimpleSelector,
- newSelectors = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList),
- t2 = type$.ModifiableCssValue_SelectorList,
- newMediaContexts = P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.List_CssMediaQuery),
- oldToNewSelectors = P.LinkedHashMap_LinkedHashMap$_empty(type$.CssValue_SelectorList, t2);
- _this._selectors.forEach$1(0, new F.Extender_clone_closure(_this, newSelectors, oldToNewSelectors, newMediaContexts));
- t2 = type$.Extension;
- t3 = B.copyMapOfMap(_this._extensions, t1, type$.ComplexSelector, t2);
- t2 = B.copyMapOfList(_this._extensionsByExtender, t1, t2);
- t1 = P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.int);
- t1.addAll$1(0, _this._sourceSpecificity);
- t4 = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector);
- t4.addAll$1(0, _this._originals);
- return new S.Tuple2(new F.Extender(newSelectors, t3, t2, newMediaContexts, t1, t4, C.ExtendMode_normal), oldToNewSelectors, type$.Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList);
- },
- get$_extensions: function() {
- return this._extensions;
- },
- get$_sourceSpecificity: function() {
- return this._sourceSpecificity;
- }
- };
- F.Extender_extensionsWhereTarget_closure.prototype = {
- call$1: function(extension) {
- return !extension.isOptional;
- }
- };
- F.Extender__registerSelector_closure.prototype = {
- call$0: function() {
- return P.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList);
- },
- $signature: 107
- };
- F.Extender_addExtension_closure.prototype = {
- call$0: function() {
- return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
- },
- $signature: 46
- };
- F.Extender_addExtension_closure0.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_Extension);
- },
- $signature: 71
- };
- F.Extender_addExtension_closure1.prototype = {
- call$0: function() {
- return this.complex.get$maxSpecificity();
- },
- $signature: 8
- };
- F.Extender__extendExistingExtensions_closure.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_Extension);
- },
- $signature: 71
- };
- F.Extender__extendExistingExtensions_closure0.prototype = {
- call$0: function() {
- return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
- },
- $signature: 46
- };
- F.Extender_addExtensions_closure.prototype = {
- call$2: function(target, newSources) {
- var t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
- if (target instanceof N.PlaceholderSelector && T.isPrivate(target.name))
- return;
- t1 = _this.$this;
- extensionsForTarget = t1._extensionsByExtender.$index(0, target);
- t2 = extensionsForTarget == null;
- if (!t2) {
- t3 = _this._box_0;
- t4 = t3.extensionsToExtend;
- C.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = H.setRuntimeTypeInfo([], type$.JSArray_Extension) : t4, extensionsForTarget);
- }
- selectorsForTarget = t1._selectors.$index(0, target);
- t3 = selectorsForTarget != null;
- if (t3) {
- t4 = _this._box_0;
- t5 = t4.selectorsToExtend;
- (t5 == null ? t4.selectorsToExtend = P.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList) : t5).addAll$1(0, selectorsForTarget);
- }
- t1 = t1._extensions;
- existingSources = t1.$index(0, target);
- if (existingSources == null) {
- t4 = _this.extender;
- t1.$indexSet(0, target, t4.get$_extensions().$index(0, target));
- if (!t2 || t3) {
- t1 = _this._box_0;
- t2 = t1.newExtensions;
- t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector, type$.Map_ComplexSelector_Extension) : t2;
- t1.$indexSet(0, target, t4.get$_extensions().$index(0, target));
- }
- } else
- newSources.forEach$1(0, new F.Extender_addExtensions__closure(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
- }
- };
- F.Extender_addExtensions__closure.prototype = {
- call$2: function(extender, extension) {
- var t2, _this = this,
- t1 = _this.existingSources;
- if (t1.containsKey$1(extender))
- return;
- t1.$indexSet(0, extender, extension);
- if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
- t1 = _this._box_0;
- t2 = t1.newExtensions;
- t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector, type$.Map_ComplexSelector_Extension) : t2;
- t1.putIfAbsent$2(_this.target, new F.Extender_addExtensions___closure()).putIfAbsent$2(extender, new F.Extender_addExtensions___closure0(extension));
- }
- }
- };
- F.Extender_addExtensions___closure.prototype = {
- call$0: function() {
- return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
- },
- $signature: 46
- };
- F.Extender_addExtensions___closure0.prototype = {
- call$0: function() {
- return this.extension;
- },
- $signature: 131
- };
- F.Extender__extendList_closure.prototype = {
- call$1: function(complex) {
- return complex != null;
- }
- };
- F.Extender__extendComplex_closure.prototype = {
- call$1: function(component) {
- return H.setRuntimeTypeInfo([S.ComplexSelector$(H.setRuntimeTypeInfo([component], type$.JSArray_ComplexSelectorComponent), this.complex.lineBreak)], type$.JSArray_ComplexSelector);
- }
- };
- F.Extender__extendComplex_closure0.prototype = {
- call$1: function(path) {
- var t1 = Y.weave(J.map$1$1$ax(path, new F.Extender__extendComplex__closure(), type$.List_ComplexSelectorComponent).toList$0(0));
- 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>"));
- }
- };
- F.Extender__extendComplex__closure.prototype = {
- call$1: function(complex) {
- return complex.components;
- }
- };
- F.Extender__extendComplex__closure0.prototype = {
- call$1: function(components) {
- var _this = this,
- t1 = _this.complex,
- outputComplex = S.ComplexSelector$(components, t1.lineBreak || J.any$1$ax(_this.path, new F.Extender__extendComplex___closure())),
- t2 = _this._box_0;
- if (t2.first && _this.$this._originals.contains$1(0, t1))
- _this.$this._originals.add$1(0, outputComplex);
- t2.first = false;
- return outputComplex;
- }
- };
- F.Extender__extendComplex___closure.prototype = {
- call$1: function(inputComplex) {
- return inputComplex.lineBreak;
- }
- };
- F.Extender__extendCompound_closure.prototype = {
- call$1: function(state) {
- state.assertCompatibleMediaContext$1(this.mediaQueryContext);
- return state.extender;
- }
- };
- F.Extender__extendCompound_closure0.prototype = {
- call$1: function(path) {
- var complexes, toUnify, t2, t3, originals, t4, _box_0 = {},
- t1 = this._box_1;
- if (t1.first) {
- t1.first = false;
- complexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([X.CompoundSelector$(J.expand$1$1$ax(path, new F.Extender__extendCompound__closure(), type$.SimpleSelector))], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent);
- } else {
- toUnify = Q.QueueList$(null, type$.List_ComplexSelectorComponent);
- for (t1 = J.get$iterator$ax(path), t2 = type$.CompoundSelector, t3 = type$.JSArray_SimpleSelector, originals = null; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- if (t4.isOriginal) {
- if (originals == null)
- originals = H.setRuntimeTypeInfo([], t3);
- C.JSArray_methods.addAll$1(originals, t2._as(C.JSArray_methods.get$last(t4.extender.components)).components);
- } else
- toUnify._queue_list$_add$1(t4.extender.components);
- }
- if (originals != null)
- toUnify.addFirst$1(H.setRuntimeTypeInfo([X.CompoundSelector$(originals)], type$.JSArray_ComplexSelectorComponent));
- complexes = Y.unifyComplex(toUnify);
- if (complexes == null)
- return null;
- }
- _box_0.lineBreak = false;
- for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- t3.assertCompatibleMediaContext$1(t2);
- _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
- }
- return J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure0(_box_0), type$.ComplexSelector).toList$0(0);
- }
- };
- F.Extender__extendCompound__closure.prototype = {
- call$1: function(state) {
- return type$.CompoundSelector._as(C.JSArray_methods.get$last(state.extender.components)).components;
- }
- };
- F.Extender__extendCompound__closure0.prototype = {
- call$1: function(components) {
- return S.ComplexSelector$(components, this._box_0.lineBreak);
- }
- };
- F.Extender__extendCompound_closure1.prototype = {
- call$1: function(complexes) {
- return complexes != null;
- }
- };
- F.Extender__extendCompound_closure2.prototype = {
- call$1: function(l) {
- return l;
- }
- };
- F.Extender__extendSimple_withoutPseudo.prototype = {
- call$1: function(simple) {
- var t1, t2,
- extenders = this.extensions.$index(0, simple);
- if (extenders == null)
- return null;
- t1 = this.targetsUsed;
- if (t1 != null)
- t1.add$1(0, simple);
- t1 = this.$this;
- if (t1._mode === C.ExtendMode_replace) {
- t1 = extenders.get$values();
- return P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
- }
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_Extension);
- t2.push(t1._extensionForSimple$1(simple));
- for (t1 = extenders.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
- t2.push(t1.get$current(t1));
- return t2;
- }
- };
- F.Extender__extendSimple_closure.prototype = {
- call$1: function(pseudo) {
- var t1 = this.withoutPseudo.call$1(pseudo);
- return t1 == null ? H.setRuntimeTypeInfo([this.$this._extensionForSimple$1(pseudo)], type$.JSArray_Extension) : t1;
- }
- };
- F.Extender__extendPseudo_closure.prototype = {
- call$1: function(complex) {
- return complex.components.length > 1;
- }
- };
- F.Extender__extendPseudo_closure0.prototype = {
- call$1: function(complex) {
- return complex.components.length === 1;
- }
- };
- F.Extender__extendPseudo_closure1.prototype = {
- call$1: function(complex) {
- return complex.components.length <= 1;
- }
- };
- F.Extender__extendPseudo_closure2.prototype = {
- call$1: function(complex) {
- var innerPseudo, t2,
- t1 = complex.components;
- if (t1.length !== 1)
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
- if (!(C.JSArray_methods.get$first(t1) instanceof X.CompoundSelector))
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
- t1 = type$.CompoundSelector._as(C.JSArray_methods.get$first(t1)).components;
- if (t1.length !== 1)
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
- if (!(C.JSArray_methods.get$first(t1) instanceof D.PseudoSelector))
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
- innerPseudo = type$.PseudoSelector._as(C.JSArray_methods.get$first(t1));
- t1 = innerPseudo.selector;
- if (t1 == null)
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
- t2 = this.pseudo;
- switch (t2.normalizedName) {
- case "not":
- if (innerPseudo.normalizedName !== "matches")
- return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector);
- return t1.components;
- case "matches":
- case "any":
- case "current":
- case "nth-child":
- case "nth-last-child":
- if (innerPseudo.name !== t2.name)
- return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector);
- if (innerPseudo.argument != t2.argument)
- return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector);
- return t1.components;
- case "has":
- case "host":
- case "host-context":
- case "slotted":
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector);
- default:
- return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector);
- }
- }
- };
- F.Extender__extendPseudo_closure3.prototype = {
- call$1: function(complex) {
- var t1 = this.pseudo;
- return D.PseudoSelector$(t1.name, t1.argument, !t1.isClass, D.SelectorList$(H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector)));
- }
- };
- F.Extender__trim_closure.prototype = {
- call$1: function(complex2) {
- return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector(complex2.components, this.complex1.components);
- }
- };
- F.Extender__trim_closure0.prototype = {
- call$1: function(complex2) {
- return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector(complex2.components, this.complex1.components);
- }
- };
- F.Extender_clone_closure.prototype = {
- call$2: function(simple, selectors) {
- var t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
- t1 = type$.ModifiableCssValue_SelectorList,
- newSelectorSet = P.LinkedHashSet_LinkedHashSet$_empty(t1);
- _this.newSelectors.$indexSet(0, simple, newSelectorSet);
- for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = _this.$this._mediaContexts, t5 = _this.newMediaContexts; t2.moveNext$0();) {
- t6 = t2.get$current(t2);
- newSelector = new F.ModifiableCssValue(t6.value, t6.span, t1);
- newSelectorSet.add$1(0, newSelector);
- t3.$indexSet(0, t6, newSelector);
- mediaContext = t4.$index(0, t6);
- if (mediaContext != null)
- t5.$indexSet(0, newSelector, mediaContext);
- }
- }
- };
- S.Extension.prototype = {
- assertCompatibleMediaContext$1: function(mediaContext) {
- var t1 = this.mediaContext;
- if (t1 == null)
- return;
- if (mediaContext != null && C.C_ListEquality.equals$2(t1, mediaContext))
- return;
- throw H.wrapException(E.SassException$("You may not @extend selectors across media queries.", this.span));
- },
- toString$0: function(_) {
- var t1 = H.S(this.extender) + " {@extend " + H.S(this.target);
- return t1 + (this.isOptional ? " !optional" : "") + "}";
- },
- get$target: function() {
- return this.target;
- },
- get$span: function() {
- return this.span;
- }
- };
- Y.unifyComplex_closure.prototype = {
- call$1: function(complex) {
- var t1 = J.getInterceptor$asx(complex);
- return t1.sublist$2(complex, 0, t1.get$length(complex) - 1);
- }
- };
- Y._weaveParents_closure.prototype = {
- call$2: function(group1, group2) {
- var unified, t1, _null = null;
- if (C.C_ListEquality.equals$2(group1, group2))
- return group1;
- if (!(J.get$first$ax(group1) instanceof X.CompoundSelector) || !(J.get$first$ax(group2) instanceof X.CompoundSelector))
- return _null;
- if (Y.complexIsParentSuperselector(group1, group2))
- return group2;
- if (Y.complexIsParentSuperselector(group2, group1))
- return group1;
- if (!Y._mustUnify(group1, group2))
- return _null;
- unified = Y.unifyComplex(H.setRuntimeTypeInfo([group1, group2], type$.JSArray_List_ComplexSelectorComponent));
- if (unified == null)
- return _null;
- t1 = J.getInterceptor$asx(unified);
- if (t1.get$length(unified) > 1)
- return _null;
- return t1.get$first(unified);
- }
- };
- Y._weaveParents_closure0.prototype = {
- call$1: function(sequence) {
- return Y.complexIsParentSuperselector(sequence.get$first(sequence), this.group);
- }
- };
- Y._weaveParents_closure1.prototype = {
- call$1: function(chunk) {
- return J.expand$1$1$ax(chunk, new Y._weaveParents__closure1(), type$.ComplexSelectorComponent);
- }
- };
- Y._weaveParents__closure1.prototype = {
- call$1: function(group) {
- return group;
- }
- };
- Y._weaveParents_closure2.prototype = {
- call$1: function(sequence) {
- return sequence.get$length(sequence) === 0;
- }
- };
- Y._weaveParents_closure3.prototype = {
- call$1: function(chunk) {
- return J.expand$1$1$ax(chunk, new Y._weaveParents__closure0(), type$.ComplexSelectorComponent);
- }
- };
- Y._weaveParents__closure0.prototype = {
- call$1: function(group) {
- return group;
- }
- };
- Y._weaveParents_closure4.prototype = {
- call$1: function(choice) {
- return J.get$isNotEmpty$asx(choice);
- }
- };
- Y._weaveParents_closure5.prototype = {
- call$1: function(path) {
- var t1 = J.expand$1$1$ax(path, new Y._weaveParents__closure(), type$.ComplexSelectorComponent);
- return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
- }
- };
- Y._weaveParents__closure.prototype = {
- call$1: function(group) {
- return group;
- }
- };
- Y._mustUnify_closure.prototype = {
- call$1: function(component) {
- return component instanceof X.CompoundSelector && C.JSArray_methods.any$1(component.components, new Y._mustUnify__closure(this.uniqueSelectors));
- }
- };
- Y._mustUnify__closure.prototype = {
- call$1: function(simple) {
- var t1;
- if (!(simple instanceof N.IDSelector))
- t1 = simple instanceof D.PseudoSelector && !simple.isClass;
- else
- t1 = true;
- return t1 && this.uniqueSelectors.contains$1(0, simple);
- }
- };
- Y.paths_closure.prototype = {
- call$2: function(paths, choice) {
- var t1 = this.T;
- t1 = J.expand$1$1$ax(choice, new Y.paths__closure(paths, t1), t1._eval$1("List<0>"));
- return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
- }
- };
- Y.paths__closure.prototype = {
- call$1: function(option) {
- var t1 = this.T;
- return J.map$1$1$ax(this.paths, new Y.paths___closure(option, t1), t1._eval$1("List<0>"));
- },
- $signature: function() {
- return this.T._eval$1("Iterable<List<0>>(0)");
- }
- };
- Y.paths___closure.prototype = {
- call$1: function(path) {
- var t2,
- t1 = H.setRuntimeTypeInfo([], this.T._eval$1("JSArray<0>"));
- for (t2 = J.get$iterator$ax(path); t2.moveNext$0();)
- t1.push(t2.get$current(t2));
- t1.push(this.option);
- return t1;
- }
- };
- Y._hasRoot_closure.prototype = {
- call$1: function(simple) {
- return simple instanceof D.PseudoSelector && simple.isClass && simple.normalizedName === "root";
- }
- };
- Y.listIsSuperslector_closure.prototype = {
- call$1: function(complex1) {
- return C.JSArray_methods.any$1(this.list1, new Y.listIsSuperslector__closure(complex1));
- }
- };
- Y.listIsSuperslector__closure.prototype = {
- call$1: function(complex2) {
- return Y.complexIsSuperselector(complex2.components, this.complex1.components);
- }
- };
- Y._simpleIsSuperselectorOfCompound_closure.prototype = {
- call$1: function(theirSimple) {
- var t1 = this.simple;
- if (J.$eq$(t1, theirSimple))
- return true;
- if (theirSimple instanceof D.PseudoSelector && theirSimple.selector != null && $._subselectorPseudos.contains$1(0, theirSimple.normalizedName))
- return C.JSArray_methods.every$1(theirSimple.selector.components, new Y._simpleIsSuperselectorOfCompound__closure(t1));
- else
- return false;
- }
- };
- Y._simpleIsSuperselectorOfCompound__closure.prototype = {
- call$1: function(complex) {
- var t1 = complex.components;
- if (t1.length !== 1)
- return false;
- return C.JSArray_methods.contains$1(type$.CompoundSelector._as(C.JSArray_methods.get$single(t1)).components, this.simple);
- }
- };
- Y._selectorPseudoIsSuperselector_closure.prototype = {
- call$1: function(pseudo2) {
- var t1 = pseudo2.selector;
- return Y.listIsSuperslector(this.pseudo1.selector.components, t1.components);
- }
- };
- Y._selectorPseudoIsSuperselector_closure0.prototype = {
- call$1: function(complex1) {
- var t1 = complex1.components,
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent),
- t3 = this.parents;
- if (t3 != null)
- for (t3 = t3.get$iterator(t3); t3.moveNext$0();)
- t2.push(t3.get$current(t3));
- t2.push(this.compound2);
- return Y.complexIsSuperselector(t1, t2);
- }
- };
- Y._selectorPseudoIsSuperselector_closure1.prototype = {
- call$1: function(pseudo2) {
- var t1 = pseudo2.selector;
- return Y.listIsSuperslector(this.pseudo1.selector.components, t1.components);
- }
- };
- Y._selectorPseudoIsSuperselector_closure2.prototype = {
- call$1: function(pseudo2) {
- var t1 = pseudo2.selector;
- return Y.listIsSuperslector(this.pseudo1.selector.components, t1.components);
- }
- };
- Y._selectorPseudoIsSuperselector_closure3.prototype = {
- call$1: function(complex) {
- return C.JSArray_methods.any$1(this.compound2.components, new Y._selectorPseudoIsSuperselector__closure(complex, this.pseudo1));
- }
- };
- Y._selectorPseudoIsSuperselector__closure.prototype = {
- call$1: function(simple2) {
- var compound1, _this = this;
- if (simple2 instanceof F.TypeSelector) {
- compound1 = C.JSArray_methods.get$last(_this.complex.components);
- return compound1 instanceof X.CompoundSelector && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure(simple2));
- } else if (simple2 instanceof N.IDSelector) {
- compound1 = C.JSArray_methods.get$last(_this.complex.components);
- return compound1 instanceof X.CompoundSelector && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure0(simple2));
- } else if (simple2 instanceof D.PseudoSelector && simple2.name === _this.pseudo1.name && simple2.selector != null)
- return Y.listIsSuperslector(simple2.selector.components, H.setRuntimeTypeInfo([_this.complex], type$.JSArray_ComplexSelector));
- else
- return false;
- }
- };
- Y._selectorPseudoIsSuperselector___closure.prototype = {
- call$1: function(simple1) {
- var t1;
- if (simple1 instanceof F.TypeSelector) {
- t1 = this.simple2.name.$eq(0, simple1.name);
- t1 = !t1;
- } else
- t1 = false;
- return t1;
- }
- };
- Y._selectorPseudoIsSuperselector___closure0.prototype = {
- call$1: function(simple1) {
- var t1;
- if (simple1 instanceof N.IDSelector) {
- t1 = simple1.name;
- t1 = this.simple2.name !== t1;
- } else
- t1 = false;
- return t1;
- }
- };
- Y._selectorPseudoIsSuperselector_closure4.prototype = {
- call$1: function(pseudo2) {
- return J.$eq$(this.pseudo1.selector, pseudo2.selector);
- }
- };
- Y._selectorPseudoIsSuperselector_closure5.prototype = {
- call$1: function(pseudo2) {
- var t1, t2;
- if (pseudo2 instanceof D.PseudoSelector) {
- t1 = this.pseudo1;
- if (pseudo2.name === t1.name)
- if (pseudo2.argument == t1.argument) {
- t2 = pseudo2.selector;
- t2 = Y.listIsSuperslector(t1.selector.components, t2.components);
- t1 = t2;
- } else
- t1 = false;
- else
- t1 = false;
- } else
- t1 = false;
- return t1;
- }
- };
- Y._selectorPseudosNamed_closure.prototype = {
- call$1: function(pseudo) {
- return pseudo.isClass === this.isClass && pseudo.selector != null && pseudo.name === this.name;
- }
- };
- A.MergedExtension.prototype = {
- unmerge$0: function() {
- var $async$self = this;
- return P._makeSyncStarIterable(function() {
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1;
- return function $async$unmerge$0($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.left;
- $async$goto = t1 instanceof A.MergedExtension ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return P._IterationMarker_yieldStar(t1.unmerge$0());
- case 5:
- // after yield
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 6;
- return t1;
- case 6:
- // after yield
- case 3:
- // join
- $async$goto = 7;
- return $async$self.right;
- case 7:
- // after yield
- // implicit return
- return P._IterationMarker_endOfIteration();
- case 1:
- // rethrow
- return P._IterationMarker_uncaughtError($async$currentError);
- }
- };
- }, type$.Extension);
- }
- };
- L.ExtendMode.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- Y.closure.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
- },
- $signature: 4
- };
- K.closure43.prototype = {
- call$1: function($arguments) {
- return K._rgb("rgb", $arguments);
- },
- $signature: 4
- };
- K.closure44.prototype = {
- call$1: function($arguments) {
- return K._rgb("rgb", $arguments);
- },
- $signature: 4
- };
- K.closure45.prototype = {
- call$1: function($arguments) {
- return K._rgbTwoArg("rgb", $arguments);
- },
- $signature: 4
- };
- K.closure46.prototype = {
- call$1: function($arguments) {
- var parsed = K._parseChannels("rgb", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof D.SassString ? parsed : K._rgb("rgb", type$.List_Value._as(parsed));
- },
- $signature: 4
- };
- K.closure47.prototype = {
- call$1: function($arguments) {
- return K._rgb("rgba", $arguments);
- },
- $signature: 4
- };
- K.closure48.prototype = {
- call$1: function($arguments) {
- return K._rgb("rgba", $arguments);
- },
- $signature: 4
- };
- K.closure49.prototype = {
- call$1: function($arguments) {
- return K._rgbTwoArg("rgba", $arguments);
- },
- $signature: 4
- };
- K.closure50.prototype = {
- call$1: function($arguments) {
- var parsed = K._parseChannels("rgba", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof D.SassString ? parsed : K._rgb("rgba", type$.List_Value._as(parsed));
- },
- $signature: 4
- };
- K.closure51.prototype = {
- call$1: function($arguments) {
- var color, t2,
- t1 = J.getInterceptor$asx($arguments),
- weight = t1.$index($arguments, 1).assertNumber$1("weight");
- if (t1.$index($arguments, 0) instanceof T.SassNumber) {
- if (weight.value !== 100 || !weight.hasUnit$1("%"))
- throw H.wrapException("Only one argument may be passed to the plain-CSS invert() function.");
- return K._functionString("invert", t1.take$1($arguments, 1));
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- t1 = color.get$red();
- t2 = color.get$green();
- return K._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
- },
- $signature: 4
- };
- K.closure52.prototype = {
- call$1: function($arguments) {
- return K._hsl("hsl", $arguments);
- },
- $signature: 4
- };
- K.closure53.prototype = {
- call$1: function($arguments) {
- return K._hsl("hsl", $arguments);
- },
- $signature: 4
- };
- K.closure54.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
- return K._functionString("hsl", $arguments);
- else
- throw H.wrapException(E.SassScriptException$("Missing argument $lightness."));
- },
- $signature: 12
- };
- K.closure55.prototype = {
- call$1: function($arguments) {
- var parsed = K._parseChannels("hsl", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof D.SassString ? parsed : K._hsl("hsl", type$.List_Value._as(parsed));
- },
- $signature: 4
- };
- K.closure56.prototype = {
- call$1: function($arguments) {
- return K._hsl("hsla", $arguments);
- },
- $signature: 4
- };
- K.closure57.prototype = {
- call$1: function($arguments) {
- return K._hsl("hsla", $arguments);
- },
- $signature: 4
- };
- K.closure58.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
- return K._functionString("hsla", $arguments);
- else
- throw H.wrapException(E.SassScriptException$("Missing argument $lightness."));
- },
- $signature: 12
- };
- K.closure59.prototype = {
- call$1: function($arguments) {
- var parsed = K._parseChannels("hsla", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof D.SassString ? parsed : K._hsl("hsla", type$.List_Value._as(parsed));
- },
- $signature: 4
- };
- K.closure60.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof T.SassNumber)
- return K._functionString("grayscale", $arguments);
- return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
- },
- $signature: 4
- };
- K.closure61.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- degrees = t1.$index($arguments, 1).assertNumber$1("degrees");
- return color.changeHsl$1$hue(color.get$hue() + degrees.value);
- },
- $signature: 21
- };
- K.closure62.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 21
- };
- K.closure63.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 21
- };
- K.closure64.prototype = {
- call$1: function($arguments) {
- return new D.SassString("saturate(" + N.serializeValue0(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
- },
- $signature: 12
- };
- K.closure65.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 21
- };
- K.closure66.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 21
- };
- K.closure67.prototype = {
- call$1: function($arguments) {
- var color,
- argument = J.$index$asx($arguments, 0);
- if (argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart()))
- return K._functionString("alpha", $arguments);
- color = argument.assertColor$1("color");
- return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
- },
- $signature: 4
- };
- K.closure68.prototype = {
- call$1: function($arguments) {
- var t1,
- argList = J.$index$asx($arguments, 0).get$asList();
- if (argList.length !== 0 && C.JSArray_methods.every$1(argList, new K._closure10()))
- return K._functionString("alpha", $arguments);
- t1 = argList.length;
- if (t1 === 0)
- throw H.wrapException(E.SassScriptException$("Missing argument $color."));
- else
- throw H.wrapException(E.SassScriptException$("Only 1 argument allowed, but " + t1 + " were passed."));
- },
- $signature: 12
- };
- K._closure10.prototype = {
- call$1: function(argument) {
- return argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart());
- }
- };
- K.closure69.prototype = {
- call$1: function($arguments) {
- var color,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof T.SassNumber)
- return K._functionString("opacity", $arguments);
- color = t1.$index($arguments, 0).assertColor$1("color");
- return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
- },
- $signature: 4
- };
- K.closure96.prototype = {
- call$1: function($arguments) {
- var result, color, t2,
- t1 = J.getInterceptor$asx($arguments),
- weight = t1.$index($arguments, 1).assertNumber$1("weight");
- if (t1.$index($arguments, 0) instanceof T.SassNumber) {
- if (weight.value !== 100 || !weight.hasUnit$1("%"))
- throw H.wrapException("Only one argument may be passed to the plain-CSS invert() function.");
- result = K._functionString("invert", t1.take$1($arguments, 1));
- N.warn("Passing a number to color.invert() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- t1 = color.get$red();
- t2 = color.get$green();
- return K._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
- },
- $signature: 4
- };
- K.closure97.prototype = {
- call$1: function($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof T.SassNumber) {
- result = K._functionString("grayscale", t1.take$1($arguments, 1));
- N.warn("Passing a number to color.grayscale() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
- },
- $signature: 4
- };
- K.closure98.prototype = {
- call$1: function($arguments) {
- var result, color,
- argument = J.$index$asx($arguments, 0);
- if (argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart())) {
- result = K._functionString("alpha", $arguments);
- N.warn("Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- color = argument.assertColor$1("color");
- return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
- },
- $signature: 4
- };
- K.closure99.prototype = {
- call$1: function($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (C.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new K._closure12())) {
- result = K._functionString("alpha", $arguments);
- N.warn("Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- throw H.wrapException(E.SassScriptException$("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed."));
- },
- $signature: 12
- };
- K._closure12.prototype = {
- call$1: function(argument) {
- return argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart());
- }
- };
- K.closure100.prototype = {
- call$1: function($arguments) {
- var result, color,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof T.SassNumber) {
- result = K._functionString("opacity", $arguments);
- N.warn("Passing a number to color.opacity() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- return new T.SassNumber(color.alpha, C.List_empty, C.List_empty, null);
- },
- $signature: 4
- };
- K.closure83.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$red();
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure82.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$green();
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure81.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$blue();
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure80.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return K._mixColors(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
- },
- $signature: 21
- };
- K.closure79.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$hue(),
- t2 = H.setRuntimeTypeInfo(["deg"], type$.JSArray_String);
- t2 = P.List_List$unmodifiable(t2, type$.String);
- return new T.SassNumber(t1, t2, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure78.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$saturation(),
- t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
- t2 = P.List_List$unmodifiable(t2, type$.String);
- return new T.SassNumber(t1, t2, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure77.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$lightness(),
- t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
- t2 = P.List_List$unmodifiable(t2, type$.String);
- return new T.SassNumber(t1, t2, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure76.prototype = {
- call$1: function($arguments) {
- var color = J.$index$asx($arguments, 0).assertColor$1("color");
- return color.changeHsl$1$hue(color.get$hue() + 180);
- },
- $signature: 21
- };
- K.closure74.prototype = {
- call$1: function($arguments) {
- var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4, t5, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
- if (argumentList._list$_contents.length !== 0)
- throw H.wrapException(E.SassScriptException$("Only one positional argument is allowed. All other arguments must be passed by name."));
- argumentList._wereKeywordsAccessed = true;
- keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value);
- t1 = new K.closure_getInRange0(keywords);
- t2 = t1.call$3("red", -255, 255);
- red = t2 == null ? _null : T.fuzzyRound(t2);
- t2 = t1.call$3("green", -255, 255);
- green = t2 == null ? _null : T.fuzzyRound(t2);
- t2 = t1.call$3("blue", -255, 255);
- blue = t2 == null ? _null : T.fuzzyRound(t2);
- t2 = keywords.remove$1(0, "hue");
- t2 = t2 == null ? _null : t2.assertNumber$1("hue");
- hue = t2 == null ? _null : t2.value;
- saturation = t1.call$3("saturation", -100, 100);
- lightness = t1.call$3("lightness", -100, 100);
- alpha = t1.call$3("alpha", -1, 1);
- if (keywords.get$isNotEmpty(keywords))
- 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$.Object), "or")) + "."));
- t1 = red == null;
- hasRgb = !t1 || green != null || blue != null;
- t2 = hue == null;
- hasHsl = !t2 || saturation != null || lightness != null;
- if (hasRgb) {
- if (hasHsl)
- throw H.wrapException(E.SassScriptException$("RGB parameters may not be passed along with HSL parameters."));
- t2 = color.get$red();
- t2 = H._asIntNullable(C.JSInt_methods.clamp$2(t2 + (t1 ? 0 : red), 0, 255));
- t3 = color.get$green();
- t1 = H._asIntNullable(C.JSInt_methods.clamp$2(t3 + (green == null ? 0 : green), 0, 255));
- t3 = color.get$blue();
- t3 = H._asIntNullable(C.JSInt_methods.clamp$2(t3 + (blue == null ? 0 : blue), 0, 255));
- t4 = alpha == null ? 0 : alpha;
- return color.changeRgb$4$alpha$blue$green$red(C.JSNumber_methods.clamp$2(color.alpha + t4, 0, 1), t3, t1, t2);
- } else if (hasHsl) {
- t1 = color.get$hue();
- t2 = t2 ? 0 : hue;
- t3 = color.get$saturation();
- t3 = C.JSNumber_methods.clamp$2(t3 + (saturation == null ? 0 : saturation), 0, 100);
- t4 = color.get$lightness();
- t4 = C.JSNumber_methods.clamp$2(t4 + (lightness == null ? 0 : lightness), 0, 100);
- t5 = alpha == null ? 0 : alpha;
- return color.changeHsl$4$alpha$hue$lightness$saturation(C.JSNumber_methods.clamp$2(color.alpha + t5, 0, 1), t1 + t2, t4, t3);
- } else if (alpha != null)
- return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + alpha, 0, 1));
- else
- return color;
- },
- $signature: 21
- };
- K.closure_getInRange0.prototype = {
- call$3: function($name, min, max) {
- var t1 = this.keywords.remove$1(0, $name);
- t1 = t1 == null ? null : t1.assertNumber$1($name);
- return t1 == null ? null : t1.valueInRange$3(min, max, $name);
- }
- };
- K._closure9.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- K.closure73.prototype = {
- call$1: function($arguments) {
- var keywords, t2, red, green, blue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
- if (argumentList._list$_contents.length !== 0)
- throw H.wrapException(E.SassScriptException$("Only one positional argument is allowed. All other arguments must be passed by name."));
- argumentList._wereKeywordsAccessed = true;
- keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value);
- t1 = new K.closure_getScale(keywords);
- t2 = new K.closure_scaleValue();
- red = t1.call$1("red");
- green = t1.call$1("green");
- blue = t1.call$1("blue");
- saturation = t1.call$1("saturation");
- lightness = t1.call$1("lightness");
- alpha = t1.call$1("alpha");
- if (keywords.get$isNotEmpty(keywords))
- 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$.Object), "or")) + "."));
- hasRgb = red != null || green != null || blue != null;
- hasHsl = saturation != null || lightness != null;
- if (hasRgb) {
- if (hasHsl)
- throw H.wrapException(E.SassScriptException$("RGB parameters may not be passed along with HSL parameters."));
- t1 = T.fuzzyRound(t2.call$3(color.get$red(), red, 255));
- t3 = T.fuzzyRound(t2.call$3(color.get$green(), green, 255));
- t4 = T.fuzzyRound(t2.call$3(color.get$blue(), blue, 255));
- return color.changeRgb$4$alpha$blue$green$red(t2.call$3(color.alpha, alpha, 1), t4, t3, t1);
- } else if (hasHsl) {
- t1 = t2.call$3(color.get$saturation(), saturation, 100);
- t3 = t2.call$3(color.get$lightness(), lightness, 100);
- return color.changeHsl$3$alpha$lightness$saturation(t2.call$3(color.alpha, alpha, 1), t3, t1);
- } else if (alpha != null)
- return color.changeAlpha$1(t2.call$3(color.alpha, alpha, 1));
- else
- return color;
- },
- $signature: 21
- };
- K.closure_getScale.prototype = {
- call$1: function($name) {
- var number,
- value = this.keywords.remove$1(0, $name);
- if (value == null)
- return null;
- number = value.assertNumber$1($name);
- number.assertUnit$2("%", $name);
- return number.valueInRange$3(-100, 100, $name) / 100;
- }
- };
- K.closure_scaleValue.prototype = {
- call$3: function(current, scale, max) {
- if (scale == null)
- return current;
- return current + (scale > 0 ? max - current : current) * scale;
- }
- };
- K._closure8.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- K.closure72.prototype = {
- call$1: function($arguments) {
- var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
- if (argumentList._list$_contents.length !== 0)
- throw H.wrapException(E.SassScriptException$("Only one positional argument is allowed. All other arguments must be passed by name."));
- argumentList._wereKeywordsAccessed = true;
- keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value);
- t1 = new K.closure_getInRange(keywords);
- t2 = t1.call$3("red", 0, 255);
- red = t2 == null ? _null : T.fuzzyRound(t2);
- t2 = t1.call$3("green", 0, 255);
- green = t2 == null ? _null : T.fuzzyRound(t2);
- t2 = t1.call$3("blue", 0, 255);
- blue = t2 == null ? _null : T.fuzzyRound(t2);
- t2 = keywords.remove$1(0, "hue");
- t2 = t2 == null ? _null : t2.assertNumber$1("hue");
- hue = t2 == null ? _null : t2.value;
- saturation = t1.call$3("saturation", 0, 100);
- lightness = t1.call$3("lightness", 0, 100);
- alpha = t1.call$3("alpha", 0, 1);
- if (keywords.get$isNotEmpty(keywords))
- 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$.Object), "or")) + "."));
- hasRgb = red != null || green != null || blue != null;
- hasHsl = hue != null || saturation != null || lightness != null;
- if (hasRgb) {
- if (hasHsl)
- throw H.wrapException(E.SassScriptException$("RGB parameters may not be passed along with HSL parameters."));
- return color.changeRgb$4$alpha$blue$green$red(alpha, blue, green, red);
- } else if (hasHsl)
- return color.changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation);
- else if (alpha != null)
- return color.changeAlpha$1(alpha);
- else
- return color;
- },
- $signature: 21
- };
- K.closure_getInRange.prototype = {
- call$3: function($name, min, max) {
- var t1 = this.keywords.remove$1(0, $name);
- t1 = t1 == null ? null : t1.assertNumber$1($name);
- return t1 == null ? null : t1.valueInRange$3(min, max, $name);
- }
- };
- K._closure7.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- K.closure75.prototype = {
- call$1: function($arguments) {
- var color = J.$index$asx($arguments, 0).assertColor$1("color"),
- t1 = new K.closure_hexString();
- 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);
- },
- $signature: 12
- };
- K.closure_hexString.prototype = {
- call$1: function(component) {
- return C.JSString_methods.padLeft$2(J.toRadixString$1$n(component, 16), 2, "0").toUpperCase();
- },
- $signature: 36
- };
- K._functionString_closure.prototype = {
- call$1: function(argument) {
- argument.toString;
- return N.serializeValue0(argument, false, true);
- }
- };
- K._removedColorFunction_closure.prototype = {
- call$1: function($arguments) {
- var t1 = this.name,
- t2 = J.getInterceptor$asx($arguments),
- t3 = "The function " + t1 + "() isn't in the sass:color module.\n\nRecommendation: color.adjust(" + H.S(t2.$index($arguments, 0)) + ", $" + this.argument + ": ";
- throw H.wrapException(E.SassScriptException$(t3 + (this.negative ? "-" : "") + H.S(t2.$index($arguments, 1)) + ")\n\nMore info: https://sass-lang.com/documentation/functions/color#" + t1));
- },
- $signature: 59
- };
- K._parseChannels_closure.prototype = {
- call$1: function(value) {
- return value.get$isVar();
- }
- };
- D.closure42.prototype = {
- call$1: function($arguments) {
- var t1 = J.$index$asx($arguments, 0).get$asList().length;
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- D.closure41.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- index = t1.$index($arguments, 1);
- return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
- },
- $signature: 4
- };
- D.closure40.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- index = t1.$index($arguments, 1),
- value = t1.$index($arguments, 2),
- t2 = list.get$asList(),
- newList = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2));
- newList[list.sassIndexToListIndex$2(index, "n")] = value;
- return t1.$index($arguments, 0).changeListContents$1(newList);
- },
- $signature: 22
- };
- D.closure39.prototype = {
- call$1: function($arguments) {
- var separator, bracketed, t2, t3, _i,
- t1 = J.getInterceptor$asx($arguments),
- list1 = t1.$index($arguments, 0),
- list2 = t1.$index($arguments, 1),
- separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
- bracketedParam = t1.$index($arguments, 3);
- t1 = separatorParam.text;
- if (t1 === "auto")
- if (list1.get$separator() !== C.ListSeparator_undecided)
- separator = list1.get$separator();
- else
- separator = list2.get$separator() !== C.ListSeparator_undecided ? list2.get$separator() : C.ListSeparator_space;
- else if (t1 === "space")
- separator = C.ListSeparator_space;
- else {
- if (t1 !== "comma")
- throw H.wrapException(E.SassScriptException$('$separator: Must be "space", "comma", or "auto".'));
- separator = C.ListSeparator_comma;
- }
- bracketed = bracketedParam instanceof D.SassString && bracketedParam.text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
- for (t2 = list1.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- t1.push(t2[_i]);
- for (t2 = list2.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- t1.push(t2[_i]);
- return D.SassList$(t1, separator, bracketed);
- },
- $signature: 22
- };
- D.closure38.prototype = {
- call$1: function($arguments) {
- var separator, t2, t3, _i,
- t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- value = t1.$index($arguments, 1);
- t1 = t1.$index($arguments, 2).assertString$1("separator").text;
- if (t1 === "auto")
- separator = list.get$separator() === C.ListSeparator_undecided ? C.ListSeparator_space : list.get$separator();
- else if (t1 === "space")
- separator = C.ListSeparator_space;
- else {
- if (t1 !== "comma")
- throw H.wrapException(E.SassScriptException$('$separator: Must be "space", "comma", or "auto".'));
- separator = C.ListSeparator_comma;
- }
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
- for (t2 = list.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- t1.push(t2[_i]);
- t1.push(value);
- return list.changeListContents$2$separator(t1, separator);
- },
- $signature: 22
- };
- D.closure37.prototype = {
- call$1: function($arguments) {
- var results, t2, result, _box_0 = {},
- t1 = J.$index$asx($arguments, 0).get$asList(),
- lists = new H.MappedListIterable(t1, new D._closure4(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value>>")).toList$0(0);
- if (lists.length === 0)
- return C.SassList_lmy;
- _box_0.i = 0;
- results = H.setRuntimeTypeInfo([], type$.JSArray_SassList);
- for (t1 = H._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value>"), t2 = type$.Value; C.JSArray_methods.every$1(lists, new D._closure5(_box_0));) {
- result = P.List_List$from(new H.MappedListIterable(lists, new D._closure6(_box_0), t1), false, t2);
- result.fixed$length = Array;
- result.immutable$list = Array;
- results.push(new D.SassList(result, C.ListSeparator_space, false));
- ++_box_0.i;
- }
- return D.SassList$(results, C.ListSeparator_comma, false);
- },
- $signature: 22
- };
- D._closure4.prototype = {
- call$1: function(list) {
- return list.get$asList();
- }
- };
- D._closure5.prototype = {
- call$1: function(list) {
- return this._box_0.i !== J.get$length$asx(list);
- }
- };
- D._closure6.prototype = {
- call$1: function(list) {
- return J.$index$asx(list, this._box_0.i);
- },
- $signature: 4
- };
- D.closure36.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- index = C.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
- if (index === -1)
- t1 = C.C_SassNull0;
- else
- t1 = new T.SassNumber(index + 1, C.List_empty, C.List_empty, null);
- return t1;
- },
- $signature: 4
- };
- D.closure34.prototype = {
- call$1: function($arguments) {
- return J.$index$asx($arguments, 0).get$separator() === C.ListSeparator_comma ? new D.SassString("comma", false) : new D.SassString("space", false);
- },
- $signature: 12
- };
- D.closure35.prototype = {
- call$1: function($arguments) {
- return J.$index$asx($arguments, 0).get$hasBrackets() ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- A.closure33.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- t1 = t1.$index($arguments, 0).assertMap$1("map").contents.$index(0, t1.$index($arguments, 1));
- return t1 == null ? C.C_SassNull0 : t1;
- },
- $signature: 4
- };
- A.closure32.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- map1 = t1.$index($arguments, 0).assertMap$1("map1"),
- map2 = t1.$index($arguments, 1).assertMap$1("map2");
- t1 = type$.Value;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = map1.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, t4.key, t4.value);
- }
- for (t3 = map2.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, t4.key, t4.value);
- }
- return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 30
- };
- A.closure30.prototype = {
- call$1: function($arguments) {
- return J.$index$asx($arguments, 0).assertMap$1("map");
- },
- $signature: 30
- };
- A.closure31.prototype = {
- call$1: function($arguments) {
- var t3, _i, mutableMap,
- t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
- t2.push(t1.$index($arguments, 1));
- for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
- t2.push(t1[_i]);
- t1 = type$.Value;
- mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1);
- for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- mutableMap.remove$1(0, t2[_i]);
- return new A.SassMap(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- },
- $signature: 30
- };
- A.closure29.prototype = {
- call$1: function($arguments) {
- return D.SassList$(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$keys(), C.ListSeparator_comma, false);
- },
- $signature: 22
- };
- A.closure28.prototype = {
- call$1: function($arguments) {
- return D.SassList$(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$values(), C.ListSeparator_comma, false);
- },
- $signature: 22
- };
- A.closure27.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).assertMap$1("map").contents.containsKey$1(t1.$index($arguments, 1)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- K.closure25.prototype = {
- call$1: function(value) {
- return J.ceil$0$n(value);
- },
- $signature: 34
- };
- K.closure91.prototype = {
- call$1: function($arguments) {
- var t2, t3, arg2, arg2Name, unit1, unit2,
- _s11_ = "is unitless",
- t1 = J.getInterceptor$asx($arguments),
- min = t1.$index($arguments, 0).assertNumber$1("min"),
- number = t1.$index($arguments, 1).assertNumber$1("number"),
- max = t1.$index($arguments, 2).assertNumber$1("max");
- t1 = min.numeratorUnits.length === 0;
- t2 = !t1 || min.denominatorUnits.length !== 0;
- t3 = number.numeratorUnits.length === 0;
- if (t2 === (!t3 || number.denominatorUnits.length !== 0)) {
- t2 = !t3 || number.denominatorUnits.length !== 0;
- t2 = t2 === (max.numeratorUnits.length !== 0 || max.denominatorUnits.length !== 0);
- } else
- t2 = false;
- if (t2) {
- if (min.greaterThanOrEquals$1(max).value)
- return min;
- if (min.greaterThanOrEquals$1(number).value)
- return min;
- if (number.greaterThanOrEquals$1(max).value)
- return max;
- return number;
- }
- t2 = !t1 || min.denominatorUnits.length !== 0;
- arg2 = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? number : max;
- t2 = !t1 || min.denominatorUnits.length !== 0;
- arg2Name = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? "$number" : "$max";
- unit1 = !t1 || min.denominatorUnits.length !== 0 ? "has unit " + min.get$unitString() : _s11_;
- unit2 = arg2.numeratorUnits.length !== 0 || arg2.denominatorUnits.length !== 0 ? "has unit " + arg2.get$unitString() : _s11_;
- throw H.wrapException(E.SassScriptException$("$min " + unit1 + " but " + arg2Name + " " + unit2 + ". Arguments must all have units or all be unitless."));
- },
- $signature: 7
- };
- K.closure24.prototype = {
- call$1: function(value) {
- return J.floor$0$n(value);
- },
- $signature: 34
- };
- K.closure23.prototype = {
- call$1: function($arguments) {
- var t1, t2, max, _i, number;
- 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) {
- number = t1[_i].assertNumber$0();
- if (max == null || max.lessThan$1(number).value)
- max = number;
- }
- if (max != null)
- return max;
- throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
- },
- $signature: 7
- };
- K.closure22.prototype = {
- call$1: function($arguments) {
- var t1, t2, min, _i, number;
- 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) {
- number = t1[_i].assertNumber$0();
- if (min == null || min.greaterThan$1(number).value)
- min = number;
- }
- if (min != null)
- return min;
- throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
- },
- $signature: 7
- };
- K.closure26.prototype = {
- call$1: function(value) {
- return Math.abs(value);
- },
- $signature: 68
- };
- K.closure89.prototype = {
- call$1: function($arguments) {
- var numeratorUnits, denominatorUnits, subtotal, i, number, t2, t3, t4, t5, t6, t7, result, unit1, unit2,
- _s11_ = "is unitless",
- t1 = J.$index$asx($arguments, 0).get$asList(),
- numbers = new H.MappedListIterable(t1, new K._closure11(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber>")).toList$0(0);
- if (numbers.length === 0)
- throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
- t1 = numbers[0];
- numeratorUnits = t1.numeratorUnits;
- denominatorUnits = t1.denominatorUnits;
- for (t1 = type$.String, subtotal = 0, i = 0; i < numbers.length; ++i) {
- number = numbers[i];
- t2 = number.numeratorUnits;
- t3 = t2.length === 0;
- t4 = !t3 || number.denominatorUnits.length !== 0;
- t5 = numbers[0];
- t6 = t5.numeratorUnits;
- t7 = t6.length === 0;
- if (t4 === (!t7 || t5.denominatorUnits.length !== 0)) {
- t2 = number.valueInUnits$2(numeratorUnits, denominatorUnits);
- result = P.List_List$from(numeratorUnits, false, t1);
- result.fixed$length = Array;
- result.immutable$list = Array;
- result = P.List_List$from(denominatorUnits, false, t1);
- result.fixed$length = Array;
- result.immutable$list = Array;
- H.checkNum(t2);
- subtotal += Math.pow(t2, 2);
- } else {
- if (!t7 || t5.denominatorUnits.length !== 0)
- unit1 = "has unit " + (!t7 || t5.denominatorUnits.length !== 0 ? t5._unitString$2(t6, t5.denominatorUnits) : "");
- else
- unit1 = _s11_;
- if (!t3 || number.denominatorUnits.length !== 0)
- unit2 = "has unit " + (!t3 || number.denominatorUnits.length !== 0 ? number._unitString$2(t2, number.denominatorUnits) : "");
- else
- unit2 = _s11_;
- throw H.wrapException(E.SassScriptException$("Argument 1 " + unit1 + " but argument " + (i + 1) + " " + unit2 + ". Arguments must all have units or all be unitless."));
- }
- }
- return T.SassNumber$withUnits(Math.sqrt(subtotal), denominatorUnits, numeratorUnits);
- },
- $signature: 7
- };
- K._closure11.prototype = {
- call$1: function(argument) {
- return argument.assertNumber$0();
- }
- };
- K.closure88.prototype = {
- call$1: function($arguments) {
- var numberValue, base, baseValue, t2,
- _s18_ = " to have no units.",
- t1 = J.getInterceptor$asx($arguments),
- number = t1.$index($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + _s18_));
- numberValue = K._fuzzyRoundIfZero(number.value);
- if (J.$eq$(t1.$index($arguments, 1), C.C_SassNull0)) {
- t1 = Math.log(H.checkNum(numberValue));
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- }
- base = t1.$index($arguments, 1).assertNumber$1("base");
- if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_));
- t1 = base.value;
- baseValue = Math.abs(t1 - 1) < $.$get$epsilon() ? T.fuzzyRound(t1) : K._fuzzyRoundIfZero(t1);
- t1 = Math.log(H.checkNum(numberValue));
- t2 = Math.log(H.checkNum(baseValue));
- return new T.SassNumber(t1 / t2, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure87.prototype = {
- call$1: function($arguments) {
- var baseValue, exponentValue, t2, _null = null,
- _s18_ = " to have no units.",
- t1 = J.getInterceptor$asx($arguments),
- base = t1.$index($arguments, 0).assertNumber$1("base"),
- exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
- if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_));
- else if (exponent.numeratorUnits.length !== 0 || exponent.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$("$exponent: Expected " + exponent.toString$0(0) + _s18_));
- baseValue = K._fuzzyRoundIfZero(base.value);
- exponentValue = K._fuzzyRoundIfZero(exponent.value);
- t1 = $.$get$epsilon();
- if (Math.abs(Math.abs(baseValue) - 1) < t1) {
- exponentValue.toString;
- t2 = exponentValue == 1 / 0 || exponentValue == -1 / 0;
- } else
- t2 = false;
- if (t2)
- return new T.SassNumber(0 / 0, C.List_empty, C.List_empty, _null);
- else if (Math.abs(baseValue - 0) < t1) {
- exponentValue.toString;
- if (isFinite(exponentValue))
- if (T.fuzzyIsInt(exponentValue))
- t1 = C.JSInt_methods.$mod(T.fuzzyIsInt(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- exponentValue = T.fuzzyRound(exponentValue);
- } else {
- if (isFinite(baseValue))
- if (baseValue < 0 && true) {
- exponentValue.toString;
- t1 = isFinite(exponentValue) && T.fuzzyIsInt(exponentValue);
- } else
- t1 = false;
- else
- t1 = false;
- if (t1)
- exponentValue = T.fuzzyRound(exponentValue);
- else {
- if (baseValue == 1 / 0 || baseValue == -1 / 0)
- if (baseValue < 0 && true) {
- exponentValue.toString;
- if (isFinite(exponentValue))
- if (T.fuzzyIsInt(exponentValue))
- t1 = C.JSInt_methods.$mod(T.fuzzyIsInt(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
- else
- t1 = false;
- else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- if (t1)
- exponentValue = T.fuzzyRound(exponentValue);
- }
- }
- H.checkNum(exponentValue);
- t1 = Math.pow(baseValue, exponentValue);
- return new T.SassNumber(t1, C.List_empty, C.List_empty, _null);
- },
- $signature: 7
- };
- K.closure85.prototype = {
- call$1: function($arguments) {
- var t1,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
- t1 = Math.sqrt(H.checkNum(K._fuzzyRoundIfZero(number.value)));
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure95.prototype = {
- call$1: function($arguments) {
- var numberValue,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
- numberValue = number.value;
- if (Math.abs(Math.abs(numberValue) - 1) < $.$get$epsilon())
- numberValue = T.fuzzyRound(numberValue);
- return T.SassNumber$withUnits(Math.acos(numberValue) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
- },
- $signature: 7
- };
- K.closure94.prototype = {
- call$1: function($arguments) {
- var t1,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
- t1 = number.value;
- 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_String));
- },
- $signature: 7
- };
- K.closure93.prototype = {
- call$1: function($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
- return T.SassNumber$withUnits(Math.atan(H.checkNum(K._fuzzyRoundIfZero(number.value))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
- },
- $signature: 7
- };
- K.closure92.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4, unit1, unit2, xValue,
- _s11_ = "is unitless",
- t1 = J.getInterceptor$asx($arguments),
- y = t1.$index($arguments, 0).assertNumber$1("y"),
- x = t1.$index($arguments, 1).assertNumber$1("x");
- t1 = y.numeratorUnits;
- t2 = t1.length === 0;
- t3 = !t2 || y.denominatorUnits.length !== 0;
- t4 = x.numeratorUnits.length === 0;
- if (t3 !== (!t4 || x.denominatorUnits.length !== 0)) {
- unit1 = !t2 || y.denominatorUnits.length !== 0 ? "has unit " + y.get$unitString() : _s11_;
- unit2 = !t4 || x.denominatorUnits.length !== 0 ? "has unit " + x.get$unitString() : _s11_;
- throw H.wrapException(E.SassScriptException$("$y " + unit1 + " but $x " + unit2 + ". Arguments must all have units or all be unitless."));
- }
- t2 = y.denominatorUnits;
- xValue = K._fuzzyRoundIfZero(T.SassNumber$withUnits(x.valueInUnits$2(t1, t2), t2, t1).value);
- return T.SassNumber$withUnits(Math.atan2(H.checkNum(K._fuzzyRoundIfZero(y.value)), H.checkNum(xValue)) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
- },
- $signature: 7
- };
- K.closure90.prototype = {
- call$1: function($arguments) {
- var t1 = Math.cos(H.checkNum(K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value));
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure86.prototype = {
- call$1: function($arguments) {
- var t1 = Math.sin(H.checkNum(K._fuzzyRoundIfZero(K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value)));
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure84.prototype = {
- call$1: function($arguments) {
- var t1 = K._coerceToRad(J.$index$asx($arguments, 0).assertNumber$1("number")).value,
- t2 = C.JSNumber_methods.$mod(t1 - 1.5707963267948966, 6.283185307179586),
- t3 = $.$get$epsilon();
- if (Math.abs(t2 - 0) < t3)
- return new T.SassNumber(1 / 0, C.List_empty, C.List_empty, null);
- else if (Math.abs(C.JSNumber_methods.$mod(t1 + 1.5707963267948966, 6.283185307179586) - 0) < t3)
- return new T.SassNumber(-1 / 0, C.List_empty, C.List_empty, null);
- else {
- t1 = Math.tan(H.checkNum(K._fuzzyRoundIfZero(t1)));
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- }
- },
- $signature: 7
- };
- K.closure18.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- K.closure17.prototype = {
- call$1: function($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number");
- return !(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- K.closure19.prototype = {
- call$1: function($arguments) {
- return new D.SassString(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
- },
- $signature: 12
- };
- K.closure21.prototype = {
- call$1: function($arguments) {
- var t1,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- number.assertNoUnits$1("number");
- t1 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
- t1 = P.List_List$unmodifiable(t1, type$.String);
- return new T.SassNumber(number.value * 100, t1, C.List_empty, null);
- },
- $signature: 7
- };
- K.closure20.prototype = {
- call$1: function($arguments) {
- var limit,
- t1 = J.getInterceptor$asx($arguments);
- if (J.$eq$(t1.$index($arguments, 0), C.C_SassNull0)) {
- t1 = $.$get$_random0().nextDouble$0();
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- }
- limit = t1.$index($arguments, 0).assertNumber$1("limit").assertInt$1("limit");
- if (limit < 1)
- throw H.wrapException(E.SassScriptException$("$limit: Must be greater than 0, was " + limit + "."));
- t1 = $.$get$_random0().nextInt$1(limit);
- return new T.SassNumber(t1 + 1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- K._numberFunction_closure.prototype = {
- call$1: function($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number");
- return T.SassNumber$withUnits(this.transform.call$1(number.value), number.denominatorUnits, number.numeratorUnits);
- },
- $signature: 7
- };
- Q.closure101.prototype = {
- call$1: function($arguments) {
- return $._features.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature").text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- Q.closure102.prototype = {
- call$1: function($arguments) {
- return new D.SassString(J.toString$0$(J.get$first$ax($arguments)), false);
- },
- $signature: 12
- };
- Q.closure103.prototype = {
- call$1: function($arguments) {
- var value = J.$index$asx($arguments, 0);
- if (value instanceof D.SassArgumentList)
- return new D.SassString("arglist", false);
- if (value instanceof Z.SassBoolean)
- return new D.SassString("bool", false);
- if (value instanceof K.SassColor)
- return new D.SassString("color", false);
- if (value instanceof D.SassList)
- return new D.SassString("list", false);
- if (value instanceof A.SassMap)
- return new D.SassString("map", false);
- if (value instanceof O.SassNull)
- return new D.SassString("null", false);
- if (value instanceof T.SassNumber)
- return new D.SassString("number", false);
- if (value instanceof F.SassFunction)
- return new D.SassString("function", false);
- return new D.SassString("string", false);
- },
- $signature: 12
- };
- Q.closure104.prototype = {
- call$1: function($arguments) {
- var t1,
- argumentList = J.$index$asx($arguments, 0);
- if (argumentList instanceof D.SassArgumentList) {
- argumentList._wereKeywordsAccessed = true;
- t1 = type$.Value;
- return new A.SassMap(H.ConstantMap_ConstantMap$from(Y.mapMap(argumentList._keywords, new Q._closure13(), null, type$.String, t1, t1, t1), t1, t1));
- } else
- throw H.wrapException("$args: " + H.S(argumentList) + " is not an argument list.");
- },
- $signature: 30
- };
- Q._closure13.prototype = {
- call$2: function(key, _) {
- return new D.SassString(key, false);
- }
- };
- T.closure13.prototype = {
- call$1: function($arguments) {
- var selectors = J.$index$asx($arguments, 0).get$asList();
- if (selectors.length === 0)
- throw H.wrapException(E.SassScriptException$("$selectors: At least one selector must be passed."));
- return new H.MappedListIterable(selectors, new T._closure1(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new T._closure2()).get$asSassList();
- },
- $signature: 22
- };
- T._closure1.prototype = {
- call$1: function(selector) {
- return selector.assertSelector$1$allowParent(true);
- }
- };
- T._closure2.prototype = {
- call$2: function($parent, child) {
- return child.resolveParentSelectors$1($parent);
- }
- };
- T.closure12.prototype = {
- call$1: function($arguments) {
- var selectors = J.$index$asx($arguments, 0).get$asList();
- if (selectors.length === 0)
- throw H.wrapException(E.SassScriptException$("$selectors: At least one selector must be passed."));
- return new H.MappedListIterable(selectors, new T._closure(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new T._closure0()).get$asSassList();
- },
- $signature: 22
- };
- T._closure.prototype = {
- call$1: function(selector) {
- return selector.assertSelector$0();
- }
- };
- T._closure0.prototype = {
- call$2: function($parent, child) {
- var t1 = child.components;
- return D.SelectorList$(new H.MappedListIterable(t1, new T.__closure($parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"))).resolveParentSelectors$1($parent);
- }
- };
- T.__closure.prototype = {
- call$1: function(complex) {
- var newCompound, t2,
- t1 = complex.components,
- compound = C.JSArray_methods.get$first(t1);
- if (compound instanceof X.CompoundSelector) {
- newCompound = T._prependParent(compound);
- if (newCompound == null)
- throw H.wrapException(E.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent);
- t2.push(newCompound);
- for (t1 = H.SubListIterable$(t1, 1, null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
- t2.push(t1.__internal$_current);
- return S.ComplexSelector$(t2, false);
- } else
- throw H.wrapException(E.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
- }
- };
- T.closure11.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
- target = t1.$index($arguments, 1).assertSelector$1$name("extendee");
- return F.Extender__extendOrReplace(selector, t1.$index($arguments, 2).assertSelector$1$name("extender"), target, C.ExtendMode_allTargets).get$asSassList();
- },
- $signature: 22
- };
- T.closure10.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
- target = t1.$index($arguments, 1).assertSelector$1$name("original");
- return F.Extender__extendOrReplace(selector, t1.$index($arguments, 2).assertSelector$1$name("replacement"), target, C.ExtendMode_replace).get$asSassList();
- },
- $signature: 22
- };
- T.closure9.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- result = t1.$index($arguments, 0).assertSelector$1$name("selector1").unify$1(t1.$index($arguments, 1).assertSelector$1$name("selector2"));
- return result == null ? C.C_SassNull0 : result.get$asSassList();
- },
- $signature: 4
- };
- T.closure16.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- selector1 = t1.$index($arguments, 0).assertSelector$1$name("super"),
- selector2 = t1.$index($arguments, 1).assertSelector$1$name("sub");
- return Y.listIsSuperslector(selector1.components, selector2.components) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- T.closure15.prototype = {
- call$1: function($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertCompoundSelector$1$name("selector").components;
- return D.SassList$(new H.MappedListIterable(t1, new T._closure3(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), C.ListSeparator_comma, false);
- },
- $signature: 22
- };
- T._closure3.prototype = {
- call$1: function(simple) {
- return new D.SassString(J.toString$0$(simple), false);
- }
- };
- T.closure14.prototype = {
- call$1: function($arguments) {
- return J.$index$asx($arguments, 0).assertSelector$1$name("selector").get$asSassList();
- },
- $signature: 22
- };
- D.closure8.prototype = {
- call$1: function($arguments) {
- var string = J.$index$asx($arguments, 0).assertString$1("string");
- if (!string.hasQuotes)
- return string;
- return new D.SassString(string.text, false);
- },
- $signature: 12
- };
- D.closure7.prototype = {
- call$1: function($arguments) {
- var string = J.$index$asx($arguments, 0).assertString$1("string");
- if (string.hasQuotes)
- return string;
- return new D.SassString(string.text, true);
- },
- $signature: 12
- };
- D.closure3.prototype = {
- call$1: function($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertString$1("string").get$sassLength();
- return new T.SassNumber(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 7
- };
- D.closure2.prototype = {
- call$1: function($arguments) {
- var indexInt, codeUnitIndex, _s5_ = "index",
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- insert = t1.$index($arguments, 1).assertString$1("insert"),
- index = t1.$index($arguments, 2).assertNumber$1(_s5_);
- index.assertNoUnits$1(_s5_);
- indexInt = index.assertInt$1(_s5_);
- if (indexInt < 0)
- indexInt = string.get$sassLength() + indexInt + 2;
- t1 = string.text;
- codeUnitIndex = B.codepointIndexToCodeUnitIndex(t1, D._codepointForIndex(indexInt, string.get$sassLength(), false));
- return new D.SassString(J.replaceRange$3$asx(t1, codeUnitIndex, codeUnitIndex, insert.text), string.hasQuotes);
- },
- $signature: 12
- };
- D.closure1.prototype = {
- call$1: function($arguments) {
- var codepointIndex,
- t1 = J.getInterceptor$asx($arguments),
- t2 = t1.$index($arguments, 0).assertString$1("string").text,
- codeUnitIndex = J.indexOf$1$asx(t2, t1.$index($arguments, 1).assertString$1("substring").text);
- if (codeUnitIndex === -1)
- return C.C_SassNull0;
- codepointIndex = B.codeUnitIndexToCodepointIndex(t2, codeUnitIndex);
- return new T.SassNumber(codepointIndex + 1, C.List_empty, C.List_empty, null);
- },
- $signature: 4
- };
- D.closure0.prototype = {
- call$1: function($arguments) {
- var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- start = t1.$index($arguments, 1).assertNumber$1("start-at"),
- end = t1.$index($arguments, 2).assertNumber$1("end-at");
- start.assertNoUnits$1("start");
- end.assertNoUnits$1("end");
- lengthInCodepoints = string.get$sassLength();
- endInt = end.assertInt$0();
- if (endInt === 0)
- return string.hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
- startCodepoint = D._codepointForIndex(start.assertInt$0(), lengthInCodepoints, false);
- endCodepoint = D._codepointForIndex(endInt, lengthInCodepoints, true);
- if (endCodepoint === lengthInCodepoints)
- --endCodepoint;
- if (endCodepoint < startCodepoint)
- return string.hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
- t1 = string.text;
- return new D.SassString(J.substring$2$s(t1, B.codepointIndexToCodeUnitIndex(t1, startCodepoint), B.codepointIndexToCodeUnitIndex(t1, endCodepoint + 1)), string.hasQuotes);
- },
- $signature: 12
- };
- D.closure6.prototype = {
- call$1: function($arguments) {
- var t1, t2, t3, i, t4, t5,
- string = J.$index$asx($arguments, 0).assertString$1("string");
- for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
- t5 = t3._codeUnitAt$1(t1, i);
- t4 += H.Primitives_stringFromCharCode(t5 >= 97 && t5 <= 122 ? t5 & 4294967263 : t5);
- }
- return new D.SassString(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
- },
- $signature: 12
- };
- D.closure5.prototype = {
- call$1: function($arguments) {
- var t1, t2, t3, i, t4, t5,
- string = J.$index$asx($arguments, 0).assertString$1("string");
- for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
- t5 = t3._codeUnitAt$1(t1, i);
- t4 += H.Primitives_stringFromCharCode(t5 >= 65 && t5 <= 90 ? t5 | 32 : t5);
- }
- return new D.SassString(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
- },
- $signature: 12
- };
- D.closure4.prototype = {
- call$1: function($arguments) {
- var t1 = $.$get$_previousUniqueId() + ($.$get$_random().nextInt$1(36) + 1);
- $._previousUniqueId = t1;
- if (t1 > Math.pow(36, 6))
- $._previousUniqueId = C.JSInt_methods.$mod($.$get$_previousUniqueId(), H._asIntNullable(Math.pow(36, 6)));
- return new D.SassString("u" + C.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId(), 36), 6, "0"), false);
- },
- $signature: 12
- };
- R.ImportCache.prototype = {
- canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
- var resolvedUrl, canonicalUrl;
- if (baseImporter != null) {
- resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
- canonicalUrl = this._canonicalize$3(baseImporter, resolvedUrl, forImport);
- if (canonicalUrl != null)
- return new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_Importer_Uri_Uri);
- }
- return this._canonicalizeCache.putIfAbsent$2(new S.Tuple2(url, forImport, type$.Tuple2_Uri_bool), new R.ImportCache_canonicalize_closure(this, url, forImport));
- },
- canonicalize$3$baseImporter$baseUrl: function(url, baseImporter, baseUrl) {
- return this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, false);
- },
- _canonicalize$3: function(importer, url, forImport) {
- var result = forImport ? B.inImportRule(new R.ImportCache__canonicalize_closure(importer, url)) : importer.canonicalize$1(url);
- if ((result == null ? null : result.get$scheme()) === "")
- this._logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n", true);
- return result;
- },
- import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
- var t1,
- tuple = this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport);
- if (tuple == null)
- return null;
- t1 = tuple.item1;
- return new S.Tuple2(t1, this.importCanonical$3(t1, tuple.item2, tuple.item3), type$.Tuple2_Importer_Stylesheet);
- },
- importCanonical$3: function(importer, canonicalUrl, originalUrl) {
- return this._importCache.putIfAbsent$2(canonicalUrl, new R.ImportCache_importCanonical_closure(this, importer, canonicalUrl, originalUrl));
- },
- importCanonical$2: function(importer, canonicalUrl) {
- return this.importCanonical$3(importer, canonicalUrl, null);
- },
- humanize$1: function(canonicalUrl) {
- var t1 = this._canonicalizeCache.get$values(),
- t2 = H._instanceType(t1),
- 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$.Uri, type$.dynamic);
- if (url == null)
- return canonicalUrl;
- t1 = $.$get$url();
- return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
- },
- clearImport$1: function(canonicalUrl) {
- this._resultsCache.remove$1(0, canonicalUrl);
- this._importCache.remove$1(0, canonicalUrl);
- }
- };
- R.ImportCache_canonicalize_closure.prototype = {
- call$0: function() {
- var t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
- 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) {
- importer = t2[_i];
- canonicalUrl = t1._canonicalize$3(importer, t4, t5);
- if (canonicalUrl != null)
- return new S.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_Importer_Uri_Uri);
- }
- return null;
- },
- $signature: 56
- };
- R.ImportCache__canonicalize_closure.prototype = {
- call$0: function() {
- return this.importer.canonicalize$1(this.url);
- },
- $signature: 67
- };
- R.ImportCache_importCanonical_closure.prototype = {
- call$0: function() {
- var t3, _this = this,
- t1 = _this.canonicalUrl,
- result = _this.importer.load$1(t1),
- t2 = _this.$this;
- t2._resultsCache.$indexSet(0, t1, result);
- t3 = _this.originalUrl;
- t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
- return V.Stylesheet_Stylesheet$parse(result.contents, result.syntax, t2._logger, t1);
- },
- $signature: 37
- };
- R.ImportCache_humanize_closure.prototype = {
- call$1: function(tuple) {
- var t1 = tuple == null ? null : tuple.item2;
- return J.$eq$(t1, this.canonicalUrl);
- }
- };
- R.ImportCache_humanize_closure0.prototype = {
- call$1: function(tuple) {
- return tuple.item3;
- }
- };
- R.ImportCache_humanize_closure1.prototype = {
- call$1: function(url) {
- return J.get$length$asx(J.get$path$x(url));
- },
- $signature: 28
- };
- M.Importer.prototype = {
- modificationTime$1: function(url) {
- return new P.DateTime(Date.now(), false);
- },
- couldCanonicalize$2: function(url, canonicalUrl) {
- return true;
- }
- };
- B.AsyncImporter.prototype = {};
- F.FilesystemImporter.prototype = {
- canonicalize$1: function(url) {
- var t1, resolved;
- if (url.get$scheme() !== "file" && url.get$scheme() !== "")
- return null;
- t1 = $.$get$context();
- resolved = B.resolveImportPath(D.join(this._loadPath, t1.style.pathFromUri$1(M._parseUri(url)), null));
- return resolved == null ? null : t1.toUri$1(t1.canonicalize$1(resolved));
- },
- load$1: function(url) {
- var t3,
- t1 = $.$get$context(),
- path = t1.style.pathFromUri$1(M._parseUri(url)),
- t2 = B.readFile(path);
- 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;
- t3 = M.Syntax_forPath(path);
- if ((t1 == null ? null : t1.get$scheme()) === "")
- H.throwExpression(P.ArgumentError$value(t1, "sourceMapUrl", "must be absolute"));
- return new E.ImporterResult(t2, t1, t3);
- },
- modificationTime$1: function(url) {
- return B.modificationTime($.$get$context().style.pathFromUri$1(M._parseUri(url)));
- },
- couldCanonicalize$2: function(url, canonicalUrl) {
- var t1, t2, t3, basename, canonicalBasename;
- if (url.get$scheme() !== "file" && url.get$scheme() !== "")
- return false;
- if (canonicalUrl.get$scheme() !== "file")
- return false;
- t1 = $.$get$url();
- t2 = url.get$path(url);
- t3 = t1.style;
- basename = X.ParsedPath_ParsedPath$parse(t2, t3).get$basename();
- canonicalBasename = X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t3).get$basename();
- if (!J.startsWith$1$s(basename, "_") && J.startsWith$1$s(canonicalBasename, "_"))
- canonicalBasename = J.substring$1$s(canonicalBasename, 1);
- return basename === canonicalBasename || basename === t1.withoutExtension$1(canonicalBasename);
- },
- toString$0: function(_) {
- return this._loadPath;
- }
- };
- E.ImporterResult.prototype = {
- get$sourceMapUrl: function() {
- var t1 = this._sourceMapUrl;
- return t1 == null ? P.Uri_Uri$dataFromString(this.contents, C.C_Utf8Codec, null) : t1;
- }
- };
- B.resolveImportPath_closure.prototype = {
- call$0: function() {
- return B._exactlyOne(B._tryPath($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
- },
- $signature: 10
- };
- B.resolveImportPath_closure0.prototype = {
- call$0: function() {
- return B._exactlyOne(B._tryPathWithExtensions(this.path + ".import"));
- },
- $signature: 10
- };
- B._tryPathAsDirectory_closure.prototype = {
- call$0: function() {
- return B._exactlyOne(B._tryPathWithExtensions(D.join(this.path, "index.import", null)));
- },
- $signature: 10
- };
- B._exactlyOne_closure.prototype = {
- call$1: function(path) {
- var t1 = $.$get$context();
- return C.JSString_methods.$add(" ", t1.prettyUri$1(t1.toUri$1(path)));
- }
- };
- Z.InterpolationBuffer.prototype = {
- add$1: function(_, expression) {
- this._flushText$0();
- this._interpolation_buffer$_contents.push(expression);
- },
- addInterpolation$1: function(interpolation) {
- var first, t1, _this = this,
- toAdd = interpolation.contents;
- if (toAdd.length === 0)
- return;
- first = C.JSArray_methods.get$first(toAdd);
- if (typeof first == "string") {
- _this._interpolation_buffer$_text._contents += first;
- toAdd = H.SubListIterable$(toAdd, 1, null, H._arrayInstanceType(toAdd)._precomputed1);
- }
- _this._flushText$0();
- t1 = _this._interpolation_buffer$_contents;
- C.JSArray_methods.addAll$1(t1, toAdd);
- if (typeof C.JSArray_methods.get$last(t1) == "string")
- _this._interpolation_buffer$_text._contents += H.S(t1.pop());
- },
- _flushText$0: function() {
- var t1 = this._interpolation_buffer$_text,
- t2 = t1._contents;
- if (t2.length === 0)
- return;
- this._interpolation_buffer$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- t1._contents = "";
- },
- interpolation$1: function(span) {
- var t2, t3, _i, t1 = [];
- for (t2 = this._interpolation_buffer$_contents, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- t1.push(t2[_i]);
- t2 = this._interpolation_buffer$_text._contents;
- if (t2.length !== 0)
- t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- return X.Interpolation$(t1, span);
- },
- toString$0: function(_) {
- var t1, t2, _i, t3, element;
- for (t1 = this._interpolation_buffer$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- element = t1[_i];
- t3 = typeof element == "string" ? t3 + element : t3 + "#{" + H.S(element) + H.Primitives_stringFromCharCode(125);
- }
- t1 = t3 + this._interpolation_buffer$_text.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- F.realCasePath_closure.prototype = {
- call$1: function(realPath) {
- return B.equalsIgnoreCase(X.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
- }
- };
- B._FS.prototype = {};
- B._Stat.prototype = {};
- B._Date.prototype = {};
- B._Stderr.prototype = {};
- B._Stdin.prototype = {};
- B._SystemError.prototype = {};
- B._Process.prototype = {};
- B.FileSystemException.prototype = {
- toString$0: function(_) {
- var t1 = $.$get$context();
- return H.S(t1.prettyUri$1(t1.toUri$1(this.path))) + ": " + this.message;
- },
- get$message: function(receiver) {
- return this.message;
- },
- get$path: function(receiver) {
- return this.path;
- }
- };
- B.Stderr.prototype = {
- writeln$1: function(object) {
- J.write$1$x(this._stderr, H.S(object == null ? "" : object) + "\n");
- },
- writeln$0: function() {
- return this.writeln$1(null);
- }
- };
- B._readFile_closure.prototype = {
- call$0: function() {
- return J.readFileSync$2$x(self.fs, this.path, this.encoding);
- },
- $signature: 44
- };
- B.writeFile_closure.prototype = {
- call$0: function() {
- return J.writeFileSync$2$x(self.fs, this.path, this.contents);
- },
- $signature: 1
- };
- B.deleteFile_closure.prototype = {
- call$0: function() {
- return J.unlinkSync$1$x(self.fs, this.path);
- },
- $signature: 1
- };
- B.readStdin_closure.prototype = {
- call$1: function(result) {
- this._box_0.contents = result;
- this.completer.complete$1(result);
- }
- };
- B.readStdin_closure0.prototype = {
- call$1: function(chunk) {
- this.sink.add$1(0, type$.List_int._as(chunk));
- },
- call$0: function() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues: function() {
- return [null];
- },
- $signature: 40
- };
- B.readStdin_closure1.prototype = {
- call$1: function(_) {
- this.sink.close$0(0);
- },
- call$0: function() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues: function() {
- return [null];
- },
- $signature: 40
- };
- B.readStdin_closure2.prototype = {
- call$1: function(e) {
- var t1 = $.$get$stderr();
- t1.writeln$1("Failed to read from stdin");
- t1.writeln$1(e);
- this.completer.completeError$1(e);
- },
- call$0: function() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues: function() {
- return [null];
- },
- $signature: 40
- };
- B.fileExists_closure.prototype = {
- call$0: function() {
- var error, systemError, exception,
- t1 = this.path;
- if (!J.existsSync$1$x(self.fs, t1))
- return false;
- try {
- t1 = J.isFile$0$x(J.statSync$1$x(self.fs, t1));
- return t1;
- } catch (exception) {
- error = H.unwrapException(exception);
- systemError = type$._SystemError._as(error);
- if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
- return false;
- throw exception;
- }
- },
- $signature: 25
- };
- B.dirExists_closure.prototype = {
- call$0: function() {
- var error, systemError, exception,
- t1 = this.path;
- if (!J.existsSync$1$x(self.fs, t1))
- return false;
- try {
- t1 = J.isDirectory$0$x(J.statSync$1$x(self.fs, t1));
- return t1;
- } catch (exception) {
- error = H.unwrapException(exception);
- systemError = type$._SystemError._as(error);
- if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
- return false;
- throw exception;
- }
- },
- $signature: 25
- };
- B.ensureDir_closure.prototype = {
- call$0: function() {
- var error, systemError, exception, t1;
- try {
- J.mkdirSync$1$x(self.fs, this.path);
- } catch (exception) {
- error = H.unwrapException(exception);
- systemError = type$._SystemError._as(error);
- if (J.$eq$(J.get$code$x(systemError), "EEXIST"))
- return;
- if (!J.$eq$(J.get$code$x(systemError), "ENOENT"))
- throw exception;
- t1 = this.path;
- B.ensureDir($.$get$context().dirname$1(t1));
- J.mkdirSync$1$x(self.fs, t1);
- }
- },
- $signature: 0
- };
- B.listDir_closure.prototype = {
- call$0: function() {
- var t1 = this.path;
- if (!this.recursive)
- return J.map$1$1$ax(J.readdirSync$1$x(self.fs, t1), new B.listDir__closure(t1), type$.String).where$1(0, new B.listDir__closure0());
- else
- return new B.listDir_closure_list().call$1(t1);
- },
- $signature: 66
- };
- B.listDir__closure.prototype = {
- call$1: function(child) {
- return D.join(this.path, H._asStringNullable(child), null);
- },
- $signature: 27
- };
- B.listDir__closure0.prototype = {
- call$1: function(child) {
- return !B.dirExists(child);
- }
- };
- B.listDir_closure_list.prototype = {
- call$1: function($parent) {
- return J.expand$1$1$ax(J.readdirSync$1$x(self.fs, $parent), new B.listDir__list_closure($parent, this), type$.String);
- }
- };
- B.listDir__list_closure.prototype = {
- call$1: function(child) {
- var path = D.join(this.parent, H._asStringNullable(child), null);
- return B.dirExists(path) ? this.list.call$1(path) : H.setRuntimeTypeInfo([path], type$.JSArray_String);
- },
- $signature: 79
- };
- B.modificationTime_closure.prototype = {
- call$0: function() {
- var t2,
- t1 = J.getTime$0$x(J.get$mtime$x(J.statSync$1$x(self.fs, this.path)));
- if (Math.abs(t1) <= 864e13)
- t2 = false;
- else
- t2 = true;
- if (t2)
- H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + H.S(t1)));
- P.ArgumentError_checkNotNull(false, "isUtc");
- return new P.DateTime(t1, false);
- },
- $signature: 92
- };
- B.watchDir_closure.prototype = {
- call$2: function(path, _) {
- var t1 = this._box_0.controller;
- return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_add, path));
- },
- call$1: function(path) {
- return this.call$2(path, null);
- },
- "call*": "call$2",
- $defaultValues: function() {
- return [null];
- }
- };
- B.watchDir_closure0.prototype = {
- call$2: function(path, _) {
- var t1 = this._box_0.controller;
- return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_modify, path));
- },
- call$1: function(path) {
- return this.call$2(path, null);
- },
- "call*": "call$2",
- $defaultValues: function() {
- return [null];
- }
- };
- B.watchDir_closure1.prototype = {
- call$1: function(path) {
- var t1 = this._box_0.controller;
- return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_remove, path));
- }
- };
- B.watchDir_closure2.prototype = {
- call$1: function(error) {
- var t1 = this._box_0.controller;
- return t1 == null ? null : t1.addError$1(error);
- },
- $signature: 23
- };
- B.watchDir_closure3.prototype = {
- call$0: function() {
- var controller = P.StreamController_StreamController(new B.watchDir__closure(this.watcher), null, null, null, false, type$.WatchEvent);
- this._box_0.controller = controller;
- this.completer.complete$1(new P._ControllerStream(controller, H._instanceType(controller)._eval$1("_ControllerStream<1>")));
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- B.watchDir__closure.prototype = {
- call$0: function() {
- J.close$0$x(this.watcher);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- F._QuietLogger.prototype = {
- warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
- },
- warn$2$deprecation: function(message, deprecation) {
- return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
- },
- warn$2$span: function(message, span) {
- return this.warn$4$deprecation$span$trace(message, false, span, null);
- },
- warn$3$deprecation$span: function(message, deprecation, span) {
- return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
- },
- warn$2$trace: function(message, trace) {
- return this.warn$4$deprecation$span$trace(message, false, null, trace);
- },
- debug$2: function(message, span) {
- }
- };
- S.StderrLogger.prototype = {
- warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
- var t2, t3,
- t1 = this.color;
- if (t1) {
- t2 = $.$get$stderr();
- t3 = t2._stderr;
- J.write$1$x(t3, "\x1b[33m\x1b[1m");
- if (deprecation)
- J.write$1$x(t3, "Deprecation ");
- J.write$1$x(t3, "Warning\x1b[0m");
- } else {
- if (deprecation)
- J.write$1$x($.$get$stderr()._stderr, "DEPRECATION ");
- t2 = $.$get$stderr();
- J.write$1$x(t2._stderr, "WARNING");
- }
- if (span == null)
- t2.writeln$1(": " + H.S(message));
- else if (trace != null)
- t2.writeln$1(": " + H.S(message) + "\n\n" + span.highlight$1$color(t1));
- else
- t2.writeln$1(" on " + span.message$2$color(0, C.JSString_methods.$add("\n", message), t1));
- if (trace != null)
- t2.writeln$1(B.indent(C.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
- t2.writeln$0();
- },
- warn$2$deprecation: function(message, deprecation) {
- return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
- },
- warn$2$span: function(message, span) {
- return this.warn$4$deprecation$span$trace(message, false, span, null);
- },
- warn$3$deprecation$span: function(message, deprecation, span) {
- return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
- },
- warn$2$trace: function(message, trace) {
- return this.warn$4$deprecation$span$trace(message, false, null, trace);
- },
- debug$2: function(message, span) {
- var url, t3, t4,
- t1 = span.file,
- t2 = span._file$_start;
- if (Y.FileLocation$_(t1, t2).file.url == null)
- url = "-";
- else {
- t3 = Y.FileLocation$_(t1, t2);
- url = $.$get$context().prettyUri$1(t3.file.url);
- }
- t3 = $.$get$stderr();
- t4 = H.S(url) + ":";
- t2 = Y.FileLocation$_(t1, t2);
- t2 = t4 + (t2.file.getLine$1(t2.offset) + 1) + " ";
- t4 = t3._stderr;
- J.write$1$x(t4, t2);
- J.write$1$x(t4, this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG");
- t3.writeln$1(": " + H.S(message));
- }
- };
- T.TrackingLogger.prototype = {
- warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
- this._emittedWarning = true;
- this._tracking$_logger.warn$4$deprecation$span$trace(message, deprecation, span, trace);
- },
- warn$2$deprecation: function(message, deprecation) {
- return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
- },
- warn$2$span: function(message, span) {
- return this.warn$4$deprecation$span$trace(message, false, span, null);
- },
- warn$3$deprecation$span: function(message, deprecation, span) {
- return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
- },
- warn$2$trace: function(message, trace) {
- return this.warn$4$deprecation$span$trace(message, false, null, trace);
- },
- debug$2: function(message, span) {
- this._emittedDebug = true;
- this._tracking$_logger.debug$2(message, span);
- }
- };
- G.Module.prototype = {};
- Q.BuiltInModule.prototype = {
- get$upstream: function() {
- return C.List_empty3;
- },
- get$variableNodes: function() {
- return C.Map_empty1;
- },
- get$extender: function() {
- return C.C_EmptyExtender;
- },
- get$css: function(_) {
- return new V.CssStylesheet(C.List_empty0, Y.SourceFile$decoded(C.List_empty1, this.url).span$2(0, 0));
- },
- get$transitivelyContainsCss: function() {
- return false;
- },
- get$transitivelyContainsExtensions: function() {
- return false;
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- if (!this.variables.containsKey$1($name))
- throw H.wrapException(E.SassScriptException$("Undefined variable."));
- throw H.wrapException(E.SassScriptException$("Cannot modify built-in variable."));
- },
- variableIdentity$1: function($name) {
- return this;
- },
- cloneCss$0: function() {
- return this;
- },
- $isModule: 1,
- get$url: function() {
- return this.url;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- },
- get$variables: function() {
- return this.variables;
- }
- };
- R.ForwardedModuleView.prototype = {
- get$url: function() {
- return this._forwarded_view$_inner.get$url();
- },
- get$upstream: function() {
- return this._forwarded_view$_inner.get$upstream();
- },
- get$extender: function() {
- return this._forwarded_view$_inner.get$extender();
- },
- get$css: function(_) {
- var t1 = this._forwarded_view$_inner;
- return t1.get$css(t1);
- },
- get$transitivelyContainsCss: function() {
- return this._forwarded_view$_inner.get$transitivelyContainsCss();
- },
- get$transitivelyContainsExtensions: function() {
- return this._forwarded_view$_inner.get$transitivelyContainsExtensions();
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- var _s19_ = "Undefined variable.",
- t1 = this._rule,
- t2 = t1.shownVariables;
- if (t2 != null && !t2._base.contains$1(0, $name))
- throw H.wrapException(E.SassScriptException$(_s19_));
- else {
- t2 = t1.hiddenVariables;
- if (t2 != null && t2._base.contains$1(0, $name))
- throw H.wrapException(E.SassScriptException$(_s19_));
- }
- t1 = t1.prefix;
- if (t1 != null) {
- if (!C.JSString_methods.startsWith$1($name, t1))
- throw H.wrapException(E.SassScriptException$(_s19_));
- $name = C.JSString_methods.substring$1($name, t1.length);
- }
- return this._forwarded_view$_inner.setVariable$3($name, value, nodeWithSpan);
- },
- variableIdentity$1: function($name) {
- var t1 = this._rule.prefix;
- if (t1 != null)
- $name = J.substring$1$s($name, t1.length);
- return this._forwarded_view$_inner.variableIdentity$1($name);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof R.ForwardedModuleView && J.$eq$(this._forwarded_view$_inner, other._forwarded_view$_inner) && this._rule === other._rule;
- },
- get$hashCode: function(_) {
- return (J.get$hashCode$(this._forwarded_view$_inner) ^ H.Primitives_objectHashCode(this._rule)) >>> 0;
- },
- cloneCss$0: function() {
- return R.ForwardedModuleView$(this._forwarded_view$_inner.cloneCss$0(), this._rule, this.$ti._precomputed1);
- },
- toString$0: function(_) {
- return "forwarded " + H.S(this._forwarded_view$_inner);
- },
- $isModule: 1,
- get$variables: function() {
- return this.variables;
- },
- get$variableNodes: function() {
- return this.variableNodes;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- }
- };
- B.ShadowedModuleView.prototype = {
- get$url: function() {
- return this._shadowed_view$_inner.get$url();
- },
- get$upstream: function() {
- return this._shadowed_view$_inner.get$upstream();
- },
- get$extender: function() {
- return this._shadowed_view$_inner.get$extender();
- },
- get$css: function(_) {
- var t1 = this._shadowed_view$_inner;
- return t1.get$css(t1);
- },
- get$transitivelyContainsCss: function() {
- return this._shadowed_view$_inner.get$transitivelyContainsCss();
- },
- get$transitivelyContainsExtensions: function() {
- return this._shadowed_view$_inner.get$transitivelyContainsExtensions();
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- if (!this.variables.containsKey$1($name))
- throw H.wrapException(E.SassScriptException$("Undefined variable."));
- else
- return this._shadowed_view$_inner.setVariable$3($name, value, nodeWithSpan);
- },
- variableIdentity$1: function($name) {
- return this._shadowed_view$_inner.variableIdentity$1($name);
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- 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());
- },
- get$hashCode: function(_) {
- var t1 = this._shadowed_view$_inner;
- return t1.get$hashCode(t1);
- },
- cloneCss$0: function() {
- var _this = this;
- return new B.ShadowedModuleView(_this._shadowed_view$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
- },
- toString$0: function(_) {
- return "shadowed " + this._shadowed_view$_inner.toString$0(0);
- },
- $isModule: 1,
- get$variables: function() {
- return this.variables;
- },
- get$variableNodes: function() {
- return this.variableNodes;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- }
- };
- Y.Chokidar.prototype = {};
- Y.ChokidarOptions.prototype = {};
- Y.ChokidarWatcher.prototype = {};
- F.JSFunction.prototype = {};
- F.NodeImporterResult.prototype = {};
- B._PropertyDescriptor.prototype = {};
- V.AtRootQueryParser.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new V.AtRootQueryParser_parse_closure(this));
- }
- };
- V.AtRootQueryParser_parse_closure.prototype = {
- call$0: function() {
- var include, atRules,
- t1 = this.$this,
- t2 = t1.scanner;
- t2.expectChar$1(40);
- t1.whitespace$0();
- include = t1.scanIdentifier$1("with");
- if (!include)
- t1.expectIdentifier$2$name("without", '"with" or "without"');
- t1.whitespace$0();
- t2.expectChar$1(58);
- t1.whitespace$0();
- atRules = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- do {
- atRules.add$1(0, t1.identifier$0().toLowerCase());
- t1.whitespace$0();
- } while (t1.lookingAtIdentifier$0());
- t2.expectChar$1(41);
- t2.expectDone$0();
- return new V.AtRootQuery(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
- },
- $signature: 63
- };
- Q.closure105.prototype = {
- call$1: function($function) {
- return $function.name;
- }
- };
- Q.CssParser.prototype = {
- get$plainCss: function() {
- return true;
- },
- silentComment$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- this.super$Parser$silentComment();
- this.error$2("Silent comments aren't allowed in plain CSS.", t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- atRule$2$root: function(child, root) {
- var $name, urlStart, next, url, urlSpan, queries, t2, t3, t4, t5, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(64);
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- switch ($name.get$asPlain()) {
- case "at-root":
- case "content":
- case "debug":
- case "each":
- case "error":
- case "extend":
- case "for":
- case "function":
- case "if":
- case "include":
- case "mixin":
- case "return":
- case "warn":
- case "while":
- _this.almostAnyValue$0();
- _this.error$2("This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
- break;
- case "charset":
- _this.string$0();
- if (!root)
- _this.error$2("This at-rule is not allowed here.", t1.spanFrom$1(start));
- return null;
- case "import":
- urlStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
- next = t1.peekChar$0();
- url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new D.StringExpression(_this.interpolatedString$0().asInterpolation$1$static(true), false);
- urlSpan = t1.spanFrom$1(urlStart);
- _this.whitespace$0();
- queries = _this.tryImportQueries$0();
- _this.expectStatementSeparator$1("@import rule");
- t2 = X.Interpolation$([url], urlSpan);
- t3 = t1.spanFrom$1(urlStart);
- t4 = queries == null;
- t5 = t4 ? null : queries.item1;
- t2 = H.setRuntimeTypeInfo([new Q.StaticImport(t2, t5, t4 ? null : queries.item2, t3)], type$.JSArray_Import);
- t1 = t1.spanFrom$1(start);
- return new B.ImportRule(P.List_List$unmodifiable(t2, type$.Import), t1);
- case "media":
- return _this.mediaRule$1(start);
- case "-moz-document":
- return _this.mozDocumentRule$2(start, $name);
- case "supports":
- return _this.supportsRule$1(start);
- default:
- return _this.unknownAtRule$2(start, $name);
- }
- },
- identifierLike$0: function() {
- var t2, $arguments, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- identifier = _this.interpolatedIdentifier$0(),
- plain = identifier.get$asPlain(),
- specialFunction = _this.trySpecialFunction$2(plain.toLowerCase(), start);
- if (specialFunction != null)
- return specialFunction;
- t2 = t1._string_scanner$_position;
- if (!t1.scanChar$1(40))
- return new D.StringExpression(identifier, false);
- $arguments = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
- if (!t1.scanChar$1(41)) {
- do {
- _this.whitespace$0();
- $arguments.push(_this.expression$1$singleEquals(true));
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- t1.expectChar$1(41);
- }
- if ($.$get$_disallowedFunctionNames().contains$1(0, plain))
- _this.error$2("This function isn't allowed in plain CSS.", t1.spanFrom$1(start));
- return new F.FunctionExpression(null, X.Interpolation$([new D.StringExpression(identifier, false)], identifier.span), X.ArgumentInvocation$($arguments, C.Map_empty3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), null, null), t1.spanFrom$1(start));
- }
- };
- E.KeyframeSelectorParser.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new E.KeyframeSelectorParser_parse_closure(this));
- },
- _percentage$0: function() {
- var t3, next,
- t1 = this.scanner,
- t2 = t1.scanChar$1(43) ? H.Primitives_stringFromCharCode(43) : "",
- second = t1.peekChar$0();
- if (!T.isDigit(second) && second !== 46)
- t1.error$1("Expected number.");
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- if (t1.peekChar$0() === 46) {
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- }
- if (this.scanIdentifier$1("e")) {
- t2 += t1.readChar$0();
- next = t1.peekChar$0();
- if (next === 43 || next === 45)
- t2 += t1.readChar$0();
- if (!T.isDigit(t1.peekChar$0()))
- t1.error$1("Expected digit.");
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- }
- t1.expectChar$1(37);
- t2 += H.Primitives_stringFromCharCode(37);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- E.KeyframeSelectorParser_parse_closure.prototype = {
- call$0: function() {
- var selectors = H.setRuntimeTypeInfo([], type$.JSArray_String),
- t1 = this.$this,
- t2 = t1.scanner;
- do {
- t1.whitespace$0();
- if (t1.lookingAtIdentifier$0())
- if (t1.scanIdentifier$1("from"))
- selectors.push("from");
- else {
- t1.expectIdentifier$2$name("to", '"to" or "from"');
- selectors.push("to");
- }
- else
- selectors.push(t1._percentage$0());
- t1.whitespace$0();
- } while (t2.scanChar$1(44));
- t2.expectDone$0();
- return selectors;
- },
- $signature: 32
- };
- F.MediaQueryParser.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new F.MediaQueryParser_parse_closure(this));
- },
- _mediaQuery$0: function() {
- var identifier1, identifier2, type, modifier, features, _this = this, _null = null,
- t1 = _this.scanner;
- if (t1.peekChar$0() !== 40) {
- identifier1 = _this.identifier$0();
- _this.whitespace$0();
- if (!_this.lookingAtIdentifier$0())
- return F.CssMediaQuery$(identifier1, _null, _null);
- identifier2 = _this.identifier$0();
- _this.whitespace$0();
- if (B.equalsIgnoreCase(identifier2, "and")) {
- type = identifier1;
- modifier = _null;
- } else {
- if (_this.scanIdentifier$1("and"))
- _this.whitespace$0();
- else
- return F.CssMediaQuery$(identifier2, _null, identifier1);
- type = identifier2;
- modifier = identifier1;
- }
- } else {
- type = _null;
- modifier = type;
- }
- features = H.setRuntimeTypeInfo([], type$.JSArray_String);
- do {
- _this.whitespace$0();
- t1.expectChar$1(40);
- features.push("(" + _this.declarationValue$0() + ")");
- t1.expectChar$1(41);
- _this.whitespace$0();
- } while (_this.scanIdentifier$1("and"));
- if (type == null)
- return new F.CssMediaQuery(_null, _null, P.List_List$unmodifiable(features, type$.String));
- else
- return F.CssMediaQuery$(type, features, modifier);
- }
- };
- F.MediaQueryParser_parse_closure.prototype = {
- call$0: function() {
- var queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery),
- t1 = this.$this,
- t2 = t1.scanner;
- do {
- t1.whitespace$0();
- queries.push(t1._mediaQuery$0());
- } while (t2.scanChar$1(44));
- t2.expectDone$0();
- return queries;
- },
- $signature: 62
- };
- G.Parser.prototype = {
- _parseIdentifier$0: function() {
- return this.wrapSpanFormatException$1(new G.Parser__parseIdentifier_closure(this));
- },
- _isVariableDeclarationLike$0: function() {
- var _this = this,
- t1 = _this.scanner;
- if (!t1.scanChar$1(36))
- return false;
- if (!_this.lookingAtIdentifier$0())
- return false;
- _this.identifier$0();
- _this.whitespace$0();
- return t1.scanChar$1(58);
- },
- whitespace$0: function() {
- do
- this.whitespaceWithoutComments$0();
- while (this.scanComment$0());
- },
- whitespaceWithoutComments$0: function() {
- var t3,
- t1 = this.scanner,
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- spaces$0: function() {
- var t3,
- t1 = this.scanner,
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = t3 === 32 || t3 === 9;
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- scanComment$0: function() {
- var next,
- t1 = this.scanner;
- if (t1.peekChar$0() !== 47)
- return false;
- next = t1.peekChar$1(1);
- if (next === 47) {
- this.silentComment$0();
- return true;
- } else if (next === 42) {
- this.loudComment$0();
- return true;
- } else
- return false;
- },
- silentComment$0: function() {
- var t2, t3,
- t1 = this.scanner;
- t1.expect$1("//");
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- loudComment$0: function() {
- var next,
- t1 = this.scanner;
- t1.expect$1("/*");
- for (; true;) {
- if (t1.readChar$0() !== 42)
- continue;
- do
- next = t1.readChar$0();
- while (next === 42);
- if (next === 47)
- break;
- }
- },
- identifier$2$normalize$unit: function(normalize, unit) {
- var t2, first, _this = this,
- _s20_ = "Expected identifier.",
- text = new P.StringBuffer(""),
- t1 = _this.scanner;
- if (t1.scanChar$1(45)) {
- t2 = text._contents = H.Primitives_stringFromCharCode(45);
- if (t1.scanChar$1(45)) {
- text._contents = t2 + H.Primitives_stringFromCharCode(45);
- _this._identifierBody$3$normalize$unit(text, normalize, unit);
- t1 = text._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- } else
- t2 = "";
- first = t1.peekChar$0();
- if (first == null)
- t1.error$1(_s20_);
- else if (normalize && first === 95) {
- t1.readChar$0();
- text._contents = t2 + H.Primitives_stringFromCharCode(45);
- } else if (first === 95 || T.isAlphabetic0(first) || first >= 128)
- text._contents = t2 + H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (first === 92)
- text._contents = t2 + H.S(_this.escape$1$identifierStart(true));
- else
- t1.error$1(_s20_);
- _this._identifierBody$3$normalize$unit(text, normalize, unit);
- t1 = text._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- identifier$0: function() {
- return this.identifier$2$normalize$unit(false, false);
- },
- identifier$1$normalize: function(normalize) {
- return this.identifier$2$normalize$unit(normalize, false);
- },
- identifier$1$unit: function(unit) {
- return this.identifier$2$normalize$unit(false, unit);
- },
- _identifierBody$3$normalize$unit: function(text, normalize, unit) {
- var t1, next, second, t2;
- for (t1 = this.scanner; true;) {
- next = t1.peekChar$0();
- if (next == null)
- break;
- else if (unit && next === 45) {
- second = t1.peekChar$1(1);
- if (second != null)
- if (second !== 46)
- t2 = second >= 48 && second <= 57;
- else
- t2 = true;
- else
- t2 = false;
- if (t2)
- break;
- text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- } else if (normalize && next === 95) {
- t1.readChar$0();
- text._contents += H.Primitives_stringFromCharCode(45);
- } else {
- if (next !== 95) {
- if (!(next >= 97 && next <= 122))
- t2 = next >= 65 && next <= 90;
- else
- t2 = true;
- t2 = t2 || next >= 128;
- } else
- t2 = true;
- if (!t2) {
- t2 = next >= 48 && next <= 57;
- t2 = t2 || next === 45;
- } else
- t2 = true;
- if (t2)
- text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (next === 92)
- text._contents += H.S(this.escape$0());
- else
- break;
- }
- }
- },
- _identifierBody$1: function(text) {
- return this._identifierBody$3$normalize$unit(text, false, false);
- },
- string$0: function() {
- var t2, buffer, next,
- t1 = this.scanner,
- quote = t1.readChar$0();
- if (quote !== 39 && quote !== 34) {
- t2 = t1._string_scanner$_position;
- t1.error$2$position("Expected string.", t2 - 1);
- }
- buffer = new P.StringBuffer("");
- for (; true;) {
- next = t1.peekChar$0();
- if (next === quote) {
- t1.readChar$0();
- break;
- } else if (next == null || next === 10 || next === 13 || next === 12)
- t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
- else if (next === 92) {
- t2 = t1.peekChar$1(1);
- if (t2 === 10 || t2 === 13 || t2 === 12) {
- t1.readChar$0();
- t1.readChar$0();
- } else
- buffer._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
- } else
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- naturalNumber$0: function() {
- var number, t2,
- t1 = this.scanner,
- first = t1.readChar$0();
- if (!T.isDigit(first))
- t1.error$2$position("Expected digit.", t1._string_scanner$_position - 1);
- number = first - 48;
- while (true) {
- t2 = t1.peekChar$0();
- if (!(t2 != null && t2 >= 48 && t2 <= 57))
- break;
- number = number * 10 + (t1.readChar$0() - 48);
- }
- return number;
- },
- declarationValue$1$allowEmpty: function(allowEmpty) {
- var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
- buffer = new P.StringBuffer(""),
- brackets = H.setRuntimeTypeInfo([], type$.JSArray_int);
- $label0$1:
- for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
- next = t1.peekChar$0();
- switch (next) {
- case 92:
- buffer._contents += H.S(_this.escape$1$identifierStart(true));
- wroteNewline = false;
- break;
- case 34:
- case 39:
- start = t1._string_scanner$_position;
- t2.call$0();
- end = t1._string_scanner$_position;
- buffer._contents += J.substring$2$s(t1.string, start, end);
- wroteNewline = false;
- break;
- case 47:
- if (t1.peekChar$1(1) === 42) {
- t3 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t3.call$0();
- end = t1._string_scanner$_position;
- buffer._contents += J.substring$2$s(t1.string, start, end);
- } else
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- case 32:
- case 9:
- if (!wroteNewline) {
- t3 = t1.peekChar$1(1);
- t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = true;
- if (t3)
- buffer._contents += H.Primitives_stringFromCharCode(32);
- t1.readChar$0();
- break;
- case 10:
- case 13:
- case 12:
- t3 = t1.peekChar$1(-1);
- if (!(t3 === 10 || t3 === 13 || t3 === 12))
- buffer._contents += "\n";
- t1.readChar$0();
- wroteNewline = true;
- break;
- case 40:
- case 123:
- case 91:
- buffer._contents += H.Primitives_stringFromCharCode(next);
- brackets.push(T.opposite(t1.readChar$0()));
- wroteNewline = false;
- break;
- case 41:
- case 125:
- case 93:
- if (brackets.length === 0)
- break $label0$1;
- buffer._contents += H.Primitives_stringFromCharCode(next);
- t1.expectChar$1(brackets.pop());
- wroteNewline = false;
- break;
- case 59:
- if (brackets.length === 0)
- break $label0$1;
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 117:
- case 85:
- url = _this.tryUrl$0();
- if (url != null)
- buffer._contents += url;
- else
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- default:
- if (next == null)
- break $label0$1;
- if (_this.lookingAtIdentifier$0())
- buffer._contents += _this.identifier$0();
- else
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- }
- }
- if (brackets.length !== 0)
- t1.expectChar$1(C.JSArray_methods.get$last(brackets));
- if (!allowEmpty && buffer._contents.length === 0)
- t1.error$1("Expected token.");
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- declarationValue$0: function() {
- return this.declarationValue$1$allowEmpty(false);
- },
- tryUrl$0: function() {
- var buffer, next, t2, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (!_this.scanIdentifier$1("url"))
- return null;
- if (!t1.scanChar$1(40)) {
- t1.set$state(start);
- return null;
- }
- _this.whitespace$0();
- buffer = new P.StringBuffer("");
- buffer._contents = "url(";
- for (; true;) {
- next = t1.peekChar$0();
- if (next == null)
- break;
- else {
- if (next !== 37)
- if (next !== 38)
- if (next !== 35)
- t2 = next >= 42 && next <= 126 || next >= 128;
- else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (next === 92)
- buffer._contents += H.S(_this.escape$0());
- else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
- _this.whitespace$0();
- if (t1.peekChar$0() !== 41)
- break;
- } else if (next === 41) {
- t2 = buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- } else
- break;
- }
- }
- t1.set$state(start);
- return null;
- },
- variableName$0: function() {
- this.scanner.expectChar$1(36);
- return this.identifier$1$normalize(true);
- },
- escape$1$identifierStart: function(identifierStart) {
- var first, value, i, next,
- t1 = this.scanner;
- t1.expectChar$1(92);
- first = t1.peekChar$0();
- if (first == null)
- return "";
- else if (T.isNewline(first)) {
- t1.error$1("Expected escape sequence.");
- value = 0;
- } else if (T.isHex(first)) {
- for (value = 0, i = 0; i < 6; ++i) {
- next = t1.peekChar$0();
- if (next == null || !T.isHex(next))
- break;
- value = value * 16 + T.asHex(t1.readChar$0());
- }
- this.scanCharIf$1(T.character__isWhitespace$closure());
- } else
- value = t1.readChar$0();
- if (identifierStart)
- t1 = value === 95 || T.isAlphabetic0(value) || value >= 128;
- else
- t1 = value === 95 || T.isAlphabetic0(value) || value >= 128 || T.isDigit(value) || value === 45;
- if (t1)
- return H.Primitives_stringFromCharCode(value);
- else {
- if (value > 31)
- if (value !== 127)
- t1 = identifierStart && T.isDigit(value);
- else
- t1 = true;
- else
- t1 = true;
- if (t1) {
- t1 = H.Primitives_stringFromCharCode(92);
- if (value > 15)
- t1 += H.Primitives_stringFromCharCode(T.hexCharFor(C.JSInt_methods._shrOtherPositive$1(value, 4)));
- t1 = t1 + H.Primitives_stringFromCharCode(T.hexCharFor(value & 15)) + H.Primitives_stringFromCharCode(32);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else
- return P.String_String$fromCharCodes(H.setRuntimeTypeInfo([92, value], type$.JSArray_int), 0, null);
- }
- },
- escape$0: function() {
- return this.escape$1$identifierStart(false);
- },
- escapeCharacter$0: function() {
- var first, value, i, next, t2,
- t1 = this.scanner;
- t1.expectChar$1(92);
- first = t1.peekChar$0();
- if (first == null)
- return 65533;
- else if (T.isNewline(first))
- t1.error$1("Expected escape sequence.");
- else if (T.isHex(first)) {
- for (value = 0, i = 0; i < 6; ++i) {
- next = t1.peekChar$0();
- if (next == null || !T.isHex(next))
- break;
- value = (value << 4 >>> 0) + T.asHex(t1.readChar$0());
- }
- t2 = t1.peekChar$0();
- if (t2 === 32 || t2 === 9 || T.isNewline(t2))
- t1.readChar$0();
- if (value !== 0)
- t1 = value >= 55296 && value <= 57343 || value >= 1114111;
- else
- t1 = true;
- if (t1)
- return 65533;
- else
- return value;
- } else
- return t1.readChar$0();
- },
- scanCharIf$1: function(condition) {
- var t1 = this.scanner;
- if (!condition.call$1(t1.peekChar$0()))
- return false;
- t1.readChar$0();
- return true;
- },
- scanIdentChar$2$caseSensitive: function(char, caseSensitive) {
- var t3,
- t1 = new G.Parser_scanIdentChar_matches(caseSensitive, char),
- t2 = this.scanner,
- next = t2.peekChar$0();
- if (t1.call$1(next)) {
- t2.readChar$0();
- return true;
- } else if (next === 92) {
- t3 = t2._string_scanner$_position;
- if (t1.call$1(this.escapeCharacter$0()))
- return true;
- t2.set$state(new S._SpanScannerState(t2, t3));
- }
- return false;
- },
- scanIdentChar$1: function(char) {
- return this.scanIdentChar$2$caseSensitive(char, false);
- },
- expectIdentChar$1: function(letter) {
- var t1;
- if (this.scanIdentChar$2$caseSensitive(letter, false))
- return;
- t1 = this.scanner;
- t1.error$2$position('Expected "' + H.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
- },
- lookingAtNumber$0: function() {
- var second, third,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first == null)
- return false;
- if (T.isDigit(first))
- return true;
- if (first === 46) {
- second = t1.peekChar$1(1);
- return second != null && T.isDigit(second);
- } else if (first === 43 || first === 45) {
- second = t1.peekChar$1(1);
- if (second == null)
- return false;
- if (T.isDigit(second))
- return true;
- if (second !== 46)
- return false;
- third = t1.peekChar$1(2);
- return third != null && T.isDigit(third);
- } else
- return false;
- },
- lookingAtIdentifier$1: function($forward) {
- var t1, first, second;
- if ($forward == null)
- $forward = 0;
- t1 = this.scanner;
- first = t1.peekChar$1($forward);
- if (first == null)
- return false;
- if (first === 95 || T.isAlphabetic0(first) || first >= 128 || first === 92)
- return true;
- if (first !== 45)
- return false;
- second = t1.peekChar$1($forward + 1);
- if (second == null)
- return false;
- return second === 95 || T.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
- },
- lookingAtIdentifier$0: function() {
- return this.lookingAtIdentifier$1(null);
- },
- lookingAtIdentifierBody$0: function() {
- var t1,
- next = this.scanner.peekChar$0();
- if (next != null)
- t1 = next === 95 || T.isAlphabetic0(next) || next >= 128 || T.isDigit(next) || next === 45 || next === 92;
- else
- t1 = false;
- return t1;
- },
- scanIdentifier$2$caseSensitive: function(text, caseSensitive) {
- var t1, start, t2, _this = this;
- if (!_this.lookingAtIdentifier$0())
- return false;
- t1 = _this.scanner;
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- if (_this.scanIdentChar$2$caseSensitive(t2.__internal$_current, caseSensitive))
- continue;
- if (start._scanner !== t1)
- H.throwExpression(P.ArgumentError$("The given LineScannerState was not returned by this LineScanner."));
- t2 = start.position;
- if (t2 < 0 || t2 > t1.string.length)
- H.throwExpression(P.ArgumentError$("Invalid position " + t2));
- t1._string_scanner$_position = t2;
- t1._lastMatch = null;
- return false;
- }
- if (!_this.lookingAtIdentifierBody$0())
- return true;
- t1.set$state(start);
- return false;
- },
- scanIdentifier$1: function(text) {
- return this.scanIdentifier$2$caseSensitive(text, false);
- },
- expectIdentifier$2$name: function(text, $name) {
- var t1, start, t2;
- if ($name == null)
- $name = '"' + text + '"';
- t1 = this.scanner;
- start = t1._string_scanner$_position;
- for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- if (this.scanIdentChar$2$caseSensitive(t2.__internal$_current, false))
- continue;
- t1.error$2$position("Expected " + $name + ".", start);
- }
- if (!this.lookingAtIdentifierBody$0())
- return;
- t1.error$2$position("Expected " + $name, start);
- },
- expectIdentifier$1: function(text) {
- return this.expectIdentifier$2$name(text, null);
- },
- rawText$1: function(consumer) {
- var t1 = this.scanner,
- start = t1._string_scanner$_position;
- consumer.call$0();
- return t1.substring$1(0, start);
- },
- error$2: function(message, span) {
- return H.throwExpression(E.StringScannerException$(message, span, this.scanner.string));
- },
- withErrorMessage$1$2: function(message, callback) {
- var error, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t1)) {
- error = t1;
- throw H.wrapException(G.SourceSpanFormatException$(message, error.get$span(), error.get$source()));
- } else
- throw exception;
- }
- },
- withErrorMessage$2: function(message, callback) {
- return this.withErrorMessage$1$2(message, callback, type$.dynamic);
- },
- wrapSpanFormatException$1$1: function(callback) {
- var error, span, startPosition, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t1)) {
- error = t1;
- span = error.get$span();
- if (B.startsWithIgnoreCase(error._span_exception$_message, "expected")) {
- t1 = span;
- t1 = t1._end - t1._file$_start === 0;
- } else
- t1 = false;
- if (t1) {
- t1 = span;
- startPosition = this._firstNewlineBefore$1(Y.FileLocation$_(t1.file, t1._file$_start).offset);
- t1 = span;
- if (!J.$eq$(startPosition, Y.FileLocation$_(t1.file, t1._file$_start).offset))
- span = span.file.span$2(startPosition, startPosition);
- }
- throw H.wrapException(E.SassFormatException$(error._span_exception$_message, span));
- } else
- throw exception;
- }
- },
- wrapSpanFormatException$1: function(callback) {
- return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
- },
- _firstNewlineBefore$1: function(position) {
- var t1, t2, lastNewline, codeUnit,
- index = position - 1;
- for (t1 = this.scanner.string, t2 = J.getInterceptor$s(t1), lastNewline = null; index >= 0;) {
- codeUnit = t2.codeUnitAt$1(t1, index);
- if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
- return lastNewline == null ? position : lastNewline;
- if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
- lastNewline = index;
- --index;
- }
- return position;
- }
- };
- G.Parser__parseIdentifier_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- result = t1.identifier$0();
- t1.scanner.expectDone$0();
- return result;
- },
- $signature: 10
- };
- G.Parser_scanIdentChar_matches.prototype = {
- call$1: function(actual) {
- var t1 = this.char;
- return this.caseSensitive ? actual == t1 : T.characterEqualsIgnoreCase(t1, actual);
- },
- $signature: 16
- };
- U.SassParser.prototype = {
- get$currentIndentation: function() {
- return this._currentIndentation;
- },
- get$indented: function() {
- return true;
- },
- styleRuleSelector$0: function() {
- var t4,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- buffer = new Z.InterpolationBuffer(t3, []);
- do {
- buffer.addInterpolation$1(this.almostAnyValue$0());
- t4 = t3._contents += H.Primitives_stringFromCharCode(10);
- } while (C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(T.character__isNewline$closure()));
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- expectStatementSeparator$1: function($name) {
- var _this = this;
- if (!_this.atEndOfStatement$0())
- _this._expectNewline$0();
- if (_this._peekIndentation$0() <= _this._currentIndentation)
- return;
- _this.scanner.error$2$position("Nothing may be indented " + ($name == null ? "here" : "beneath a " + $name) + ".", _this._nextIndentationEnd.position);
- },
- expectStatementSeparator$0: function() {
- return this.expectStatementSeparator$1(null);
- },
- atEndOfStatement$0: function() {
- var next = this.scanner.peekChar$0();
- return next == null || T.isNewline(next);
- },
- lookingAtChildren$0: function() {
- return this.atEndOfStatement$0() && this._peekIndentation$0() > this._currentIndentation;
- },
- importArgument$0: function() {
- var url, span, innerError, start, next, t2, exception, _this = this,
- t1 = _this.scanner;
- switch (t1.peekChar$0()) {
- case 117:
- case 85:
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this.scanIdentifier$1("url"))
- if (t1.scanChar$1(40)) {
- t1.set$state(start);
- return _this.super$StylesheetParser$importArgument();
- } else
- t1.set$state(start);
- break;
- case 39:
- case 34:
- return _this.super$StylesheetParser$importArgument();
- }
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- next = t1.peekChar$0();
- while (true) {
- if (next != null)
- if (next !== 44)
- if (next !== 59)
- t2 = !(next === 10 || next === 13 || next === 12);
- else
- t2 = false;
- else
- t2 = false;
- else
- t2 = false;
- if (!t2)
- break;
- t1.readChar$0();
- next = t1.peekChar$0();
- }
- url = t1.substring$1(0, start.position);
- span = t1.spanFrom$1(start);
- if (_this.isPlainImportUrl$1(url))
- return new Q.StaticImport(X.Interpolation$([N.serializeValue0(new D.SassString(url, true), true, true)], span), null, null, span);
- else
- try {
- t1 = _this.parseImportUrl$1(url);
- return new B.DynamicImport(t1, span);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- innerError = t1;
- _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), span);
- } else
- throw exception;
- }
- },
- scanElse$1: function(ifIndentation) {
- var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
- if (_this._peekIndentation$0() != ifIndentation)
- return false;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- startIndentation = _this._currentIndentation;
- startNextIndentation = _this._nextIndentation;
- startNextIndentationEnd = _this._nextIndentationEnd;
- _this._readIndentation$0();
- if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
- return true;
- t1.set$state(new S._SpanScannerState(t1, t2));
- _this._currentIndentation = startIndentation;
- _this._nextIndentation = startNextIndentation;
- _this._nextIndentationEnd = startNextIndentationEnd;
- return false;
- },
- children$1: function(child) {
- var children = H.setRuntimeTypeInfo([], type$.JSArray_Statement);
- this._whileIndentedLower$1(new U.SassParser_children_closure(this, children, child));
- return children;
- },
- statements$1: function(statement) {
- var statements, t2, child,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first === 9 || first === 32)
- t1.error$3$length$position("Indenting at the beginning of the document is illegal.", t1._string_scanner$_position, 0);
- statements = H.setRuntimeTypeInfo([], type$.JSArray_Statement);
- for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
- child = this._child$1(statement);
- if (child != null)
- statements.push(child);
- this._readIndentation$0();
- }
- return statements;
- },
- _child$1: function(child) {
- var _this = this,
- t1 = _this.scanner;
- switch (t1.peekChar$0()) {
- case 13:
- case 10:
- case 12:
- return null;
- case 36:
- return _this.variableDeclarationWithoutNamespace$0();
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- return _this._silentComment$0();
- case 42:
- return _this._loudComment$0();
- default:
- return child.call$0();
- }
- default:
- return child.call$0();
- }
- },
- _silentComment$0: function() {
- var buffer, parentIndentation, t3, commentPrefix, i, t4, i0, t5, t6, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("//");
- buffer = new P.StringBuffer("");
- parentIndentation = _this._currentIndentation;
- t3 = t1.string;
- $label0$0:
- do {
- commentPrefix = t1.scanChar$1(47) ? "///" : "//";
- for (i = commentPrefix.length; true;) {
- t4 = buffer._contents += commentPrefix;
- for (i0 = i; i0 < _this._currentIndentation - parentIndentation; ++i0) {
- t4 += H.Primitives_stringFromCharCode(32);
- buffer._contents = t4;
- }
- t5 = t3.length;
- while (true) {
- if (t1._string_scanner$_position !== t5) {
- t6 = t1.peekChar$0();
- t6 = !(t6 === 10 || t6 === 13 || t6 === 12);
- } else
- t6 = false;
- if (!t6)
- break;
- t4 += H.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents = t4;
- }
- buffer._contents = t4 + "\n";
- if (_this._peekIndentation$0() < parentIndentation)
- break $label0$0;
- if (_this._peekIndentation$0() === parentIndentation) {
- if (t1.peekChar$1(1 + parentIndentation) === 47 && t1.peekChar$1(2 + parentIndentation) === 47)
- _this._readIndentation$0();
- break;
- }
- _this._readIndentation$0();
- }
- } while (t1.scan$1("//"));
- t3 = buffer._contents;
- return _this.lastSilentComment = new B.SilentComment(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _loudComment$0: function() {
- var t3, t4, buffer, parentIndentation, t5, first, beginningOfComment, t6, end, i, t7, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("/*");
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer(t3, t4);
- t3._contents = "/*";
- parentIndentation = _this._currentIndentation;
- for (t5 = t1.string, first = true; true; first = false) {
- if (first) {
- beginningOfComment = t1._string_scanner$_position;
- _this.spaces$0();
- t6 = t1.peekChar$0();
- if (t6 === 10 || t6 === 13 || t6 === 12) {
- _this._readIndentation$0();
- t3._contents += H.Primitives_stringFromCharCode(32);
- } else {
- end = t1._string_scanner$_position;
- t3._contents += J.substring$2$s(t5, beginningOfComment, end);
- }
- } else {
- t6 = t3._contents += "\n";
- t3._contents = t6 + " * ";
- }
- for (i = 3; i < _this._currentIndentation - parentIndentation; ++i)
- t3._contents += H.Primitives_stringFromCharCode(32);
- $label0$1:
- for (t6 = t5.length; t1._string_scanner$_position !== t6;)
- switch (t1.peekChar$0()) {
- case 10:
- case 13:
- case 12:
- break $label0$1;
- case 35:
- if (t1.peekChar$1(1) === 123) {
- t7 = _this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t7);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- default:
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- }
- if (_this._peekIndentation$0() <= parentIndentation)
- break;
- for (; _this._lookingAtDoubleNewline$0();) {
- _this._expectNewline$0();
- t6 = t3._contents += "\n";
- t3._contents = t6 + " *";
- }
- _this._readIndentation$0();
- }
- t4 = t3._contents;
- if (!C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
- t3._contents += " */";
- return new L.LoudComment(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))));
- },
- whitespaceWithoutComments$0: function() {
- var t1, t2, next;
- for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
- next = t1.peekChar$0();
- if (next !== 9 && next !== 32)
- break;
- t1.readChar$0();
- }
- },
- loudComment$0: function() {
- var next,
- t1 = this.scanner;
- t1.expect$1("/*");
- for (; true;) {
- next = t1.readChar$0();
- if (next === 10 || next === 13 || next === 12)
- t1.error$1("expected */.");
- if (next !== 42)
- continue;
- do
- next = t1.readChar$0();
- while (next === 42);
- if (next === 47)
- break;
- }
- },
- _expectNewline$0: function() {
- var t1 = this.scanner;
- switch (t1.peekChar$0()) {
- case 59:
- t1.error$1("semicolons aren't allowed in the indented syntax.");
- break;
- case 13:
- t1.readChar$0();
- if (t1.peekChar$0() === 10)
- t1.readChar$0();
- return;
- case 10:
- case 12:
- t1.readChar$0();
- return;
- default:
- t1.error$1("expected newline.");
- }
- },
- _lookingAtDoubleNewline$0: function() {
- var nextChar,
- t1 = this.scanner;
- switch (t1.peekChar$0()) {
- case 13:
- nextChar = t1.peekChar$1(1);
- if (nextChar === 10)
- return T.isNewline(t1.peekChar$1(2));
- return nextChar === 13 || nextChar === 12;
- case 10:
- case 12:
- return T.isNewline(t1.peekChar$1(1));
- default:
- return false;
- }
- },
- _whileIndentedLower$1: function(body) {
- var t1, t2, childIndentation, indentation, t3, t4, t5, _this = this,
- parentIndentation = _this._currentIndentation;
- for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._peekIndentation$0() > parentIndentation;) {
- indentation = _this._readIndentation$0();
- if (childIndentation == null)
- childIndentation = indentation;
- if (childIndentation != indentation) {
- t3 = "Inconsistent indentation, expected " + H.S(childIndentation) + " spaces.";
- t4 = t1._string_scanner$_position;
- t5 = t2.getColumn$1(t4);
- t1.error$3$length$position(t3, t2.getColumn$1(t1._string_scanner$_position), t4 - t5);
- }
- body.call$0();
- }
- },
- _readIndentation$0: function() {
- var _this = this;
- if (_this._nextIndentation == null)
- _this._peekIndentation$0();
- _this._currentIndentation = _this._nextIndentation;
- _this.scanner.set$state(_this._nextIndentationEnd);
- _this._nextIndentationEnd = _this._nextIndentation = null;
- return _this._currentIndentation;
- },
- _peekIndentation$0: function() {
- var t2, t3, start, containsTab, containsSpace, next, t4, _this = this,
- t1 = _this._nextIndentation;
- if (t1 != null)
- return t1;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- t3 = t1.string.length;
- if (t2 === t3) {
- _this._nextIndentation = 0;
- _this._nextIndentationEnd = new S._SpanScannerState(t1, t2);
- return 0;
- }
- start = new S._SpanScannerState(t1, t2);
- if (!_this.scanCharIf$1(T.character__isNewline$closure()))
- t1.error$2$position("Expected newline.", t1._string_scanner$_position);
- do {
- _this._nextIndentation = 0;
- for (containsTab = false, containsSpace = false; true;) {
- next = t1.peekChar$0();
- if (next === 32)
- containsSpace = true;
- else {
- if (next !== 9)
- break;
- containsTab = true;
- }
- _this._nextIndentation = _this._nextIndentation + 1;
- t1.readChar$0();
- }
- t2 = t1._string_scanner$_position;
- if (t2 === t3) {
- _this._nextIndentation = 0;
- _this._nextIndentationEnd = new S._SpanScannerState(t1, t2);
- t1.set$state(start);
- return 0;
- }
- } while (_this.scanCharIf$1(T.character__isNewline$closure()));
- if (containsTab) {
- if (containsSpace) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position("Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- } else if (_this._spaces === true) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position("Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- }
- } else if (containsSpace && _this._spaces === false) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position("Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- }
- if (_this._nextIndentation > 0)
- if (_this._spaces == null)
- _this._spaces = containsSpace;
- _this._nextIndentationEnd = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.set$state(start);
- return _this._nextIndentation;
- }
- };
- U.SassParser_children_closure.prototype = {
- call$0: function() {
- this.children.push(this.$this._child$1(this.child));
- },
- $signature: 0
- };
- L.ScssParser.prototype = {
- get$indented: function() {
- return false;
- },
- get$currentIndentation: function() {
- return null;
- },
- styleRuleSelector$0: function() {
- return this.almostAnyValue$0();
- },
- expectStatementSeparator$1: function($name) {
- var t1, next;
- this.whitespaceWithoutComments$0();
- t1 = this.scanner;
- if (t1._string_scanner$_position === t1.string.length)
- return;
- next = t1.peekChar$0();
- if (next === 59 || next === 125)
- return;
- t1.expectChar$1(59);
- },
- expectStatementSeparator$0: function() {
- return this.expectStatementSeparator$1(null);
- },
- atEndOfStatement$0: function() {
- var next = this.scanner.peekChar$0();
- return next == null || next === 59 || next === 125 || next === 123;
- },
- lookingAtChildren$0: function() {
- return this.scanner.peekChar$0() === 123;
- },
- scanElse$1: function(_) {
- var t3, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- _this.whitespace$0();
- t3 = t1._string_scanner$_position;
- if (t1.scanChar$1(64)) {
- if (_this.scanIdentifier$2$caseSensitive("else", true))
- return true;
- if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
- _this.logger.warn$3$deprecation$span('@elseif is deprecated and will not be supported in future Sass versions.\nUse "@else if" instead.', true, t1.spanFrom$1(new S._SpanScannerState(t1, t3)));
- t1.set$position(t1._string_scanner$_position - 2);
- return true;
- }
- }
- t1.set$state(new S._SpanScannerState(t1, t2));
- return false;
- },
- children$1: function(child) {
- var children, _this = this,
- t1 = _this.scanner;
- t1.expectChar$1(123);
- _this.whitespaceWithoutComments$0();
- children = H.setRuntimeTypeInfo([], type$.JSArray_Statement);
- for (; true;)
- switch (t1.peekChar$0()) {
- case 36:
- children.push(_this.variableDeclarationWithoutNamespace$0());
- break;
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- children.push(_this._scss$_silentComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- case 42:
- children.push(_this._scss$_loudComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- default:
- children.push(child.call$0());
- break;
- }
- break;
- case 59:
- t1.readChar$0();
- _this.whitespaceWithoutComments$0();
- break;
- case 125:
- t1.expectChar$1(125);
- return children;
- default:
- children.push(child.call$0());
- break;
- }
- },
- statements$1: function(statement) {
- var t1, t2, child, _this = this,
- statements = H.setRuntimeTypeInfo([], type$.JSArray_Statement);
- _this.whitespaceWithoutComments$0();
- for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
- switch (t1.peekChar$0()) {
- case 36:
- statements.push(_this.variableDeclarationWithoutNamespace$0());
- break;
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- statements.push(_this._scss$_silentComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- case 42:
- statements.push(_this._scss$_loudComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- default:
- child = statement.call$0();
- if (child != null)
- statements.push(child);
- break;
- }
- break;
- case 59:
- t1.readChar$0();
- _this.whitespaceWithoutComments$0();
- break;
- default:
- child = statement.call$0();
- if (child != null)
- statements.push(child);
- break;
- }
- return statements;
- },
- _scss$_silentComment$0: function() {
- var t2, t3, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expect$1("//");
- t2 = t1.string.length;
- do {
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.readChar$0();
- t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = false;
- if (!t3)
- break;
- }
- if (t1._string_scanner$_position === t2)
- break;
- _this.whitespaceWithoutComments$0();
- } while (t1.scan$1("//"));
- if (_this.get$plainCss())
- _this.error$2("Silent comments aren't allowed in plain CSS.", t1.spanFrom$1(start));
- return _this.lastSilentComment = new B.SilentComment(t1.substring$1(0, start.position), t1.spanFrom$1(start));
- },
- _scss$_loudComment$0: function() {
- var t3, t4, buffer, t5, endPosition,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("/*");
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer(t3, t4);
- t3._contents = "/*";
- for (; true;)
- switch (t1.peekChar$0()) {
- case 35:
- if (t1.peekChar$1(1) === 123) {
- t5 = this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t5);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 42:
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- if (t1.peekChar$0() !== 47)
- break;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- endPosition = t1._string_scanner$_position;
- return new L.LoudComment(buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, new S._SpanScannerState(t1, t2).position, endPosition)));
- case 13:
- t1.readChar$0();
- if (t1.peekChar$0() !== 10)
- t3._contents += H.Primitives_stringFromCharCode(10);
- break;
- case 12:
- t1.readChar$0();
- t3._contents += H.Primitives_stringFromCharCode(10);
- break;
- default:
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- }
- }
- };
- T.SelectorParser.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new T.SelectorParser_parse_closure(this));
- },
- parseCompoundSelector$0: function() {
- return this.wrapSpanFormatException$1(new T.SelectorParser_parseCompoundSelector_closure(this));
- },
- _selectorList$0: function() {
- var t3, t4, lineBreak, _this = this,
- t1 = _this.scanner,
- t2 = t1._sourceFile,
- previousLine = t2.getLine$1(t1._string_scanner$_position),
- components = H.setRuntimeTypeInfo([_this._complexSelector$0()], type$.JSArray_ComplexSelector);
- _this.whitespace$0();
- for (t3 = t1.string; t1.scanChar$1(44);) {
- _this.whitespace$0();
- if (t1.peekChar$0() === 44)
- continue;
- t4 = t1._string_scanner$_position;
- if (t4 === t3.length)
- break;
- lineBreak = t2.getLine$1(t4) != previousLine;
- if (lineBreak)
- previousLine = t2.getLine$1(t1._string_scanner$_position);
- components.push(_this._complexSelector$1$lineBreak(lineBreak));
- }
- return D.SelectorList$(components);
- },
- _complexSelector$1$lineBreak: function(lineBreak) {
- var t1, next, _this = this,
- _s58_ = '"&" may only used at the beginning of a compound selector.',
- components = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent);
- $label0$1:
- for (t1 = _this.scanner; true;) {
- _this.whitespace$0();
- next = t1.peekChar$0();
- switch (next) {
- case 43:
- t1.readChar$0();
- components.push(C.Combinator_uzg);
- break;
- case 62:
- t1.readChar$0();
- components.push(C.Combinator_sgq);
- break;
- case 126:
- t1.readChar$0();
- components.push(C.Combinator_CzM);
- break;
- case 91:
- case 46:
- case 35:
- case 37:
- case 58:
- case 38:
- case 42:
- case 124:
- components.push(_this._compoundSelector$0());
- if (t1.peekChar$0() === 38)
- t1.error$1(_s58_);
- break;
- default:
- if (next == null || !_this.lookingAtIdentifier$0())
- break $label0$1;
- components.push(_this._compoundSelector$0());
- if (t1.peekChar$0() === 38)
- t1.error$1(_s58_);
- break;
- }
- }
- if (components.length === 0)
- t1.error$1("expected selector.");
- return S.ComplexSelector$(components, lineBreak);
- },
- _complexSelector$0: function() {
- return this._complexSelector$1$lineBreak(false);
- },
- _compoundSelector$0: function() {
- var t2,
- components = H.setRuntimeTypeInfo([this._simpleSelector$0()], type$.JSArray_SimpleSelector),
- t1 = this.scanner;
- while (true) {
- t2 = t1.peekChar$0();
- if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
- break;
- components.push(this._simpleSelector$1$allowParent(false));
- }
- return X.CompoundSelector$(components);
- },
- _simpleSelector$1$allowParent: function(allowParent) {
- var $name, text, t2, suffix, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (allowParent == null)
- allowParent = _this._allowParent;
- switch (t1.peekChar$0()) {
- case 91:
- return _this._attributeSelector$0();
- case 46:
- t1.expectChar$1(46);
- return new X.ClassSelector(_this.identifier$0());
- case 35:
- t1.expectChar$1(35);
- return new N.IDSelector(_this.identifier$0());
- case 37:
- t1.expectChar$1(37);
- $name = _this.identifier$0();
- if (!_this._allowPlaceholder)
- _this.error$2("Placeholder selectors aren't allowed here.", t1.spanFrom$1(start));
- return new N.PlaceholderSelector($name);
- case 58:
- return _this._pseudoSelector$0();
- case 38:
- t1.expectChar$1(38);
- if (_this.lookingAtIdentifierBody$0()) {
- text = new P.StringBuffer("");
- _this._identifierBody$1(text);
- if (text._contents.length === 0)
- t1.error$1("Expected identifier body.");
- t2 = text._contents;
- suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
- } else
- suffix = null;
- if (!allowParent)
- _this.error$2("Parent selectors aren't allowed here.", t1.spanFrom$1(start));
- return new M.ParentSelector(suffix);
- default:
- return _this._typeOrUniversalSelector$0();
- }
- },
- _simpleSelector$0: function() {
- return this._simpleSelector$1$allowParent(null);
- },
- _attributeSelector$0: function() {
- var $name, operator, next, value, modifier, _this = this, _null = null,
- t1 = _this.scanner;
- t1.expectChar$1(91);
- _this.whitespace$0();
- $name = _this._attributeName$0();
- _this.whitespace$0();
- if (t1.scanChar$1(93))
- return new N.AttributeSelector($name, _null, _null, _null);
- operator = _this._attributeOperator$0();
- _this.whitespace$0();
- next = t1.peekChar$0();
- value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
- _this.whitespace$0();
- modifier = T.isAlphabetic0(t1.peekChar$0()) ? H.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
- t1.expectChar$1(93);
- return new N.AttributeSelector($name, operator, value, modifier);
- },
- _attributeName$0: function() {
- var nameOrNamespace, _this = this,
- t1 = _this.scanner;
- if (t1.scanChar$1(42)) {
- t1.expectChar$1(124);
- return new D.QualifiedName(_this.identifier$0(), "*");
- }
- nameOrNamespace = _this.identifier$0();
- if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
- return new D.QualifiedName(nameOrNamespace, null);
- t1.readChar$0();
- return new D.QualifiedName(_this.identifier$0(), nameOrNamespace);
- },
- _attributeOperator$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- switch (t1.readChar$0()) {
- case 61:
- return C.AttributeOperator_sEs;
- case 126:
- t1.expectChar$1(61);
- return C.AttributeOperator_fz1;
- case 124:
- t1.expectChar$1(61);
- return C.AttributeOperator_AuK;
- case 94:
- t1.expectChar$1(61);
- return C.AttributeOperator_4L5;
- case 36:
- t1.expectChar$1(61);
- return C.AttributeOperator_mOX;
- case 42:
- t1.expectChar$1(61);
- return C.AttributeOperator_gqZ;
- default:
- t1.error$2$position('Expected "]".', t2);
- }
- },
- _pseudoSelector$0: function() {
- var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
- t1 = _this.scanner;
- t1.expectChar$1(58);
- element = t1.scanChar$1(58);
- $name = _this.identifier$0();
- if (!t1.scanChar$1(40))
- return D.PseudoSelector$($name, _null, element, _null);
- _this.whitespace$0();
- unvendored = B.unvendor($name);
- if (element)
- if ($._selectorPseudoElements.contains$1(0, unvendored)) {
- selector = _this._selectorList$0();
- argument = _null;
- } else {
- argument = _this.declarationValue$1$allowEmpty(true);
- selector = _null;
- }
- else if ($._selectorPseudoClasses.contains$1(0, unvendored)) {
- selector = _this._selectorList$0();
- argument = _null;
- } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
- argument = _this._aNPlusB$0();
- _this.whitespace$0();
- t2 = t1.peekChar$1(-1);
- if ((t2 === 32 || t2 === 9 || T.isNewline(t2)) && t1.peekChar$0() !== 41) {
- _this.expectIdentifier$1("of");
- argument += " of";
- _this.whitespace$0();
- selector = _this._selectorList$0();
- } else
- selector = _null;
- } else {
- argument = C.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
- selector = _null;
- }
- t1.expectChar$1(41);
- return D.PseudoSelector$($name, argument, element, selector);
- },
- _aNPlusB$0: function() {
- var t2, first, t3, next, last, _this = this,
- t1 = _this.scanner;
- switch (t1.peekChar$0()) {
- case 101:
- case 69:
- _this.expectIdentifier$1("even");
- return "even";
- case 111:
- case 79:
- _this.expectIdentifier$1("odd");
- return "odd";
- case 43:
- case 45:
- t2 = H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- default:
- t2 = "";
- }
- first = t1.peekChar$0();
- if (first != null && T.isDigit(first)) {
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- _this.whitespace$0();
- if (!_this.scanIdentChar$1(110))
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- } else
- _this.expectIdentChar$1(110);
- t2 += H.Primitives_stringFromCharCode(110);
- _this.whitespace$0();
- next = t1.peekChar$0();
- if (next !== 43 && next !== 45)
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- _this.whitespace$0();
- last = t1.peekChar$0();
- if (last == null || !T.isDigit(last))
- t1.error$1("Expected a number.");
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- },
- _typeOrUniversalSelector$0: function() {
- var nameOrNamespace, _this = this,
- t1 = _this.scanner,
- first = t1.peekChar$0();
- if (first === 42) {
- t1.readChar$0();
- if (!t1.scanChar$1(124))
- return new N.UniversalSelector(null);
- if (t1.scanChar$1(42))
- return new N.UniversalSelector("*");
- else
- return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), "*"));
- } else if (first === 124) {
- t1.readChar$0();
- if (t1.scanChar$1(42))
- return new N.UniversalSelector("");
- else
- return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), ""));
- }
- nameOrNamespace = _this.identifier$0();
- if (!t1.scanChar$1(124))
- return new F.TypeSelector(new D.QualifiedName(nameOrNamespace, null));
- else if (t1.scanChar$1(42))
- return new N.UniversalSelector(nameOrNamespace);
- else
- return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), nameOrNamespace));
- }
- };
- T.SelectorParser_parse_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- selector = t1._selectorList$0();
- t1 = t1.scanner;
- if (t1._string_scanner$_position !== t1.string.length)
- t1.error$1("expected selector.");
- return selector;
- },
- $signature: 31
- };
- T.SelectorParser_parseCompoundSelector_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- compound = t1._compoundSelector$0();
- t1 = t1.scanner;
- if (t1._string_scanner$_position !== t1.string.length)
- t1.error$1("expected selector.");
- return compound;
- },
- $signature: 136
- };
- V.StylesheetParser.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new V.StylesheetParser_parse_closure(this));
- },
- parseArgumentDeclaration$0: function() {
- return this._parseSingleProduction$1$1(new V.StylesheetParser_parseArgumentDeclaration_closure(this), type$.ArgumentDeclaration);
- },
- parseVariableDeclaration$0: function() {
- return this._parseSingleProduction$1$1(new V.StylesheetParser_parseVariableDeclaration_closure(this), type$.VariableDeclaration);
- },
- parseUseRule$0: function() {
- return this._parseSingleProduction$1$1(new V.StylesheetParser_parseUseRule_closure(this), type$.UseRule);
- },
- _parseSingleProduction$1$1: function(production, $T) {
- return this.wrapSpanFormatException$1(new V.StylesheetParser__parseSingleProduction_closure(this, production, $T));
- },
- _statement$1$root: function(root) {
- var t2, _this = this,
- t1 = _this.scanner;
- switch (t1.peekChar$0()) {
- case 64:
- return _this.atRule$2$root(new V.StylesheetParser__statement_closure(_this), root);
- case 43:
- if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
- return _this._stylesheet$_styleRule$0();
- _this._isUseAllowed = false;
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- return _this._includeRule$1(new S._SpanScannerState(t1, t2));
- case 61:
- if (!_this.get$indented())
- return _this._stylesheet$_styleRule$0();
- _this._isUseAllowed = false;
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- _this.whitespace$0();
- return _this._mixinRule$1(new S._SpanScannerState(t1, t2));
- case 125:
- t1.error$2$length('unmatched "}".', 1);
- break;
- default:
- return _this._inStyleRule || _this._stylesheet$_inUnknownAtRule || _this._stylesheet$_inMixin || _this._inContentBlock ? _this._declarationOrStyleRule$0() : _this._variableDeclarationOrStyleRule$0();
- }
- },
- _statement$0: function() {
- return this._statement$1$root(false);
- },
- _variableDeclarationWithNamespace$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- namespace = this.identifier$0();
- t1.expectChar$1(46);
- return this.variableDeclarationWithoutNamespace$2(namespace, new S._SpanScannerState(t1, t2));
- },
- variableDeclarationWithoutNamespace$2: function(namespace, start) {
- var precedingComment, t1, $name, t2, value, flagStart, guarded, global, flag, endPosition, declaration, _this = this, _box_0 = {};
- _box_0.start = start;
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- if (start == null) {
- t1 = _this.scanner;
- _box_0.start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- }
- $name = _this.variableName$0();
- t1 = namespace != null;
- if (t1)
- _this._assertPublic$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure(_box_0, _this));
- if (_this.get$plainCss())
- _this.error$2("Sass variables aren't allowed in plain CSS.", _this.scanner.spanFrom$1(_box_0.start));
- _this.whitespace$0();
- t2 = _this.scanner;
- t2.expectChar$1(58);
- _this.whitespace$0();
- value = _this.expression$0();
- flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
- for (guarded = false, global = false; t2.scanChar$1(33);) {
- flag = _this.identifier$0();
- if (flag === "default")
- guarded = true;
- else if (flag === "global") {
- if (t1) {
- endPosition = t2._string_scanner$_position;
- _this.error$2("!global isn't allowed for variables in other modules.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
- }
- global = true;
- } else {
- endPosition = t2._string_scanner$_position;
- _this.error$2("Invalid flag name.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
- }
- _this.whitespace$0();
- flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
- }
- _this.expectStatementSeparator$1("variable declaration");
- declaration = Z.VariableDeclaration$($name, value, t2.spanFrom$1(_box_0.start), precedingComment, global, guarded, namespace);
- if (global)
- _this._globalVariables.putIfAbsent$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure0(declaration));
- return declaration;
- },
- variableDeclarationWithoutNamespace$0: function() {
- return this.variableDeclarationWithoutNamespace$2(null, null);
- },
- _variableDeclarationOrStyleRule$0: function() {
- var t1, t2, variableOrInterpolation, t3, _this = this;
- if (_this.get$plainCss())
- return _this._stylesheet$_styleRule$0();
- if (_this.get$indented() && _this.scanner.scanChar$1(92))
- return _this._stylesheet$_styleRule$0();
- if (!_this.lookingAtIdentifier$0())
- return _this._stylesheet$_styleRule$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof Z.VariableDeclaration)
- return variableOrInterpolation;
- else {
- t3 = new Z.InterpolationBuffer(new P.StringBuffer(""), []);
- t3.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
- return _this._stylesheet$_styleRule$2(t3, new S._SpanScannerState(t1, t2));
- }
- },
- _declarationOrStyleRule$0: function() {
- var t1, t2, declarationOrBuffer, _this = this;
- if (_this.get$plainCss() && _this._inStyleRule && !_this._stylesheet$_inUnknownAtRule)
- return _this._propertyOrVariableDeclaration$0();
- if (_this.get$indented() && _this.scanner.scanChar$1(92))
- return _this._stylesheet$_styleRule$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- declarationOrBuffer = _this._declarationOrBuffer$0();
- return type$.Statement._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet$_styleRule$2(type$.InterpolationBuffer._as(declarationOrBuffer), new S._SpanScannerState(t1, t2));
- },
- _declarationOrBuffer$0: function() {
- var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, value, postColonWhitespace, exception, _this = this, t1 = {},
- t2 = _this.scanner,
- start = new S._SpanScannerState(t2, t2._string_scanner$_position),
- nameBuffer = new Z.InterpolationBuffer(new P.StringBuffer(""), []),
- first = t2.peekChar$0();
- if (first !== 58)
- if (first !== 42)
- if (first !== 46)
- t3 = first === 35 && t2.peekChar$1(1) !== 123;
- else
- t3 = true;
- else
- t3 = true;
- else
- t3 = true;
- if (t3) {
- t3 = t2.readChar$0();
- nameBuffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(t3);
- t3 = _this.rawText$1(_this.get$whitespace());
- nameBuffer._interpolation_buffer$_text._contents += t3;
- startsWithPunctuation = true;
- } else
- startsWithPunctuation = false;
- if (!_this._lookingAtInterpolatedIdentifier$0())
- return nameBuffer;
- variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof Z.VariableDeclaration)
- return variableOrInterpolation;
- else
- nameBuffer.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
- _this._isUseAllowed = false;
- if (t2.matches$1("/*")) {
- t3 = _this.rawText$1(_this.get$loudComment());
- nameBuffer._interpolation_buffer$_text._contents += t3;
- }
- midBuffer = new P.StringBuffer("");
- t3 = _this.get$whitespace();
- midBuffer._contents += _this.rawText$1(t3);
- t4 = t2._string_scanner$_position;
- if (!t2.scanChar$1(58)) {
- if (midBuffer._contents.length !== 0)
- nameBuffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(32);
- return nameBuffer;
- }
- midBuffer._contents += H.Primitives_stringFromCharCode(58);
- $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new S._SpanScannerState(t2, t4)));
- first = C.JSArray_methods.get$first($name.contents);
- if (C.JSString_methods.startsWith$1(typeof first == "string" ? first : "", "--")) {
- value = _this._interpolatedDeclarationValue$0();
- _this.expectStatementSeparator$1("custom property");
- return L.Declaration$($name, t2.spanFrom$1(start), null, value);
- }
- if (t2.scanChar$1(58)) {
- t1 = nameBuffer;
- t2 = t1._interpolation_buffer$_text;
- t2._contents += H.S(midBuffer);
- t2._contents += H.Primitives_stringFromCharCode(58);
- return t1;
- } else if (_this.get$indented() && _this._lookingAtInterpolatedIdentifier$0()) {
- t1 = nameBuffer;
- t1._interpolation_buffer$_text._contents += H.S(midBuffer);
- return t1;
- }
- postColonWhitespace = _this.rawText$1(t3);
- if (_this.lookingAtChildren$0())
- return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure($name));
- midBuffer._contents += postColonWhitespace;
- couldBeSelector = postColonWhitespace.length === 0 && _this._lookingAtInterpolatedIdentifier$0();
- beforeDeclaration = new S._SpanScannerState(t2, t2._string_scanner$_position);
- t1.value = null;
- try {
- if (_this.lookingAtChildren$0()) {
- t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
- t4 = t3.offset;
- value = new D.StringExpression(X.Interpolation$([], Y._FileSpan$(t3.file, t4, t4)), true);
- } else
- value = _this.expression$0();
- t3 = t1.value = value;
- if (_this.lookingAtChildren$0()) {
- if (couldBeSelector)
- _this.expectStatementSeparator$0();
- } else if (!_this.atEndOfStatement$0())
- _this.expectStatementSeparator$0();
- } catch (exception) {
- if (type$.FormatException._is(H.unwrapException(exception))) {
- if (!couldBeSelector)
- throw exception;
- t2.set$state(beforeDeclaration);
- additional = _this.almostAnyValue$0();
- if (!_this.get$indented() && t2.peekChar$0() === 59)
- throw exception;
- nameBuffer._interpolation_buffer$_text._contents += H.S(midBuffer);
- nameBuffer.addInterpolation$1(additional);
- return nameBuffer;
- } else
- throw exception;
- }
- if (_this.lookingAtChildren$0())
- return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure0(t1, $name));
- else {
- _this.expectStatementSeparator$0();
- return L.Declaration$($name, t2.spanFrom$1(start), null, t3);
- }
- },
- _variableDeclarationOrInterpolation$0: function() {
- var t1, start, identifier, t2, buffer, _this = this;
- if (!_this.lookingAtIdentifier$0())
- return _this.interpolatedIdentifier$0();
- t1 = _this.scanner;
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- identifier = _this.identifier$0();
- if (t1.matches$1(".$")) {
- t1.readChar$0();
- return _this.variableDeclarationWithoutNamespace$2(identifier, start);
- } else {
- t2 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer(t2, []);
- t2._contents = identifier;
- if (_this._lookingAtInterpolatedIdentifierBody$0())
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- return buffer.interpolation$1(t1.spanFrom$1(start));
- }
- },
- _stylesheet$_styleRule$2: function(buffer, start) {
- var t2, interpolation, t3, wasInStyleRule, _this = this, t1 = {};
- t1.start = start;
- _this._isUseAllowed = false;
- if (start == null) {
- t2 = _this.scanner;
- t2 = t1.start = new S._SpanScannerState(t2, t2._string_scanner$_position);
- } else
- t2 = start;
- interpolation = t1.interpolation = _this.styleRuleSelector$0();
- if (buffer != null) {
- buffer.addInterpolation$1(interpolation);
- t3 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(t2));
- } else
- t3 = interpolation;
- if (t3.contents.length === 0)
- _this.scanner.error$1('expected "}".');
- wasInStyleRule = _this._inStyleRule;
- _this._inStyleRule = true;
- return _this._withChildren$3(_this.get$_statement(), t2, new V.StylesheetParser__styleRule_closure(t1, _this, wasInStyleRule));
- },
- _stylesheet$_styleRule$0: function() {
- return this._stylesheet$_styleRule$2(null, null);
- },
- _propertyOrVariableDeclaration$0: function() {
- var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
- _s48_ = "Nested declarations aren't allowed in plain CSS.",
- t1 = {},
- t2 = _this.scanner,
- start = new S._SpanScannerState(t2, t2._string_scanner$_position);
- t1.name = null;
- first = t2.peekChar$0();
- if (first !== 58)
- if (first !== 42)
- if (first !== 46)
- t3 = first === 35 && t2.peekChar$1(1) !== 123;
- else
- t3 = true;
- else
- t3 = true;
- else
- t3 = true;
- if (t3) {
- t3 = new P.StringBuffer("");
- nameBuffer = new Z.InterpolationBuffer(t3, []);
- t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
- t3._contents += _this.rawText$1(_this.get$whitespace());
- nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
- } else if (!_this.get$plainCss()) {
- variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof Z.VariableDeclaration)
- return variableOrInterpolation;
- else {
- type$.Interpolation._as(variableOrInterpolation);
- t1.name = variableOrInterpolation;
- }
- t3 = variableOrInterpolation;
- } else {
- $name = _this.interpolatedIdentifier$0();
- t1.name = $name;
- t3 = $name;
- }
- _this.whitespace$0();
- t2.expectChar$1(58);
- _this.whitespace$0();
- if (_this.lookingAtChildren$0()) {
- if (_this.get$plainCss())
- t2.error$1(_s48_);
- return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure(t1));
- }
- value = _this.expression$0();
- if (_this.lookingAtChildren$0()) {
- if (_this.get$plainCss())
- t2.error$1(_s48_);
- return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure0(t1, value));
- } else {
- _this.expectStatementSeparator$0();
- return L.Declaration$(t3, t2.spanFrom$1(start), null, value);
- }
- },
- _declarationChild$0: function() {
- if (this.scanner.peekChar$0() === 64)
- return this._declarationAtRule$0();
- return this._propertyOrVariableDeclaration$0();
- },
- atRule$2$root: function(child, root) {
- var $name, wasUseAllowed, value, optional, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$2$name(64, "@-rule");
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- wasUseAllowed = _this._isUseAllowed;
- _this._isUseAllowed = false;
- switch ($name.get$asPlain()) {
- case "at-root":
- return _this._atRootRule$1(start);
- case "charset":
- _this._isUseAllowed = wasUseAllowed;
- if (!root)
- _this._disallowedAtRule$1(start);
- _this.string$0();
- return null;
- case "content":
- return _this._contentRule$1(start);
- case "debug":
- return _this._debugRule$1(start);
- case "each":
- return _this._eachRule$2(start, child);
- case "else":
- return _this._disallowedAtRule$1(start);
- case "error":
- return _this._errorRule$1(start);
- case "extend":
- if (!_this._inStyleRule && !_this._stylesheet$_inMixin && !_this._inContentBlock)
- _this.error$2("@extend may only be used within style rules.", t1.spanFrom$1(start));
- value = _this.almostAnyValue$0();
- optional = t1.scanChar$1(33);
- if (optional)
- _this.expectIdentifier$1("optional");
- _this.expectStatementSeparator$1("@extend rule");
- return new X.ExtendRule(value, optional, t1.spanFrom$1(start));
- case "for":
- return _this._forRule$2(start, child);
- case "forward":
- _this._isUseAllowed = wasUseAllowed;
- if (!root)
- _this._disallowedAtRule$1(start);
- return _this._forwardRule$1(start);
- case "function":
- return _this._functionRule$1(start);
- case "if":
- return _this._ifRule$2(start, child);
- case "import":
- return _this._importRule$1(start);
- case "include":
- return _this._includeRule$1(start);
- case "media":
- return _this.mediaRule$1(start);
- case "mixin":
- return _this._mixinRule$1(start);
- case "-moz-document":
- return _this.mozDocumentRule$2(start, $name);
- case "return":
- return _this._disallowedAtRule$1(start);
- case "supports":
- return _this.supportsRule$1(start);
- case "use":
- _this._isUseAllowed = wasUseAllowed;
- if (!root)
- _this._disallowedAtRule$1(start);
- return _this._useRule$1(start);
- case "warn":
- return _this._warnRule$1(start);
- case "while":
- return _this._whileRule$2(start, child);
- default:
- return _this.unknownAtRule$2(start, $name);
- }
- },
- _declarationAtRule$0: function() {
- var _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- switch (_this._plainAtRuleName$0()) {
- case "content":
- return _this._contentRule$1(start);
- case "debug":
- return _this._debugRule$1(start);
- case "each":
- return _this._eachRule$2(start, _this.get$_declarationChild());
- case "else":
- return _this._disallowedAtRule$1(start);
- case "error":
- return _this._errorRule$1(start);
- case "for":
- return _this._forRule$2(start, _this.get$_declarationAtRule());
- case "if":
- return _this._ifRule$2(start, _this.get$_declarationChild());
- case "include":
- return _this._includeRule$1(start);
- case "warn":
- return _this._warnRule$1(start);
- case "while":
- return _this._whileRule$2(start, _this.get$_declarationChild());
- default:
- return _this._disallowedAtRule$1(start);
- }
- },
- _functionChild$0: function() {
- var state, variableDeclarationError, statement, t2, exception, t3, start, value, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() !== 64) {
- state = new S._SpanScannerState(t1, t1._string_scanner$_position);
- try {
- t2 = _this._variableDeclarationWithNamespace$0();
- return t2;
- } catch (exception) {
- t2 = H.unwrapException(exception);
- t3 = type$.SourceSpanFormatException;
- if (t3._is(t2)) {
- variableDeclarationError = t2;
- t1.set$state(state);
- statement = null;
- try {
- statement = _this._declarationOrStyleRule$0();
- } catch (exception) {
- if (t3._is(H.unwrapException(exception)))
- throw H.wrapException(variableDeclarationError);
- else
- throw exception;
- }
- _this.error$2("@function rules may not contain " + (statement instanceof X.StyleRule ? "style rules" : "declarations") + ".", statement.get$span());
- } else
- throw exception;
- }
- }
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- switch (_this._plainAtRuleName$0()) {
- case "debug":
- return _this._debugRule$1(start);
- case "each":
- return _this._eachRule$2(start, _this.get$_functionChild());
- case "else":
- return _this._disallowedAtRule$1(start);
- case "error":
- return _this._errorRule$1(start);
- case "for":
- return _this._forRule$2(start, _this.get$_functionChild());
- case "if":
- return _this._ifRule$2(start, _this.get$_functionChild());
- case "return":
- value = _this.expression$0();
- _this.expectStatementSeparator$1("@return rule");
- return new B.ReturnRule(value, t1.spanFrom$1(start));
- case "warn":
- return _this._warnRule$1(start);
- case "while":
- return _this._whileRule$2(start, _this.get$_functionChild());
- default:
- return _this._disallowedAtRule$1(start);
- }
- },
- _plainAtRuleName$0: function() {
- this.scanner.expectChar$2$name(64, "@-rule");
- var $name = this.identifier$0();
- this.whitespace$0();
- return $name;
- },
- _atRootRule$1: function(start) {
- var query, t2, t3, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40) {
- query = _this._atRootQuery$0();
- _this.whitespace$0();
- return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__atRootRule_closure(query));
- } else if (_this.lookingAtChildren$0())
- return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__atRootRule_closure0());
- else {
- t2 = H.setRuntimeTypeInfo([_this._stylesheet$_styleRule$0()], type$.JSArray_Statement);
- t1 = t1.spanFrom$1(start);
- t2 = P.List_List$unmodifiable(t2, type$.Statement);
- t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
- return new V.AtRootRule(null, t1, t2, t3);
- }
- },
- _atRootQuery$0: function() {
- var interpolation, t2, t3, t4, buffer, t5, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 35) {
- interpolation = _this.singleInterpolation$0();
- return X.Interpolation$([interpolation], interpolation.get$span());
- }
- t2 = t1._string_scanner$_position;
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer(t3, t4);
- t1.expectChar$1(40);
- t3._contents += H.Primitives_stringFromCharCode(40);
- _this.whitespace$0();
- t5 = _this.expression$0();
- buffer._flushText$0();
- t4.push(t5);
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t3._contents += H.Primitives_stringFromCharCode(58);
- t3._contents += H.Primitives_stringFromCharCode(32);
- t5 = _this.expression$0();
- buffer._flushText$0();
- t4.push(t5);
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- t3._contents += H.Primitives_stringFromCharCode(41);
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _contentRule$1: function(start) {
- var t1, $arguments, t2, t3, _this = this;
- if (!_this._stylesheet$_inMixin)
- _this.error$2("@content is only allowed within mixin declarations.", _this.scanner.spanFrom$1(start));
- _this.whitespace$0();
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40)
- $arguments = _this._argumentInvocation$1$mixin(true);
- else {
- t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- $arguments = new X.ArgumentInvocation(C.List_empty7, C.Map_empty3, null, null, Y._FileSpan$(t2.file, t3, t3));
- }
- _this._mixinHasContent = true;
- _this.expectStatementSeparator$1("@content rule");
- return new Q.ContentRule(t1.spanFrom$1(start), $arguments);
- },
- _debugRule$1: function(start) {
- var value = this.expression$0();
- this.expectStatementSeparator$1("@debug rule");
- return new Q.DebugRule(value, this.scanner.spanFrom$1(start));
- },
- _eachRule$2: function(start, child) {
- var variables, t1, _this = this,
- wasInControlDirective = _this._inControlDirective;
- _this._inControlDirective = true;
- variables = H.setRuntimeTypeInfo([_this.variableName$0()], type$.JSArray_String);
- _this.whitespace$0();
- for (t1 = _this.scanner; t1.scanChar$1(44);) {
- _this.whitespace$0();
- t1.expectChar$1(36);
- variables.push(_this.identifier$1$normalize(true));
- _this.whitespace$0();
- }
- _this.expectIdentifier$1("in");
- _this.whitespace$0();
- return _this._withChildren$3(child, start, new V.StylesheetParser__eachRule_closure(_this, wasInControlDirective, variables, _this.expression$0()));
- },
- _errorRule$1: function(start) {
- var value = this.expression$0();
- this.expectStatementSeparator$1("@error rule");
- return new D.ErrorRule(value, this.scanner.spanFrom$1(start));
- },
- _functionRule$1: function(start) {
- var $name, $arguments, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- $arguments = _this._argumentDeclaration$0();
- if (_this._stylesheet$_inMixin || _this._inContentBlock)
- _this.error$2("Mixins may not contain function declarations.", _this.scanner.spanFrom$1(start));
- else if (_this._inControlDirective)
- _this.error$2("Functions may not be declared in control directives.", _this.scanner.spanFrom$1(start));
- switch (B.unvendor($name)) {
- case "calc":
- case "element":
- case "expression":
- case "url":
- case "and":
- case "or":
- case "not":
- _this.error$2("Invalid function name.", _this.scanner.spanFrom$1(start));
- break;
- }
- _this.whitespace$0();
- return _this._withChildren$3(_this.get$_functionChild(), start, new V.StylesheetParser__functionRule_closure($name, $arguments, precedingComment));
- },
- _forRule$2: function(start, child) {
- var variable, from, _this = this, t1 = {},
- wasInControlDirective = _this._inControlDirective;
- _this._inControlDirective = true;
- variable = _this.variableName$0();
- _this.whitespace$0();
- _this.expectIdentifier$1("from");
- _this.whitespace$0();
- t1.exclusive = null;
- from = _this.expression$1$until(new V.StylesheetParser__forRule_closure(t1, _this));
- if (t1.exclusive == null)
- _this.scanner.error$1('Expected "to" or "through".');
- _this.whitespace$0();
- return _this._withChildren$3(child, start, new V.StylesheetParser__forRule_closure0(t1, _this, wasInControlDirective, variable, from, _this.expression$0()));
- },
- _forwardRule$1: function(start) {
- var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
- url = _this._urlString$0();
- _this.whitespace$0();
- if (_this.scanIdentifier$1("as")) {
- _this.whitespace$0();
- prefix = _this.identifier$1$normalize(true);
- _this.scanner.expectChar$1(42);
- _this.whitespace$0();
- } else
- prefix = _null;
- if (_this.scanIdentifier$1("show")) {
- members = _this._memberList$0();
- shownMixinsAndFunctions = members.item1;
- shownVariables = members.item2;
- hiddenVariables = _null;
- hiddenMixinsAndFunctions = hiddenVariables;
- } else {
- if (_this.scanIdentifier$1("hide")) {
- members = _this._memberList$0();
- hiddenMixinsAndFunctions = members.item1;
- hiddenVariables = members.item2;
- } else {
- hiddenVariables = _null;
- hiddenMixinsAndFunctions = hiddenVariables;
- }
- shownVariables = _null;
- shownMixinsAndFunctions = shownVariables;
- }
- configuration = _this._stylesheet$_configuration$1$allowGuarded(true);
- _this.expectStatementSeparator$1("@forward rule");
- span = _this.scanner.spanFrom$1(start);
- if (!_this._isUseAllowed)
- _this.error$2("@forward rules must be written before any other rules.", span);
- if (shownMixinsAndFunctions != null) {
- t1 = type$.String;
- t2 = P.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
- t3 = type$.UnmodifiableSetView_String;
- t1 = P.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
- t4 = configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
- return new L.ForwardRule(url, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
- } else if (hiddenMixinsAndFunctions != null) {
- t1 = type$.String;
- t2 = P.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
- t3 = type$.UnmodifiableSetView_String;
- t1 = P.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
- t4 = configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
- return new L.ForwardRule(url, _null, _null, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), prefix, t4, span);
- } else
- return new L.ForwardRule(url, _null, _null, _null, _null, prefix, configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
- },
- _memberList$0: function() {
- var _this = this,
- t1 = type$.String,
- identifiers = P.LinkedHashSet_LinkedHashSet$_empty(t1),
- variables = P.LinkedHashSet_LinkedHashSet$_empty(t1);
- t1 = _this.scanner;
- do {
- _this.whitespace$0();
- _this.withErrorMessage$2("Expected variable, mixin, or function name", new V.StylesheetParser__memberList_closure(_this, variables, identifiers));
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- return new S.Tuple2(identifiers, variables, type$.Tuple2_of_Set_String_and_Set_String);
- },
- _ifRule$2: function(start, child) {
- var condition, children, t1, t2, clauses, lastClause, result, t3, span, _this = this,
- ifIndentation = _this.get$currentIndentation(),
- wasInControlDirective = _this._inControlDirective;
- _this._inControlDirective = true;
- condition = _this.expression$0();
- children = _this.children$1(child);
- _this.whitespaceWithoutComments$0();
- t1 = type$.Statement;
- t2 = P.List_List$unmodifiable(children, t1);
- clauses = H.setRuntimeTypeInfo([new V.IfClause(condition, t2, C.JSArray_methods.any$1(t2, new V.IfClause$__closure()))], type$.JSArray_IfClause);
- while (true) {
- if (!_this.scanElse$1(ifIndentation)) {
- lastClause = null;
- break;
- }
- _this.whitespace$0();
- if (_this.scanIdentifier$1("if")) {
- _this.whitespace$0();
- t2 = _this.expression$0();
- result = P.List_List$from(_this.children$1(child), false, t1);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t3 = result;
- clauses.push(new V.IfClause(t2, t3, C.JSArray_methods.any$1(t3, new V.IfClause$__closure())));
- } else {
- result = P.List_List$from(_this.children$1(child), false, t1);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1 = result;
- lastClause = new V.IfClause(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure()));
- break;
- }
- }
- _this._inControlDirective = wasInControlDirective;
- span = _this.scanner.spanFrom$1(start);
- _this.whitespaceWithoutComments$0();
- return new V.IfRule(P.List_List$unmodifiable(clauses, type$.IfClause), lastClause, span);
- },
- _importRule$1: function(start) {
- var argument, _this = this,
- imports = H.setRuntimeTypeInfo([], type$.JSArray_Import),
- t1 = _this.scanner;
- do {
- _this.whitespace$0();
- argument = _this.importArgument$0();
- if ((_this._inControlDirective || _this._stylesheet$_inMixin) && argument instanceof B.DynamicImport)
- _this._disallowedAtRule$1(start);
- imports.push(argument);
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- _this.expectStatementSeparator$1("@import rule");
- t1 = t1.spanFrom$1(start);
- return new B.ImportRule(P.List_List$unmodifiable(imports, type$.Import), t1);
- },
- importArgument$0: function() {
- var url, urlSpan, innerError, queries, t2, t3, t4, exception, _this = this, _null = null,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- next = t1.peekChar$0();
- if (next === 117 || next === 85) {
- url = _this.dynamicUrl$0();
- _this.whitespace$0();
- queries = _this.tryImportQueries$0();
- t2 = X.Interpolation$([url], t1.spanFrom$1(start));
- t1 = t1.spanFrom$1(start);
- t3 = queries == null;
- t4 = t3 ? _null : queries.item1;
- return new Q.StaticImport(t2, t4, t3 ? _null : queries.item2, t1);
- }
- url = _this.string$0();
- urlSpan = t1.spanFrom$1(start);
- _this.whitespace$0();
- queries = _this.tryImportQueries$0();
- if (_this.isPlainImportUrl$1(url) || queries != null) {
- t2 = urlSpan;
- t2 = X.Interpolation$([P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null)], urlSpan);
- t1 = t1.spanFrom$1(start);
- t3 = queries == null;
- t4 = t3 ? _null : queries.item1;
- return new Q.StaticImport(t2, t4, t3 ? _null : queries.item2, t1);
- } else
- try {
- t1 = _this.parseImportUrl$1(url);
- return new B.DynamicImport(t1, urlSpan);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- innerError = t1;
- _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), urlSpan);
- } else
- throw exception;
- }
- },
- parseImportUrl$1: function(url) {
- var t1 = $.$get$windows();
- if (t1.style.rootLength$1(url) > 0)
- return J.toString$0$(t1.toUri$1(url));
- P.Uri_parse(url);
- return url;
- },
- isPlainImportUrl$1: function(url) {
- var first;
- if (url.length < 5)
- return false;
- if (C.JSString_methods.endsWith$1(url, ".css"))
- return true;
- first = C.JSString_methods._codeUnitAt$1(url, 0);
- if (first === 47)
- return C.JSString_methods._codeUnitAt$1(url, 1) === 47;
- if (first !== 104)
- return false;
- return C.JSString_methods.startsWith$1(url, "http://") || C.JSString_methods.startsWith$1(url, "https://");
- },
- tryImportQueries$0: function() {
- var t1, start, supports, $name, media, _this = this;
- if (_this.scanIdentifier$1("supports")) {
- t1 = _this.scanner;
- t1.expectChar$1(40);
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this.scanIdentifier$1("not")) {
- _this.whitespace$0();
- supports = new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(start));
- } else if (t1.peekChar$0() === 40)
- supports = _this._supportsCondition$0();
- else {
- $name = _this.expression$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- supports = new L.SupportsDeclaration($name, _this.expression$0(), t1.spanFrom$1(start));
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- } else
- supports = null;
- media = _this._lookingAtInterpolatedIdentifier$0() || _this.scanner.peekChar$0() === 40 ? _this._mediaQueryList$0() : null;
- if (supports == null && media == null)
- return null;
- return new S.Tuple2(supports, media, type$.Tuple2_SupportsCondition_Interpolation);
- },
- _includeRule$1: function(start) {
- var name0, namespace, $arguments, t3, t4, wasInContentBlock, $content, _this = this, _null = null, t1 = {},
- $name = _this.identifier$0(),
- t2 = _this.scanner;
- if (t2.scanChar$1(46)) {
- name0 = _this._publicIdentifier$0();
- namespace = $name;
- $name = name0;
- } else {
- $name = H.stringReplaceAllUnchecked($name, "_", "-");
- namespace = _null;
- }
- _this.whitespace$0();
- if (t2.peekChar$0() === 40)
- $arguments = _this._argumentInvocation$1$mixin(true);
- else {
- t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
- t4 = t3.offset;
- $arguments = new X.ArgumentInvocation(C.List_empty7, C.Map_empty3, _null, _null, Y._FileSpan$(t3.file, t4, t4));
- }
- _this.whitespace$0();
- t1.contentArguments = null;
- if (_this.scanIdentifier$1("using")) {
- _this.whitespace$0();
- t3 = t1.contentArguments = _this._argumentDeclaration$0();
- _this.whitespace$0();
- } else
- t3 = _null;
- t3 = t3 == null;
- if (!t3 || _this.lookingAtChildren$0()) {
- if (t3) {
- t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
- t4 = t3.offset;
- t1.contentArguments = new B.ArgumentDeclaration(C.List_empty8, _null, Y._FileSpan$(t3.file, t4, t4));
- }
- wasInContentBlock = _this._inContentBlock;
- _this._inContentBlock = true;
- $content = _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__includeRule_closure(t1));
- _this._inContentBlock = wasInContentBlock;
- } else {
- _this.expectStatementSeparator$0();
- $content = _null;
- }
- t1 = t2.spanFrom$2(start, start);
- return new A.IncludeRule(namespace, $name, $arguments, $content, t1.expand$1(0, ($content == null ? $arguments : $content).get$span()));
- },
- mediaRule$1: function(start) {
- return this._withChildren$3(this.get$_statement(), start, new V.StylesheetParser_mediaRule_closure(this._mediaQueryList$0()));
- },
- _mixinRule$1: function(start) {
- var $name, t1, $arguments, t2, t3, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40)
- $arguments = _this._argumentDeclaration$0();
- else {
- t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- $arguments = new B.ArgumentDeclaration(C.List_empty8, null, Y._FileSpan$(t2.file, t3, t3));
- }
- if (_this._stylesheet$_inMixin || _this._inContentBlock)
- _this.error$2("Mixins may not contain mixin declarations.", t1.spanFrom$1(start));
- else if (_this._inControlDirective)
- _this.error$2("Mixins may not be declared in control directives.", t1.spanFrom$1(start));
- _this.whitespace$0();
- _this._stylesheet$_inMixin = true;
- _this._mixinHasContent = false;
- return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__mixinRule_closure(_this, $name, $arguments, precedingComment));
- },
- mozDocumentRule$2: function(start, $name) {
- var t5, t6, identifier, contents, argument, trailing, endPosition, start0, end, _this = this, _box_0 = {},
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- t4 = [],
- buffer = new Z.InterpolationBuffer(t3, t4);
- _box_0.needsDeprecationWarning = false;
- for (t5 = _this.get$whitespace(); true;) {
- if (t1.peekChar$0() === 35) {
- t6 = _this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t6);
- _box_0.needsDeprecationWarning = true;
- } else {
- t6 = t1._string_scanner$_position;
- identifier = _this.identifier$0();
- switch (identifier) {
- case "url":
- case "url-prefix":
- case "domain":
- contents = _this._tryUrlContents$2$name(new S._SpanScannerState(t1, t6), identifier);
- if (contents != null)
- buffer.addInterpolation$1(contents);
- else {
- t1.expectChar$1(40);
- _this.whitespace$0();
- argument = _this.interpolatedString$0();
- t1.expectChar$1(41);
- t3._contents += identifier;
- t3._contents += H.Primitives_stringFromCharCode(40);
- buffer.addInterpolation$1(argument.asInterpolation$0());
- t3._contents += H.Primitives_stringFromCharCode(41);
- }
- t6 = t3._contents;
- trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
- 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("")'))
- _box_0.needsDeprecationWarning = true;
- break;
- case "regexp":
- t3._contents += "regexp(";
- t1.expectChar$1(40);
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- t1.expectChar$1(41);
- t3._contents += H.Primitives_stringFromCharCode(41);
- _box_0.needsDeprecationWarning = true;
- break;
- default:
- endPosition = t1._string_scanner$_position;
- _this.error$2("Invalid function name.", Y._FileSpan$(t1._sourceFile, t6, endPosition));
- }
- }
- _this.whitespace$0();
- if (!t1.scanChar$1(44))
- break;
- t3._contents += H.Primitives_stringFromCharCode(44);
- start0 = t1._string_scanner$_position;
- t5.call$0();
- end = t1._string_scanner$_position;
- t3._contents += J.substring$2$s(t1.string, start0, end);
- }
- 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)))));
- },
- supportsRule$1: function(start) {
- var _this = this,
- condition = _this._supportsCondition$0();
- _this.whitespace$0();
- return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_supportsRule_closure(condition));
- },
- _useRule$1: function(start) {
- var namespace, configuration, span, _this = this,
- _s9_ = "@use rule",
- url = _this._urlString$0();
- _this.whitespace$0();
- namespace = _this._useNamespace$2(url, start);
- _this.whitespace$0();
- configuration = _this._stylesheet$_configuration$0();
- _this.expectStatementSeparator$1(_s9_);
- span = _this.scanner.spanFrom$1(start);
- if (!_this._isUseAllowed)
- _this.error$2("@use rules must be written before any other rules.", span);
- _this.expectStatementSeparator$1(_s9_);
- return T.UseRule$(url, namespace, span, configuration);
- },
- _useNamespace$2: function(url, start) {
- var namespace, basename, dot, t1, exception, _this = this;
- if (_this.scanIdentifier$1("as")) {
- _this.whitespace$0();
- return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
- }
- basename = url.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(url.get$pathSegments());
- dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
- t1 = C.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
- namespace = C.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
- try {
- t1 = G.Parser$(namespace, _this.logger, null)._parseIdentifier$0();
- return t1;
- } catch (exception) {
- if (H.unwrapException(exception) instanceof E.SassFormatException)
- _this.error$2('Invalid Sass identifier "' + H.S(namespace) + '"', _this.scanner.spanFrom$1(start));
- else
- throw exception;
- }
- },
- _stylesheet$_configuration$1$allowGuarded: function(allowGuarded) {
- var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, span, _this = this;
- if (!_this.scanIdentifier$1("with"))
- return null;
- variableNames = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- configuration = H.setRuntimeTypeInfo([], type$.JSArray_ConfiguredVariable);
- _this.whitespace$0();
- t1 = _this.scanner;
- t1.expectChar$1(40);
- for (; true;) {
- _this.whitespace$0();
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(36);
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- expression = _this._expressionUntilComma$0();
- t3 = t1._string_scanner$_position;
- if (allowGuarded && t1.scanChar$1(33))
- if (_this.identifier$0() === "default")
- guarded = true;
- else {
- endPosition = t1._string_scanner$_position;
- _this.error$2("Invalid flag name.", Y._FileSpan$(t1._sourceFile, t3, endPosition));
- guarded = false;
- }
- else
- guarded = false;
- endPosition = t1._string_scanner$_position;
- span = Y._FileSpan$(t1._sourceFile, t2, endPosition);
- if (variableNames.contains$1(0, $name))
- _this.error$2("The same variable may only be configured once.", span);
- variableNames.add$1(0, $name);
- configuration.push(new Z.ConfiguredVariable($name, expression, guarded, span));
- if (!t1.scanChar$1(44))
- break;
- _this.whitespace$0();
- if (!_this._lookingAtExpression$0())
- break;
- }
- t1.expectChar$1(41);
- return configuration;
- },
- _stylesheet$_configuration$0: function() {
- return this._stylesheet$_configuration$1$allowGuarded(false);
- },
- _warnRule$1: function(start) {
- var value = this.expression$0();
- this.expectStatementSeparator$1("@warn rule");
- return new Y.WarnRule(value, this.scanner.spanFrom$1(start));
- },
- _whileRule$2: function(start, child) {
- var _this = this,
- wasInControlDirective = _this._inControlDirective;
- _this._inControlDirective = true;
- return _this._withChildren$3(child, start, new V.StylesheetParser__whileRule_closure(_this, wasInControlDirective, _this.expression$0()));
- },
- unknownAtRule$2: function(start, $name) {
- var t2, t3, rule, _this = this, t1 = {},
- wasInUnknownAtRule = _this._stylesheet$_inUnknownAtRule;
- _this._stylesheet$_inUnknownAtRule = true;
- t1.value = null;
- t2 = _this.scanner;
- t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
- if (_this.lookingAtChildren$0())
- rule = _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_unknownAtRule_closure(t1, $name));
- else {
- _this.expectStatementSeparator$0();
- rule = U.AtRule$($name, t2.spanFrom$1(start), null, t3);
- }
- _this._stylesheet$_inUnknownAtRule = wasInUnknownAtRule;
- return rule;
- },
- _disallowedAtRule$1: function(start) {
- this.almostAnyValue$0();
- this.error$2("This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
- },
- _argumentDeclaration$0: function() {
- var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- _this.whitespace$0();
- $arguments = H.setRuntimeTypeInfo([], type$.JSArray_Argument);
- named = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- while (true) {
- if (!(t1.peekChar$0() === 36)) {
- restArgument = null;
- break;
- }
- t3 = t1._string_scanner$_position;
- t1.expectChar$1(36);
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- defaultValue = _this._expressionUntilComma$0();
- } else {
- if (t1.scanChar$1(46)) {
- t1.expectChar$1(46);
- t1.expectChar$1(46);
- _this.whitespace$0();
- restArgument = $name;
- break;
- }
- defaultValue = null;
- }
- endPosition = t1._string_scanner$_position;
- $arguments.push(new Z.Argument($name, defaultValue, Y._FileSpan$(t1._sourceFile, t3, endPosition)));
- if (!named.add$1(0, $name))
- _this.error$2("Duplicate argument.", C.JSArray_methods.get$last($arguments).span);
- if (!t1.scanChar$1(44)) {
- restArgument = null;
- break;
- }
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
- return new B.ArgumentDeclaration(P.List_List$unmodifiable($arguments, type$.Argument), restArgument, t1);
- },
- _argumentInvocation$1$mixin: function(mixin) {
- var positional, named, keywordRest, t3, rest, expression, t4, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- _this.whitespace$0();
- positional = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
- named = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Expression);
- t3 = !mixin;
- rest = null;
- while (true) {
- if (!_this._lookingAtExpression$0()) {
- keywordRest = null;
- break;
- }
- expression = _this._expressionUntilComma$1$singleEquals(t3);
- _this.whitespace$0();
- if (expression instanceof S.VariableExpression && t1.scanChar$1(58)) {
- _this.whitespace$0();
- t4 = expression.name;
- if (named.containsKey$1(t4))
- _this.error$2("Duplicate argument.", expression.span);
- named.$indexSet(0, t4, _this._expressionUntilComma$1$singleEquals(t3));
- } else if (t1.scanChar$1(46)) {
- t1.expectChar$1(46);
- t1.expectChar$1(46);
- if (rest != null) {
- _this.whitespace$0();
- keywordRest = expression;
- break;
- }
- rest = expression;
- } else if (named.get$isNotEmpty(named))
- t1.expect$1("...");
- else
- positional.push(expression);
- _this.whitespace$0();
- if (!t1.scanChar$1(44)) {
- keywordRest = null;
- break;
- }
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- return X.ArgumentInvocation$(positional, named, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), keywordRest, rest);
- },
- _argumentInvocation$0: function() {
- return this._argumentInvocation$1$mixin(false);
- },
- expression$3$bracketList$singleEquals$until: function(bracketList, singleEquals, until) {
- var t2, beforeBracket, t3, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, first, next, t4, _this = this,
- _s20_ = "Expected expression.",
- _box_0 = {},
- t1 = until != null;
- if (t1 && until.call$0())
- _this.scanner.error$1(_s20_);
- if (bracketList) {
- t2 = _this.scanner;
- beforeBracket = new S._SpanScannerState(t2, t2._string_scanner$_position);
- t2.expectChar$1(91);
- _this.whitespace$0();
- if (t2.scanChar$1(93)) {
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
- t2 = t2.spanFrom$1(beforeBracket);
- t1 = P.List_List$unmodifiable(t1, type$.Expression);
- return new D.ListExpression(t1, C.ListSeparator_undecided, true, t2);
- }
- } else
- beforeBracket = null;
- t2 = _this.scanner;
- t3 = t2._string_scanner$_position;
- wasInParentheses = _this._inParentheses;
- _box_0.operands = _box_0.operators = _box_0.spaceExpressions = _box_0.singleEqualsOperand = _box_0.commaExpressions = null;
- _box_0.allowSlash = _this.lookingAtNumber$0();
- _box_0.singleExpression = _this._singleExpression$0();
- resetState = new V.StylesheetParser_expression_resetState(_box_0, _this, new S._SpanScannerState(t2, t3));
- resolveOneOperation = new V.StylesheetParser_expression_resolveOneOperation(_box_0, _this);
- resolveOperations = new V.StylesheetParser_expression_resolveOperations(_box_0, resolveOneOperation);
- addSingleExpression = new V.StylesheetParser_expression_addSingleExpression(_box_0, _this, resetState, resolveOperations);
- addOperator = new V.StylesheetParser_expression_addOperator(_box_0, _this, resolveOneOperation);
- resolveSpaceExpressions = new V.StylesheetParser_expression_resolveSpaceExpressions(_box_0, resolveOperations);
- $label0$0:
- for (t3 = type$.JSArray_Expression; true;) {
- _this.whitespace$0();
- if (t1 && until.call$0())
- break $label0$0;
- first = t2.peekChar$0();
- switch (first) {
- case 40:
- addSingleExpression.call$1(_this._parentheses$0());
- break;
- case 91:
- addSingleExpression.call$1(_this.expression$1$bracketList(true));
- break;
- case 36:
- addSingleExpression.call$1(_this._variable$0());
- break;
- case 38:
- addSingleExpression.call$1(_this._selector$0());
- break;
- case 39:
- case 34:
- addSingleExpression.call$1(_this.interpolatedString$0());
- break;
- case 35:
- addSingleExpression.call$1(_this._hashExpression$0());
- break;
- case 61:
- t2.readChar$0();
- if (singleEquals && t2.peekChar$0() !== 61) {
- resolveSpaceExpressions.call$0();
- _box_0.singleEqualsOperand = _box_0.singleExpression;
- _box_0.singleExpression = null;
- } else {
- t2.expectChar$1(61);
- addOperator.call$1(C.BinaryOperator_YlX);
- }
- break;
- case 33:
- next = t2.peekChar$1(1);
- if (next === 61) {
- t2.readChar$0();
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_i5H);
- } else {
- if (next != null)
- if ((next | 32) !== 105)
- t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
- else
- t4 = true;
- else
- t4 = true;
- if (t4)
- addSingleExpression.call$1(_this._importantExpression$0());
- else
- break $label0$0;
- }
- break;
- case 60:
- t2.readChar$0();
- addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_33h : C.BinaryOperator_8qt);
- break;
- case 62:
- t2.readChar$0();
- addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_1da : C.BinaryOperator_AcR0);
- break;
- case 42:
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_O1M);
- break;
- case 43:
- if (_box_0.singleExpression == null)
- addSingleExpression.call$1(_this._unaryOperation$0());
- else {
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_AcR);
- }
- break;
- case 45:
- next = t2.peekChar$1(1);
- if (next != null && next >= 48 && next <= 57 || next === 46)
- if (_box_0.singleExpression != null) {
- t4 = t2.peekChar$1(-1);
- t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
- } else
- t4 = true;
- else
- t4 = false;
- if (t4)
- addSingleExpression.call$2$number(_this._number$0(), true);
- else if (_this._lookingAtInterpolatedIdentifier$0())
- addSingleExpression.call$1(_this.identifierLike$0());
- else if (_box_0.singleExpression == null)
- addSingleExpression.call$1(_this._unaryOperation$0());
- else {
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_iyO);
- }
- break;
- case 47:
- if (_box_0.singleExpression == null)
- addSingleExpression.call$1(_this._unaryOperation$0());
- else {
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_RTB);
- }
- break;
- case 37:
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_2ad);
- break;
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- addSingleExpression.call$2$number(_this._number$0(), true);
- break;
- case 46:
- if (t2.peekChar$1(1) === 46)
- break $label0$0;
- addSingleExpression.call$2$number(_this._number$0(), true);
- break;
- case 97:
- if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
- addOperator.call$1(C.BinaryOperator_and_and_2);
- else
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- case 111:
- if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
- addOperator.call$1(C.BinaryOperator_or_or_1);
- else
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- case 117:
- case 85:
- if (t2.peekChar$1(1) === 43)
- addSingleExpression.call$1(_this._unicodeRange$0());
- else
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- case 98:
- case 99:
- case 100:
- case 101:
- case 102:
- case 103:
- case 104:
- case 105:
- case 106:
- case 107:
- case 108:
- case 109:
- case 110:
- case 112:
- case 113:
- case 114:
- case 115:
- case 116:
- case 118:
- case 119:
- case 120:
- case 121:
- case 122:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- case 77:
- case 78:
- case 79:
- case 80:
- case 81:
- case 82:
- case 83:
- case 84:
- case 86:
- case 87:
- case 88:
- case 89:
- case 90:
- case 95:
- case 92:
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- case 44:
- if (_this._inParentheses) {
- _this._inParentheses = false;
- if (_box_0.allowSlash) {
- resetState.call$0();
- break;
- }
- }
- if (_box_0.commaExpressions == null)
- _box_0.commaExpressions = H.setRuntimeTypeInfo([], t3);
- if (_box_0.singleExpression == null)
- t2.error$1(_s20_);
- resolveSpaceExpressions.call$0();
- _box_0.commaExpressions.push(_box_0.singleExpression);
- t2.readChar$0();
- _box_0.allowSlash = true;
- _box_0.singleExpression = null;
- break;
- default:
- if (first != null && first >= 128) {
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- } else
- break $label0$0;
- }
- }
- if (bracketList)
- t2.expectChar$1(93);
- if (_box_0.commaExpressions != null) {
- resolveSpaceExpressions.call$0();
- _this._inParentheses = wasInParentheses;
- t1 = _box_0.singleExpression;
- if (t1 != null)
- _box_0.commaExpressions.push(t1);
- t1 = _box_0.commaExpressions;
- t2 = bracketList ? t2.spanFrom$1(beforeBracket) : null;
- t1 = P.List_List$unmodifiable(t1, type$.Expression);
- return new D.ListExpression(t1, C.ListSeparator_comma, bracketList, t2 == null ? B.spanForList(t1) : t2);
- } else if (bracketList && _box_0.spaceExpressions != null && _box_0.singleEqualsOperand == null) {
- resolveOperations.call$0();
- t1 = _box_0.spaceExpressions;
- t1.push(_box_0.singleExpression);
- t2 = t2.spanFrom$1(beforeBracket);
- t1 = P.List_List$unmodifiable(t1, type$.Expression);
- return new D.ListExpression(t1, C.ListSeparator_space, true, t2);
- } else {
- resolveSpaceExpressions.call$0();
- if (bracketList) {
- t1 = H.setRuntimeTypeInfo([_box_0.singleExpression], t3);
- t2 = t2.spanFrom$1(beforeBracket);
- t1 = P.List_List$unmodifiable(t1, type$.Expression);
- _box_0.singleExpression = new D.ListExpression(t1, C.ListSeparator_undecided, true, t2);
- }
- return _box_0.singleExpression;
- }
- },
- expression$0: function() {
- return this.expression$3$bracketList$singleEquals$until(false, false, null);
- },
- expression$2$singleEquals$until: function(singleEquals, until) {
- return this.expression$3$bracketList$singleEquals$until(false, singleEquals, until);
- },
- expression$1$bracketList: function(bracketList) {
- return this.expression$3$bracketList$singleEquals$until(bracketList, false, null);
- },
- expression$1$singleEquals: function(singleEquals) {
- return this.expression$3$bracketList$singleEquals$until(false, singleEquals, null);
- },
- expression$1$until: function(until) {
- return this.expression$3$bracketList$singleEquals$until(false, false, until);
- },
- _expressionUntilComma$1$singleEquals: function(singleEquals) {
- return this.expression$2$singleEquals$until(singleEquals, new V.StylesheetParser__expressionUntilComma_closure(this));
- },
- _expressionUntilComma$0: function() {
- return this._expressionUntilComma$1$singleEquals(false);
- },
- _singleExpression$0: function() {
- var next, _this = this,
- t1 = _this.scanner,
- first = t1.peekChar$0();
- switch (first) {
- case 40:
- return _this._parentheses$0();
- case 47:
- return _this._unaryOperation$0();
- case 46:
- return _this._number$0();
- case 91:
- return _this.expression$1$bracketList(true);
- case 36:
- return _this._variable$0();
- case 38:
- return _this._selector$0();
- case 39:
- case 34:
- return _this.interpolatedString$0();
- case 35:
- return _this._hashExpression$0();
- case 43:
- next = t1.peekChar$1(1);
- return T.isDigit(next) || next === 46 ? _this._number$0() : _this._unaryOperation$0();
- case 45:
- return _this._minusExpression$0();
- case 33:
- return _this._importantExpression$0();
- case 117:
- case 85:
- if (t1.peekChar$1(1) === 43)
- return _this._unicodeRange$0();
- else
- return _this.identifierLike$0();
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- return _this._number$0();
- case 97:
- case 98:
- case 99:
- case 100:
- case 101:
- case 102:
- case 103:
- case 104:
- case 105:
- case 106:
- case 107:
- case 108:
- case 109:
- case 110:
- case 111:
- case 112:
- case 113:
- case 114:
- case 115:
- case 116:
- case 118:
- case 119:
- case 120:
- case 121:
- case 122:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- case 77:
- case 78:
- case 79:
- case 80:
- case 81:
- case 82:
- case 83:
- case 84:
- case 86:
- case 87:
- case 88:
- case 89:
- case 90:
- case 95:
- case 92:
- return _this.identifierLike$0();
- default:
- if (first != null && first >= 128)
- return _this.identifierLike$0();
- t1.error$1("Expected expression.");
- }
- },
- _parentheses$0: function() {
- var wasInParentheses, start, first, expressions, t1, t2, _this = this;
- if (_this.get$plainCss())
- _this.scanner.error$2$length("Parentheses aren't allowed in plain CSS.", 1);
- wasInParentheses = _this._inParentheses;
- _this._inParentheses = true;
- try {
- t1 = _this.scanner;
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(40);
- _this.whitespace$0();
- if (!_this._lookingAtExpression$0()) {
- t1.expectChar$1(41);
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
- t1 = t1.spanFrom$1(start);
- t2 = P.List_List$unmodifiable(t2, type$.Expression);
- return new D.ListExpression(t2, C.ListSeparator_undecided, false, t1);
- }
- first = _this._expressionUntilComma$0();
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t1 = _this._stylesheet$_map$2(first, start);
- return t1;
- }
- if (!t1.scanChar$1(44)) {
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- return new T.ParenthesizedExpression(first, t1);
- }
- _this.whitespace$0();
- expressions = H.setRuntimeTypeInfo([first], type$.JSArray_Expression);
- for (; true;) {
- if (!_this._lookingAtExpression$0())
- break;
- J.add$1$ax(expressions, _this._expressionUntilComma$0());
- if (!t1.scanChar$1(44))
- break;
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- t2 = P.List_List$unmodifiable(expressions, type$.Expression);
- return new D.ListExpression(t2, C.ListSeparator_comma, false, t1);
- } finally {
- _this._inParentheses = wasInParentheses;
- }
- },
- _stylesheet$_map$2: function(first, start) {
- var t2, key, _this = this,
- t1 = type$.Tuple2_Expression_Expression,
- pairs = H.setRuntimeTypeInfo([new S.Tuple2(first, _this._expressionUntilComma$0(), t1)], type$.JSArray_Tuple2_Expression_Expression);
- for (t2 = _this.scanner; t2.scanChar$1(44);) {
- _this.whitespace$0();
- if (!_this._lookingAtExpression$0())
- break;
- key = _this._expressionUntilComma$0();
- t2.expectChar$1(58);
- _this.whitespace$0();
- pairs.push(new S.Tuple2(key, _this._expressionUntilComma$0(), t1));
- }
- t2.expectChar$1(41);
- t2 = t2.spanFrom$1(start);
- return new A.MapExpression(P.List_List$unmodifiable(pairs, t1), t2);
- },
- _hashExpression$0: function() {
- var start, first, t2, identifier, buffer, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$1(1) === 123)
- return _this.identifierLike$0();
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(35);
- first = t1.peekChar$0();
- if (first != null && T.isDigit(first))
- return new K.ColorExpression(_this._hexColorContents$1(start));
- t2 = t1._string_scanner$_position;
- identifier = _this.interpolatedIdentifier$0();
- if (_this._isHexColor$1(identifier)) {
- t1.set$state(new S._SpanScannerState(t1, t2));
- return new K.ColorExpression(_this._hexColorContents$1(start));
- }
- t2 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer(t2, []);
- t2._contents += H.Primitives_stringFromCharCode(35);
- buffer.addInterpolation$1(identifier);
- return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- },
- _hexColorContents$1: function(start) {
- var red, green, blue, alpha, digit4, t2, t3, _this = this,
- digit1 = _this._hexDigit$0(),
- digit2 = _this._hexDigit$0(),
- digit3 = _this._hexDigit$0(),
- t1 = _this.scanner;
- if (!T.isHex(t1.peekChar$0())) {
- red = (digit1 << 4 >>> 0) + digit1;
- green = (digit2 << 4 >>> 0) + digit2;
- blue = (digit3 << 4 >>> 0) + digit3;
- alpha = 1;
- } else {
- digit4 = _this._hexDigit$0();
- t2 = digit1 << 4 >>> 0;
- t3 = digit3 << 4 >>> 0;
- if (!T.isHex(t1.peekChar$0())) {
- red = t2 + digit1;
- green = (digit2 << 4 >>> 0) + digit2;
- blue = t3 + digit3;
- alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
- } else {
- red = t2 + digit2;
- green = t3 + digit4;
- blue = (_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0();
- alpha = T.isHex(t1.peekChar$0()) ? ((_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0()) / 255 : 1;
- }
- }
- return K.SassColor$rgb(red, green, blue, alpha, t1.spanFrom$1(start));
- },
- _isHexColor$1: function(interpolation) {
- var t1,
- plain = interpolation.get$asPlain();
- if (plain == null)
- return false;
- t1 = plain.length;
- if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
- return false;
- t1 = new H.CodeUnits(plain);
- return t1.every$1(t1, T.character__isHex$closure());
- },
- _hexDigit$0: function() {
- var t1 = this.scanner,
- char = t1.peekChar$0();
- if (char == null || !T.isHex(char))
- t1.error$1("Expected hex digit.");
- return T.asHex(t1.readChar$0());
- },
- _minusExpression$0: function() {
- var _this = this,
- next = _this.scanner.peekChar$1(1);
- if (T.isDigit(next) || next === 46)
- return _this._number$0();
- if (_this._lookingAtInterpolatedIdentifier$0())
- return _this.identifierLike$0();
- return _this._unaryOperation$0();
- },
- _importantExpression$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- this.whitespace$0();
- this.expectIdentifier$1("important");
- return new D.StringExpression(X.Interpolation$(["!important"], t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
- },
- _unaryOperation$0: function() {
- var _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- operator = _this._unaryOperatorFor$1(t1.readChar$0());
- if (operator == null)
- t1.error$2$position("Expected unary operator.", t1._string_scanner$_position - 1);
- else if (_this.get$plainCss() && operator !== C.UnaryOperator_zDx)
- t1.error$3$length$position("Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
- _this.whitespace$0();
- return new X.UnaryOperationExpression(operator, _this._singleExpression$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _unaryOperatorFor$1: function(character) {
- switch (character) {
- case 43:
- return C.UnaryOperator_j2w;
- case 45:
- return C.UnaryOperator_U4G;
- case 47:
- return C.UnaryOperator_zDx;
- default:
- return null;
- }
- },
- _number$0: function() {
- var number, t4, unit, t5, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- first = t1.peekChar$0(),
- t3 = first === 45,
- sign = t3 ? -1 : 1;
- if (first === 43 || t3)
- t1.readChar$0();
- number = t1.peekChar$0() === 46 ? 0 : _this.naturalNumber$0();
- t3 = _this._tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
- t4 = _this._tryExponent$0();
- if (t1.scanChar$1(37))
- unit = "%";
- else {
- if (_this.lookingAtIdentifier$0())
- t5 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
- else
- t5 = false;
- unit = t5 ? _this.identifier$1$unit(true) : null;
- }
- return new T.NumberExpression(sign * ((number + t3) * t4), unit, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _tryDecimal$1$allowTrailingDot: function(allowTrailingDot) {
- var t2,
- t1 = this.scanner,
- start = t1._string_scanner$_position;
- if (t1.peekChar$0() !== 46)
- return 0;
- if (!T.isDigit(t1.peekChar$1(1))) {
- if (allowTrailingDot)
- return 0;
- t1.error$2$position("Expected digit.", t1._string_scanner$_position + 1);
- }
- t1.readChar$0();
- while (true) {
- t2 = t1.peekChar$0();
- if (!(t2 != null && t2 >= 48 && t2 <= 57))
- break;
- t1.readChar$0();
- }
- return P.double_parse(t1.substring$1(0, start));
- },
- _tryExponent$0: function() {
- var next, t2, exponentSign, exponent,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first !== 101 && first !== 69)
- return 1;
- next = t1.peekChar$1(1);
- if (!T.isDigit(next) && next !== 45 && next !== 43)
- return 1;
- t1.readChar$0();
- t2 = next === 45;
- exponentSign = t2 ? -1 : 1;
- if (next === 43 || t2)
- t1.readChar$0();
- if (!T.isDigit(t1.peekChar$0()))
- t1.error$1("Expected digit.");
- exponent = 0;
- while (true) {
- t2 = t1.peekChar$0();
- if (!(t2 != null && t2 >= 48 && t2 <= 57))
- break;
- exponent = exponent * 10 + (t1.readChar$0() - 48);
- }
- return Math.pow(10, exponentSign * exponent);
- },
- _unicodeRange$0: function() {
- var i, j, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- _this.expectIdentChar$1(117);
- t1.expectChar$1(43);
- for (i = 0; i < 6; ++i)
- if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure()))
- break;
- if (t1.scanChar$1(63)) {
- ++i;
- for (; i < 6; ++i)
- if (!t1.scanChar$1(63))
- break;
- return new D.StringExpression(X.Interpolation$([t1.substring$1(0, start.position)], t1.spanFrom$1(start)), false);
- }
- if (i === 0)
- t1.error$1('Expected hex digit or "?".');
- if (t1.scanChar$1(45)) {
- for (j = 0; j < 6; ++j)
- if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure0()))
- break;
- if (j === 0)
- t1.error$1("Expected hex digit.");
- }
- if (_this._lookingAtInterpolatedIdentifierBody$0())
- t1.error$1("Expected end of identifier.");
- return new D.StringExpression(X.Interpolation$([t1.substring$1(0, start.position)], t1.spanFrom$1(start)), false);
- },
- _variable$0: function() {
- var _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- $name = _this.variableName$0();
- if (_this.get$plainCss())
- _this.error$2("Sass variables aren't allowed in plain CSS.", t1.spanFrom$1(start));
- return new S.VariableExpression(null, $name, t1.spanFrom$1(start));
- },
- _selector$0: function() {
- var t1, start, _this = this;
- if (_this.get$plainCss())
- _this.scanner.error$2$length("The parent selector isn't allowed in plain CSS.", 1);
- t1 = _this.scanner;
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(38);
- if (t1.scanChar$1(38)) {
- _this.logger.warn$2$span('In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.', t1.spanFrom$1(start));
- t1.set$position(t1._string_scanner$_position - 1);
- }
- return new T.SelectorExpression(t1.spanFrom$1(start));
- },
- interpolatedString$0: function() {
- var t3, t4, buffer, next, second, t5,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- quote = t1.readChar$0();
- if (quote !== 39 && quote !== 34)
- t1.error$2$position("Expected string.", t2);
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer(t3, t4);
- for (; true;) {
- next = t1.peekChar$0();
- if (next === quote) {
- t1.readChar$0();
- break;
- } else if (next == null || next === 10 || next === 13 || next === 12)
- t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
- else if (next === 92) {
- second = t1.peekChar$1(1);
- if (second === 10 || second === 13 || second === 12) {
- t1.readChar$0();
- t1.readChar$0();
- if (second === 13)
- t1.scanChar$1(10);
- } else
- t3._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
- } else if (next === 35)
- if (t1.peekChar$1(1) === 123) {
- t5 = this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t5);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), true);
- },
- identifierLike$0: function() {
- var invocation, lower, color, specialFunction, $name, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- identifier = _this.interpolatedIdentifier$0(),
- plain = identifier.get$asPlain(),
- t2 = plain == null;
- if (!t2) {
- if (plain === "if") {
- invocation = _this._argumentInvocation$0();
- return new L.IfExpression(invocation, B.spanForList(H.setRuntimeTypeInfo([identifier, invocation], type$.JSArray_AstNode)));
- } else if (plain === "not") {
- _this.whitespace$0();
- return new X.UnaryOperationExpression(C.UnaryOperator_not_not, _this._singleExpression$0(), identifier.span);
- }
- lower = plain.toLowerCase();
- if (t1.peekChar$0() !== 40) {
- switch (plain) {
- case "false":
- return new Z.BooleanExpression(false, identifier.span);
- case "null":
- return new O.NullExpression(identifier.span);
- case "true":
- return new Z.BooleanExpression(true, identifier.span);
- }
- color = $.$get$colorsByName().$index(0, lower);
- if (color != null)
- return new K.ColorExpression(K.SassColor$rgb(color.get$red(), color.get$green(), color.get$blue(), color.alpha, identifier.span));
- }
- specialFunction = _this.trySpecialFunction$2(lower, start);
- if (specialFunction != null)
- return specialFunction;
- }
- switch (t1.peekChar$0()) {
- case 46:
- if (t1.peekChar$1(1) === 46)
- return new D.StringExpression(identifier, false);
- t1.readChar$0();
- if (t2)
- _this.error$2("Interpolation isn't allowed in namespaces.", identifier.span);
- if (t1.peekChar$0() === 36) {
- $name = _this.variableName$0();
- _this._assertPublic$2($name, new V.StylesheetParser_identifierLike_closure(_this, start));
- return new S.VariableExpression(plain, $name, t1.spanFrom$1(start));
- }
- t2 = t1._string_scanner$_position;
- return new F.FunctionExpression(plain, X.Interpolation$([_this._publicIdentifier$0()], t1.spanFrom$1(new S._SpanScannerState(t1, t2))), _this._argumentInvocation$0(), t1.spanFrom$1(start));
- case 40:
- return new F.FunctionExpression(null, identifier, _this._argumentInvocation$0(), t1.spanFrom$1(start));
- default:
- return new D.StringExpression(identifier, false);
- }
- },
- trySpecialFunction$2: function($name, start) {
- var t1, buffer, t2, t3, next, contents, _this = this, _null = null;
- switch (B.unvendor($name)) {
- case "calc":
- case "element":
- case "expression":
- if (!_this.scanner.scanChar$1(40))
- return _null;
- t1 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer(t1, []);
- t1._contents = $name;
- t1._contents += H.Primitives_stringFromCharCode(40);
- break;
- case "min":
- case "max":
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- if (!t1.scanChar$1(40))
- return _null;
- _this.whitespace$0();
- t3 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer(t3, []);
- t3._contents = $name;
- t3._contents += H.Primitives_stringFromCharCode(40);
- if (!_this._tryMinMaxContents$1(buffer)) {
- t1.set$state(new S._SpanScannerState(t1, t2));
- return _null;
- }
- return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- case "progid":
- t1 = _this.scanner;
- if (!t1.scanChar$1(58))
- return _null;
- t2 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer(t2, []);
- t2._contents = $name;
- t2._contents += H.Primitives_stringFromCharCode(58);
- next = t1.peekChar$0();
- while (true) {
- if (next != null) {
- if (!(next >= 97 && next <= 122))
- t3 = next >= 65 && next <= 90;
- else
- t3 = true;
- t3 = t3 || next === 46;
- } else
- t3 = false;
- if (!t3)
- break;
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- next = t1.peekChar$0();
- }
- t1.expectChar$1(40);
- t2._contents += H.Primitives_stringFromCharCode(40);
- break;
- case "url":
- contents = _this._tryUrlContents$1(start);
- return contents == null ? _null : new D.StringExpression(contents, false);
- default:
- return _null;
- }
- buffer.addInterpolation$1(_this._interpolatedDeclarationValue$1$allowEmpty(true).text);
- t1 = _this.scanner;
- t1.expectChar$1(41);
- buffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(41);
- return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- },
- _tryMinMaxContents$2$allowComma: function(buffer, allowComma) {
- var t1, t2, t3, t4, start, end, exception, t5, _this = this;
- for (t1 = _this.scanner, t2 = buffer._interpolation_buffer$_text, t3 = !allowComma, t4 = _this.get$_number(); true;) {
- switch (t1.peekChar$0()) {
- case 45:
- case 43:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- try {
- start = t1._string_scanner$_position;
- t4.call$0();
- end = t1._string_scanner$_position;
- t2._contents += J.substring$2$s(t1.string, start, end);
- } catch (exception) {
- if (type$.FormatException._is(H.unwrapException(exception)))
- return false;
- else
- throw exception;
- }
- break;
- case 35:
- if (t1.peekChar$1(1) !== 123)
- return false;
- t5 = _this.singleInterpolation$0();
- buffer._flushText$0();
- buffer._interpolation_buffer$_contents.push(t5);
- break;
- case 99:
- case 67:
- if (!_this._tryMinMaxFunction$2(buffer, "calc"))
- return false;
- break;
- case 101:
- case 69:
- if (!_this._tryMinMaxFunction$2(buffer, "env"))
- return false;
- break;
- case 118:
- case 86:
- if (!_this._tryMinMaxFunction$2(buffer, "var"))
- return false;
- break;
- case 40:
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- if (!_this._tryMinMaxContents$2$allowComma(buffer, false))
- return false;
- break;
- case 109:
- case 77:
- t1.readChar$0();
- if (_this.scanIdentChar$1(105)) {
- if (!_this.scanIdentChar$1(110))
- return false;
- t2._contents += "min(";
- } else if (_this.scanIdentChar$1(97)) {
- if (!_this.scanIdentChar$1(120))
- return false;
- t2._contents += "max(";
- } else
- return false;
- if (!t1.scanChar$1(40))
- return false;
- if (!_this._tryMinMaxContents$1(buffer))
- return false;
- break;
- default:
- return false;
- }
- _this.whitespace$0();
- switch (t1.peekChar$0()) {
- case 41:
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- return true;
- case 43:
- case 45:
- case 42:
- case 47:
- t2._contents += H.Primitives_stringFromCharCode(32);
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += H.Primitives_stringFromCharCode(32);
- break;
- case 44:
- if (t3)
- return false;
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += H.Primitives_stringFromCharCode(32);
- break;
- default:
- return false;
- }
- _this.whitespace$0();
- }
- },
- _tryMinMaxContents$1: function(buffer) {
- return this._tryMinMaxContents$2$allowComma(buffer, true);
- },
- _tryMinMaxFunction$2: function(buffer, $name) {
- var t1, t2;
- if (!this.scanIdentifier$1($name))
- return false;
- t1 = this.scanner;
- if (!t1.scanChar$1(40))
- return false;
- t2 = buffer._interpolation_buffer$_text;
- t2._contents += $name;
- t2._contents += H.Primitives_stringFromCharCode(40);
- buffer.addInterpolation$1(this._interpolatedDeclarationValue$1$allowEmpty(true).asInterpolation$0());
- t2._contents += H.Primitives_stringFromCharCode(41);
- if (!t1.scanChar$1(41))
- return false;
- return true;
- },
- _tryUrlContents$2$name: function(start, $name) {
- var t3, t4, buffer, next, t5, endPosition, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- if (!t1.scanChar$1(40))
- return null;
- _this.whitespaceWithoutComments$0();
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer(t3, t4);
- t3._contents = $name == null ? "url" : $name;
- t3._contents += H.Primitives_stringFromCharCode(40);
- for (; true;) {
- next = t1.peekChar$0();
- if (next == null)
- break;
- else {
- if (next !== 33)
- if (next !== 37)
- if (next !== 38)
- t5 = next >= 42 && next <= 126 || next >= 128;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- if (t5)
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (next === 92)
- t3._contents += H.S(_this.escape$0());
- else if (next === 35)
- if (t1.peekChar$1(1) === 123) {
- t5 = _this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t5);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
- _this.whitespaceWithoutComments$0();
- if (t1.peekChar$0() !== 41)
- break;
- } else if (next === 41) {
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- endPosition = t1._string_scanner$_position;
- return buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, start.position, endPosition));
- } else
- break;
- }
- }
- t1.set$state(new S._SpanScannerState(t1, t2));
- return null;
- },
- _tryUrlContents$1: function(start) {
- return this._tryUrlContents$2$name(start, null);
- },
- dynamicUrl$0: function() {
- var contents, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- _this.expectIdentifier$1("url");
- contents = _this._tryUrlContents$1(start);
- if (contents != null)
- return new D.StringExpression(contents, false);
- return new F.FunctionExpression(null, X.Interpolation$(["url"], t1.spanFrom$1(start)), _this._argumentInvocation$0(), t1.spanFrom$1(start));
- },
- almostAnyValue$0: function() {
- var t4, next, commentStart, end, t5, contents, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- buffer = new Z.InterpolationBuffer(t3, []);
- $label0$1:
- for (t4 = t1.string; true;) {
- next = t1.peekChar$0();
- switch (next) {
- case 92:
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 34:
- case 39:
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- break;
- case 47:
- commentStart = t1._string_scanner$_position;
- if (_this.scanComment$0()) {
- end = t1._string_scanner$_position;
- t3._contents += J.substring$2$s(t4, commentStart, end);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 35:
- if (t1.peekChar$1(1) === 123)
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 13:
- case 10:
- case 12:
- if (_this.get$indented())
- break $label0$1;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 33:
- case 59:
- case 123:
- case 125:
- break $label0$1;
- case 117:
- case 85:
- t5 = t1._string_scanner$_position;
- if (!_this.scanIdentifier$1("url")) {
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- }
- contents = _this._tryUrlContents$1(new S._SpanScannerState(t1, t5));
- if (contents == null) {
- if (t5 < 0 || t5 > t4.length)
- H.throwExpression(P.ArgumentError$("Invalid position " + t5));
- t1._string_scanner$_position = t5;
- t1._lastMatch = null;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- } else
- buffer.addInterpolation$1(contents);
- break;
- default:
- if (next == null)
- break $label0$1;
- if (_this.lookingAtIdentifier$0())
- t3._contents += _this.identifier$0();
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- }
- }
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _interpolatedDeclarationValue$1$allowEmpty: function(allowEmpty) {
- var t4, wroteNewline, next, t5, start, end, contents, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- buffer = new Z.InterpolationBuffer(t3, []),
- brackets = H.setRuntimeTypeInfo([], type$.JSArray_int);
- $label0$1:
- for (t4 = t1.string, wroteNewline = false; true;) {
- next = t1.peekChar$0();
- switch (next) {
- case 92:
- t3._contents += H.S(_this.escape$1$identifierStart(true));
- wroteNewline = false;
- break;
- case 34:
- case 39:
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- wroteNewline = false;
- break;
- case 47:
- if (t1.peekChar$1(1) === 42) {
- t5 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t5.call$0();
- end = t1._string_scanner$_position;
- t3._contents += J.substring$2$s(t4, start, end);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- case 35:
- if (t1.peekChar$1(1) === 123)
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- case 32:
- case 9:
- if (!wroteNewline) {
- t5 = t1.peekChar$1(1);
- t5 = !(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12);
- } else
- t5 = true;
- if (t5)
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else
- t1.readChar$0();
- break;
- case 10:
- case 13:
- case 12:
- if (_this.get$indented())
- break $label0$1;
- t5 = t1.peekChar$1(-1);
- if (!(t5 === 10 || t5 === 13 || t5 === 12))
- t3._contents += "\n";
- t1.readChar$0();
- wroteNewline = true;
- break;
- case 40:
- case 123:
- case 91:
- t3._contents += H.Primitives_stringFromCharCode(next);
- brackets.push(T.opposite(t1.readChar$0()));
- wroteNewline = false;
- break;
- case 41:
- case 125:
- case 93:
- if (brackets.length === 0)
- break $label0$1;
- t3._contents += H.Primitives_stringFromCharCode(next);
- t1.expectChar$1(brackets.pop());
- wroteNewline = false;
- break;
- case 59:
- if (brackets.length === 0)
- break $label0$1;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 117:
- case 85:
- t5 = t1._string_scanner$_position;
- if (!_this.scanIdentifier$1("url")) {
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- }
- contents = _this._tryUrlContents$1(new S._SpanScannerState(t1, t5));
- if (contents == null) {
- if (t5 < 0 || t5 > t4.length)
- H.throwExpression(P.ArgumentError$("Invalid position " + t5));
- t1._string_scanner$_position = t5;
- t1._lastMatch = null;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- } else
- buffer.addInterpolation$1(contents);
- wroteNewline = false;
- break;
- default:
- if (next == null)
- break $label0$1;
- if (_this.lookingAtIdentifier$0())
- t3._contents += _this.identifier$0();
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- }
- }
- if (brackets.length !== 0)
- t1.expectChar$1(C.JSArray_methods.get$last(brackets));
- if (!allowEmpty && buffer._interpolation_buffer$_contents.length === 0 && t3._contents.length === 0)
- t1.error$1("Expected token.");
- return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
- },
- _interpolatedDeclarationValue$0: function() {
- return this._interpolatedDeclarationValue$1$allowEmpty(false);
- },
- interpolatedIdentifier$0: function() {
- var first, _this = this,
- _s20_ = "Expected identifier.",
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- t2 = new P.StringBuffer(""),
- t3 = [],
- buffer = new Z.InterpolationBuffer(t2, t3);
- if (t1.scanChar$1(45)) {
- t2._contents += H.Primitives_stringFromCharCode(45);
- if (t1.scanChar$1(45)) {
- t2._contents += H.Primitives_stringFromCharCode(45);
- _this._interpolatedIdentifierBody$1(buffer);
- return buffer.interpolation$1(t1.spanFrom$1(start));
- }
- }
- first = t1.peekChar$0();
- if (first == null)
- t1.error$1(_s20_);
- else if (first === 95 || T.isAlphabetic0(first) || first >= 128)
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (first === 92)
- t2._contents += H.S(_this.escape$1$identifierStart(true));
- else if (first === 35 && t1.peekChar$1(1) === 123) {
- t2 = _this.singleInterpolation$0();
- buffer._flushText$0();
- t3.push(t2);
- } else
- t1.error$1(_s20_);
- _this._interpolatedIdentifierBody$1(buffer);
- return buffer.interpolation$1(t1.spanFrom$1(start));
- },
- _interpolatedIdentifierBody$1: function(buffer) {
- var t1, t2, t3, next, t4;
- for (t1 = buffer._interpolation_buffer$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer$_text; true;) {
- next = t2.peekChar$0();
- if (next == null)
- break;
- else {
- if (next !== 95)
- if (next !== 45) {
- if (!(next >= 97 && next <= 122))
- t4 = next >= 65 && next <= 90;
- else
- t4 = true;
- if (!t4)
- t4 = next >= 48 && next <= 57;
- else
- t4 = true;
- t4 = t4 || next >= 128;
- } else
- t4 = true;
- else
- t4 = true;
- if (t4)
- t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
- else if (next === 92)
- t3._contents += H.S(this.escape$0());
- else if (next === 35 && t2.peekChar$1(1) === 123) {
- t4 = this.singleInterpolation$0();
- buffer._flushText$0();
- t1.push(t4);
- } else
- break;
- }
- }
- },
- singleInterpolation$0: function() {
- var contents, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("#{");
- _this.whitespace$0();
- contents = _this.expression$0();
- t1.expectChar$1(125);
- if (_this.get$plainCss())
- _this.error$2("Interpolation isn't allowed in plain CSS.", t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- return contents;
- },
- _mediaQueryList$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- buffer = new Z.InterpolationBuffer(t3, []);
- for (; true;) {
- this.whitespace$0();
- this._stylesheet$_mediaQuery$1(buffer);
- if (!t1.scanChar$1(44))
- break;
- t3._contents += H.Primitives_stringFromCharCode(44);
- t3._contents += H.Primitives_stringFromCharCode(32);
- }
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _stylesheet$_mediaQuery$1: function(buffer) {
- var t1, identifier, _this = this;
- if (_this.scanner.peekChar$0() !== 40) {
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- _this.whitespace$0();
- if (!_this._lookingAtInterpolatedIdentifier$0())
- return;
- t1 = buffer._interpolation_buffer$_text;
- t1._contents += H.Primitives_stringFromCharCode(32);
- identifier = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- if (B.equalsIgnoreCase(identifier.get$asPlain(), "and"))
- t1._contents += " and ";
- else {
- buffer.addInterpolation$1(identifier);
- if (_this.scanIdentifier$1("and")) {
- _this.whitespace$0();
- t1._contents += " and ";
- } else
- return;
- }
- }
- for (t1 = buffer._interpolation_buffer$_text; true;) {
- _this.whitespace$0();
- buffer.addInterpolation$1(_this._mediaFeature$0());
- _this.whitespace$0();
- if (!_this.scanIdentifier$1("and"))
- break;
- t1._contents += " and ";
- }
- },
- _mediaFeature$0: function() {
- var interpolation, t2, t3, t4, buffer, t5, next, isAngle, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 35) {
- interpolation = _this.singleInterpolation$0();
- return X.Interpolation$([interpolation], interpolation.get$span());
- }
- t2 = t1._string_scanner$_position;
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer(t3, t4);
- t1.expectChar$1(40);
- t3._contents += H.Primitives_stringFromCharCode(40);
- _this.whitespace$0();
- t5 = _this._expressionUntilComparison$0();
- buffer._flushText$0();
- t4.push(t5);
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t3._contents += H.Primitives_stringFromCharCode(58);
- t3._contents += H.Primitives_stringFromCharCode(32);
- t5 = _this.expression$0();
- buffer._flushText$0();
- t4.push(t5);
- } else {
- next = t1.peekChar$0();
- isAngle = next === 60 || next === 62;
- if (isAngle || next === 61) {
- t3._contents += H.Primitives_stringFromCharCode(32);
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- if (isAngle && t1.scanChar$1(61))
- t3._contents += H.Primitives_stringFromCharCode(61);
- t3._contents += H.Primitives_stringFromCharCode(32);
- _this.whitespace$0();
- t5 = _this._expressionUntilComparison$0();
- buffer._flushText$0();
- t4.push(t5);
- if (isAngle && t1.scanChar$1(next)) {
- t3._contents += H.Primitives_stringFromCharCode(32);
- t3._contents += H.Primitives_stringFromCharCode(next);
- if (t1.scanChar$1(61))
- t3._contents += H.Primitives_stringFromCharCode(61);
- t3._contents += H.Primitives_stringFromCharCode(32);
- _this.whitespace$0();
- t5 = _this._expressionUntilComparison$0();
- buffer._flushText$0();
- t4.push(t5);
- }
- }
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- t3._contents += H.Primitives_stringFromCharCode(41);
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _expressionUntilComparison$0: function() {
- return this.expression$1$until(new V.StylesheetParser__expressionUntilComparison_closure(this));
- },
- _supportsCondition$0: function() {
- var condition, operator, right, endPosition, lowerOperator, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- first = t1.peekChar$0();
- if (first !== 40 && first !== 35) {
- t2 = t1._string_scanner$_position;
- _this.expectIdentifier$1("not");
- _this.whitespace$0();
- return new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- }
- condition = _this._supportsConditionInParens$0();
- _this.whitespace$0();
- for (; _this.lookingAtIdentifier$0();) {
- if (_this.scanIdentifier$1("or"))
- operator = "or";
- else {
- _this.expectIdentifier$1("and");
- operator = "and";
- }
- _this.whitespace$0();
- right = _this._supportsConditionInParens$0();
- endPosition = t1._string_scanner$_position;
- condition = new U.SupportsOperation(condition, right, operator, Y._FileSpan$(t1._sourceFile, t2, endPosition));
- lowerOperator = operator.toLowerCase();
- if (lowerOperator !== "and" && lowerOperator !== "or")
- H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
- _this.whitespace$0();
- }
- return condition;
- },
- _supportsConditionInParens$0: function() {
- var next, condition, negation, $name, value, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (t1.peekChar$0() === 35)
- return new X.SupportsInterpolation(_this.singleInterpolation$0(), t1.spanFrom$1(start));
- t1.expectChar$1(40);
- _this.whitespace$0();
- next = t1.peekChar$0();
- if (next === 40 || next === 35) {
- condition = _this._supportsCondition$0();
- _this.whitespace$0();
- t1.expectChar$1(41);
- return condition;
- }
- if (next === 110 || next === 78) {
- negation = _this._trySupportsNegation$0();
- if (negation != null) {
- t1.expectChar$1(41);
- return negation;
- }
- }
- $name = _this.expression$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- value = _this.expression$0();
- t1.expectChar$1(41);
- return new L.SupportsDeclaration($name, value, t1.spanFrom$1(start));
- },
- _trySupportsNegation$0: function() {
- var next, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (!_this.scanIdentifier$1("not") || t1._string_scanner$_position === t1.string.length) {
- t1.set$state(start);
- return null;
- }
- next = t1.peekChar$0();
- if (!(next === 32 || next === 9 || T.isNewline(next)) && next !== 40) {
- t1.set$state(start);
- return null;
- }
- _this.whitespace$0();
- return new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(start));
- },
- _lookingAtInterpolatedIdentifier$0: function() {
- var second,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first == null)
- return false;
- if (first === 95 || T.isAlphabetic0(first) || first >= 128 || first === 92)
- return true;
- if (first === 35)
- return t1.peekChar$1(1) === 123;
- if (first !== 45)
- return false;
- second = t1.peekChar$1(1);
- if (second == null)
- return false;
- if (second === 35)
- return t1.peekChar$1(2) === 123;
- return second === 95 || T.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
- },
- _lookingAtInterpolatedIdentifierBody$0: function() {
- var t1 = this.scanner,
- first = t1.peekChar$0();
- if (first == null)
- return false;
- if (first === 95 || T.isAlphabetic0(first) || first >= 128 || T.isDigit(first) || first === 45 || first === 92)
- return true;
- return first === 35 && t1.peekChar$1(1) === 123;
- },
- _lookingAtExpression$0: function() {
- var next,
- t1 = this.scanner,
- character = t1.peekChar$0();
- if (character == null)
- return false;
- if (character === 46)
- return t1.peekChar$1(1) !== 46;
- if (character === 33) {
- next = t1.peekChar$1(1);
- if (next != null)
- if ((next | 32) !== 105)
- t1 = next === 32 || next === 9 || T.isNewline(next);
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- }
- if (character !== 40)
- if (character !== 47)
- if (character !== 91)
- if (character !== 39)
- if (character !== 34)
- if (character !== 35)
- if (character !== 43)
- if (character !== 45)
- if (character !== 92)
- if (character !== 36)
- if (character !== 38)
- t1 = character === 95 || T.isAlphabetic0(character) || character >= 128 || T.isDigit(character);
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- _withChildren$1$3: function(child, start, create) {
- var result = create.call$2(this.children$1(child), this.scanner.spanFrom$1(start));
- this.whitespaceWithoutComments$0();
- return result;
- },
- _withChildren$3: function(child, start, create) {
- return this._withChildren$1$3(child, start, create, type$.dynamic);
- },
- _urlString$0: function() {
- var innerError, t2, exception,
- t1 = this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- url = this.string$0();
- try {
- t2 = P.Uri_parse(url);
- return t2;
- } catch (exception) {
- t2 = H.unwrapException(exception);
- if (type$.FormatException._is(t2)) {
- innerError = t2;
- this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), t1.spanFrom$1(start));
- } else
- throw exception;
- }
- },
- _publicIdentifier$0: function() {
- var _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- result = _this.identifier$1$normalize(true);
- _this._assertPublic$2(result, new V.StylesheetParser__publicIdentifier_closure(_this, new S._SpanScannerState(t1, t2)));
- return result;
- },
- _assertPublic$2: function(identifier, span) {
- if (!T.isPrivate(identifier))
- return;
- this.error$2("Private members can't be accessed from outside their modules.", span.call$0());
- },
- get$plainCss: function() {
- return false;
- }
- };
- V.StylesheetParser_parse_closure.prototype = {
- call$0: function() {
- var statements, t4,
- t1 = this.$this,
- t2 = t1.scanner,
- t3 = t2._string_scanner$_position;
- t2.scanChar$1(65279);
- statements = t1.statements$1(new V.StylesheetParser_parse__closure(t1));
- t2.expectDone$0();
- t4 = t1._globalVariables.get$values();
- C.JSArray_methods.addAll$1(statements, H.MappedIterable_MappedIterable(t4, new V.StylesheetParser_parse__closure0(), H._instanceType(t4)._eval$1("Iterable.E"), type$.Statement));
- return V.Stylesheet$(statements, t2.spanFrom$1(new S._SpanScannerState(t2, t3)), t1.get$plainCss());
- },
- $signature: 37
- };
- V.StylesheetParser_parse__closure.prototype = {
- call$0: function() {
- return this.$this._statement$1$root(true);
- },
- $signature: 35
- };
- V.StylesheetParser_parse__closure0.prototype = {
- call$1: function(declaration) {
- return Z.VariableDeclaration$(declaration.name, new O.NullExpression(declaration.expression.get$span()), declaration.span, null, false, true, null);
- }
- };
- V.StylesheetParser_parseArgumentDeclaration_closure.prototype = {
- call$0: function() {
- var $arguments,
- t1 = this.$this,
- t2 = t1.scanner;
- t2.expectChar$2$name(64, "@-rule");
- t1.identifier$0();
- t1.whitespace$0();
- t1.identifier$0();
- $arguments = t1._argumentDeclaration$0();
- t1.whitespace$0();
- t2.expectChar$1(123);
- return $arguments;
- },
- $signature: 104
- };
- V.StylesheetParser_parseVariableDeclaration_closure.prototype = {
- call$0: function() {
- var t1 = this.$this;
- return t1.lookingAtIdentifier$0() ? t1._variableDeclarationWithNamespace$0() : t1.variableDeclarationWithoutNamespace$0();
- },
- $signature: 69
- };
- V.StylesheetParser_parseUseRule_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1.scanner,
- t3 = t2._string_scanner$_position;
- t2.expectChar$2$name(64, "@-rule");
- t1.expectIdentifier$1("use");
- t1.whitespace$0();
- return t1._useRule$1(new S._SpanScannerState(t2, t3));
- },
- $signature: 127
- };
- V.StylesheetParser__parseSingleProduction_closure.prototype = {
- call$0: function() {
- var result = this.production.call$0();
- this.$this.scanner.expectDone$0();
- return result;
- },
- $signature: function() {
- return this.T._eval$1("0()");
- }
- };
- V.StylesheetParser__statement_closure.prototype = {
- call$0: function() {
- return this.$this._statement$0();
- },
- $signature: 35
- };
- V.StylesheetParser_variableDeclarationWithoutNamespace_closure.prototype = {
- call$0: function() {
- return this.$this.scanner.spanFrom$1(this._box_0.start);
- },
- $signature: 24
- };
- V.StylesheetParser_variableDeclarationWithoutNamespace_closure0.prototype = {
- call$0: function() {
- return this.declaration;
- },
- $signature: 69
- };
- V.StylesheetParser__declarationOrBuffer_closure.prototype = {
- call$2: function(children, span) {
- return L.Declaration$(this.name, span, children, null);
- }
- };
- V.StylesheetParser__declarationOrBuffer_closure0.prototype = {
- call$2: function(children, span) {
- return L.Declaration$(this.name, span, children, this._box_0.value);
- }
- };
- V.StylesheetParser__styleRule_closure.prototype = {
- call$2: function(children, span) {
- var t2, t3, t4, _this = this,
- t1 = _this.$this;
- if (t1.get$indented() && children.length === 0)
- t1.logger.warn$2$span("This selector doesn't have any properties and won't be rendered.", _this._box_0.interpolation.span);
- t1._inStyleRule = _this.wasInStyleRule;
- t2 = _this._box_0;
- t3 = t2.interpolation;
- t2 = t1.scanner.spanFrom$1(t2.start);
- t1 = P.List_List$unmodifiable(children, type$.Statement);
- t4 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new X.StyleRule(t3, t2, t1, t4);
- }
- };
- V.StylesheetParser__propertyOrVariableDeclaration_closure.prototype = {
- call$2: function(children, span) {
- return L.Declaration$(this._box_0.name, span, children, null);
- }
- };
- V.StylesheetParser__propertyOrVariableDeclaration_closure0.prototype = {
- call$2: function(children, span) {
- return L.Declaration$(this._box_0.name, span, children, this.value);
- }
- };
- V.StylesheetParser__atRootRule_closure.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new V.AtRootRule(this.query, span, t1, t2);
- }
- };
- V.StylesheetParser__atRootRule_closure0.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new V.AtRootRule(null, span, t1, t2);
- }
- };
- V.StylesheetParser__eachRule_closure.prototype = {
- call$2: function(children, span) {
- var t1, t2, t3, _this = this;
- _this.$this._inControlDirective = _this.wasInControlDirective;
- t1 = P.List_List$unmodifiable(_this.variables, type$.String);
- t2 = P.List_List$unmodifiable(children, type$.Statement);
- t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
- return new V.EachRule(t1, _this.list, span, t2, t3);
- }
- };
- V.StylesheetParser__functionRule_closure.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new M.FunctionRule(this.name, this.$arguments, span, t1, t2);
- }
- };
- V.StylesheetParser__forRule_closure.prototype = {
- call$0: function() {
- var t1 = this.$this;
- if (!t1.lookingAtIdentifier$0())
- return false;
- if (t1.scanIdentifier$1("to"))
- return this._box_0.exclusive = true;
- else if (t1.scanIdentifier$1("through")) {
- this._box_0.exclusive = false;
- return true;
- } else
- return false;
- },
- $signature: 25
- };
- V.StylesheetParser__forRule_closure0.prototype = {
- call$2: function(children, span) {
- var t1, t2, t3, _this = this;
- _this.$this._inControlDirective = _this.wasInControlDirective;
- t1 = _this._box_0.exclusive;
- t2 = P.List_List$unmodifiable(children, type$.Statement);
- t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
- return new B.ForRule(_this.variable, _this.from, _this.to, t1, span, t2, t3);
- }
- };
- V.StylesheetParser__memberList_closure.prototype = {
- call$0: function() {
- var t1 = this.$this;
- if (t1.scanner.peekChar$0() === 36)
- this.variables.add$1(0, t1.variableName$0());
- else
- this.identifiers.add$1(0, t1.identifier$1$normalize(true));
- },
- $signature: 0
- };
- V.StylesheetParser__includeRule_closure.prototype = {
- call$2: function(children, span) {
- var t1 = this._box_0.contentArguments,
- t2 = P.List_List$unmodifiable(children, type$.Statement),
- t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
- return new Y.ContentBlock(null, t1, span, t2, t3);
- }
- };
- V.StylesheetParser_mediaRule_closure.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new G.MediaRule(this.query, span, t1, t2);
- }
- };
- V.StylesheetParser__mixinRule_closure.prototype = {
- call$2: function(children, span) {
- var t2,
- t1 = this.$this,
- hadContent = t1._mixinHasContent;
- t1._stylesheet$_inMixin = false;
- t1._mixinHasContent = null;
- t1 = P.List_List$unmodifiable(children, type$.Statement);
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new T.MixinRule(hadContent, this.name, this.$arguments, span, t1, t2);
- }
- };
- V.StylesheetParser_mozDocumentRule_closure.prototype = {
- call$2: function(children, span) {
- var _this = this;
- if (_this._box_0.needsDeprecationWarning)
- _this.$this.logger.warn$3$deprecation$span("@-moz-document is deprecated and support will be removed from Sass in a future\nrelase. For details, see http://bit.ly/moz-document.\n", true, span);
- return U.AtRule$(_this.name, span, children, _this.value);
- }
- };
- V.StylesheetParser_supportsRule_closure.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new B.SupportsRule(this.condition, span, t1, t2);
- }
- };
- V.StylesheetParser__whileRule_closure.prototype = {
- call$2: function(children, span) {
- var t1, t2;
- this.$this._inControlDirective = this.wasInControlDirective;
- t1 = P.List_List$unmodifiable(children, type$.Statement);
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
- return new G.WhileRule(this.condition, span, t1, t2);
- }
- };
- V.StylesheetParser_unknownAtRule_closure.prototype = {
- call$2: function(children, span) {
- return U.AtRule$(this.name, span, children, this._box_0.value);
- }
- };
- V.StylesheetParser_expression_resetState.prototype = {
- call$0: function() {
- var t2,
- t1 = this._box_0;
- t1.operands = t1.operators = t1.spaceExpressions = t1.commaExpressions = null;
- t2 = this.$this;
- t2.scanner.set$state(this.start);
- t1.allowSlash = t2.lookingAtNumber$0();
- t1.singleExpression = t2._singleExpression$0();
- },
- $signature: 1
- };
- V.StylesheetParser_expression_resolveOneOperation.prototype = {
- call$0: function() {
- var t2, t3,
- t1 = this._box_0,
- operator = t1.operators.pop();
- if (operator !== C.BinaryOperator_RTB)
- t1.allowSlash = false;
- t2 = t1.allowSlash && !this.$this._inParentheses;
- t3 = t1.operands;
- if (t2)
- t1.singleExpression = new V.BinaryOperationExpression(C.BinaryOperator_RTB, t3.pop(), t1.singleExpression, true);
- else
- t1.singleExpression = new V.BinaryOperationExpression(operator, t3.pop(), t1.singleExpression, false);
- },
- $signature: 1
- };
- V.StylesheetParser_expression_resolveOperations.prototype = {
- call$0: function() {
- var t2,
- t1 = this._box_0;
- if (t1.operators == null)
- return;
- for (t2 = this.resolveOneOperation; t1.operators.length !== 0;)
- t2.call$0();
- },
- $signature: 1
- };
- V.StylesheetParser_expression_addSingleExpression.prototype = {
- call$2$number: function(expression, number) {
- var t2, _this = this,
- t1 = _this._box_0;
- if (t1.singleExpression != null) {
- t2 = _this.$this;
- if (t2._inParentheses) {
- t2._inParentheses = false;
- if (t1.allowSlash) {
- _this.resetState.call$0();
- return;
- }
- }
- if (t1.spaceExpressions == null)
- t1.spaceExpressions = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
- _this.resolveOperations.call$0();
- t1.spaceExpressions.push(t1.singleExpression);
- t1.allowSlash = number;
- } else if (!number)
- t1.allowSlash = false;
- t1.singleExpression = expression;
- },
- call$1: function(expression) {
- return this.call$2$number(expression, false);
- }
- };
- V.StylesheetParser_expression_addOperator.prototype = {
- call$1: function(operator) {
- var t2, t3, t4, t5, singleExpression,
- t1 = this.$this;
- if (t1.get$plainCss() && operator !== C.BinaryOperator_RTB) {
- t2 = t1.scanner;
- t3 = operator.operator.length;
- t2.error$3$length$position("Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
- }
- t2 = this._box_0;
- t2.allowSlash = t2.allowSlash && operator === C.BinaryOperator_RTB;
- if (t2.operators == null)
- t2.operators = H.setRuntimeTypeInfo([], type$.JSArray_BinaryOperator);
- if (t2.operands == null)
- t2.operands = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
- t3 = this.resolveOneOperation;
- t4 = operator.precedence;
- while (true) {
- t5 = t2.operators;
- if (!(t5.length !== 0 && C.JSArray_methods.get$last(t5).precedence >= t4))
- break;
- t3.call$0();
- }
- t2.operators.push(operator);
- t2.operands.push(t2.singleExpression);
- t1.whitespace$0();
- t2.allowSlash = t2.allowSlash && t1.lookingAtNumber$0();
- singleExpression = t1._singleExpression$0();
- t2.singleExpression = singleExpression;
- t2.allowSlash = t2.allowSlash && singleExpression instanceof T.NumberExpression;
- }
- };
- V.StylesheetParser_expression_resolveSpaceExpressions.prototype = {
- call$0: function() {
- var t1, t2, t3;
- this.resolveOperations.call$0();
- t1 = this._box_0;
- t2 = t1.spaceExpressions;
- if (t2 != null) {
- t2.push(t1.singleExpression);
- t2 = P.List_List$unmodifiable(t1.spaceExpressions, type$.Expression);
- t3 = B.spanForList(t2);
- t1.singleExpression = new D.ListExpression(t2, C.ListSeparator_space, false, t3);
- t1.spaceExpressions = null;
- }
- t2 = t1.singleEqualsOperand;
- if (t2 != null) {
- t1.singleExpression = new V.BinaryOperationExpression(C.BinaryOperator_kjl, t2, t1.singleExpression, false);
- t1.singleEqualsOperand = null;
- }
- },
- $signature: 1
- };
- V.StylesheetParser__expressionUntilComma_closure.prototype = {
- call$0: function() {
- return this.$this.scanner.peekChar$0() === 44;
- },
- $signature: 25
- };
- V.StylesheetParser__unicodeRange_closure.prototype = {
- call$1: function(char) {
- return char != null && T.isHex(char);
- },
- $signature: 16
- };
- V.StylesheetParser__unicodeRange_closure0.prototype = {
- call$1: function(char) {
- return char != null && T.isHex(char);
- },
- $signature: 16
- };
- V.StylesheetParser_identifierLike_closure.prototype = {
- call$0: function() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 24
- };
- V.StylesheetParser__expressionUntilComparison_closure.prototype = {
- call$0: function() {
- var t1 = this.$this.scanner,
- next = t1.peekChar$0();
- if (next === 61)
- return t1.peekChar$1(1) !== 61;
- return next === 60 || next === 62;
- },
- $signature: 25
- };
- V.StylesheetParser__publicIdentifier_closure.prototype = {
- call$0: function() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 24
- };
- M.StylesheetGraph.prototype = {
- modifiedSince$3: function(url, since, baseImporter) {
- var node = this._stylesheet_graph$_add$3(url, baseImporter, null);
- if (node == null)
- return true;
- return new M.StylesheetGraph_modifiedSince_transitiveModificationTime(this).call$1(node)._core$_value > since._core$_value;
- },
- _stylesheet_graph$_add$3: function(url, baseImporter, baseUrl) {
- var t1, t2, _this = this,
- tuple = _this._ignoreErrors$1(new M.StylesheetGraph__add_closure(_this, url, baseImporter, baseUrl));
- if (tuple == null)
- return null;
- t1 = tuple.item1;
- t2 = tuple.item2;
- _this.addCanonical$3(t1, t2, tuple.item3);
- return _this._nodes.$index(0, t2);
- },
- addCanonical$4$recanonicalize: function(importer, canonicalUrl, originalUrl, recanonicalize) {
- var stylesheet, _this = this,
- t1 = _this._nodes;
- if (t1.$index(0, canonicalUrl) != null)
- return C.Set_empty1;
- stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph_addCanonical_closure(_this, importer, canonicalUrl, originalUrl));
- if (stylesheet == null)
- return C.Set_empty1;
- t1.$indexSet(0, canonicalUrl, M.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl)));
- return recanonicalize ? _this._recanonicalizeImports$2(importer, canonicalUrl) : C.Set_empty1;
- },
- addCanonical$3: function(importer, canonicalUrl, originalUrl) {
- return this.addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, true);
- },
- _upstreamNodes$3: function(stylesheet, baseImporter, baseUrl) {
- var t4, t5, t6, t7,
- t1 = type$.Uri,
- active = P.LinkedHashSet_LinkedHashSet$_literal([baseUrl], t1),
- t2 = type$.JSArray_Uri,
- t3 = H.setRuntimeTypeInfo([], t2);
- t2 = H.setRuntimeTypeInfo([], t2);
- new F._FindDependenciesVisitor(t3, t2).visitChildren$1(stylesheet);
- t4 = type$.StylesheetNode;
- t5 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
- for (t6 = C.JSArray_methods.get$iterator(t3); t6.moveNext$0();) {
- t7 = t6.get$current(t6);
- t5.$indexSet(0, t7, this._nodeFor$4(t7, baseImporter, baseUrl, active));
- }
- t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
- for (t2 = J.get$iterator$ax(new S.Tuple2(t3, t2, type$.Tuple2_of_List_Uri_and_List_Uri).item2); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.$indexSet(0, t3, this._nodeFor$5$forImport(t3, baseImporter, baseUrl, active, true));
- }
- return new S.Tuple2(t5, t1, type$.Tuple2_of_Map_Uri_StylesheetNode_and_Map_Uri_StylesheetNode);
- },
- reload$1: function(canonicalUrl) {
- var stylesheet, upstream, _this = this,
- node = _this._nodes.$index(0, canonicalUrl);
- if (node == null)
- throw H.wrapException(P.StateError$(H.S(canonicalUrl) + " is not in the dependency graph."));
- _this._transitiveModificationTimes.clear$0(0);
- _this.importCache.clearImport$1(canonicalUrl);
- stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph_reload_closure(_this, node, canonicalUrl));
- if (stylesheet == null)
- return false;
- node._stylesheet_graph$_stylesheet = stylesheet;
- upstream = _this._upstreamNodes$3(stylesheet, node.importer, canonicalUrl);
- node._replaceUpstream$2(upstream.item1, upstream.item2);
- return true;
- },
- _recanonicalizeImports$2: function(importer, canonicalUrl) {
- var t2, t3, t4, t5, newUpstream, newUpstreamImports, _this = this,
- t1 = type$.StylesheetNode,
- changed = P.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t2 = type$.UnmodifiableMapView_Uri_StylesheetNode, t3 = _this._nodes.get$values(), t3 = t3.get$iterator(t3), t4 = type$.Uri; t3.moveNext$0();) {
- t5 = t3.get$current(t3);
- newUpstream = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, false);
- newUpstreamImports = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, true);
- if (newUpstream.get$isNotEmpty(newUpstream) || newUpstreamImports.get$isNotEmpty(newUpstreamImports)) {
- changed.add$1(0, t5);
- 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));
- }
- }
- if (changed._collection$_length !== 0)
- _this._transitiveModificationTimes.clear$0(0);
- return changed;
- },
- _recanonicalizeImportsForNode$4$forImport: function(node, importer, canonicalUrl, forImport) {
- var t1 = type$.UnmodifiableMapView_Uri_StylesheetNode,
- map = forImport ? new P.UnmodifiableMapView(node._upstreamImports, t1) : new P.UnmodifiableMapView(node._upstream, t1),
- newMap = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.StylesheetNode);
- map._collection$_map.forEach$1(0, new M.StylesheetGraph__recanonicalizeImportsForNode_closure(this, importer, canonicalUrl, node, forImport, newMap));
- return newMap;
- },
- _nodeFor$5$forImport: function(url, baseImporter, baseUrl, active, forImport) {
- var importer, canonicalUrl, resolvedUrl, t1, stylesheet, node, _this = this,
- tuple = _this._ignoreErrors$1(new M.StylesheetGraph__nodeFor_closure(_this, url, baseImporter, baseUrl, forImport));
- if (tuple == null)
- return null;
- importer = tuple.item1;
- canonicalUrl = tuple.item2;
- resolvedUrl = tuple.item3;
- t1 = _this._nodes;
- if (t1.containsKey$1(canonicalUrl))
- return t1.$index(0, canonicalUrl);
- if (active.contains$1(0, canonicalUrl))
- return null;
- stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph__nodeFor_closure0(_this, importer, canonicalUrl, resolvedUrl));
- if (stylesheet == null)
- return null;
- active.add$1(0, canonicalUrl);
- node = M.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl));
- active.remove$1(0, canonicalUrl);
- t1.$indexSet(0, canonicalUrl, node);
- return node;
- },
- _nodeFor$4: function(url, baseImporter, baseUrl, active) {
- return this._nodeFor$5$forImport(url, baseImporter, baseUrl, active, false);
- },
- _ignoreErrors$1$1: function(callback) {
- var t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- H.unwrapException(exception);
- return null;
- }
- },
- _ignoreErrors$1: function(callback) {
- return this._ignoreErrors$1$1(callback, type$.dynamic);
- }
- };
- M.StylesheetGraph_modifiedSince_transitiveModificationTime.prototype = {
- call$1: function(node) {
- return this.$this._transitiveModificationTimes.putIfAbsent$2(node.canonicalUrl, new M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure(node, this));
- }
- };
- M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure.prototype = {
- call$0: function() {
- var t2, t3, upstreamTime,
- t1 = this.node,
- latest = t1.importer.modificationTime$1(t1.canonicalUrl);
- 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();) {
- t3 = t1._currentIterator;
- t3 = t3.get$current(t3);
- upstreamTime = t3 == null ? new P.DateTime(Date.now(), false) : t2.call$1(t3);
- if (upstreamTime._core$_value > latest._core$_value)
- latest = upstreamTime;
- }
- return latest;
- },
- $signature: 92
- };
- M.StylesheetGraph__add_closure.prototype = {
- call$0: function() {
- var _this = this;
- return _this.$this.importCache.canonicalize$3$baseImporter$baseUrl(_this.url, _this.baseImporter, _this.baseUrl);
- },
- $signature: 56
- };
- M.StylesheetGraph_addCanonical_closure.prototype = {
- call$0: function() {
- var _this = this;
- return _this.$this.importCache.importCanonical$3(_this.importer, _this.canonicalUrl, _this.originalUrl);
- },
- $signature: 37
- };
- M.StylesheetGraph_reload_closure.prototype = {
- call$0: function() {
- return this.$this.importCache.importCanonical$2(this.node.importer, this.canonicalUrl);
- },
- $signature: 37
- };
- M.StylesheetGraph__recanonicalizeImportsForNode_closure.prototype = {
- call$2: function(url, upstream) {
- var result, t1, t2, t3, t4, exception, newCanonicalUrl, _this = this;
- if (!_this.importer.couldCanonicalize$2(url, _this.canonicalUrl))
- return;
- t1 = _this.$this;
- t2 = t1.importCache;
- t3 = t2._canonicalizeCache;
- t4 = type$.Tuple2_Uri_bool;
- t3.remove$1(0, new S.Tuple2(url, false, t4));
- t3.remove$1(0, new S.Tuple2(url, true, t4));
- result = null;
- try {
- t3 = _this.node;
- result = t2.canonicalize$4$baseImporter$baseUrl$forImport(url, t3.importer, t3.canonicalUrl, _this.forImport);
- } catch (exception) {
- H.unwrapException(exception);
- }
- t2 = result;
- newCanonicalUrl = t2 == null ? null : t2.item2;
- if (J.$eq$(newCanonicalUrl, upstream == null ? null : upstream.canonicalUrl))
- return;
- t1 = result == null ? null : t1._nodes.$index(0, result.item2);
- _this.newMap.$indexSet(0, url, t1);
- }
- };
- M.StylesheetGraph__nodeFor_closure.prototype = {
- call$0: function() {
- var _this = this;
- return _this.$this.importCache.canonicalize$4$baseImporter$baseUrl$forImport(_this.url, _this.baseImporter, _this.baseUrl, _this.forImport);
- },
- $signature: 56
- };
- M.StylesheetGraph__nodeFor_closure0.prototype = {
- call$0: function() {
- var _this = this;
- return _this.$this.importCache.importCanonical$3(_this.importer, _this.canonicalUrl, _this.resolvedUrl);
- },
- $signature: 37
- };
- M.StylesheetNode.prototype = {
- StylesheetNode$_$4: function(_stylesheet, importer, canonicalUrl, allUpstream) {
- var t1, t2;
- 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();) {
- t2 = t1._currentIterator;
- t2 = t2.get$current(t2);
- if (t2 != null)
- t2._downstream.add$1(0, this);
- }
- },
- _replaceUpstream$2: function(newUpstream, newUpstreamImports) {
- var t3, _this = this,
- t1 = type$.StylesheetNode,
- t2 = P.LinkedHashSet_LinkedHashSet(t1);
- for (t3 = _this._upstream.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
- t2.add$1(0, t3.get$current(t3));
- for (t3 = _this._upstreamImports.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
- t2.add$1(0, t3.get$current(t3));
- t2.remove$1(0, null);
- t1 = P.LinkedHashSet_LinkedHashSet(t1);
- for (t3 = newUpstream.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
- t1.add$1(0, t3.get$current(t3));
- for (t3 = newUpstreamImports.get$values(), t3 = t3.get$iterator(t3); t3.moveNext$0();)
- t1.add$1(0, t3.get$current(t3));
- t1.remove$1(0, null);
- for (t3 = t2.difference$1(t1), t3 = P._LinkedHashSetIterator$(t3, t3._collection$_modifications); t3.moveNext$0();)
- t3._collection$_current._downstream.remove$1(0, _this);
- for (t1 = t1.difference$1(t2), t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();)
- t1._collection$_current._downstream.add$1(0, _this);
- _this._upstream = newUpstream;
- _this._upstreamImports = newUpstreamImports;
- },
- _stylesheet_graph$_remove$0: function() {
- var t2, t3, t4, _i, url, _this = this,
- t1 = P.LinkedHashSet_LinkedHashSet(type$.StylesheetNode);
- for (t2 = _this._upstream.get$values(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.add$1(0, t2.get$current(t2));
- for (t2 = _this._upstreamImports.get$values(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.add$1(0, t2.get$current(t2));
- t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications);
- for (; t1.moveNext$0();) {
- t2 = t1._collection$_current;
- if (t2 == null)
- continue;
- t2._downstream.remove$1(0, _this);
- }
- for (t1 = _this._downstream, t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- 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) {
- url = t3[_i];
- if (J.$eq$(t2._upstream.$index(0, url), _this)) {
- t2._upstream.$indexSet(0, url, null);
- break;
- }
- }
- 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) {
- url = t3[_i];
- if (J.$eq$(t2._upstreamImports.$index(0, url), _this)) {
- t2._upstreamImports.$indexSet(0, url, null);
- break;
- }
- }
- }
- },
- toString$0: function(_) {
- var t1 = this._stylesheet_graph$_stylesheet.span.file;
- return $.$get$context().prettyUri$1(t1.url);
- }
- };
- M.Syntax.prototype = {
- toString$0: function(_) {
- return this._syntax$_name;
- }
- };
- G.FixedLengthListBuilder.prototype = {
- add$1: function(_, element) {
- var t1, _this = this;
- _this._checkUnbuilt$0();
- t1 = _this._fixed_length_list_builder$_index;
- _this._list[t1] = element;
- _this._fixed_length_list_builder$_index = t1 + 1;
- },
- addAll$1: function(_, elements) {
- var _this = this;
- _this._checkUnbuilt$0();
- C.JSArray_methods.setAll$2(_this._list, _this._fixed_length_list_builder$_index, elements);
- _this._fixed_length_list_builder$_index = _this._fixed_length_list_builder$_index + elements.length;
- },
- addRange$3: function(elements, start, end) {
- var $length, t1, _this = this;
- _this._checkUnbuilt$0();
- $length = (end == null ? J.get$length$asx(elements._collection$_source) : end) - start;
- t1 = _this._fixed_length_list_builder$_index;
- C.JSArray_methods.setRange$4(_this._list, t1, t1 + $length, elements, start);
- _this._fixed_length_list_builder$_index += $length;
- },
- addRange$2: function(elements, start) {
- return this.addRange$3(elements, start, null);
- },
- build$0: function() {
- this._checkUnbuilt$0();
- this._fixed_length_list_builder$_index = -1;
- return this._list;
- },
- _checkUnbuilt$0: function() {
- if (this._fixed_length_list_builder$_index === -1)
- throw H.wrapException(P.StateError$("build() has already been called."));
- }
- };
- K.LimitedMapView.prototype = {
- get$keys: function() {
- return this._limited_map_view$_keys;
- },
- get$length: function(_) {
- return this._limited_map_view$_keys._collection$_length;
- },
- get$isEmpty: function(_) {
- return this._limited_map_view$_keys._collection$_length === 0;
- },
- get$isNotEmpty: function(_) {
- return this._limited_map_view$_keys._collection$_length !== 0;
- },
- $index: function(_, key) {
- return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.$index(0, key) : null;
- },
- containsKey$1: function(key) {
- return this._limited_map_view$_keys.contains$1(0, key);
- },
- remove$1: function(_, key) {
- return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.remove$1(0, key) : null;
- }
- };
- Z.MergedMapView.prototype = {
- get$keys: function() {
- return this._mapsByKey.get$keys();
- },
- get$length: function(_) {
- var t1 = this._mapsByKey;
- return t1.get$length(t1);
- },
- get$isEmpty: function(_) {
- var t1 = this._mapsByKey;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty: function(_) {
- var t1 = this._mapsByKey;
- return t1.get$isNotEmpty(t1);
- },
- MergedMapView$1: function(maps, $K, $V) {
- var t1, t2, t3, _i, map, t4, t5;
- 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) {
- map = maps[_i];
- if (t3._is(map))
- for (t4 = map._mapsByKey.get$values(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- B.setAll(t2, t5.get$keys(), t5);
- }
- else
- B.setAll(t2, map.get$keys(), map);
- }
- },
- $index: function(_, key) {
- var child = this._mapsByKey.$index(0, key);
- return child == null ? null : child.$index(0, key);
- },
- $indexSet: function(_, key, value) {
- var child = this._mapsByKey.$index(0, key);
- if (child == null)
- throw H.wrapException(P.UnsupportedError$("New entries may not be added to MergedMapView."));
- child.$indexSet(0, key, value);
- },
- remove$1: function(_, key) {
- throw H.wrapException(P.UnsupportedError$("Entries may not be removed from MergedMapView."));
- },
- containsKey$1: function(key) {
- return this._mapsByKey.containsKey$1(key);
- }
- };
- U.MultiDirWatcher.prototype = {
- watch$1: function(_, directory) {
- var t1, t2, t3, t4, isParentOfExistingDir, _i, existingDir, t5, future, completer;
- 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) {
- existingDir = t2[_i];
- if (!isParentOfExistingDir) {
- t5 = $.$get$context();
- t5 = t5._isWithinOrEquals$2(existingDir, directory) === C._PathRelation_equal || t5._isWithinOrEquals$2(existingDir, directory) === C._PathRelation_within;
- } else
- t5 = false;
- if (t5) {
- t1 = new P._Future($.Zone__current, type$._Future_void);
- t1._asyncComplete$1(null);
- return t1;
- }
- if ($.$get$context()._isWithinOrEquals$2(directory, existingDir) === C._PathRelation_within) {
- t4.remove$1(0, t1.remove$1(0, existingDir));
- isParentOfExistingDir = true;
- }
- }
- future = B.watchDir(directory, this._poll);
- t2 = new Y._CompleterStream(type$._CompleterStream_WatchEvent);
- completer = new Y.StreamCompleter(t2, type$.StreamCompleter_WatchEvent);
- future.then$1$2$onError(completer.get$setSourceStream(), completer.get$setError(), type$.void);
- t1.$indexSet(0, directory, t2);
- t4.add$1(0, t2);
- return future;
- }
- };
- N.NoSourceMapBuffer0.prototype = {
- get$length: function(_) {
- return this._no_source_map_buffer0$_buffer._contents.length;
- },
- get$sourceFiles: function() {
- return C.Map_empty;
- },
- forSpan$1$2: function(span, callback) {
- return callback.call$0();
- },
- forSpan$2: function(span, callback) {
- return this.forSpan$1$2(span, callback, type$.dynamic);
- },
- write$1: function(_, object) {
- this._no_source_map_buffer0$_buffer._contents += H.S(object);
- return null;
- },
- writeCharCode$1: function(charCode) {
- this._no_source_map_buffer0$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
- return null;
- },
- toString$0: function(_) {
- var t1 = this._no_source_map_buffer0$_buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- buildSourceMap$1$prefix: function(prefix) {
- return H.throwExpression(P.UnsupportedError$("NoSourceMapBuffer.buildSourceMap() is not supported."));
- },
- $isStringBuffer: 1
- };
- F.PrefixedMapView.prototype = {
- get$keys: function() {
- return new F._PrefixedKeys(this);
- },
- get$length: function(_) {
- var t1 = this._prefixed_map_view$_map;
- return t1.get$length(t1);
- },
- get$isEmpty: function(_) {
- var t1 = this._prefixed_map_view$_map;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty: function(_) {
- var t1 = this._prefixed_map_view$_map;
- return t1.get$isNotEmpty(t1);
- },
- $index: function(_, key) {
- 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;
- },
- containsKey$1: function(key) {
- 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));
- }
- };
- F._PrefixedKeys.prototype = {
- get$length: function(_) {
- var t1 = this._view._prefixed_map_view$_map;
- return t1.get$length(t1);
- },
- get$iterator: function(_) {
- var t1 = J.map$1$1$ax(this._view._prefixed_map_view$_map.get$keys(), new F._PrefixedKeys_iterator_closure(this), type$.String);
- return t1.get$iterator(t1);
- },
- contains$1: function(_, key) {
- return this._view.containsKey$1(key);
- }
- };
- F._PrefixedKeys_iterator_closure.prototype = {
- call$1: function(key) {
- return this.$this._view._prefix + H.S(key);
- }
- };
- U.PublicMemberMapView.prototype = {
- get$keys: function() {
- return J.where$1$ax(this._inner.get$keys(), B.utils__isPublic$closure());
- },
- containsKey$1: function(key) {
- return typeof key == "string" && B.isPublic(key) && this._inner.containsKey$1(key);
- },
- $index: function(_, key) {
- if (typeof key == "string" && B.isPublic(key))
- return this._inner.$index(0, key);
- return null;
- }
- };
- D.SourceMapBuffer0.prototype = {
- get$sourceFiles: function() {
- var t1 = type$.SourceFile;
- return new P.UnmodifiableMapView(Y.mapMap(this._sourceFiles, new D.SourceMapBuffer_sourceFiles_closure(), null, type$.Uri, t1, type$.String, t1), type$.UnmodifiableMapView_String_SourceFile);
- },
- get$_source_map_buffer0$_targetLocation: function() {
- var t1 = this._source_map_buffer0$_buffer._contents,
- t2 = this._source_map_buffer0$_line;
- return V.SourceLocation$(t1.length, this._source_map_buffer0$_column, t2, null);
- },
- get$length: function(_) {
- return this._source_map_buffer0$_buffer._contents.length;
- },
- forSpan$1$2: function(span, callback) {
- var t1, _this = this,
- wasInSpan = _this._source_map_buffer0$_inSpan;
- _this._source_map_buffer0$_inSpan = true;
- _this._addEntry$2(Y.FileLocation$_(span.file, span._file$_start), _this.get$_source_map_buffer0$_targetLocation());
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._source_map_buffer0$_inSpan = wasInSpan;
- }
- },
- forSpan$2: function(span, callback) {
- return this.forSpan$1$2(span, callback, type$.dynamic);
- },
- _addEntry$2: function(source, target) {
- var entry, t2,
- t1 = this._source_map_buffer0$_entries;
- if (t1.length !== 0) {
- entry = C.JSArray_methods.get$last(t1);
- t2 = entry.source;
- if (t2.file.getLine$1(t2.offset) == source.file.getLine$1(source.offset) && entry.target.line === target.line)
- return;
- if (entry.target.offset === target.offset)
- return;
- }
- this._sourceFiles.putIfAbsent$2(source.file.url, new D.SourceMapBuffer__addEntry_closure(source));
- t1.push(new L.Entry(source, target, null));
- },
- write$1: function(_, object) {
- var t1, i,
- string = J.toString$0$(object);
- this._source_map_buffer0$_buffer._contents += H.S(string);
- for (t1 = string.length, i = 0; i < t1; ++i)
- if (C.JSString_methods._codeUnitAt$1(string, i) === 10)
- this._source_map_buffer0$_writeLine$0();
- else
- ++this._source_map_buffer0$_column;
- },
- writeCharCode$1: function(charCode) {
- this._source_map_buffer0$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
- if (charCode === 10)
- this._source_map_buffer0$_writeLine$0();
- else
- ++this._source_map_buffer0$_column;
- },
- _source_map_buffer0$_writeLine$0: function() {
- var _this = this,
- t1 = _this._source_map_buffer0$_entries;
- 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)
- t1.pop();
- ++_this._source_map_buffer0$_line;
- _this._source_map_buffer0$_column = 0;
- if (_this._source_map_buffer0$_inSpan)
- t1.push(new L.Entry(C.JSArray_methods.get$last(t1).source, _this.get$_source_map_buffer0$_targetLocation(), null));
- },
- toString$0: function(_) {
- var t1 = this._source_map_buffer0$_buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- buildSourceMap$1$prefix: function(prefix) {
- var i, t2, prefixColumn, _box_0 = {},
- t1 = prefix.length;
- if (t1 === 0)
- return T.SingleMapping_SingleMapping$fromEntries(this._source_map_buffer0$_entries);
- _box_0.prefixColumn = _box_0.prefixLines = 0;
- for (i = 0, t2 = 0; i < t1; ++i)
- if (C.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
- ++_box_0.prefixLines;
- _box_0.prefixColumn = 0;
- t2 = 0;
- } else {
- prefixColumn = t2 + 1;
- _box_0.prefixColumn = prefixColumn;
- t2 = prefixColumn;
- }
- t2 = this._source_map_buffer0$_entries;
- 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>")));
- },
- $isStringBuffer: 1
- };
- D.SourceMapBuffer_sourceFiles_closure.prototype = {
- call$2: function(url, _) {
- return J.toString$0$(url);
- },
- $signature: 70
- };
- D.SourceMapBuffer__addEntry_closure.prototype = {
- call$0: function() {
- return this.source.file;
- },
- $signature: 47
- };
- D.SourceMapBuffer_buildSourceMap_closure.prototype = {
- call$1: function(entry) {
- var t1 = entry.source,
- t2 = entry.target,
- t3 = t2.line,
- t4 = this._box_0,
- t5 = t4.prefixLines;
- t4 = t3 === 0 ? t4.prefixColumn : 0;
- return new L.Entry(t1, V.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
- }
- };
- R.UnprefixedMapView.prototype = {
- get$keys: function() {
- return new R._UnprefixedKeys(this);
- },
- $index: function(_, key) {
- return typeof key == "string" ? this._unprefixed_map_view$_map.$index(0, J.$add$ansx(this._unprefixed_map_view$_prefix, key)) : null;
- },
- containsKey$1: function(key) {
- return typeof key == "string" && this._unprefixed_map_view$_map.containsKey$1(J.$add$ansx(this._unprefixed_map_view$_prefix, key));
- },
- remove$1: function(_, key) {
- return typeof key == "string" ? this._unprefixed_map_view$_map.remove$1(0, J.$add$ansx(this._unprefixed_map_view$_prefix, key)) : null;
- }
- };
- R._UnprefixedKeys.prototype = {
- get$iterator: function(_) {
- 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$.String);
- return t1.get$iterator(t1);
- },
- contains$1: function(_, key) {
- return this._unprefixed_map_view$_view.containsKey$1(key);
- }
- };
- R._UnprefixedKeys_iterator_closure.prototype = {
- call$1: function(key) {
- return J.startsWith$1$s(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix);
- }
- };
- R._UnprefixedKeys_iterator_closure0.prototype = {
- call$1: function(key) {
- return J.substring$1$s(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix.length);
- }
- };
- B.indent_closure.prototype = {
- call$1: function(line) {
- return C.JSString_methods.$add(C.JSString_methods.$mul(" ", this.indentation), line);
- }
- };
- B.flattenVertically_closure.prototype = {
- call$1: function(inner) {
- return Q.QueueList_QueueList$from(inner, this.T);
- }
- };
- B.flattenVertically_closure0.prototype = {
- call$1: function(queue) {
- this.result.push(queue.removeFirst$0());
- return queue.get$length(queue) === 0;
- }
- };
- B.longestCommonSubsequence_closure.prototype = {
- call$2: function(element1, element2) {
- return J.$eq$(element1, element2) ? element1 : null;
- },
- $signature: function() {
- return this.T._eval$1("0(0,0)");
- }
- };
- B.longestCommonSubsequence_closure0.prototype = {
- call$1: function(_) {
- return P.List_List$filled(J.get$length$asx(this.list2) + 1, 0, type$.int);
- },
- $signature: 72
- };
- B.longestCommonSubsequence_closure1.prototype = {
- call$1: function(_) {
- var t1 = new Array(J.get$length$asx(this.list2));
- t1.fixed$length = Array;
- return H.setRuntimeTypeInfo(t1, this.T._eval$1("JSArray<0>"));
- },
- $signature: function() {
- return this.T._eval$1("List<0>(int)");
- }
- };
- B.longestCommonSubsequence_backtrack.prototype = {
- call$2: function(i, j) {
- var selection, t1, _this = this;
- if (i === -1 || j === -1)
- return H.setRuntimeTypeInfo([], _this.T._eval$1("JSArray<0>"));
- selection = J.$index$asx(_this.selections[i], j);
- if (selection != null) {
- t1 = _this.call$2(i - 1, j - 1);
- J.add$1$ax(t1, selection);
- return t1;
- }
- t1 = _this.lengths;
- 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);
- }
- };
- B.mapAddAll2_closure.prototype = {
- call$2: function(key, inner) {
- var t1 = this.destination;
- if (t1.containsKey$1(key))
- t1.$index(0, key).addAll$1(0, inner);
- else
- t1.$indexSet(0, key, inner);
- }
- };
- B.mapMapAsync_closure.prototype = {
- call$2: function(mapKey, _) {
- return this.$call$body$mapMapAsync_closure(mapKey, _, this.K2);
- },
- $call$body$mapMapAsync_closure: function(mapKey, _, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this;
- var $async$call$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = $async$self.K2._as(mapKey);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$2, $async$completer);
- },
- $signature: function() {
- return this.K2._eval$1("@<0>")._bind$1(this.K1)._bind$1(this.V1)._eval$1("Future<1>(2,3)");
- }
- };
- B.copyMapOfMap_closure.prototype = {
- call$2: function(_, innerMap) {
- return P.LinkedHashMap_LinkedHashMap$of(innerMap, this.K2, this.V);
- }
- };
- B.copyMapOfList_closure.prototype = {
- call$2: function(_, list) {
- return J.toList$0$ax(list);
- }
- };
- F.Value.prototype = {
- get$isTruthy: function() {
- return true;
- },
- get$separator: function() {
- return C.ListSeparator_undecided;
- },
- get$hasBrackets: function() {
- return false;
- },
- get$asList: function() {
- return H.setRuntimeTypeInfo([this], type$.JSArray_Value);
- },
- get$lengthAsList: function() {
- return 1;
- },
- get$isBlank: function() {
- return false;
- },
- get$isSpecialNumber: function() {
- return false;
- },
- get$isVar: function() {
- return false;
- },
- get$realNull: function() {
- return this;
- },
- sassIndexToListIndex$2: function(sassIndex, $name) {
- var _this = this,
- index = sassIndex.assertNumber$1($name).assertInt$1($name);
- if (index === 0)
- throw H.wrapException(_this._value$_exception$2("List index may not be 0.", $name));
- if (Math.abs(index) > _this.get$lengthAsList())
- throw H.wrapException(_this._value$_exception$2("Invalid index " + sassIndex.toString$0(0) + " for a list with " + _this.get$lengthAsList() + " elements.", $name));
- return index < 0 ? _this.get$lengthAsList() + index : index - 1;
- },
- assertColor$1: function($name) {
- return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a color.", $name));
- },
- assertFunction$1: function($name) {
- return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a function reference.", $name));
- },
- assertMap$1: function($name) {
- return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a map.", $name));
- },
- assertNumber$1: function($name) {
- return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a number.", $name));
- },
- assertNumber$0: function() {
- return this.assertNumber$1(null);
- },
- assertString$1: function($name) {
- return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a string.", $name));
- },
- assertSelector$2$allowParent$name: function(allowParent, $name) {
- var error, t1, exception,
- string = this._selectorString$1($name);
- try {
- t1 = D.SelectorList_SelectorList$parse(string, allowParent, true, null);
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException) {
- error = t1;
- throw H.wrapException(this._value$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
- } else
- throw exception;
- }
- },
- assertSelector$1$name: function($name) {
- return this.assertSelector$2$allowParent$name(false, $name);
- },
- assertSelector$0: function() {
- return this.assertSelector$2$allowParent$name(false, null);
- },
- assertSelector$1$allowParent: function(allowParent) {
- return this.assertSelector$2$allowParent$name(allowParent, null);
- },
- assertCompoundSelector$1$name: function($name) {
- var error, t1, exception,
- allowParent = false,
- string = this._selectorString$1($name);
- try {
- t1 = S.SpanScanner$(string, null);
- t1 = new T.SelectorParser(allowParent, true, t1, C.StderrLogger_false).parseCompoundSelector$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException) {
- error = t1;
- throw H.wrapException(this._value$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
- } else
- throw exception;
- }
- },
- _selectorString$1: function($name) {
- var string = this._selectorStringOrNull$0();
- if (string != null)
- return string;
- throw H.wrapException(this._value$_exception$2(this.toString$0(0) + " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.", $name));
- },
- _selectorString$0: function() {
- return this._selectorString$1(null);
- },
- _selectorStringOrNull$0: function() {
- var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
- if (_this instanceof D.SassString)
- return _this.text;
- if (!(_this instanceof D.SassList))
- return _null;
- t1 = _this._list$_contents;
- t2 = t1.length;
- if (t2 === 0)
- return _null;
- result = H.setRuntimeTypeInfo([], type$.JSArray_String);
- t3 = _this.separator === C.ListSeparator_comma;
- if (t3)
- for (_i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (complex instanceof D.SassString)
- result.push(complex.text);
- else if (complex instanceof D.SassList && complex.separator === C.ListSeparator_space) {
- string = complex._selectorString$0();
- result.push(string);
- } else
- return _null;
- }
- else
- for (_i = 0; _i < t2; ++_i) {
- compound = t1[_i];
- if (compound instanceof D.SassString)
- result.push(compound.text);
- else
- return _null;
- }
- return C.JSArray_methods.join$1(result, t3 ? ", " : " ");
- },
- changeListContents$2$separator: function(contents, separator) {
- var t1 = separator == null ? this.get$separator() : separator,
- t2 = this.get$hasBrackets();
- return D.SassList$(contents, t1, t2);
- },
- changeListContents$1: function(contents) {
- return this.changeListContents$2$separator(contents, null);
- },
- greaterThan$1: function(other) {
- return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
- },
- greaterThanOrEquals$1: function(other) {
- return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
- },
- lessThan$1: function(other) {
- return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
- },
- lessThanOrEquals$1: function(other) {
- return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
- },
- times$1: function(other) {
- return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " * " + H.S(other) + '".'));
- },
- modulo$1: function(other) {
- return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
- },
- plus$1: function(other) {
- var t1;
- if (other instanceof D.SassString)
- return new D.SassString(C.JSString_methods.$add(N.serializeValue0(this, false, true), other.text), other.hasQuotes);
- else {
- t1 = N.serializeValue0(this, false, true);
- other.toString;
- return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
- }
- },
- minus$1: function(other) {
- var t1 = N.serializeValue0(this, false, true) + "-";
- other.toString;
- return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
- },
- dividedBy$1: function(other) {
- var t1 = N.serializeValue0(this, false, true) + "/";
- other.toString;
- return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
- },
- unaryPlus$0: function() {
- return new D.SassString("+" + N.serializeValue0(this, false, true), false);
- },
- unaryMinus$0: function() {
- return new D.SassString("-" + N.serializeValue0(this, false, true), false);
- },
- unaryNot$0: function() {
- return C.SassBoolean_false0;
- },
- withoutSlash$0: function() {
- return this;
- },
- toString$0: function(_) {
- return N.serializeValue0(this, true, true);
- },
- _value$_exception$2: function(message, $name) {
- return new E.SassScriptException($name == null ? message : "$" + $name + ": " + message);
- }
- };
- D.SassArgumentList.prototype = {};
- Z.SassBoolean.prototype = {
- get$isTruthy: function() {
- return this.value;
- },
- accept$1$1: function(visitor) {
- return visitor._serialize$_buffer.write$1(0, String(this.value));
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unaryNot$0: function() {
- return this.value ? C.SassBoolean_false0 : C.SassBoolean_true0;
- }
- };
- K.SassColor.prototype = {
- get$red: function() {
- if (this._red == null)
- this._hslToRgb$0();
- return this._red;
- },
- get$green: function() {
- if (this._green == null)
- this._hslToRgb$0();
- return this._green;
- },
- get$blue: function() {
- if (this._blue == null)
- this._hslToRgb$0();
- return this._blue;
- },
- get$hue: function() {
- if (this._hue == null)
- this._rgbToHsl$0();
- return this._hue;
- },
- get$saturation: function() {
- if (this._saturation == null)
- this._rgbToHsl$0();
- return this._saturation;
- },
- get$lightness: function() {
- if (this._lightness == null)
- this._rgbToHsl$0();
- return this._lightness;
- },
- get$original: function() {
- var t1 = this.originalSpan;
- return t1 == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
- },
- accept$1$1: function(visitor) {
- return visitor.visitColor$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertColor$1: function($name) {
- return this;
- },
- changeRgb$4$alpha$blue$green$red: function(alpha, blue, green, red) {
- var _this = this,
- t1 = red == null ? _this.get$red() : red,
- t2 = green == null ? _this.get$green() : green,
- t3 = blue == null ? _this.get$blue() : blue;
- return K.SassColor$rgb(t1, t2, t3, alpha == null ? _this.alpha : alpha, null);
- },
- changeRgb$3$blue$green$red: function(blue, green, red) {
- return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
- },
- changeHsl$4$alpha$hue$lightness$saturation: function(alpha, hue, lightness, saturation) {
- var _this = this,
- t1 = hue == null ? _this.get$hue() : hue,
- t2 = saturation == null ? _this.get$saturation() : saturation,
- t3 = lightness == null ? _this.get$lightness() : lightness;
- return K.SassColor$hsl(t1, t2, t3, alpha == null ? _this.alpha : alpha);
- },
- changeHsl$3$alpha$lightness$saturation: function(alpha, lightness, saturation) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(alpha, null, lightness, saturation);
- },
- changeHsl$1$saturation: function(saturation) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
- },
- changeHsl$1$lightness: function(lightness) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
- },
- changeHsl$1$hue: function(hue) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
- },
- changeAlpha$1: function(alpha) {
- var _this = this;
- return new K.SassColor(_this._red, _this._green, _this._blue, _this._hue, _this._saturation, _this._lightness, T.fuzzyAssertRange(alpha, 0, 1, "alpha"), null);
- },
- plus$1: function(other) {
- if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
- return this.super$Value$plus(other);
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + H.S(other) + '".'));
- },
- minus$1: function(other) {
- if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
- return this.super$Value$minus(other);
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + H.S(other) + '".'));
- },
- dividedBy$1: function(other) {
- if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
- return this.super$Value$dividedBy(other);
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " / " + H.S(other) + '".'));
- },
- modulo$1: function(other) {
- return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- 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;
- },
- get$hashCode: function(_) {
- var _this = this;
- 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);
- },
- _rgbToHsl$0: function() {
- var t2, t3, _this = this,
- scaledRed = _this.get$red() / 255,
- scaledGreen = _this.get$green() / 255,
- scaledBlue = _this.get$blue() / 255,
- max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
- min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
- delta = max - min,
- t1 = max === min;
- if (t1)
- _this._hue = 0;
- else if (max === scaledRed)
- _this._hue = C.JSDouble_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
- else if (max === scaledGreen)
- _this._hue = C.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
- else if (max === scaledBlue)
- _this._hue = C.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
- t2 = max + min;
- t3 = 50 * t2;
- _this._lightness = t3;
- if (t1)
- _this._saturation = 0;
- else {
- t1 = 100 * delta;
- if (t3 < 50)
- _this._saturation = t1 / t2;
- else
- _this._saturation = t1 / (2 - max - min);
- }
- },
- _hslToRgb$0: function() {
- var _this = this,
- scaledHue = _this.get$hue() / 360,
- scaledSaturation = _this.get$saturation() / 100,
- scaledLightness = _this.get$lightness() / 100,
- m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
- m1 = scaledLightness * 2 - m2;
- _this._red = _this._hueToRgb$3(m1, m2, scaledHue + 0.3333333333333333);
- _this._green = _this._hueToRgb$3(m1, m2, scaledHue);
- _this._blue = _this._hueToRgb$3(m1, m2, scaledHue - 0.3333333333333333);
- },
- _hueToRgb$3: function(m1, m2, hue) {
- var result;
- if (hue < 0)
- ++hue;
- if (hue > 1)
- --hue;
- if (hue < 0.16666666666666666)
- result = m1 + (m2 - m1) * hue * 6;
- else if (hue < 0.5)
- result = m2;
- else
- result = hue < 0.6666666666666666 ? m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6 : m1;
- return T.fuzzyRound(result * 255);
- }
- };
- F.SassFunction.prototype = {
- accept$1$1: function(visitor) {
- var t1;
- if (!visitor._serialize$_inspect)
- H.throwExpression(E.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value."));
- t1 = visitor._serialize$_buffer;
- t1.write$1(0, "get-function(");
- visitor._visitQuotedString$1(this.callable.get$name());
- t1.writeCharCode$1(41);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertFunction$1: function($name) {
- return this;
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof F.SassFunction && J.$eq$(this.callable, other.callable);
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.callable);
- }
- };
- D.SassList.prototype = {
- get$isBlank: function() {
- return C.JSArray_methods.every$1(this._list$_contents, new D.SassList_isBlank_closure());
- },
- get$asList: function() {
- return this._list$_contents;
- },
- get$lengthAsList: function() {
- return this._list$_contents.length;
- },
- SassList$3$brackets: function(contents, separator, brackets) {
- if (this.separator === C.ListSeparator_undecided && this._list$_contents.length > 1)
- throw H.wrapException(P.ArgumentError$("A list with more than one element must have an explicit separator."));
- },
- accept$1$1: function(visitor) {
- return visitor.visitList$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMap$1: function($name) {
- return this._list$_contents.length === 0 ? C.SassMap_Map_empty : this.super$Value$assertMap($name);
- },
- $eq: function(_, other) {
- var t1, _this = this;
- if (other == null)
- return false;
- if (!(other instanceof D.SassList && other.separator === _this.separator && other.hasBrackets === _this.hasBrackets && C.C_ListEquality.equals$2(other._list$_contents, _this._list$_contents)))
- t1 = _this._list$_contents.length === 0 && other instanceof A.SassMap && other.get$asList().length === 0;
- else
- t1 = true;
- return t1;
- },
- get$hashCode: function(_) {
- return C.C_ListEquality.hash$1(this._list$_contents);
- },
- get$separator: function() {
- return this.separator;
- },
- get$hasBrackets: function() {
- return this.hasBrackets;
- }
- };
- D.SassList_isBlank_closure.prototype = {
- call$1: function(element) {
- return element.get$isBlank();
- }
- };
- D.ListSeparator.prototype = {
- toString$0: function(_) {
- return this._list$_name;
- }
- };
- A.SassMap.prototype = {
- get$separator: function() {
- var t1 = this.contents;
- return t1.get$isEmpty(t1) ? C.ListSeparator_undecided : C.ListSeparator_comma;
- },
- get$asList: function() {
- var result = H.setRuntimeTypeInfo([], type$.JSArray_Value);
- this.contents.forEach$1(0, new A.SassMap_asList_closure(result));
- return result;
- },
- get$lengthAsList: function() {
- var t1 = this.contents;
- return t1.get$length(t1);
- },
- accept$1$1: function(visitor) {
- return visitor.visitMap$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMap$1: function($name) {
- return this;
- },
- $eq: function(_, other) {
- var t1;
- if (other == null)
- return false;
- if (!(other instanceof A.SassMap && C.C_MapEquality.equals$2(other.contents, this.contents))) {
- t1 = this.contents;
- t1 = t1.get$isEmpty(t1) && other instanceof D.SassList && other._list$_contents.length === 0;
- } else
- t1 = true;
- return t1;
- },
- get$hashCode: function(_) {
- var t1 = this.contents;
- return t1.get$isEmpty(t1) ? C.C_ListEquality.hash$1(C.List_empty5) : C.C_MapEquality.hash$1(t1);
- }
- };
- A.SassMap_asList_closure.prototype = {
- call$2: function(key, value) {
- this.result.push(D.SassList$(H.setRuntimeTypeInfo([key, value], type$.JSArray_Value), C.ListSeparator_space, false));
- }
- };
- O.SassNull.prototype = {
- get$isTruthy: function() {
- return false;
- },
- get$isBlank: function() {
- return true;
- },
- get$realNull: function() {
- return null;
- },
- accept$1$1: function(visitor) {
- if (visitor._serialize$_inspect)
- visitor._serialize$_buffer.write$1(0, "null");
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unaryNot$0: function() {
- return C.SassBoolean_true0;
- }
- };
- T.SassNumber.prototype = {
- get$unitString: function() {
- var _this = this,
- t1 = _this.numeratorUnits;
- return t1.length !== 0 || _this.denominatorUnits.length !== 0 ? _this._unitString$2(t1, _this.denominatorUnits) : "";
- },
- accept$1$1: function(visitor) {
- return visitor.visitNumber$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- withoutSlash$0: function() {
- var _this = this;
- if (_this.asSlash == null)
- return _this;
- return new T.SassNumber(_this.value, _this.numeratorUnits, _this.denominatorUnits, null);
- },
- withSlash$2: function(numerator, denominator) {
- return new T.SassNumber(this.value, this.numeratorUnits, this.denominatorUnits, new S.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber));
- },
- assertNumber$1: function($name) {
- return this;
- },
- assertNumber$0: function() {
- return this.assertNumber$1(null);
- },
- assertInt$1: function($name) {
- var t1 = this.value,
- integer = T.fuzzyIsInt(t1) ? J.round$0$n(t1) : null;
- if (integer != null)
- return integer;
- throw H.wrapException(this._number$_exception$2(this.toString$0(0) + " is not an int.", $name));
- },
- assertInt$0: function() {
- return this.assertInt$1(null);
- },
- valueInRange$3: function(min, max, $name) {
- var _this = this,
- result = T.fuzzyCheckRange(_this.value, min, max);
- if (result != null)
- return result;
- 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));
- },
- hasUnit$1: function(unit) {
- var t1 = this.numeratorUnits;
- return t1.length === 1 && this.denominatorUnits.length === 0 && J.$eq$(C.JSArray_methods.get$first(t1), unit);
- },
- assertUnit$2: function(unit, $name) {
- if (this.hasUnit$1(unit))
- return;
- throw H.wrapException(this._number$_exception$2("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
- },
- assertNoUnits$1: function($name) {
- var _this = this;
- if (!(_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0))
- return;
- throw H.wrapException(_this._number$_exception$2("Expected " + _this.toString$0(0) + " to have no units.", $name));
- },
- valueInUnits$2: function(newNumerators, newDenominators) {
- var t1, oldNumerators, t2, _i, oldDenominators, t3, _this = this, _box_0 = {};
- if (!(newNumerators.length === 0 && newDenominators.length === 0)) {
- t1 = _this.numeratorUnits;
- if (!(t1.length === 0 && _this.denominatorUnits.length === 0))
- t1 = C.C_ListEquality.equals$2(t1, newNumerators) && C.C_ListEquality.equals$2(_this.denominatorUnits, newDenominators);
- else
- t1 = true;
- } else
- t1 = true;
- if (t1)
- return _this.value;
- _box_0.value = _this.value;
- t1 = _this.numeratorUnits;
- oldNumerators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
- for (t2 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t2 || (0, H.throwConcurrentModificationError)(newNumerators), ++_i)
- B.removeFirstWhere(oldNumerators, new T.SassNumber_valueInUnits_closure(_box_0, _this, newNumerators[_i]), new T.SassNumber_valueInUnits_closure0(_this, newNumerators, newDenominators));
- t2 = _this.denominatorUnits;
- oldDenominators = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
- for (t3 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t3 || (0, H.throwConcurrentModificationError)(newDenominators), ++_i)
- B.removeFirstWhere(oldDenominators, new T.SassNumber_valueInUnits_closure1(_box_0, _this, newDenominators[_i]), new T.SassNumber_valueInUnits_closure2(_this, newNumerators, newDenominators));
- if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
- throw H.wrapException(E.SassScriptException$("Incompatible units " + _this._unitString$2(t1, t2) + " and " + _this._unitString$2(newNumerators, newDenominators) + "."));
- return _box_0.value;
- },
- isComparableTo$1: function(other) {
- var t1, exception;
- if (this.numeratorUnits.length !== 0 || this.denominatorUnits.length !== 0)
- t1 = !(other.numeratorUnits.length !== 0 || other.denominatorUnits.length !== 0);
- else
- t1 = true;
- if (t1)
- return true;
- try {
- this.greaterThan$1(other);
- return true;
- } catch (exception) {
- if (H.unwrapException(exception) instanceof E.SassScriptException)
- return false;
- else
- throw exception;
- }
- },
- greaterThan$1: function(other) {
- if (other instanceof T.SassNumber)
- return this._coerceUnits$2(other, T.number0__fuzzyGreaterThan$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
- },
- greaterThanOrEquals$1: function(other) {
- if (other instanceof T.SassNumber)
- return this._coerceUnits$2(other, T.number0__fuzzyGreaterThanOrEquals$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
- },
- lessThan$1: function(other) {
- if (other instanceof T.SassNumber)
- return this._coerceUnits$2(other, T.number0__fuzzyLessThan$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
- },
- lessThanOrEquals$1: function(other) {
- if (other instanceof T.SassNumber)
- return this._coerceUnits$2(other, T.number0__fuzzyLessThanOrEquals$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
- },
- modulo$1: function(other) {
- if (other instanceof T.SassNumber)
- return this._coerceNumber$2(other, new T.SassNumber_modulo_closure());
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
- },
- plus$1: function(other) {
- if (other instanceof T.SassNumber)
- return this._coerceNumber$2(other, new T.SassNumber_plus_closure());
- if (!(other instanceof K.SassColor))
- return this.super$Value$plus(other);
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".'));
- },
- minus$1: function(other) {
- if (other instanceof T.SassNumber)
- return this._coerceNumber$2(other, new T.SassNumber_minus_closure());
- if (!(other instanceof K.SassColor))
- return this.super$Value$minus(other);
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".'));
- },
- times$1: function(other) {
- var _this = this;
- if (other instanceof T.SassNumber)
- return _this._multiplyUnits$5(_this.value * other.value, _this.numeratorUnits, _this.denominatorUnits, other.numeratorUnits, other.denominatorUnits);
- throw H.wrapException(E.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " * " + H.S(other) + '".'));
- },
- dividedBy$1: function(other) {
- var _this = this;
- if (other instanceof T.SassNumber)
- return _this._multiplyUnits$5(_this.value / other.value, _this.numeratorUnits, _this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
- return _this.super$Value$dividedBy(other);
- },
- unaryPlus$0: function() {
- return this;
- },
- unaryMinus$0: function() {
- return T.SassNumber$withUnits(-this.value, this.denominatorUnits, this.numeratorUnits);
- },
- _coerceNumber$2: function(other, operation) {
- var _this = this,
- result = _this._coerceUnits$2(other, operation),
- t1 = _this.numeratorUnits,
- t2 = t1.length === 0;
- t1 = !t2 || _this.denominatorUnits.length !== 0 ? t1 : other.numeratorUnits;
- return T.SassNumber$withUnits(result, !t2 || _this.denominatorUnits.length !== 0 ? _this.denominatorUnits : other.denominatorUnits, t1);
- },
- _coerceUnits$1$2: function(other, operation) {
- var num1, num2, _this = this,
- t1 = _this.numeratorUnits;
- if (t1.length !== 0 || _this.denominatorUnits.length !== 0) {
- num1 = _this.value;
- num2 = other.valueInUnits$2(t1, _this.denominatorUnits);
- } else {
- num1 = _this.valueInUnits$2(other.numeratorUnits, other.denominatorUnits);
- num2 = other.value;
- }
- return operation.call$2(num1, num2);
- },
- _coerceUnits$2: function(other, operation) {
- return this._coerceUnits$1$2(other, operation, type$.dynamic);
- },
- _multiplyUnits$5: function(value, numerators1, denominators1, numerators2, denominators2) {
- var t1, newNumerators, mutableDenominators2, _i, numerator, mutableDenominators1, _this = this, _box_0 = {};
- _box_0.value = value;
- t1 = numerators1.length;
- if (t1 === 0) {
- if (denominators2.length === 0 && !_this._areAnyConvertible$2(denominators1, numerators2))
- return T.SassNumber$withUnits(value, denominators1, numerators2);
- else if (denominators1.length === 0)
- return T.SassNumber$withUnits(value, denominators2, numerators2);
- } else if (numerators2.length === 0)
- if (denominators2.length === 0)
- return T.SassNumber$withUnits(value, denominators2, numerators1);
- else if (denominators1.length === 0 && !_this._areAnyConvertible$2(numerators1, denominators2))
- return T.SassNumber$withUnits(value, denominators2, numerators1);
- newNumerators = H.setRuntimeTypeInfo([], type$.JSArray_String);
- mutableDenominators2 = H.setRuntimeTypeInfo(denominators2.slice(0), H._arrayInstanceType(denominators2)._eval$1("JSArray<1>"));
- for (_i = 0; _i < t1; ++_i) {
- numerator = numerators1[_i];
- B.removeFirstWhere(mutableDenominators2, new T.SassNumber__multiplyUnits_closure(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure0(newNumerators, numerator));
- }
- mutableDenominators1 = H.setRuntimeTypeInfo(denominators1.slice(0), H._arrayInstanceType(denominators1)._eval$1("JSArray<1>"));
- for (t1 = numerators2.length, _i = 0; _i < t1; ++_i) {
- numerator = numerators2[_i];
- B.removeFirstWhere(mutableDenominators1, new T.SassNumber__multiplyUnits_closure1(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure2(newNumerators, numerator));
- }
- t1 = _box_0.value;
- C.JSArray_methods.addAll$1(mutableDenominators1, mutableDenominators2);
- return T.SassNumber$withUnits(t1, mutableDenominators1, newNumerators);
- },
- _areAnyConvertible$2: function(units1, units2) {
- return C.JSArray_methods.any$1(units1, new T.SassNumber__areAnyConvertible_closure(this, units2));
- },
- _conversionFactor$2: function(unit1, unit2) {
- var innerMap;
- if (unit1 == unit2)
- return 1;
- innerMap = $.$get$_conversions().$index(0, unit1);
- if (innerMap == null)
- return null;
- return innerMap.$index(0, unit2);
- },
- _unitString$2: function(numerators, denominators) {
- var t1;
- if (numerators.length === 0) {
- t1 = denominators.length;
- if (t1 === 0)
- return "no units";
- if (t1 === 1)
- return J.$add$ansx(C.JSArray_methods.get$single(denominators), "^-1");
- return "(" + C.JSArray_methods.join$1(denominators, "*") + ")^-1";
- }
- if (denominators.length === 0)
- return C.JSArray_methods.join$1(numerators, "*");
- return C.JSArray_methods.join$1(numerators, "*") + "/" + C.JSArray_methods.join$1(denominators, "*");
- },
- $eq: function(_, other) {
- var t1, t2, t3, exception, _this = this;
- if (other == null)
- return false;
- if (other instanceof T.SassNumber) {
- t1 = _this.numeratorUnits.length === 0;
- t2 = !t1 || _this.denominatorUnits.length !== 0;
- t3 = other;
- if (t2 !== (t3.numeratorUnits.length !== 0 || t3.denominatorUnits.length !== 0))
- return false;
- if (!(!t1 || _this.denominatorUnits.length !== 0))
- return Math.abs(_this.value - other.value) < $.$get$epsilon();
- try {
- t1 = _this._coerceUnits$2(other, T.number0__fuzzyEquals$closure());
- return t1;
- } catch (exception) {
- if (H.unwrapException(exception) instanceof E.SassScriptException)
- return false;
- else
- throw exception;
- }
- } else
- return false;
- },
- get$hashCode: function(_) {
- var _this = this;
- 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()));
- },
- _canonicalMultiplier$1: function(units) {
- return C.JSArray_methods.fold$2(units, 1, new T.SassNumber__canonicalMultiplier_closure());
- },
- _number$_exception$2: function(message, $name) {
- return new E.SassScriptException($name == null ? message : "$" + $name + ": " + message);
- }
- };
- T.SassNumber_valueInUnits_closure.prototype = {
- call$1: function(oldNumerator) {
- var t1,
- factor = this.$this._conversionFactor$2(this.newNumerator, oldNumerator);
- if (factor == null)
- return false;
- t1 = this._box_0;
- t1.value = t1.value * factor;
- return true;
- }
- };
- T.SassNumber_valueInUnits_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this;
- throw H.wrapException(E.SassScriptException$("Incompatible units " + t1._unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._unitString$2(this.newNumerators, this.newDenominators) + "."));
- },
- $signature: 0
- };
- T.SassNumber_valueInUnits_closure1.prototype = {
- call$1: function(oldDenominator) {
- var t1,
- factor = this.$this._conversionFactor$2(this.newDenominator, oldDenominator);
- if (factor == null)
- return false;
- t1 = this._box_0;
- t1.value = t1.value / factor;
- return true;
- }
- };
- T.SassNumber_valueInUnits_closure2.prototype = {
- call$0: function() {
- var t1 = this.$this;
- throw H.wrapException(E.SassScriptException$("Incompatible units " + t1._unitString$2(t1.numeratorUnits, t1.denominatorUnits) + " and " + t1._unitString$2(this.newNumerators, this.newDenominators) + "."));
- },
- $signature: 0
- };
- T.SassNumber_modulo_closure.prototype = {
- call$2: function(num1, num2) {
- var t1;
- if (num2 > 0)
- return C.JSNumber_methods.$mod(num1, num2);
- if (num2 === 0)
- return 0 / 0;
- t1 = C.JSNumber_methods.$mod(num1, num2);
- return t1 === 0 ? 0 : t1 + num2;
- }
- };
- T.SassNumber_plus_closure.prototype = {
- call$2: function(num1, num2) {
- return num1 + num2;
- }
- };
- T.SassNumber_minus_closure.prototype = {
- call$2: function(num1, num2) {
- return num1 - num2;
- }
- };
- T.SassNumber__multiplyUnits_closure.prototype = {
- call$1: function(denominator) {
- var factor = this.$this._conversionFactor$2(this.numerator, denominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- }
- };
- T.SassNumber__multiplyUnits_closure0.prototype = {
- call$0: function() {
- this.newNumerators.push(this.numerator);
- return null;
- },
- $signature: 0
- };
- T.SassNumber__multiplyUnits_closure1.prototype = {
- call$1: function(denominator) {
- var factor = this.$this._conversionFactor$2(this.numerator, denominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- }
- };
- T.SassNumber__multiplyUnits_closure2.prototype = {
- call$0: function() {
- this.newNumerators.push(this.numerator);
- return null;
- },
- $signature: 0
- };
- T.SassNumber__areAnyConvertible_closure.prototype = {
- call$1: function(unit1) {
- var t1 = $.$get$_conversions();
- if (!t1.containsKey$1(unit1))
- return C.JSArray_methods.contains$1(this.units2, unit1);
- return C.JSArray_methods.any$1(this.units2, t1.$index(0, unit1).get$containsKey());
- }
- };
- T.SassNumber__canonicalMultiplier_closure.prototype = {
- call$2: function(multiplier, unit) {
- var t1,
- innerMap = $.$get$_conversions().$index(0, unit);
- if (innerMap == null)
- t1 = multiplier;
- else {
- t1 = innerMap.get$values();
- t1 = multiplier / t1.get$first(t1);
- }
- return t1;
- }
- };
- D.SassString.prototype = {
- get$sassLength: function() {
- var t1 = this._sassLength;
- if (t1 == null) {
- t1 = this.text;
- t1.toString;
- t1 = new P.Runes(t1);
- t1 = this._sassLength = t1.get$length(t1);
- }
- return t1;
- },
- get$isSpecialNumber: function() {
- var t1, t2;
- if (this.hasQuotes)
- return false;
- t1 = this.text;
- if (t1.length < 6)
- return false;
- t2 = J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32;
- if (t2 === 99) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
- return false;
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
- return false;
- if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 4) === 40;
- } else if (t2 === 118) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
- return false;
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
- } else if (t2 === 101) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
- return false;
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
- } else if (t2 === 109) {
- t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
- if (t2 === 97) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
- } else if (t2 === 105) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
- } else
- return false;
- } else
- return false;
- },
- get$isVar: function() {
- if (this.hasQuotes)
- return false;
- var t1 = this.text;
- if (t1.length < 8)
- return false;
- 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;
- },
- get$isBlank: function() {
- return !this.hasQuotes && this.text.length === 0;
- },
- accept$1$1: function(visitor) {
- var t1 = visitor._quote && this.hasQuotes,
- t2 = this.text;
- if (t1)
- visitor._visitQuotedString$1(t2);
- else
- visitor._visitUnquotedString$1(t2);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertString$1: function($name) {
- return this;
- },
- plus$1: function(other) {
- var t1 = this.text,
- t2 = this.hasQuotes;
- if (other instanceof D.SassString)
- return new D.SassString(J.$add$ansx(t1, other.text), t2);
- else {
- other.toString;
- return new D.SassString(J.$add$ansx(t1, N.serializeValue0(other, false, true)), t2);
- }
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof D.SassString && this.text == other.text;
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.text);
- }
- };
- E._EvaluateVisitor0.prototype = {
- _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap0: function(functions, importCache, logger, nodeImporter, sourceMap) {
- var t6, t7, t8, t9, t10, t11, t12, metaFunctions, metaMixins, _i, metaModule, module, $function, _this = this,
- _s9_ = "sass:meta",
- t1 = type$.String,
- t2 = type$.VariableDeclaration,
- t3 = S.SpanScanner$("@function global-variable-exists($name, $module: null) {", _s9_),
- t4 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value,
- t5 = type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value;
- 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);
- t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
- 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);
- t7 = S.SpanScanner$("@function function-exists($name, $module: null) {", _s9_);
- 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);
- t8 = S.SpanScanner$("@function mixin-exists($name, $module: null) {", _s9_);
- 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);
- t9 = S.SpanScanner$("@function content-exists() {", _s9_);
- 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);
- t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
- 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);
- t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
- 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);
- t12 = S.SpanScanner$("@function get-function($name, $css: false, $module: null) {", _s9_);
- 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);
- t5 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
- 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))];
- t1 = type$.JSArray_AsyncBuiltInCallable;
- metaMixins = H.setRuntimeTypeInfo([S.AsyncBuiltInCallable$mixin("load-css", "$module, $with: null", new E._EvaluateVisitor_closure18(_this), _s9_)], t1);
- t1 = H.setRuntimeTypeInfo([], t1);
- for (t2 = $.$get$global(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (_i = 0; _i < 9; ++_i)
- t1.push(metaFunctions[_i]);
- metaModule = Q.BuiltInModule$("meta", t1, metaMixins, null, type$.AsyncBuiltInCallable);
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInModule_AsyncBuiltInCallable);
- for (t2 = $.$get$coreModules(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- t1.push(metaModule);
- t2 = t1.length;
- t3 = _this._async_evaluate$_builtInModules;
- _i = 0;
- for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- module = t1[_i];
- t3.$indexSet(0, module.url, module);
- }
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_AsyncCallable_2);
- for (t2 = $.$get$globalFunctions(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (_i = 0; _i < 9; ++_i)
- t1.push(metaFunctions[_i]);
- for (t2 = t1.length, t3 = _this._async_evaluate$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- $function = t1[_i];
- t4 = $function.get$name();
- t4.toString;
- t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
- }
- },
- run$2: function(_, importer, node) {
- return this.run$body$_EvaluateVisitor(_, importer, node);
- },
- run$body$_EvaluateVisitor: function(_, importer, node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.EvaluateResult),
- $async$returnValue, $async$self = this;
- var $async$run$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = $async$self._async_evaluate$_withWarnCallback$1$1(new E._EvaluateVisitor_run_closure0($async$self, node, importer), type$.FutureOr_EvaluateResult);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$run$2, $async$completer);
- },
- _async_evaluate$_withWarnCallback$1$1: function(callback, $T) {
- return N.withWarnCallback(new E._EvaluateVisitor__withWarnCallback_closure0(this), callback, $T);
- },
- _async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- return this._loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
- },
- _async_evaluate$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
- return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
- },
- _async_evaluate$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
- return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
- },
- _loadModule$body$_EvaluateVisitor: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t1, builtInModule;
- var $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- builtInModule = $async$self._async_evaluate$_builtInModules.$index(0, url);
- if (builtInModule != null) {
- if (configuration != null && !configuration.isImplicit) {
- t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
- throw H.wrapException($async$self._async_evaluate$_exception$2(t1, nodeWithSpan.get$span()));
- }
- callback.call$1(builtInModule);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3(stackFrame, nodeWithSpan, new E._EvaluateVisitor__loadModule_closure0($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
- case 3:
- // returning from await.
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
- },
- _async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- return this._execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
- },
- _async_evaluate$_execute$2: function(importer, stylesheet) {
- return this._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
- },
- _execute$body$_EvaluateVisitor: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Module_AsyncCallable),
- $async$returnValue, $async$self = this, message, existingNode, environment, t3, extender, module, t1, url, t2, alreadyLoaded;
- var $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- url = stylesheet.span.file.url;
- t2 = $async$self._async_evaluate$_modules;
- alreadyLoaded = t2.$index(0, url);
- if (alreadyLoaded != null) {
- t1 = configuration == null;
- if (!(t1 ? $async$self._async_evaluate$_configuration : configuration).isImplicit) {
- message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + ' was already loaded, so it can\'t be configured using "with".' : 'This module was already loaded, so it can\'t be configured using "with".';
- existingNode = $async$self._async_evaluate$_moduleNodes.$index(0, url);
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (existingNode != null)
- t2.$indexSet(0, existingNode.get$span(), "original load");
- if (t1)
- t2.$indexSet(0, $async$self._async_evaluate$_configuration.nodeWithSpan.get$span(), "configuration");
- throw H.wrapException(t2.get$isEmpty(t2) ? $async$self._async_evaluate$_exception$1(message) : $async$self._async_evaluate$_multiSpanException$3(message, "new load", t2));
- }
- $async$returnValue = alreadyLoaded;
- // goto return
- $async$goto = 1;
- break;
- }
- environment = Q.AsyncEnvironment$($async$self._async_evaluate$_sourceMap);
- t1.css = null;
- t3 = type$.SimpleSelector;
- extender = new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Set_ModifiableCssValue_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Map_ComplexSelector_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.List_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList, type$.List_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), C.ExtendMode_normal);
- $async$goto = 3;
- 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);
- case 3:
- // returning from await.
- module = Q._EnvironmentModule__EnvironmentModule0(environment, t1.css, extender, environment._async_environment$_forwardedModules);
- t2.$indexSet(0, url, module);
- $async$self._async_evaluate$_moduleNodes.$indexSet(0, url, nodeWithSpan);
- $async$returnValue = module;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
- },
- _async_evaluate$_addOutOfOrderImports$0: function() {
- var t1, statements, _this = this;
- if (_this._async_evaluate$_outOfOrderImports == null)
- return _this._async_evaluate$_root.children;
- t1 = new Array(J.get$length$asx(_this._async_evaluate$_root.children._collection$_source) + _this._async_evaluate$_outOfOrderImports.length);
- t1.fixed$length = Array;
- statements = new G.FixedLengthListBuilder(H.setRuntimeTypeInfo(t1, type$.JSArray_ModifiableCssNode), type$.FixedLengthListBuilder_ModifiableCssNode);
- statements.addRange$3(_this._async_evaluate$_root.children, 0, _this._async_evaluate$_endOfImports);
- statements.addAll$1(0, _this._async_evaluate$_outOfOrderImports);
- statements.addRange$2(_this._async_evaluate$_root.children, _this._async_evaluate$_endOfImports);
- return statements.build$0();
- },
- _async_evaluate$_combineCss$2$clone: function(root, clone) {
- var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, statements, index, _this = this;
- if (!C.JSArray_methods.any$1(root.get$upstream(), new E._EvaluateVisitor__combineCss_closure2())) {
- selectors = root.get$extender().get$simpleSelectors();
- unsatisfiedExtension = B.firstOrNull(root.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__combineCss_closure3(selectors)));
- if (unsatisfiedExtension != null)
- _this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
- return root.get$css(root);
- }
- sortedModules = _this._async_evaluate$_topologicalModules$1(root);
- if (clone)
- sortedModules = new H.MappedListIterable(sortedModules, new E._EvaluateVisitor__combineCss_closure4(), sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<AsyncCallable>>")).toList$0(0);
- _this._async_evaluate$_extendModules$1(sortedModules);
- t1 = type$.JSArray_CssNode;
- imports = H.setRuntimeTypeInfo([], t1);
- css = H.setRuntimeTypeInfo([], t1);
- for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- statements = t2.get$css(t2).get$children();
- index = _this._async_evaluate$_indexAfterImports$1(statements);
- t2 = J.getInterceptor$ax(statements);
- C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
- C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
- }
- return new V.CssStylesheet(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_CssNode), root.get$css(root).get$span());
- },
- _async_evaluate$_combineCss$1: function(root) {
- return this._async_evaluate$_combineCss$2$clone(root, false);
- },
- _async_evaluate$_extendModules$1: function(sortedModules) {
- var t1, t2, originalSelectors, extenders, t3, t4, _i,
- downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_Extender),
- unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
- for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
- unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__extendModules_closure1(originalSelectors)));
- extenders = downstreamExtenders.$index(0, t2.get$url());
- if (extenders != null)
- t2.get$extender().addExtensions$1(extenders);
- t3 = t2.get$extender();
- if (t3.get$isEmpty(t3))
- continue;
- for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
- J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new E._EvaluateVisitor__extendModules_closure2()), t2.get$extender());
- unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
- }
- if (unsatisfiedExtensions._collection$_length !== 0)
- this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
- },
- _async_evaluate$_throwForUnsatisfiedExtension$1: function(extension) {
- throw H.wrapException(E.SassException$('The target selector was not found.\nUse "@extend ' + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
- },
- _async_evaluate$_topologicalModules$1: function(root) {
- var t1 = type$.Module_AsyncCallable,
- sorted = Q.QueueList$(null, t1);
- new E._EvaluateVisitor__topologicalModules_visitModule0(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
- return sorted;
- },
- _async_evaluate$_indexAfterImports$1: function(statements) {
- var t1, t2, t3, lastImport, i, statement;
- for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment, t3 = type$.CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
- statement = t1.$index(statements, i);
- if (t3._is(statement))
- lastImport = i;
- else if (!t2._is(statement))
- break;
- }
- return lastImport + 1;
- },
- visitStylesheet$1: function(node) {
- return this.visitStylesheet$body$_EvaluateVisitor(node);
- },
- visitStylesheet$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, _i;
- var $async$visitStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.children, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
- case 6:
- // returning from await.
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitStylesheet$1, $async$completer);
- },
- visitAtRootRule$1: function(node) {
- return this.visitAtRootRule$body$_EvaluateVisitor(node);
- },
- visitAtRootRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, root, innerCopy, outerCopy, copy, t1, query, $parent, included, $async$temp1, $async$temp2;
- var $async$visitAtRootRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.query;
- $async$goto = t1 != null ? 3 : 5;
- break;
- case 3:
- // then
- $async$temp1 = t1;
- $async$temp2 = E;
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(t1, true), $async$visitAtRootRule$1);
- case 6:
- // returning from await.
- $async$result = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure2($async$self, $async$result));
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$result = C.AtRootQuery_UsS;
- case 4:
- // join
- query = $async$result;
- $parent = $async$self._async_evaluate$_parent;
- included = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssParentNode);
- for (t1 = type$.CssStylesheet; !t1._is($parent);) {
- if (!query.excludes$1($parent))
- included.push($parent);
- $parent = $parent._parent;
- }
- root = $async$self._async_evaluate$_trimIncluded$1(included);
- $async$goto = root == $async$self._async_evaluate$_parent ? 7 : 8;
- break;
- case 7:
- // then
- $async$goto = 9;
- 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);
- case 9:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 8:
- // join
- innerCopy = included.length === 0 ? null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
- for (t1 = H.SubListIterable$(included, 1, null, type$.ModifiableCssParentNode), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
- copy = t1.__internal$_current.copyWithoutChildren$0();
- copy.addChild$1(outerCopy);
- }
- if (outerCopy != null)
- root.addChild$1(outerCopy);
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitAtRootRule$1, $async$completer);
- },
- _async_evaluate$_trimIncluded$1: function(nodes) {
- var $parent, innermostContiguous, i, t2, root,
- t1 = nodes.length;
- if (t1 === 0)
- return this._async_evaluate$_root;
- $parent = this._async_evaluate$_parent;
- for (innermostContiguous = null, i = 0; i < t1; ++i) {
- for (; $parent != nodes[i]; innermostContiguous = null)
- $parent = $parent._parent;
- if (innermostContiguous == null)
- innermostContiguous = i;
- $parent = $parent._parent;
- }
- t2 = this._async_evaluate$_root;
- if ($parent != t2)
- return t2;
- root = nodes[innermostContiguous];
- C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
- return root;
- },
- _async_evaluate$_scopeForAtRoot$4: function(node, newParent, query, included) {
- var _this = this,
- scope = new E._EvaluateVisitor__scopeForAtRoot_closure5(_this, newParent, node),
- t1 = query._all,
- t2 = t1 || query._at_root_query$_rule,
- t3 = query.include;
- if (t2 !== t3)
- scope = new E._EvaluateVisitor__scopeForAtRoot_closure6(_this, scope);
- if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
- scope = new E._EvaluateVisitor__scopeForAtRoot_closure7(_this, scope);
- if (_this._async_evaluate$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
- scope = new E._EvaluateVisitor__scopeForAtRoot_closure8(_this, scope);
- return _this._async_evaluate$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new E._EvaluateVisitor__scopeForAtRoot_closure9()) ? new E._EvaluateVisitor__scopeForAtRoot_closure10(_this, scope) : scope;
- },
- visitContentBlock$1: function(node) {
- return H.throwExpression(P.UnsupportedError$("Evaluation handles @include and its content block together."));
- },
- visitContentRule$1: function(node) {
- return this.visitContentRule$body$_EvaluateVisitor(node);
- },
- visitContentRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, $content;
- var $async$visitContentRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $content = $async$self._async_evaluate$_environment._async_environment$_content;
- if ($content == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4(node.$arguments, $content, node, new E._EvaluateVisitor_visitContentRule_closure0($async$self, $content)), $async$visitContentRule$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitContentRule$1, $async$completer);
- },
- visitDebugRule$1: function(node) {
- return this.visitDebugRule$body$_EvaluateVisitor(node);
- },
- visitDebugRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, value, t1;
- var $async$visitDebugRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
- case 3:
- // returning from await.
- value = $async$result;
- t1 = value instanceof D.SassString ? value.text : J.toString$0$(value);
- $async$self._async_evaluate$_logger.debug$2(t1, node.span);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitDebugRule$1, $async$completer);
- },
- visitDeclaration$1: function(node) {
- return this.visitDeclaration$body$_EvaluateVisitor(node);
- },
- visitDeclaration$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, $name, t1, cssValue, t2, oldDeclarationName, $async$temp1;
- var $async$visitDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (!($async$self._async_evaluate$_styleRule != null && !$async$self._async_evaluate$_atRootExcludingStyleRule) && !$async$self._async_evaluate$_inUnknownAtRule && !$async$self._async_evaluate$_inKeyframes)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Declarations may only be used within style rules.", node.span));
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(node.name, true), $async$visitDeclaration$1);
- case 3:
- // returning from await.
- $name = $async$result;
- t1 = $async$self._async_evaluate$_declarationName;
- if (t1 != null)
- $name = new F.CssValue(t1 + "-" + H.S($name.get$value($name)), $name.get$span(), type$.CssValue_String);
- t1 = node.value;
- $async$goto = t1 == null ? 4 : 6;
- break;
- case 4:
- // then
- $async$result = null;
- // goto join
- $async$goto = 5;
- break;
- case 6:
- // else
- $async$temp1 = F;
- $async$goto = 7;
- return P._asyncAwait(t1.accept$1($async$self), $async$visitDeclaration$1);
- case 7:
- // returning from await.
- $async$result = new $async$temp1.CssValue($async$result, t1.get$span(), type$.CssValue_Value);
- case 5:
- // join
- cssValue = $async$result;
- if (cssValue != null) {
- t2 = cssValue.value;
- t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
- } else
- t2 = false;
- if (t2) {
- t2 = $async$self._async_evaluate$_parent;
- t1 = $async$self._async_evaluate$_expressionNode$1(t1);
- t1 = t1 == null ? null : t1.get$span();
- t2.addChild$1(L.ModifiableCssDeclaration$($name, cssValue, node.span, t1));
- } else if (J.startsWith$1$s($name.get$value($name), "--"))
- throw H.wrapException($async$self._async_evaluate$_exception$2("Custom property values may not be empty.", t1.get$span()));
- $async$goto = node.children != null ? 8 : 9;
- break;
- case 8:
- // then
- oldDeclarationName = $async$self._async_evaluate$_declarationName;
- $async$self._async_evaluate$_declarationName = $name.get$value($name);
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- $async$self._async_evaluate$_declarationName = oldDeclarationName;
- case 9:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitDeclaration$1, $async$completer);
- },
- visitEachRule$1: function(node) {
- return this.visitEachRule$body$_EvaluateVisitor(node);
- },
- visitEachRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
- var $async$visitEachRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.list;
- $async$goto = 3;
- return P._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
- case 3:
- // returning from await.
- list = $async$result;
- nodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t1);
- setVariables = node.variables.length === 1 ? new E._EvaluateVisitor_visitEachRule_closure2($async$self, node, nodeWithSpan) : new E._EvaluateVisitor_visitEachRule_closure3($async$self, node, nodeWithSpan);
- $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitEachRule_closure4($async$self, list, setVariables, node), true, type$.Value);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitEachRule$1, $async$completer);
- },
- _async_evaluate$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
- var i,
- list = value.get$asList(),
- t1 = variables.length,
- minLength = Math.min(t1, list.length);
- for (i = 0; i < minLength; ++i)
- this._async_evaluate$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
- for (i = minLength; i < t1; ++i)
- this._async_evaluate$_environment.setLocalVariable$3(variables[i], C.C_SassNull0, nodeWithSpan);
- },
- visitErrorRule$1: function(node) {
- return this.visitErrorRule$body$_EvaluateVisitor(node);
- },
- visitErrorRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$self = this, $async$temp1, $async$temp2;
- var $async$visitErrorRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = H;
- $async$temp2 = J;
- $async$goto = 2;
- return P._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
- case 2:
- // returning from await.
- throw $async$temp1.wrapException($async$self._async_evaluate$_exception$2($async$temp2.toString$0$($async$result), node.span));
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitErrorRule$1, $async$completer);
- },
- visitExtendRule$1: function(node) {
- return this.visitExtendRule$body$_EvaluateVisitor(node);
- },
- visitExtendRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, targetText, t1, t2, t3, _i, t4;
- var $async$visitExtendRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (!($async$self._async_evaluate$_styleRule != null && !$async$self._async_evaluate$_atRootExcludingStyleRule) || $async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("@extend may only be used within style rules.", node.span));
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
- case 3:
- // returning from await.
- targetText = $async$result;
- for (t1 = $async$self._async_evaluate$_adjustParseError$2(targetText, new E._EvaluateVisitor_visitExtendRule_closure0($async$self, targetText)).components, t2 = t1.length, t3 = type$.CompoundSelector, _i = 0; _i < t2; ++_i) {
- t4 = t1[_i].components;
- if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector))
- throw H.wrapException(E.SassFormatException$("complex selectors may not be extended.", targetText.get$span()));
- t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
- if (t4.length !== 1)
- throw H.wrapException(E.SassFormatException$("compound selectors may no longer be extended.\nConsider `@extend " + C.JSArray_methods.join$1(t4, ", ") + "` instead.\nSee http://bit.ly/ExtendCompound for details.\n", targetText.get$span()));
- $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);
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitExtendRule$1, $async$completer);
- },
- visitAtRule$1: function(node) {
- return this.visitAtRule$body$_EvaluateVisitor(node);
- },
- visitAtRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule;
- var $async$visitAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("At-rules may not be used within nested declarations.", node.span));
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$1(node.name), $async$visitAtRule$1);
- case 3:
- // returning from await.
- $name = $async$result;
- t1 = node.value;
- $async$goto = t1 == null ? 4 : 6;
- break;
- case 4:
- // then
- $async$result = null;
- // goto join
- $async$goto = 5;
- break;
- case 6:
- // else
- $async$goto = 7;
- return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitAtRule$1);
- case 7:
- // returning from await.
- case 5:
- // join
- value = $async$result;
- if (node.children == null) {
- t1 = $async$self._async_evaluate$_parent;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- t1.addChild$1(new U.ModifiableCssAtRule($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
- wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
- if (B.unvendor($name.get$value($name)) === "keyframes")
- $async$self._async_evaluate$_inKeyframes = true;
- else
- $async$self._async_evaluate$_inUnknownAtRule = true;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- $async$goto = 8;
- 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_ModifiableCssNode), t1), new E._EvaluateVisitor_visitAtRule_closure1($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitAtRule_closure2(), type$.ModifiableCssAtRule, type$.Null), $async$visitAtRule$1);
- case 8:
- // returning from await.
- $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
- $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitAtRule$1, $async$completer);
- },
- visitForRule$1: function(node) {
- return this.visitForRule$body$_EvaluateVisitor(node);
- },
- visitForRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
- var $async$visitForRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- t2 = node.from;
- t3 = type$.SassNumber;
- $async$goto = 3;
- return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(t2, new E._EvaluateVisitor_visitForRule_closure4($async$self, node), t3), $async$visitForRule$1);
- case 3:
- // returning from await.
- fromNumber = $async$result;
- t4 = node.to;
- $async$goto = 4;
- return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(t4, new E._EvaluateVisitor_visitForRule_closure5($async$self, node), t3), $async$visitForRule$1);
- case 4:
- // returning from await.
- toNumber = $async$result;
- from = $async$self._async_evaluate$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitForRule_closure6(fromNumber, toNumber));
- to = t1.to = $async$self._async_evaluate$_addExceptionSpan$2(t4, new E._EvaluateVisitor_visitForRule_closure7(toNumber));
- direction = from > to ? -1 : 1;
- if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitForRule_closure8(t1, $async$self, node, from, direction), true, type$.Value);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitForRule$1, $async$completer);
- },
- visitForwardRule$1: function(node) {
- return this.visitForwardRule$body$_EvaluateVisitor(node);
- },
- visitForwardRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, oldConfiguration, adjustedConfiguration, t1, t2, t3;
- var $async$visitForwardRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldConfiguration = $async$self._async_evaluate$_configuration;
- adjustedConfiguration = oldConfiguration.throughForward$1(node);
- t1 = node.configuration;
- t2 = t1.length;
- t3 = node.url;
- $async$goto = t2 !== 0 ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
- case 6:
- // returning from await.
- newConfiguration = $async$result;
- $async$goto = 7;
- 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);
- case 7:
- // returning from await.
- t3 = type$.String;
- t4 = P.LinkedHashSet_LinkedHashSet(t3);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (!variable.isGuarded)
- t4.add$1(0, variable.name);
- }
- $async$self._async_evaluate$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
- t3 = P.LinkedHashSet_LinkedHashSet(t3);
- for (_i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i].name);
- $async$self._async_evaluate$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$self._async_evaluate$_configuration = adjustedConfiguration;
- $async$goto = 8;
- return P._asyncAwait($async$self._async_evaluate$_loadModule$4(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure2($async$self, node)), $async$visitForwardRule$1);
- case 8:
- // returning from await.
- $async$self._async_evaluate$_configuration = oldConfiguration;
- case 4:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitForwardRule$1, $async$completer);
- },
- _async_evaluate$_addForwardConfiguration$2: function(configuration, node) {
- return this._addForwardConfiguration$body$_EvaluateVisitor(configuration, node);
- },
- _addForwardConfiguration$body$_EvaluateVisitor: function(configuration, node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Configuration),
- $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
- var $async$_async_evaluate$_addForwardConfiguration$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = configuration._values;
- newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
- t2 = node.configuration, t3 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- variable = t2[_i];
- if (variable.isGuarded) {
- t4 = variable.name;
- t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
- if (t5 != null && !J.$eq$(t5.value, C.C_SassNull0)) {
- newValues.$indexSet(0, t4, t5);
- // goto for update
- $async$goto = 4;
- break;
- }
- }
- t4 = variable.name;
- t5 = variable.expression;
- $async$temp1 = newValues;
- $async$temp2 = t4;
- $async$temp3 = Z;
- $async$goto = 6;
- return P._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate$_addForwardConfiguration$2);
- case 6:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate$_expressionNode$1(t5)));
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = new A.Configuration(newValues, node, false);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_addForwardConfiguration$2, $async$completer);
- },
- _async_evaluate$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
- var t1, t2, t3, _i, $name;
- 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) {
- $name = t2[_i];
- if (except.contains$1(0, $name))
- continue;
- if (!downstream._values.containsKey$1($name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- },
- _async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
- configuration._values.forEach$1(0, new E._EvaluateVisitor__assertConfigurationIsEmpty_closure0(this, only, nameInError));
- },
- _async_evaluate$_assertConfigurationIsEmpty$1: function(configuration) {
- return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
- },
- _async_evaluate$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
- return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
- },
- _async_evaluate$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
- return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
- },
- visitFunctionRule$1: function(node) {
- return this.visitFunctionRule$body$_EvaluateVisitor(node);
- },
- visitFunctionRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
- var $async$visitFunctionRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_environment;
- t2 = t1.closure$0();
- t3 = t1._async_environment$_functions;
- index = t3.length - 1;
- t4 = node.name;
- t1._async_environment$_functionIndices.$indexSet(0, t4, index);
- J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_AsyncEnvironment));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitFunctionRule$1, $async$completer);
- },
- visitIfRule$1: function(node) {
- return this.visitIfRule$body$_EvaluateVisitor(node);
- },
- visitIfRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
- var $async$visitIfRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- _box_0.clause = node.lastClause;
- t1 = node.clauses, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- clauseToCheck = t1[_i];
- $async$goto = 6;
- return P._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
- case 6:
- // returning from await.
- if ($async$result.get$isTruthy()) {
- _box_0.clause = clauseToCheck;
- // goto after for
- $async$goto = 5;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t1 = _box_0.clause;
- if (t1 == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 7;
- 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$.Value), $async$visitIfRule$1);
- case 7:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitIfRule$1, $async$completer);
- },
- visitImportRule$1: function(node) {
- return this.visitImportRule$body$_EvaluateVisitor(node);
- },
- visitImportRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
- var $async$visitImportRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $import = t1[_i];
- $async$goto = $import instanceof B.DynamicImport ? 6 : 8;
- break;
- case 6:
- // then
- $async$goto = 9;
- return P._asyncAwait($async$self._async_evaluate$_visitDynamicImport$1($import), $async$visitImportRule$1);
- case 9:
- // returning from await.
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = 10;
- return P._asyncAwait($async$self._visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
- case 10:
- // returning from await.
- case 7:
- // join
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitImportRule$1, $async$completer);
- },
- _async_evaluate$_visitDynamicImport$1: function($import) {
- return this._async_evaluate$_withStackFrame$1$3("@import", $import, new E._EvaluateVisitor__visitDynamicImport_closure0(this, $import), type$.void);
- },
- _async_evaluate$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
- return this._loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport);
- },
- _async_evaluate$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
- return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
- },
- _async_evaluate$_loadStylesheet$3$forImport: function(url, span, forImport) {
- return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
- },
- _loadStylesheet$body$_EvaluateVisitor: function(url, span, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_AsyncImporter_Stylesheet),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, tuple, error, error0, message, t1, t2, t3, exception, $async$exception;
- var $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$self._async_evaluate$_importSpan = span;
- t1 = P.Uri_parse(url);
- t2 = $async$self._async_evaluate$_importer;
- if (baseUrl == null) {
- t3 = $async$self._async_evaluate$_stylesheet;
- t3 = t3 == null ? null : t3.span;
- t3 = t3 == null ? null : t3.file.url;
- } else
- t3 = baseUrl;
- $async$goto = 7;
- return P._asyncAwait($async$self._async_evaluate$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
- case 7:
- // returning from await.
- tuple = $async$result;
- if (tuple != null) {
- $async$returnValue = tuple;
- $async$next = [1];
- // goto finally
- $async$goto = 5;
- break;
- }
- if (C.JSString_methods.startsWith$1(url, "package:") && true)
- throw H.wrapException('"package:" URLs aren\'t supported on this platform.');
- else
- throw H.wrapException("Can't find stylesheet to import.");
- $async$next.push(6);
- // goto finally
- $async$goto = 5;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (t1 instanceof E.SassException) {
- error = t1;
- t1 = $async$self._async_evaluate$_exception$2(error._span_exception$_message, error.get$span());
- throw H.wrapException(t1);
- } else {
- error0 = t1;
- message = null;
- try {
- message = H._asStringNullable(J.get$message$x(error0));
- } catch (exception) {
- H.unwrapException($async$exception);
- message = J.toString$0$(error0);
- }
- t1 = $async$self._async_evaluate$_exception$1(message);
- throw H.wrapException(t1);
- }
- $async$next.push(6);
- // goto finally
- $async$goto = 5;
- break;
- case 3:
- // uncaught
- $async$next = [2];
- case 5:
- // finally
- $async$handler = 2;
- $async$self._async_evaluate$_importSpan = null;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 6:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport, $async$completer);
- },
- _visitStaticImport$1: function($import) {
- return this._visitStaticImport$body$_EvaluateVisitor($import);
- },
- _visitStaticImport$body$_EvaluateVisitor: function($import) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, resolvedSupports, t1, mediaQuery, node, t2, url, supports, $async$temp1, $async$temp2;
- var $async$_visitStaticImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$1($import.url), $async$_visitStaticImport$1);
- case 3:
- // returning from await.
- url = $async$result;
- supports = $import.supports;
- $async$goto = supports instanceof L.SupportsDeclaration ? 4 : 6;
- break;
- case 4:
- // then
- $async$temp1 = H;
- $async$goto = 7;
- return P._asyncAwait($async$self._evaluateToCss$1(supports.name), $async$_visitStaticImport$1);
- case 7:
- // returning from await.
- $async$temp1 = $async$temp1.S($async$result) + ": ";
- $async$temp2 = H;
- $async$goto = 8;
- return P._asyncAwait($async$self._evaluateToCss$1(supports.value), $async$_visitStaticImport$1);
- case 8:
- // returning from await.
- resolvedSupports = $async$temp1 + $async$temp2.S($async$result);
- // goto join
- $async$goto = 5;
- break;
- case 6:
- // else
- $async$goto = supports == null ? 9 : 11;
- break;
- case 9:
- // then
- $async$result = null;
- // goto join
- $async$goto = 10;
- break;
- case 11:
- // else
- $async$goto = 12;
- return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(supports), $async$_visitStaticImport$1);
- case 12:
- // returning from await.
- case 10:
- // join
- resolvedSupports = $async$result;
- case 5:
- // join
- t1 = $import.media;
- $async$goto = t1 == null ? 13 : 15;
- break;
- case 13:
- // then
- $async$result = null;
- // goto join
- $async$goto = 14;
- break;
- case 15:
- // else
- $async$goto = 16;
- return P._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(t1), $async$_visitStaticImport$1);
- case 16:
- // returning from await.
- case 14:
- // join
- mediaQuery = $async$result;
- t1 = $import.span;
- node = F.ModifiableCssImport$(url, t1, mediaQuery, resolvedSupports == null ? null : new F.CssValue("supports(" + resolvedSupports + ")", supports.get$span(), type$.CssValue_String));
- t1 = $async$self._async_evaluate$_parent;
- t2 = $async$self._async_evaluate$_root;
- if (t1 != t2)
- t1.addChild$1(node);
- else if ($async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
- $async$self._async_evaluate$_root.addChild$1(node);
- $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
- } else {
- t1 = $async$self._async_evaluate$_outOfOrderImports;
- (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t1).push(node);
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_visitStaticImport$1, $async$completer);
- },
- visitIncludeRule$1: function(node) {
- return this.visitIncludeRule$body$_EvaluateVisitor(node);
- },
- visitIncludeRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, nodeWithSpan, t1, t2, t3, contentCallable, mixin;
- var $async$visitIncludeRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- mixin = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitIncludeRule_closure2($async$self, node));
- if (mixin == null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined mixin.", node.span));
- nodeWithSpan = new B._FakeAstNode(new E._EvaluateVisitor_visitIncludeRule_closure3(node));
- $async$goto = type$.AsyncBuiltInCallable._is(mixin) ? 3 : 5;
- break;
- case 3:
- // then
- if (node.content != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Mixin doesn't accept a content block.", node.span));
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
- case 6:
- // returning from await.
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t1 = type$.UserDefinedCallable_AsyncEnvironment;
- $async$goto = t1._is(mixin) ? 7 : 9;
- break;
- case 7:
- // then
- t2 = node.content;
- t3 = t2 == null;
- if (!t3 && !type$.MixinRule._as(mixin.declaration).hasContent)
- 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$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(node.get$spanWithoutContent())));
- contentCallable = t3 ? null : new E.UserDefinedCallable(t2, $async$self._async_evaluate$_environment.closure$0(), t1);
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- case 8:
- // join
- case 4:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitIncludeRule$1, $async$completer);
- },
- visitMixinRule$1: function(node) {
- return this.visitMixinRule$body$_EvaluateVisitor(node);
- },
- visitMixinRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
- var $async$visitMixinRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_environment;
- t2 = t1.closure$0();
- t3 = t1._async_environment$_mixins;
- index = t3.length - 1;
- t4 = node.name;
- t1._async_environment$_mixinIndices.$indexSet(0, t4, index);
- J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_AsyncEnvironment));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitMixinRule$1, $async$completer);
- },
- visitLoudComment$1: function(node) {
- return this.visitLoudComment$body$_EvaluateVisitor(node);
- },
- visitLoudComment$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
- var $async$visitLoudComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_inFunction) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = $async$self._async_evaluate$_parent;
- t2 = $async$self._async_evaluate$_root;
- if (t1 == t2 && $async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source))
- $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
- t1 = node.text;
- $async$temp1 = $async$self._async_evaluate$_parent;
- $async$temp2 = R;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$visitLoudComment$1);
- case 3:
- // returning from await.
- $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment($async$result, t1.span));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitLoudComment$1, $async$completer);
- },
- visitMediaRule$1: function(node) {
- return this.visitMediaRule$body$_EvaluateVisitor(node);
- },
- visitMediaRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, queries, t1, mergedQueries;
- var $async$visitMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Media rules may not be used within nested declarations.", node.span));
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
- case 3:
- // returning from await.
- queries = $async$result;
- t1 = $async$self._async_evaluate$_mediaQueries;
- mergedQueries = t1 == null ? null : $async$self._async_evaluate$_mergeMediaQueries$2(t1, queries);
- t1 = mergedQueries == null;
- if (!t1 && mergedQueries.length === 0) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = t1 ? queries : mergedQueries;
- $async$goto = 4;
- 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$.ModifiableCssMediaRule, type$.Null), $async$visitMediaRule$1);
- case 4:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitMediaRule$1, $async$completer);
- },
- _async_evaluate$_visitMediaQueries$1: function(interpolation) {
- return this._visitMediaQueries$body$_EvaluateVisitor(interpolation);
- },
- _visitMediaQueries$body$_EvaluateVisitor: function(interpolation) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.List_CssMediaQuery),
- $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
- var $async$_async_evaluate$_visitMediaQueries$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = interpolation;
- $async$temp2 = E;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate$_visitMediaQueries$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure0($async$self, $async$result));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_visitMediaQueries$1, $async$completer);
- },
- _async_evaluate$_mergeMediaQueries$2: function(queries1, queries2) {
- var t1, t2, t3, t4, t5, result,
- queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery);
- for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
- result = t4.merge$1(t5.get$current(t5));
- if (result === C._SingletonCssMediaQueryMergeResult_empty)
- continue;
- if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable)
- return null;
- queries.push(t3._as(result).query);
- }
- }
- return queries;
- },
- visitReturnRule$1: function(node) {
- return node.expression.accept$1(this);
- },
- visitSilentComment$1: function(node) {
- return this.visitSilentComment$body$_EvaluateVisitor(node);
- },
- visitSilentComment$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue;
- var $async$visitSilentComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitSilentComment$1, $async$completer);
- },
- visitStyleRule$1: function(node) {
- return this.visitStyleRule$body$_EvaluateVisitor(node);
- },
- visitStyleRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, t1;
- var $async$visitStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- if ($async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Style rules may not be used within nested declarations.", node.span));
- t2 = node.selector;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t2, true, true), $async$visitStyleRule$1);
- case 3:
- // returning from await.
- selectorText = $async$result;
- $async$goto = $async$self._async_evaluate$_inKeyframes ? 4 : 5;
- break;
- case 4:
- // then
- t1 = P.List_List$unmodifiable($async$self._async_evaluate$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure6($async$self, selectorText)), type$.String);
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(new F.CssValue(t1, t2.span, type$.CssValue_List_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3), new E._EvaluateVisitor_visitStyleRule_closure7($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure8(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitStyleRule$1);
- case 6:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // join
- t1.parsedSelector = $async$self._async_evaluate$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure9($async$self, selectorText));
- parsedSelector = $async$self._async_evaluate$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitStyleRule_closure10(t1, $async$self));
- t1.parsedSelector = parsedSelector;
- rule = X.ModifiableCssStyleRule$($async$self._async_evaluate$_extender.addSelector$3(parsedSelector, t2.span, $async$self._async_evaluate$_mediaQueries), node.span, t1.parsedSelector);
- oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
- $async$self._async_evaluate$_atRootExcludingStyleRule = false;
- $async$goto = 7;
- 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$.ModifiableCssStyleRule, type$.Null), $async$visitStyleRule$1);
- case 7:
- // returning from await.
- $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- if (!($async$self._async_evaluate$_styleRule != null && !oldAtRootExcludingStyleRule)) {
- t1 = $async$self._async_evaluate$_parent.children;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- t1 = $async$self._async_evaluate$_parent.children;
- t1.get$last(t1).isGroupEnd = true;
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitStyleRule$1, $async$completer);
- },
- visitSupportsRule$1: function(node) {
- return this.visitSupportsRule$body$_EvaluateVisitor(node);
- },
- visitSupportsRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, t3;
- var $async$visitSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Supports rules may not be used within nested declarations.", node.span));
- t1 = node.condition;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
- case 3:
- // returning from await.
- t2 = $async$result;
- t1 = t1.get$span();
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- $async$goto = 4;
- return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(new F.CssValue(t2, t1, type$.CssValue_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3), new E._EvaluateVisitor_visitSupportsRule_closure1($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitSupportsRule$1);
- case 4:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitSupportsRule$1, $async$completer);
- },
- _async_evaluate$_visitSupportsCondition$1: function(condition) {
- return this._visitSupportsCondition$body$_EvaluateVisitor(condition);
- },
- _visitSupportsCondition$body$_EvaluateVisitor: function(condition) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
- var $async$_async_evaluate$_visitSupportsCondition$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = condition instanceof U.SupportsOperation ? 3 : 5;
- break;
- case 3:
- // then
- t1 = condition.left;
- t2 = condition.operator;
- $async$temp1 = H;
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate$_parenthesize$2(t1, t2), $async$_async_evaluate$_visitSupportsCondition$1);
- case 6:
- // returning from await.
- $async$temp1 = $async$temp1.S($async$result) + " " + t2 + " ";
- $async$temp2 = H;
- $async$goto = 7;
- return P._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.right, t2), $async$_async_evaluate$_visitSupportsCondition$1);
- case 7:
- // returning from await.
- $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = condition instanceof M.SupportsNegation ? 8 : 10;
- break;
- case 8:
- // then
- $async$temp1 = H;
- $async$goto = 11;
- return P._asyncAwait($async$self._async_evaluate$_parenthesize$1(condition.condition), $async$_async_evaluate$_visitSupportsCondition$1);
- case 11:
- // returning from await.
- $async$returnValue = "not " + $async$temp1.S($async$result);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 9;
- break;
- case 10:
- // else
- $async$goto = condition instanceof X.SupportsInterpolation ? 12 : 14;
- break;
- case 12:
- // then
- $async$goto = 15;
- return P._asyncAwait($async$self._evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate$_visitSupportsCondition$1);
- case 15:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 13;
- break;
- case 14:
- // else
- $async$goto = condition instanceof L.SupportsDeclaration ? 16 : 18;
- break;
- case 16:
- // then
- $async$temp1 = H;
- $async$goto = 19;
- return P._asyncAwait($async$self._evaluateToCss$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
- case 19:
- // returning from await.
- $async$temp1 = "(" + $async$temp1.S($async$result) + ": ";
- $async$temp2 = H;
- $async$goto = 20;
- return P._asyncAwait($async$self._evaluateToCss$1(condition.value), $async$_async_evaluate$_visitSupportsCondition$1);
- case 20:
- // returning from await.
- $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 17;
- break;
- case 18:
- // else
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 17:
- // join
- case 13:
- // join
- case 9:
- // join
- case 4:
- // join
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_visitSupportsCondition$1, $async$completer);
- },
- _async_evaluate$_parenthesize$2: function(condition, operator) {
- return this._parenthesize$body$_EvaluateVisitor(condition, operator);
- },
- _async_evaluate$_parenthesize$1: function(condition) {
- return this._async_evaluate$_parenthesize$2(condition, null);
- },
- _parenthesize$body$_EvaluateVisitor: function(condition, operator) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, $async$temp1;
- var $async$_async_evaluate$_parenthesize$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (!(condition instanceof M.SupportsNegation))
- if (condition instanceof U.SupportsOperation)
- t1 = operator == null || operator !== condition.operator;
- else
- t1 = false;
- else
- t1 = true;
- $async$goto = t1 ? 3 : 5;
- break;
- case 3:
- // then
- $async$temp1 = H;
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
- case 6:
- // returning from await.
- $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = 7;
- return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
- case 7:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_parenthesize$2, $async$completer);
- },
- visitVariableDeclaration$1: function(node) {
- return this.visitVariableDeclaration$body$_EvaluateVisitor(node);
- },
- visitVariableDeclaration$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, value, t2, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitVariableDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (node.isGuarded) {
- if (node.namespace == null && $async$self._async_evaluate$_environment._async_environment$_variables.length === 1) {
- t1 = $async$self._async_evaluate$_configuration._values;
- t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
- if (t1 != null) {
- $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure2($async$self, node, t1));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- value = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure3($async$self, node));
- if (value != null && !value.$eq(0, C.C_SassNull0)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- if (node.isGlobal && !$async$self._async_evaluate$_environment.globalVariableExists$1(node.name)) {
- t1 = $async$self._async_evaluate$_environment._async_environment$_variables.length === 1 ? "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." : "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `" + B.declarationName(node.span) + ": null` at the root of the\nstylesheet.";
- t2 = node.span;
- $async$self._async_evaluate$_logger.warn$4$deprecation$span$trace(t1, true, t2, $async$self._async_evaluate$_stackTrace$1(t2));
- }
- $async$temp1 = node;
- $async$temp2 = E;
- $async$temp3 = node;
- $async$goto = 3;
- return P._asyncAwait(node.expression.accept$1($async$self), $async$visitVariableDeclaration$1);
- case 3:
- // returning from await.
- $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure4($async$self, $async$temp3, $async$result.withoutSlash$0()));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
- },
- visitUseRule$1: function(node) {
- return this.visitUseRule$body$_EvaluateVisitor(node);
- },
- visitUseRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, configuration, t3, _i, variable, t4, t5, t1, t2, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitUseRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.configuration;
- t2 = t1.length;
- $async$goto = t2 === 0 ? 3 : 5;
- break;
- case 3:
- // then
- configuration = C.Configuration_Map_empty_null_true;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
- _i = 0;
- case 6:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- variable = t1[_i];
- t4 = variable.name;
- t5 = variable.expression;
- $async$temp1 = t3;
- $async$temp2 = t4;
- $async$temp3 = Z;
- $async$goto = 9;
- return P._asyncAwait(t5.accept$1($async$self), $async$visitUseRule$1);
- case 9:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate$_expressionNode$1(t5)));
- case 7:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- configuration = new A.Configuration(t3, node, false);
- case 4:
- // join
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- $async$self._async_evaluate$_assertConfigurationIsEmpty$1(configuration);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitUseRule$1, $async$completer);
- },
- visitWarnRule$1: function(node) {
- return this.visitWarnRule$body$_EvaluateVisitor(node);
- },
- visitWarnRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, value, t1;
- var $async$visitWarnRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitWarnRule_closure0($async$self, node), type$.Value), $async$visitWarnRule$1);
- case 3:
- // returning from await.
- value = $async$result;
- t1 = value instanceof D.SassString ? value.text : $async$self._async_evaluate$_serialize$2(value, node.expression);
- $async$self._async_evaluate$_logger.warn$2$trace(t1, $async$self._async_evaluate$_stackTrace$1(node.span));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitWarnRule$1, $async$completer);
- },
- visitWhileRule$1: function(node) {
- return this._async_evaluate$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitWhileRule_closure0(this, node), true, node.hasDeclarations, type$.Value);
- },
- visitBinaryOperationExpression$1: function(node) {
- return this._addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitBinaryOperationExpression_closure0(this, node), type$.Value);
- },
- visitValueExpression$1: function(node) {
- return this.visitValueExpression$body$_EvaluateVisitor(node);
- },
- visitValueExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue;
- var $async$visitValueExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitValueExpression$1, $async$completer);
- },
- visitVariableExpression$1: function(node) {
- return this.visitVariableExpression$body$_EvaluateVisitor(node);
- },
- visitVariableExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, result;
- var $async$visitVariableExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- result = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableExpression_closure0($async$self, node));
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined variable.", node.span));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitVariableExpression$1, $async$completer);
- },
- visitUnaryOperationExpression$1: function(node) {
- return this.visitUnaryOperationExpression$body$_EvaluateVisitor(node);
- },
- visitUnaryOperationExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, operand, t1;
- var $async$visitUnaryOperationExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- $async$outer:
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
- case 3:
- // returning from await.
- operand = $async$result;
- t1 = node.operator;
- switch (t1) {
- case C.UnaryOperator_j2w:
- $async$returnValue = operand.unaryPlus$0();
- // goto return
- $async$goto = 1;
- break $async$outer;
- case C.UnaryOperator_U4G:
- $async$returnValue = operand.unaryMinus$0();
- // goto return
- $async$goto = 1;
- break $async$outer;
- case C.UnaryOperator_zDx:
- operand.toString;
- $async$returnValue = new D.SassString("/" + N.serializeValue0(operand, false, true), false);
- // goto return
- $async$goto = 1;
- break $async$outer;
- case C.UnaryOperator_not_not:
- $async$returnValue = operand.unaryNot$0();
- // goto return
- $async$goto = 1;
- break $async$outer;
- default:
- throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
- }
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
- },
- visitBooleanExpression$1: function(node) {
- return this.visitBooleanExpression$body$_EvaluateVisitor(node);
- },
- visitBooleanExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassBoolean),
- $async$returnValue;
- var $async$visitBooleanExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value ? C.SassBoolean_true0 : C.SassBoolean_false0;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
- },
- visitIfExpression$1: function(node) {
- return this.visitIfExpression$body$_EvaluateVisitor(node);
- },
- visitIfExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, condition, ifTrue, ifFalse, pair, positional, named, t1;
- var $async$visitIfExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
- case 3:
- // returning from await.
- pair = $async$result;
- positional = pair.item1;
- named = pair.item2;
- t1 = J.getInterceptor$asx(positional);
- $async$self._async_evaluate$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
- condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
- ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
- ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
- $async$goto = 5;
- return P._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
- case 5:
- // returning from await.
- $async$goto = 4;
- return P._asyncAwait(($async$result.get$isTruthy() ? ifTrue : ifFalse).accept$1($async$self), $async$visitIfExpression$1);
- case 4:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitIfExpression$1, $async$completer);
- },
- visitNullExpression$1: function(node) {
- return this.visitNullExpression$body$_EvaluateVisitor(node);
- },
- visitNullExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassNull),
- $async$returnValue;
- var $async$visitNullExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = C.C_SassNull0;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitNullExpression$1, $async$completer);
- },
- visitNumberExpression$1: function(node) {
- return this.visitNumberExpression$body$_EvaluateVisitor(node);
- },
- visitNumberExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber),
- $async$returnValue, t1;
- var $async$visitNumberExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.unit;
- t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_String);
- t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
- $async$returnValue = new T.SassNumber(node.value, t1, C.List_empty, null);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitNumberExpression$1, $async$completer);
- },
- visitParenthesizedExpression$1: function(node) {
- return node.expression.accept$1(this);
- },
- visitColorExpression$1: function(node) {
- return this.visitColorExpression$body$_EvaluateVisitor(node);
- },
- visitColorExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassColor),
- $async$returnValue;
- var $async$visitColorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitColorExpression$1, $async$completer);
- },
- visitListExpression$1: function(node) {
- return this.visitListExpression$body$_EvaluateVisitor(node);
- },
- visitListExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassList),
- $async$returnValue, $async$self = this, $async$temp1;
- var $async$visitListExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = D;
- $async$goto = 3;
- return P._asyncAwait(B.mapAsync(node.contents, new E._EvaluateVisitor_visitListExpression_closure0($async$self), type$.Expression, type$.Value), $async$visitListExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$temp1.SassList$($async$result, node.separator, node.hasBrackets);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitListExpression$1, $async$completer);
- },
- visitMapExpression$1: function(node) {
- return this.visitMapExpression$body$_EvaluateVisitor(node);
- },
- visitMapExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassMap),
- $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, t1, map, keyNodes;
- var $async$visitMapExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.Value;
- map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
- t2 = node.pairs, t3 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- pair = t2[_i];
- t4 = pair.item1;
- $async$goto = 6;
- return P._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
- case 6:
- // returning from await.
- keyValue = $async$result;
- $async$goto = 7;
- return P._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
- case 7:
- // returning from await.
- valueValue = $async$result;
- if (map.containsKey$1(keyValue))
- 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$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(t4.get$span())));
- map.$indexSet(0, keyValue, valueValue);
- keyNodes.$indexSet(0, keyValue, t4);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = new A.SassMap(H.ConstantMap_ConstantMap$from(map, t1, t1));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitMapExpression$1, $async$completer);
- },
- visitFunctionExpression$1: function(node) {
- return this.visitFunctionExpression$body$_EvaluateVisitor(node);
- },
- visitFunctionExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, oldInFunction, result, t1, t2, plainName, $async$temp1, $async$temp2;
- var $async$visitFunctionExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- t2 = node.name;
- plainName = t2.get$asPlain();
- t1.$function = null;
- $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;
- break;
- case 3:
- // then
- if (node.namespace != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined function.", node.span));
- $async$temp1 = t1;
- $async$temp2 = L;
- $async$goto = 5;
- return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t2), $async$visitFunctionExpression$1);
- case 5:
- // returning from await.
- $async$temp1.$function = new $async$temp2.PlainCssCallable($async$result);
- case 4:
- // join
- oldInFunction = $async$self._async_evaluate$_inFunction;
- $async$self._async_evaluate$_inFunction = true;
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure2(t1, $async$self, node), type$.Value), $async$visitFunctionExpression$1);
- case 6:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_inFunction = oldInFunction;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
- },
- _async_evaluate$_getFunction$2$namespace: function($name, namespace) {
- var local = this._async_evaluate$_environment.getFunction$2$namespace($name, namespace);
- if (local != null || namespace != null)
- return local;
- return this._async_evaluate$_builtInFunctions.$index(0, $name);
- },
- _async_evaluate$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
- return this._runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run);
- },
- _runUserDefinedCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan, run) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, evaluated, t1, $name;
- var $async$_async_evaluate$_runUserDefinedCallable$4 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runUserDefinedCallable$4);
- case 3:
- // returning from await.
- evaluated = $async$result;
- t1 = callable.declaration.name;
- $name = t1 == null ? "@content" : t1 + "()";
- $async$goto = 4;
- return P._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3($name, nodeWithSpan, new E._EvaluateVisitor__runUserDefinedCallable_closure0($async$self, callable, evaluated, nodeWithSpan, run), type$.Value), $async$_async_evaluate$_runUserDefinedCallable$4);
- case 4:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_runUserDefinedCallable$4, $async$completer);
- },
- _async_evaluate$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
- return this._runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
- },
- _runFunctionCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, result, t1, t2, t3, first, _i, argument, rest, $async$temp1;
- var $async$_async_evaluate$_runFunctionCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = type$.AsyncBuiltInCallable._is(callable) ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate$_runFunctionCallable$3);
- case 6:
- // returning from await.
- result = $async$result;
- if (result == null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Custom functions may not return Dart's null.", nodeWithSpan.get$span()));
- $async$returnValue = result.withoutSlash$0();
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = type$.UserDefinedCallable_AsyncEnvironment._is(callable) ? 7 : 9;
- break;
- case 7:
- // then
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- $async$returnValue = $async$result.withoutSlash$0();
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- $async$goto = callable instanceof L.PlainCssCallable ? 11 : 13;
- break;
- case 11:
- // then
- t1 = $arguments.named;
- if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Plain CSS functions don't support keyword arguments.", nodeWithSpan.get$span()));
- t1 = H.S(callable.name) + "(";
- t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
- case 14:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 16;
- break;
- }
- argument = t2[_i];
- if (first)
- first = false;
- else
- t1 += ", ";
- $async$temp1 = H;
- $async$goto = 17;
- return P._asyncAwait($async$self._evaluateToCss$1(argument), $async$_async_evaluate$_runFunctionCallable$3);
- case 17:
- // returning from await.
- t1 += $async$temp1.S($async$result);
- case 15:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 14;
- break;
- case 16:
- // after for
- t2 = $arguments.rest;
- $async$goto = 18;
- return P._asyncAwait(t2 == null ? null : t2.accept$1($async$self), $async$_async_evaluate$_runFunctionCallable$3);
- case 18:
- // returning from await.
- rest = $async$result;
- if (rest != null) {
- if (!first)
- t1 += ", ";
- t2 = t1 + H.S($async$self._async_evaluate$_serialize$2(rest, t2));
- t1 = t2;
- }
- t1 += H.Primitives_stringFromCharCode(41);
- $async$returnValue = new D.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 12;
- break;
- case 13:
- // else
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 12:
- // join
- case 8:
- // join
- case 4:
- // join
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_runFunctionCallable$3, $async$completer);
- },
- _async_evaluate$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
- return this._runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
- },
- _runBuiltInCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $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;
- var $async$_async_evaluate$_runBuiltInCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_evaluateArguments$2$trackSpans($arguments, false), $async$_async_evaluate$_runBuiltInCallable$3);
- case 3:
- // returning from await.
- evaluated = $async$result;
- oldCallableNode = $async$self._async_evaluate$_callableNode;
- $async$self._async_evaluate$_callableNode = nodeWithSpan;
- namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_String);
- tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
- overload = tuple.item1;
- callback = tuple.item2;
- $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__runBuiltInCallable_closure1(overload, evaluated, namedSet));
- declaredArguments = overload.$arguments;
- i = evaluated.positional.length, t1 = declaredArguments.length;
- case 4:
- // for condition
- if (!(i < t1)) {
- // goto after for
- $async$goto = 6;
- break;
- }
- argument = declaredArguments[i];
- t2 = evaluated.positional;
- t3 = evaluated.named.remove$1(0, argument.name);
- $async$goto = t3 == null ? 7 : 8;
- break;
- case 7:
- // then
- t3 = argument.defaultValue;
- $async$goto = 9;
- return P._asyncAwait(t3 == null ? null : t3.accept$1($async$self), $async$_async_evaluate$_runBuiltInCallable$3);
- case 9:
- // returning from await.
- t3 = $async$result;
- case 8:
- // join
- t2.push(t3);
- case 5:
- // for update
- ++i;
- // goto for condition
- $async$goto = 4;
- break;
- case 6:
- // after for
- if (overload.restArgument != null) {
- if (evaluated.positional.length > t1) {
- rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
- C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
- } else
- rest = C.List_empty5;
- t1 = evaluated.named;
- t2 = evaluated.separator === C.ListSeparator_undecided ? C.ListSeparator_comma : evaluated.separator;
- t3 = type$.Value;
- argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t1, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
- argumentList.SassList$3$brackets(rest, t2, false);
- evaluated.positional.push(argumentList);
- } else
- argumentList = null;
- result = null;
- $async$handler = 11;
- $async$goto = 14;
- return P._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate$_runBuiltInCallable$3);
- case 14:
- // returning from await.
- result = $async$result;
- $async$handler = 2;
- // goto after finally
- $async$goto = 13;
- break;
- case 11:
- // catch
- $async$handler = 10;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (type$.SassRuntimeException._is(t1))
- throw $async$exception;
- else if (t1 instanceof E.MultiSpanSassScriptException) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.MultiSpanSassException) {
- error0 = t1;
- 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())));
- } else {
- error1 = t1;
- message = null;
- try {
- message = H._asStringNullable(J.get$message$x(error1));
- } catch (exception) {
- H.unwrapException($async$exception);
- message = J.toString$0$(error1);
- }
- throw H.wrapException($async$self._async_evaluate$_exception$2(message, nodeWithSpan.get$span()));
- }
- // goto after finally
- $async$goto = 13;
- break;
- case 10:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 13:
- // after finally
- $async$self._async_evaluate$_callableNode = oldCallableNode;
- if (argumentList == null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = evaluated.named;
- if (t1.get$isEmpty(t1)) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (argumentList._wereKeywordsAccessed) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + B.pluralize("argument", J.get$length$asx(evaluated.named.get$keys()), null) + " named " + H.S(B.toSentence(J.map$1$1$ax(evaluated.named.get$keys(), new E._EvaluateVisitor__runBuiltInCallable_closure2(), type$.Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_runBuiltInCallable$3, $async$completer);
- },
- _async_evaluate$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
- return this._evaluateArguments$body$_EvaluateVisitor($arguments, trackSpans);
- },
- _async_evaluate$_evaluateArguments$1: function($arguments) {
- return this._async_evaluate$_evaluateArguments$2$trackSpans($arguments, null);
- },
- _evaluateArguments$body$_EvaluateVisitor: function($arguments, trackSpans) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$._ArgumentResults),
- $async$returnValue, $async$self = this, t1, t2, t3, _i, t4, t5, t6, t7, named, t8, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, $async$temp1;
- var $async$_async_evaluate$_evaluateArguments$2$trackSpans = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (trackSpans == null)
- trackSpans = $async$self._async_evaluate$_sourceMap;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
- t2 = $arguments.positional, t3 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$temp1 = t1;
- $async$goto = 6;
- return P._asyncAwait(t2[_i].accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
- case 6:
- // returning from await.
- $async$temp1.push($async$result);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t4 = $arguments.named;
- t5 = type$.String;
- t6 = type$.Expression;
- t7 = type$.Value;
- $async$goto = 7;
- return P._asyncAwait(B.mapMapAsync(t4, new E._EvaluateVisitor__evaluateArguments_closure2($async$self), t5, t6, t5, t7), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
- case 7:
- // returning from await.
- named = $async$result;
- if (trackSpans) {
- t8 = H.setRuntimeTypeInfo([], type$.JSArray_AstNode);
- for (_i = 0; _i < t3; ++_i)
- t8.push($async$self._async_evaluate$_expressionNode$1(t2[_i]));
- positionalNodes = t8;
- } else
- positionalNodes = null;
- namedNodes = trackSpans ? Y.mapMap(t4, null, new E._EvaluateVisitor__evaluateArguments_closure3($async$self), t5, t6, t5, type$.AstNode) : null;
- t2 = $arguments.rest;
- if (t2 == null) {
- $async$returnValue = E._ArgumentResults$0(t1, named, C.ListSeparator_undecided, namedNodes, positionalNodes);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 8;
- return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
- case 8:
- // returning from await.
- rest = $async$result;
- restNodeForSpan = trackSpans ? $async$self._async_evaluate$_expressionNode$1(t2) : null;
- if (rest instanceof A.SassMap) {
- $async$self._async_evaluate$_addRestMap$1$3(named, rest, t2, t7);
- if (namedNodes != null) {
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode);
- for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t4 = type$.SassString; t3.moveNext$0();)
- t2.$indexSet(0, t4._as(t3.get$current(t3)).text, restNodeForSpan);
- namedNodes.addAll$1(0, t2);
- }
- separator = C.ListSeparator_undecided;
- } else if (rest instanceof D.SassList) {
- t2 = rest._list$_contents;
- C.JSArray_methods.addAll$1(t1, t2);
- if (positionalNodes != null)
- C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, type$.AstNode));
- separator = rest.separator;
- if (rest instanceof D.SassArgumentList) {
- rest._wereKeywordsAccessed = true;
- rest._keywords.forEach$1(0, new E._EvaluateVisitor__evaluateArguments_closure4(named, namedNodes, restNodeForSpan));
- }
- } else {
- t1.push(rest);
- if (positionalNodes != null)
- positionalNodes.push(restNodeForSpan);
- separator = C.ListSeparator_undecided;
- }
- t2 = $arguments.keywordRest;
- if (t2 == null) {
- $async$returnValue = E._ArgumentResults$0(t1, named, separator, namedNodes, positionalNodes);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 9;
- return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
- case 9:
- // returning from await.
- keywordRest = $async$result;
- keywordRestNodeForSpan = trackSpans ? $async$self._async_evaluate$_expressionNode$1(t2) : null;
- if (keywordRest instanceof A.SassMap) {
- $async$self._async_evaluate$_addRestMap$1$3(named, keywordRest, t2, t7);
- if (namedNodes != null) {
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode);
- for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.SassString; t3.moveNext$0();)
- t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
- namedNodes.addAll$1(0, t2);
- }
- $async$returnValue = E._ArgumentResults$0(t1, named, separator, namedNodes, positionalNodes);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw H.wrapException($async$self._async_evaluate$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", t2.get$span()));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_evaluateArguments$2$trackSpans, $async$completer);
- },
- _async_evaluate$_evaluateMacroArguments$1: function(invocation) {
- return this._evaluateMacroArguments$body$_EvaluateVisitor(invocation);
- },
- _evaluateMacroArguments$body$_EvaluateVisitor: function(invocation) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_of_List_Expression_and_Map_String_Expression),
- $async$returnValue, $async$self = this, t3, positional, named, rest, keywordRest, t1, t2;
- var $async$_async_evaluate$_evaluateMacroArguments$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = invocation.$arguments;
- t2 = t1.rest;
- if (t2 == null) {
- $async$returnValue = new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
- // goto return
- $async$goto = 1;
- break;
- }
- t3 = t1.positional;
- positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
- t3 = type$.Expression;
- named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, t3);
- $async$goto = 3;
- return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
- case 3:
- // returning from await.
- rest = $async$result;
- if (rest instanceof A.SassMap)
- $async$self._async_evaluate$_addRestMap$1$4(named, rest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure3(), t3);
- else if (rest instanceof D.SassList) {
- t2 = rest._list$_contents;
- C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new E._EvaluateVisitor__evaluateMacroArguments_closure4(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
- if (rest instanceof D.SassArgumentList) {
- rest._wereKeywordsAccessed = true;
- rest._keywords.forEach$1(0, new E._EvaluateVisitor__evaluateMacroArguments_closure5(named));
- }
- } else
- positional.push(new F.ValueExpression(rest, null));
- t1 = t1.keywordRest;
- if (t1 == null) {
- $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
- case 4:
- // returning from await.
- keywordRest = $async$result;
- if (keywordRest instanceof A.SassMap) {
- $async$self._async_evaluate$_addRestMap$1$4(named, keywordRest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure6(), t3);
- $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw H.wrapException($async$self._async_evaluate$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", invocation.span));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_evaluateMacroArguments$1, $async$completer);
- },
- _async_evaluate$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
- var t1 = {};
- t1.convert = convert;
- if (convert == null)
- t1.convert = new E._EvaluateVisitor__addRestMap_closure1($T);
- map.contents.forEach$1(0, new E._EvaluateVisitor__addRestMap_closure2(t1, this, values, map, nodeWithSpan));
- },
- _async_evaluate$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
- return this._async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
- },
- _async_evaluate$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
- return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__verifyArguments_closure0($arguments, positional, named));
- },
- visitSelectorExpression$1: function(node) {
- return this.visitSelectorExpression$body$_EvaluateVisitor(node);
- },
- visitSelectorExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1;
- var $async$visitSelectorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_styleRule;
- if (t1 == null) {
- $async$returnValue = C.C_SassNull0;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$returnValue = t1.originalSelector.get$asSassList();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
- },
- visitStringExpression$1: function(node) {
- return this.visitStringExpression$body$_EvaluateVisitor(node);
- },
- visitStringExpression$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassString),
- $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
- var $async$visitStringExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = D;
- $async$temp2 = J;
- $async$goto = 3;
- return P._asyncAwait(B.mapAsync(node.text.contents, new E._EvaluateVisitor_visitStringExpression_closure0($async$self), type$.Object, type$.String), $async$visitStringExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = new $async$temp1.SassString($async$temp2.join$0$ax($async$result), node.hasQuotes);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitStringExpression$1, $async$completer);
- },
- visitCssAtRule$1: function(node) {
- return this.visitCssAtRule$body$_EvaluateVisitor(node);
- },
- visitCssAtRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t1, t2, wasInKeyframes, wasInUnknownAtRule;
- var $async$visitCssAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("At-rules may not be used within nested declarations.", node.span));
- if (node.isChildless) {
- t1 = $async$self._async_evaluate$_parent;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- t1.addChild$1(new U.ModifiableCssAtRule(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
- wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
- t1 = node.name;
- if (B.unvendor(t1.get$value(t1)) === "keyframes")
- $async$self._async_evaluate$_inKeyframes = true;
- else
- $async$self._async_evaluate$_inUnknownAtRule = true;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- $async$goto = 3;
- 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_ModifiableCssNode), t2), new E._EvaluateVisitor_visitCssAtRule_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssAtRule_closure2(), type$.ModifiableCssAtRule, type$.Null), $async$visitCssAtRule$1);
- case 3:
- // returning from await.
- $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
- $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssAtRule$1, $async$completer);
- },
- visitCssComment$1: function(node) {
- return this.visitCssComment$body$_EvaluateVisitor(node);
- },
- visitCssComment$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2;
- var $async$visitCssComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_parent;
- t2 = $async$self._async_evaluate$_root;
- if (t1 == t2 && $async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source))
- $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
- $async$self._async_evaluate$_parent.addChild$1(new R.ModifiableCssComment(node.text, node.span));
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssComment$1, $async$completer);
- },
- visitCssDeclaration$1: function(node) {
- return this.visitCssDeclaration$body$_EvaluateVisitor(node);
- },
- visitCssDeclaration$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$self._async_evaluate$_parent.addChild$1(L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap));
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
- },
- visitCssImport$1: function(node) {
- return this.visitCssImport$body$_EvaluateVisitor(node);
- },
- visitCssImport$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, modifiableNode, t1, t2;
- var $async$visitCssImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- modifiableNode = F.ModifiableCssImport$(node.url, node.span, node.media, node.supports);
- t1 = $async$self._async_evaluate$_parent;
- t2 = $async$self._async_evaluate$_root;
- if (t1 != t2)
- t1.addChild$1(modifiableNode);
- else if ($async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
- $async$self._async_evaluate$_root.addChild$1(modifiableNode);
- $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
- } else {
- t1 = $async$self._async_evaluate$_outOfOrderImports;
- (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
- }
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssImport$1, $async$completer);
- },
- visitCssKeyframeBlock$1: function(node) {
- return this.visitCssKeyframeBlock$body$_EvaluateVisitor(node);
- },
- visitCssKeyframeBlock$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$visitCssKeyframeBlock$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- $async$goto = 2;
- 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_ModifiableCssNode), t1), new E._EvaluateVisitor_visitCssKeyframeBlock_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssKeyframeBlock_closure2(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitCssKeyframeBlock$1);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
- },
- visitCssMediaRule$1: function(node) {
- return this.visitCssMediaRule$body$_EvaluateVisitor(node);
- },
- visitCssMediaRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t1, mergedQueries;
- var $async$visitCssMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Media rules may not be used within nested declarations.", node.span));
- t1 = $async$self._async_evaluate$_mediaQueries;
- mergedQueries = t1 == null ? null : $async$self._async_evaluate$_mergeMediaQueries$2(t1, node.queries);
- t1 = mergedQueries == null;
- if (!t1 && mergedQueries.length === 0) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = t1 ? node.queries : mergedQueries;
- $async$goto = 3;
- 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$.ModifiableCssMediaRule, type$.Null), $async$visitCssMediaRule$1);
- case 3:
- // returning from await.
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
- },
- visitCssStyleRule$1: function(node) {
- return this.visitCssStyleRule$body$_EvaluateVisitor(node);
- },
- visitCssStyleRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule;
- var $async$visitCssStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Style rules may not be used within nested declarations.", node.span));
- t1 = node.selector;
- t2 = t1.value;
- t3 = $async$self._async_evaluate$_styleRule;
- t3 = t3 == null ? null : t3.originalSelector;
- originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !$async$self._async_evaluate$_atRootExcludingStyleRule);
- rule = X.ModifiableCssStyleRule$($async$self._async_evaluate$_extender.addSelector$3(originalSelector, t1.span, $async$self._async_evaluate$_mediaQueries), node.span, originalSelector);
- oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
- $async$self._async_evaluate$_atRootExcludingStyleRule = false;
- $async$goto = 2;
- 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$.ModifiableCssStyleRule, type$.Null), $async$visitCssStyleRule$1);
- case 2:
- // returning from await.
- $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- if (!($async$self._async_evaluate$_styleRule != null && !oldAtRootExcludingStyleRule)) {
- t1 = $async$self._async_evaluate$_parent.children;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- t1 = $async$self._async_evaluate$_parent.children;
- t1.get$last(t1).isGroupEnd = true;
- }
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
- },
- visitCssStylesheet$1: function(node) {
- return this.visitCssStylesheet$body$_EvaluateVisitor(node);
- },
- visitCssStylesheet$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$visitCssStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.get$iterator$ax(node.get$children());
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
- },
- visitCssSupportsRule$1: function(node) {
- return this.visitCssSupportsRule$body$_EvaluateVisitor(node);
- },
- visitCssSupportsRule$body$_EvaluateVisitor: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$visitCssSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate$_exception$2("Supports rules may not be used within nested declarations.", node.span));
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- $async$goto = 2;
- 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_ModifiableCssNode), t1), new E._EvaluateVisitor_visitCssSupportsRule_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitCssSupportsRule$1);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
- },
- _async_evaluate$_handleReturn$1$2: function(list, callback) {
- return this._handleReturn$body$_EvaluateVisitor(list, callback, null);
- },
- _async_evaluate$_handleReturn$2: function(list, callback) {
- return this._async_evaluate$_handleReturn$1$2(list, callback, type$.dynamic);
- },
- _handleReturn$body$_EvaluateVisitor: function(list, callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, t1, _i, result;
- var $async$_async_evaluate$_handleReturn$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = list.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < list.length)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate$_handleReturn$1$2);
- case 6:
- // returning from await.
- result = $async$result;
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_handleReturn$1$2, $async$completer);
- },
- _async_evaluate$_withEnvironment$1$2: function(environment, callback, $T) {
- return this._withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $T);
- },
- _withEnvironment$body$_EvaluateVisitor: function(environment, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldEnvironment;
- var $async$_async_evaluate$_withEnvironment$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldEnvironment = $async$self._async_evaluate$_environment;
- $async$self._async_evaluate$_environment = environment;
- $async$goto = 3;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withEnvironment$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_environment = oldEnvironment;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_withEnvironment$1$2, $async$completer);
- },
- _async_evaluate$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
- return this._interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor);
- },
- _async_evaluate$_interpolationToValue$1: function(interpolation) {
- return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
- },
- _async_evaluate$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
- return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
- },
- _interpolationToValue$body$_EvaluateVisitor: function(interpolation, trim, warnForColor) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.CssValue_String),
- $async$returnValue, $async$self = this, result, t1;
- var $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor);
- case 3:
- // returning from await.
- result = $async$result;
- t1 = trim ? B.trimAscii(result, true) : result;
- $async$returnValue = new F.CssValue(t1, interpolation.span, type$.CssValue_String);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_interpolationToValue$3$trim$warnForColor, $async$completer);
- },
- _async_evaluate$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
- return this._performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor);
- },
- _async_evaluate$_performInterpolation$1: function(interpolation) {
- return this._async_evaluate$_performInterpolation$2$warnForColor(interpolation, false);
- },
- _performInterpolation$body$_EvaluateVisitor: function(interpolation, warnForColor) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, $async$temp1;
- var $async$_async_evaluate$_performInterpolation$2$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = J;
- $async$goto = 3;
- return P._asyncAwait(B.mapAsync(interpolation.contents, new E._EvaluateVisitor__performInterpolation_closure0($async$self, warnForColor), type$.Object, type$.String), $async$_async_evaluate$_performInterpolation$2$warnForColor);
- case 3:
- // returning from await.
- $async$returnValue = $async$temp1.join$0$ax($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_performInterpolation$2$warnForColor, $async$completer);
- },
- _evaluateToCss$2$quote: function(expression, quote) {
- return this._evaluateToCss$body$_EvaluateVisitor(expression, quote);
- },
- _evaluateToCss$1: function(expression) {
- return this._evaluateToCss$2$quote(expression, true);
- },
- _evaluateToCss$body$_EvaluateVisitor: function(expression, quote) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this;
- var $async$_evaluateToCss$2$quote = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(expression.accept$1($async$self), $async$_evaluateToCss$2$quote);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate$_serialize$3$quote($async$result, expression, quote);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_evaluateToCss$2$quote, $async$completer);
- },
- _async_evaluate$_serialize$3$quote: function(value, nodeWithSpan, quote) {
- return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__serialize_closure0(value, quote));
- },
- _async_evaluate$_serialize$2: function(value, nodeWithSpan) {
- return this._async_evaluate$_serialize$3$quote(value, nodeWithSpan, true);
- },
- _async_evaluate$_expressionNode$1: function(expression) {
- var t1;
- if (!this._async_evaluate$_sourceMap)
- return null;
- if (expression instanceof S.VariableExpression) {
- t1 = this._async_evaluate$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
- return t1 == null ? expression : t1;
- } else
- return expression;
- },
- _async_evaluate$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
- return this._withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $T);
- },
- _async_evaluate$_withParent$2$2: function(node, callback, $S, $T) {
- return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
- },
- _async_evaluate$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
- return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
- },
- _withParent$body$_EvaluateVisitor: function(node, callback, scopeWhen, through, $S, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, oldParent, result;
- var $async$_async_evaluate$_withParent$2$4$scopeWhen$through = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$self._async_evaluate$_addChild$2$through(node, through);
- oldParent = $async$self._async_evaluate$_parent;
- $async$self._async_evaluate$_parent = node;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate$_withParent$2$4$scopeWhen$through);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_parent = oldParent;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_withParent$2$4$scopeWhen$through, $async$completer);
- },
- _async_evaluate$_addChild$2$through: function(node, through) {
- var grandparent,
- $parent = this._async_evaluate$_parent;
- if (through != null) {
- for (; through.call$1($parent);)
- $parent = $parent._parent;
- if ($parent.get$hasFollowingSibling()) {
- grandparent = $parent._parent;
- $parent = $parent.copyWithoutChildren$0();
- grandparent.addChild$1($parent);
- }
- }
- $parent.addChild$1(node);
- },
- _async_evaluate$_addChild$1: function(node) {
- return this._async_evaluate$_addChild$2$through(node, null);
- },
- _async_evaluate$_withStyleRule$1$2: function(rule, callback, $T) {
- return this._withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $T);
- },
- _withStyleRule$body$_EvaluateVisitor: function(rule, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldRule;
- var $async$_async_evaluate$_withStyleRule$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldRule = $async$self._async_evaluate$_styleRule;
- $async$self._async_evaluate$_styleRule = rule;
- $async$goto = 3;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStyleRule$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_styleRule = oldRule;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_withStyleRule$1$2, $async$completer);
- },
- _async_evaluate$_withMediaQueries$1$2: function(queries, callback, $T) {
- return this._withMediaQueries$body$_EvaluateVisitor(queries, callback, $T, $T);
- },
- _withMediaQueries$body$_EvaluateVisitor: function(queries, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldMediaQueries;
- var $async$_async_evaluate$_withMediaQueries$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldMediaQueries = $async$self._async_evaluate$_mediaQueries;
- $async$self._async_evaluate$_mediaQueries = queries;
- $async$goto = 3;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withMediaQueries$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_mediaQueries = oldMediaQueries;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_withMediaQueries$1$2, $async$completer);
- },
- _async_evaluate$_withStackFrame$1$3: function(member, nodeWithSpan, callback, $T) {
- return this._withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $T);
- },
- _withStackFrame$body$_EvaluateVisitor: function(member, nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, oldMember, result, t1;
- var $async$_async_evaluate$_withStackFrame$1$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_stack;
- t1.push(new S.Tuple2($async$self._async_evaluate$_member, nodeWithSpan, type$.Tuple2_String_AstNode));
- oldMember = $async$self._async_evaluate$_member;
- $async$self._async_evaluate$_member = member;
- $async$goto = 3;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStackFrame$1$3);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_member = oldMember;
- t1.pop();
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_withStackFrame$1$3, $async$completer);
- },
- _async_evaluate$_stackFrame$2: function(member, span) {
- var url = span.file.url;
- return B.frameForSpan(span, member, url != null && this._async_evaluate$_importCache != null ? this._async_evaluate$_importCache.humanize$1(url) : url);
- },
- _async_evaluate$_stackTrace$1: function(span) {
- var t2, _this = this,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
- 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();)
- t1.push(t2.__internal$_current);
- if (span != null)
- t1.push(_this._async_evaluate$_stackFrame$2(_this._async_evaluate$_member, span));
- return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_Frame), type$.Frame), new P._StringStackTrace(null));
- },
- _async_evaluate$_stackTrace$0: function() {
- return this._async_evaluate$_stackTrace$1(null);
- },
- _async_evaluate$_warn$3$deprecation: function(message, span, deprecation) {
- return this._async_evaluate$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._async_evaluate$_stackTrace$1(span));
- },
- _async_evaluate$_warn$2: function(message, span) {
- return this._async_evaluate$_warn$3$deprecation(message, span, false);
- },
- _async_evaluate$_exception$2: function(message, span) {
- var t1 = span == null ? C.JSArray_methods.get$last(this._async_evaluate$_stack).item2.get$span() : span;
- return new E.SassRuntimeException(this._async_evaluate$_stackTrace$1(span), message, t1);
- },
- _async_evaluate$_exception$1: function(message) {
- return this._async_evaluate$_exception$2(message, null);
- },
- _async_evaluate$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
- var t1 = C.JSArray_methods.get$last(this._async_evaluate$_stack).item2.get$span();
- return new E.MultiSpanSassRuntimeException(this._async_evaluate$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
- },
- _async_evaluate$_adjustParseError$1$2: function(nodeWithSpan, callback) {
- var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException) {
- error = t1;
- t1 = error;
- errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
- span = nodeWithSpan.get$span();
- t1 = span;
- t2 = span;
- 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);
- t2 = syntheticFile;
- t1 = span.file.url;
- t2.toString;
- t2 = new H.CodeUnits(t2);
- t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
- t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
- t3.SourceFile$decoded$2$url(t2, t1);
- t1 = span;
- t1 = Y.FileLocation$_(t1.file, t1._file$_start);
- t2 = error;
- t2 = G.SourceSpanException.prototype.get$span.call(t2);
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- t4 = span;
- t4 = Y.FileLocation$_(t4.file, t4._file$_start);
- t5 = error;
- t5 = G.SourceSpanException.prototype.get$span.call(t5);
- syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
- throw H.wrapException(this._async_evaluate$_exception$2(error._span_exception$_message, syntheticSpan));
- } else
- throw exception;
- }
- },
- _async_evaluate$_adjustParseError$2: function(nodeWithSpan, callback) {
- return this._async_evaluate$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _async_evaluate$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
- var error, error0, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.MultiSpanSassScriptException) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.SassScriptException) {
- error0 = t1;
- throw H.wrapException(this._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
- } else
- throw exception;
- }
- },
- _async_evaluate$_addExceptionSpan$2: function(nodeWithSpan, callback) {
- return this._async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _addExceptionSpanAsync$1$2: function(nodeWithSpan, callback, $T) {
- return this._addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T);
- },
- _addExceptionSpanAsync$body$_EvaluateVisitor: function(nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, error0, t1, exception, $async$exception;
- var $async$_addExceptionSpanAsync$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$goto = 7;
- return P._asyncAwait(callback.call$0(), $async$_addExceptionSpanAsync$1$2);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (t1 instanceof E.MultiSpanSassScriptException) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.SassScriptException) {
- error0 = t1;
- throw H.wrapException($async$self._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$_addExceptionSpanAsync$1$2, $async$completer);
- },
- _async_evaluate$_addErrorSpan$1$2: function(nodeWithSpan, callback, $T) {
- return this._addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T);
- },
- _addErrorSpan$body$_EvaluateVisitor: function(nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, t1, exception, $async$exception;
- var $async$_async_evaluate$_addErrorSpan$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$goto = 7;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_addErrorSpan$1$2);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (type$.SassRuntimeException._is(t1)) {
- error = t1;
- t1 = error.get$span();
- 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"))
- throw $async$exception;
- throw H.wrapException(E.SassRuntimeException$(error._span_exception$_message, nodeWithSpan.get$span(), $async$self._async_evaluate$_stackTrace$0()));
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate$_addErrorSpan$1$2, $async$completer);
- }
- };
- E._EvaluateVisitor_closure9.prototype = {
- call$1: function($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._async_evaluate$_environment;
- t2 = variable.text;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- E._EvaluateVisitor_closure10.prototype = {
- call$1: function($arguments) {
- var variable = J.$index$asx($arguments, 0).assertString$1("name"),
- t1 = this.$this._async_evaluate$_environment,
- t2 = variable.text;
- t2.toString;
- return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- E._EvaluateVisitor_closure11.prototype = {
- call$1: function($arguments) {
- var module, t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._async_evaluate$_environment;
- t3 = variable.text;
- t3.toString;
- t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
- 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;
- },
- $signature: 13
- };
- E._EvaluateVisitor_closure12.prototype = {
- call$1: function($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._async_evaluate$_environment;
- t2 = variable.text;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- E._EvaluateVisitor_closure13.prototype = {
- call$1: function($arguments) {
- var t1 = this.$this._async_evaluate$_environment;
- if (!t1._async_environment$_inMixin)
- throw H.wrapException(E.SassScriptException$("content-exists() may only be called within a mixin."));
- return t1._async_environment$_content != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- E._EvaluateVisitor_closure14.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
- module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
- if (module == null)
- throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
- t1 = type$.Value;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new D.SassString(t4.key, true), t4.value);
- }
- return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 30
- };
- E._EvaluateVisitor_closure15.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
- module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
- if (module == null)
- throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
- t1 = type$.Value;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new D.SassString(t4.key, true), new F.SassFunction(t4.value));
- }
- return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 30
- };
- E._EvaluateVisitor_closure16.prototype = {
- call$1: function($arguments) {
- var module, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name"),
- css = t1.$index($arguments, 1).get$isTruthy();
- t1 = t1.$index($arguments, 2).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- if (css && module != null)
- throw H.wrapException("$css and $module may not both be passed at once.");
- if (css)
- callable = new L.PlainCssCallable($name.text);
- else {
- t1 = this.$this;
- callable = t1._async_evaluate$_addExceptionSpan$2(t1._async_evaluate$_callableNode, new E._EvaluateVisitor__closure8(t1, $name, module));
- }
- if (callable != null)
- return new F.SassFunction(callable);
- throw H.wrapException("Function not found: " + $name.toString$0(0));
- },
- $signature: 73
- };
- E._EvaluateVisitor__closure8.prototype = {
- call$0: function() {
- var t2,
- t1 = this.name.text;
- t1.toString;
- t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
- t2 = this.module;
- t2 = t2 == null ? null : t2.text;
- return this.$this._async_evaluate$_getFunction$2$namespace(t1, t2);
- },
- $signature: 45
- };
- E._EvaluateVisitor_closure17.prototype = {
- call$1: function($arguments) {
- return this.$call$body$_EvaluateVisitor_closure0($arguments);
- },
- $call$body$_EvaluateVisitor_closure0: function($arguments) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, invocation, callable, t1, $function, args;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- $function = t1.$index($arguments, 0);
- args = type$.SassArgumentList._as(t1.$index($arguments, 1));
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
- t2 = type$.String;
- t3 = $async$self.$this;
- t4 = t3._async_evaluate$_callableNode.get$span();
- t5 = t3._async_evaluate$_callableNode.get$span();
- args._wereKeywordsAccessed = true;
- t6 = args._keywords;
- if (t6.get$isEmpty(t6))
- t6 = null;
- else {
- args._wereKeywordsAccessed = true;
- t7 = type$.Value;
- t7 = new F.ValueExpression(new A.SassMap(H.ConstantMap_ConstantMap$from(Y.mapMap(t6, new E._EvaluateVisitor__closure6(), new E._EvaluateVisitor__closure7(), t2, t7, t7, t7), t7, t7)), t3._async_evaluate$_callableNode.get$span());
- t6 = t7;
- }
- invocation = X.ArgumentInvocation$(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Expression), t4, t6, new F.ValueExpression(args, t5));
- $async$goto = $function instanceof D.SassString ? 3 : 4;
- break;
- case 3:
- // then
- N.warn("Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(" + $function.toString$0(0) + ")) instead.", true);
- $async$goto = 5;
- return P._asyncAwait(t3.visitFunctionExpression$1(new F.FunctionExpression(null, X.Interpolation$([$function.text], t3._async_evaluate$_callableNode.get$span()), invocation, t3._async_evaluate$_callableNode.get$span())), $async$call$1);
- case 5:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- callable = $function.assertFunction$1("function").callable;
- $async$goto = type$.AsyncCallable._is(callable) ? 6 : 8;
- break;
- case 6:
- // then
- $async$goto = 9;
- return P._asyncAwait(t3._async_evaluate$_runFunctionCallable$3(invocation, callable, t3._async_evaluate$_callableNode), $async$call$1);
- case 9:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- throw H.wrapException(E.SassScriptException$("The function " + H.S(callable.get$name()) + " is asynchronous.\nThis is probably caused by a bug in a Sass plugin."));
- case 7:
- // join
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__closure6.prototype = {
- call$2: function(key, _) {
- return new D.SassString(key, false);
- }
- };
- E._EvaluateVisitor__closure7.prototype = {
- call$2: function(_, value) {
- return value;
- }
- };
- E._EvaluateVisitor_closure18.prototype = {
- call$1: function($arguments) {
- return this.$call$body$_EvaluateVisitor_closure($arguments);
- },
- $call$body$_EvaluateVisitor_closure: function($arguments) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, withMap, values, configuration, t2, t3, t1, url;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
- t1 = t1.$index($arguments, 1).get$realNull();
- t1 = t1 == null ? null : t1.assertMap$1("with");
- withMap = t1 == null ? null : t1.contents;
- if (withMap != null) {
- values = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
- t1 = $async$self.$this;
- withMap.forEach$1(0, new E._EvaluateVisitor__closure4(values, t1._async_evaluate$_callableNode.get$span()));
- configuration = new A.Configuration(values, t1._async_evaluate$_callableNode, false);
- } else
- configuration = C.Configuration_Map_empty_null_true;
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_callableNode;
- t3 = t2.get$span();
- t3 = t3 == null ? null : t3.file.url;
- $async$goto = 3;
- return P._asyncAwait(t1._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new E._EvaluateVisitor__closure5(t1), t3, configuration, true), $async$call$1);
- case 3:
- // returning from await.
- t1._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__closure4.prototype = {
- call$2: function(variable, value) {
- var $name,
- t1 = variable.assertString$1("with key").text;
- t1.toString;
- $name = H.stringReplaceAllUnchecked(t1, "_", "-");
- t1 = this.values;
- if (t1.containsKey$1($name))
- throw H.wrapException("The variable $" + $name + " was configured twice.");
- t1.$indexSet(0, $name, new Z.ConfiguredValue(value, this.span, null));
- }
- };
- E._EvaluateVisitor__closure5.prototype = {
- call$1: function(module) {
- var t1 = this.$this;
- return t1._async_evaluate$_combineCss$2$clone(module, true).accept$1(t1);
- }
- };
- E._EvaluateVisitor_run_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.EvaluateResult),
- $async$returnValue, $async$self = this, t1, t2, url, $async$temp1, $async$temp2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node;
- t2 = t1.span;
- url = t2 == null ? null : t2.file.url;
- if (url != null)
- $async$self.$this._async_evaluate$_activeModules.$indexSet(0, url, null);
- t2 = $async$self.$this;
- $async$temp1 = E;
- $async$temp2 = t2;
- $async$goto = 3;
- return P._asyncAwait(t2._async_evaluate$_execute$2($async$self.importer, t1), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = new $async$temp1.EvaluateResult($async$temp2._async_evaluate$_combineCss$1($async$result));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 111
- };
- E._EvaluateVisitor__withWarnCallback_closure0.prototype = {
- call$2: function(message, deprecation) {
- var t1 = this.$this,
- t2 = t1._async_evaluate$_importSpan;
- return t1._async_evaluate$_warn$3$deprecation(message, t2 == null ? t1._async_evaluate$_callableNode.get$span() : t2, deprecation);
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- E._EvaluateVisitor__loadModule_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $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;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.nodeWithSpan;
- $async$goto = 2;
- return P._asyncAwait(t1._async_evaluate$_loadStylesheet$3$baseUrl(J.toString$0$($async$self.url), t2.get$span(), $async$self.baseUrl), $async$call$0);
- case 2:
- // returning from await.
- result = $async$result;
- importer = result.item1;
- stylesheet = result.item2;
- canonicalUrl = stylesheet.span.file.url;
- t3 = t1._async_evaluate$_activeModules;
- if (t3.containsKey$1(canonicalUrl)) {
- message = $async$self.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : "Module loop: this module is already being loaded.";
- previousLoad = t3.$index(0, canonicalUrl);
- 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$.FileSpan, type$.String)));
- }
- t3.$indexSet(0, canonicalUrl, t2);
- module = null;
- $async$handler = 3;
- $async$goto = 6;
- return P._asyncAwait(t1._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
- case 6:
- // returning from await.
- module = $async$result;
- $async$next.push(5);
- // goto finally
- $async$goto = 4;
- break;
- case 3:
- // uncaught
- $async$next = [1];
- case 4:
- // finally
- $async$handler = 1;
- t3.remove$1(0, canonicalUrl);
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 5:
- // after finally
- $async$handler = 8;
- $async$goto = 11;
- return P._asyncAwait($async$self.callback.call$1(module), $async$call$0);
- case 11:
- // returning from await.
- $async$handler = 1;
- // goto after finally
- $async$goto = 10;
- break;
- case 8:
- // catch
- $async$handler = 7;
- $async$exception = $async$currentError;
- t2 = H.unwrapException($async$exception);
- if (type$.SassRuntimeException._is(t2))
- throw $async$exception;
- else if (t2 instanceof E.MultiSpanSassException) {
- error = t2;
- throw H.wrapException(E.MultiSpanSassRuntimeException$(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._async_evaluate$_stackTrace$1(error.get$span())));
- } else if (t2 instanceof E.SassException) {
- error0 = t2;
- throw H.wrapException(t1._async_evaluate$_exception$2(error0._span_exception$_message, error0.get$span()));
- } else if (t2 instanceof E.MultiSpanSassScriptException) {
- error1 = t2;
- throw H.wrapException(t1._async_evaluate$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
- } else if (t2 instanceof E.SassScriptException) {
- error2 = t2;
- throw H.wrapException(t1._async_evaluate$_exception$1(error2.message));
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 10;
- break;
- case 7:
- // uncaught
- // goto rethrow
- $async$goto = 1;
- break;
- case 10:
- // after finally
- // implicit return
- return P._asyncReturn(null, $async$completer);
- case 1:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor__execute_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, t4, css, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtender, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldAtRootExcludingStyleRule, oldInKeyframes, oldConfiguration;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldImporter = t1._async_evaluate$_importer;
- oldStylesheet = t1._async_evaluate$_stylesheet;
- oldRoot = t1._async_evaluate$_root;
- oldParent = t1._async_evaluate$_parent;
- oldEndOfImports = t1._async_evaluate$_endOfImports;
- oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
- oldExtender = t1._async_evaluate$_extender;
- oldStyleRule = t1._async_evaluate$_styleRule;
- oldMediaQueries = t1._async_evaluate$_mediaQueries;
- oldDeclarationName = t1._async_evaluate$_declarationName;
- oldInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
- oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
- oldInKeyframes = t1._async_evaluate$_inKeyframes;
- oldConfiguration = t1._async_evaluate$_configuration;
- t1._async_evaluate$_importer = $async$self.importer;
- t2 = t1._async_evaluate$_stylesheet = $async$self.stylesheet;
- t3 = t2.span;
- t4 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- t1._async_evaluate$_parent = t1._async_evaluate$_root = new V.ModifiableCssStylesheet(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_ModifiableCssNode), t4);
- t1._async_evaluate$_endOfImports = 0;
- t1._async_evaluate$_outOfOrderImports = null;
- t1._async_evaluate$_extender = $async$self.extender;
- t1._async_evaluate$_declarationName = t1._async_evaluate$_mediaQueries = t1._async_evaluate$_styleRule = null;
- t1._async_evaluate$_inKeyframes = t1._async_evaluate$_atRootExcludingStyleRule = t1._async_evaluate$_inUnknownAtRule = false;
- t4 = $async$self.configuration;
- if (t4 != null)
- t1._async_evaluate$_configuration = t4;
- $async$goto = 2;
- return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
- case 2:
- // returning from await.
- css = t1._async_evaluate$_outOfOrderImports == null ? t1._async_evaluate$_root : new V.CssStylesheet(new P.UnmodifiableListView(t1._async_evaluate$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t3);
- $async$self._box_0.css = css;
- t1._async_evaluate$_importer = oldImporter;
- t1._async_evaluate$_stylesheet = oldStylesheet;
- t1._async_evaluate$_root = oldRoot;
- t1._async_evaluate$_parent = oldParent;
- t1._async_evaluate$_endOfImports = oldEndOfImports;
- t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
- t1._async_evaluate$_extender = oldExtender;
- t1._async_evaluate$_styleRule = oldStyleRule;
- t1._async_evaluate$_mediaQueries = oldMediaQueries;
- t1._async_evaluate$_declarationName = oldDeclarationName;
- t1._async_evaluate$_inUnknownAtRule = oldInUnknownAtRule;
- t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- t1._async_evaluate$_inKeyframes = oldInKeyframes;
- t1._async_evaluate$_configuration = oldConfiguration;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor__combineCss_closure2.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsCss();
- }
- };
- E._EvaluateVisitor__combineCss_closure3.prototype = {
- call$1: function(target) {
- return !this.selectors.contains$1(0, target);
- }
- };
- E._EvaluateVisitor__combineCss_closure4.prototype = {
- call$1: function(module) {
- return module.cloneCss$0();
- }
- };
- E._EvaluateVisitor__extendModules_closure1.prototype = {
- call$1: function(target) {
- return !this.originalSelectors.contains$1(0, target);
- }
- };
- E._EvaluateVisitor__extendModules_closure2.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_Extender);
- },
- $signature: 74
- };
- E._EvaluateVisitor__topologicalModules_visitModule0.prototype = {
- call$1: function(module) {
- var t1, t2, t3, _i, upstream;
- for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- upstream = t1[_i];
- if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
- this.call$1(upstream);
- }
- this.sorted.addFirst$1(module);
- }
- };
- E._EvaluateVisitor_visitAtRootRule_closure2.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.resolved, null);
- return new V.AtRootQueryParser(t1, this.$this._async_evaluate$_logger).parse$0();
- },
- $signature: 63
- };
- E._EvaluateVisitor_visitAtRootRule_closure3.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitAtRootRule_closure4.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 2
- };
- E._EvaluateVisitor__scopeForAtRoot_closure5.prototype = {
- call$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, oldParent;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldParent = t1._async_evaluate$_parent;
- t1._async_evaluate$_parent = $async$self.newParent;
- $async$goto = 2;
- return P._asyncAwait(t1._async_evaluate$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$_parent = oldParent;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot_closure6.prototype = {
- call$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, oldAtRootExcludingStyleRule;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
- t1._async_evaluate$_atRootExcludingStyleRule = true;
- $async$goto = 2;
- return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot_closure7.prototype = {
- call$1: function(callback) {
- return this.$this._async_evaluate$_withMediaQueries$1$2(null, new E._EvaluateVisitor__scopeForAtRoot__closure0(this.innerScope, callback), type$.Null);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot__closure0.prototype = {
- call$0: function() {
- return this.innerScope.call$1(this.callback);
- },
- $signature: 2
- };
- E._EvaluateVisitor__scopeForAtRoot_closure8.prototype = {
- call$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, wasInKeyframes;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- wasInKeyframes = t1._async_evaluate$_inKeyframes;
- t1._async_evaluate$_inKeyframes = false;
- $async$goto = 2;
- return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$_inKeyframes = wasInKeyframes;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot_closure9.prototype = {
- call$1: function($parent) {
- return type$.CssAtRule._is($parent);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot_closure10.prototype = {
- call$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, wasInUnknownAtRule;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- wasInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
- t1._async_evaluate$_inUnknownAtRule = false;
- $async$goto = 2;
- return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor_visitContentRule_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 6:
- // returning from await.
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitDeclaration_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitEachRule_closure2.prototype = {
- call$1: function(value) {
- return this.$this._async_evaluate$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
- }
- };
- E._EvaluateVisitor_visitEachRule_closure3.prototype = {
- call$1: function(value) {
- return this.$this._async_evaluate$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
- }
- };
- E._EvaluateVisitor_visitEachRule_closure4.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this;
- return t1._async_evaluate$_handleReturn$2(_this.list.get$asList(), new E._EvaluateVisitor_visitEachRule__closure0(t1, _this.setVariables, _this.node));
- },
- $signature: 20
- };
- E._EvaluateVisitor_visitEachRule__closure0.prototype = {
- call$1: function(element) {
- var t1;
- this.setVariables.call$1(element);
- t1 = this.$this;
- return t1._async_evaluate$_handleReturn$2(this.node.children, new E._EvaluateVisitor_visitEachRule___closure0(t1));
- }
- };
- E._EvaluateVisitor_visitEachRule___closure0.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor_visitExtendRule_closure0.prototype = {
- call$0: function() {
- var t1 = this.targetText;
- return D.SelectorList_SelectorList$parse(B.trimAscii(t1.get$value(t1), true), false, true, this.$this._async_evaluate$_logger);
- },
- $signature: 31
- };
- E._EvaluateVisitor_visitAtRule_closure1.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t3, _i, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) || t1._async_evaluate$_inKeyframes ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 5:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $async$goto = 8;
- return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- case 6:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 9;
- 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$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 9:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitAtRule__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitAtRule_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._EvaluateVisitor_visitForRule_closure4.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber),
- $async$returnValue, $async$self = this;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result.assertNumber$0();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 75
- };
- E._EvaluateVisitor_visitForRule_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber),
- $async$returnValue, $async$self = this;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result.assertNumber$0();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 75
- };
- E._EvaluateVisitor_visitForRule_closure6.prototype = {
- call$0: function() {
- var t1 = this.toNumber,
- t2 = t1.numeratorUnits;
- t1 = t1.denominatorUnits;
- return T.SassNumber$withUnits(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
- },
- $signature: 8
- };
- E._EvaluateVisitor_visitForRule_closure7.prototype = {
- call$0: function() {
- return this.toNumber.assertInt$0();
- },
- $signature: 8
- };
- E._EvaluateVisitor_visitForRule_closure8.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, i, t3, t4, t5, t6, result, t1, t2, nodeWithSpan;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.node;
- nodeWithSpan = t1._async_evaluate$_expressionNode$1(t2.from);
- i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.children, t2 = t2.variable;
- case 3:
- // for condition
- if (!(i !== t3.to)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t6 = t1._async_evaluate$_environment;
- t6.setLocalVariable$3(t2, new T.SassNumber(i, C.List_empty, C.List_empty, null), nodeWithSpan);
- $async$goto = 6;
- return P._asyncAwait(t1._async_evaluate$_handleReturn$2(t5, new E._EvaluateVisitor_visitForRule__closure0(t1)), $async$call$0);
- case 6:
- // returning from await.
- result = $async$result;
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- i += t4;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 20
- };
- E._EvaluateVisitor_visitForRule__closure0.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor_visitForwardRule_closure1.prototype = {
- call$1: function(module) {
- this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
- }
- };
- E._EvaluateVisitor_visitForwardRule_closure2.prototype = {
- call$1: function(module) {
- this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
- }
- };
- E._EvaluateVisitor__assertConfigurationIsEmpty_closure0.prototype = {
- call$2: function($name, value) {
- var t1 = this.only;
- if (t1 != null && !t1.contains$1(0, $name))
- return;
- t1 = this.nameInError ? "$" + H.S($name) + " was not declared with !default in the @used module." : "This variable was not declared with !default in the @used module.";
- throw H.wrapException(this.$this._async_evaluate$_exception$2(t1, value.configurationSpan));
- }
- };
- E._EvaluateVisitor_visitIfRule_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this;
- return t1._async_evaluate$_handleReturn$2(this._box_0.clause.children, new E._EvaluateVisitor_visitIfRule__closure0(t1));
- },
- $signature: 20
- };
- E._EvaluateVisitor_visitIfRule__closure0.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor__visitDynamicImport_closure0.prototype = {
- call$0: function() {
- return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure();
- },
- $call$body$_EvaluateVisitor__visitDynamicImport_closure: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $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;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- t1 = $async$self.$this;
- t2 = $async$self.$import;
- $async$goto = 3;
- return P._asyncAwait(t1._async_evaluate$_loadStylesheet$3$forImport(t2.url, t2.span, true), $async$call$0);
- case 3:
- // returning from await.
- result = $async$result;
- importer = result.item1;
- stylesheet = result.item2;
- url = stylesheet.span.file.url;
- t3 = t1._async_evaluate$_activeModules;
- if (t3.containsKey$1(url)) {
- previousLoad = t3.$index(0, url);
- 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$.FileSpan, type$.String)));
- }
- t3.$indexSet(0, url, t2);
- t2 = new P.UnmodifiableListView(stylesheet._uses, type$.UnmodifiableListView_UseRule);
- if (t2.get$length(t2) === 0) {
- t2 = new P.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
- t2 = t2.get$length(t2) === 0;
- } else
- t2 = false;
- $async$goto = t2 ? 4 : 5;
- break;
- case 4:
- // then
- oldImporter = t1._async_evaluate$_importer;
- oldStylesheet = t1._async_evaluate$_stylesheet;
- t1._async_evaluate$_importer = importer;
- t1._async_evaluate$_stylesheet = stylesheet;
- $async$goto = 6;
- return P._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
- case 6:
- // returning from await.
- t1._async_evaluate$_importer = oldImporter;
- t1._async_evaluate$_stylesheet = oldStylesheet;
- t3.remove$1(0, url);
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // join
- _box_0.children = null;
- t2 = t1._async_evaluate$_environment;
- t4 = type$.String;
- t5 = type$.Module_AsyncCallable;
- t6 = type$.AstNode;
- t7 = H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable);
- t8 = t2._async_environment$_variables;
- t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
- t9 = t2._async_environment$_variableNodes;
- if (t9 == null)
- t9 = null;
- else
- t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
- t10 = t2._async_environment$_functions;
- t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
- t11 = t2._async_environment$_mixins;
- t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
- 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);
- $async$goto = 7;
- 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);
- case 7:
- // returning from await.
- module = Q._EnvironmentModule__EnvironmentModule0(environment, new V.CssStylesheet(new P.UnmodifiableListView(C.List_empty0, type$.UnmodifiableListView_CssNode), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender, environment._async_environment$_forwardedModules);
- t1._async_evaluate$_environment.importForwards$1(module);
- $async$goto = module.transitivelyContainsCss ? 8 : 9;
- break;
- case 8:
- // then
- $async$goto = 10;
- return P._asyncAwait(t1._async_evaluate$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
- case 10:
- // returning from await.
- case 9:
- // join
- visitor = new E._ImportedCssVisitor0(t1);
- for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
- t1.get$current(t1).accept$1(visitor);
- t3.remove$1(0, url);
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor__visitDynamicImport__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldConfiguration;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldImporter = t1._async_evaluate$_importer;
- oldStylesheet = t1._async_evaluate$_stylesheet;
- oldRoot = t1._async_evaluate$_root;
- oldParent = t1._async_evaluate$_parent;
- oldEndOfImports = t1._async_evaluate$_endOfImports;
- oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
- oldConfiguration = t1._async_evaluate$_configuration;
- t1._async_evaluate$_importer = $async$self.importer;
- t2 = t1._async_evaluate$_stylesheet = $async$self.stylesheet;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- t1._async_evaluate$_parent = t1._async_evaluate$_root = new V.ModifiableCssStylesheet(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3);
- t1._async_evaluate$_endOfImports = 0;
- t1._async_evaluate$_outOfOrderImports = null;
- t3 = new P.UnmodifiableListView(t2._forwards, type$.UnmodifiableListView_ForwardRule);
- if (!t3.get$isEmpty(t3))
- t1._async_evaluate$_configuration = $async$self.environment.toImplicitConfiguration$0();
- $async$goto = 2;
- return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
- case 2:
- // returning from await.
- $async$self._box_0.children = t1._async_evaluate$_addOutOfOrderImports$0();
- t1._async_evaluate$_importer = oldImporter;
- t1._async_evaluate$_stylesheet = oldStylesheet;
- t1._async_evaluate$_root = oldRoot;
- t1._async_evaluate$_parent = oldParent;
- t1._async_evaluate$_endOfImports = oldEndOfImports;
- t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
- t1._async_evaluate$_configuration = oldConfiguration;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitIncludeRule_closure2.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._async_evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
- },
- $signature: 45
- };
- E._EvaluateVisitor_visitIncludeRule_closure3.prototype = {
- call$0: function() {
- return this.node.get$spanWithoutContent();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 24
- };
- E._EvaluateVisitor_visitIncludeRule_closure4.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, t1;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 3;
- 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);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitIncludeRule__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, t1;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 3;
- return P._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new E._EvaluateVisitor_visitIncludeRule___closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitIncludeRule___closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4, t5, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.Value, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t3._async_evaluate$_addErrorSpan$1$2(t4, new E._EvaluateVisitor_visitIncludeRule____closure0(t3, t1[_i]), t5), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitIncludeRule____closure0.prototype = {
- call$0: function() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 20
- };
- E._EvaluateVisitor_visitMediaRule_closure1.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.mergedQueries;
- if (t2 == null)
- t2 = $async$self.queries;
- $async$goto = 2;
- return P._asyncAwait(t1._async_evaluate$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitMediaRule__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t3, _i, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 5:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $async$goto = 8;
- return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- case 6:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 9;
- 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$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 9:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitMediaRule___closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitMediaRule_closure2.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule._is(node))
- t1 = this.mergedQueries != null && type$.CssMediaRule._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- E._EvaluateVisitor__visitMediaQueries_closure0.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.resolved, null);
- return new F.MediaQueryParser(t1, this.$this._async_evaluate$_logger).parse$0();
- },
- $signature: 62
- };
- E._EvaluateVisitor_visitStyleRule_closure6.prototype = {
- call$0: function() {
- var t1 = this.selectorText;
- t1 = S.SpanScanner$(t1.get$value(t1), null);
- return new E.KeyframeSelectorParser(t1, this.$this._async_evaluate$_logger).parse$0();
- },
- $signature: 32
- };
- E._EvaluateVisitor_visitStyleRule_closure7.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitStyleRule_closure8.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._EvaluateVisitor_visitStyleRule_closure9.prototype = {
- call$0: function() {
- var t2, t3,
- t1 = this.selectorText;
- t1 = t1.get$value(t1);
- t2 = this.$this;
- t3 = !t2._async_evaluate$_stylesheet.plainCss;
- return D.SelectorList_SelectorList$parse(t1, t3, t3, t2._async_evaluate$_logger);
- },
- $signature: 31
- };
- E._EvaluateVisitor_visitStyleRule_closure10.prototype = {
- call$0: function() {
- var t1 = this._box_0.parsedSelector,
- t2 = this.$this,
- t3 = t2._async_evaluate$_styleRule;
- t3 = t3 == null ? null : t3.originalSelector;
- return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate$_atRootExcludingStyleRule);
- },
- $signature: 31
- };
- E._EvaluateVisitor_visitStyleRule_closure11.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- 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);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitStyleRule__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitStyleRule_closure12.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._EvaluateVisitor_visitSupportsRule_closure1.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t3, _i, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 5:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $async$goto = 8;
- return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- case 6:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 9;
- 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$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 9:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitSupportsRule__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitSupportsRule_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._EvaluateVisitor_visitVariableDeclaration_closure2.prototype = {
- call$0: function() {
- var t1 = this.override;
- this.$this._async_evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
- },
- $signature: 0
- };
- E._EvaluateVisitor_visitVariableDeclaration_closure3.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 9
- };
- E._EvaluateVisitor_visitVariableDeclaration_closure4.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = this.node;
- t1._async_evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
- },
- $signature: 0
- };
- E._EvaluateVisitor_visitUseRule_closure0.prototype = {
- call$1: function(module) {
- var t1 = this.node;
- this.$this._async_evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
- }
- };
- E._EvaluateVisitor_visitWarnRule_closure0.prototype = {
- call$0: function() {
- return this.node.expression.accept$1(this.$this);
- },
- $signature: 20
- };
- E._EvaluateVisitor_visitWhileRule_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, t3, result;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
- case 3:
- // for condition
- $async$goto = 5;
- return P._asyncAwait(t2.accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- if (!$async$result.get$isTruthy()) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(t3._async_evaluate$_handleReturn$2(t1, new E._EvaluateVisitor_visitWhileRule__closure0(t3)), $async$call$0);
- case 6:
- // returning from await.
- result = $async$result;
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- // goto for condition
- $async$goto = 3;
- break;
- case 4:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 20
- };
- E._EvaluateVisitor_visitWhileRule__closure0.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor_visitBinaryOperationExpression_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, right, result, t1, t2, left, $async$temp1, $async$temp2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node;
- t2 = $async$self.$this;
- $async$goto = 3;
- return P._asyncAwait(t1.left.accept$1(t2), $async$call$0);
- case 3:
- // returning from await.
- left = $async$result;
- case 4:
- // switch
- switch (t1.operator) {
- case C.BinaryOperator_kjl:
- // goto case
- $async$goto = 6;
- break;
- case C.BinaryOperator_or_or_1:
- // goto case
- $async$goto = 7;
- break;
- case C.BinaryOperator_and_and_2:
- // goto case
- $async$goto = 8;
- break;
- case C.BinaryOperator_YlX:
- // goto case
- $async$goto = 9;
- break;
- case C.BinaryOperator_i5H:
- // goto case
- $async$goto = 10;
- break;
- case C.BinaryOperator_AcR0:
- // goto case
- $async$goto = 11;
- break;
- case C.BinaryOperator_1da:
- // goto case
- $async$goto = 12;
- break;
- case C.BinaryOperator_8qt:
- // goto case
- $async$goto = 13;
- break;
- case C.BinaryOperator_33h:
- // goto case
- $async$goto = 14;
- break;
- case C.BinaryOperator_AcR:
- // goto case
- $async$goto = 15;
- break;
- case C.BinaryOperator_iyO:
- // goto case
- $async$goto = 16;
- break;
- case C.BinaryOperator_O1M:
- // goto case
- $async$goto = 17;
- break;
- case C.BinaryOperator_RTB:
- // goto case
- $async$goto = 18;
- break;
- case C.BinaryOperator_2ad:
- // goto case
- $async$goto = 19;
- break;
- default:
- // goto default
- $async$goto = 20;
- break;
- }
- break;
- case 6:
- // case
- $async$goto = 21;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 21:
- // returning from await.
- right = $async$result;
- left.toString;
- t1 = N.serializeValue0(left, false, true) + "=";
- right.toString;
- $async$returnValue = new D.SassString(t1 + N.serializeValue0(right, false, true), false);
- // goto return
- $async$goto = 1;
- break;
- case 7:
- // case
- $async$goto = left.get$isTruthy() ? 22 : 24;
- break;
- case 22:
- // then
- $async$result = left;
- // goto join
- $async$goto = 23;
- break;
- case 24:
- // else
- $async$goto = 25;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 25:
- // returning from await.
- case 23:
- // join
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 8:
- // case
- $async$goto = left.get$isTruthy() ? 26 : 28;
- break;
- case 26:
- // then
- $async$goto = 29;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 29:
- // returning from await.
- // goto join
- $async$goto = 27;
- break;
- case 28:
- // else
- $async$result = left;
- case 27:
- // join
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 9:
- // case
- $async$temp1 = J;
- $async$temp2 = left;
- $async$goto = 30;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 30:
- // returning from await.
- $async$returnValue = $async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- // goto return
- $async$goto = 1;
- break;
- case 10:
- // case
- $async$temp1 = J;
- $async$temp2 = left;
- $async$goto = 31;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 31:
- // returning from await.
- $async$returnValue = !$async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- // goto return
- $async$goto = 1;
- break;
- case 11:
- // case
- $async$temp1 = left;
- $async$goto = 32;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 32:
- // returning from await.
- $async$returnValue = $async$temp1.greaterThan$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 12:
- // case
- $async$temp1 = left;
- $async$goto = 33;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 33:
- // returning from await.
- $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 13:
- // case
- $async$temp1 = left;
- $async$goto = 34;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 34:
- // returning from await.
- $async$returnValue = $async$temp1.lessThan$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 14:
- // case
- $async$temp1 = left;
- $async$goto = 35;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 35:
- // returning from await.
- $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 15:
- // case
- $async$temp1 = left;
- $async$goto = 36;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 36:
- // returning from await.
- $async$returnValue = $async$temp1.plus$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 16:
- // case
- $async$temp1 = left;
- $async$goto = 37;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 37:
- // returning from await.
- $async$returnValue = $async$temp1.minus$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 17:
- // case
- $async$temp1 = left;
- $async$goto = 38;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 38:
- // returning from await.
- $async$returnValue = $async$temp1.times$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 18:
- // case
- $async$goto = 39;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 39:
- // returning from await.
- right = $async$result;
- result = left.dividedBy$1(right);
- if (t1.allowsSlash && left instanceof T.SassNumber && right instanceof T.SassNumber) {
- $async$returnValue = type$.SassNumber._as(result).withSlash$2(left, right);
- // goto return
- $async$goto = 1;
- break;
- } else {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- case 19:
- // case
- $async$temp1 = left;
- $async$goto = 40;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 40:
- // returning from await.
- $async$returnValue = $async$temp1.modulo$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 20:
- // default
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // after switch
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 20
- };
- E._EvaluateVisitor_visitVariableExpression_closure0.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 9
- };
- E._EvaluateVisitor_visitListExpression_closure0.prototype = {
- call$1: function(expression) {
- return expression.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor_visitFunctionExpression_closure1.prototype = {
- call$0: function() {
- var t1 = this.node.namespace,
- t2 = this.plainName;
- if (t1 == null)
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return this.$this._async_evaluate$_getFunction$2$namespace(t2, t1);
- },
- $signature: 45
- };
- E._EvaluateVisitor_visitFunctionExpression_closure2.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
- },
- $signature: 20
- };
- E._EvaluateVisitor__runUserDefinedCallable_closure0.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.callable;
- 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$.Value);
- },
- $signature: 20
- };
- E._EvaluateVisitor__runUserDefinedCallable__closure0.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this;
- return t1._async_evaluate$_environment.scope$1$1(new E._EvaluateVisitor__runUserDefinedCallable___closure0(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.Value);
- },
- $signature: 20
- };
- E._EvaluateVisitor__runUserDefinedCallable___closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $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;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.evaluated;
- t3 = t2.positional;
- t4 = t3.length;
- t5 = t2.named;
- t6 = $async$self.callable.declaration.$arguments;
- t7 = $async$self.nodeWithSpan;
- t1._async_evaluate$_verifyArguments$4(t4, t5, t6, t7);
- declaredArguments = t6.$arguments;
- t4 = declaredArguments.length;
- minLength = Math.min(t3.length, t4);
- for (t8 = t1._async_evaluate$_sourceMap, i = 0; i < minLength; ++i) {
- t9 = t1._async_evaluate$_environment;
- t10 = declaredArguments[i].name;
- t11 = t3[i].withoutSlash$0();
- t9.setLocalVariable$3(t10, t11, t8 ? t2.positionalNodes[i] : null);
- }
- i = t3.length;
- case 3:
- // for condition
- if (!(i < t4)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- argument = declaredArguments[i];
- t9 = argument.name;
- value = t5.remove$1(0, t9);
- $async$goto = value == null ? 6 : 7;
- break;
- case 6:
- // then
- $async$goto = 8;
- return P._asyncAwait(argument.defaultValue.accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- value = $async$result;
- case 7:
- // join
- t10 = t1._async_evaluate$_environment;
- t11 = value.withoutSlash$0();
- if (t8) {
- t12 = t2.namedNodes.$index(0, t9);
- if (t12 == null)
- t12 = t1._async_evaluate$_expressionNode$1(argument.defaultValue);
- } else
- t12 = null;
- t10.setLocalVariable$3(t9, t11, t12);
- case 4:
- // for update
- ++i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t8 = t6.restArgument;
- if (t8 != null) {
- rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty5;
- t2 = t2.separator;
- if (t2 === C.ListSeparator_undecided)
- t2 = C.ListSeparator_comma;
- t3 = type$.Value;
- argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t5, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
- argumentList.SassList$3$brackets(rest, t2, false);
- t1._async_evaluate$_environment.setLocalVariable$3(t8, argumentList, t7);
- } else
- argumentList = null;
- $async$goto = 9;
- return P._asyncAwait($async$self.run.call$0(), $async$call$0);
- case 9:
- // returning from await.
- result = $async$result;
- if (argumentList == null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (t5.get$isEmpty(t5)) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (argumentList._wereKeywordsAccessed) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- argumentWord = B.pluralize("argument", J.get$length$asx(t5.get$keys()), null);
- argumentNames = B.toSentence(J.map$1$1$ax(t5.get$keys(), new E._EvaluateVisitor__runUserDefinedCallable____closure0(), type$.Object), "or");
- throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate$_stackTrace$1(t7.get$span())));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 20
- };
- E._EvaluateVisitor__runUserDefinedCallable____closure0.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- E._EvaluateVisitor__runFunctionCallable_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
- case 6:
- // returning from await.
- $returnValue = $async$result;
- if ($returnValue instanceof F.Value) {
- $async$returnValue = $returnValue;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- throw H.wrapException(t4._async_evaluate$_exception$2("Function finished without @return.", t1.span));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 20
- };
- E._EvaluateVisitor__runBuiltInCallable_closure1.prototype = {
- call$0: function() {
- return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
- },
- $signature: 1
- };
- E._EvaluateVisitor__runBuiltInCallable_closure2.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- E._EvaluateVisitor__evaluateArguments_closure2.prototype = {
- call$2: function(_, expression) {
- return expression.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor__evaluateArguments_closure3.prototype = {
- call$2: function(_, expression) {
- return this.$this._async_evaluate$_expressionNode$1(expression);
- }
- };
- E._EvaluateVisitor__evaluateArguments_closure4.prototype = {
- call$2: function(key, value) {
- var t1;
- this.named.$indexSet(0, key, value);
- t1 = this.namedNodes;
- if (t1 != null)
- t1.$indexSet(0, key, this.restNodeForSpan);
- }
- };
- E._EvaluateVisitor__evaluateMacroArguments_closure3.prototype = {
- call$1: function(value) {
- return new F.ValueExpression(value, null);
- }
- };
- E._EvaluateVisitor__evaluateMacroArguments_closure4.prototype = {
- call$1: function(value) {
- return new F.ValueExpression(value, null);
- }
- };
- E._EvaluateVisitor__evaluateMacroArguments_closure5.prototype = {
- call$2: function(key, value) {
- this.named.$indexSet(0, key, new F.ValueExpression(value, null));
- }
- };
- E._EvaluateVisitor__evaluateMacroArguments_closure6.prototype = {
- call$1: function(value) {
- return new F.ValueExpression(value, null);
- }
- };
- E._EvaluateVisitor__addRestMap_closure1.prototype = {
- call$1: function(value) {
- return this.T._as(value);
- }
- };
- E._EvaluateVisitor__addRestMap_closure2.prototype = {
- call$2: function(key, value) {
- var _this = this;
- if (key instanceof D.SassString)
- _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
- else
- throw H.wrapException(_this.$this._async_evaluate$_exception$2("Variable keyword argument map must have string keys.\n" + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
- }
- };
- E._EvaluateVisitor__verifyArguments_closure0.prototype = {
- call$0: function() {
- return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_String));
- },
- $signature: 1
- };
- E._EvaluateVisitor_visitStringExpression_closure0.prototype = {
- call$1: function(value) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, result;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (typeof value == "string") {
- $async$returnValue = value;
- // goto return
- $async$goto = 1;
- break;
- }
- type$.Expression._as(value);
- t1 = $async$self.$this;
- $async$goto = 3;
- return P._asyncAwait(value.accept$1(t1), $async$call$1);
- case 3:
- // returning from await.
- result = $async$result;
- $async$returnValue = result instanceof D.SassString ? result.text : t1._async_evaluate$_serialize$3$quote(result, value, false);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 43
- };
- E._EvaluateVisitor_visitCssAtRule_closure1.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssAtRule_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._EvaluateVisitor_visitCssKeyframeBlock_closure1.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssKeyframeBlock_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._EvaluateVisitor_visitCssMediaRule_closure1.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.mergedQueries;
- if (t2 == null)
- t2 = $async$self.node.queries;
- $async$goto = 2;
- return P._asyncAwait(t1._async_evaluate$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitCssMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssMediaRule__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
- case 5:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 6;
- break;
- }
- $async$goto = 7;
- return P._asyncAwait(t2.__internal$_current.accept$1(t1), $async$call$0);
- case 7:
- // returning from await.
- // goto for condition
- $async$goto = 5;
- break;
- case 6:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 8;
- 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$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 8:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssMediaRule___closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssMediaRule_closure2.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule._is(node))
- t1 = this.mergedQueries != null && type$.CssMediaRule._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- E._EvaluateVisitor_visitCssStyleRule_closure1.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- 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);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssStyleRule__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssStyleRule_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._EvaluateVisitor_visitCssSupportsRule_closure1.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
- case 5:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 6;
- break;
- }
- $async$goto = 7;
- return P._asyncAwait(t2.__internal$_current.accept$1(t1), $async$call$0);
- case 7:
- // returning from await.
- // goto for condition
- $async$goto = 5;
- break;
- case 6:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 8;
- 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$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 8:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssSupportsRule__closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssSupportsRule_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._EvaluateVisitor__performInterpolation_closure0.prototype = {
- call$1: function(value) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, result, t2, t3;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (typeof value == "string") {
- $async$returnValue = value;
- // goto return
- $async$goto = 1;
- break;
- }
- type$.Expression._as(value);
- t1 = $async$self.$this;
- $async$goto = 3;
- return P._asyncAwait(value.accept$1(t1), $async$call$1);
- case 3:
- // returning from await.
- result = $async$result;
- if ($async$self.warnForColor && result instanceof K.SassColor && $.$get$namesByColor().containsKey$1(result)) {
- t2 = X.Interpolation$([""], null);
- t3 = $.$get$namesByColor();
- t1._async_evaluate$_warn$2("You probably don't mean to use the color value " + H.S(t3.$index(0, result)) + " in interpolation here.\nIt may end up represented as " + H.S(result) + ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "' + H.S(t3.$index(0, result)) + "\").\nIf you really want to use the color value here, use '" + new V.BinaryOperationExpression(C.BinaryOperator_AcR, new D.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span());
- }
- $async$returnValue = t1._async_evaluate$_serialize$3$quote(result, value, false);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 43
- };
- E._EvaluateVisitor__serialize_closure0.prototype = {
- call$0: function() {
- var t1 = this.value;
- t1.toString;
- return N.serializeValue0(t1, false, this.quote);
- },
- $signature: 10
- };
- E._EvaluateVisitor__stackTrace_closure0.prototype = {
- call$1: function(tuple) {
- return this.$this._async_evaluate$_stackFrame$2(tuple.item1, tuple.item2.get$span());
- }
- };
- E._ImportedCssVisitor0.prototype = {
- visitCssAtRule$1: function(node) {
- var t1 = node.isChildless ? null : new E._ImportedCssVisitor_visitCssAtRule_closure0();
- this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, t1);
- },
- visitCssComment$1: function(node) {
- return this._async_evaluate$_visitor._async_evaluate$_addChild$1(node);
- },
- visitCssDeclaration$1: function(node) {
- },
- visitCssImport$1: function(node) {
- var t1 = this._async_evaluate$_visitor,
- t2 = t1._async_evaluate$_parent,
- t3 = t1._async_evaluate$_root;
- if (t2 != t3)
- t1._async_evaluate$_addChild$1(node);
- else if (t1._async_evaluate$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
- t1._async_evaluate$_addChild$1(node);
- t1._async_evaluate$_endOfImports = t1._async_evaluate$_endOfImports + 1;
- } else {
- t2 = t1._async_evaluate$_outOfOrderImports;
- (t2 == null ? t1._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t2).push(node);
- }
- },
- visitCssKeyframeBlock$1: function(node) {
- },
- visitCssMediaRule$1: function(node) {
- var t1 = this._async_evaluate$_visitor,
- t2 = t1._async_evaluate$_mediaQueries;
- t1._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssMediaRule_closure0(t2 == null || t1._async_evaluate$_mergeMediaQueries$2(t2, node.queries) != null));
- },
- visitCssStyleRule$1: function(node) {
- return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssStyleRule_closure0());
- },
- visitCssStylesheet$1: function(node) {
- var t1;
- for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
- t1.__internal$_current.accept$1(this);
- },
- visitCssSupportsRule$1: function(node) {
- return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssSupportsRule_closure0());
- }
- };
- E._ImportedCssVisitor_visitCssAtRule_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._ImportedCssVisitor_visitCssMediaRule_closure0.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule._is(node))
- t1 = this.hasBeenMerged && type$.CssMediaRule._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- E._ImportedCssVisitor_visitCssStyleRule_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E._ImportedCssVisitor_visitCssSupportsRule_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- E.EvaluateResult.prototype = {};
- E._ArgumentResults0.prototype = {};
- V._CloneCssVisitor.prototype = {
- visitCssAtRule$1: function(node) {
- var t1 = node.isChildless,
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode),
- rule = new U.ModifiableCssAtRule(node.name, node.value, t1, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
- return t1 ? rule : this._visitChildren$2(rule, node);
- },
- visitCssComment$1: function(node) {
- return new R.ModifiableCssComment(node.text, node.span);
- },
- visitCssDeclaration$1: function(node) {
- return L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap);
- },
- visitCssImport$1: function(node) {
- return F.ModifiableCssImport$(node.url, node.span, node.media, node.supports);
- },
- visitCssKeyframeBlock$1: function(node) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return this._visitChildren$2(new U.ModifiableCssKeyframeBlock(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), node);
- },
- visitCssMediaRule$1: function(node) {
- return this._visitChildren$2(G.ModifiableCssMediaRule$(node.queries, node.span), node);
- },
- visitCssStyleRule$1: function(node) {
- var newSelector = this._oldToNewSelectors.$index(0, node.selector);
- if (newSelector == null)
- throw H.wrapException(P.StateError$("The Extender and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation."));
- return this._visitChildren$2(X.ModifiableCssStyleRule$(newSelector, node.span, node.originalSelector), node);
- },
- visitCssStylesheet$1: function(node) {
- var t1 = node.get$span(),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return this._visitChildren$2(new V.ModifiableCssStylesheet(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2), node);
- },
- visitCssSupportsRule$1: function(node) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- return this._visitChildren$2(new B.ModifiableCssSupportsRule(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), node);
- },
- _visitChildren$1$2: function(newParent, oldParent) {
- var t1, t2, newChild;
- for (t1 = J.get$iterator$ax(oldParent.get$children()); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- newChild = t2.accept$1(this);
- newChild.isGroupEnd = t2.get$isGroupEnd();
- newParent.addChild$1(newChild);
- }
- return newParent;
- },
- _visitChildren$2: function(newParent, oldParent) {
- return this._visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode);
- }
- };
- R.Evaluator.prototype = {};
- R._EvaluateVisitor.prototype = {
- _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap: function(functions, importCache, logger, nodeImporter, sourceMap) {
- var t6, t7, t8, t9, t10, t11, t12, t13, metaFunctions, metaMixins, _i, metaModule, module, $function, _this = this,
- _s9_ = "sass:meta",
- t1 = type$.String,
- t2 = type$.VariableDeclaration,
- t3 = S.SpanScanner$("@function global-variable-exists($name, $module: null) {", _s9_),
- t4 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value,
- t5 = type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value;
- 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);
- t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
- 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);
- t7 = S.SpanScanner$("@function function-exists($name, $module: null) {", _s9_);
- 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);
- t8 = S.SpanScanner$("@function mixin-exists($name, $module: null) {", _s9_);
- 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);
- t9 = S.SpanScanner$("@function content-exists() {", _s9_);
- 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);
- t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
- 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);
- t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
- 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);
- t12 = S.SpanScanner$("@function get-function($name, $css: false, $module: null) {", _s9_);
- 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);
- t13 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
- 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))];
- t1 = type$.JSArray_BuiltInCallable;
- metaMixins = H.setRuntimeTypeInfo([Q.BuiltInCallable$mixin("load-css", "$module, $with: null", new R._EvaluateVisitor_closure8(_this), _s9_)], t1);
- t1 = H.setRuntimeTypeInfo([], t1);
- for (t2 = $.$get$global(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (_i = 0; _i < 9; ++_i)
- t1.push(metaFunctions[_i]);
- metaModule = Q.BuiltInModule$("meta", t1, metaMixins, null, type$.BuiltInCallable);
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInModule_BuiltInCallable);
- for (t2 = $.$get$coreModules(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- t1.push(metaModule);
- t2 = t1.length;
- t3 = _this._builtInModules;
- _i = 0;
- for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- module = t1[_i];
- t3.$indexSet(0, module.url, module);
- }
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Callable);
- for (t2 = $.$get$globalFunctions(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (_i = 0; _i < 9; ++_i)
- t1.push(metaFunctions[_i]);
- for (t2 = t1.length, t3 = _this._builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- $function = t1[_i];
- t4 = $function.get$name();
- t4.toString;
- t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
- }
- },
- run$2: function(_, importer, node) {
- return this._withWarnCallback$1$1(new R._EvaluateVisitor_run_closure(this, node, importer), type$.EvaluateResult);
- },
- runExpression$2: function(importer, expression) {
- return this._withWarnCallback$1$1(new R._EvaluateVisitor_runExpression_closure(this, importer, expression), type$.Value);
- },
- runStatement$2: function(importer, statement) {
- return this._withWarnCallback$1$1(new R._EvaluateVisitor_runStatement_closure(this, importer, statement), type$.void);
- },
- _withWarnCallback$1$1: function(callback, $T) {
- return N.withWarnCallback(new R._EvaluateVisitor__withWarnCallback_closure(this), callback, $T);
- },
- _withFakeStylesheet$1$3: function(importer, nodeWithSpan, callback) {
- var oldStylesheet, t1, _this = this,
- oldImporter = _this._importer;
- _this._importer = importer;
- oldStylesheet = _this._stylesheet;
- _this._stylesheet = V.Stylesheet$(C.List_empty11, nodeWithSpan.get$span(), false);
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._importer = oldImporter;
- _this._stylesheet = oldStylesheet;
- }
- },
- _withFakeStylesheet$3: function(importer, nodeWithSpan, callback) {
- return this._withFakeStylesheet$1$3(importer, nodeWithSpan, callback, type$.dynamic);
- },
- _loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- var t1, _this = this,
- builtInModule = _this._builtInModules.$index(0, url);
- if (builtInModule != null) {
- if (configuration != null && !configuration.isImplicit) {
- t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
- throw H.wrapException(_this._evaluate$_exception$2(t1, nodeWithSpan.get$span()));
- }
- callback.call$1(builtInModule);
- return;
- }
- _this._withStackFrame$3(stackFrame, nodeWithSpan, new R._EvaluateVisitor__loadModule_closure(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
- },
- _loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
- return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
- },
- _loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
- return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
- },
- _execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- var message, existingNode, environment, t3, extender, module, _this = this, t1 = {},
- url = stylesheet.span.file.url,
- t2 = _this._modules,
- alreadyLoaded = t2.$index(0, url);
- if (alreadyLoaded != null) {
- t1 = configuration == null;
- if (!(t1 ? _this._configuration : configuration).isImplicit) {
- message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + ' was already loaded, so it can\'t be configured using "with".' : 'This module was already loaded, so it can\'t be configured using "with".';
- existingNode = _this._moduleNodes.$index(0, url);
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (existingNode != null)
- t2.$indexSet(0, existingNode.get$span(), "original load");
- if (t1)
- t2.$indexSet(0, _this._configuration.nodeWithSpan.get$span(), "configuration");
- throw H.wrapException(t2.get$isEmpty(t2) ? _this._evaluate$_exception$1(message) : _this._multiSpanException$3(message, "new load", t2));
- }
- return alreadyLoaded;
- }
- environment = O.Environment$(_this._sourceMap);
- t1.css = null;
- t3 = type$.SimpleSelector;
- extender = new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Set_ModifiableCssValue_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Map_ComplexSelector_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.List_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList, type$.List_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), C.ExtendMode_normal);
- _this._withEnvironment$2(environment, new R._EvaluateVisitor__execute_closure(t1, _this, importer, stylesheet, extender, configuration));
- module = O._EnvironmentModule__EnvironmentModule(environment, t1.css, extender, environment._forwardedModules);
- t2.$indexSet(0, url, module);
- _this._moduleNodes.$indexSet(0, url, nodeWithSpan);
- return module;
- },
- _execute$2: function(importer, stylesheet) {
- return this._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
- },
- _addOutOfOrderImports$0: function() {
- var t1, statements, _this = this;
- if (_this._outOfOrderImports == null)
- return _this._root.children;
- t1 = new Array(J.get$length$asx(_this._root.children._collection$_source) + _this._outOfOrderImports.length);
- t1.fixed$length = Array;
- statements = new G.FixedLengthListBuilder(H.setRuntimeTypeInfo(t1, type$.JSArray_ModifiableCssNode), type$.FixedLengthListBuilder_ModifiableCssNode);
- statements.addRange$3(_this._root.children, 0, _this._endOfImports);
- statements.addAll$1(0, _this._outOfOrderImports);
- statements.addRange$2(_this._root.children, _this._endOfImports);
- return statements.build$0();
- },
- _combineCss$2$clone: function(root, clone) {
- var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, statements, index, _this = this;
- if (!C.JSArray_methods.any$1(root.get$upstream(), new R._EvaluateVisitor__combineCss_closure())) {
- selectors = root.get$extender().get$simpleSelectors();
- unsatisfiedExtension = B.firstOrNull(root.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__combineCss_closure0(selectors)));
- if (unsatisfiedExtension != null)
- _this._throwForUnsatisfiedExtension$1(unsatisfiedExtension);
- return root.get$css(root);
- }
- sortedModules = _this._topologicalModules$1(root);
- if (clone)
- sortedModules = new H.MappedListIterable(sortedModules, new R._EvaluateVisitor__combineCss_closure1(), sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<Callable>>")).toList$0(0);
- _this._extendModules$1(sortedModules);
- t1 = type$.JSArray_CssNode;
- imports = H.setRuntimeTypeInfo([], t1);
- css = H.setRuntimeTypeInfo([], t1);
- for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- statements = t2.get$css(t2).get$children();
- index = _this._indexAfterImports$1(statements);
- t2 = J.getInterceptor$ax(statements);
- C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
- C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
- }
- return new V.CssStylesheet(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_CssNode), root.get$css(root).get$span());
- },
- _combineCss$1: function(root) {
- return this._combineCss$2$clone(root, false);
- },
- _extendModules$1: function(sortedModules) {
- var t1, t2, originalSelectors, extenders, t3, t4, _i,
- downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_Extender),
- unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
- for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
- unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__extendModules_closure(originalSelectors)));
- extenders = downstreamExtenders.$index(0, t2.get$url());
- if (extenders != null)
- t2.get$extender().addExtensions$1(extenders);
- t3 = t2.get$extender();
- if (t3.get$isEmpty(t3))
- continue;
- for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
- J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new R._EvaluateVisitor__extendModules_closure0()), t2.get$extender());
- unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
- }
- if (unsatisfiedExtensions._collection$_length !== 0)
- this._throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
- },
- _throwForUnsatisfiedExtension$1: function(extension) {
- throw H.wrapException(E.SassException$('The target selector was not found.\nUse "@extend ' + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
- },
- _topologicalModules$1: function(root) {
- var t1 = type$.Module_Callable,
- sorted = Q.QueueList$(null, t1);
- new R._EvaluateVisitor__topologicalModules_visitModule(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
- return sorted;
- },
- _indexAfterImports$1: function(statements) {
- var t1, t2, t3, lastImport, i, statement;
- for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment, t3 = type$.CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
- statement = t1.$index(statements, i);
- if (t3._is(statement))
- lastImport = i;
- else if (!t2._is(statement))
- break;
- }
- return lastImport + 1;
- },
- visitStylesheet$1: function(node) {
- var t1, t2, _i;
- for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(this);
- return null;
- },
- visitAtRootRule$1: function(node) {
- var root, innerCopy, outerCopy, copy, _this = this, _null = null,
- t1 = node.query,
- query = t1 != null ? _this._adjustParseError$2(t1, new R._EvaluateVisitor_visitAtRootRule_closure(_this, _this._performInterpolation$2$warnForColor(t1, true))) : C.AtRootQuery_UsS,
- $parent = _this._evaluate$_parent,
- included = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssParentNode);
- for (t1 = type$.CssStylesheet; !t1._is($parent);) {
- if (!query.excludes$1($parent))
- included.push($parent);
- $parent = $parent._parent;
- }
- root = _this._trimIncluded$1(included);
- if (root == _this._evaluate$_parent) {
- _this._evaluate$_environment.scope$1$2$when(new R._EvaluateVisitor_visitAtRootRule_closure0(_this, node), node.hasDeclarations, type$.Null);
- return _null;
- }
- innerCopy = included.length === 0 ? _null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
- for (t1 = H.SubListIterable$(included, 1, _null, type$.ModifiableCssParentNode), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
- copy = t1.__internal$_current.copyWithoutChildren$0();
- copy.addChild$1(outerCopy);
- }
- if (outerCopy != null)
- root.addChild$1(outerCopy);
- _this._scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new R._EvaluateVisitor_visitAtRootRule_closure1(_this, node));
- return _null;
- },
- _trimIncluded$1: function(nodes) {
- var $parent, innermostContiguous, i, t2, root,
- t1 = nodes.length;
- if (t1 === 0)
- return this._root;
- $parent = this._evaluate$_parent;
- for (innermostContiguous = null, i = 0; i < t1; ++i) {
- for (; $parent != nodes[i]; innermostContiguous = null)
- $parent = $parent._parent;
- if (innermostContiguous == null)
- innermostContiguous = i;
- $parent = $parent._parent;
- }
- t2 = this._root;
- if ($parent != t2)
- return t2;
- root = nodes[innermostContiguous];
- C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
- return root;
- },
- _scopeForAtRoot$4: function(node, newParent, query, included) {
- var _this = this,
- scope = new R._EvaluateVisitor__scopeForAtRoot_closure(_this, newParent, node),
- t1 = query._all,
- t2 = t1 || query._at_root_query$_rule,
- t3 = query.include;
- if (t2 !== t3)
- scope = new R._EvaluateVisitor__scopeForAtRoot_closure0(_this, scope);
- if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
- scope = new R._EvaluateVisitor__scopeForAtRoot_closure1(_this, scope);
- if (_this._inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
- scope = new R._EvaluateVisitor__scopeForAtRoot_closure2(_this, scope);
- return _this._inUnknownAtRule && !C.JSArray_methods.any$1(included, new R._EvaluateVisitor__scopeForAtRoot_closure3()) ? new R._EvaluateVisitor__scopeForAtRoot_closure4(_this, scope) : scope;
- },
- visitContentBlock$1: function(node) {
- return H.throwExpression(P.UnsupportedError$("Evaluation handles @include and its content block together."));
- },
- visitContentRule$1: function(node) {
- var $content = this._evaluate$_environment._content;
- if ($content == null)
- return null;
- this._runUserDefinedCallable$4(node.$arguments, $content, node, new R._EvaluateVisitor_visitContentRule_closure(this, $content));
- return null;
- },
- visitDebugRule$1: function(node) {
- var value = node.expression.accept$1(this),
- t1 = value instanceof D.SassString ? value.text : J.toString$0$(value);
- this._evaluate$_logger.debug$2(t1, node.span);
- return null;
- },
- visitDeclaration$1: function(node) {
- var $name, t1, cssValue, t2, oldDeclarationName, _this = this;
- if (!(_this._styleRule != null && !_this._atRootExcludingStyleRule) && !_this._inUnknownAtRule && !_this._inKeyframes)
- throw H.wrapException(_this._evaluate$_exception$2("Declarations may only be used within style rules.", node.span));
- $name = _this._interpolationToValue$2$warnForColor(node.name, true);
- t1 = _this._declarationName;
- if (t1 != null)
- $name = new F.CssValue(t1 + "-" + H.S($name.value), $name.span, type$.CssValue_String);
- t1 = node.value;
- cssValue = t1 == null ? null : new F.CssValue(t1.accept$1(_this), t1.get$span(), type$.CssValue_Value);
- if (cssValue != null) {
- t2 = cssValue.value;
- t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
- } else
- t2 = false;
- if (t2) {
- t2 = _this._evaluate$_parent;
- t1 = _this._expressionNode$1(t1);
- t1 = t1 == null ? null : t1.get$span();
- t2.addChild$1(L.ModifiableCssDeclaration$($name, cssValue, node.span, t1));
- } else if (J.startsWith$1$s($name.value, "--"))
- throw H.wrapException(_this._evaluate$_exception$2("Custom property values may not be empty.", t1.get$span()));
- if (node.children != null) {
- oldDeclarationName = _this._declarationName;
- _this._declarationName = $name.value;
- _this._evaluate$_environment.scope$1$2$when(new R._EvaluateVisitor_visitDeclaration_closure(_this, node), node.hasDeclarations, type$.Null);
- _this._declarationName = oldDeclarationName;
- }
- return null;
- },
- visitEachRule$1: function(node) {
- var _this = this,
- t1 = node.list,
- list = t1.accept$1(_this),
- nodeWithSpan = _this._expressionNode$1(t1),
- setVariables = node.variables.length === 1 ? new R._EvaluateVisitor_visitEachRule_closure(_this, node, nodeWithSpan) : new R._EvaluateVisitor_visitEachRule_closure0(_this, node, nodeWithSpan);
- return _this._evaluate$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitEachRule_closure1(_this, list, setVariables, node), true, type$.Value);
- },
- _setMultipleVariables$3: function(variables, value, nodeWithSpan) {
- var i,
- list = value.get$asList(),
- t1 = variables.length,
- minLength = Math.min(t1, list.length);
- for (i = 0; i < minLength; ++i)
- this._evaluate$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
- for (i = minLength; i < t1; ++i)
- this._evaluate$_environment.setLocalVariable$3(variables[i], C.C_SassNull0, nodeWithSpan);
- },
- visitErrorRule$1: function(node) {
- throw H.wrapException(this._evaluate$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
- },
- visitExtendRule$1: function(node) {
- var targetText, t1, t2, t3, _i, t4, _this = this;
- if (!(_this._styleRule != null && !_this._atRootExcludingStyleRule) || _this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("@extend may only be used within style rules.", node.span));
- targetText = _this._interpolationToValue$2$warnForColor(node.selector, true);
- for (t1 = _this._adjustParseError$2(targetText, new R._EvaluateVisitor_visitExtendRule_closure(_this, targetText)).components, t2 = t1.length, t3 = type$.CompoundSelector, _i = 0; _i < t2; ++_i) {
- t4 = t1[_i].components;
- if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector))
- throw H.wrapException(E.SassFormatException$("complex selectors may not be extended.", targetText.span));
- t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
- if (t4.length !== 1)
- throw H.wrapException(E.SassFormatException$("compound selectors may no longer be extended.\nConsider `@extend " + C.JSArray_methods.join$1(t4, ", ") + "` instead.\nSee http://bit.ly/ExtendCompound for details.\n", targetText.span));
- _this._extender.addExtension$4(_this._styleRule.selector, C.JSArray_methods.get$first(t4), node, _this._mediaQueries);
- }
- return null;
- },
- visitAtRule$1: function(node) {
- var $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
- if (_this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("At-rules may not be used within nested declarations.", node.span));
- $name = _this._interpolationToValue$1(node.name);
- t1 = node.value;
- value = t1 == null ? null : _this._interpolationToValue$3$trim$warnForColor(t1, true, true);
- if (node.children == null) {
- t1 = _this._evaluate$_parent;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- t1.addChild$1(new U.ModifiableCssAtRule($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2));
- return null;
- }
- wasInKeyframes = _this._inKeyframes;
- wasInUnknownAtRule = _this._inUnknownAtRule;
- if (B.unvendor($name.value) === "keyframes")
- _this._inKeyframes = true;
- else
- _this._inUnknownAtRule = true;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new R._EvaluateVisitor_visitAtRule_closure(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitAtRule_closure0(), type$.ModifiableCssAtRule, type$.Null);
- _this._inUnknownAtRule = wasInUnknownAtRule;
- _this._inKeyframes = wasInKeyframes;
- return null;
- },
- visitForRule$1: function(node) {
- var _this = this, t1 = {},
- t2 = node.from,
- fromNumber = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure(_this, node)),
- t3 = node.to,
- toNumber = _this._addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure0(_this, node)),
- from = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure1(fromNumber, toNumber)),
- to = t1.to = _this._addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure2(toNumber)),
- direction = from > to ? -1 : 1;
- if (from === (!node.isExclusive ? t1.to = to + direction : to))
- return null;
- return _this._evaluate$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitForRule_closure3(t1, _this, node, from, direction), true, type$.Value);
- },
- visitForwardRule$1: function(node) {
- var newConfiguration, t4, _i, variable, _this = this,
- _s8_ = "@forward",
- oldConfiguration = _this._configuration,
- adjustedConfiguration = oldConfiguration.throughForward$1(node),
- t1 = node.configuration,
- t2 = t1.length,
- t3 = node.url;
- if (t2 !== 0) {
- newConfiguration = _this._addForwardConfiguration$2(adjustedConfiguration, node);
- _this._loadModule$5$configuration(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure(_this, node), newConfiguration);
- t3 = type$.String;
- t4 = P.LinkedHashSet_LinkedHashSet(t3);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (!variable.isGuarded)
- t4.add$1(0, variable.name);
- }
- _this._removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
- t3 = P.LinkedHashSet_LinkedHashSet(t3);
- for (_i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i].name);
- _this._assertConfigurationIsEmpty$2$only(newConfiguration, t3);
- } else {
- _this._configuration = adjustedConfiguration;
- _this._loadModule$4(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure0(_this, node));
- _this._configuration = oldConfiguration;
- }
- return null;
- },
- _addForwardConfiguration$2: function(configuration, node) {
- var t2, t3, _i, variable, t4, t5,
- t1 = configuration._values,
- newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
- for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- variable = t2[_i];
- if (variable.isGuarded) {
- t4 = variable.name;
- t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
- if (t5 != null && !J.$eq$(t5.value, C.C_SassNull0)) {
- newValues.$indexSet(0, t4, t5);
- continue;
- }
- }
- t4 = variable.name;
- t5 = variable.expression;
- newValues.$indexSet(0, t4, new Z.ConfiguredValue(t5.accept$1(this).withoutSlash$0(), variable.span, this._expressionNode$1(t5)));
- }
- return new A.Configuration(newValues, node, false);
- },
- _removeUsedConfiguration$3$except: function(upstream, downstream, except) {
- var t1, t2, t3, t4, _i, $name;
- 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) {
- $name = t2[_i];
- if (except.contains$1(0, $name))
- continue;
- if (!t4.containsKey$1($name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- },
- _assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
- configuration._values.forEach$1(0, new R._EvaluateVisitor__assertConfigurationIsEmpty_closure(this, only, nameInError));
- },
- _assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
- return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
- },
- _assertConfigurationIsEmpty$1: function(configuration) {
- return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
- },
- _assertConfigurationIsEmpty$2$only: function(configuration, only) {
- return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
- },
- visitFunctionRule$1: function(node) {
- var t1 = this._evaluate$_environment,
- t2 = t1.closure$0(),
- t3 = t1._functions,
- index = t3.length - 1,
- t4 = node.name;
- t1._functionIndices.$indexSet(0, t4, index);
- J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_Environment));
- return null;
- },
- visitIfRule$1: function(node) {
- var t1, t2, _i, clauseToCheck, _box_0 = {};
- _box_0.clause = node.lastClause;
- for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- clauseToCheck = t1[_i];
- if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
- _box_0.clause = clauseToCheck;
- break;
- }
- }
- t1 = _box_0.clause;
- if (t1 == null)
- return null;
- return this._evaluate$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitIfRule_closure(_box_0, this), true, t1.hasDeclarations, type$.Value);
- },
- visitImportRule$1: function(node) {
- var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, supports, t8, t9, resolvedSupports, mediaQuery, t10, result0, _this = this, _null = null;
- for (t1 = node.imports, t2 = t1.length, t3 = type$.CssMediaQuery, t4 = type$.CssValue_String, t5 = type$.StaticImport, t6 = type$.JSArray_ModifiableCssImport, _i = 0; _i < t2; ++_i) {
- $import = t1[_i];
- if ($import instanceof B.DynamicImport)
- _this._visitDynamicImport$1($import);
- else {
- t5._as($import);
- t7 = $import.url;
- result = _this._performInterpolation$2$warnForColor(t7, false);
- supports = $import.supports;
- if (supports instanceof L.SupportsDeclaration) {
- t8 = supports.name;
- t8 = H.S(_this._evaluate$_serialize$3$quote(t8.accept$1(_this), t8, true)) + ": ";
- t9 = supports.value;
- resolvedSupports = t8 + H.S(_this._evaluate$_serialize$3$quote(t9.accept$1(_this), t9, true));
- } else
- resolvedSupports = supports == null ? _null : _this._visitSupportsCondition$1(supports);
- t8 = $import.media;
- mediaQuery = t8 == null ? _null : _this._visitMediaQueries$1(t8);
- t8 = $import.span;
- t9 = resolvedSupports == null ? _null : new F.CssValue("supports(" + resolvedSupports + ")", supports.get$span(), t4);
- if (mediaQuery == null)
- t10 = _null;
- else {
- result0 = P.List_List$from(mediaQuery, false, t3);
- result0.fixed$length = Array;
- result0.immutable$list = Array;
- t10 = result0;
- }
- node = new F.ModifiableCssImport(new F.CssValue(result, t7.span, t4), t9, t10, t8);
- t7 = _this._evaluate$_parent;
- t8 = _this._root;
- if (t7 != t8)
- t7.addChild$1(node);
- else if (_this._endOfImports === J.get$length$asx(t8.children._collection$_source)) {
- t7 = _this._root;
- t7.toString;
- node._parent = t7;
- t7 = t7._children;
- node._indexInParent = t7.length;
- t7.push(node);
- _this._endOfImports = _this._endOfImports + 1;
- } else {
- t7 = _this._outOfOrderImports;
- (t7 == null ? _this._outOfOrderImports = H.setRuntimeTypeInfo([], t6) : t7).push(node);
- }
- }
- }
- return _null;
- },
- _visitDynamicImport$1: function($import) {
- return this._withStackFrame$3("@import", $import, new R._EvaluateVisitor__visitDynamicImport_closure(this, $import));
- },
- _loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
- var tuple, error, error0, message, t1, t2, t3, exception, _this = this;
- try {
- _this._importSpan = span;
- t1 = P.Uri_parse(url);
- t2 = _this._importer;
- if (baseUrl == null) {
- t3 = _this._stylesheet;
- t3 = t3 == null ? null : t3.span;
- t3 = t3 == null ? null : t3.file.url;
- } else
- t3 = baseUrl;
- tuple = _this._evaluate$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport);
- if (tuple != null)
- return tuple;
- if (C.JSString_methods.startsWith$1(url, "package:") && true)
- throw H.wrapException('"package:" URLs aren\'t supported on this platform.');
- else
- throw H.wrapException("Can't find stylesheet to import.");
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException) {
- error = t1;
- t1 = _this._evaluate$_exception$2(error._span_exception$_message, error.get$span());
- throw H.wrapException(t1);
- } else {
- error0 = t1;
- message = null;
- try {
- message = H._asStringNullable(J.get$message$x(error0));
- } catch (exception) {
- H.unwrapException(exception);
- message = J.toString$0$(error0);
- }
- t1 = _this._evaluate$_exception$1(message);
- throw H.wrapException(t1);
- }
- } finally {
- _this._importSpan = null;
- }
- },
- _loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
- return this._loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
- },
- _loadStylesheet$3$forImport: function(url, span, forImport) {
- return this._loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
- },
- visitIncludeRule$1: function(node) {
- var nodeWithSpan, t1, t2, t3, contentCallable, _this = this,
- _s37_ = "Mixin doesn't accept a content block.",
- mixin = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitIncludeRule_closure(_this, node));
- if (mixin == null)
- throw H.wrapException(_this._evaluate$_exception$2("Undefined mixin.", node.span));
- nodeWithSpan = new B._FakeAstNode(new R._EvaluateVisitor_visitIncludeRule_closure0(node));
- if (mixin instanceof Q.BuiltInCallable) {
- if (node.content != null)
- throw H.wrapException(_this._evaluate$_exception$2(_s37_, node.span));
- _this._runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
- } else {
- t1 = type$.UserDefinedCallable_Environment;
- if (t1._is(mixin)) {
- t2 = node.content;
- t3 = t2 == null;
- if (!t3 && !type$.MixinRule._as(mixin.declaration).hasContent)
- throw H.wrapException(E.MultiSpanSassRuntimeException$(_s37_, node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(node.get$spanWithoutContent())));
- contentCallable = t3 ? null : new E.UserDefinedCallable(t2, _this._evaluate$_environment.closure$0(), t1);
- _this._runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new R._EvaluateVisitor_visitIncludeRule_closure1(_this, contentCallable, mixin, nodeWithSpan));
- } else
- throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- }
- return null;
- },
- visitMixinRule$1: function(node) {
- var t1 = this._evaluate$_environment,
- t2 = t1.closure$0(),
- t3 = t1._mixins,
- index = t3.length - 1,
- t4 = node.name;
- t1._mixinIndices.$indexSet(0, t4, index);
- J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_Environment));
- return null;
- },
- visitLoudComment$1: function(node) {
- var t1, t2, _this = this;
- if (_this._inFunction)
- return null;
- t1 = _this._evaluate$_parent;
- t2 = _this._root;
- if (t1 == t2 && _this._endOfImports === J.get$length$asx(t2.children._collection$_source))
- _this._endOfImports = _this._endOfImports + 1;
- t1 = node.text;
- _this._evaluate$_parent.addChild$1(new R.ModifiableCssComment(_this._performInterpolation$1(t1), t1.span));
- return null;
- },
- visitMediaRule$1: function(node) {
- var queries, t1, mergedQueries, _this = this;
- if (_this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("Media rules may not be used within nested declarations.", node.span));
- queries = _this._visitMediaQueries$1(node.query);
- t1 = _this._mediaQueries;
- mergedQueries = t1 == null ? null : _this._mergeMediaQueries$2(t1, queries);
- t1 = mergedQueries == null;
- if (!t1 && mergedQueries.length === 0)
- return null;
- t1 = t1 ? queries : mergedQueries;
- _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$.ModifiableCssMediaRule, type$.Null);
- return null;
- },
- _visitMediaQueries$1: function(interpolation) {
- return this._adjustParseError$2(interpolation, new R._EvaluateVisitor__visitMediaQueries_closure(this, this._performInterpolation$2$warnForColor(interpolation, true)));
- },
- _mergeMediaQueries$2: function(queries1, queries2) {
- var t1, t2, t3, t4, t5, result,
- queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery);
- for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
- result = t4.merge$1(t5.get$current(t5));
- if (result === C._SingletonCssMediaQueryMergeResult_empty)
- continue;
- if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable)
- return null;
- queries.push(t3._as(result).query);
- }
- }
- return queries;
- },
- visitReturnRule$1: function(node) {
- return node.expression.accept$1(this);
- },
- visitSilentComment$1: function(node) {
- return null;
- },
- visitStyleRule$1: function(node) {
- var t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, _this = this, t1 = {};
- if (_this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("Style rules may not be used within nested declarations.", node.span));
- t2 = node.selector;
- selectorText = _this._interpolationToValue$3$trim$warnForColor(t2, true, true);
- if (_this._inKeyframes) {
- t1 = P.List_List$unmodifiable(_this._adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure(_this, selectorText)), type$.String);
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(new F.CssValue(t1, t2.span, type$.CssValue_List_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3), new R._EvaluateVisitor_visitStyleRule_closure0(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure1(), type$.ModifiableCssKeyframeBlock, type$.Null);
- return null;
- }
- t1.parsedSelector = _this._adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure2(_this, selectorText));
- parsedSelector = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitStyleRule_closure3(t1, _this));
- t1.parsedSelector = parsedSelector;
- rule = X.ModifiableCssStyleRule$(_this._extender.addSelector$3(parsedSelector, t2.span, _this._mediaQueries), node.span, t1.parsedSelector);
- oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
- _this._atRootExcludingStyleRule = false;
- _this._withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitStyleRule_closure4(_this, rule, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure5(), type$.ModifiableCssStyleRule, type$.Null);
- _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- if (!(_this._styleRule != null && !oldAtRootExcludingStyleRule)) {
- t1 = _this._evaluate$_parent.children;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- t1 = _this._evaluate$_parent.children;
- t1.get$last(t1).isGroupEnd = true;
- }
- return null;
- },
- visitSupportsRule$1: function(node) {
- var t1, t2, t3, _this = this;
- if (_this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("Supports rules may not be used within nested declarations.", node.span));
- t1 = node.condition;
- t2 = _this._visitSupportsCondition$1(t1);
- t1 = t1.get$span();
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- _this._withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(new F.CssValue(t2, t1, type$.CssValue_String), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3), new R._EvaluateVisitor_visitSupportsRule_closure(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
- return null;
- },
- _visitSupportsCondition$1: function(condition) {
- var t1, t2, _this = this;
- if (condition instanceof U.SupportsOperation) {
- t1 = condition.left;
- t2 = condition.operator;
- return H.S(_this._parenthesize$2(t1, t2)) + " " + t2 + " " + H.S(_this._parenthesize$2(condition.right, t2));
- } else if (condition instanceof M.SupportsNegation)
- return "not " + H.S(_this._parenthesize$1(condition.condition));
- else if (condition instanceof X.SupportsInterpolation) {
- t1 = condition.expression;
- return _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, false);
- } else if (condition instanceof L.SupportsDeclaration) {
- t1 = condition.name;
- t1 = "(" + H.S(_this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, true)) + ": ";
- t2 = condition.value;
- return t1 + H.S(_this._evaluate$_serialize$3$quote(t2.accept$1(_this), t2, true)) + ")";
- } else
- return null;
- },
- _parenthesize$2: function(condition, operator) {
- var t1;
- if (!(condition instanceof M.SupportsNegation))
- if (condition instanceof U.SupportsOperation)
- t1 = operator == null || operator !== condition.operator;
- else
- t1 = false;
- else
- t1 = true;
- if (t1)
- return "(" + H.S(this._visitSupportsCondition$1(condition)) + ")";
- else
- return this._visitSupportsCondition$1(condition);
- },
- _parenthesize$1: function(condition) {
- return this._parenthesize$2(condition, null);
- },
- visitVariableDeclaration$1: function(node) {
- var t1, value, t2, _this = this, _null = null;
- if (node.isGuarded) {
- if (node.namespace == null && _this._evaluate$_environment._variables.length === 1) {
- t1 = _this._configuration._values;
- t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
- if (t1 != null) {
- _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure(_this, node, t1));
- return _null;
- }
- }
- value = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure0(_this, node));
- if (value != null && !value.$eq(0, C.C_SassNull0))
- return _null;
- }
- if (node.isGlobal && !_this._evaluate$_environment.globalVariableExists$1(node.name)) {
- t1 = _this._evaluate$_environment._variables.length === 1 ? "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." : "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `" + B.declarationName(node.span) + ": null` at the root of the\nstylesheet.";
- t2 = node.span;
- _this._evaluate$_logger.warn$4$deprecation$span$trace(t1, true, t2, _this._evaluate$_stackTrace$1(t2));
- }
- _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure1(_this, node, node.expression.accept$1(_this).withoutSlash$0()));
- return _null;
- },
- visitUseRule$1: function(node) {
- var configuration, t3, _i, variable, t4, t5, _this = this,
- t1 = node.configuration,
- t2 = t1.length;
- if (t2 === 0)
- configuration = C.Configuration_Map_empty_null_true;
- else {
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- t4 = variable.name;
- t5 = variable.expression;
- t3.$indexSet(0, t4, new Z.ConfiguredValue(t5.accept$1(_this).withoutSlash$0(), variable.span, _this._expressionNode$1(t5)));
- }
- configuration = new A.Configuration(t3, node, false);
- }
- _this._loadModule$5$configuration(node.url, "@use", node, new R._EvaluateVisitor_visitUseRule_closure(_this, node), configuration);
- _this._assertConfigurationIsEmpty$1(configuration);
- return null;
- },
- visitWarnRule$1: function(node) {
- var _this = this,
- value = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitWarnRule_closure(_this, node)),
- t1 = value instanceof D.SassString ? value.text : _this._evaluate$_serialize$2(value, node.expression);
- _this._evaluate$_logger.warn$2$trace(t1, _this._evaluate$_stackTrace$1(node.span));
- return null;
- },
- visitWhileRule$1: function(node) {
- return this._evaluate$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitWhileRule_closure(this, node), true, node.hasDeclarations, type$.Value);
- },
- visitBinaryOperationExpression$1: function(node) {
- return this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitBinaryOperationExpression_closure(this, node));
- },
- visitValueExpression$1: function(node) {
- return node.value;
- },
- visitVariableExpression$1: function(node) {
- var result = this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableExpression_closure(this, node));
- if (result != null)
- return result;
- throw H.wrapException(this._evaluate$_exception$2("Undefined variable.", node.span));
- },
- visitUnaryOperationExpression$1: function(node) {
- var operand = node.operand.accept$1(this),
- t1 = node.operator;
- switch (t1) {
- case C.UnaryOperator_j2w:
- return operand.unaryPlus$0();
- case C.UnaryOperator_U4G:
- return operand.unaryMinus$0();
- case C.UnaryOperator_zDx:
- operand.toString;
- return new D.SassString("/" + N.serializeValue0(operand, false, true), false);
- case C.UnaryOperator_not_not:
- return operand.unaryNot$0();
- default:
- throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
- }
- },
- visitBooleanExpression$1: function(node) {
- return node.value ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- visitIfExpression$1: function(node) {
- var condition, ifTrue, ifFalse, _this = this,
- pair = _this._evaluateMacroArguments$1(node),
- positional = pair.item1,
- named = pair.item2,
- t1 = J.getInterceptor$asx(positional);
- _this._verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
- condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
- ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
- ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
- return (condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse).accept$1(_this);
- },
- visitNullExpression$1: function(node) {
- return C.C_SassNull0;
- },
- visitNumberExpression$1: function(node) {
- var t1 = node.unit;
- t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_String);
- t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
- return new T.SassNumber(node.value, t1, C.List_empty, null);
- },
- visitParenthesizedExpression$1: function(node) {
- return node.expression.accept$1(this);
- },
- visitColorExpression$1: function(node) {
- return node.value;
- },
- visitListExpression$1: function(node) {
- var t1 = node.contents;
- 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);
- },
- visitMapExpression$1: function(node) {
- var t2, t3, _i, pair, t4, keyValue, valueValue,
- t1 = type$.Value,
- map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
- keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
- for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- pair = t2[_i];
- t4 = pair.item1;
- keyValue = t4.accept$1(this);
- valueValue = pair.item2.accept$1(this);
- if (map.containsKey$1(keyValue))
- 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$.FileSpan, type$.String), this._evaluate$_stackTrace$1(t4.get$span())));
- map.$indexSet(0, keyValue, valueValue);
- keyNodes.$indexSet(0, keyValue, t4);
- }
- return new A.SassMap(H.ConstantMap_ConstantMap$from(map, t1, t1));
- },
- visitFunctionExpression$1: function(node) {
- var oldInFunction, result, _this = this, t1 = {},
- t2 = node.name,
- plainName = t2.get$asPlain();
- t1.$function = null;
- if ((plainName != null ? t1.$function = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure(_this, node, plainName)) : null) == null) {
- if (node.namespace != null)
- throw H.wrapException(_this._evaluate$_exception$2("Undefined function.", node.span));
- t1.$function = new L.PlainCssCallable(_this._performInterpolation$1(t2));
- }
- oldInFunction = _this._inFunction;
- _this._inFunction = true;
- result = _this._addErrorSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure0(t1, _this, node));
- _this._inFunction = oldInFunction;
- return result;
- },
- _getFunction$2$namespace: function($name, namespace) {
- var local = this._evaluate$_environment.getFunction$2$namespace($name, namespace);
- if (local != null || namespace != null)
- return local;
- return this._builtInFunctions.$index(0, $name);
- },
- _runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
- var evaluated = this._evaluateArguments$1($arguments),
- t1 = callable.declaration.name,
- $name = t1 == null ? "@content" : t1 + "()";
- return this._withStackFrame$3($name, nodeWithSpan, new R._EvaluateVisitor__runUserDefinedCallable_closure(this, callable, evaluated, nodeWithSpan, run));
- },
- _runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
- var result, t1, t2, t3, first, _i, argument, rest, _this = this;
- if (callable instanceof Q.BuiltInCallable) {
- result = _this._runBuiltInCallable$3($arguments, callable, nodeWithSpan);
- if (result == null)
- throw H.wrapException(_this._evaluate$_exception$2("Custom functions may not return Dart's null.", nodeWithSpan.get$span()));
- return result.withoutSlash$0();
- } else if (type$.UserDefinedCallable_Environment._is(callable))
- return _this._runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new R._EvaluateVisitor__runFunctionCallable_closure(_this, callable)).withoutSlash$0();
- else if (callable instanceof L.PlainCssCallable) {
- t1 = $arguments.named;
- if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
- throw H.wrapException(_this._evaluate$_exception$2("Plain CSS functions don't support keyword arguments.", nodeWithSpan.get$span()));
- t1 = H.S(callable.name) + "(";
- for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
- argument = t2[_i];
- if (first)
- first = false;
- else
- t1 += ", ";
- t1 += H.S(_this._evaluate$_serialize$3$quote(argument.accept$1(_this), argument, true));
- }
- t2 = $arguments.rest;
- rest = t2 == null ? null : t2.accept$1(_this);
- if (rest != null) {
- if (!first)
- t1 += ", ";
- t2 = t1 + H.S(_this._evaluate$_serialize$2(rest, t2));
- t1 = t2;
- }
- t1 += H.Primitives_stringFromCharCode(41);
- return new D.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
- } else
- return null;
- },
- _runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
- var callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, _this = this,
- evaluated = _this._evaluateArguments$2$trackSpans($arguments, false),
- oldCallableNode = _this._callableNode;
- _this._callableNode = nodeWithSpan;
- namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_String);
- tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
- overload = tuple.item1;
- callback = tuple.item2;
- _this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__runBuiltInCallable_closure(overload, evaluated, namedSet));
- declaredArguments = overload.$arguments;
- for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
- argument = declaredArguments[i];
- t2 = evaluated.positional;
- t3 = evaluated.named.remove$1(0, argument.name);
- if (t3 == null) {
- t3 = argument.defaultValue;
- t3 = t3 == null ? null : t3.accept$1(_this);
- }
- t2.push(t3);
- }
- if (overload.restArgument != null) {
- if (evaluated.positional.length > t1) {
- rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
- C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
- } else
- rest = C.List_empty5;
- t1 = evaluated.named;
- t2 = evaluated.separator === C.ListSeparator_undecided ? C.ListSeparator_comma : evaluated.separator;
- t3 = type$.Value;
- argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t1, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
- argumentList.SassList$3$brackets(rest, t2, false);
- evaluated.positional.push(argumentList);
- } else
- argumentList = null;
- result = null;
- try {
- result = callback.call$1(evaluated.positional);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.SassRuntimeException._is(t1))
- throw exception;
- else if (t1 instanceof E.MultiSpanSassScriptException) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, _this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.MultiSpanSassException) {
- error0 = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, _this._evaluate$_stackTrace$1(error0.get$span())));
- } else {
- error1 = t1;
- message = null;
- try {
- message = H._asStringNullable(J.get$message$x(error1));
- } catch (exception) {
- H.unwrapException(exception);
- message = J.toString$0$(error1);
- }
- throw H.wrapException(_this._evaluate$_exception$2(message, nodeWithSpan.get$span()));
- }
- }
- _this._callableNode = oldCallableNode;
- if (argumentList == null)
- return result;
- t1 = evaluated.named;
- if (t1.get$isEmpty(t1))
- return result;
- if (argumentList._wereKeywordsAccessed)
- return result;
- t1 = evaluated.named.get$keys();
- 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$.Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
- },
- _evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
- var t1, t2, t3, _i, t4, t5, t6, t7, named, t8, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, _this = this, _null = null;
- if (trackSpans == null)
- trackSpans = _this._sourceMap;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value);
- for (t2 = $arguments.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i].accept$1(_this));
- t4 = $arguments.named;
- t5 = type$.String;
- t6 = type$.Expression;
- t7 = type$.Value;
- named = Y.mapMap(t4, _null, new R._EvaluateVisitor__evaluateArguments_closure(_this), t5, t6, t5, t7);
- if (trackSpans) {
- t8 = H.setRuntimeTypeInfo([], type$.JSArray_AstNode);
- for (_i = 0; _i < t3; ++_i)
- t8.push(_this._expressionNode$1(t2[_i]));
- positionalNodes = t8;
- } else
- positionalNodes = _null;
- namedNodes = trackSpans ? Y.mapMap(t4, _null, new R._EvaluateVisitor__evaluateArguments_closure0(_this), t5, t6, t5, type$.AstNode) : _null;
- t2 = $arguments.rest;
- if (t2 == null)
- return R._ArgumentResults$(t1, named, C.ListSeparator_undecided, namedNodes, positionalNodes);
- rest = t2.accept$1(_this);
- restNodeForSpan = trackSpans ? _this._expressionNode$1(t2) : _null;
- if (rest instanceof A.SassMap) {
- _this._addRestMap$1$3(named, rest, t2, t7);
- if (namedNodes != null) {
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode);
- for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t4 = type$.SassString; t3.moveNext$0();)
- t2.$indexSet(0, t4._as(t3.get$current(t3)).text, restNodeForSpan);
- namedNodes.addAll$1(0, t2);
- }
- separator = C.ListSeparator_undecided;
- } else if (rest instanceof D.SassList) {
- t2 = rest._list$_contents;
- C.JSArray_methods.addAll$1(t1, t2);
- if (positionalNodes != null)
- C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, type$.AstNode));
- separator = rest.separator;
- if (rest instanceof D.SassArgumentList) {
- rest._wereKeywordsAccessed = true;
- rest._keywords.forEach$1(0, new R._EvaluateVisitor__evaluateArguments_closure1(named, namedNodes, restNodeForSpan));
- }
- } else {
- t1.push(rest);
- if (positionalNodes != null)
- positionalNodes.push(restNodeForSpan);
- separator = C.ListSeparator_undecided;
- }
- t2 = $arguments.keywordRest;
- if (t2 == null)
- return R._ArgumentResults$(t1, named, separator, namedNodes, positionalNodes);
- keywordRest = t2.accept$1(_this);
- keywordRestNodeForSpan = trackSpans ? _this._expressionNode$1(t2) : _null;
- if (keywordRest instanceof A.SassMap) {
- _this._addRestMap$1$3(named, keywordRest, t2, t7);
- if (namedNodes != null) {
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode);
- for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.SassString; t3.moveNext$0();)
- t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
- namedNodes.addAll$1(0, t2);
- }
- return R._ArgumentResults$(t1, named, separator, namedNodes, positionalNodes);
- } else
- throw H.wrapException(_this._evaluate$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", t2.get$span()));
- },
- _evaluateArguments$1: function($arguments) {
- return this._evaluateArguments$2$trackSpans($arguments, null);
- },
- _evaluateMacroArguments$1: function(invocation) {
- var t3, positional, named, rest, keywordRest, _this = this,
- t1 = invocation.$arguments,
- t2 = t1.rest;
- if (t2 == null)
- return new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
- t3 = t1.positional;
- positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
- t3 = type$.Expression;
- named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, t3);
- rest = t2.accept$1(_this);
- if (rest instanceof A.SassMap)
- _this._addRestMap$1$4(named, rest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure(), t3);
- else if (rest instanceof D.SassList) {
- t2 = rest._list$_contents;
- C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new R._EvaluateVisitor__evaluateMacroArguments_closure0(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
- if (rest instanceof D.SassArgumentList) {
- rest._wereKeywordsAccessed = true;
- rest._keywords.forEach$1(0, new R._EvaluateVisitor__evaluateMacroArguments_closure1(named));
- }
- } else
- positional.push(new F.ValueExpression(rest, null));
- t1 = t1.keywordRest;
- if (t1 == null)
- return new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
- keywordRest = t1.accept$1(_this);
- if (keywordRest instanceof A.SassMap) {
- _this._addRestMap$1$4(named, keywordRest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure2(), t3);
- return new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression);
- } else
- throw H.wrapException(_this._evaluate$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", invocation.span));
- },
- _addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
- var t1 = {};
- t1.convert = convert;
- if (convert == null)
- t1.convert = new R._EvaluateVisitor__addRestMap_closure($T);
- map.contents.forEach$1(0, new R._EvaluateVisitor__addRestMap_closure0(t1, this, values, map, nodeWithSpan));
- },
- _addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
- return this._addRestMap$1$4(values, map, nodeWithSpan, null, $T);
- },
- _verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
- return this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__verifyArguments_closure($arguments, positional, named));
- },
- visitSelectorExpression$1: function(node) {
- var t1 = this._styleRule;
- if (t1 == null)
- return C.C_SassNull0;
- return t1.originalSelector.get$asSassList();
- },
- visitStringExpression$1: function(node) {
- var t1 = node.text.contents;
- 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);
- },
- visitCssAtRule$1: function(node) {
- var t1, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
- if (_this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("At-rules may not be used within nested declarations.", node.span));
- if (node.isChildless) {
- t1 = _this._evaluate$_parent;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- t1.addChild$1(new U.ModifiableCssAtRule(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2));
- return null;
- }
- wasInKeyframes = _this._inKeyframes;
- wasInUnknownAtRule = _this._inUnknownAtRule;
- t1 = node.name;
- if (B.unvendor(t1.get$value(t1)) === "keyframes")
- _this._inKeyframes = true;
- else
- _this._inUnknownAtRule = true;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- _this._withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2), new R._EvaluateVisitor_visitCssAtRule_closure(_this, node), false, new R._EvaluateVisitor_visitCssAtRule_closure0(), type$.ModifiableCssAtRule, type$.Null);
- _this._inUnknownAtRule = wasInUnknownAtRule;
- _this._inKeyframes = wasInKeyframes;
- },
- visitCssComment$1: function(node) {
- var _this = this,
- t1 = _this._evaluate$_parent,
- t2 = _this._root;
- if (t1 == t2 && _this._endOfImports === J.get$length$asx(t2.children._collection$_source))
- _this._endOfImports = _this._endOfImports + 1;
- _this._evaluate$_parent.addChild$1(new R.ModifiableCssComment(node.text, node.span));
- },
- visitCssDeclaration$1: function(node) {
- this._evaluate$_parent.addChild$1(L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.valueSpanForMap));
- },
- visitCssImport$1: function(node) {
- var _this = this,
- modifiableNode = F.ModifiableCssImport$(node.url, node.span, node.media, node.supports),
- t1 = _this._evaluate$_parent,
- t2 = _this._root;
- if (t1 != t2)
- t1.addChild$1(modifiableNode);
- else if (_this._endOfImports === J.get$length$asx(t2.children._collection$_source)) {
- _this._root.addChild$1(modifiableNode);
- _this._endOfImports = _this._endOfImports + 1;
- } else {
- t1 = _this._outOfOrderImports;
- (t1 == null ? _this._outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
- }
- },
- visitCssKeyframeBlock$1: function(node) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- this._withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new R._EvaluateVisitor_visitCssKeyframeBlock_closure(this, node), false, new R._EvaluateVisitor_visitCssKeyframeBlock_closure0(), type$.ModifiableCssKeyframeBlock, type$.Null);
- },
- visitCssMediaRule$1: function(node) {
- var t1, mergedQueries, _this = this;
- if (_this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("Media rules may not be used within nested declarations.", node.span));
- t1 = _this._mediaQueries;
- mergedQueries = t1 == null ? null : _this._mergeMediaQueries$2(t1, node.queries);
- t1 = mergedQueries == null;
- if (!t1 && mergedQueries.length === 0)
- return null;
- t1 = t1 ? node.queries : mergedQueries;
- _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$.ModifiableCssMediaRule, type$.Null);
- },
- visitCssStyleRule$1: function(node) {
- var t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this;
- if (_this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("Style rules may not be used within nested declarations.", node.span));
- t1 = node.selector;
- t2 = t1.value;
- t3 = _this._styleRule;
- t3 = t3 == null ? null : t3.originalSelector;
- originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !_this._atRootExcludingStyleRule);
- rule = X.ModifiableCssStyleRule$(_this._extender.addSelector$3(originalSelector, t1.span, _this._mediaQueries), node.span, originalSelector);
- oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
- _this._atRootExcludingStyleRule = false;
- _this._withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitCssStyleRule_closure(_this, rule, node), false, new R._EvaluateVisitor_visitCssStyleRule_closure0(), type$.ModifiableCssStyleRule, type$.Null);
- _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- if (!(_this._styleRule != null && !oldAtRootExcludingStyleRule)) {
- t1 = _this._evaluate$_parent.children;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- t1 = _this._evaluate$_parent.children;
- t1.get$last(t1).isGroupEnd = true;
- }
- },
- visitCssStylesheet$1: function(node) {
- var t1;
- for (t1 = J.get$iterator$ax(node.get$children()); t1.moveNext$0();)
- t1.get$current(t1).accept$1(this);
- },
- visitCssSupportsRule$1: function(node) {
- var t1, _this = this;
- if (_this._declarationName != null)
- throw H.wrapException(_this._evaluate$_exception$2("Supports rules may not be used within nested declarations.", node.span));
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- _this._withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1), new R._EvaluateVisitor_visitCssSupportsRule_closure(_this, node), false, new R._EvaluateVisitor_visitCssSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
- },
- _handleReturn$1$2: function(list, callback) {
- var t1, _i, result;
- for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i) {
- result = callback.call$1(list[_i]);
- if (result != null)
- return result;
- }
- return null;
- },
- _handleReturn$2: function(list, callback) {
- return this._handleReturn$1$2(list, callback, type$.dynamic);
- },
- _withEnvironment$1$2: function(environment, callback) {
- var result,
- oldEnvironment = this._evaluate$_environment;
- this._evaluate$_environment = environment;
- result = callback.call$0();
- this._evaluate$_environment = oldEnvironment;
- return result;
- },
- _withEnvironment$2: function(environment, callback) {
- return this._withEnvironment$1$2(environment, callback, type$.dynamic);
- },
- _interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
- var result = this._performInterpolation$2$warnForColor(interpolation, warnForColor),
- t1 = trim ? B.trimAscii(result, true) : result;
- return new F.CssValue(t1, interpolation.span, type$.CssValue_String);
- },
- _interpolationToValue$1: function(interpolation) {
- return this._interpolationToValue$3$trim$warnForColor(interpolation, false, false);
- },
- _interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
- return this._interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
- },
- _performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
- var t1 = interpolation.contents;
- return new H.MappedListIterable(t1, new R._EvaluateVisitor__performInterpolation_closure(this, warnForColor), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- _performInterpolation$1: function(interpolation) {
- return this._performInterpolation$2$warnForColor(interpolation, false);
- },
- _evaluate$_serialize$3$quote: function(value, nodeWithSpan, quote) {
- return this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__serialize_closure(value, quote));
- },
- _evaluate$_serialize$2: function(value, nodeWithSpan) {
- return this._evaluate$_serialize$3$quote(value, nodeWithSpan, true);
- },
- _expressionNode$1: function(expression) {
- var t1;
- if (!this._sourceMap)
- return null;
- if (expression instanceof S.VariableExpression) {
- t1 = this._evaluate$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
- return t1 == null ? expression : t1;
- } else
- return expression;
- },
- _withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
- var oldParent, result, _this = this;
- _this._addChild$2$through(node, through);
- oldParent = _this._evaluate$_parent;
- _this._evaluate$_parent = node;
- result = _this._evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T);
- _this._evaluate$_parent = oldParent;
- return result;
- },
- _withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
- return this._withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
- },
- _withParent$2$2: function(node, callback, $S, $T) {
- return this._withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
- },
- _addChild$2$through: function(node, through) {
- var grandparent,
- $parent = this._evaluate$_parent;
- if (through != null) {
- for (; through.call$1($parent);)
- $parent = $parent._parent;
- if ($parent.get$hasFollowingSibling()) {
- grandparent = $parent._parent;
- $parent = $parent.copyWithoutChildren$0();
- grandparent.addChild$1($parent);
- }
- }
- $parent.addChild$1(node);
- },
- _addChild$1: function(node) {
- return this._addChild$2$through(node, null);
- },
- _withStyleRule$1$2: function(rule, callback) {
- var result,
- oldRule = this._styleRule;
- this._styleRule = rule;
- result = callback.call$0();
- this._styleRule = oldRule;
- return result;
- },
- _withStyleRule$2: function(rule, callback) {
- return this._withStyleRule$1$2(rule, callback, type$.dynamic);
- },
- _withMediaQueries$1$2: function(queries, callback) {
- var result,
- oldMediaQueries = this._mediaQueries;
- this._mediaQueries = queries;
- result = callback.call$0();
- this._mediaQueries = oldMediaQueries;
- return result;
- },
- _withMediaQueries$2: function(queries, callback) {
- return this._withMediaQueries$1$2(queries, callback, type$.dynamic);
- },
- _withStackFrame$1$3: function(member, nodeWithSpan, callback) {
- var oldMember, result, _this = this,
- t1 = _this._stack;
- t1.push(new S.Tuple2(_this._member, nodeWithSpan, type$.Tuple2_String_AstNode));
- oldMember = _this._member;
- _this._member = member;
- result = callback.call$0();
- _this._member = oldMember;
- t1.pop();
- return result;
- },
- _withStackFrame$3: function(member, nodeWithSpan, callback) {
- return this._withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
- },
- _stackFrame$2: function(member, span) {
- var url = span.file.url;
- return B.frameForSpan(span, member, url != null && this._evaluate$_importCache != null ? this._evaluate$_importCache.humanize$1(url) : url);
- },
- _evaluate$_stackTrace$1: function(span) {
- var t2, _this = this,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
- 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();)
- t1.push(t2.__internal$_current);
- if (span != null)
- t1.push(_this._stackFrame$2(_this._member, span));
- return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_Frame), type$.Frame), new P._StringStackTrace(null));
- },
- _evaluate$_stackTrace$0: function() {
- return this._evaluate$_stackTrace$1(null);
- },
- _warn$3$deprecation: function(message, span, deprecation) {
- return this._evaluate$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._evaluate$_stackTrace$1(span));
- },
- _warn$2: function(message, span) {
- return this._warn$3$deprecation(message, span, false);
- },
- _evaluate$_exception$2: function(message, span) {
- var t1 = span == null ? C.JSArray_methods.get$last(this._stack).item2.get$span() : span;
- return new E.SassRuntimeException(this._evaluate$_stackTrace$1(span), message, t1);
- },
- _evaluate$_exception$1: function(message) {
- return this._evaluate$_exception$2(message, null);
- },
- _multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
- var t1 = C.JSArray_methods.get$last(this._stack).item2.get$span();
- return new E.MultiSpanSassRuntimeException(this._evaluate$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
- },
- _adjustParseError$1$2: function(nodeWithSpan, callback) {
- var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException) {
- error = t1;
- t1 = error;
- errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
- span = nodeWithSpan.get$span();
- t1 = span;
- t2 = span;
- 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);
- t2 = syntheticFile;
- t1 = span.file.url;
- t2.toString;
- t2 = new H.CodeUnits(t2);
- t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
- t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
- t3.SourceFile$decoded$2$url(t2, t1);
- t1 = span;
- t1 = Y.FileLocation$_(t1.file, t1._file$_start);
- t2 = error;
- t2 = G.SourceSpanException.prototype.get$span.call(t2);
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- t4 = span;
- t4 = Y.FileLocation$_(t4.file, t4._file$_start);
- t5 = error;
- t5 = G.SourceSpanException.prototype.get$span.call(t5);
- syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
- throw H.wrapException(this._evaluate$_exception$2(error._span_exception$_message, syntheticSpan));
- } else
- throw exception;
- }
- },
- _adjustParseError$2: function(nodeWithSpan, callback) {
- return this._adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _addExceptionSpan$1$2: function(nodeWithSpan, callback) {
- var error, error0, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.MultiSpanSassScriptException) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.SassScriptException) {
- error0 = t1;
- throw H.wrapException(this._evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
- } else
- throw exception;
- }
- },
- _addExceptionSpan$2: function(nodeWithSpan, callback) {
- return this._addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _addErrorSpan$1$2: function(nodeWithSpan, callback) {
- var error, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.SassRuntimeException._is(t1)) {
- error = t1;
- t1 = error.get$span();
- 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"))
- throw exception;
- throw H.wrapException(E.SassRuntimeException$(error._span_exception$_message, nodeWithSpan.get$span(), this._evaluate$_stackTrace$0()));
- } else
- throw exception;
- }
- },
- _addErrorSpan$2: function(nodeWithSpan, callback) {
- return this._addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- }
- };
- R._EvaluateVisitor_closure.prototype = {
- call$1: function($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._evaluate$_environment;
- t2 = variable.text;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- R._EvaluateVisitor_closure0.prototype = {
- call$1: function($arguments) {
- var variable = J.$index$asx($arguments, 0).assertString$1("name"),
- t1 = this.$this._evaluate$_environment,
- t2 = variable.text;
- t2.toString;
- return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- R._EvaluateVisitor_closure1.prototype = {
- call$1: function($arguments) {
- var module, t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._evaluate$_environment;
- t3 = variable.text;
- t3.toString;
- t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
- return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- R._EvaluateVisitor_closure2.prototype = {
- call$1: function($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._evaluate$_environment;
- t2 = variable.text;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- R._EvaluateVisitor_closure3.prototype = {
- call$1: function($arguments) {
- var t1 = this.$this._evaluate$_environment;
- if (!t1._inMixin)
- throw H.wrapException(E.SassScriptException$("content-exists() may only be called within a mixin."));
- return t1._content != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
- },
- $signature: 13
- };
- R._EvaluateVisitor_closure4.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
- module = this.$this._evaluate$_environment._environment$_modules.$index(0, t1);
- if (module == null)
- throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
- t1 = type$.Value;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new D.SassString(t4.key, true), t4.value);
- }
- return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 30
- };
- R._EvaluateVisitor_closure5.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
- module = this.$this._evaluate$_environment._environment$_modules.$index(0, t1);
- if (module == null)
- throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
- t1 = type$.Value;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new D.SassString(t4.key, true), new F.SassFunction(t4.value));
- }
- return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 30
- };
- R._EvaluateVisitor_closure6.prototype = {
- call$1: function($arguments) {
- var module, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name"),
- css = t1.$index($arguments, 1).get$isTruthy();
- t1 = t1.$index($arguments, 2).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- if (css && module != null)
- throw H.wrapException("$css and $module may not both be passed at once.");
- if (css)
- callable = new L.PlainCssCallable($name.text);
- else {
- t1 = this.$this;
- callable = t1._addExceptionSpan$2(t1._callableNode, new R._EvaluateVisitor__closure3(t1, $name, module));
- }
- if (callable != null)
- return new F.SassFunction(callable);
- throw H.wrapException("Function not found: " + $name.toString$0(0));
- },
- $signature: 73
- };
- R._EvaluateVisitor__closure3.prototype = {
- call$0: function() {
- var t2,
- t1 = this.name.text;
- t1.toString;
- t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
- t2 = this.module;
- t2 = t2 == null ? null : t2.text;
- return this.$this._getFunction$2$namespace(t1, t2);
- },
- $signature: 57
- };
- R._EvaluateVisitor_closure7.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4, t5, t6, t7, invocation, callable,
- t1 = J.getInterceptor$asx($arguments),
- $function = t1.$index($arguments, 0),
- args = type$.SassArgumentList._as(t1.$index($arguments, 1));
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression);
- t2 = type$.String;
- t3 = this.$this;
- t4 = t3._callableNode.get$span();
- t5 = t3._callableNode.get$span();
- args._wereKeywordsAccessed = true;
- t6 = args._keywords;
- if (t6.get$isEmpty(t6))
- t6 = null;
- else {
- args._wereKeywordsAccessed = true;
- t7 = type$.Value;
- t7 = new F.ValueExpression(new A.SassMap(H.ConstantMap_ConstantMap$from(Y.mapMap(t6, new R._EvaluateVisitor__closure1(), new R._EvaluateVisitor__closure2(), t2, t7, t7, t7), t7, t7)), t3._callableNode.get$span());
- t6 = t7;
- }
- invocation = X.ArgumentInvocation$(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Expression), t4, t6, new F.ValueExpression(args, t5));
- if ($function instanceof D.SassString) {
- N.warn("Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(" + $function.toString$0(0) + ")) instead.", true);
- return t3.visitFunctionExpression$1(new F.FunctionExpression(null, X.Interpolation$([$function.text], t3._callableNode.get$span()), invocation, t3._callableNode.get$span()));
- }
- callable = $function.assertFunction$1("function").callable;
- if (type$.Callable._is(callable))
- return t3._runFunctionCallable$3(invocation, callable, t3._callableNode);
- else
- throw H.wrapException(E.SassScriptException$("The function " + H.S(callable.get$name()) + " is asynchronous.\nThis is probably caused by a bug in a Sass plugin."));
- },
- $signature: 4
- };
- R._EvaluateVisitor__closure1.prototype = {
- call$2: function(key, _) {
- return new D.SassString(key, false);
- }
- };
- R._EvaluateVisitor__closure2.prototype = {
- call$2: function(_, value) {
- return value;
- }
- };
- R._EvaluateVisitor_closure8.prototype = {
- call$1: function($arguments) {
- var withMap, values, configuration, t2, t3, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
- t1 = t1.$index($arguments, 1).get$realNull();
- t1 = t1 == null ? _null : t1.assertMap$1("with");
- withMap = t1 == null ? _null : t1.contents;
- if (withMap != null) {
- values = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
- t1 = this.$this;
- withMap.forEach$1(0, new R._EvaluateVisitor__closure(values, t1._callableNode.get$span()));
- configuration = new A.Configuration(values, t1._callableNode, false);
- } else
- configuration = C.Configuration_Map_empty_null_true;
- t1 = this.$this;
- t2 = t1._callableNode;
- t3 = t2.get$span();
- t3 = t3 == null ? _null : t3.file.url;
- t1._loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new R._EvaluateVisitor__closure0(t1), t3, configuration, true);
- t1._assertConfigurationIsEmpty$2$nameInError(configuration, true);
- return _null;
- },
- $signature: 59
- };
- R._EvaluateVisitor__closure.prototype = {
- call$2: function(variable, value) {
- var $name,
- t1 = variable.assertString$1("with key").text;
- t1.toString;
- $name = H.stringReplaceAllUnchecked(t1, "_", "-");
- t1 = this.values;
- if (t1.containsKey$1($name))
- throw H.wrapException("The variable $" + $name + " was configured twice.");
- t1.$indexSet(0, $name, new Z.ConfiguredValue(value, this.span, null));
- }
- };
- R._EvaluateVisitor__closure0.prototype = {
- call$1: function(module) {
- var t1 = this.$this;
- return t1._combineCss$2$clone(module, true).accept$1(t1);
- }
- };
- R._EvaluateVisitor_run_closure.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.node,
- t2 = t1.span,
- url = t2 == null ? null : t2.file.url;
- if (url != null)
- _this.$this._activeModules.$indexSet(0, url, null);
- t2 = _this.$this;
- return new E.EvaluateResult(t2._combineCss$1(t2._execute$2(_this.importer, t1)));
- },
- $signature: 134
- };
- R._EvaluateVisitor_runExpression_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = this.expression;
- return t1._withFakeStylesheet$3(this.importer, t2, new R._EvaluateVisitor_runExpression__closure(t1, t2));
- },
- $signature: 9
- };
- R._EvaluateVisitor_runExpression__closure.prototype = {
- call$0: function() {
- return this.expression.accept$1(this.$this);
- },
- $signature: 9
- };
- R._EvaluateVisitor_runStatement_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = this.statement;
- return t1._withFakeStylesheet$3(this.importer, t2, new R._EvaluateVisitor_runStatement__closure(t1, t2));
- },
- $signature: 1
- };
- R._EvaluateVisitor_runStatement__closure.prototype = {
- call$0: function() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 1
- };
- R._EvaluateVisitor__withWarnCallback_closure.prototype = {
- call$2: function(message, deprecation) {
- var t1 = this.$this,
- t2 = t1._importSpan;
- return t1._warn$3$deprecation(message, t2 == null ? t1._callableNode.get$span() : t2, deprecation);
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- R._EvaluateVisitor__loadModule_closure.prototype = {
- call$0: function() {
- var module, error, error0, error1, error2, message, previousLoad, exception, _this = this,
- t1 = _this.$this,
- t2 = _this.nodeWithSpan,
- result = t1._loadStylesheet$3$baseUrl(J.toString$0$(_this.url), t2.get$span(), _this.baseUrl),
- importer = result.item1,
- stylesheet = result.item2,
- canonicalUrl = stylesheet.span.file.url,
- t3 = t1._activeModules;
- if (t3.containsKey$1(canonicalUrl)) {
- message = _this.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : "Module loop: this module is already being loaded.";
- previousLoad = t3.$index(0, canonicalUrl);
- 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$.FileSpan, type$.String)));
- }
- t3.$indexSet(0, canonicalUrl, t2);
- module = null;
- try {
- module = t1._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
- } finally {
- t3.remove$1(0, canonicalUrl);
- }
- try {
- _this.callback.call$1(module);
- } catch (exception) {
- t2 = H.unwrapException(exception);
- if (type$.SassRuntimeException._is(t2))
- throw exception;
- else if (t2 instanceof E.MultiSpanSassException) {
- error = t2;
- throw H.wrapException(E.MultiSpanSassRuntimeException$(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._evaluate$_stackTrace$1(error.get$span())));
- } else if (t2 instanceof E.SassException) {
- error0 = t2;
- throw H.wrapException(t1._evaluate$_exception$2(error0._span_exception$_message, error0.get$span()));
- } else if (t2 instanceof E.MultiSpanSassScriptException) {
- error1 = t2;
- throw H.wrapException(t1._multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
- } else if (t2 instanceof E.SassScriptException) {
- error2 = t2;
- throw H.wrapException(t1._evaluate$_exception$1(error2.message));
- } else
- throw exception;
- }
- },
- $signature: 0
- };
- R._EvaluateVisitor__execute_closure.prototype = {
- call$0: function() {
- var t2, t3, t4, css, _this = this,
- t1 = _this.$this,
- oldImporter = t1._importer,
- oldStylesheet = t1._stylesheet,
- oldRoot = t1._root,
- oldParent = t1._evaluate$_parent,
- oldEndOfImports = t1._endOfImports,
- oldOutOfOrderImports = t1._outOfOrderImports,
- oldExtender = t1._extender,
- oldStyleRule = t1._styleRule,
- oldMediaQueries = t1._mediaQueries,
- oldDeclarationName = t1._declarationName,
- oldInUnknownAtRule = t1._inUnknownAtRule,
- oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule,
- oldInKeyframes = t1._inKeyframes,
- oldConfiguration = t1._configuration;
- t1._importer = _this.importer;
- t2 = t1._stylesheet = _this.stylesheet;
- t3 = t2.span;
- t4 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- t1._evaluate$_parent = t1._root = new V.ModifiableCssStylesheet(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_ModifiableCssNode), t4);
- t1._endOfImports = 0;
- t1._outOfOrderImports = null;
- t1._extender = _this.extender;
- t1._declarationName = t1._mediaQueries = t1._styleRule = null;
- t1._inKeyframes = t1._atRootExcludingStyleRule = t1._inUnknownAtRule = false;
- t4 = _this.configuration;
- if (t4 != null)
- t1._configuration = t4;
- t1.visitStylesheet$1(t2);
- css = t1._outOfOrderImports == null ? t1._root : new V.CssStylesheet(new P.UnmodifiableListView(t1._addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t3);
- _this._box_0.css = css;
- t1._importer = oldImporter;
- t1._stylesheet = oldStylesheet;
- t1._root = oldRoot;
- t1._evaluate$_parent = oldParent;
- t1._endOfImports = oldEndOfImports;
- t1._outOfOrderImports = oldOutOfOrderImports;
- t1._extender = oldExtender;
- t1._styleRule = oldStyleRule;
- t1._mediaQueries = oldMediaQueries;
- t1._declarationName = oldDeclarationName;
- t1._inUnknownAtRule = oldInUnknownAtRule;
- t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- t1._inKeyframes = oldInKeyframes;
- t1._configuration = oldConfiguration;
- },
- $signature: 0
- };
- R._EvaluateVisitor__combineCss_closure.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsCss();
- }
- };
- R._EvaluateVisitor__combineCss_closure0.prototype = {
- call$1: function(target) {
- return !this.selectors.contains$1(0, target);
- }
- };
- R._EvaluateVisitor__combineCss_closure1.prototype = {
- call$1: function(module) {
- return module.cloneCss$0();
- }
- };
- R._EvaluateVisitor__extendModules_closure.prototype = {
- call$1: function(target) {
- return !this.originalSelectors.contains$1(0, target);
- }
- };
- R._EvaluateVisitor__extendModules_closure0.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_Extender);
- },
- $signature: 74
- };
- R._EvaluateVisitor__topologicalModules_visitModule.prototype = {
- call$1: function(module) {
- var t1, t2, t3, _i, upstream;
- for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- upstream = t1[_i];
- if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
- this.call$1(upstream);
- }
- this.sorted.addFirst$1(module);
- }
- };
- R._EvaluateVisitor_visitAtRootRule_closure.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.resolved, null);
- return new V.AtRootQueryParser(t1, this.$this._evaluate$_logger).parse$0();
- },
- $signature: 63
- };
- R._EvaluateVisitor_visitAtRootRule_closure0.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitAtRootRule_closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- R._EvaluateVisitor__scopeForAtRoot_closure.prototype = {
- call$1: function(callback) {
- var t1 = this.$this,
- oldParent = t1._evaluate$_parent;
- t1._evaluate$_parent = this.newParent;
- t1._evaluate$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
- t1._evaluate$_parent = oldParent;
- }
- };
- R._EvaluateVisitor__scopeForAtRoot_closure0.prototype = {
- call$1: function(callback) {
- var t1 = this.$this,
- oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule;
- t1._atRootExcludingStyleRule = true;
- this.innerScope.call$1(callback);
- t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- }
- };
- R._EvaluateVisitor__scopeForAtRoot_closure1.prototype = {
- call$1: function(callback) {
- return this.$this._withMediaQueries$2(null, new R._EvaluateVisitor__scopeForAtRoot__closure(this.innerScope, callback));
- }
- };
- R._EvaluateVisitor__scopeForAtRoot__closure.prototype = {
- call$0: function() {
- return this.innerScope.call$1(this.callback);
- },
- $signature: 0
- };
- R._EvaluateVisitor__scopeForAtRoot_closure2.prototype = {
- call$1: function(callback) {
- var t1 = this.$this,
- wasInKeyframes = t1._inKeyframes;
- t1._inKeyframes = false;
- this.innerScope.call$1(callback);
- t1._inKeyframes = wasInKeyframes;
- }
- };
- R._EvaluateVisitor__scopeForAtRoot_closure3.prototype = {
- call$1: function($parent) {
- return type$.CssAtRule._is($parent);
- }
- };
- R._EvaluateVisitor__scopeForAtRoot_closure4.prototype = {
- call$1: function(callback) {
- var t1 = this.$this,
- wasInUnknownAtRule = t1._inUnknownAtRule;
- t1._inUnknownAtRule = false;
- this.innerScope.call$1(callback);
- t1._inUnknownAtRule = wasInUnknownAtRule;
- }
- };
- R._EvaluateVisitor_visitContentRule_closure.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- return null;
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitDeclaration_closure.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitEachRule_closure.prototype = {
- call$1: function(value) {
- return this.$this._evaluate$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
- }
- };
- R._EvaluateVisitor_visitEachRule_closure0.prototype = {
- call$1: function(value) {
- return this.$this._setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
- }
- };
- R._EvaluateVisitor_visitEachRule_closure1.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this;
- return t1._handleReturn$2(_this.list.get$asList(), new R._EvaluateVisitor_visitEachRule__closure(t1, _this.setVariables, _this.node));
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitEachRule__closure.prototype = {
- call$1: function(element) {
- var t1;
- this.setVariables.call$1(element);
- t1 = this.$this;
- return t1._handleReturn$2(this.node.children, new R._EvaluateVisitor_visitEachRule___closure(t1));
- }
- };
- R._EvaluateVisitor_visitEachRule___closure.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor_visitExtendRule_closure.prototype = {
- call$0: function() {
- return D.SelectorList_SelectorList$parse(B.trimAscii(this.targetText.value, true), false, true, this.$this._evaluate$_logger);
- },
- $signature: 31
- };
- R._EvaluateVisitor_visitAtRule_closure.prototype = {
- call$0: function() {
- var t3, _i,
- t1 = this.$this,
- t2 = t1._styleRule;
- if (!(t2 != null && !t1._atRootExcludingStyleRule) || t1._inKeyframes)
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- else
- t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitAtRule__closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitAtRule__closure.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitAtRule_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._EvaluateVisitor_visitForRule_closure.prototype = {
- call$0: function() {
- return this.node.from.accept$1(this.$this).assertNumber$0();
- },
- $signature: 77
- };
- R._EvaluateVisitor_visitForRule_closure0.prototype = {
- call$0: function() {
- return this.node.to.accept$1(this.$this).assertNumber$0();
- },
- $signature: 77
- };
- R._EvaluateVisitor_visitForRule_closure1.prototype = {
- call$0: function() {
- var t1 = this.toNumber,
- t2 = t1.numeratorUnits;
- t1 = t1.denominatorUnits;
- return T.SassNumber$withUnits(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
- },
- $signature: 8
- };
- R._EvaluateVisitor_visitForRule_closure2.prototype = {
- call$0: function() {
- return this.toNumber.assertInt$0();
- },
- $signature: 8
- };
- R._EvaluateVisitor_visitForRule_closure3.prototype = {
- call$0: function() {
- var i, t3, t4, t5, t6, result, _this = this,
- t1 = _this.$this,
- t2 = _this.node,
- nodeWithSpan = t1._expressionNode$1(t2.from);
- for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.children, t2 = t2.variable; i !== t3.to; i += t4) {
- t6 = t1._evaluate$_environment;
- t6.setLocalVariable$3(t2, new T.SassNumber(i, C.List_empty, C.List_empty, null), nodeWithSpan);
- result = t1._handleReturn$2(t5, new R._EvaluateVisitor_visitForRule__closure(t1));
- if (result != null)
- return result;
- }
- return null;
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitForRule__closure.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor_visitForwardRule_closure.prototype = {
- call$1: function(module) {
- this.$this._evaluate$_environment.forwardModule$2(module, this.node);
- }
- };
- R._EvaluateVisitor_visitForwardRule_closure0.prototype = {
- call$1: function(module) {
- this.$this._evaluate$_environment.forwardModule$2(module, this.node);
- }
- };
- R._EvaluateVisitor__assertConfigurationIsEmpty_closure.prototype = {
- call$2: function($name, value) {
- var t1 = this.only;
- if (t1 != null && !t1.contains$1(0, $name))
- return;
- t1 = this.nameInError ? "$" + H.S($name) + " was not declared with !default in the @used module." : "This variable was not declared with !default in the @used module.";
- throw H.wrapException(this.$this._evaluate$_exception$2(t1, value.configurationSpan));
- }
- };
- R._EvaluateVisitor_visitIfRule_closure.prototype = {
- call$0: function() {
- var t1 = this.$this;
- return t1._handleReturn$2(this._box_0.clause.children, new R._EvaluateVisitor_visitIfRule__closure(t1));
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitIfRule__closure.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor__visitDynamicImport_closure.prototype = {
- call$0: function() {
- var previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _null = null,
- _s34_ = "This file is already being loaded.",
- _box_0 = {},
- t1 = this.$this,
- t2 = this.$import,
- result = t1._loadStylesheet$3$forImport(t2.url, t2.span, true),
- importer = result.item1,
- stylesheet = result.item2,
- url = stylesheet.span.file.url,
- t3 = t1._activeModules;
- if (t3.containsKey$1(url)) {
- previousLoad = t3.$index(0, url);
- 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$.FileSpan, type$.String)));
- }
- t3.$indexSet(0, url, t2);
- t2 = new P.UnmodifiableListView(stylesheet._uses, type$.UnmodifiableListView_UseRule);
- if (t2.get$length(t2) === 0) {
- t2 = new P.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
- t2 = t2.get$length(t2) === 0;
- } else
- t2 = false;
- if (t2) {
- oldImporter = t1._importer;
- oldStylesheet = t1._stylesheet;
- t1._importer = importer;
- t1._stylesheet = stylesheet;
- t1.visitStylesheet$1(stylesheet);
- t1._importer = oldImporter;
- t1._stylesheet = oldStylesheet;
- t3.remove$1(0, url);
- return;
- }
- _box_0.children = null;
- t2 = t1._evaluate$_environment;
- t4 = type$.String;
- t5 = type$.Module_Callable;
- t6 = type$.AstNode;
- t7 = H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable);
- t8 = t2._variables;
- t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
- t9 = t2._variableNodes;
- if (t9 == null)
- t9 = _null;
- else
- t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
- t10 = t2._functions;
- t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
- t11 = t2._mixins;
- t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
- 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);
- t1._withEnvironment$2(environment, new R._EvaluateVisitor__visitDynamicImport__closure(_box_0, t1, importer, stylesheet, environment));
- module = O._EnvironmentModule__EnvironmentModule(environment, new V.CssStylesheet(new P.UnmodifiableListView(C.List_empty0, type$.UnmodifiableListView_CssNode), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender, environment._forwardedModules);
- t1._evaluate$_environment.importForwards$1(module);
- if (module.transitivelyContainsCss)
- t1._combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
- visitor = new R._ImportedCssVisitor(t1);
- for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
- t1.get$current(t1).accept$1(visitor);
- t3.remove$1(0, url);
- },
- $signature: 0
- };
- R._EvaluateVisitor__visitDynamicImport__closure.prototype = {
- call$0: function() {
- var t2, t3, _this = this,
- t1 = _this.$this,
- oldImporter = t1._importer,
- oldStylesheet = t1._stylesheet,
- oldRoot = t1._root,
- oldParent = t1._evaluate$_parent,
- oldEndOfImports = t1._endOfImports,
- oldOutOfOrderImports = t1._outOfOrderImports,
- oldConfiguration = t1._configuration;
- t1._importer = _this.importer;
- t2 = t1._stylesheet = _this.stylesheet;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode);
- t1._evaluate$_parent = t1._root = new V.ModifiableCssStylesheet(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode), t3);
- t1._endOfImports = 0;
- t1._outOfOrderImports = null;
- t3 = new P.UnmodifiableListView(t2._forwards, type$.UnmodifiableListView_ForwardRule);
- if (!t3.get$isEmpty(t3))
- t1._configuration = _this.environment.toImplicitConfiguration$0();
- t1.visitStylesheet$1(t2);
- _this._box_0.children = t1._addOutOfOrderImports$0();
- t1._importer = oldImporter;
- t1._stylesheet = oldStylesheet;
- t1._root = oldRoot;
- t1._evaluate$_parent = oldParent;
- t1._endOfImports = oldEndOfImports;
- t1._outOfOrderImports = oldOutOfOrderImports;
- t1._configuration = oldConfiguration;
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitIncludeRule_closure.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
- },
- $signature: 57
- };
- R._EvaluateVisitor_visitIncludeRule_closure0.prototype = {
- call$0: function() {
- return this.node.get$spanWithoutContent();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 24
- };
- R._EvaluateVisitor_visitIncludeRule_closure1.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = t1._evaluate$_environment,
- oldContent = t2._content;
- t2._content = _this.contentCallable;
- new R._EvaluateVisitor_visitIncludeRule__closure(t1, _this.mixin, _this.nodeWithSpan).call$0();
- t2._content = oldContent;
- return null;
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitIncludeRule__closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._evaluate$_environment,
- oldInMixin = t2._inMixin;
- t2._inMixin = true;
- new R._EvaluateVisitor_visitIncludeRule___closure(t1, this.mixin, this.nodeWithSpan).call$0();
- t2._inMixin = oldInMixin;
- return null;
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitIncludeRule___closure.prototype = {
- call$0: function() {
- var t1, t2, t3, t4, _i;
- for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
- t3._addErrorSpan$2(t4, new R._EvaluateVisitor_visitIncludeRule____closure(t3, t1[_i]));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitIncludeRule____closure.prototype = {
- call$0: function() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitMediaRule_closure.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.mergedQueries;
- if (t2 == null)
- t2 = _this.queries;
- t1._withMediaQueries$2(t2, new R._EvaluateVisitor_visitMediaRule__closure(t1, _this.node));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitMediaRule__closure.prototype = {
- call$0: function() {
- var t3, _i,
- t1 = this.$this,
- t2 = t1._styleRule;
- if (!(t2 != null && !t1._atRootExcludingStyleRule))
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- else
- t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitMediaRule___closure.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitMediaRule_closure0.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule._is(node))
- t1 = this.mergedQueries != null && type$.CssMediaRule._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- R._EvaluateVisitor__visitMediaQueries_closure.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.resolved, null);
- return new F.MediaQueryParser(t1, this.$this._evaluate$_logger).parse$0();
- },
- $signature: 62
- };
- R._EvaluateVisitor_visitStyleRule_closure.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.selectorText.value, null);
- return new E.KeyframeSelectorParser(t1, this.$this._evaluate$_logger).parse$0();
- },
- $signature: 32
- };
- R._EvaluateVisitor_visitStyleRule_closure0.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitStyleRule_closure1.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._EvaluateVisitor_visitStyleRule_closure2.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = !t1._stylesheet.plainCss;
- return D.SelectorList_SelectorList$parse(this.selectorText.value, t2, t2, t1._evaluate$_logger);
- },
- $signature: 31
- };
- R._EvaluateVisitor_visitStyleRule_closure3.prototype = {
- call$0: function() {
- var t1 = this._box_0.parsedSelector,
- t2 = this.$this,
- t3 = t2._styleRule;
- t3 = t3 == null ? null : t3.originalSelector;
- return t1.resolveParentSelectors$2$implicitParent(t3, !t2._atRootExcludingStyleRule);
- },
- $signature: 31
- };
- R._EvaluateVisitor_visitStyleRule_closure4.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._withStyleRule$2(this.rule, new R._EvaluateVisitor_visitStyleRule__closure(t1, this.node));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitStyleRule__closure.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitStyleRule_closure5.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._EvaluateVisitor_visitSupportsRule_closure.prototype = {
- call$0: function() {
- var t3, _i,
- t1 = this.$this,
- t2 = t1._styleRule;
- if (!(t2 != null && !t1._atRootExcludingStyleRule))
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- else
- t1._withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitSupportsRule__closure.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitSupportsRule_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._EvaluateVisitor_visitVariableDeclaration_closure.prototype = {
- call$0: function() {
- var t1 = this.override;
- this.$this._evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitVariableDeclaration_closure0.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitVariableDeclaration_closure1.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = this.node;
- t1._evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitUseRule_closure.prototype = {
- call$1: function(module) {
- var t1 = this.node;
- this.$this._evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
- }
- };
- R._EvaluateVisitor_visitWarnRule_closure.prototype = {
- call$0: function() {
- return this.node.expression.accept$1(this.$this);
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitWhileRule_closure.prototype = {
- call$0: function() {
- var t1, t2, t3, result;
- for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
- result = t3._handleReturn$2(t1, new R._EvaluateVisitor_visitWhileRule__closure(t3));
- if (result != null)
- return result;
- }
- return null;
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitWhileRule__closure.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor_visitBinaryOperationExpression_closure.prototype = {
- call$0: function() {
- var right, result,
- t1 = this.node,
- t2 = this.$this,
- left = t1.left.accept$1(t2);
- switch (t1.operator) {
- case C.BinaryOperator_kjl:
- right = t1.right.accept$1(t2);
- left.toString;
- t1 = N.serializeValue0(left, false, true) + "=";
- right.toString;
- return new D.SassString(t1 + N.serializeValue0(right, false, true), false);
- case C.BinaryOperator_or_or_1:
- return left.get$isTruthy() ? left : t1.right.accept$1(t2);
- case C.BinaryOperator_and_and_2:
- return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
- case C.BinaryOperator_YlX:
- return J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- case C.BinaryOperator_i5H:
- return !J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
- case C.BinaryOperator_AcR0:
- return left.greaterThan$1(t1.right.accept$1(t2));
- case C.BinaryOperator_1da:
- return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
- case C.BinaryOperator_8qt:
- return left.lessThan$1(t1.right.accept$1(t2));
- case C.BinaryOperator_33h:
- return left.lessThanOrEquals$1(t1.right.accept$1(t2));
- case C.BinaryOperator_AcR:
- return left.plus$1(t1.right.accept$1(t2));
- case C.BinaryOperator_iyO:
- return left.minus$1(t1.right.accept$1(t2));
- case C.BinaryOperator_O1M:
- return left.times$1(t1.right.accept$1(t2));
- case C.BinaryOperator_RTB:
- right = t1.right.accept$1(t2);
- result = left.dividedBy$1(right);
- if (t1.allowsSlash && left instanceof T.SassNumber && right instanceof T.SassNumber)
- return type$.SassNumber._as(result).withSlash$2(left, right);
- else
- return result;
- case C.BinaryOperator_2ad:
- return left.modulo$1(t1.right.accept$1(t2));
- default:
- return null;
- }
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitVariableExpression_closure.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 9
- };
- R._EvaluateVisitor_visitListExpression_closure.prototype = {
- call$1: function(expression) {
- return expression.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor_visitFunctionExpression_closure.prototype = {
- call$0: function() {
- var t1 = this.node.namespace,
- t2 = this.plainName;
- if (t1 == null)
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return this.$this._getFunction$2$namespace(t2, t1);
- },
- $signature: 57
- };
- R._EvaluateVisitor_visitFunctionExpression_closure0.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
- },
- $signature: 9
- };
- R._EvaluateVisitor__runUserDefinedCallable_closure.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.callable;
- return t1._withEnvironment$2(t2.environment.closure$0(), new R._EvaluateVisitor__runUserDefinedCallable__closure(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run));
- },
- $signature: 9
- };
- R._EvaluateVisitor__runUserDefinedCallable__closure.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this;
- return t1._evaluate$_environment.scope$1$1(new R._EvaluateVisitor__runUserDefinedCallable___closure(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.Value);
- },
- $signature: 9
- };
- R._EvaluateVisitor__runUserDefinedCallable___closure.prototype = {
- call$0: function() {
- var declaredArguments, minLength, t8, t9, i, t10, t11, t12, argument, value, t13, rest, argumentList, result, argumentWord, argumentNames, _this = this, _null = null,
- t1 = _this.$this,
- t2 = _this.evaluated,
- t3 = t2.positional,
- t4 = t3.length,
- t5 = t2.named,
- t6 = _this.callable.declaration.$arguments,
- t7 = _this.nodeWithSpan;
- t1._verifyArguments$4(t4, t5, t6, t7);
- declaredArguments = t6.$arguments;
- t4 = declaredArguments.length;
- minLength = Math.min(t3.length, t4);
- for (t8 = t1._sourceMap, t9 = t2.positionalNodes, i = 0; i < minLength; ++i) {
- t10 = t1._evaluate$_environment;
- t11 = declaredArguments[i].name;
- t12 = t3[i].withoutSlash$0();
- t10.setLocalVariable$3(t11, t12, t8 ? t9[i] : _null);
- }
- for (i = t3.length, t9 = t2.namedNodes; i < t4; ++i) {
- argument = declaredArguments[i];
- t10 = argument.name;
- value = t5.remove$1(0, t10);
- if (value == null)
- value = argument.defaultValue.accept$1(t1);
- t11 = t1._evaluate$_environment;
- t12 = value.withoutSlash$0();
- if (t8) {
- t13 = t9.$index(0, t10);
- if (t13 == null)
- t13 = t1._expressionNode$1(argument.defaultValue);
- } else
- t13 = _null;
- t11.setLocalVariable$3(t10, t12, t13);
- }
- t8 = t6.restArgument;
- if (t8 != null) {
- rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty5;
- t2 = t2.separator;
- if (t2 === C.ListSeparator_undecided)
- t2 = C.ListSeparator_comma;
- t3 = type$.Value;
- argumentList = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(t5, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
- argumentList.SassList$3$brackets(rest, t2, false);
- t1._evaluate$_environment.setLocalVariable$3(t8, argumentList, t7);
- } else
- argumentList = _null;
- result = _this.run.call$0();
- if (argumentList == null)
- return result;
- if (t5.get$isEmpty(t5))
- return result;
- if (argumentList._wereKeywordsAccessed)
- return result;
- t2 = t5.get$keys();
- argumentWord = B.pluralize("argument", t2.get$length(t2), _null);
- t5 = t5.get$keys();
- argumentNames = B.toSentence(H.MappedIterable_MappedIterable(t5, new R._EvaluateVisitor__runUserDefinedCallable____closure(), H._instanceType(t5)._eval$1("Iterable.E"), type$.Object), "or");
- throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate$_stackTrace$1(t7.get$span())));
- },
- $signature: 9
- };
- R._EvaluateVisitor__runUserDefinedCallable____closure.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- R._EvaluateVisitor__runFunctionCallable_closure.prototype = {
- call$0: function() {
- var t1, t2, t3, t4, _i, $returnValue;
- for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
- $returnValue = t2[_i].accept$1(t4);
- if ($returnValue instanceof F.Value)
- return $returnValue;
- }
- throw H.wrapException(t4._evaluate$_exception$2("Function finished without @return.", t1.span));
- },
- $signature: 9
- };
- R._EvaluateVisitor__runBuiltInCallable_closure.prototype = {
- call$0: function() {
- return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
- },
- $signature: 1
- };
- R._EvaluateVisitor__runBuiltInCallable_closure0.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- R._EvaluateVisitor__evaluateArguments_closure.prototype = {
- call$2: function(_, expression) {
- return expression.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor__evaluateArguments_closure0.prototype = {
- call$2: function(_, expression) {
- return this.$this._expressionNode$1(expression);
- }
- };
- R._EvaluateVisitor__evaluateArguments_closure1.prototype = {
- call$2: function(key, value) {
- var t1;
- this.named.$indexSet(0, key, value);
- t1 = this.namedNodes;
- if (t1 != null)
- t1.$indexSet(0, key, this.restNodeForSpan);
- }
- };
- R._EvaluateVisitor__evaluateMacroArguments_closure.prototype = {
- call$1: function(value) {
- return new F.ValueExpression(value, null);
- }
- };
- R._EvaluateVisitor__evaluateMacroArguments_closure0.prototype = {
- call$1: function(value) {
- return new F.ValueExpression(value, null);
- }
- };
- R._EvaluateVisitor__evaluateMacroArguments_closure1.prototype = {
- call$2: function(key, value) {
- this.named.$indexSet(0, key, new F.ValueExpression(value, null));
- }
- };
- R._EvaluateVisitor__evaluateMacroArguments_closure2.prototype = {
- call$1: function(value) {
- return new F.ValueExpression(value, null);
- }
- };
- R._EvaluateVisitor__addRestMap_closure.prototype = {
- call$1: function(value) {
- return this.T._as(value);
- }
- };
- R._EvaluateVisitor__addRestMap_closure0.prototype = {
- call$2: function(key, value) {
- var _this = this;
- if (key instanceof D.SassString)
- _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
- else
- throw H.wrapException(_this.$this._evaluate$_exception$2("Variable keyword argument map must have string keys.\n" + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
- }
- };
- R._EvaluateVisitor__verifyArguments_closure.prototype = {
- call$0: function() {
- return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_String));
- },
- $signature: 1
- };
- R._EvaluateVisitor_visitStringExpression_closure.prototype = {
- call$1: function(value) {
- var t1, result;
- if (typeof value == "string")
- return value;
- type$.Expression._as(value);
- t1 = this.$this;
- result = value.accept$1(t1);
- return result instanceof D.SassString ? result.text : t1._evaluate$_serialize$3$quote(result, value, false);
- },
- $signature: 27
- };
- R._EvaluateVisitor_visitCssAtRule_closure.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssAtRule_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._EvaluateVisitor_visitCssKeyframeBlock_closure.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssKeyframeBlock_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._EvaluateVisitor_visitCssMediaRule_closure.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.mergedQueries;
- if (t2 == null)
- t2 = _this.node.queries;
- t1._withMediaQueries$2(t2, new R._EvaluateVisitor_visitCssMediaRule__closure(t1, _this.node));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssMediaRule__closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._styleRule;
- if (!(t2 != null && !t1._atRootExcludingStyleRule))
- for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t2.__internal$_current.accept$1(t1);
- else
- t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssMediaRule___closure.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssMediaRule_closure0.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule._is(node))
- t1 = this.mergedQueries != null && type$.CssMediaRule._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- R._EvaluateVisitor_visitCssStyleRule_closure.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._withStyleRule$2(this.rule, new R._EvaluateVisitor_visitCssStyleRule__closure(t1, this.node));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssStyleRule__closure.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssStyleRule_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._EvaluateVisitor_visitCssSupportsRule_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._styleRule;
- if (!(t2 != null && !t1._atRootExcludingStyleRule))
- for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t2.__internal$_current.accept$1(t1);
- else
- t1._withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssSupportsRule__closure.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssSupportsRule_closure0.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._EvaluateVisitor__performInterpolation_closure.prototype = {
- call$1: function(value) {
- var t1, result, t2, t3;
- if (typeof value == "string")
- return value;
- type$.Expression._as(value);
- t1 = this.$this;
- result = value.accept$1(t1);
- if (this.warnForColor && result instanceof K.SassColor && $.$get$namesByColor().containsKey$1(result)) {
- t2 = X.Interpolation$([""], null);
- t3 = $.$get$namesByColor();
- t1._warn$2("You probably don't mean to use the color value " + H.S(t3.$index(0, result)) + " in interpolation here.\nIt may end up represented as " + H.S(result) + ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "' + H.S(t3.$index(0, result)) + "\").\nIf you really want to use the color value here, use '" + new V.BinaryOperationExpression(C.BinaryOperator_AcR, new D.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span());
- }
- return t1._evaluate$_serialize$3$quote(result, value, false);
- },
- $signature: 27
- };
- R._EvaluateVisitor__serialize_closure.prototype = {
- call$0: function() {
- var t1 = this.value;
- t1.toString;
- return N.serializeValue0(t1, false, this.quote);
- },
- $signature: 10
- };
- R._EvaluateVisitor__stackTrace_closure.prototype = {
- call$1: function(tuple) {
- return this.$this._stackFrame$2(tuple.item1, tuple.item2.get$span());
- }
- };
- R._ImportedCssVisitor.prototype = {
- visitCssAtRule$1: function(node) {
- var t1 = node.isChildless ? null : new R._ImportedCssVisitor_visitCssAtRule_closure();
- this._visitor._addChild$2$through(node, t1);
- },
- visitCssComment$1: function(node) {
- return this._visitor._addChild$1(node);
- },
- visitCssDeclaration$1: function(node) {
- },
- visitCssImport$1: function(node) {
- var t1 = this._visitor,
- t2 = t1._evaluate$_parent,
- t3 = t1._root;
- if (t2 != t3)
- t1._addChild$1(node);
- else if (t1._endOfImports === J.get$length$asx(t3.children._collection$_source)) {
- t1._addChild$1(node);
- t1._endOfImports = t1._endOfImports + 1;
- } else {
- t2 = t1._outOfOrderImports;
- (t2 == null ? t1._outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport) : t2).push(node);
- }
- },
- visitCssKeyframeBlock$1: function(node) {
- },
- visitCssMediaRule$1: function(node) {
- var t1 = this._visitor,
- t2 = t1._mediaQueries;
- t1._addChild$2$through(node, new R._ImportedCssVisitor_visitCssMediaRule_closure(t2 == null || t1._mergeMediaQueries$2(t2, node.queries) != null));
- },
- visitCssStyleRule$1: function(node) {
- return this._visitor._addChild$2$through(node, new R._ImportedCssVisitor_visitCssStyleRule_closure());
- },
- visitCssStylesheet$1: function(node) {
- var t1;
- for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
- t1.__internal$_current.accept$1(this);
- },
- visitCssSupportsRule$1: function(node) {
- return this._visitor._addChild$2$through(node, new R._ImportedCssVisitor_visitCssSupportsRule_closure());
- }
- };
- R._ImportedCssVisitor_visitCssAtRule_closure.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._ImportedCssVisitor_visitCssMediaRule_closure.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule._is(node))
- t1 = this.hasBeenMerged && type$.CssMediaRule._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- R._ImportedCssVisitor_visitCssStyleRule_closure.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._ImportedCssVisitor_visitCssSupportsRule_closure.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule._is(node);
- }
- };
- R._ArgumentResults.prototype = {};
- F._FindDependenciesVisitor.prototype = {
- visitEachRule$1: function(node) {
- },
- visitForRule$1: function(node) {
- },
- visitIfRule$1: function(node) {
- },
- visitWhileRule$1: function(node) {
- },
- visitUseRule$1: function(node) {
- this._usesAndForwards.push(node.url);
- },
- visitForwardRule$1: function(node) {
- this._usesAndForwards.push(node.url);
- },
- visitImportRule$1: function(node) {
- var t1, t2, t3, _i, $import;
- for (t1 = node.imports, t2 = t1.length, t3 = this._imports, _i = 0; _i < t2; ++_i) {
- $import = t1[_i];
- if ($import instanceof B.DynamicImport)
- t3.push(P.Uri_parse($import.url));
- }
- }
- };
- D.RecursiveStatementVisitor.prototype = {
- visitAtRootRule$1: function(node) {
- return this.visitChildren$1(node);
- },
- visitAtRule$1: function(node) {
- return node.children == null ? null : this.visitChildren$1(node);
- },
- visitContentBlock$1: function(node) {
- return null;
- },
- visitContentRule$1: function(node) {
- this.visitArgumentInvocation$1(node.$arguments);
- return null;
- },
- visitDebugRule$1: function(node) {
- return null;
- },
- visitDeclaration$1: function(node) {
- return node.children == null ? null : this.visitChildren$1(node);
- },
- visitErrorRule$1: function(node) {
- return null;
- },
- visitExtendRule$1: function(node) {
- return null;
- },
- visitFunctionRule$1: function(node) {
- return null;
- },
- visitIncludeRule$1: function(node) {
- this.visitArgumentInvocation$1(node.$arguments);
- return null;
- },
- visitLoudComment$1: function(node) {
- return null;
- },
- visitMediaRule$1: function(node) {
- return this.visitChildren$1(node);
- },
- visitMixinRule$1: function(node) {
- return null;
- },
- visitReturnRule$1: function(node) {
- return null;
- },
- visitSilentComment$1: function(node) {
- return null;
- },
- visitStyleRule$1: function(node) {
- return this.visitChildren$1(node);
- },
- visitStylesheet$1: function(node) {
- return this.visitChildren$1(node);
- },
- visitSupportsRule$1: function(node) {
- return this.visitChildren$1(node);
- },
- visitVariableDeclaration$1: function(node) {
- return null;
- },
- visitWarnRule$1: function(node) {
- return null;
- },
- visitArgumentInvocation$1: function(invocation) {
- var t1, _i;
- for (t1 = invocation.positional.length, _i = 0; _i < t1; ++_i)
- ;
- for (t1 = invocation.named.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
- t1.get$current(t1);
- },
- visitChildren$1: function(node) {
- var t1;
- for (t1 = node.children, t1 = (t1 && C.JSArray_methods).get$iterator(t1); t1.moveNext$0();)
- t1.get$current(t1).accept$1(this);
- return null;
- }
- };
- N.serialize_closure.prototype = {
- call$1: function(codeUnit) {
- return codeUnit > 127;
- },
- $signature: 16
- };
- N._SerializeVisitor0.prototype = {
- visitCssStylesheet$1: function(node) {
- var t1, t2, t3, t4, previous, i, child, _this = this;
- for (t1 = _this._style !== C.OutputStyle_compressed, t2 = type$.CssComment, t3 = type$.CssParentNode, t4 = _this._serialize$_buffer, previous = null, i = 0; i < J.get$length$asx(node.get$children()); ++i) {
- child = J.$index$asx(node.get$children(), i);
- if (_this._isInvisible$1(child))
- continue;
- if (previous != null) {
- if (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous))
- t4.writeCharCode$1(59);
- if (t1)
- t4.write$1(0, "\n");
- if (previous.get$isGroupEnd())
- if (t1)
- t4.write$1(0, "\n");
- }
- child.accept$1(_this);
- previous = child;
- }
- if (previous != null)
- t1 = (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous)) && t1;
- else
- t1 = false;
- if (t1)
- t4.writeCharCode$1(59);
- },
- visitCssComment$1: function(node) {
- this._serialize$_buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssComment_closure(this, node));
- },
- visitCssAtRule$1: function(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssAtRule_closure(_this, node));
- if (!node.isChildless) {
- if (_this._style !== C.OutputStyle_compressed)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node.children);
- }
- },
- visitCssMediaRule$1: function(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssMediaRule_closure(_this, node));
- if (_this._style !== C.OutputStyle_compressed)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node.children);
- },
- visitCssImport$1: function(node) {
- this._writeIndentation$0();
- this._serialize$_buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssImport_closure(this, node));
- },
- _writeImportUrl$1: function(url) {
- var urlContents, maybeQuote, _this = this;
- if (_this._style !== C.OutputStyle_compressed || J._codeUnitAt$1$s(url, 0) !== 117) {
- _this._serialize$_buffer.write$1(0, url);
- return;
- }
- urlContents = J.substring$2$s(url, 4, url.length - 1);
- maybeQuote = C.JSString_methods._codeUnitAt$1(urlContents, 0);
- if (maybeQuote === 39 || maybeQuote === 34)
- _this._serialize$_buffer.write$1(0, urlContents);
- else
- _this._visitQuotedString$1(urlContents);
- },
- visitCssKeyframeBlock$1: function(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssKeyframeBlock_closure(_this, node));
- if (_this._style !== C.OutputStyle_compressed)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node.children);
- },
- _visitMediaQuery$1: function(query) {
- var t2, t3, _this = this,
- t1 = query.modifier;
- if (t1 != null) {
- t2 = _this._serialize$_buffer;
- t2.write$1(0, t1);
- t2.writeCharCode$1(32);
- }
- t1 = query.type;
- if (t1 != null) {
- t2 = _this._serialize$_buffer;
- t2.write$1(0, t1);
- if (query.features.length !== 0)
- t2.write$1(0, " and ");
- }
- t1 = query.features;
- t2 = _this._style === C.OutputStyle_compressed ? "and " : " and ";
- t3 = _this._serialize$_buffer;
- _this._writeBetween$3(t1, t2, t3.get$write(t3));
- },
- visitCssStyleRule$1: function(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssStyleRule_closure(_this, node));
- if (_this._style !== C.OutputStyle_compressed)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node.children);
- },
- visitCssSupportsRule$1: function(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssSupportsRule_closure(_this, node));
- if (_this._style !== C.OutputStyle_compressed)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node.children);
- },
- visitCssDeclaration$1: function(node) {
- var error, error0, t1, exception, _this = this;
- _this._writeIndentation$0();
- _this._write$1(node.name);
- t1 = _this._serialize$_buffer;
- t1.writeCharCode$1(58);
- if (_this._isParsedCustomProperty$1(node))
- t1.forSpan$2(node.value.span, new N._SerializeVisitor_visitCssDeclaration_closure(_this, node));
- else {
- if (_this._style !== C.OutputStyle_compressed)
- t1.writeCharCode$1(32);
- try {
- t1.forSpan$2(node.valueSpanForMap, new N._SerializeVisitor_visitCssDeclaration_closure0(_this, node));
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.MultiSpanSassScriptException) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassException$(error.message, node.value.span, error.primaryLabel, error.secondarySpans));
- } else if (t1 instanceof E.SassScriptException) {
- error0 = t1;
- throw H.wrapException(E.SassException$(error0.message, node.value.span));
- } else
- throw exception;
- }
- }
- },
- _isParsedCustomProperty$1: function(node) {
- var value,
- t1 = node.name;
- if (!J.startsWith$1$s(t1.get$value(t1), "--"))
- return false;
- value = node.value.value;
- return value instanceof D.SassString && !value.hasQuotes;
- },
- _writeFoldedValue$1: function(node) {
- var t1, t2, next, t3,
- scanner = X.StringScanner$(type$.SassString._as(node.value.value).text, null, null);
- for (t1 = scanner.string.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
- next = scanner.readChar$0();
- if (next !== 10) {
- t2.writeCharCode$1(next);
- continue;
- }
- t2.writeCharCode$1(32);
- while (true) {
- t3 = scanner.peekChar$0();
- if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
- break;
- scanner.readChar$0();
- }
- }
- },
- _writeReindentedValue$1: function(node) {
- var _this = this,
- t1 = node.value,
- value = type$.SassString._as(t1.value).text,
- minimumIndentation = _this._minimumIndentation$1(value);
- if (minimumIndentation == null) {
- _this._serialize$_buffer.write$1(0, value);
- return;
- } else if (minimumIndentation === -1) {
- t1 = _this._serialize$_buffer;
- t1.write$1(0, B.trimAsciiRight(value, true));
- t1.writeCharCode$1(32);
- return;
- }
- if (t1.span != null) {
- t1 = node.name.get$span();
- t1 = Y.FileLocation$_(t1.file, t1._file$_start);
- minimumIndentation = Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset));
- }
- _this._writeWithIndent$2(value, minimumIndentation);
- },
- _minimumIndentation$1: function(text) {
- var character, t2, min, next, min0,
- scanner = new Z.LineScanner(null, text),
- t1 = text.length;
- while (true) {
- if (scanner._string_scanner$_position !== t1) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- t2 = character !== 10;
- } else
- t2 = false;
- if (!t2)
- break;
- }
- if (scanner._string_scanner$_position === t1)
- return scanner.peekChar$1(-1) === 10 ? -1 : null;
- for (min = null; scanner._string_scanner$_position !== t1;) {
- for (; scanner._string_scanner$_position !== t1;) {
- next = scanner.peekChar$0();
- if (next !== 32 && next !== 9)
- break;
- scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
- }
- if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
- continue;
- min0 = scanner._line_scanner$_column;
- min = min == null ? min0 : Math.min(min, min0);
- while (true) {
- if (scanner._string_scanner$_position !== t1) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- t2 = character !== 10;
- } else
- t2 = false;
- if (!t2)
- break;
- }
- }
- return min == null ? -1 : min;
- },
- _writeWithIndent$2: function(text, minimumIndentation) {
- var t1, t2, character, t3, lineStart, newlines, end,
- scanner = new Z.LineScanner(null, text);
- for (t1 = text.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 10)
- break;
- t2.writeCharCode$1(character);
- }
- for (t3 = J.getInterceptor$s(text); true;) {
- lineStart = scanner._string_scanner$_position;
- for (newlines = 1; true;) {
- if (scanner._string_scanner$_position === t1) {
- t2.writeCharCode$1(32);
- return;
- }
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 32 || character === 9)
- continue;
- if (character !== 10)
- break;
- lineStart = scanner._string_scanner$_position;
- ++newlines;
- }
- this._writeTimes$2(10, newlines);
- this._writeIndentation$0();
- end = scanner._string_scanner$_position;
- t2.write$1(0, t3.substring$2(text, lineStart + minimumIndentation, end));
- for (; true;) {
- if (scanner._string_scanner$_position === t1)
- return;
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 10)
- break;
- t2.writeCharCode$1(character);
- }
- }
- },
- visitColor$1: function(value) {
- var $name, hexLength, t2, t3, _this = this,
- t1 = _this._style === C.OutputStyle_compressed;
- if (t1 && Math.abs(value.alpha - 1) < $.$get$epsilon()) {
- $name = $.$get$namesByColor().$index(0, value);
- hexLength = _this._canUseShortHex$1(value) ? 4 : 7;
- if ($name != null && $name.length <= hexLength)
- _this._serialize$_buffer.write$1(0, $name);
- else {
- t1 = _this._serialize$_buffer;
- if (_this._canUseShortHex$1(value)) {
- t1.writeCharCode$1(35);
- t1.writeCharCode$1(T.hexCharFor(value.get$red() & 15));
- t1.writeCharCode$1(T.hexCharFor(value.get$green() & 15));
- t1.writeCharCode$1(T.hexCharFor(value.get$blue() & 15));
- } else {
- t1.writeCharCode$1(35);
- _this._writeHexComponent$1(value.get$red());
- _this._writeHexComponent$1(value.get$green());
- _this._writeHexComponent$1(value.get$blue());
- }
- }
- return;
- }
- if (value.get$original() != null)
- _this._serialize$_buffer.write$1(0, value.get$original());
- else {
- t2 = $.$get$namesByColor();
- if (t2.containsKey$1(value) && !(Math.abs(value.alpha - 0) < $.$get$epsilon()))
- _this._serialize$_buffer.write$1(0, t2.$index(0, value));
- else {
- t2 = value.alpha;
- t3 = _this._serialize$_buffer;
- if (Math.abs(t2 - 1) < $.$get$epsilon()) {
- t3.writeCharCode$1(35);
- _this._writeHexComponent$1(value.get$red());
- _this._writeHexComponent$1(value.get$green());
- _this._writeHexComponent$1(value.get$blue());
- } else {
- t3.write$1(0, "rgba(" + H.S(value.get$red()));
- t3.write$1(0, t1 ? "," : ", ");
- t3.write$1(0, value.get$green());
- t3.write$1(0, t1 ? "," : ", ");
- t3.write$1(0, value.get$blue());
- t3.write$1(0, t1 ? "," : ", ");
- _this._writeNumber$1(t2);
- t3.writeCharCode$1(41);
- }
- }
- }
- },
- _canUseShortHex$1: function(color) {
- var t1 = color.get$red();
- if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
- t1 = color.get$green();
- if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
- t1 = color.get$blue();
- t1 = (t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4);
- } else
- t1 = false;
- } else
- t1 = false;
- return t1;
- },
- _writeHexComponent$1: function(color) {
- var t1 = this._serialize$_buffer;
- t1.writeCharCode$1(T.hexCharFor(C.JSInt_methods._shrOtherPositive$1(color, 4)));
- t1.writeCharCode$1(T.hexCharFor(color & 15));
- },
- visitList$1: function(value) {
- var t2, singleton, t3, t4, _this = this,
- t1 = value.hasBrackets;
- if (t1)
- _this._serialize$_buffer.writeCharCode$1(91);
- else if (value._list$_contents.length === 0) {
- if (!_this._serialize$_inspect)
- throw H.wrapException(E.SassScriptException$("() isn't a valid CSS value."));
- _this._serialize$_buffer.write$1(0, "()");
- return;
- }
- t2 = _this._serialize$_inspect;
- singleton = t2 && value._list$_contents.length === 1 && value.separator === C.ListSeparator_comma;
- if (singleton && !t1)
- _this._serialize$_buffer.writeCharCode$1(40);
- t3 = value._list$_contents;
- t3 = t2 ? t3 : new H.WhereIterable(t3, new N._SerializeVisitor_visitList_closure(), H._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
- if (value.separator === C.ListSeparator_space)
- t4 = " ";
- else
- t4 = _this._style === C.OutputStyle_compressed ? "," : ", ";
- _this._writeBetween$3(t3, t4, t2 ? new N._SerializeVisitor_visitList_closure0(_this, value) : new N._SerializeVisitor_visitList_closure1(_this));
- if (singleton) {
- t2 = _this._serialize$_buffer;
- t2.writeCharCode$1(44);
- if (!t1)
- t2.writeCharCode$1(41);
- }
- if (t1)
- _this._serialize$_buffer.writeCharCode$1(93);
- },
- _elementNeedsParens$2: function(separator, value) {
- var t1;
- if (value instanceof D.SassList) {
- if (value._list$_contents.length < 2)
- return false;
- if (value.hasBrackets)
- return false;
- t1 = value.separator;
- return separator === C.ListSeparator_comma ? t1 === C.ListSeparator_comma : t1 !== C.ListSeparator_undecided;
- }
- return false;
- },
- visitMap$1: function(map) {
- var t1, _this = this;
- if (!_this._serialize$_inspect)
- throw H.wrapException(E.SassScriptException$(map.toString$0(0) + " isn't a valid CSS value."));
- t1 = _this._serialize$_buffer;
- t1.writeCharCode$1(40);
- _this._writeBetween$3(map.contents.get$keys(), ", ", new N._SerializeVisitor_visitMap_closure(_this, map));
- t1.writeCharCode$1(41);
- },
- _writeMapElement$1: function(value) {
- var needsParens = value instanceof D.SassList && value.separator === C.ListSeparator_comma && !value.hasBrackets;
- if (needsParens)
- this._serialize$_buffer.writeCharCode$1(40);
- value.accept$1(this);
- if (needsParens)
- this._serialize$_buffer.writeCharCode$1(41);
- },
- visitNumber$1: function(value) {
- var t2, _this = this,
- t1 = value.asSlash;
- if (t1 != null) {
- _this.visitNumber$1(t1.item1);
- _this._serialize$_buffer.writeCharCode$1(47);
- _this.visitNumber$1(t1.item2);
- return;
- }
- _this._writeNumber$1(value.value);
- if (!_this._serialize$_inspect) {
- t1 = value.numeratorUnits;
- t2 = t1.length;
- if (t2 > 1 || value.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value."));
- if (t2 !== 0)
- _this._serialize$_buffer.write$1(0, C.JSArray_methods.get$first(t1));
- } else
- _this._serialize$_buffer.write$1(0, value.get$unitString());
- },
- _writeNumber$1: function(number) {
- var t1, text, text0, _this = this,
- integer = T.fuzzyIsInt(number) ? J.round$0$n(number) : null;
- if (integer != null) {
- t1 = integer >= 1e21 ? _this._removeExponent$1(C.JSInt_methods.toString$0(integer)) : C.JSInt_methods.toString$0(integer);
- _this._serialize$_buffer.write$1(0, t1);
- return;
- }
- text = number >= 1e21 ? _this._removeExponent$1(C.JSNumber_methods.toString$0(number)) : C.JSNumber_methods.toString$0(number);
- text0 = _this._style === C.OutputStyle_compressed && C.JSString_methods._codeUnitAt$1(text, 0) === 48 ? C.JSString_methods.substring$1(text, 1) : text;
- if (text.length < 12) {
- _this._serialize$_buffer.write$1(0, text0);
- return;
- }
- _this._writeDecimal$1(text0);
- },
- _removeExponent$1: function(text) {
- var exponent, buffer, t2, additionalZeroes, negative, _null = null,
- t1 = text.length,
- i = 0;
- while (true) {
- if (!(i < t1)) {
- exponent = _null;
- buffer = exponent;
- break;
- }
- c$0: {
- if (C.JSString_methods._codeUnitAt$1(text, i) !== 101)
- break c$0;
- buffer = new P.StringBuffer("");
- t2 = H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(text, 0));
- buffer._contents = t2;
- if (i > 2)
- buffer._contents = t2 + C.JSString_methods.substring$2(text, 2, i);
- exponent = P.int_parse(C.JSString_methods.substring$2(text, i + 1, t1), _null, _null);
- break;
- }
- ++i;
- }
- if (buffer == null)
- return text;
- if (exponent > 0) {
- t1 = buffer._contents;
- additionalZeroes = exponent - (t1.length - 1);
- for (i = 0; i < additionalZeroes; ++i)
- t1 = buffer._contents += H.Primitives_stringFromCharCode(48);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else {
- negative = C.JSString_methods._codeUnitAt$1(text, 0) === 45;
- t1 = (negative ? H.Primitives_stringFromCharCode(45) : "") + "0.";
- for (i = -1; i > exponent; --i)
- t1 += H.Primitives_stringFromCharCode(48);
- if (negative) {
- t2 = buffer._contents;
- t2 = C.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
- } else
- t2 = buffer;
- t2 = t1 + H.S(t2);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- },
- _writeDecimal$1: function(text) {
- var t1, t2, textIndex, codeUnit, digits, t3, digitsIndex, digitsIndex0, textIndex0, newDigit, i;
- for (t1 = text.length, t2 = this._serialize$_buffer, textIndex = 0; textIndex < t1; ++textIndex) {
- codeUnit = C.JSString_methods._codeUnitAt$1(text, textIndex);
- if (codeUnit === 46) {
- if (textIndex === t1 - 2 && C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 48)
- return;
- t2.writeCharCode$1(codeUnit);
- ++textIndex;
- break;
- }
- t2.writeCharCode$1(codeUnit);
- }
- if (textIndex === t1)
- return;
- digits = new Uint8Array(10);
- t3 = digits.length;
- digitsIndex = 0;
- while (true) {
- if (!(textIndex < t1 && digitsIndex < t3))
- break;
- digitsIndex0 = digitsIndex + 1;
- textIndex0 = textIndex + 1;
- digits[digitsIndex] = C.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
- digitsIndex = digitsIndex0;
- textIndex = textIndex0;
- }
- if (textIndex !== t1 && C.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
- for (; digitsIndex >= 0; digitsIndex = digitsIndex0) {
- digitsIndex0 = digitsIndex - 1;
- newDigit = digits[digitsIndex0] + 1;
- digits[digitsIndex0] = newDigit;
- if (newDigit !== 10)
- break;
- }
- while (true) {
- if (!(digitsIndex > 0 && digits[digitsIndex - 1] === 0))
- break;
- --digitsIndex;
- }
- for (i = 0; i < digitsIndex; ++i)
- t2.writeCharCode$1(48 + digits[i]);
- },
- _visitQuotedString$2$forceDoubleQuote: function(string, forceDoubleQuote) {
- var t1, includesSingleQuote, includesDoubleQuote, i, char, t2, next, quote, _this = this,
- buffer = forceDoubleQuote ? _this._serialize$_buffer : new P.StringBuffer("");
- if (forceDoubleQuote)
- buffer.writeCharCode$1(34);
- for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
- char = C.JSString_methods._codeUnitAt$1(string, i);
- switch (char) {
- case 39:
- if (forceDoubleQuote)
- buffer.writeCharCode$1(39);
- else {
- if (includesDoubleQuote) {
- _this._visitQuotedString$2$forceDoubleQuote(string, true);
- return;
- } else
- buffer.writeCharCode$1(39);
- includesSingleQuote = true;
- }
- break;
- case 34:
- if (forceDoubleQuote) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(34);
- } else {
- if (includesSingleQuote) {
- _this._visitQuotedString$2$forceDoubleQuote(string, true);
- return;
- } else
- buffer.writeCharCode$1(34);
- includesDoubleQuote = true;
- }
- break;
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 26:
- case 27:
- case 28:
- case 29:
- case 30:
- case 31:
- buffer.writeCharCode$1(92);
- if (char > 15) {
- t2 = char >>> 4;
- buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- }
- t2 = char & 15;
- buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- t2 = i + 1;
- if (t1 === t2)
- break;
- next = C.JSString_methods._codeUnitAt$1(string, t2);
- if (T.isHex(next) || next === 32 || next === 9)
- buffer.writeCharCode$1(32);
- break;
- case 92:
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(92);
- break;
- default:
- buffer.writeCharCode$1(char);
- break;
- }
- }
- if (forceDoubleQuote)
- buffer.writeCharCode$1(34);
- else {
- quote = includesDoubleQuote ? 39 : 34;
- t1 = _this._serialize$_buffer;
- t1.writeCharCode$1(quote);
- t1.write$1(0, buffer);
- t1.writeCharCode$1(quote);
- }
- },
- _visitQuotedString$1: function(string) {
- return this._visitQuotedString$2$forceDoubleQuote(string, false);
- },
- _visitUnquotedString$1: function(string) {
- var t1, t2, afterNewline, i, char;
- for (t1 = string.length, t2 = this._serialize$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
- char = C.JSString_methods._codeUnitAt$1(string, i);
- switch (char) {
- case 10:
- t2.writeCharCode$1(32);
- afterNewline = true;
- break;
- case 32:
- if (!afterNewline)
- t2.writeCharCode$1(32);
- break;
- default:
- t2.writeCharCode$1(char);
- afterNewline = false;
- break;
- }
- }
- },
- visitComplexSelector$1: function(complex) {
- var t1, t2, t3, t4, lastComponent, _i, component, t5;
- 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) {
- component = t1[_i];
- if (lastComponent != null)
- if (!(t4 && lastComponent instanceof S.Combinator))
- t5 = !(t4 && component instanceof S.Combinator);
- else
- t5 = false;
- else
- t5 = false;
- if (t5)
- t3.write$1(0, " ");
- if (component instanceof X.CompoundSelector)
- this.visitCompoundSelector$1(component);
- else
- t3.write$1(0, component);
- }
- },
- visitCompoundSelector$1: function(compound) {
- var t2, t3, _i,
- t1 = this._serialize$_buffer,
- start = t1.get$length(t1);
- for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(this);
- if (t1.get$length(t1) === start)
- t1.writeCharCode$1(42);
- },
- visitSelectorList$1: function(list) {
- var complexes, t1, t2, t3, first, t4, _this = this;
- if (_this._serialize$_inspect)
- complexes = list.components;
- else {
- t1 = list.components;
- complexes = new H.WhereIterable(t1, new N._SerializeVisitor_visitSelectorList_closure(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
- }
- for (t1 = J.get$iterator$ax(complexes), t2 = _this._style !== C.OutputStyle_compressed, t3 = _this._serialize$_buffer, first = true; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- if (first)
- first = false;
- else {
- t3.writeCharCode$1(44);
- if (t4.lineBreak) {
- if (t2)
- t3.write$1(0, "\n");
- } else if (t2)
- t3.writeCharCode$1(32);
- }
- _this.visitComplexSelector$1(t4);
- }
- },
- visitPseudoSelector$1: function(pseudo) {
- var t4, t5, t6,
- t1 = pseudo.selector,
- t2 = t1 == null,
- t3 = !t2;
- if (t3 && pseudo.name === "not" && t1.get$isInvisible())
- return;
- t4 = this._serialize$_buffer;
- t4.writeCharCode$1(58);
- if (!pseudo.isSyntacticClass)
- t4.writeCharCode$1(58);
- t4.write$1(0, pseudo.name);
- t5 = pseudo.argument;
- t6 = t5 == null;
- if (t6 && t2)
- return;
- t4.writeCharCode$1(40);
- if (!t6) {
- t4.write$1(0, t5);
- if (t3)
- t4.writeCharCode$1(32);
- }
- if (t3)
- this.visitSelectorList$1(t1);
- t4.writeCharCode$1(41);
- },
- _write$1: function(value) {
- return this._serialize$_buffer.forSpan$2(value.get$span(), new N._SerializeVisitor__write_closure(this, value));
- },
- _serialize$_visitChildren$1: function(children) {
- var _this = this, t1 = {},
- t2 = _this._serialize$_buffer;
- t2.writeCharCode$1(123);
- if (children.every$1(children, _this.get$_isInvisible())) {
- t2.writeCharCode$1(125);
- return;
- }
- _this._writeLineFeed$0();
- t1.previous = null;
- ++_this._indentation;
- new N._SerializeVisitor__visitChildren_closure(t1, _this, children).call$0();
- --_this._indentation;
- t1 = t1.previous;
- if ((type$.CssParentNode._is(t1) ? t1.get$isChildless() : !type$.CssComment._is(t1)) && _this._style !== C.OutputStyle_compressed)
- t2.writeCharCode$1(59);
- _this._writeLineFeed$0();
- _this._writeIndentation$0();
- t2.writeCharCode$1(125);
- },
- _writeLineFeed$0: function() {
- if (this._style !== C.OutputStyle_compressed)
- this._serialize$_buffer.write$1(0, "\n");
- },
- _writeIndentation$0: function() {
- var _this = this;
- if (_this._style === C.OutputStyle_compressed)
- return;
- _this._writeTimes$2(_this._indentCharacter, _this._indentation * _this._indentWidth);
- },
- _writeTimes$2: function(char, times) {
- var t1, i;
- for (t1 = this._serialize$_buffer, i = 0; i < times; ++i)
- t1.writeCharCode$1(char);
- },
- _writeBetween$1$3: function(iterable, text, callback) {
- var t1, t2, first, value;
- for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize$_buffer, first = true; t1.moveNext$0();) {
- value = t1.get$current(t1);
- if (first)
- first = false;
- else
- t2.write$1(0, text);
- callback.call$1(value);
- }
- },
- _writeBetween$3: function(iterable, text, callback) {
- return this._writeBetween$1$3(iterable, text, callback, type$.dynamic);
- },
- _isInvisible$1: function(node) {
- if (this._serialize$_inspect)
- return false;
- if (this._style === C.OutputStyle_compressed && type$.CssComment._is(node) && J._codeUnitAt$1$s(node.text, 2) !== 33)
- return true;
- if (type$.CssParentNode._is(node)) {
- if (type$.CssAtRule._is(node))
- return false;
- if (type$.CssStyleRule._is(node) && node.selector.value.get$isInvisible())
- return true;
- return J.every$1$ax(node.get$children(), this.get$_isInvisible());
- } else
- return false;
- }
- };
- N._SerializeVisitor_visitCssComment_closure.prototype = {
- call$0: function() {
- var t2, t3, minimumIndentation,
- t1 = this.$this;
- if (t1._style === C.OutputStyle_compressed && J._codeUnitAt$1$s(this.node.text, 2) !== 33)
- return;
- t2 = this.node;
- t3 = t2.text;
- minimumIndentation = t1._minimumIndentation$1(t3);
- if (minimumIndentation == null) {
- t1._writeIndentation$0();
- t1._serialize$_buffer.write$1(0, t3);
- return;
- }
- t2 = t2.span;
- if (t2 != null) {
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
- }
- t1._writeIndentation$0();
- t1._writeWithIndent$2(t3, minimumIndentation);
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssAtRule_closure.prototype = {
- call$0: function() {
- var t3,
- t1 = this.$this,
- t2 = t1._serialize$_buffer;
- t2.writeCharCode$1(64);
- t3 = this.node;
- t1._write$1(t3.name);
- t3 = t3.value;
- if (t3 != null) {
- t2.writeCharCode$1(32);
- t1._write$1(t3);
- }
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssMediaRule_closure.prototype = {
- call$0: function() {
- var t3, t4,
- t1 = this.$this,
- t2 = t1._serialize$_buffer;
- t2.write$1(0, "@media");
- t3 = t1._style === C.OutputStyle_compressed;
- if (t3) {
- t4 = C.JSArray_methods.get$first(this.node.queries);
- t4 = !(t4.modifier == null && t4.type == null);
- } else
- t4 = true;
- if (t4)
- t2.writeCharCode$1(32);
- t2 = t3 ? "," : ", ";
- t1._writeBetween$3(this.node.queries, t2, t1.get$_visitMediaQuery());
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssImport_closure.prototype = {
- call$0: function() {
- var t3, t4, t5, t6,
- t1 = this.$this,
- t2 = t1._serialize$_buffer;
- t2.write$1(0, "@import");
- t3 = t1._style === C.OutputStyle_compressed;
- t4 = !t3;
- if (t4)
- t2.writeCharCode$1(32);
- t5 = this.node;
- t2.forSpan$2(t5.url.get$span(), new N._SerializeVisitor_visitCssImport__closure(t1, t5));
- t6 = t5.supports;
- if (t6 != null) {
- if (t4)
- t2.writeCharCode$1(32);
- t1._write$1(t6);
- }
- t5 = t5.media;
- if (t5 != null) {
- if (t4)
- t2.writeCharCode$1(32);
- t2 = t3 ? "," : ", ";
- t1._writeBetween$3(t5, t2, t1.get$_visitMediaQuery());
- }
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssImport__closure.prototype = {
- call$0: function() {
- var t1 = this.node.url;
- return this.$this._writeImportUrl$1(t1.get$value(t1));
- },
- $signature: 1
- };
- N._SerializeVisitor_visitCssKeyframeBlock_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._style === C.OutputStyle_compressed ? "," : ", ",
- t3 = t1._serialize$_buffer;
- return t1._writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
- },
- $signature: 1
- };
- N._SerializeVisitor_visitCssStyleRule_closure.prototype = {
- call$0: function() {
- var t1 = this.node.selector.value;
- t1.toString;
- return this.$this.visitSelectorList$1(t1);
- },
- $signature: 1
- };
- N._SerializeVisitor_visitCssSupportsRule_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._serialize$_buffer;
- t2.write$1(0, "@supports");
- if (!(t1._style === C.OutputStyle_compressed && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
- t2.writeCharCode$1(32);
- t1._write$1(this.node.condition);
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssDeclaration_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = this.node;
- if (t1._style === C.OutputStyle_compressed)
- t1._writeFoldedValue$1(t2);
- else
- t1._writeReindentedValue$1(t2);
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssDeclaration_closure0.prototype = {
- call$0: function() {
- return this.node.value.value.accept$1(this.$this);
- },
- $signature: 1
- };
- N._SerializeVisitor_visitList_closure.prototype = {
- call$1: function(element) {
- return !element.get$isBlank();
- }
- };
- N._SerializeVisitor_visitList_closure0.prototype = {
- call$1: function(element) {
- var t1 = this.$this,
- needsParens = t1._elementNeedsParens$2(this.value.separator, element);
- if (needsParens)
- t1._serialize$_buffer.writeCharCode$1(40);
- element.accept$1(t1);
- if (needsParens)
- t1._serialize$_buffer.writeCharCode$1(41);
- }
- };
- N._SerializeVisitor_visitList_closure1.prototype = {
- call$1: function(element) {
- element.accept$1(this.$this);
- }
- };
- N._SerializeVisitor_visitMap_closure.prototype = {
- call$1: function(key) {
- var t1 = this.$this;
- t1._writeMapElement$1(key);
- t1._serialize$_buffer.write$1(0, ": ");
- t1._writeMapElement$1(this.map.contents.$index(0, key));
- }
- };
- N._SerializeVisitor_visitSelectorList_closure.prototype = {
- call$1: function(complex) {
- return !complex.get$isInvisible();
- }
- };
- N._SerializeVisitor__write_closure.prototype = {
- call$0: function() {
- var t1 = this.value;
- return this.$this._serialize$_buffer.write$1(0, t1.get$value(t1));
- },
- $signature: 1
- };
- N._SerializeVisitor__visitChildren_closure.prototype = {
- call$0: function() {
- var t1, t2, t3, t4, t5, t6, t7, i, child, t8;
- for (t1 = this.children._collection$_source, t2 = J.getInterceptor$asx(t1), t3 = this._box_0, t4 = this.$this, t5 = type$.CssComment, t6 = type$.CssParentNode, t7 = t4._serialize$_buffer, i = 0; i < t2.get$length(t1); ++i) {
- child = t2.elementAt$1(t1, i);
- if (t4._isInvisible$1(child))
- continue;
- t8 = t3.previous;
- if (t8 != null) {
- if (t6._is(t8) ? t8.get$isChildless() : !t5._is(t8))
- t7.writeCharCode$1(59);
- t8 = t4._style !== C.OutputStyle_compressed;
- if (t8)
- t7.write$1(0, "\n");
- if (t3.previous.get$isGroupEnd())
- if (t8)
- t7.write$1(0, "\n");
- }
- t3.previous = child;
- child.accept$1(t4);
- }
- },
- $signature: 0
- };
- N.OutputStyle.prototype = {
- toString$0: function(_) {
- return this._serialize$_name;
- }
- };
- N.LineFeed.prototype = {
- toString$0: function(_) {
- return "lf";
- }
- };
- N.SerializeResult.prototype = {};
- N.withWarnCallback_closure.prototype = {
- call$0: function() {
- return this.callback.call$0();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: function() {
- return this.T._eval$1("0()");
- }
- };
- L.Entry.prototype = {
- compareTo$1: function(_, other) {
- var t1, t2, t3,
- res = this.target.compareTo$1(0, other.target);
- if (res !== 0)
- return res;
- t1 = this.source;
- t2 = J.toString$0$(t1.file.url);
- t3 = other.source;
- res = C.JSString_methods.compareTo$1(t2, J.toString$0$(t3.file.url));
- if (res !== 0)
- return res;
- return t1.compareTo$1(0, t3);
- },
- $isComparable: 1,
- get$source: function() {
- return this.source;
- },
- get$target: function() {
- return this.target;
- },
- get$identifierName: function() {
- return this.identifierName;
- }
- };
- T.Mapping.prototype = {};
- T.SingleMapping.prototype = {
- toJson$1$includeSourceContents: function(includeSourceContents) {
- 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,
- buff = new P.StringBuffer("");
- 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) {
- entry = t1[_i];
- nextLine = entry.line;
- if (nextLine > line) {
- for (i = line; i < nextLine; ++i)
- buff._contents += ";";
- line = nextLine;
- column = 0;
- first = true;
- }
- for (t3 = entry.entries, t4 = t3.length, _i0 = 0; _i0 < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i0, column = column0, first = false) {
- segment = t3[_i0];
- if (!first)
- buff._contents += ",";
- column0 = segment.column;
- t5 = L.encodeVlq(column0 - column);
- t5 = P.StringBuffer__writeAll(buff._contents, t5, "");
- buff._contents = t5;
- newUrlId = segment.sourceUrlId;
- if (newUrlId == null)
- continue;
- t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(newUrlId - srcUrlId), "");
- buff._contents = t5;
- srcLine0 = segment.sourceLine;
- t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(srcLine0 - srcLine), "");
- buff._contents = t5;
- srcColumn0 = segment.sourceColumn;
- t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(srcColumn0 - srcColumn), "");
- buff._contents = t5;
- srcNameId0 = segment.sourceNameId;
- if (srcNameId0 == null) {
- srcUrlId = newUrlId;
- srcColumn = srcColumn0;
- srcLine = srcLine0;
- continue;
- }
- buff._contents = P.StringBuffer__writeAll(t5, L.encodeVlq(srcNameId0 - srcNameId), "");
- srcNameId = srcNameId0;
- srcUrlId = newUrlId;
- srcColumn = srcColumn0;
- srcLine = srcLine0;
- }
- }
- t1 = _this.sourceRoot;
- if (t1 == null)
- t1 = "";
- t2 = buff._contents;
- result = P.LinkedHashMap_LinkedHashMap$_literal(["version", 3, "sourceRoot", t1, "sources", _this.urls, "names", _this.names, "mappings", t2.charCodeAt(0) == 0 ? t2 : t2], type$.String, type$.Object);
- t1 = _this.targetUrl;
- if (t1 != null)
- result.$indexSet(0, "file", t1);
- if (includeSourceContents) {
- t1 = _this.files;
- result.$indexSet(0, "sourcesContent", new H.MappedListIterable(t1, new T.SingleMapping_toJson_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).toList$0(0));
- }
- _this.extensions.forEach$1(0, new T.SingleMapping_toJson_closure0(result));
- return result;
- },
- toJson$0: function() {
- return this.toJson$1$includeSourceContents(false);
- },
- toString$0: function(_) {
- var _this = this,
- t1 = H.getRuntimeType(_this).toString$0(0);
- t1 + " : [";
- 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) + "]";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- T.SingleMapping_SingleMapping$fromEntries_closure.prototype = {
- call$0: function() {
- var t1 = this.urls;
- return t1.get$length(t1);
- },
- $signature: 8
- };
- T.SingleMapping_SingleMapping$fromEntries_closure0.prototype = {
- call$0: function() {
- return type$.FileLocation._as(this.sourceEntry.get$source()).file;
- },
- $signature: 47
- };
- T.SingleMapping_SingleMapping$fromEntries_closure1.prototype = {
- call$1: function(i) {
- return this.files.$index(0, i);
- },
- $signature: 148
- };
- T.SingleMapping_toJson_closure.prototype = {
- call$1: function(file) {
- return file == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(file._decodedChars, 0, null), 0, null);
- }
- };
- T.SingleMapping_toJson_closure0.prototype = {
- call$2: function($name, value) {
- this.result.$indexSet(0, $name, value);
- return value;
- }
- };
- T.TargetLineEntry.prototype = {
- toString$0: function(_) {
- return H.getRuntimeType(this).toString$0(0) + ": " + this.line + " " + H.S(this.entries);
- }
- };
- T.TargetEntry.prototype = {
- toString$0: function(_) {
- var _this = this;
- 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) + ")";
- }
- };
- Y.SourceFile.prototype = {
- get$length: function(_) {
- return this._decodedChars.length;
- },
- get$lines: function() {
- return this._lineStarts.length;
- },
- SourceFile$decoded$2$url: function(decodedChars, url) {
- var t1, t2, t3, i, c, j;
- for (t1 = this._decodedChars, t2 = t1.length, t3 = this._lineStarts, i = 0; i < t2; ++i) {
- c = t1[i];
- if (c === 13) {
- j = i + 1;
- if (j >= t2 || t1[j] !== 10)
- c = 10;
- }
- if (c === 10)
- t3.push(i + 1);
- }
- },
- span$2: function(start, end) {
- return Y._FileSpan$(this, start, end == null ? this._decodedChars.length : end);
- },
- span$1: function(start) {
- return this.span$2(start, null);
- },
- getLine$1: function(offset) {
- var t1, _this = this;
- if (offset < 0)
- throw H.wrapException(P.RangeError$("Offset may not be negative, was " + offset + "."));
- else if (offset > _this._decodedChars.length)
- throw H.wrapException(P.RangeError$("Offset " + offset + " must not be greater than the number of characters in the file, " + _this.get$length(_this) + "."));
- t1 = _this._lineStarts;
- if (offset < C.JSArray_methods.get$first(t1))
- return -1;
- if (offset >= C.JSArray_methods.get$last(t1))
- return t1.length - 1;
- if (_this._isNearCachedLine$1(offset))
- return _this._cachedLine;
- return _this._cachedLine = _this._binarySearch$1(offset) - 1;
- },
- _isNearCachedLine$1: function(offset) {
- var t2, t3,
- t1 = this._cachedLine;
- if (t1 == null)
- return false;
- t2 = this._lineStarts;
- if (offset < t2[t1])
- return false;
- t3 = t2.length;
- if (t1 >= t3 - 1 || offset < t2[t1 + 1])
- return true;
- if (t1 >= t3 - 2 || offset < t2[t1 + 2]) {
- this._cachedLine = t1 + 1;
- return true;
- }
- return false;
- },
- _binarySearch$1: function(offset) {
- var min, half,
- t1 = this._lineStarts,
- max = t1.length - 1;
- for (min = 0; min < max;) {
- half = min + C.JSInt_methods._tdivFast$1(max - min, 2);
- if (t1[half] > offset)
- max = half;
- else
- min = half + 1;
- }
- return max;
- },
- getColumn$1: function(offset) {
- var line, lineStart, _this = this;
- if (offset < 0)
- throw H.wrapException(P.RangeError$("Offset may not be negative, was " + offset + "."));
- else if (offset > _this._decodedChars.length)
- throw H.wrapException(P.RangeError$("Offset " + offset + " must be not be greater than the number of characters in the file, " + _this.get$length(_this) + "."));
- line = _this.getLine$1(offset);
- lineStart = _this._lineStarts[line];
- if (lineStart > offset)
- throw H.wrapException(P.RangeError$("Line " + H.S(line) + " comes after offset " + offset + "."));
- return offset - lineStart;
- },
- getOffset$1: function(line) {
- var t1, t2, result, t3;
- if (line < 0)
- throw H.wrapException(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
- else {
- t1 = this._lineStarts;
- t2 = t1.length;
- if (line >= t2)
- throw H.wrapException(P.RangeError$("Line " + H.S(line) + " must be less than the number of lines in the file, " + this.get$lines() + "."));
- }
- result = t1[line];
- if (result <= this._decodedChars.length) {
- t3 = line + 1;
- t1 = t3 < t2 && result >= t1[t3];
- } else
- t1 = true;
- if (t1)
- throw H.wrapException(P.RangeError$("Line " + H.S(line) + " doesn't have 0 columns."));
- return result;
- }
- };
- Y.FileLocation.prototype = {
- get$sourceUrl: function() {
- return this.file.url;
- },
- get$line: function() {
- return this.file.getLine$1(this.offset);
- },
- get$column: function() {
- return this.file.getColumn$1(this.offset);
- },
- pointSpan$0: function() {
- var t1 = this.offset;
- return Y._FileSpan$(this.file, t1, t1);
- },
- get$offset: function() {
- return this.offset;
- }
- };
- Y.FileSpan.prototype = {$isComparable: 1, $isSourceSpan: 1, $isSourceSpanWithContext: 1};
- Y._FileSpan.prototype = {
- get$sourceUrl: function() {
- return this.file.url;
- },
- get$length: function(_) {
- return this._end - this._file$_start;
- },
- get$start: function(_) {
- return Y.FileLocation$_(this.file, this._file$_start);
- },
- get$end: function(_) {
- return Y.FileLocation$_(this.file, this._end);
- },
- get$text: function() {
- return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.file._decodedChars, this._file$_start, this._end), 0, null);
- },
- get$context: function(_) {
- var _this = this,
- t1 = _this.file,
- endOffset = _this._end,
- endLine = t1.getLine$1(endOffset);
- if (t1.getColumn$1(endOffset) === 0 && endLine !== 0) {
- if (endOffset - _this._file$_start === 0)
- 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);
- } else
- endOffset = endLine === t1._lineStarts.length - 1 ? t1._decodedChars.length : t1.getOffset$1(endLine + 1);
- return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(t1.getLine$1(_this._file$_start)), endOffset), 0, null);
- },
- compareTo$1: function(_, other) {
- var result;
- if (!(other instanceof Y._FileSpan))
- return this.super$SourceSpanMixin$compareTo(0, other);
- result = C.JSInt_methods.compareTo$1(this._file$_start, other._file$_start);
- return result === 0 ? C.JSInt_methods.compareTo$1(this._end, other._end) : result;
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- if (!type$.FileSpan._is(other))
- return _this.super$SourceSpanMixin$$eq(0, other);
- return _this._file$_start === other._file$_start && _this._end === other._end && J.$eq$(_this.file.url, other.file.url);
- },
- get$hashCode: function(_) {
- return Y.SourceSpanMixin.prototype.get$hashCode.call(this, this);
- },
- expand$1: function(_, other) {
- var start, _this = this,
- t1 = _this.file;
- if (!J.$eq$(t1.url, other.file.url))
- throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(_this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
- start = Math.min(_this._file$_start, other._file$_start);
- return Y._FileSpan$(t1, start, Math.max(_this._end, other._end));
- },
- $isFileSpan: 1,
- $isSourceSpanWithContext: 1
- };
- U.Highlighter.prototype = {
- highlight$0: function() {
- var t2, highlightsByColumn, t3, t4, i, line, lastLine, t5, t6, t7, t8, t9, t10, t11, index, primary, _i, highlight, _this = this,
- t1 = _this._lines;
- _this._writeFileStart$1(C.JSArray_methods.get$first(t1).url);
- t2 = new Array(_this._maxMultilineSpans);
- t2.fixed$length = Array;
- highlightsByColumn = H.setRuntimeTypeInfo(t2, type$.JSArray__Highlight);
- for (t2 = _this._highlighter$_buffer, t3 = highlightsByColumn.length !== 0, t4 = _this._primaryColor, i = 0; i < t1.length; ++i) {
- line = t1[i];
- if (i > 0) {
- lastLine = t1[i - 1];
- t5 = lastLine.url;
- t6 = line.url;
- if (!J.$eq$(t5, t6)) {
- _this._writeSidebar$1$end($._glyphs.get$upEnd());
- t2._contents += "\n";
- _this._writeFileStart$1(t6);
- } else if (lastLine.number + 1 !== line.number) {
- _this._writeSidebar$1$text("...");
- t2._contents += "\n";
- }
- }
- 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();) {
- t10 = t6.__internal$_current;
- t11 = t10.span;
- if (t11.get$start(t11).get$line() != t11.get$end(t11).get$line() && t11.get$start(t11).get$line() === t7 && _this._isOnlyWhitespace$1(t9.substring$2(t8, 0, t11.get$start(t11).get$column()))) {
- index = C.JSArray_methods.indexOf$1(highlightsByColumn, null);
- if (index < 0)
- H.throwExpression(P.ArgumentError$(H.S(highlightsByColumn) + " contains no null elements."));
- highlightsByColumn[index] = t10;
- }
- }
- _this._writeSidebar$1$line(t7);
- t2._contents += " ";
- _this._writeMultilineHighlights$2(line, highlightsByColumn);
- if (t3)
- t2._contents += " ";
- primary = C.JSArray_methods.firstWhere$2$orElse(t5, new U.Highlighter_highlight_closure(), new U.Highlighter_highlight_closure0());
- t6 = primary != null;
- if (t6) {
- t9 = primary.span;
- t10 = t9.get$start(t9).get$line() === t7 ? t9.get$start(t9).get$column() : 0;
- _this._writeHighlightedText$4$color(t8, t10, t9.get$end(t9).get$line() === t7 ? t9.get$end(t9).get$column() : t8.length, t4);
- } else
- _this._writeText$1(t8);
- t2._contents += "\n";
- if (t6)
- _this._writeIndicator$3(line, primary, highlightsByColumn);
- for (t6 = t5.length, _i = 0; _i < t5.length; t5.length === t6 || (0, H.throwConcurrentModificationError)(t5), ++_i) {
- highlight = t5[_i];
- if (highlight.isPrimary)
- continue;
- _this._writeIndicator$3(line, highlight, highlightsByColumn);
- }
- }
- _this._writeSidebar$1$end($._glyphs.get$upEnd());
- t1 = t2._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _writeFileStart$1: function(url) {
- var _this = this,
- t1 = !_this._multipleFiles || url == null,
- t2 = $._glyphs;
- if (t1)
- _this._writeSidebar$1$end(t2.get$downEnd());
- else {
- _this._writeSidebar$1$end(t2.get$topLeftCorner());
- _this._colorize$2$color(new U.Highlighter__writeFileStart_closure(_this), "\x1b[34m");
- _this._highlighter$_buffer._contents += " " + H.S($.$get$context().prettyUri$1(url));
- }
- _this._highlighter$_buffer._contents += "\n";
- },
- _writeMultilineHighlights$3$current: function(line, highlightsByColumn, current) {
- var t1, currentColor, t2, t3, t4, t5, foundCurrent, _i, highlight, t6, t7, startLine, endLine, _this = this, _null = null, _box_0 = {};
- _box_0.openedOnThisLine = false;
- _box_0.openedOnThisLineColor = null;
- t1 = current == null;
- if (t1)
- currentColor = _null;
- else
- currentColor = current.isPrimary ? _this._primaryColor : _this._secondaryColor;
- for (t2 = highlightsByColumn.length, t3 = _this._secondaryColor, t1 = !t1, t4 = _this._primaryColor, t5 = _this._highlighter$_buffer, foundCurrent = false, _i = 0; _i < t2; ++_i) {
- highlight = highlightsByColumn[_i];
- t6 = highlight == null;
- t7 = t6 ? _null : highlight.span;
- t7 = t7 == null ? _null : t7.get$start(t7);
- startLine = t7 == null ? _null : t7.get$line();
- t7 = t6 ? _null : highlight.span;
- t7 = t7 == null ? _null : t7.get$end(t7);
- endLine = t7 == null ? _null : t7.get$line();
- if (t1 && highlight === current) {
- _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure(_this, startLine, line), currentColor);
- foundCurrent = true;
- } else if (foundCurrent)
- _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure0(_this, highlight), currentColor);
- else if (t6)
- if (_box_0.openedOnThisLine)
- _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure1(_this), _box_0.openedOnThisLineColor);
- else
- t5._contents += " ";
- else {
- t6 = highlight.isPrimary ? t4 : t3;
- _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure2(_box_0, _this, current, startLine, line, highlight, endLine), t6);
- }
- }
- },
- _writeMultilineHighlights$2: function(line, highlightsByColumn) {
- return this._writeMultilineHighlights$3$current(line, highlightsByColumn, null);
- },
- _writeHighlightedText$4$color: function(text, startColumn, endColumn, color) {
- var _this = this;
- _this._writeText$1(J.getInterceptor$s(text).substring$2(text, 0, startColumn));
- _this._colorize$2$color(new U.Highlighter__writeHighlightedText_closure(_this, text, startColumn, endColumn), color);
- _this._writeText$1(C.JSString_methods.substring$2(text, endColumn, text.length));
- },
- _writeIndicator$3: function(line, highlight, highlightsByColumn) {
- var t2, coversWholeLine, _this = this,
- color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor,
- t1 = highlight.span;
- if (t1.get$start(t1).get$line() == t1.get$end(t1).get$line()) {
- _this._writeSidebar$0();
- t1 = _this._highlighter$_buffer;
- t1._contents += " ";
- _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
- if (highlightsByColumn.length !== 0)
- t1._contents += " ";
- _this._colorize$2$color(new U.Highlighter__writeIndicator_closure(_this, line, highlight), color);
- t1._contents += "\n";
- } else {
- t2 = line.number;
- if (t1.get$start(t1).get$line() === t2) {
- if (C.JSArray_methods.contains$1(highlightsByColumn, highlight))
- return;
- B.replaceFirstNull(highlightsByColumn, highlight);
- _this._writeSidebar$0();
- t1 = _this._highlighter$_buffer;
- t1._contents += " ";
- _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
- _this._colorize$2$color(new U.Highlighter__writeIndicator_closure0(_this, line, highlight), color);
- t1._contents += "\n";
- } else if (t1.get$end(t1).get$line() === t2) {
- coversWholeLine = t1.get$end(t1).get$column() === line.text.length;
- if (coversWholeLine && highlight.label == null) {
- B.replaceWithNull(highlightsByColumn, highlight);
- return;
- }
- _this._writeSidebar$0();
- t1 = _this._highlighter$_buffer;
- t1._contents += " ";
- _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
- _this._colorize$2$color(new U.Highlighter__writeIndicator_closure1(_this, coversWholeLine, line, highlight), color);
- t1._contents += "\n";
- B.replaceWithNull(highlightsByColumn, highlight);
- }
- }
- },
- _writeArrow$3$beginning: function(line, column, beginning) {
- var t2,
- t1 = beginning ? 0 : 1,
- tabs = this._countTabs$1(J.substring$2$s(line.text, 0, column + t1));
- t1 = this._highlighter$_buffer;
- t2 = t1._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 1 + column + tabs * 3);
- t1._contents = t2 + "^";
- },
- _writeArrow$2: function(line, column) {
- return this._writeArrow$3$beginning(line, column, true);
- },
- _writeLabel$1: function(label) {
- if (label != null)
- this._highlighter$_buffer._contents += " " + label;
- },
- _writeText$1: function(text) {
- var t1, t2, t3;
- text.toString;
- t1 = new H.CodeUnits(text);
- t1 = new H.ListIterator(t1, t1.get$length(t1));
- t2 = this._highlighter$_buffer;
- for (; t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if (t3 === 9)
- t2._contents += C.JSString_methods.$mul(" ", 4);
- else
- t2._contents += H.Primitives_stringFromCharCode(t3);
- }
- },
- _writeSidebar$3$end$line$text: function(end, line, text) {
- var t1 = {};
- t1.text = text;
- if (line != null)
- t1.text = C.JSInt_methods.toString$0(line + 1);
- this._colorize$2$color(new U.Highlighter__writeSidebar_closure(t1, this, end), "\x1b[34m");
- },
- _writeSidebar$1$end: function(end) {
- return this._writeSidebar$3$end$line$text(end, null, null);
- },
- _writeSidebar$1$text: function(text) {
- return this._writeSidebar$3$end$line$text(null, null, text);
- },
- _writeSidebar$1$line: function(line) {
- return this._writeSidebar$3$end$line$text(null, line, null);
- },
- _writeSidebar$0: function() {
- return this._writeSidebar$3$end$line$text(null, null, null);
- },
- _countTabs$1: function(text) {
- var t1, count;
- for (t1 = new H.CodeUnits(text), t1 = new H.ListIterator(t1, t1.get$length(t1)), count = 0; t1.moveNext$0();)
- if (t1.__internal$_current === 9)
- ++count;
- return count;
- },
- _isOnlyWhitespace$1: function(text) {
- var t1, t2;
- for (t1 = new H.CodeUnits(text), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- if (t2 !== 32 && t2 !== 9)
- return false;
- }
- return true;
- },
- _colorize$2$color: function(callback, color) {
- var t1 = this._primaryColor != null;
- if (t1 && color != null)
- this._highlighter$_buffer._contents += color;
- callback.call$0();
- if (t1 && color != null)
- this._highlighter$_buffer._contents += "\x1b[0m";
- }
- };
- U.Highlighter_closure.prototype = {
- call$0: function() {
- var t1 = this.color,
- t2 = J.getInterceptor$(t1);
- if (t2.$eq(t1, true))
- return "\x1b[31m";
- if (t2.$eq(t1, false))
- return null;
- return H._asStringNullable(t1);
- },
- $signature: 10
- };
- U.Highlighter$__closure.prototype = {
- call$1: function(line) {
- var t1 = line.highlights;
- t1 = new H.WhereIterable(t1, new U.Highlighter$___closure(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
- return t1.get$length(t1);
- }
- };
- U.Highlighter$___closure.prototype = {
- call$1: function(highlight) {
- var t1 = highlight.span;
- return t1.get$start(t1).get$line() != t1.get$end(t1).get$line();
- }
- };
- U.Highlighter$__closure0.prototype = {
- call$1: function(line) {
- return line.url;
- }
- };
- U.Highlighter__collateLines_closure.prototype = {
- call$1: function(highlight) {
- return highlight.get$span().get$sourceUrl();
- },
- $signature: 28
- };
- U.Highlighter__collateLines_closure0.prototype = {
- call$2: function(highlight1, highlight2) {
- return highlight1.span.compareTo$1(0, highlight2.span);
- }
- };
- U.Highlighter__collateLines_closure1.prototype = {
- call$1: function(highlightsForFile) {
- var t1, t2, t3, t4, context, t5, linesBeforeSpan, url, lineNumber, _i, line, activeHighlights, highlightIndex, oldHighlightLength,
- lines = H.setRuntimeTypeInfo([], type$.JSArray__Line);
- for (t1 = J.getInterceptor$ax(highlightsForFile), t2 = t1.get$iterator(highlightsForFile), t3 = type$.JSArray__Highlight; t2.moveNext$0();) {
- t4 = t2.get$current(t2).span;
- context = t4.get$context(t4);
- 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())));
- linesBeforeSpan = t5.get$length(t5);
- url = t4.get$sourceUrl();
- lineNumber = t4.get$start(t4).get$line() - linesBeforeSpan;
- for (t4 = context.split("\n"), t5 = t4.length, _i = 0; _i < t5; ++_i) {
- line = t4[_i];
- if (lines.length === 0 || lineNumber > C.JSArray_methods.get$last(lines).number)
- lines.push(new U._Line(line, lineNumber, url, H.setRuntimeTypeInfo([], t3)));
- ++lineNumber;
- }
- }
- activeHighlights = H.setRuntimeTypeInfo([], t3);
- for (t2 = lines.length, highlightIndex = 0, _i = 0; _i < lines.length; lines.length === t2 || (0, H.throwConcurrentModificationError)(lines), ++_i) {
- line = lines[_i];
- if (!!activeHighlights.fixed$length)
- H.throwExpression(P.UnsupportedError$("removeWhere"));
- C.JSArray_methods._removeWhere$2(activeHighlights, new U.Highlighter__collateLines__closure(line), true);
- oldHighlightLength = activeHighlights.length;
- for (t3 = t1.skip$1(highlightsForFile, highlightIndex), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t5 = t4.span;
- if (t5.get$start(t5).get$line() > line.number)
- break;
- if (!J.$eq$(t5.get$sourceUrl(), line.url))
- break;
- activeHighlights.push(t4);
- }
- highlightIndex += activeHighlights.length - oldHighlightLength;
- C.JSArray_methods.addAll$1(line.highlights, activeHighlights);
- }
- return lines;
- }
- };
- U.Highlighter__collateLines__closure.prototype = {
- call$1: function(highlight) {
- var t1 = highlight.span,
- t2 = this.line;
- return !J.$eq$(t1.get$sourceUrl(), t2.url) || t1.get$end(t1).get$line() < t2.number;
- }
- };
- U.Highlighter_highlight_closure.prototype = {
- call$1: function(highlight) {
- return highlight.isPrimary;
- }
- };
- U.Highlighter_highlight_closure0.prototype = {
- call$0: function() {
- return null;
- },
- $signature: 0
- };
- U.Highlighter__writeFileStart_closure.prototype = {
- call$0: function() {
- this.$this._highlighter$_buffer._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 2) + ">";
- return null;
- },
- $signature: 1
- };
- U.Highlighter__writeMultilineHighlights_closure.prototype = {
- call$0: function() {
- var t1 = $._glyphs;
- t1 = this.startLine === this.line.number ? t1.get$topLeftCorner() : t1.get$bottomLeftCorner();
- this.$this._highlighter$_buffer._contents += t1;
- },
- $signature: 0
- };
- U.Highlighter__writeMultilineHighlights_closure0.prototype = {
- call$0: function() {
- var t1 = $._glyphs;
- t1 = this.highlight == null ? t1.get$horizontalLine() : t1.get$cross();
- this.$this._highlighter$_buffer._contents += t1;
- },
- $signature: 0
- };
- U.Highlighter__writeMultilineHighlights_closure1.prototype = {
- call$0: function() {
- this.$this._highlighter$_buffer._contents += $._glyphs.get$horizontalLine();
- return null;
- },
- $signature: 1
- };
- U.Highlighter__writeMultilineHighlights_closure2.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this._box_0,
- t2 = t1.openedOnThisLine,
- t3 = $._glyphs,
- vertical = t2 ? t3.get$cross() : t3.get$verticalLine();
- if (_this.current != null)
- _this.$this._highlighter$_buffer._contents += vertical;
- else {
- t2 = _this.line;
- t3 = t2.number;
- if (_this.startLine === t3) {
- t2 = _this.$this;
- t2._colorize$2$color(new U.Highlighter__writeMultilineHighlights__closure(t1, t2), t1.openedOnThisLineColor);
- t1.openedOnThisLine = true;
- if (t1.openedOnThisLineColor == null)
- t1.openedOnThisLineColor = _this.highlight.isPrimary ? t2._primaryColor : t2._secondaryColor;
- } else {
- if (_this.endLine === t3) {
- t3 = _this.highlight.span;
- t2 = t3.get$end(t3).get$column() === t2.text.length;
- } else
- t2 = false;
- t3 = _this.$this;
- if (t2) {
- t1 = _this.highlight.label == null ? $._glyphs.glyphOrAscii$2("\u2514", "\\") : vertical;
- t3._highlighter$_buffer._contents += t1;
- } else
- t3._colorize$2$color(new U.Highlighter__writeMultilineHighlights__closure0(t3, vertical), t1.openedOnThisLineColor);
- }
- }
- },
- $signature: 0
- };
- U.Highlighter__writeMultilineHighlights__closure.prototype = {
- call$0: function() {
- var t1 = this._box_0.openedOnThisLine ? "\u252c" : "\u250c";
- this.$this._highlighter$_buffer._contents += $._glyphs.glyphOrAscii$2(t1, "/");
- },
- $signature: 0
- };
- U.Highlighter__writeMultilineHighlights__closure0.prototype = {
- call$0: function() {
- this.$this._highlighter$_buffer._contents += this.vertical;
- },
- $signature: 0
- };
- U.Highlighter__writeHighlightedText_closure.prototype = {
- call$0: function() {
- var _this = this;
- return _this.$this._writeText$1(C.JSString_methods.substring$2(_this.text, _this.startColumn, _this.endColumn));
- },
- $signature: 1
- };
- U.Highlighter__writeIndicator_closure.prototype = {
- call$0: function() {
- var tabsBefore, tabsInside,
- t1 = this.$this,
- t2 = this.highlight,
- t3 = t2.span,
- t4 = t2.isPrimary ? "^" : $._glyphs.get$horizontalLineBold(),
- startColumn = t3.get$start(t3).get$column(),
- endColumn = t3.get$end(t3).get$column();
- t3 = this.line.text;
- tabsBefore = t1._countTabs$1(J.getInterceptor$s(t3).substring$2(t3, 0, startColumn));
- tabsInside = t1._countTabs$1(C.JSString_methods.substring$2(t3, startColumn, endColumn));
- startColumn += tabsBefore * 3;
- t3 = t1._highlighter$_buffer;
- t3._contents += C.JSString_methods.$mul(" ", startColumn);
- t3._contents += C.JSString_methods.$mul(t4, Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1));
- t1._writeLabel$1(t2.label);
- },
- $signature: 0
- };
- U.Highlighter__writeIndicator_closure0.prototype = {
- call$0: function() {
- var t1 = this.highlight.span;
- return this.$this._writeArrow$2(this.line, t1.get$start(t1).get$column());
- },
- $signature: 1
- };
- U.Highlighter__writeIndicator_closure1.prototype = {
- call$0: function() {
- var t2, _this = this,
- t1 = _this.$this;
- if (_this.coversWholeLine)
- t1._highlighter$_buffer._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 3);
- else {
- t2 = _this.highlight.span;
- t1._writeArrow$3$beginning(_this.line, Math.max(t2.get$end(t2).get$column() - 1, 0), false);
- }
- t1._writeLabel$1(_this.highlight.label);
- },
- $signature: 0
- };
- U.Highlighter__writeSidebar_closure.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._highlighter$_buffer,
- t3 = this._box_0.text;
- if (t3 == null)
- t3 = "";
- t2._contents += C.JSString_methods.padRight$1(t3, t1._paddingBeforeSidebar);
- t1 = this.end;
- t2._contents += t1 == null ? $._glyphs.get$verticalLine() : t1;
- },
- $signature: 0
- };
- U._Highlight.prototype = {
- toString$0: function(_) {
- var t1 = this.isPrimary ? "primary " : "",
- t2 = this.span;
- 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());
- t1 = this.label;
- t1 = t1 != null ? t2 + (" (" + t1 + ")") : t2;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- get$span: function() {
- return this.span;
- }
- };
- U._Highlight_closure.prototype = {
- call$0: function() {
- var t2, t3, t4, t5,
- t1 = this.span;
- if (!(type$.SourceSpanWithContext._is(t1) && B.findLineStart(t1.get$context(t1), t1.get$text(), t1.get$start(t1).get$column()) != null)) {
- t2 = V.SourceLocation$(t1.get$start(t1).get$offset(), 0, 0, t1.get$sourceUrl());
- t3 = t1.get$end(t1).get$offset();
- t4 = t1.get$sourceUrl();
- t5 = B.countCodeUnits(t1.get$text(), 10);
- t1 = X.SourceSpanWithContext$(t2, V.SourceLocation$(t3, U._Highlight__lastLineLength(t1.get$text()), t5, t4), t1.get$text(), t1.get$text());
- }
- return U._Highlight__normalizeEndOfLine(U._Highlight__normalizeTrailingNewline(U._Highlight__normalizeNewlines(t1)));
- },
- $signature: 168
- };
- U._Line.prototype = {
- toString$0: function(_) {
- return "" + this.number + ': "' + H.S(this.text) + '" (' + C.JSArray_methods.join$1(this.highlights, ", ") + ")";
- }
- };
- V.SourceLocation.prototype = {
- distance$1: function(other) {
- var t1 = this.sourceUrl;
- if (!J.$eq$(t1, other.get$sourceUrl()))
- throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t1) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
- return Math.abs(this.offset - other.get$offset());
- },
- compareTo$1: function(_, other) {
- var t1 = this.sourceUrl;
- if (!J.$eq$(t1, other.get$sourceUrl()))
- throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t1) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
- return this.offset - other.get$offset();
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return type$.SourceLocation._is(other) && J.$eq$(this.sourceUrl, other.get$sourceUrl()) && this.offset === other.get$offset();
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.sourceUrl) + this.offset;
- },
- toString$0: function(_) {
- var _this = this,
- t1 = "<" + H.getRuntimeType(_this).toString$0(0) + ": " + _this.offset + " ",
- source = _this.sourceUrl;
- return t1 + (H.S(source == null ? "unknown source" : source) + ":" + (_this.line + 1) + ":" + (_this.column + 1)) + ">";
- },
- $isComparable: 1,
- get$sourceUrl: function() {
- return this.sourceUrl;
- },
- get$offset: function() {
- return this.offset;
- },
- get$line: function() {
- return this.line;
- },
- get$column: function() {
- return this.column;
- }
- };
- D.SourceLocationMixin.prototype = {
- distance$1: function(other) {
- if (!J.$eq$(this.file.url, other.get$sourceUrl()))
- throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
- return Math.abs(this.offset - other.get$offset());
- },
- compareTo$1: function(_, other) {
- if (!J.$eq$(this.file.url, other.get$sourceUrl()))
- throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(this.get$sourceUrl()) + '" and "' + H.S(other.get$sourceUrl()) + "\" don't match."));
- return this.offset - other.get$offset();
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return type$.SourceLocation._is(other) && J.$eq$(this.file.url, other.get$sourceUrl()) && this.offset === other.get$offset();
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.file.url) + this.offset;
- },
- toString$0: function(_) {
- var t1 = this.offset,
- t2 = "<" + H.getRuntimeType(this).toString$0(0) + ": " + t1 + " ",
- t3 = this.file,
- source = t3.url;
- return t2 + (H.S(source == null ? "unknown source" : source) + ":" + (t3.getLine$1(t1) + 1) + ":" + (t3.getColumn$1(t1) + 1)) + ">";
- },
- $isComparable: 1,
- $isSourceLocation: 1
- };
- V.SourceSpan.prototype = {$isComparable: 1};
- V.SourceSpanBase.prototype = {
- SourceSpanBase$3: function(start, end, text) {
- var t3,
- t1 = this.end,
- t2 = this.start;
- if (!J.$eq$(t1.get$sourceUrl(), t2.get$sourceUrl()))
- throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t2.get$sourceUrl()) + '" and "' + H.S(t1.get$sourceUrl()) + "\" don't match."));
- else if (t1.get$offset() < t2.get$offset())
- throw H.wrapException(P.ArgumentError$("End " + t1.toString$0(0) + " must come after start " + t2.toString$0(0) + "."));
- else {
- t3 = this.text;
- if (t3.length !== t2.distance$1(t1))
- throw H.wrapException(P.ArgumentError$('Text "' + t3 + '" must be ' + t2.distance$1(t1) + " characters long."));
- }
- },
- get$start: function(receiver) {
- return this.start;
- },
- get$end: function(receiver) {
- return this.end;
- },
- get$text: function() {
- return this.text;
- }
- };
- G.SourceSpanException.prototype = {
- get$message: function(_) {
- return this._span_exception$_message;
- },
- get$span: function() {
- return this._span;
- },
- toString$1$color: function(_, color) {
- var _this = this;
- if (_this.get$span() == null)
- return _this._span_exception$_message;
- return "Error on " + _this.get$span().message$2$color(0, _this._span_exception$_message, color);
- },
- toString$0: function($receiver) {
- return this.toString$1$color($receiver, null);
- },
- $isException: 1
- };
- G.SourceSpanFormatException.prototype = {$isFormatException: 1,
- get$source: function() {
- return this.source;
- }
- };
- Y.SourceSpanMixin.prototype = {
- get$sourceUrl: function() {
- return this.get$start(this).get$sourceUrl();
- },
- get$length: function(_) {
- var _this = this;
- return _this.get$end(_this).get$offset() - _this.get$start(_this).get$offset();
- },
- compareTo$1: function(_, other) {
- var _this = this,
- result = _this.get$start(_this).compareTo$1(0, other.get$start(other));
- return result === 0 ? _this.get$end(_this).compareTo$1(0, other.get$end(other)) : result;
- },
- message$2$color: function(_, message, color) {
- var t2, highlight, _this = this,
- t1 = "line " + (_this.get$start(_this).get$line() + 1) + ", column " + (_this.get$start(_this).get$column() + 1);
- if (_this.get$sourceUrl() != null) {
- t2 = _this.get$sourceUrl();
- t2 = t1 + (" of " + H.S($.$get$context().prettyUri$1(t2)));
- t1 = t2;
- }
- t1 += ": " + H.S(message);
- highlight = _this.highlight$1$color(color);
- if (highlight.length !== 0)
- t1 = t1 + "\n" + highlight;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- message$1: function($receiver, message) {
- return this.message$2$color($receiver, message, null);
- },
- highlight$1$color: function(color) {
- var _this = this;
- if (!type$.SourceSpanWithContext._is(_this) && _this.get$length(_this) === 0)
- return "";
- return U.Highlighter$(_this, color).highlight$0();
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return type$.SourceSpan._is(other) && _this.get$start(_this).$eq(0, other.get$start(other)) && _this.get$end(_this).$eq(0, other.get$end(other));
- },
- get$hashCode: function(_) {
- var t2, _this = this,
- t1 = _this.get$start(_this);
- t1 = t1.get$hashCode(t1);
- t2 = _this.get$end(_this);
- return t1 + 31 * t2.get$hashCode(t2);
- },
- toString$0: function(_) {
- var _this = this;
- 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() + '">';
- },
- $isComparable: 1,
- $isSourceSpan: 1
- };
- X.SourceSpanWithContext.prototype = {
- get$context: function(_) {
- return this._context;
- }
- };
- U.Chain.prototype = {
- toTrace$0: function() {
- var t1 = this.traces;
- 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$.Frame), new P._StringStackTrace(null));
- },
- toString$0: function(_) {
- var t1 = this.traces,
- t2 = H._arrayInstanceType(t1);
- 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$.int))), t2._eval$1("MappedListIterable<1,String>")).join$1(0, "===== asynchronous gap ===========================\n");
- },
- $isStackTrace: 1
- };
- U.Chain_Chain$parse_closure.prototype = {
- call$1: function(trace) {
- return new Y.Trace(P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.Frame), new P._StringStackTrace(trace));
- }
- };
- U.Chain_Chain$parse_closure0.prototype = {
- call$1: function(trace) {
- return Y.Trace$parseFriendly(trace);
- }
- };
- U.Chain_toTrace_closure.prototype = {
- call$1: function(trace) {
- return trace.get$frames();
- }
- };
- U.Chain_toString_closure0.prototype = {
- call$1: function(trace) {
- var t1 = trace.get$frames();
- 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$.int));
- }
- };
- U.Chain_toString__closure0.prototype = {
- call$1: function(frame) {
- return frame.get$location().length;
- }
- };
- U.Chain_toString_closure.prototype = {
- call$1: function(trace) {
- var t1 = trace.get$frames();
- return new H.MappedListIterable(t1, new U.Chain_toString__closure(this.longest), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- }
- };
- U.Chain_toString__closure.prototype = {
- call$1: function(frame) {
- return J.padRight$1$s(frame.get$location(), this.longest) + " " + H.S(frame.get$member()) + "\n";
- }
- };
- A.Frame.prototype = {
- get$isCore: function() {
- return this.uri.get$scheme() === "dart";
- },
- get$library: function() {
- var t1 = this.uri;
- if (t1.get$scheme() === "data")
- return "data:...";
- return $.$get$context().prettyUri$1(t1);
- },
- get$$package: function() {
- var t1 = this.uri;
- if (t1.get$scheme() !== "package")
- return null;
- return C.JSArray_methods.get$first(t1.get$path(t1).split("/"));
- },
- get$location: function() {
- var t2, _this = this,
- t1 = _this.line;
- if (t1 == null)
- return _this.get$library();
- t2 = _this.column;
- if (t2 == null)
- return H.S(_this.get$library()) + " " + H.S(t1);
- return H.S(_this.get$library()) + " " + H.S(t1) + ":" + H.S(t2);
- },
- toString$0: function(_) {
- return H.S(this.get$location()) + " in " + H.S(this.member);
- },
- get$uri: function() {
- return this.uri;
- },
- get$line: function() {
- return this.line;
- },
- get$column: function() {
- return this.column;
- },
- get$member: function() {
- return this.member;
- }
- };
- A.Frame_Frame$parseVM_closure.prototype = {
- call$0: function() {
- var match, t2, t3, member, uri, lineAndColumn, line, _null = null,
- t1 = this.frame;
- if (t1 === "...")
- return new A.Frame(P._Uri__Uri(_null, _null, _null, _null), _null, _null, "...");
- match = $.$get$_vmFrame().firstMatch$1(t1);
- if (match == null)
- return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
- t1 = match._match;
- t2 = t1[1];
- t3 = $.$get$_asyncBody();
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, t3, "<async>");
- member = H.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>");
- uri = P.Uri_parse(t1[2]);
- lineAndColumn = t1[3].split(":");
- t1 = lineAndColumn.length;
- line = t1 > 1 ? P.int_parse(lineAndColumn[1], _null, _null) : _null;
- return new A.Frame(uri, line, t1 > 2 ? P.int_parse(lineAndColumn[2], _null, _null) : _null, member);
- },
- $signature: 42
- };
- A.Frame_Frame$parseV8_closure.prototype = {
- call$0: function() {
- var t2, t3, _s4_ = "<fn>",
- t1 = this.frame,
- match = $.$get$_v8Frame().firstMatch$1(t1);
- if (match == null)
- return new N.UnparsedFrame(P._Uri__Uri(null, "unparsed", null, null), t1);
- t1 = new A.Frame_Frame$parseV8_closure_parseLocation(t1);
- t2 = match._match;
- t3 = t2[2];
- if (t3 != null) {
- t2 = t2[1];
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "<anonymous>", _s4_);
- t2 = H.stringReplaceAllUnchecked(t2, "Anonymous function", _s4_);
- return t1.call$2(t3, H.stringReplaceAllUnchecked(t2, "(anonymous function)", _s4_));
- } else
- return t1.call$2(t2[3], _s4_);
- },
- $signature: 42
- };
- A.Frame_Frame$parseV8_closure_parseLocation.prototype = {
- call$2: function($location, member) {
- var urlMatch, _null = null,
- t1 = $.$get$_v8EvalLocation(),
- evalMatch = t1.firstMatch$1($location);
- for (; evalMatch != null;) {
- $location = evalMatch._match[1];
- evalMatch = t1.firstMatch$1($location);
- }
- if ($location === "native")
- return new A.Frame(P.Uri_parse("native"), _null, _null, member);
- urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location);
- if (urlMatch == null)
- return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), this.frame);
- t1 = urlMatch._match;
- return new A.Frame(A.Frame__uriOrPathToUri(t1[1]), P.int_parse(t1[2], _null, _null), P.int_parse(t1[3], _null, _null), member);
- },
- $signature: 98
- };
- A.Frame_Frame$parseFirefox_closure.prototype = {
- call$0: function() {
- var uri, t2, t3, member, line, _null = null,
- t1 = this.frame,
- match = $.$get$_firefoxSafariFrame().firstMatch$1(t1);
- if (match == null)
- return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
- t1 = match._match;
- uri = A.Frame__uriOrPathToUri(t1[3]);
- t2 = t1[1];
- if (t2 != null) {
- t3 = C.JSString_methods.allMatches$1("/", t1[2]);
- member = J.$add$ansx(t2, C.JSArray_methods.join$0(P.List_List$filled(t3.get$length(t3), ".<fn>", type$.String)));
- if (member === "")
- member = "<fn>";
- member = C.JSString_methods.replaceFirst$2(member, $.$get$_initialDot(), "");
- } else
- member = "<fn>";
- t2 = t1[4];
- line = t2 === "" ? _null : P.int_parse(t2, _null, _null);
- t1 = t1[5];
- return new A.Frame(uri, line, t1 == null || t1 === "" ? _null : P.int_parse(t1, _null, _null), member);
- },
- $signature: 42
- };
- A.Frame_Frame$parseFriendly_closure.prototype = {
- call$0: function() {
- var t2, uri, line, column, _null = null,
- t1 = this.frame,
- match = $.$get$_friendlyFrame().firstMatch$1(t1);
- if (match == null)
- throw H.wrapException(P.FormatException$("Couldn't parse package:stack_trace stack trace line '" + H.S(t1) + "'.", _null, _null));
- t1 = match._match;
- t2 = t1[1];
- uri = t2 === "data:..." ? P.Uri_Uri$dataFromString("", _null, _null) : P.Uri_parse(t2);
- if (uri.get$scheme() === "") {
- t2 = $.$get$context();
- uri = t2.toUri$1(D.absolute(t2.style.pathFromUri$1(M._parseUri(uri))));
- }
- t2 = t1[2];
- line = t2 == null ? _null : P.int_parse(t2, _null, _null);
- t2 = t1[3];
- column = t2 == null ? _null : P.int_parse(t2, _null, _null);
- return new A.Frame(uri, line, column, t1[4]);
- },
- $signature: 42
- };
- T.LazyTrace.prototype = {
- get$_lazy_trace$_trace: function() {
- var t1 = this._lazy_trace$_inner;
- return t1 == null ? this._lazy_trace$_inner = this._thunk.call$0() : t1;
- },
- get$frames: function() {
- return this.get$_lazy_trace$_trace().get$frames();
- },
- get$terse: function() {
- return new T.LazyTrace(new T.LazyTrace_terse_closure(this));
- },
- toString$0: function(_) {
- return J.toString$0$(this.get$_lazy_trace$_trace());
- },
- $isStackTrace: 1,
- $isTrace: 1
- };
- T.LazyTrace_terse_closure.prototype = {
- call$0: function() {
- return this.$this.get$_lazy_trace$_trace().get$terse();
- },
- $signature: 78
- };
- Y.Trace.prototype = {
- get$terse: function() {
- return this.foldFrames$2$terse(new Y.Trace_terse_closure(), true);
- },
- foldFrames$2$terse: function(predicate, terse) {
- var newFrames, t1, t2, _box_0 = {};
- _box_0.predicate = predicate;
- _box_0.predicate = new Y.Trace_foldFrames_closure(predicate);
- newFrames = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
- 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();) {
- t2 = t1.__internal$_current;
- if (t2 instanceof N.UnparsedFrame || !_box_0.predicate.call$1(t2))
- newFrames.push(t2);
- else if (newFrames.length === 0 || !_box_0.predicate.call$1(C.JSArray_methods.get$last(newFrames)))
- newFrames.push(new A.Frame(t2.get$uri(), t2.get$line(), t2.get$column(), t2.get$member()));
- }
- newFrames = new H.MappedListIterable(newFrames, new Y.Trace_foldFrames_closure0(_box_0), type$.MappedListIterable_Frame_Frame).toList$0(0);
- if (newFrames.length > 1 && _box_0.predicate.call$1(C.JSArray_methods.get$first(newFrames)))
- C.JSArray_methods.removeAt$1(newFrames, 0);
- return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(newFrames, H._arrayInstanceType(newFrames)._eval$1("ReversedListIterable<1>")), type$.Frame), new P._StringStackTrace(this.original._stackTrace));
- },
- toString$0: function(_) {
- var t1 = this.frames,
- t2 = H._arrayInstanceType(t1);
- 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$.int))), t2._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- $isStackTrace: 1,
- get$frames: function() {
- return this.frames;
- }
- };
- Y.Trace_Trace$from_closure.prototype = {
- call$0: function() {
- return Y.Trace_Trace$parse(this.trace.toString$0(0));
- },
- $signature: 78
- };
- Y.Trace__parseVM_closure.prototype = {
- call$1: function(line) {
- return A.Frame_Frame$parseVM(line);
- }
- };
- Y.Trace$parseV8_closure.prototype = {
- call$1: function(line) {
- return !J.startsWith$1$s(line, $.$get$_v8TraceLine());
- }
- };
- Y.Trace$parseV8_closure0.prototype = {
- call$1: function(line) {
- return A.Frame_Frame$parseV8(line);
- }
- };
- Y.Trace$parseJSCore_closure.prototype = {
- call$1: function(line) {
- return line !== "\tat ";
- }
- };
- Y.Trace$parseJSCore_closure0.prototype = {
- call$1: function(line) {
- return A.Frame_Frame$parseV8(line);
- }
- };
- Y.Trace$parseFirefox_closure.prototype = {
- call$1: function(line) {
- return line.length !== 0 && line !== "[native code]";
- }
- };
- Y.Trace$parseFirefox_closure0.prototype = {
- call$1: function(line) {
- return A.Frame_Frame$parseFirefox(line);
- }
- };
- Y.Trace$parseFriendly_closure.prototype = {
- call$1: function(line) {
- return !J.startsWith$1$s(line, "=====");
- }
- };
- Y.Trace$parseFriendly_closure0.prototype = {
- call$1: function(line) {
- return A.Frame_Frame$parseFriendly(line);
- }
- };
- Y.Trace_terse_closure.prototype = {
- call$1: function(_) {
- return false;
- }
- };
- Y.Trace_foldFrames_closure.prototype = {
- call$1: function(frame) {
- if (this.oldPredicate.call$1(frame))
- return true;
- if (frame.get$isCore())
- return true;
- if (frame.get$$package() === "stack_trace")
- return true;
- if (!J.contains$1$asx(frame.get$member(), "<async>"))
- return false;
- return frame.get$line() == null;
- }
- };
- Y.Trace_foldFrames_closure0.prototype = {
- call$1: function(frame) {
- var t1, t2;
- if (frame instanceof N.UnparsedFrame || !this._box_0.predicate.call$1(frame))
- return frame;
- t1 = frame.get$library();
- t2 = $.$get$_terseRegExp();
- t1.toString;
- return new A.Frame(P.Uri_parse(H.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.get$member());
- }
- };
- Y.Trace_toString_closure0.prototype = {
- call$1: function(frame) {
- return frame.get$location().length;
- }
- };
- Y.Trace_toString_closure.prototype = {
- call$1: function(frame) {
- if (frame instanceof N.UnparsedFrame)
- return frame.toString$0(0) + "\n";
- return J.padRight$1$s(frame.get$location(), this.longest) + " " + H.S(frame.get$member()) + "\n";
- }
- };
- N.UnparsedFrame.prototype = {
- toString$0: function(_) {
- return this.member;
- },
- $isFrame: 1,
- get$uri: function() {
- return this.uri;
- },
- get$line: function() {
- return null;
- },
- get$column: function() {
- return null;
- },
- get$isCore: function() {
- return false;
- },
- get$library: function() {
- return "unparsed";
- },
- get$$package: function() {
- return null;
- },
- get$location: function() {
- return "unparsed";
- },
- get$member: function() {
- return this.member;
- }
- };
- L._StreamTransformer.prototype = {
- bind$1: function(values) {
- var controller, _null = null, t1 = {},
- t2 = this.$ti;
- if (values.get$isBroadcast())
- controller = new P._SyncBroadcastStreamController(_null, _null, t2._eval$1("_SyncBroadcastStreamController<2>"));
- else
- controller = P.StreamController_StreamController(_null, _null, _null, _null, true, t2._rest[1]);
- t1.subscription = null;
- controller.set$onListen(new L._StreamTransformer_bind_closure(t1, this, values, controller));
- return controller.get$stream();
- }
- };
- L._StreamTransformer_bind_closure.prototype = {
- call$0: function() {
- var t2, t3, t4, t5, _this = this, t1 = {};
- t1.valuesDone = false;
- t2 = _this.values;
- t3 = _this.$this;
- t4 = _this.controller;
- t5 = _this._box_1;
- 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));
- if (!t2.get$isBroadcast()) {
- t2 = t5.subscription;
- t4.set$onPause(t2.get$pause(t2));
- t4.set$onResume(t5.subscription.get$resume());
- }
- t4.set$onCancel(new L._StreamTransformer_bind__closure2(t5, t1));
- },
- $signature: 0
- };
- L._StreamTransformer_bind__closure.prototype = {
- call$1: function(value) {
- return this.$this._from_handlers$_handleData.call$2(value, this.controller);
- },
- $signature: function() {
- return this.$this.$ti._eval$1("~(1)");
- }
- };
- L._StreamTransformer_bind__closure1.prototype = {
- call$2: function(error, stackTrace) {
- this.$this._from_handlers$_handleError.call$3(error, stackTrace, this.controller);
- },
- "call*": "call$2",
- $requiredArgCount: 2,
- $signature: 58
- };
- L._StreamTransformer_bind__closure0.prototype = {
- call$0: function() {
- this._box_0.valuesDone = true;
- this.$this._from_handlers$_handleDone.call$1(this.controller);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- L._StreamTransformer_bind__closure2.prototype = {
- call$0: function() {
- var t1 = this._box_1,
- toCancel = t1.subscription;
- t1.subscription = null;
- if (!this._box_0.valuesDone)
- return toCancel.cancel$0();
- return null;
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 100
- };
- R._debounceAggregate_closure.prototype = {
- call$2: function(value, sink) {
- var soFar, _this = this,
- t1 = _this._box_0,
- t2 = t1.timer;
- if (t2 != null)
- t2.cancel$0();
- soFar = _this.collect.call$2(value, t1.soFar);
- t1.soFar = soFar;
- if (t1.timer == null && _this.leading) {
- t1.emittedLatestAsLeading = true;
- sink.add$1(0, soFar);
- } else
- t1.emittedLatestAsLeading = false;
- t1.timer = P.Timer_Timer(_this.duration, new R._debounceAggregate__closure(t1, _this.trailing, sink));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- R._debounceAggregate__closure.prototype = {
- call$0: function() {
- var t1, _this = this;
- if (_this.trailing && !_this._box_0.emittedLatestAsLeading)
- _this.sink.add$1(0, _this._box_0.soFar);
- t1 = _this._box_0;
- if (t1.shouldClose)
- _this.sink.close$0(0);
- t1.timer = t1.soFar = null;
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- R._debounceAggregate_closure0.prototype = {
- call$1: function(sink) {
- var t1 = this._box_0;
- if (t1.soFar != null && this.trailing)
- t1.shouldClose = true;
- else {
- t1 = t1.timer;
- if (t1 != null)
- t1.cancel$0();
- sink.close$0(0);
- }
- }
- };
- E.StringScannerException.prototype = {
- get$source: function() {
- return H._asStringNullable(this.source);
- }
- };
- Z.LineScanner.prototype = {
- get$_betweenCRLF: function() {
- return this.peekChar$1(-1) === 13 && this.peekChar$0() === 10;
- },
- scanChar$1: function(character) {
- if (!this.super$StringScanner$scanChar(character))
- return false;
- this._adjustLineAndColumn$1(character);
- return true;
- },
- _adjustLineAndColumn$1: function(character) {
- var t1, _this = this;
- if (character !== 10)
- t1 = character === 13 && _this.peekChar$0() !== 10;
- else
- t1 = true;
- if (t1) {
- ++_this._line_scanner$_line;
- _this._line_scanner$_column = 0;
- } else
- ++_this._line_scanner$_column;
- },
- scan$1: function(pattern) {
- var newlines, t1, t2, _this = this;
- if (!_this.super$StringScanner$scan(pattern))
- return false;
- newlines = _this._newlinesIn$1(_this.get$lastMatch().group$1(0));
- t1 = _this._line_scanner$_line;
- t2 = newlines.length;
- _this._line_scanner$_line = t1 + t2;
- if (t2 === 0)
- _this._line_scanner$_column = _this._line_scanner$_column + _this.get$lastMatch().group$1(0).length;
- else
- _this._line_scanner$_column = _this.get$lastMatch().group$1(0).length - J.get$end$x(C.JSArray_methods.get$last(newlines));
- return true;
- },
- _newlinesIn$1: function(text) {
- var t1 = $.$get$_newlineRegExp().allMatches$1(0, text),
- newlines = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
- if (this.get$_betweenCRLF())
- C.JSArray_methods.removeLast$0(newlines);
- return newlines;
- }
- };
- S.SpanScanner.prototype = {
- set$state: function(state) {
- if (!(state instanceof S._SpanScannerState) || state._scanner !== this)
- throw H.wrapException(P.ArgumentError$("The given LineScannerState was not returned by this LineScanner."));
- this.set$position(state.position);
- },
- spanFrom$2: function(startState, endState) {
- var endPosition = endState == null ? this._string_scanner$_position : endState.position;
- return this._sourceFile.span$2(startState.position, endPosition);
- },
- spanFrom$1: function(startState) {
- return this.spanFrom$2(startState, null);
- },
- matches$1: function(pattern) {
- var t1, t2, _this = this;
- if (!_this.super$StringScanner$matches(pattern))
- return false;
- t1 = _this._string_scanner$_position;
- t2 = _this.get$lastMatch();
- _this._sourceFile.span$2(t1, t2.start + t2.pattern.length);
- return true;
- },
- error$3$length$position: function(message, $length, position) {
- var t2, match, _this = this,
- t1 = _this.string;
- B.validateErrorArgs(t1, null, position, $length);
- t2 = position == null && $length == null;
- match = t2 ? _this.get$lastMatch() : null;
- if (position == null)
- position = match == null ? _this._string_scanner$_position : match.start;
- if ($length == null)
- if (match == null)
- $length = 0;
- else {
- t2 = match.start;
- $length = t2 + match.pattern.length - t2;
- }
- throw H.wrapException(E.StringScannerException$(message, _this._sourceFile.span$2(position, position + $length), t1));
- },
- error$1: function(message) {
- return this.error$3$length$position(message, null, null);
- },
- error$2$position: function(message, position) {
- return this.error$3$length$position(message, null, position);
- },
- error$2$length: function(message, $length) {
- return this.error$3$length$position(message, $length, null);
- }
- };
- S._SpanScannerState.prototype = {};
- X.StringScanner.prototype = {
- set$position: function(position) {
- if (position < 0 || position > this.string.length)
- throw H.wrapException(P.ArgumentError$("Invalid position " + position));
- this._string_scanner$_position = position;
- this._lastMatch = null;
- },
- get$lastMatch: function() {
- var _this = this;
- if (_this._string_scanner$_position !== _this._lastMatchPosition)
- _this._lastMatch = null;
- return _this._lastMatch;
- },
- readChar$0: function() {
- var _this = this,
- t1 = _this._string_scanner$_position,
- t2 = _this.string;
- if (t1 === t2.length)
- _this.error$3$length$position("expected more input.", 0, t1);
- return J.codeUnitAt$1$s(t2, _this._string_scanner$_position++);
- },
- peekChar$1: function(offset) {
- var index;
- if (offset == null)
- offset = 0;
- index = this._string_scanner$_position + offset;
- if (index < 0 || index >= this.string.length)
- return null;
- return J.codeUnitAt$1$s(this.string, index);
- },
- peekChar$0: function() {
- return this.peekChar$1(null);
- },
- scanChar$1: function(character) {
- var t1 = this._string_scanner$_position,
- t2 = this.string;
- if (t1 === t2.length)
- return false;
- if (J.codeUnitAt$1$s(t2, t1) !== character)
- return false;
- this._string_scanner$_position = t1 + 1;
- return true;
- },
- expectChar$2$name: function(character, $name) {
- if (this.scanChar$1(character))
- return;
- if ($name == null)
- if (character === 92)
- $name = '"\\"';
- else
- $name = character === 34 ? '"\\""' : '"' + H.Primitives_stringFromCharCode(character) + '"';
- this.error$3$length$position("expected " + $name + ".", 0, this._string_scanner$_position);
- },
- expectChar$1: function(character) {
- return this.expectChar$2$name(character, null);
- },
- scan$1: function(pattern) {
- var t1, _this = this,
- success = _this.matches$1(pattern);
- if (success) {
- t1 = _this._lastMatch;
- _this._lastMatchPosition = _this._string_scanner$_position = t1.start + t1.pattern.length;
- }
- return success;
- },
- expect$1: function(pattern) {
- var t1, $name;
- if (this.scan$1(pattern))
- return;
- t1 = H.stringReplaceAllUnchecked(pattern, "\\", "\\\\");
- $name = '"' + H.stringReplaceAllUnchecked(t1, '"', '\\"') + '"';
- this.error$3$length$position("expected " + $name + ".", 0, this._string_scanner$_position);
- },
- expectDone$0: function() {
- var t1 = this._string_scanner$_position;
- if (t1 === this.string.length)
- return;
- this.error$3$length$position("expected no more input.", 0, t1);
- },
- matches$1: function(pattern) {
- var _this = this,
- t1 = C.JSString_methods.matchAsPrefix$2(pattern, _this.string, _this._string_scanner$_position);
- _this._lastMatch = t1;
- _this._lastMatchPosition = _this._string_scanner$_position;
- return t1 != null;
- },
- substring$1: function(_, start) {
- var end = this._string_scanner$_position;
- return J.substring$2$s(this.string, start, end);
- },
- error$3$length$position: function(message, $length, position) {
- var t2, t3, t4, sourceFile,
- t1 = this.string;
- B.validateErrorArgs(t1, null, position, $length);
- t2 = this.sourceUrl;
- t1.toString;
- t3 = new H.CodeUnits(t1);
- t4 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
- sourceFile = new Y.SourceFile(t2, t4, new Uint32Array(H._ensureNativeList(t3.toList$0(t3))));
- sourceFile.SourceFile$decoded$2$url(t3, t2);
- throw H.wrapException(E.StringScannerException$(message, sourceFile.span$2(position, position + $length), t1));
- }
- };
- A.AsciiGlyphSet.prototype = {
- glyphOrAscii$2: function(glyph, alternative) {
- return alternative;
- },
- get$horizontalLine: function() {
- return "-";
- },
- get$verticalLine: function() {
- return "|";
- },
- get$topLeftCorner: function() {
- return ",";
- },
- get$bottomLeftCorner: function() {
- return "'";
- },
- get$cross: function() {
- return "+";
- },
- get$upEnd: function() {
- return "'";
- },
- get$downEnd: function() {
- return ",";
- },
- get$horizontalLineBold: function() {
- return "=";
- }
- };
- K.UnicodeGlyphSet.prototype = {
- glyphOrAscii$2: function(glyph, alternative) {
- return glyph;
- },
- get$horizontalLine: function() {
- return "\u2500";
- },
- get$verticalLine: function() {
- return "\u2502";
- },
- get$topLeftCorner: function() {
- return "\u250c";
- },
- get$bottomLeftCorner: function() {
- return "\u2514";
- },
- get$cross: function() {
- return "\u253c";
- },
- get$upEnd: function() {
- return "\u2575";
- },
- get$downEnd: function() {
- return "\u2577";
- },
- get$horizontalLineBold: function() {
- return "\u2501";
- }
- };
- S.Tuple2.prototype = {
- toString$0: function(_) {
- return "[" + H.S(this.item1) + ", " + H.S(this.item2) + "]";
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof S.Tuple2 && J.$eq$(other.item1, this.item1) && J.$eq$(other.item2, this.item2);
- },
- get$hashCode: function(_) {
- var t1 = J.get$hashCode$(this.item1),
- t2 = J.get$hashCode$(this.item2);
- return X._finish(X._combine(X._combine(0, C.JSInt_methods.get$hashCode(t1)), C.JSInt_methods.get$hashCode(t2)));
- }
- };
- S.Tuple3.prototype = {
- toString$0: function(_) {
- return "[" + H.S(this.item1) + ", " + this.item2.toString$0(0) + ", " + H.S(this.item3) + "]";
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof S.Tuple3 && other.item1 == this.item1 && other.item2.$eq(0, this.item2) && J.$eq$(other.item3, this.item3);
- },
- get$hashCode: function(_) {
- var t3,
- t1 = J.get$hashCode$(this.item1),
- t2 = this.item2;
- t2 = t2.get$hashCode(t2);
- t3 = J.get$hashCode$(this.item3);
- 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)));
- }
- };
- E.WatchEvent.prototype = {
- toString$0: function(_) {
- return H.S(this.type) + " " + H.S(this.path);
- },
- get$path: function(receiver) {
- return this.path;
- }
- };
- E.ChangeType.prototype = {
- toString$0: function(_) {
- return this._watch_event$_name;
- }
- };
- Z.Argument0.prototype = {
- toString$0: function(_) {
- var t1 = this.defaultValue,
- t2 = this.name;
- return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.ArgumentDeclaration0.prototype = {
- get$spanWithName: function() {
- var t3, t4,
- t1 = this.span,
- t2 = t1.file,
- text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
- i = Y.FileLocation$_(t2, t1._file$_start).offset - 1;
- while (true) {
- if (i > 0) {
- t3 = C.JSString_methods.codeUnitAt$1(text, i);
- t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
- } else
- t3 = false;
- if (!t3)
- break;
- --i;
- }
- t3 = C.JSString_methods.codeUnitAt$1(text, i);
- if (!(t3 === 95 || T.isAlphabetic1(t3) || t3 >= 128 || T.isDigit0(t3) || t3 === 45))
- return t1;
- --i;
- while (true) {
- if (i >= 0) {
- t3 = C.JSString_methods.codeUnitAt$1(text, i);
- if (t3 !== 95) {
- if (!(t3 >= 97 && t3 <= 122))
- t4 = t3 >= 65 && t3 <= 90;
- else
- t4 = true;
- t4 = t4 || t3 >= 128;
- } else
- t4 = true;
- if (!t4) {
- t4 = t3 >= 48 && t3 <= 57;
- t3 = t4 || t3 === 45;
- } else
- t3 = true;
- } else
- t3 = false;
- if (!t3)
- break;
- --i;
- }
- t3 = i + 1;
- t4 = C.JSString_methods.codeUnitAt$1(text, t3);
- if (!(t4 === 95 || T.isAlphabetic1(t4) || t4 >= 128))
- return t1;
- return B.SpanExtensions_trim0(t2.span$2(t3, Y.FileLocation$_(t2, t1._end).offset));
- },
- get$originalRestArgument: function() {
- var t1, text;
- if (this.restArgument == null)
- return null;
- t1 = this.span;
- text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
- 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, "."));
- },
- verify$2: function(positional, names) {
- var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
- _s10_ = "invocation",
- _s8_ = "argument";
- for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
- argument = t1[i];
- if (i < positional) {
- t4 = argument.name;
- if (t3.containsKey$1(t4))
- throw H.wrapException(E.SassScriptException$0("Argument " + H.S(_this._argument_declaration$_originalArgumentName$1(t4)) + " was passed both by position and by name."));
- } else {
- t4 = argument.name;
- if (t3.containsKey$1(t4))
- ++namedUsed;
- else if (argument.defaultValue == null)
- 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$.FileSpan, type$.String)));
- }
- }
- if (_this.restArgument != null)
- return;
- if (positional > t2) {
- t1 = "Only " + t2 + " ";
- 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$.FileSpan, type$.String)));
- }
- if (namedUsed < t3.get$length(t3)) {
- t2 = type$.String;
- unknownNames = P.LinkedHashSet_LinkedHashSet$of(names, t2);
- unknownNames.removeAll$1(new H.MappedListIterable(t1, new B.ArgumentDeclaration_verify_closure1(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")));
- 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$.Object), "or")) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
- }
- },
- _argument_declaration$_originalArgumentName$1: function($name) {
- var t1, t2, _i, argument, t3, t4, text, end;
- if ($name === this.restArgument)
- return this.get$originalRestArgument();
- for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- argument = t1[_i];
- if (argument.name === $name) {
- t1 = argument.defaultValue;
- t2 = argument.span;
- t3 = t2.file;
- t4 = t2._file$_start;
- t2 = t2._end;
- if (t1 == null) {
- t1 = t3._decodedChars;
- t1 = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
- } else {
- t1 = t3._decodedChars;
- text = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
- t1 = C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":"));
- end = B._lastNonWhitespace0(t1, false);
- t1 = end == null ? "" : C.JSString_methods.substring$2(t1, 0, end + 1);
- }
- return t1;
- }
- }
- throw H.wrapException(P.ArgumentError$('This declaration has no argument named "$' + $name + '".'));
- },
- matches$2: function(positional, names) {
- var t1, t2, t3, namedUsed, i, argument;
- for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
- argument = t1[i];
- if (i < positional) {
- if (t3.containsKey$1(argument.name))
- return false;
- } else if (t3.containsKey$1(argument.name))
- ++namedUsed;
- else if (argument.defaultValue == null)
- return false;
- }
- if (this.restArgument != null)
- return true;
- if (positional > t2)
- return false;
- if (namedUsed < t3.get$length(t3))
- return false;
- return true;
- },
- toString$0: function(_) {
- var t2, t3, _i,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(J.toString$0$(t2[_i]));
- t2 = this.restArgument;
- if (t2 != null)
- t1.push(t2 + "...");
- return C.JSArray_methods.join$1(t1, ", ");
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.ArgumentDeclaration_verify_closure1.prototype = {
- call$1: function(argument) {
- return argument.name;
- }
- };
- B.ArgumentDeclaration_verify_closure2.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- X.ArgumentInvocation0.prototype = {
- get$isEmpty: function(_) {
- var t1;
- if (this.positional.length === 0) {
- t1 = this.named;
- t1 = t1.get$isEmpty(t1) && this.rest == null;
- } else
- t1 = false;
- return t1;
- },
- toString$0: function(_) {
- var t2, t3, _i, t4, _this = this, t1 = [];
- for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i]);
- for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys()); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t1.push(H.S(t4) + ": " + H.S(t2.$index(0, t4)));
- }
- t2 = _this.rest;
- if (t2 != null)
- t1.push(t2.toString$0(0) + "...");
- t2 = _this.keywordRest;
- if (t2 != null)
- t1.push(t2.toString$0(0) + "...");
- return "(" + C.JSArray_methods.join$1(t1, ", ") + ")";
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- D.SassArgumentList0.prototype = {};
- B.AsyncCallable0.prototype = {};
- B.AsyncImporter0.prototype = {};
- S.AsyncBuiltInCallable0.prototype = {
- callbackFor$2: function(positional, names) {
- return new S.Tuple2(this._async_built_in0$_arguments, this._async_built_in0$_callback, type$.Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value_2);
- },
- $isAsyncCallable0: 1,
- get$name: function() {
- return this.name;
- }
- };
- S.AsyncBuiltInCallable$mixin_closure0.prototype = {
- call$1: function($arguments) {
- return this.$call$body$AsyncBuiltInCallable$mixin_closure0($arguments);
- },
- $call$body$AsyncBuiltInCallable$mixin_closure0: function($arguments) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- X._compileStylesheet_closure2.prototype = {
- call$1: function(url) {
- var t1, t2, _null = null;
- if (url === "")
- t1 = J.toString$0$(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));
- else {
- t1 = P.Uri_parse(url);
- t2 = this.importCache._async_import_cache0$_resultsCache.$index(0, t1);
- t2 = t2 == null ? _null : t2.get$sourceMapUrl();
- t1 = J.toString$0$(t2 == null ? t1 : t2);
- }
- return t1;
- }
- };
- X.CompileResult0.prototype = {};
- Q.AsyncEnvironment0.prototype = {
- closure$0: function() {
- var t5, t6, t7, _this = this,
- t1 = _this._async_environment0$_forwardedModules,
- t2 = _this._async_environment0$_forwardedModuleNodes,
- t3 = _this._async_environment0$_nestedForwardedModules,
- t4 = _this._async_environment0$_variables;
- t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
- t5 = _this._async_environment0$_variableNodes;
- if (t5 == null)
- t5 = null;
- else
- t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
- t6 = _this._async_environment0$_functions;
- t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
- t7 = _this._async_environment0$_mixins;
- t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
- 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);
- },
- addModule$3$namespace: function(module, nodeWithSpan, namespace) {
- var t1, t2, _this = this;
- if (namespace == null) {
- _this._async_environment0$_globalModules.add$1(0, module);
- _this._async_environment0$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
- _this._async_environment0$_allModules.push(module);
- for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._async_environment0$_variables).get$keys()); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (module.get$variables().containsKey$1(t2))
- throw H.wrapException(E.SassScriptException$0('This module and the new module both define a variable named "$' + H.S(t2) + '".'));
- }
- } else {
- t1 = _this._async_environment0$_modules;
- if (t1.containsKey$1(namespace))
- throw H.wrapException(E.MultiSpanSassScriptException$0("There's already a module with namespace \"" + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._async_environment0$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.FileSpan, type$.String)));
- t1.$indexSet(0, namespace, module);
- _this._async_environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
- _this._async_environment0$_allModules.push(module);
- }
- },
- forwardModule$2: function(module, rule) {
- var view, t1, t2, _this = this;
- if (_this._async_environment0$_forwardedModules == null)
- _this._async_environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_AsyncCallable_2);
- if (_this._async_environment0$_forwardedModuleNodes == null)
- _this._async_environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
- view = R.ForwardedModuleView_ifNecessary0(module, rule, type$.AsyncCallable_2);
- for (t1 = _this._async_environment0$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
- t2 = t1._collection$_current;
- _this._async_environment0$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
- _this._async_environment0$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
- _this._async_environment0$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
- }
- _this._async_environment0$_allModules.push(module);
- _this._async_environment0$_forwardedModules.add$1(0, view);
- _this._async_environment0$_forwardedModuleNodes.$indexSet(0, view, rule);
- },
- _async_environment0$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
- var larger, smaller, t1, t2, $name;
- if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
- larger = oldMembers;
- smaller = newMembers;
- } else {
- larger = newMembers;
- smaller = oldMembers;
- }
- for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- if (!larger.containsKey$1($name))
- continue;
- if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
- continue;
- if (t2)
- $name = "$" + H.S($name);
- 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$.FileSpan, type$.String)));
- }
- },
- importForwards$1: function(module) {
- var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
- t1 = module._async_environment0$_environment,
- forwarded = t1._async_environment0$_forwardedModules;
- if (forwarded == null)
- return;
- if (_this._async_environment0$_forwardedModules != null) {
- t2 = P.LinkedHashSet_LinkedHashSet(type$.Module_AsyncCallable_2);
- for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._async_environment0$_globalModules; t3.moveNext$0();) {
- t5 = t3._collection$_current;
- if (!_this._async_environment0$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
- t2.add$1(0, t5);
- }
- forwarded = t2;
- }
- if (_this._async_environment0$_forwardedModules == null)
- _this._async_environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_AsyncCallable_2);
- if (_this._async_environment0$_forwardedModuleNodes == null)
- _this._async_environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
- t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String>");
- t3 = t2._eval$1("Iterable.E");
- forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure3(), t2), t3);
- forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure4(), t2), t3);
- forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure5(), t2), t3);
- t2 = _this._async_environment0$_variables;
- t3 = t2.length;
- if (t3 === 1) {
- for (t3 = _this._async_environment0$_globalModules, t4 = t3.toList$0(0), t5 = t4.length, t6 = type$.AsyncCallable_2, t7 = _this._async_environment0$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
- module = t4[_i];
- shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
- if (shadowed != null) {
- t3.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view0$_inner;
- t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8) {
- t3.add$1(0, shadowed);
- t7.$indexSet(0, shadowed, t7.remove$1(0, module));
- }
- }
- }
- for (t4 = _this._async_environment0$_forwardedModules.toList$0(0), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
- module = t4[_i];
- shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
- if (shadowed != null) {
- _this._async_environment0$_forwardedModules.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view0$_inner;
- t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8) {
- _this._async_environment0$_forwardedModules.add$1(0, shadowed);
- t8 = _this._async_environment0$_forwardedModuleNodes;
- t8.$indexSet(0, shadowed, t8.remove$1(0, module));
- }
- }
- }
- t3.addAll$1(0, forwarded);
- t7.addAll$1(0, t1._async_environment0$_forwardedModuleNodes);
- _this._async_environment0$_forwardedModules.addAll$1(0, forwarded);
- _this._async_environment0$_forwardedModuleNodes.addAll$1(0, t1._async_environment0$_forwardedModuleNodes);
- } else {
- t1 = _this._async_environment0$_nestedForwardedModules;
- 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$.List_Module_AsyncCallable_2) : t1), forwarded);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment0$_variableNodes, t4 = t3 != null, t5 = _this._async_environment0$_variableIndices; t1.moveNext$0();) {
- t6 = t1._collection$_current;
- t5.remove$1(0, t6);
- J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
- if (t4)
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment0$_functionIndices, t3 = _this._async_environment0$_functions; t1.moveNext$0();) {
- t4 = t1._collection$_current;
- t2.remove$1(0, t4);
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment0$_mixinIndices, t3 = _this._async_environment0$_mixins; t1.moveNext$0();) {
- t4 = t1._collection$_current;
- t2.remove$1(0, t4);
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
- }
- },
- getVariable$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._async_environment0$_getModule$1(namespace).get$variables().$index(0, $name);
- if (_this._async_environment0$_lastVariableName === $name) {
- t1 = J.$index$asx(_this._async_environment0$_variables[_this._async_environment0$_lastVariableIndex], $name);
- return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
- }
- t1 = _this._async_environment0$_variableIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = index;
- t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
- return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
- }
- index = _this._async_environment0$_variableIndex$1($name);
- if (index == null)
- return _this._async_environment0$_getVariableFromGlobalModule$1($name);
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = index;
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
- return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
- },
- getVariable$1: function($name) {
- return this.getVariable$2$namespace($name, null);
- },
- _async_environment0$_getVariableFromGlobalModule$1: function($name) {
- return this._async_environment0$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment__getVariableFromGlobalModule_closure0($name));
- },
- getVariableNode$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._async_environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
- if (_this._async_environment0$_lastVariableName === $name) {
- t1 = J.$index$asx(_this._async_environment0$_variableNodes[_this._async_environment0$_lastVariableIndex], $name);
- return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- t1 = _this._async_environment0$_variableIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = index;
- t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
- return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- index = _this._async_environment0$_variableIndex$1($name);
- if (index == null)
- return _this._async_environment0$_getVariableNodeFromGlobalModule$1($name);
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = index;
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
- return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- },
- _async_environment0$_getVariableNodeFromGlobalModule$1: function($name) {
- var t1, value;
- for (t1 = this._async_environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
- value = t1._collection$_current.get$variableNodes().$index(0, $name);
- if (value != null)
- return value;
- }
- return null;
- },
- globalVariableExists$2$namespace: function($name, namespace) {
- if (namespace != null)
- return this._async_environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
- if (C.JSArray_methods.get$first(this._async_environment0$_variables).containsKey$1($name))
- return true;
- return this._async_environment0$_getVariableFromGlobalModule$1($name) != null;
- },
- globalVariableExists$1: function($name) {
- return this.globalVariableExists$2$namespace($name, null);
- },
- _async_environment0$_variableIndex$1: function($name) {
- var t1, i;
- for (t1 = this._async_environment0$_variables, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
- var t1, moduleWithName, t2, t3, index, _this = this;
- if (namespace != null) {
- _this._async_environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
- return;
- }
- if (global || _this._async_environment0$_variables.length === 1) {
- _this._async_environment0$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure2(_this, $name));
- t1 = _this._async_environment0$_variables;
- if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
- moduleWithName = _this._async_environment0$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment_setVariable_closure3($name));
- if (moduleWithName != null) {
- moduleWithName.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
- t1 = _this._async_environment0$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
- return;
- }
- if (_this._async_environment0$_nestedForwardedModules != null && !_this._async_environment0$_variableIndices.containsKey$1($name) && _this._async_environment0$_variableIndex$1($name) == null) {
- t1 = _this._async_environment0$_nestedForwardedModules;
- t1.toString;
- t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
- t1 = new H.ListIterator(t1, t1.get$length(t1));
- for (; t1.moveNext$0();)
- for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- if (t3.get$variables().containsKey$1($name)) {
- t3.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- }
- index = _this._async_environment0$_lastVariableName === $name ? _this._async_environment0$_lastVariableIndex : _this._async_environment0$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure4(_this, $name));
- if (!_this._async_environment0$_inSemiGlobalScope && index === 0) {
- index = _this._async_environment0$_variables.length - 1;
- _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
- }
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = index;
- J.$indexSet$ax(_this._async_environment0$_variables[index], $name, value);
- t1 = _this._async_environment0$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(t1[index], $name, nodeWithSpan);
- },
- setVariable$4$global: function($name, value, nodeWithSpan, global) {
- return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
- },
- setLocalVariable$3: function($name, value, nodeWithSpan) {
- var index, _this = this,
- t1 = _this._async_environment0$_variables,
- t2 = t1.length;
- _this._async_environment0$_lastVariableName = $name;
- index = _this._async_environment0$_lastVariableIndex = t2 - 1;
- _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
- J.$indexSet$ax(t1[index], $name, value);
- t1 = _this._async_environment0$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(t1[index], $name, nodeWithSpan);
- },
- getFunction$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null) {
- t1 = _this._async_environment0$_getModule$1(namespace);
- return t1.get$functions(t1).$index(0, $name);
- }
- t1 = _this._async_environment0$_functionIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
- return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
- }
- index = _this._async_environment0$_functionIndex$1($name);
- if (index == null)
- return _this._async_environment0$_getFunctionFromGlobalModule$1($name);
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
- return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
- },
- _async_environment0$_getFunctionFromGlobalModule$1: function($name) {
- return this._async_environment0$_fromOneModule$3($name, "function", new Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0($name));
- },
- _async_environment0$_functionIndex$1: function($name) {
- var t1, i;
- for (t1 = this._async_environment0$_functions, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- getMixin$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._async_environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
- t1 = _this._async_environment0$_mixinIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
- return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
- }
- index = _this._async_environment0$_mixinIndex$1($name);
- if (index == null)
- return _this._async_environment0$_getMixinFromGlobalModule$1($name);
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
- return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
- },
- _async_environment0$_getMixinFromGlobalModule$1: function($name) {
- return this._async_environment0$_fromOneModule$3($name, "mixin", new Q.AsyncEnvironment__getMixinFromGlobalModule_closure0($name));
- },
- _async_environment0$_mixinIndex$1: function($name) {
- var t1, i;
- for (t1 = this._async_environment0$_mixins, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- withContent$2: function($content, callback) {
- return this.withContent$body$AsyncEnvironment0($content, callback);
- },
- withContent$body$AsyncEnvironment0: function($content, callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, oldContent;
- var $async$withContent$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldContent = $async$self._async_environment0$_content;
- $async$self._async_environment0$_content = $content;
- $async$goto = 2;
- return P._asyncAwait(callback.call$0(), $async$withContent$2);
- case 2:
- // returning from await.
- $async$self._async_environment0$_content = oldContent;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$withContent$2, $async$completer);
- },
- asMixin$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, oldInMixin;
- var $async$asMixin$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldInMixin = $async$self._async_environment0$_inMixin;
- $async$self._async_environment0$_inMixin = true;
- $async$goto = 2;
- return P._asyncAwait(callback.call$0(), $async$asMixin$1);
- case 2:
- // returning from await.
- $async$self._async_environment0$_inMixin = oldInMixin;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$asMixin$1, $async$completer);
- },
- scope$1$3$semiGlobal$when: function(callback, semiGlobal, when, $T) {
- return this.scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $T);
- },
- scope$1$1: function(callback, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
- },
- scope$1$2$when: function(callback, when, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
- },
- scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
- return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
- },
- scope$body$AsyncEnvironment0: function(callback, semiGlobal, when, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5;
- var $async$scope$1$3$semiGlobal$when = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = !when ? 3 : 4;
- break;
- case 3:
- // then
- wasInSemiGlobalScope = $async$self._async_environment0$_inSemiGlobalScope;
- $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
- $async$handler = 5;
- $async$goto = 8;
- return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
- case 8:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- $async$next = [1];
- // goto finally
- $async$goto = 6;
- break;
- $async$next.push(7);
- // goto finally
- $async$goto = 6;
- break;
- case 5:
- // uncaught
- $async$next = [2];
- case 6:
- // finally
- $async$handler = 2;
- $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 7:
- // after finally
- case 4:
- // join
- semiGlobal = semiGlobal && $async$self._async_environment0$_inSemiGlobalScope;
- wasInSemiGlobalScope0 = $async$self._async_environment0$_inSemiGlobalScope;
- $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
- t1 = $async$self._async_environment0$_variables;
- t2 = type$.String;
- C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
- t3 = $async$self._async_environment0$_variableNodes;
- if (t3 != null)
- C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
- t3 = $async$self._async_environment0$_functions;
- t4 = type$.AsyncCallable_2;
- C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
- t5 = $async$self._async_environment0$_mixins;
- C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
- t4 = $async$self._async_environment0$_nestedForwardedModules;
- if (t4 != null)
- C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable_2));
- $async$handler = 9;
- $async$goto = 12;
- return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
- case 12:
- // returning from await.
- t2 = $async$result;
- $async$returnValue = t2;
- $async$next = [1];
- // goto finally
- $async$goto = 10;
- break;
- $async$next.push(11);
- // goto finally
- $async$goto = 10;
- break;
- case 9:
- // uncaught
- $async$next = [2];
- case 10:
- // finally
- $async$handler = 2;
- $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope0;
- $async$self._async_environment0$_lastVariableIndex = $async$self._async_environment0$_lastVariableName = null;
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = $async$self._async_environment0$_variableIndices; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- t2.remove$1(0, $name);
- }
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = $async$self._async_environment0$_functionIndices; t1.moveNext$0();) {
- name0 = t1.get$current(t1);
- t2.remove$1(0, name0);
- }
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = $async$self._async_environment0$_mixinIndices; t1.moveNext$0();) {
- name1 = t1.get$current(t1);
- t2.remove$1(0, name1);
- }
- t1 = $async$self._async_environment0$_nestedForwardedModules;
- if (t1 != null)
- C.JSArray_methods.removeLast$0(t1);
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 11:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
- },
- toImplicitConfiguration$0: function() {
- var t2, t3, t4, t5, i, values, nodes, t6, t7,
- t1 = type$.String,
- configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2);
- for (t2 = this._async_environment0$_variables, t3 = this._async_environment0$_variableNodes, t4 = t3 == null, t5 = type$.AstNode_2, i = 0; i < t2.length; ++i) {
- values = t2[i];
- nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
- for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
- t7 = t6.get$current(t6);
- configuration.$indexSet(0, t7, new Z.ConfiguredValue0(values.$index(0, t7), null, nodes.$index(0, t7)));
- }
- }
- return new A.Configuration0(configuration, null, true);
- },
- _async_environment0$_getModule$1: function(namespace) {
- var module = this._async_environment0$_modules.$index(0, namespace);
- if (module != null)
- return module;
- throw H.wrapException(E.SassScriptException$0('There is no module with the namespace "' + namespace + '".'));
- },
- _async_environment0$_fromOneModule$1$3: function($name, type, callback) {
- var t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
- t1 = this._async_environment0$_nestedForwardedModules;
- if (t1 != null)
- 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();)
- for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- value = callback.call$1(t2.__internal$_current);
- if (value != null)
- return value;
- }
- for (t1 = this._async_environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.AsyncCallable_2, value = null, identity = null; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- valueInModule = callback.call$1(t3);
- if (valueInModule == null)
- continue;
- identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
- if (identityFromModule.$eq(0, identity))
- continue;
- if (value != null) {
- t1 = "This " + type + " is available from multiple global modules.";
- t2 = type + " use";
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- for (t4 = this._async_environment0$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- if (callback.call$1(t5.key) != null)
- t3.$indexSet(0, t5.value.get$span(), "includes " + type);
- }
- throw H.wrapException(E.MultiSpanSassScriptException$0(t1, t2, t3));
- }
- identity = identityFromModule;
- value = valueInModule;
- }
- return value;
- },
- _async_environment0$_fromOneModule$3: function($name, type, callback) {
- return this._async_environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
- }
- };
- Q.AsyncEnvironment_importForwards_closure3.prototype = {
- call$1: function(module) {
- return module.get$variables().get$keys();
- }
- };
- Q.AsyncEnvironment_importForwards_closure4.prototype = {
- call$1: function(module) {
- return module.get$functions(module).get$keys();
- }
- };
- Q.AsyncEnvironment_importForwards_closure5.prototype = {
- call$1: function(module) {
- return module.get$mixins().get$keys();
- }
- };
- Q.AsyncEnvironment_importForwards_closure6.prototype = {
- call$1: function(_) {
- return H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable_2);
- },
- $signature: 101
- };
- Q.AsyncEnvironment__getVariableFromGlobalModule_closure0.prototype = {
- call$1: function(module) {
- return module.get$variables().$index(0, this.name);
- }
- };
- Q.AsyncEnvironment_setVariable_closure2.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._async_environment0$_lastVariableName = this.name;
- return t1._async_environment0$_lastVariableIndex = 0;
- },
- $signature: 8
- };
- Q.AsyncEnvironment_setVariable_closure3.prototype = {
- call$1: function(module) {
- return module.get$variables().containsKey$1(this.name) ? module : null;
- }
- };
- Q.AsyncEnvironment_setVariable_closure4.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._async_environment0$_variableIndex$1(this.name);
- return t2 == null ? t1._async_environment0$_variables.length - 1 : t2;
- },
- $signature: 8
- };
- Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0.prototype = {
- call$1: function(module) {
- return module.get$functions(module).$index(0, this.name);
- }
- };
- Q.AsyncEnvironment__getMixinFromGlobalModule_closure0.prototype = {
- call$1: function(module) {
- return module.get$mixins().$index(0, this.name);
- }
- };
- Q._EnvironmentModule2.prototype = {
- get$url: function() {
- return this.css.get$span().file.url;
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- var t1, t2,
- module = this._async_environment0$_modulesByVariable.$index(0, $name);
- if (module != null) {
- module.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- t1 = this._async_environment0$_environment;
- t2 = t1._async_environment0$_variables;
- if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
- throw H.wrapException(E.SassScriptException$0("Undefined variable."));
- J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
- t1 = t1._async_environment0$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
- return;
- },
- variableIdentity$1: function($name) {
- var module = this._async_environment0$_modulesByVariable.$index(0, $name);
- return module == null ? this : module.variableIdentity$1($name);
- },
- cloneCss$0: function() {
- var newCssAndExtender, _this = this,
- t1 = _this.css;
- if (J.get$isEmpty$asx(t1.get$children()))
- return _this;
- newCssAndExtender = V.cloneCssStylesheet0(t1, _this.extender);
- 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);
- },
- toString$0: function(_) {
- var t1 = this.css;
- if (t1.get$span().file.url == null)
- t1 = "<unknown url>";
- else {
- t1 = t1.get$span();
- t1 = $.$get$context().prettyUri$1(t1.file.url);
- }
- return t1;
- },
- $isModule0: 1,
- get$upstream: function() {
- return this.upstream;
- },
- get$variables: function() {
- return this.variables;
- },
- get$variableNodes: function() {
- return this.variableNodes;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- },
- get$extender: function() {
- return this.extender;
- },
- get$css: function(receiver) {
- return this.css;
- },
- get$transitivelyContainsCss: function() {
- return this.transitivelyContainsCss;
- },
- get$transitivelyContainsExtensions: function() {
- return this.transitivelyContainsExtensions;
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure17.prototype = {
- call$1: function(module) {
- return module.get$variables();
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure18.prototype = {
- call$1: function(module) {
- return module.get$variableNodes();
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure19.prototype = {
- call$1: function(module) {
- return module.get$functions(module);
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure20.prototype = {
- call$1: function(module) {
- return module.get$mixins();
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure21.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsCss();
- }
- };
- Q._EnvironmentModule__EnvironmentModule_closure22.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsExtensions();
- }
- };
- E._EvaluateVisitor2.prototype = {
- _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap2: function(functions, importCache, logger, nodeImporter, sourceMap) {
- var t6, t7, t8, t9, t10, t11, t12, metaFunctions, metaMixins, _i, metaModule, module, $function, _this = this,
- _s9_ = "sass:meta",
- t1 = type$.String,
- t2 = type$.VariableDeclaration_2,
- t3 = S.SpanScanner$("@function global-variable-exists($name, $module: null) {", _s9_),
- t4 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2,
- t5 = type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2;
- 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);
- t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
- 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);
- t7 = S.SpanScanner$("@function function-exists($name, $module: null) {", _s9_);
- 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);
- t8 = S.SpanScanner$("@function mixin-exists($name, $module: null) {", _s9_);
- 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);
- t9 = S.SpanScanner$("@function content-exists() {", _s9_);
- 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);
- t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
- 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);
- t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
- 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);
- t12 = S.SpanScanner$("@function get-function($name, $css: false, $module: null) {", _s9_);
- 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);
- t5 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
- 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))];
- t1 = type$.JSArray_AsyncBuiltInCallable_2;
- metaMixins = H.setRuntimeTypeInfo([S.AsyncBuiltInCallable$mixin0("load-css", "$module, $with: null", new E._EvaluateVisitor_closure38(_this), _s9_)], t1);
- t1 = H.setRuntimeTypeInfo([], t1);
- for (t2 = $.$get$global6(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (_i = 0; _i < 9; ++_i)
- t1.push(metaFunctions[_i]);
- metaModule = Q.BuiltInModule$0("meta", t1, metaMixins, null, type$.AsyncBuiltInCallable_2);
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInModule_AsyncBuiltInCallable_2);
- for (t2 = $.$get$coreModules0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- t1.push(metaModule);
- t2 = t1.length;
- t3 = _this._async_evaluate0$_builtInModules;
- _i = 0;
- for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- module = t1[_i];
- t3.$indexSet(0, module.url, module);
- }
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_AsyncCallable);
- for (t2 = functions.length, _i = 0; _i < functions.length; functions.length === t2 || (0, H.throwConcurrentModificationError)(functions), ++_i)
- t1.push(functions[_i]);
- for (t2 = $.$get$globalFunctions0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (_i = 0; _i < 9; ++_i)
- t1.push(metaFunctions[_i]);
- for (t2 = t1.length, t3 = _this._async_evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- $function = t1[_i];
- t4 = $function.get$name();
- t4.toString;
- t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
- }
- },
- run$2: function(_, importer, node) {
- return this.run$body$_EvaluateVisitor0(_, importer, node);
- },
- run$body$_EvaluateVisitor0: function(_, importer, node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.EvaluateResult_2),
- $async$returnValue, $async$self = this;
- var $async$run$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = $async$self._async_evaluate0$_withWarnCallback$1$1(new E._EvaluateVisitor_run_closure2($async$self, node, importer), type$.FutureOr_EvaluateResult_2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$run$2, $async$completer);
- },
- _async_evaluate0$_withWarnCallback$1$1: function(callback, $T) {
- return N.withWarnCallback0(new E._EvaluateVisitor__withWarnCallback_closure2(this), callback, $T);
- },
- _async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- return this._loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
- },
- _async_evaluate0$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
- return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
- },
- _async_evaluate0$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
- return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
- },
- _loadModule$body$_EvaluateVisitor0: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t1, builtInModule;
- var $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- builtInModule = $async$self._async_evaluate0$_builtInModules.$index(0, url);
- if (builtInModule != null) {
- if (configuration != null && !configuration.isImplicit) {
- t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
- throw H.wrapException($async$self._async_evaluate0$_exception$2(t1, nodeWithSpan.get$span()));
- }
- callback.call$1(builtInModule);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3(stackFrame, nodeWithSpan, new E._EvaluateVisitor__loadModule_closure2($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
- case 3:
- // returning from await.
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
- },
- _async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- return this._execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
- },
- _async_evaluate0$_execute$2: function(importer, stylesheet) {
- return this._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
- },
- _execute$body$_EvaluateVisitor0: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Module_AsyncCallable_2),
- $async$returnValue, $async$self = this, message, existingNode, environment, t3, extender, module, t1, url, t2, alreadyLoaded;
- var $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- url = stylesheet.span.file.url;
- t2 = $async$self._async_evaluate0$_modules;
- alreadyLoaded = t2.$index(0, url);
- if (alreadyLoaded != null) {
- t1 = configuration == null;
- if (!(t1 ? $async$self._async_evaluate0$_configuration : configuration).isImplicit) {
- message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + ' was already loaded, so it can\'t be configured using "with".' : 'This module was already loaded, so it can\'t be configured using "with".';
- existingNode = $async$self._async_evaluate0$_moduleNodes.$index(0, url);
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (existingNode != null)
- t2.$indexSet(0, existingNode.get$span(), "original load");
- if (t1)
- t2.$indexSet(0, $async$self._async_evaluate0$_configuration.nodeWithSpan.get$span(), "configuration");
- throw H.wrapException(t2.get$isEmpty(t2) ? $async$self._async_evaluate0$_exception$1(message) : $async$self._async_evaluate0$_multiSpanException$3(message, "new load", t2));
- }
- $async$returnValue = alreadyLoaded;
- // goto return
- $async$goto = 1;
- break;
- }
- environment = Q.AsyncEnvironment$0($async$self._async_evaluate0$_sourceMap);
- t1.css = null;
- t3 = type$.SimpleSelector_2;
- extender = new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Set_ModifiableCssValue_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Map_ComplexSelector_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.List_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList_2, type$.List_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), C.ExtendMode_normal0);
- $async$goto = 3;
- 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);
- case 3:
- // returning from await.
- module = Q._EnvironmentModule__EnvironmentModule2(environment, t1.css, extender, environment._async_environment0$_forwardedModules);
- t2.$indexSet(0, url, module);
- $async$self._async_evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
- $async$returnValue = module;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
- },
- _async_evaluate0$_addOutOfOrderImports$0: function() {
- var t1, statements, _this = this;
- if (_this._async_evaluate0$_outOfOrderImports == null)
- return _this._async_evaluate0$_root.children;
- t1 = new Array(J.get$length$asx(_this._async_evaluate0$_root.children._collection$_source) + _this._async_evaluate0$_outOfOrderImports.length);
- t1.fixed$length = Array;
- statements = new G.FixedLengthListBuilder0(H.setRuntimeTypeInfo(t1, type$.JSArray_ModifiableCssNode_2), type$.FixedLengthListBuilder_ModifiableCssNode_2);
- statements.addRange$3(_this._async_evaluate0$_root.children, 0, _this._async_evaluate0$_endOfImports);
- statements.addAll$1(0, _this._async_evaluate0$_outOfOrderImports);
- statements.addRange$2(_this._async_evaluate0$_root.children, _this._async_evaluate0$_endOfImports);
- return statements.build$0();
- },
- _async_evaluate0$_combineCss$2$clone: function(root, clone) {
- var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, statements, index, _this = this;
- if (!C.JSArray_methods.any$1(root.get$upstream(), new E._EvaluateVisitor__combineCss_closure8())) {
- selectors = root.get$extender().get$simpleSelectors();
- unsatisfiedExtension = B.firstOrNull0(root.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__combineCss_closure9(selectors)));
- if (unsatisfiedExtension != null)
- _this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
- return root.get$css(root);
- }
- sortedModules = _this._async_evaluate0$_topologicalModules$1(root);
- if (clone)
- sortedModules = new H.MappedListIterable(sortedModules, new E._EvaluateVisitor__combineCss_closure10(), sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<AsyncCallable0>>")).toList$0(0);
- _this._async_evaluate0$_extendModules$1(sortedModules);
- t1 = type$.JSArray_CssNode_2;
- imports = H.setRuntimeTypeInfo([], t1);
- css = H.setRuntimeTypeInfo([], t1);
- for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- statements = t2.get$css(t2).get$children();
- index = _this._async_evaluate0$_indexAfterImports$1(statements);
- t2 = J.getInterceptor$ax(statements);
- C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
- C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
- }
- return new V.CssStylesheet0(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_CssNode_2), root.get$css(root).get$span());
- },
- _async_evaluate0$_combineCss$1: function(root) {
- return this._async_evaluate0$_combineCss$2$clone(root, false);
- },
- _async_evaluate0$_extendModules$1: function(sortedModules) {
- var t1, t2, originalSelectors, extenders, t3, t4, _i,
- downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_Extender_2),
- unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
- for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
- unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__extendModules_closure5(originalSelectors)));
- extenders = downstreamExtenders.$index(0, t2.get$url());
- if (extenders != null)
- t2.get$extender().addExtensions$1(extenders);
- t3 = t2.get$extender();
- if (t3.get$isEmpty(t3))
- continue;
- for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
- J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new E._EvaluateVisitor__extendModules_closure6()), t2.get$extender());
- unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
- }
- if (unsatisfiedExtensions._collection$_length !== 0)
- this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
- },
- _async_evaluate0$_throwForUnsatisfiedExtension$1: function(extension) {
- throw H.wrapException(E.SassException$0('The target selector was not found.\nUse "@extend ' + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
- },
- _async_evaluate0$_topologicalModules$1: function(root) {
- var t1 = type$.Module_AsyncCallable_2,
- sorted = Q.QueueList$(null, t1);
- new E._EvaluateVisitor__topologicalModules_visitModule2(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
- return sorted;
- },
- _async_evaluate0$_indexAfterImports$1: function(statements) {
- var t1, t2, t3, lastImport, i, statement;
- for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment_2, t3 = type$.CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
- statement = t1.$index(statements, i);
- if (t3._is(statement))
- lastImport = i;
- else if (!t2._is(statement))
- break;
- }
- return lastImport + 1;
- },
- visitStylesheet$1: function(node) {
- return this.visitStylesheet$body$_EvaluateVisitor0(node);
- },
- visitStylesheet$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, _i;
- var $async$visitStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.children, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
- case 6:
- // returning from await.
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitStylesheet$1, $async$completer);
- },
- visitAtRootRule$1: function(node) {
- return this.visitAtRootRule$body$_EvaluateVisitor0(node);
- },
- visitAtRootRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, root, innerCopy, outerCopy, copy, t1, query, $parent, included, $async$temp1, $async$temp2;
- var $async$visitAtRootRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.query;
- $async$goto = t1 != null ? 3 : 5;
- break;
- case 3:
- // then
- $async$temp1 = t1;
- $async$temp2 = E;
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(t1, true), $async$visitAtRootRule$1);
- case 6:
- // returning from await.
- $async$result = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure8($async$self, $async$result));
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$result = C.AtRootQuery_UsS0;
- case 4:
- // join
- query = $async$result;
- $parent = $async$self._async_evaluate0$_parent;
- included = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssParentNode_2);
- for (t1 = type$.CssStylesheet_2; !t1._is($parent);) {
- if (!query.excludes$1($parent))
- included.push($parent);
- $parent = $parent._node2$_parent;
- }
- root = $async$self._async_evaluate0$_trimIncluded$1(included);
- $async$goto = root == $async$self._async_evaluate0$_parent ? 7 : 8;
- break;
- case 7:
- // then
- $async$goto = 9;
- 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);
- case 9:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 8:
- // join
- innerCopy = included.length === 0 ? null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
- for (t1 = H.SubListIterable$(included, 1, null, type$.ModifiableCssParentNode_2), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
- copy = t1.__internal$_current.copyWithoutChildren$0();
- copy.addChild$1(outerCopy);
- }
- if (outerCopy != null)
- root.addChild$1(outerCopy);
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitAtRootRule$1, $async$completer);
- },
- _async_evaluate0$_trimIncluded$1: function(nodes) {
- var $parent, innermostContiguous, i, t2, root,
- t1 = nodes.length;
- if (t1 === 0)
- return this._async_evaluate0$_root;
- $parent = this._async_evaluate0$_parent;
- for (innermostContiguous = null, i = 0; i < t1; ++i) {
- for (; $parent != nodes[i]; innermostContiguous = null)
- $parent = $parent._node2$_parent;
- if (innermostContiguous == null)
- innermostContiguous = i;
- $parent = $parent._node2$_parent;
- }
- t2 = this._async_evaluate0$_root;
- if ($parent != t2)
- return t2;
- root = nodes[innermostContiguous];
- C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
- return root;
- },
- _async_evaluate0$_scopeForAtRoot$4: function(node, newParent, query, included) {
- var _this = this,
- scope = new E._EvaluateVisitor__scopeForAtRoot_closure17(_this, newParent, node),
- t1 = query._at_root_query0$_all,
- t2 = t1 || query._at_root_query0$_rule,
- t3 = query.include;
- if (t2 !== t3)
- scope = new E._EvaluateVisitor__scopeForAtRoot_closure18(_this, scope);
- if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
- scope = new E._EvaluateVisitor__scopeForAtRoot_closure19(_this, scope);
- if (_this._async_evaluate0$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
- scope = new E._EvaluateVisitor__scopeForAtRoot_closure20(_this, scope);
- return _this._async_evaluate0$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new E._EvaluateVisitor__scopeForAtRoot_closure21()) ? new E._EvaluateVisitor__scopeForAtRoot_closure22(_this, scope) : scope;
- },
- visitContentBlock$1: function(node) {
- return H.throwExpression(P.UnsupportedError$("Evaluation handles @include and its content block together."));
- },
- visitContentRule$1: function(node) {
- return this.visitContentRule$body$_EvaluateVisitor0(node);
- },
- visitContentRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, $content;
- var $async$visitContentRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $content = $async$self._async_evaluate0$_environment._async_environment0$_content;
- if ($content == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4(node.$arguments, $content, node, new E._EvaluateVisitor_visitContentRule_closure2($async$self, $content)), $async$visitContentRule$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitContentRule$1, $async$completer);
- },
- visitDebugRule$1: function(node) {
- return this.visitDebugRule$body$_EvaluateVisitor0(node);
- },
- visitDebugRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, value, t1;
- var $async$visitDebugRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
- case 3:
- // returning from await.
- value = $async$result;
- t1 = value instanceof D.SassString0 ? value.text : J.toString$0$(value);
- $async$self._async_evaluate0$_logger.debug$2(t1, node.span);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitDebugRule$1, $async$completer);
- },
- visitDeclaration$1: function(node) {
- return this.visitDeclaration$body$_EvaluateVisitor0(node);
- },
- visitDeclaration$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, $name, t1, cssValue, t2, oldDeclarationName, $async$temp1;
- var $async$visitDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (!($async$self._async_evaluate0$_styleRule != null && !$async$self._async_evaluate0$_atRootExcludingStyleRule) && !$async$self._async_evaluate0$_inUnknownAtRule && !$async$self._async_evaluate0$_inKeyframes)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Declarations may only be used within style rules.", node.span));
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(node.name, true), $async$visitDeclaration$1);
- case 3:
- // returning from await.
- $name = $async$result;
- t1 = $async$self._async_evaluate0$_declarationName;
- if (t1 != null)
- $name = new F.CssValue0(t1 + "-" + H.S($name.get$value($name)), $name.get$span(), type$.CssValue_String_2);
- t1 = node.value;
- $async$goto = t1 == null ? 4 : 6;
- break;
- case 4:
- // then
- $async$result = null;
- // goto join
- $async$goto = 5;
- break;
- case 6:
- // else
- $async$temp1 = F;
- $async$goto = 7;
- return P._asyncAwait(t1.accept$1($async$self), $async$visitDeclaration$1);
- case 7:
- // returning from await.
- $async$result = new $async$temp1.CssValue0($async$result, t1.get$span(), type$.CssValue_Value_2);
- case 5:
- // join
- cssValue = $async$result;
- if (cssValue != null) {
- t2 = cssValue.value;
- t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
- } else
- t2 = false;
- if (t2) {
- t2 = $async$self._async_evaluate0$_parent;
- t1 = $async$self._async_evaluate0$_expressionNode$1(t1);
- t1 = t1 == null ? null : t1.get$span();
- t2.addChild$1(L.ModifiableCssDeclaration$0($name, cssValue, node.span, t1));
- } else if (J.startsWith$1$s($name.get$value($name), "--"))
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Custom property values may not be empty.", t1.get$span()));
- $async$goto = node.children != null ? 8 : 9;
- break;
- case 8:
- // then
- oldDeclarationName = $async$self._async_evaluate0$_declarationName;
- $async$self._async_evaluate0$_declarationName = $name.get$value($name);
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- $async$self._async_evaluate0$_declarationName = oldDeclarationName;
- case 9:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitDeclaration$1, $async$completer);
- },
- visitEachRule$1: function(node) {
- return this.visitEachRule$body$_EvaluateVisitor0(node);
- },
- visitEachRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
- var $async$visitEachRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.list;
- $async$goto = 3;
- return P._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
- case 3:
- // returning from await.
- list = $async$result;
- nodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t1);
- setVariables = node.variables.length === 1 ? new E._EvaluateVisitor_visitEachRule_closure8($async$self, node, nodeWithSpan) : new E._EvaluateVisitor_visitEachRule_closure9($async$self, node, nodeWithSpan);
- $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitEachRule_closure10($async$self, list, setVariables, node), true, type$.Value_2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitEachRule$1, $async$completer);
- },
- _async_evaluate0$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
- var i,
- list = value.get$asList(),
- t1 = variables.length,
- minLength = Math.min(t1, list.length);
- for (i = 0; i < minLength; ++i)
- this._async_evaluate0$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
- for (i = minLength; i < t1; ++i)
- this._async_evaluate0$_environment.setLocalVariable$3(variables[i], C.C_SassNull, nodeWithSpan);
- },
- visitErrorRule$1: function(node) {
- return this.visitErrorRule$body$_EvaluateVisitor0(node);
- },
- visitErrorRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$self = this, $async$temp1, $async$temp2;
- var $async$visitErrorRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = H;
- $async$temp2 = J;
- $async$goto = 2;
- return P._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
- case 2:
- // returning from await.
- throw $async$temp1.wrapException($async$self._async_evaluate0$_exception$2($async$temp2.toString$0$($async$result), node.span));
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitErrorRule$1, $async$completer);
- },
- visitExtendRule$1: function(node) {
- return this.visitExtendRule$body$_EvaluateVisitor0(node);
- },
- visitExtendRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, targetText, t1, t2, t3, _i, t4;
- var $async$visitExtendRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (!($async$self._async_evaluate0$_styleRule != null && !$async$self._async_evaluate0$_atRootExcludingStyleRule) || $async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("@extend may only be used within style rules.", node.span));
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
- case 3:
- // returning from await.
- targetText = $async$result;
- for (t1 = $async$self._async_evaluate0$_adjustParseError$2(targetText, new E._EvaluateVisitor_visitExtendRule_closure2($async$self, targetText)).components, t2 = t1.length, t3 = type$.CompoundSelector_2, _i = 0; _i < t2; ++_i) {
- t4 = t1[_i].components;
- if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector0))
- throw H.wrapException(E.SassFormatException$0("complex selectors may not be extended.", targetText.get$span()));
- t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
- if (t4.length !== 1)
- throw H.wrapException(E.SassFormatException$0("compound selectors may no longer be extended.\nConsider `@extend " + C.JSArray_methods.join$1(t4, ", ") + "` instead.\nSee http://bit.ly/ExtendCompound for details.\n", targetText.get$span()));
- $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);
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitExtendRule$1, $async$completer);
- },
- visitAtRule$1: function(node) {
- return this.visitAtRule$body$_EvaluateVisitor0(node);
- },
- visitAtRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule;
- var $async$visitAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("At-rules may not be used within nested declarations.", node.span));
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1(node.name), $async$visitAtRule$1);
- case 3:
- // returning from await.
- $name = $async$result;
- t1 = node.value;
- $async$goto = t1 == null ? 4 : 6;
- break;
- case 4:
- // then
- $async$result = null;
- // goto join
- $async$goto = 5;
- break;
- case 6:
- // else
- $async$goto = 7;
- return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitAtRule$1);
- case 7:
- // returning from await.
- case 5:
- // join
- value = $async$result;
- if (node.children == null) {
- t1 = $async$self._async_evaluate0$_parent;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- t1.addChild$1(new U.ModifiableCssAtRule0($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
- wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
- if (B.unvendor0($name.get$value($name)) === "keyframes")
- $async$self._async_evaluate0$_inKeyframes = true;
- else
- $async$self._async_evaluate0$_inUnknownAtRule = true;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- $async$goto = 8;
- 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_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitAtRule_closure5($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitAtRule_closure6(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitAtRule$1);
- case 8:
- // returning from await.
- $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitAtRule$1, $async$completer);
- },
- visitForRule$1: function(node) {
- return this.visitForRule$body$_EvaluateVisitor0(node);
- },
- visitForRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
- var $async$visitForRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- t2 = node.from;
- t3 = type$.SassNumber_2;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t2, new E._EvaluateVisitor_visitForRule_closure14($async$self, node), t3), $async$visitForRule$1);
- case 3:
- // returning from await.
- fromNumber = $async$result;
- t4 = node.to;
- $async$goto = 4;
- return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t4, new E._EvaluateVisitor_visitForRule_closure15($async$self, node), t3), $async$visitForRule$1);
- case 4:
- // returning from await.
- toNumber = $async$result;
- from = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitForRule_closure16(fromNumber, toNumber));
- to = t1.to = $async$self._async_evaluate0$_addExceptionSpan$2(t4, new E._EvaluateVisitor_visitForRule_closure17(toNumber));
- direction = from > to ? -1 : 1;
- if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitForRule_closure18(t1, $async$self, node, from, direction), true, type$.Value_2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitForRule$1, $async$completer);
- },
- visitForwardRule$1: function(node) {
- return this.visitForwardRule$body$_EvaluateVisitor0(node);
- },
- visitForwardRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, oldConfiguration, adjustedConfiguration, t1, t2, t3;
- var $async$visitForwardRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldConfiguration = $async$self._async_evaluate0$_configuration;
- adjustedConfiguration = oldConfiguration.throughForward$1(node);
- t1 = node.configuration;
- t2 = t1.length;
- t3 = node.url;
- $async$goto = t2 !== 0 ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
- case 6:
- // returning from await.
- newConfiguration = $async$result;
- $async$goto = 7;
- 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);
- case 7:
- // returning from await.
- t3 = type$.String;
- t4 = P.LinkedHashSet_LinkedHashSet(t3);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (!variable.isGuarded)
- t4.add$1(0, variable.name);
- }
- $async$self._async_evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
- t3 = P.LinkedHashSet_LinkedHashSet(t3);
- for (_i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i].name);
- $async$self._async_evaluate0$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$self._async_evaluate0$_configuration = adjustedConfiguration;
- $async$goto = 8;
- return P._asyncAwait($async$self._async_evaluate0$_loadModule$4(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure6($async$self, node)), $async$visitForwardRule$1);
- case 8:
- // returning from await.
- $async$self._async_evaluate0$_configuration = oldConfiguration;
- case 4:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitForwardRule$1, $async$completer);
- },
- _async_evaluate0$_addForwardConfiguration$2: function(configuration, node) {
- return this._addForwardConfiguration$body$_EvaluateVisitor0(configuration, node);
- },
- _addForwardConfiguration$body$_EvaluateVisitor0: function(configuration, node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Configuration_2),
- $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
- var $async$_async_evaluate0$_addForwardConfiguration$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = configuration._configuration$_values;
- newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
- t2 = node.configuration, t3 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- variable = t2[_i];
- if (variable.isGuarded) {
- t4 = variable.name;
- t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
- if (t5 != null && !J.$eq$(t5.value, C.C_SassNull)) {
- newValues.$indexSet(0, t4, t5);
- // goto for update
- $async$goto = 4;
- break;
- }
- }
- t4 = variable.name;
- t5 = variable.expression;
- $async$temp1 = newValues;
- $async$temp2 = t4;
- $async$temp3 = Z;
- $async$goto = 6;
- return P._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate0$_addForwardConfiguration$2);
- case 6:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate0$_expressionNode$1(t5)));
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = new A.Configuration0(newValues, node, false);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_addForwardConfiguration$2, $async$completer);
- },
- _async_evaluate0$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
- var t1, t2, t3, _i, $name;
- 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) {
- $name = t2[_i];
- if (except.contains$1(0, $name))
- continue;
- if (!downstream._configuration$_values.containsKey$1($name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- },
- _async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
- configuration._configuration$_values.forEach$1(0, new E._EvaluateVisitor__assertConfigurationIsEmpty_closure2(this, only, nameInError));
- },
- _async_evaluate0$_assertConfigurationIsEmpty$1: function(configuration) {
- return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
- },
- _async_evaluate0$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
- return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
- },
- _async_evaluate0$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
- return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
- },
- visitFunctionRule$1: function(node) {
- return this.visitFunctionRule$body$_EvaluateVisitor0(node);
- },
- visitFunctionRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
- var $async$visitFunctionRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_environment;
- t2 = t1.closure$0();
- t3 = t1._async_environment0$_functions;
- index = t3.length - 1;
- t4 = node.name;
- t1._async_environment0$_functionIndices.$indexSet(0, t4, index);
- J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_AsyncEnvironment_2));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitFunctionRule$1, $async$completer);
- },
- visitIfRule$1: function(node) {
- return this.visitIfRule$body$_EvaluateVisitor0(node);
- },
- visitIfRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
- var $async$visitIfRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- _box_0.clause = node.lastClause;
- t1 = node.clauses, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- clauseToCheck = t1[_i];
- $async$goto = 6;
- return P._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
- case 6:
- // returning from await.
- if ($async$result.get$isTruthy()) {
- _box_0.clause = clauseToCheck;
- // goto after for
- $async$goto = 5;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t1 = _box_0.clause;
- if (t1 == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 7;
- 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$.Value_2), $async$visitIfRule$1);
- case 7:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitIfRule$1, $async$completer);
- },
- visitImportRule$1: function(node) {
- return this.visitImportRule$body$_EvaluateVisitor0(node);
- },
- visitImportRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
- var $async$visitImportRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport_2, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $import = t1[_i];
- $async$goto = $import instanceof B.DynamicImport0 ? 6 : 8;
- break;
- case 6:
- // then
- $async$goto = 9;
- return P._asyncAwait($async$self._async_evaluate0$_visitDynamicImport$1($import), $async$visitImportRule$1);
- case 9:
- // returning from await.
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = 10;
- return P._asyncAwait($async$self._async_evaluate0$_visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
- case 10:
- // returning from await.
- case 7:
- // join
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitImportRule$1, $async$completer);
- },
- _async_evaluate0$_visitDynamicImport$1: function($import) {
- return this._async_evaluate0$_withStackFrame$1$3("@import", $import, new E._EvaluateVisitor__visitDynamicImport_closure2(this, $import), type$.void);
- },
- _async_evaluate0$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
- return this._loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport);
- },
- _async_evaluate0$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
- return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
- },
- _async_evaluate0$_loadStylesheet$3$forImport: function(url, span, forImport) {
- return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
- },
- _loadStylesheet$body$_EvaluateVisitor0: function(url, span, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_AsyncImporter_Stylesheet_2),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, stylesheet, tuple, error, error0, message, t1, t2, t3, exception, $async$exception;
- var $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$self._async_evaluate0$_importSpan = span;
- $async$goto = $async$self._async_evaluate0$_nodeImporter != null ? 7 : 9;
- break;
- case 7:
- // then
- $async$goto = 10;
- return P._asyncAwait($async$self._async_evaluate0$_importLikeNode$2(url, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
- case 10:
- // returning from await.
- stylesheet = $async$result;
- if (stylesheet != null) {
- $async$returnValue = new S.Tuple2(null, stylesheet, type$.Tuple2_AsyncImporter_Stylesheet_2);
- $async$next = [1];
- // goto finally
- $async$goto = 5;
- break;
- }
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- t1 = P.Uri_parse(url);
- t2 = $async$self._async_evaluate0$_importer;
- if (baseUrl == null) {
- t3 = $async$self._async_evaluate0$_stylesheet;
- t3 = t3 == null ? null : t3.span;
- t3 = t3 == null ? null : t3.file.url;
- } else
- t3 = baseUrl;
- $async$goto = 11;
- return P._asyncAwait($async$self._async_evaluate0$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
- case 11:
- // returning from await.
- tuple = $async$result;
- if (tuple != null) {
- $async$returnValue = tuple;
- $async$next = [1];
- // goto finally
- $async$goto = 5;
- break;
- }
- case 8:
- // join
- if (C.JSString_methods.startsWith$1(url, "package:") && true)
- throw H.wrapException('"package:" URLs aren\'t supported on this platform.');
- else
- throw H.wrapException("Can't find stylesheet to import.");
- $async$next.push(6);
- // goto finally
- $async$goto = 5;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (t1 instanceof E.SassException0) {
- error = t1;
- t1 = $async$self._async_evaluate0$_exception$2(error._span_exception$_message, error.get$span());
- throw H.wrapException(t1);
- } else {
- error0 = t1;
- message = null;
- try {
- message = H._asStringNullable(J.get$message$x(error0));
- } catch (exception) {
- H.unwrapException($async$exception);
- message = J.toString$0$(error0);
- }
- t1 = $async$self._async_evaluate0$_exception$1(message);
- throw H.wrapException(t1);
- }
- $async$next.push(6);
- // goto finally
- $async$goto = 5;
- break;
- case 3:
- // uncaught
- $async$next = [2];
- case 5:
- // finally
- $async$handler = 2;
- $async$self._async_evaluate0$_importSpan = null;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 6:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport, $async$completer);
- },
- _async_evaluate0$_importLikeNode$2: function(originalUrl, forImport) {
- return this._importLikeNode$body$_EvaluateVisitor(originalUrl, forImport);
- },
- _importLikeNode$body$_EvaluateVisitor: function(originalUrl, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet),
- $async$returnValue, $async$self = this, contents, url, t1, result;
- var $async$_async_evaluate0$_importLikeNode$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_stylesheet.span;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_nodeImporter.loadAsync$3(originalUrl, t1.file.url, forImport), $async$_async_evaluate0$_importLikeNode$2);
- case 3:
- // returning from await.
- result = $async$result;
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- contents = result.item1;
- url = result.item2;
- t1 = J.getInterceptor$s(url).startsWith$1(url, "file:") ? $.$get$context().style.pathFromUri$1(M._parseUri(url)) : url;
- $async$self._async_evaluate0$_includedFiles.add$1(0, t1);
- t1 = C.JSString_methods.startsWith$1(url, "file") ? M.Syntax_forPath0(url) : C.Syntax_SCSS0;
- $async$returnValue = V.Stylesheet_Stylesheet$parse0(contents, t1, $async$self._async_evaluate0$_logger, url);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_importLikeNode$2, $async$completer);
- },
- _async_evaluate0$_visitStaticImport$1: function($import) {
- return this._visitStaticImport$body$_EvaluateVisitor0($import);
- },
- _visitStaticImport$body$_EvaluateVisitor0: function($import) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, resolvedSupports, t1, mediaQuery, node, t2, url, supports, $async$temp1, $async$temp2;
- var $async$_async_evaluate0$_visitStaticImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1($import.url), $async$_async_evaluate0$_visitStaticImport$1);
- case 3:
- // returning from await.
- url = $async$result;
- supports = $import.supports;
- $async$goto = supports instanceof L.SupportsDeclaration0 ? 4 : 6;
- break;
- case 4:
- // then
- $async$temp1 = H;
- $async$goto = 7;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(supports.name), $async$_async_evaluate0$_visitStaticImport$1);
- case 7:
- // returning from await.
- $async$temp1 = $async$temp1.S($async$result) + ": ";
- $async$temp2 = H;
- $async$goto = 8;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(supports.value), $async$_async_evaluate0$_visitStaticImport$1);
- case 8:
- // returning from await.
- resolvedSupports = $async$temp1 + $async$temp2.S($async$result);
- // goto join
- $async$goto = 5;
- break;
- case 6:
- // else
- $async$goto = supports == null ? 9 : 11;
- break;
- case 9:
- // then
- $async$result = null;
- // goto join
- $async$goto = 10;
- break;
- case 11:
- // else
- $async$goto = 12;
- return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(supports), $async$_async_evaluate0$_visitStaticImport$1);
- case 12:
- // returning from await.
- case 10:
- // join
- resolvedSupports = $async$result;
- case 5:
- // join
- t1 = $import.media;
- $async$goto = t1 == null ? 13 : 15;
- break;
- case 13:
- // then
- $async$result = null;
- // goto join
- $async$goto = 14;
- break;
- case 15:
- // else
- $async$goto = 16;
- return P._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(t1), $async$_async_evaluate0$_visitStaticImport$1);
- case 16:
- // returning from await.
- case 14:
- // join
- mediaQuery = $async$result;
- t1 = $import.span;
- node = F.ModifiableCssImport$0(url, t1, mediaQuery, resolvedSupports == null ? null : new F.CssValue0("supports(" + resolvedSupports + ")", supports.get$span(), type$.CssValue_String_2));
- t1 = $async$self._async_evaluate0$_parent;
- t2 = $async$self._async_evaluate0$_root;
- if (t1 != t2)
- t1.addChild$1(node);
- else if ($async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
- $async$self._async_evaluate0$_root.addChild$1(node);
- $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
- } else {
- t1 = $async$self._async_evaluate0$_outOfOrderImports;
- (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t1).push(node);
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_visitStaticImport$1, $async$completer);
- },
- visitIncludeRule$1: function(node) {
- return this.visitIncludeRule$body$_EvaluateVisitor0(node);
- },
- visitIncludeRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, nodeWithSpan, t1, t2, t3, contentCallable, mixin;
- var $async$visitIncludeRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- mixin = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitIncludeRule_closure8($async$self, node));
- if (mixin == null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined mixin.", node.span));
- nodeWithSpan = new B._FakeAstNode0(new E._EvaluateVisitor_visitIncludeRule_closure9(node));
- $async$goto = type$.AsyncBuiltInCallable_2._is(mixin) ? 3 : 5;
- break;
- case 3:
- // then
- if (node.content != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Mixin doesn't accept a content block.", node.span));
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
- case 6:
- // returning from await.
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t1 = type$.UserDefinedCallable_AsyncEnvironment_2;
- $async$goto = t1._is(mixin) ? 7 : 9;
- break;
- case 7:
- // then
- t2 = node.content;
- t3 = t2 == null;
- if (!t3 && !type$.MixinRule_2._as(mixin.declaration).hasContent)
- 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$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
- contentCallable = t3 ? null : new E.UserDefinedCallable0(t2, $async$self._async_evaluate0$_environment.closure$0(), t1);
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- case 8:
- // join
- case 4:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitIncludeRule$1, $async$completer);
- },
- visitMixinRule$1: function(node) {
- return this.visitMixinRule$body$_EvaluateVisitor0(node);
- },
- visitMixinRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
- var $async$visitMixinRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_environment;
- t2 = t1.closure$0();
- t3 = t1._async_environment0$_mixins;
- index = t3.length - 1;
- t4 = node.name;
- t1._async_environment0$_mixinIndices.$indexSet(0, t4, index);
- J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_AsyncEnvironment_2));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitMixinRule$1, $async$completer);
- },
- visitLoudComment$1: function(node) {
- return this.visitLoudComment$body$_EvaluateVisitor0(node);
- },
- visitLoudComment$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
- var $async$visitLoudComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_inFunction) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = $async$self._async_evaluate0$_parent;
- t2 = $async$self._async_evaluate0$_root;
- if (t1 == t2 && $async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
- $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
- t1 = node.text;
- $async$temp1 = $async$self._async_evaluate0$_parent;
- $async$temp2 = R;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$visitLoudComment$1);
- case 3:
- // returning from await.
- $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment0($async$result, t1.span));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitLoudComment$1, $async$completer);
- },
- visitMediaRule$1: function(node) {
- return this.visitMediaRule$body$_EvaluateVisitor0(node);
- },
- visitMediaRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, queries, t1, mergedQueries;
- var $async$visitMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Media rules may not be used within nested declarations.", node.span));
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
- case 3:
- // returning from await.
- queries = $async$result;
- t1 = $async$self._async_evaluate0$_mediaQueries;
- mergedQueries = t1 == null ? null : $async$self._async_evaluate0$_mergeMediaQueries$2(t1, queries);
- t1 = mergedQueries == null;
- if (!t1 && mergedQueries.length === 0) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = t1 ? queries : mergedQueries;
- $async$goto = 4;
- 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$.ModifiableCssMediaRule_2, type$.Null), $async$visitMediaRule$1);
- case 4:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitMediaRule$1, $async$completer);
- },
- _async_evaluate0$_visitMediaQueries$1: function(interpolation) {
- return this._visitMediaQueries$body$_EvaluateVisitor0(interpolation);
- },
- _visitMediaQueries$body$_EvaluateVisitor0: function(interpolation) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.List_CssMediaQuery_2),
- $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
- var $async$_async_evaluate0$_visitMediaQueries$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = interpolation;
- $async$temp2 = E;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate0$_visitMediaQueries$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure2($async$self, $async$result));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_visitMediaQueries$1, $async$completer);
- },
- _async_evaluate0$_mergeMediaQueries$2: function(queries1, queries2) {
- var t1, t2, t3, t4, t5, result,
- queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery_2);
- for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
- result = t4.merge$1(t5.get$current(t5));
- if (result === C._SingletonCssMediaQueryMergeResult_empty0)
- continue;
- if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable0)
- return null;
- queries.push(t3._as(result).query);
- }
- }
- return queries;
- },
- visitReturnRule$1: function(node) {
- return node.expression.accept$1(this);
- },
- visitSilentComment$1: function(node) {
- return this.visitSilentComment$body$_EvaluateVisitor0(node);
- },
- visitSilentComment$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue;
- var $async$visitSilentComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitSilentComment$1, $async$completer);
- },
- visitStyleRule$1: function(node) {
- return this.visitStyleRule$body$_EvaluateVisitor0(node);
- },
- visitStyleRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, t1;
- var $async$visitStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- if ($async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Style rules may not be used within nested declarations.", node.span));
- t2 = node.selector;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t2, true, true), $async$visitStyleRule$1);
- case 3:
- // returning from await.
- selectorText = $async$result;
- $async$goto = $async$self._async_evaluate0$_inKeyframes ? 4 : 5;
- break;
- case 4:
- // then
- t1 = P.List_List$unmodifiable($async$self._async_evaluate0$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure20($async$self, selectorText)), type$.String);
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(new F.CssValue0(t1, t2.span, type$.CssValue_List_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3), new E._EvaluateVisitor_visitStyleRule_closure21($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure22(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitStyleRule$1);
- case 6:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // join
- t1.parsedSelector = $async$self._async_evaluate0$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure23($async$self, selectorText));
- parsedSelector = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitStyleRule_closure24(t1, $async$self));
- t1.parsedSelector = parsedSelector;
- rule = X.ModifiableCssStyleRule$0($async$self._async_evaluate0$_extender.addSelector$3(parsedSelector, t2.span, $async$self._async_evaluate0$_mediaQueries), node.span, t1.parsedSelector);
- oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
- $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
- $async$goto = 7;
- 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$.ModifiableCssStyleRule_2, type$.Null), $async$visitStyleRule$1);
- case 7:
- // returning from await.
- $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- if (!($async$self._async_evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
- t1 = $async$self._async_evaluate0$_parent.children;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- t1 = $async$self._async_evaluate0$_parent.children;
- t1.get$last(t1).isGroupEnd = true;
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitStyleRule$1, $async$completer);
- },
- visitSupportsRule$1: function(node) {
- return this.visitSupportsRule$body$_EvaluateVisitor0(node);
- },
- visitSupportsRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3;
- var $async$visitSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Supports rules may not be used within nested declarations.", node.span));
- t1 = node.condition;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
- case 3:
- // returning from await.
- t2 = $async$result;
- t1 = t1.get$span();
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- $async$goto = 4;
- return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(new F.CssValue0(t2, t1, type$.CssValue_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3), new E._EvaluateVisitor_visitSupportsRule_closure5($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitSupportsRule$1);
- case 4:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitSupportsRule$1, $async$completer);
- },
- _async_evaluate0$_visitSupportsCondition$1: function(condition) {
- return this._visitSupportsCondition$body$_EvaluateVisitor0(condition);
- },
- _visitSupportsCondition$body$_EvaluateVisitor0: function(condition) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
- var $async$_async_evaluate0$_visitSupportsCondition$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = condition instanceof U.SupportsOperation0 ? 3 : 5;
- break;
- case 3:
- // then
- t1 = condition.left;
- t2 = condition.operator;
- $async$temp1 = H;
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate0$_parenthesize$2(t1, t2), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 6:
- // returning from await.
- $async$temp1 = $async$temp1.S($async$result) + " " + t2 + " ";
- $async$temp2 = H;
- $async$goto = 7;
- return P._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.right, t2), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 7:
- // returning from await.
- $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = condition instanceof M.SupportsNegation0 ? 8 : 10;
- break;
- case 8:
- // then
- $async$temp1 = H;
- $async$goto = 11;
- return P._asyncAwait($async$self._async_evaluate0$_parenthesize$1(condition.condition), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 11:
- // returning from await.
- $async$returnValue = "not " + $async$temp1.S($async$result);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 9;
- break;
- case 10:
- // else
- $async$goto = condition instanceof X.SupportsInterpolation0 ? 12 : 14;
- break;
- case 12:
- // then
- $async$goto = 15;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 15:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 13;
- break;
- case 14:
- // else
- $async$goto = condition instanceof L.SupportsDeclaration0 ? 16 : 18;
- break;
- case 16:
- // then
- $async$temp1 = H;
- $async$goto = 19;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 19:
- // returning from await.
- $async$temp1 = "(" + $async$temp1.S($async$result) + ": ";
- $async$temp2 = H;
- $async$goto = 20;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.value), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 20:
- // returning from await.
- $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 17;
- break;
- case 18:
- // else
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 17:
- // join
- case 13:
- // join
- case 9:
- // join
- case 4:
- // join
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_visitSupportsCondition$1, $async$completer);
- },
- _async_evaluate0$_parenthesize$2: function(condition, operator) {
- return this._parenthesize$body$_EvaluateVisitor0(condition, operator);
- },
- _async_evaluate0$_parenthesize$1: function(condition) {
- return this._async_evaluate0$_parenthesize$2(condition, null);
- },
- _parenthesize$body$_EvaluateVisitor0: function(condition, operator) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, $async$temp1;
- var $async$_async_evaluate0$_parenthesize$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (!(condition instanceof M.SupportsNegation0))
- if (condition instanceof U.SupportsOperation0)
- t1 = operator == null || operator !== condition.operator;
- else
- t1 = false;
- else
- t1 = true;
- $async$goto = t1 ? 3 : 5;
- break;
- case 3:
- // then
- $async$temp1 = H;
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
- case 6:
- // returning from await.
- $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = 7;
- return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
- case 7:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_parenthesize$2, $async$completer);
- },
- visitVariableDeclaration$1: function(node) {
- return this.visitVariableDeclaration$body$_EvaluateVisitor0(node);
- },
- visitVariableDeclaration$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, value, t2, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitVariableDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (node.isGuarded) {
- if (node.namespace == null && $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1) {
- t1 = $async$self._async_evaluate0$_configuration._configuration$_values;
- t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
- if (t1 != null) {
- $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure8($async$self, node, t1));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- value = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure9($async$self, node));
- if (value != null && !value.$eq(0, C.C_SassNull)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- if (node.isGlobal && !$async$self._async_evaluate0$_environment.globalVariableExists$1(node.name)) {
- t1 = $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1 ? "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." : "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `" + B.declarationName0(node.span) + ": null` at the root of the\nstylesheet.";
- t2 = node.span;
- $async$self._async_evaluate0$_logger.warn$4$deprecation$span$trace(t1, true, t2, $async$self._async_evaluate0$_stackTrace$1(t2));
- }
- $async$temp1 = node;
- $async$temp2 = E;
- $async$temp3 = node;
- $async$goto = 3;
- return P._asyncAwait(node.expression.accept$1($async$self), $async$visitVariableDeclaration$1);
- case 3:
- // returning from await.
- $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure10($async$self, $async$temp3, $async$result.withoutSlash$0()));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
- },
- visitUseRule$1: function(node) {
- return this.visitUseRule$body$_EvaluateVisitor0(node);
- },
- visitUseRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, configuration, t3, _i, variable, t4, t5, t1, t2, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitUseRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.configuration;
- t2 = t1.length;
- $async$goto = t2 === 0 ? 3 : 5;
- break;
- case 3:
- // then
- configuration = C.Configuration_Map_empty_null_true0;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
- _i = 0;
- case 6:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- variable = t1[_i];
- t4 = variable.name;
- t5 = variable.expression;
- $async$temp1 = t3;
- $async$temp2 = t4;
- $async$temp3 = Z;
- $async$goto = 9;
- return P._asyncAwait(t5.accept$1($async$self), $async$visitUseRule$1);
- case 9:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate0$_expressionNode$1(t5)));
- case 7:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- configuration = new A.Configuration0(t3, node, false);
- case 4:
- // join
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(configuration);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitUseRule$1, $async$completer);
- },
- visitWarnRule$1: function(node) {
- return this.visitWarnRule$body$_EvaluateVisitor0(node);
- },
- visitWarnRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, value, t1;
- var $async$visitWarnRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitWarnRule_closure2($async$self, node), type$.Value_2), $async$visitWarnRule$1);
- case 3:
- // returning from await.
- value = $async$result;
- t1 = value instanceof D.SassString0 ? value.text : $async$self._async_evaluate0$_serialize$2(value, node.expression);
- $async$self._async_evaluate0$_logger.warn$2$trace(t1, $async$self._async_evaluate0$_stackTrace$1(node.span));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitWarnRule$1, $async$completer);
- },
- visitWhileRule$1: function(node) {
- return this._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitWhileRule_closure2(this, node), true, node.hasDeclarations, type$.Value_2);
- },
- visitBinaryOperationExpression$1: function(node) {
- return this._async_evaluate0$_addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitBinaryOperationExpression_closure2(this, node), type$.Value_2);
- },
- visitValueExpression$1: function(node) {
- return this.visitValueExpression$body$_EvaluateVisitor0(node);
- },
- visitValueExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue;
- var $async$visitValueExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitValueExpression$1, $async$completer);
- },
- visitVariableExpression$1: function(node) {
- return this.visitVariableExpression$body$_EvaluateVisitor0(node);
- },
- visitVariableExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, result;
- var $async$visitVariableExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- result = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableExpression_closure2($async$self, node));
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined variable.", node.span));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitVariableExpression$1, $async$completer);
- },
- visitUnaryOperationExpression$1: function(node) {
- return this.visitUnaryOperationExpression$body$_EvaluateVisitor0(node);
- },
- visitUnaryOperationExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, operand, t1;
- var $async$visitUnaryOperationExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- $async$outer:
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
- case 3:
- // returning from await.
- operand = $async$result;
- t1 = node.operator;
- switch (t1) {
- case C.UnaryOperator_j2w0:
- $async$returnValue = operand.unaryPlus$0();
- // goto return
- $async$goto = 1;
- break $async$outer;
- case C.UnaryOperator_U4G0:
- $async$returnValue = operand.unaryMinus$0();
- // goto return
- $async$goto = 1;
- break $async$outer;
- case C.UnaryOperator_zDx0:
- operand.toString;
- $async$returnValue = new D.SassString0("/" + N.serializeValue(operand, false, true), false);
- // goto return
- $async$goto = 1;
- break $async$outer;
- case C.UnaryOperator_not_not0:
- $async$returnValue = operand.unaryNot$0();
- // goto return
- $async$goto = 1;
- break $async$outer;
- default:
- throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
- }
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
- },
- visitBooleanExpression$1: function(node) {
- return this.visitBooleanExpression$body$_EvaluateVisitor0(node);
- },
- visitBooleanExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassBoolean_2),
- $async$returnValue;
- var $async$visitBooleanExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value ? C.SassBoolean_true : C.SassBoolean_false;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
- },
- visitIfExpression$1: function(node) {
- return this.visitIfExpression$body$_EvaluateVisitor0(node);
- },
- visitIfExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, condition, ifTrue, ifFalse, pair, positional, named, t1;
- var $async$visitIfExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
- case 3:
- // returning from await.
- pair = $async$result;
- positional = pair.item1;
- named = pair.item2;
- t1 = J.getInterceptor$asx(positional);
- $async$self._async_evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
- condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
- ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
- ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
- $async$goto = 5;
- return P._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
- case 5:
- // returning from await.
- $async$goto = 4;
- return P._asyncAwait(($async$result.get$isTruthy() ? ifTrue : ifFalse).accept$1($async$self), $async$visitIfExpression$1);
- case 4:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitIfExpression$1, $async$completer);
- },
- visitNullExpression$1: function(node) {
- return this.visitNullExpression$body$_EvaluateVisitor0(node);
- },
- visitNullExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassNull_2),
- $async$returnValue;
- var $async$visitNullExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = C.C_SassNull;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitNullExpression$1, $async$completer);
- },
- visitNumberExpression$1: function(node) {
- return this.visitNumberExpression$body$_EvaluateVisitor0(node);
- },
- visitNumberExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber_2),
- $async$returnValue, t1;
- var $async$visitNumberExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.unit;
- t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_String);
- t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
- $async$returnValue = new T.SassNumber0(node.value, t1, C.List_empty, null);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitNumberExpression$1, $async$completer);
- },
- visitParenthesizedExpression$1: function(node) {
- return node.expression.accept$1(this);
- },
- visitColorExpression$1: function(node) {
- return this.visitColorExpression$body$_EvaluateVisitor0(node);
- },
- visitColorExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassColor_2),
- $async$returnValue;
- var $async$visitColorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitColorExpression$1, $async$completer);
- },
- visitListExpression$1: function(node) {
- return this.visitListExpression$body$_EvaluateVisitor0(node);
- },
- visitListExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassList_2),
- $async$returnValue, $async$self = this, $async$temp1;
- var $async$visitListExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = D;
- $async$goto = 3;
- return P._asyncAwait(B.mapAsync0(node.contents, new E._EvaluateVisitor_visitListExpression_closure2($async$self), type$.Expression_2, type$.Value_2), $async$visitListExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$temp1.SassList$0($async$result, node.separator, node.hasBrackets);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitListExpression$1, $async$completer);
- },
- visitMapExpression$1: function(node) {
- return this.visitMapExpression$body$_EvaluateVisitor0(node);
- },
- visitMapExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassMap_2),
- $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, t1, map, keyNodes;
- var $async$visitMapExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.Value_2;
- map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
- t2 = node.pairs, t3 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- pair = t2[_i];
- t4 = pair.item1;
- $async$goto = 6;
- return P._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
- case 6:
- // returning from await.
- keyValue = $async$result;
- $async$goto = 7;
- return P._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
- case 7:
- // returning from await.
- valueValue = $async$result;
- if (map.containsKey$1(keyValue))
- 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$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(t4.get$span())));
- map.$indexSet(0, keyValue, valueValue);
- keyNodes.$indexSet(0, keyValue, t4);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitMapExpression$1, $async$completer);
- },
- visitFunctionExpression$1: function(node) {
- return this.visitFunctionExpression$body$_EvaluateVisitor0(node);
- },
- visitFunctionExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, oldInFunction, result, t1, t2, plainName, $async$temp1, $async$temp2;
- var $async$visitFunctionExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- t2 = node.name;
- plainName = t2.get$asPlain();
- t1.$function = null;
- $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;
- break;
- case 3:
- // then
- if (node.namespace != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined function.", node.span));
- $async$temp1 = t1;
- $async$temp2 = L;
- $async$goto = 5;
- return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t2), $async$visitFunctionExpression$1);
- case 5:
- // returning from await.
- $async$temp1.$function = new $async$temp2.PlainCssCallable0($async$result);
- case 4:
- // join
- oldInFunction = $async$self._async_evaluate0$_inFunction;
- $async$self._async_evaluate0$_inFunction = true;
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure6(t1, $async$self, node), type$.Value_2), $async$visitFunctionExpression$1);
- case 6:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_inFunction = oldInFunction;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
- },
- _async_evaluate0$_getFunction$2$namespace: function($name, namespace) {
- var local = this._async_evaluate0$_environment.getFunction$2$namespace($name, namespace);
- if (local != null || namespace != null)
- return local;
- return this._async_evaluate0$_builtInFunctions.$index(0, $name);
- },
- _async_evaluate0$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
- return this._runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run);
- },
- _runUserDefinedCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan, run) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, evaluated, t1, $name;
- var $async$_async_evaluate0$_runUserDefinedCallable$4 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runUserDefinedCallable$4);
- case 3:
- // returning from await.
- evaluated = $async$result;
- t1 = callable.declaration.name;
- $name = t1 == null ? "@content" : t1 + "()";
- $async$goto = 4;
- return P._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3($name, nodeWithSpan, new E._EvaluateVisitor__runUserDefinedCallable_closure2($async$self, callable, evaluated, nodeWithSpan, run), type$.Value_2), $async$_async_evaluate0$_runUserDefinedCallable$4);
- case 4:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_runUserDefinedCallable$4, $async$completer);
- },
- _async_evaluate0$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
- return this._runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
- },
- _runFunctionCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, result, t1, t2, t3, first, _i, argument, rest, $async$temp1;
- var $async$_async_evaluate0$_runFunctionCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = type$.AsyncBuiltInCallable_2._is(callable) ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return P._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate0$_runFunctionCallable$3);
- case 6:
- // returning from await.
- result = $async$result;
- if (result == null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Custom functions may not return Dart's null.", nodeWithSpan.get$span()));
- $async$returnValue = result.withoutSlash$0();
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = type$.UserDefinedCallable_AsyncEnvironment_2._is(callable) ? 7 : 9;
- break;
- case 7:
- // then
- $async$goto = 10;
- 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);
- case 10:
- // returning from await.
- $async$returnValue = $async$result.withoutSlash$0();
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- $async$goto = callable instanceof L.PlainCssCallable0 ? 11 : 13;
- break;
- case 11:
- // then
- t1 = $arguments.named;
- if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Plain CSS functions don't support keyword arguments.", nodeWithSpan.get$span()));
- t1 = H.S(callable.name) + "(";
- t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
- case 14:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 16;
- break;
- }
- argument = t2[_i];
- if (first)
- first = false;
- else
- t1 += ", ";
- $async$temp1 = H;
- $async$goto = 17;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(argument), $async$_async_evaluate0$_runFunctionCallable$3);
- case 17:
- // returning from await.
- t1 += $async$temp1.S($async$result);
- case 15:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 14;
- break;
- case 16:
- // after for
- t2 = $arguments.rest;
- $async$goto = 18;
- return P._asyncAwait(t2 == null ? null : t2.accept$1($async$self), $async$_async_evaluate0$_runFunctionCallable$3);
- case 18:
- // returning from await.
- rest = $async$result;
- if (rest != null) {
- if (!first)
- t1 += ", ";
- t2 = t1 + H.S($async$self._async_evaluate0$_serialize$2(rest, t2));
- t1 = t2;
- }
- t1 += H.Primitives_stringFromCharCode(41);
- $async$returnValue = new D.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 12;
- break;
- case 13:
- // else
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 12:
- // join
- case 8:
- // join
- case 4:
- // join
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_runFunctionCallable$3, $async$completer);
- },
- _async_evaluate0$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
- return this._runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
- },
- _runBuiltInCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $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;
- var $async$_async_evaluate0$_runBuiltInCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_evaluateArguments$2$trackSpans($arguments, false), $async$_async_evaluate0$_runBuiltInCallable$3);
- case 3:
- // returning from await.
- evaluated = $async$result;
- oldCallableNode = $async$self._async_evaluate0$_callableNode;
- $async$self._async_evaluate0$_callableNode = nodeWithSpan;
- namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_String);
- tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
- overload = tuple.item1;
- callback = tuple.item2;
- $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__runBuiltInCallable_closure5(overload, evaluated, namedSet));
- declaredArguments = overload.$arguments;
- i = evaluated.positional.length, t1 = declaredArguments.length;
- case 4:
- // for condition
- if (!(i < t1)) {
- // goto after for
- $async$goto = 6;
- break;
- }
- argument = declaredArguments[i];
- t2 = evaluated.positional;
- t3 = evaluated.named.remove$1(0, argument.name);
- $async$goto = t3 == null ? 7 : 8;
- break;
- case 7:
- // then
- t3 = argument.defaultValue;
- $async$goto = 9;
- return P._asyncAwait(t3 == null ? null : t3.accept$1($async$self), $async$_async_evaluate0$_runBuiltInCallable$3);
- case 9:
- // returning from await.
- t3 = $async$result;
- case 8:
- // join
- t2.push(t3);
- case 5:
- // for update
- ++i;
- // goto for condition
- $async$goto = 4;
- break;
- case 6:
- // after for
- if (overload.restArgument != null) {
- if (evaluated.positional.length > t1) {
- rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
- C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
- } else
- rest = C.List_empty16;
- t1 = evaluated.named;
- t2 = evaluated.separator === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : evaluated.separator;
- t3 = type$.Value_2;
- argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t1, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
- argumentList.SassList$3$brackets0(rest, t2, false);
- evaluated.positional.push(argumentList);
- } else
- argumentList = null;
- result = null;
- $async$handler = 11;
- $async$goto = 14;
- return P._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate0$_runBuiltInCallable$3);
- case 14:
- // returning from await.
- result = $async$result;
- $async$handler = 2;
- // goto after finally
- $async$goto = 13;
- break;
- case 11:
- // catch
- $async$handler = 10;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (type$.SassRuntimeException_2._is(t1))
- throw $async$exception;
- else if (t1 instanceof E.MultiSpanSassScriptException0) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.MultiSpanSassException0) {
- error0 = t1;
- 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())));
- } else {
- error1 = t1;
- message = null;
- try {
- message = H._asStringNullable(J.get$message$x(error1));
- } catch (exception) {
- H.unwrapException($async$exception);
- message = J.toString$0$(error1);
- }
- throw H.wrapException($async$self._async_evaluate0$_exception$2(message, nodeWithSpan.get$span()));
- }
- // goto after finally
- $async$goto = 13;
- break;
- case 10:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 13:
- // after finally
- $async$self._async_evaluate0$_callableNode = oldCallableNode;
- if (argumentList == null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = evaluated.named;
- if (t1.get$isEmpty(t1)) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (argumentList._argument_list$_wereKeywordsAccessed) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + B.pluralize0("argument", J.get$length$asx(evaluated.named.get$keys()), null) + " named " + H.S(B.toSentence0(J.map$1$1$ax(evaluated.named.get$keys(), new E._EvaluateVisitor__runBuiltInCallable_closure6(), type$.Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_runBuiltInCallable$3, $async$completer);
- },
- _async_evaluate0$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
- return this._evaluateArguments$body$_EvaluateVisitor0($arguments, trackSpans);
- },
- _async_evaluate0$_evaluateArguments$1: function($arguments) {
- return this._async_evaluate0$_evaluateArguments$2$trackSpans($arguments, null);
- },
- _evaluateArguments$body$_EvaluateVisitor0: function($arguments, trackSpans) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$._ArgumentResults_2),
- $async$returnValue, $async$self = this, t1, t2, t3, _i, t4, t5, t6, t7, named, t8, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, $async$temp1;
- var $async$_async_evaluate0$_evaluateArguments$2$trackSpans = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (trackSpans == null)
- trackSpans = $async$self._async_evaluate0$_sourceMap;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
- t2 = $arguments.positional, t3 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$temp1 = t1;
- $async$goto = 6;
- return P._asyncAwait(t2[_i].accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
- case 6:
- // returning from await.
- $async$temp1.push($async$result);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t4 = $arguments.named;
- t5 = type$.String;
- t6 = type$.Expression_2;
- t7 = type$.Value_2;
- $async$goto = 7;
- return P._asyncAwait(B.mapMapAsync0(t4, new E._EvaluateVisitor__evaluateArguments_closure8($async$self), t5, t6, t5, t7), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
- case 7:
- // returning from await.
- named = $async$result;
- if (trackSpans) {
- t8 = H.setRuntimeTypeInfo([], type$.JSArray_AstNode_2);
- for (_i = 0; _i < t3; ++_i)
- t8.push($async$self._async_evaluate0$_expressionNode$1(t2[_i]));
- positionalNodes = t8;
- } else
- positionalNodes = null;
- namedNodes = trackSpans ? Y.mapMap(t4, null, new E._EvaluateVisitor__evaluateArguments_closure9($async$self), t5, t6, t5, type$.AstNode_2) : null;
- t2 = $arguments.rest;
- if (t2 == null) {
- $async$returnValue = E._ArgumentResults$2(t1, named, C.ListSeparator_undecided0, namedNodes, positionalNodes);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 8;
- return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
- case 8:
- // returning from await.
- rest = $async$result;
- restNodeForSpan = trackSpans ? $async$self._async_evaluate0$_expressionNode$1(t2) : null;
- if (rest instanceof A.SassMap0) {
- $async$self._async_evaluate0$_addRestMap$1$3(named, rest, t2, t7);
- if (namedNodes != null) {
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode_2);
- for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t4 = type$.SassString_2; t3.moveNext$0();)
- t2.$indexSet(0, t4._as(t3.get$current(t3)).text, restNodeForSpan);
- namedNodes.addAll$1(0, t2);
- }
- separator = C.ListSeparator_undecided0;
- } else if (rest instanceof D.SassList0) {
- t2 = rest._list1$_contents;
- C.JSArray_methods.addAll$1(t1, t2);
- if (positionalNodes != null)
- C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, type$.AstNode_2));
- separator = rest.separator;
- if (rest instanceof D.SassArgumentList0) {
- rest._argument_list$_wereKeywordsAccessed = true;
- rest._argument_list$_keywords.forEach$1(0, new E._EvaluateVisitor__evaluateArguments_closure10(named, namedNodes, restNodeForSpan));
- }
- } else {
- t1.push(rest);
- if (positionalNodes != null)
- positionalNodes.push(restNodeForSpan);
- separator = C.ListSeparator_undecided0;
- }
- t2 = $arguments.keywordRest;
- if (t2 == null) {
- $async$returnValue = E._ArgumentResults$2(t1, named, separator, namedNodes, positionalNodes);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 9;
- return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
- case 9:
- // returning from await.
- keywordRest = $async$result;
- keywordRestNodeForSpan = trackSpans ? $async$self._async_evaluate0$_expressionNode$1(t2) : null;
- if (keywordRest instanceof A.SassMap0) {
- $async$self._async_evaluate0$_addRestMap$1$3(named, keywordRest, t2, t7);
- if (namedNodes != null) {
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode_2);
- for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.SassString_2; t3.moveNext$0();)
- t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
- namedNodes.addAll$1(0, t2);
- }
- $async$returnValue = E._ArgumentResults$2(t1, named, separator, namedNodes, positionalNodes);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", t2.get$span()));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_evaluateArguments$2$trackSpans, $async$completer);
- },
- _async_evaluate0$_evaluateMacroArguments$1: function(invocation) {
- return this._evaluateMacroArguments$body$_EvaluateVisitor0(invocation);
- },
- _evaluateMacroArguments$body$_EvaluateVisitor0: function(invocation) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_of_List_Expression_and_Map_String_Expression_2),
- $async$returnValue, $async$self = this, t3, positional, named, rest, keywordRest, t1, t2;
- var $async$_async_evaluate0$_evaluateMacroArguments$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = invocation.$arguments;
- t2 = t1.rest;
- if (t2 == null) {
- $async$returnValue = new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
- // goto return
- $async$goto = 1;
- break;
- }
- t3 = t1.positional;
- positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
- t3 = type$.Expression_2;
- named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, t3);
- $async$goto = 3;
- return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
- case 3:
- // returning from await.
- rest = $async$result;
- if (rest instanceof A.SassMap0)
- $async$self._async_evaluate0$_addRestMap$1$4(named, rest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure11(), t3);
- else if (rest instanceof D.SassList0) {
- t2 = rest._list1$_contents;
- C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new E._EvaluateVisitor__evaluateMacroArguments_closure12(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
- if (rest instanceof D.SassArgumentList0) {
- rest._argument_list$_wereKeywordsAccessed = true;
- rest._argument_list$_keywords.forEach$1(0, new E._EvaluateVisitor__evaluateMacroArguments_closure13(named));
- }
- } else
- positional.push(new F.ValueExpression0(rest, null));
- t1 = t1.keywordRest;
- if (t1 == null) {
- $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
- case 4:
- // returning from await.
- keywordRest = $async$result;
- if (keywordRest instanceof A.SassMap0) {
- $async$self._async_evaluate0$_addRestMap$1$4(named, keywordRest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure14(), t3);
- $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", invocation.span));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_evaluateMacroArguments$1, $async$completer);
- },
- _async_evaluate0$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
- var t1 = {};
- t1.convert = convert;
- if (convert == null)
- t1.convert = new E._EvaluateVisitor__addRestMap_closure5($T);
- map.contents.forEach$1(0, new E._EvaluateVisitor__addRestMap_closure6(t1, this, values, map, nodeWithSpan));
- },
- _async_evaluate0$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
- return this._async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
- },
- _async_evaluate0$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
- return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__verifyArguments_closure2($arguments, positional, named));
- },
- visitSelectorExpression$1: function(node) {
- return this.visitSelectorExpression$body$_EvaluateVisitor0(node);
- },
- visitSelectorExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1;
- var $async$visitSelectorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_styleRule;
- if (t1 == null) {
- $async$returnValue = C.C_SassNull;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$returnValue = t1.originalSelector.get$asSassList();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
- },
- visitStringExpression$1: function(node) {
- return this.visitStringExpression$body$_EvaluateVisitor0(node);
- },
- visitStringExpression$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassString_2),
- $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
- var $async$visitStringExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = D;
- $async$temp2 = J;
- $async$goto = 3;
- return P._asyncAwait(B.mapAsync0(node.text.contents, new E._EvaluateVisitor_visitStringExpression_closure2($async$self), type$.Object, type$.String), $async$visitStringExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = new $async$temp1.SassString0($async$temp2.join$0$ax($async$result), node.hasQuotes);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitStringExpression$1, $async$completer);
- },
- visitCssAtRule$1: function(node) {
- return this.visitCssAtRule$body$_EvaluateVisitor0(node);
- },
- visitCssAtRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t1, t2, wasInKeyframes, wasInUnknownAtRule;
- var $async$visitCssAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("At-rules may not be used within nested declarations.", node.span));
- if (node.isChildless) {
- t1 = $async$self._async_evaluate0$_parent;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- t1.addChild$1(new U.ModifiableCssAtRule0(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
- wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
- t1 = node.name;
- if (B.unvendor0(t1.get$value(t1)) === "keyframes")
- $async$self._async_evaluate0$_inKeyframes = true;
- else
- $async$self._async_evaluate0$_inUnknownAtRule = true;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- $async$goto = 3;
- 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_ModifiableCssNode_2), t2), new E._EvaluateVisitor_visitCssAtRule_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssAtRule_closure6(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitCssAtRule$1);
- case 3:
- // returning from await.
- $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssAtRule$1, $async$completer);
- },
- visitCssComment$1: function(node) {
- return this.visitCssComment$body$_EvaluateVisitor0(node);
- },
- visitCssComment$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2;
- var $async$visitCssComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_parent;
- t2 = $async$self._async_evaluate0$_root;
- if (t1 == t2 && $async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
- $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
- $async$self._async_evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(node.text, node.span));
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssComment$1, $async$completer);
- },
- visitCssDeclaration$1: function(node) {
- return this.visitCssDeclaration$body$_EvaluateVisitor0(node);
- },
- visitCssDeclaration$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$self._async_evaluate0$_parent.addChild$1(L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap));
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
- },
- visitCssImport$1: function(node) {
- return this.visitCssImport$body$_EvaluateVisitor0(node);
- },
- visitCssImport$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, modifiableNode, t1, t2;
- var $async$visitCssImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- modifiableNode = F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports);
- t1 = $async$self._async_evaluate0$_parent;
- t2 = $async$self._async_evaluate0$_root;
- if (t1 != t2)
- t1.addChild$1(modifiableNode);
- else if ($async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
- $async$self._async_evaluate0$_root.addChild$1(modifiableNode);
- $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
- } else {
- t1 = $async$self._async_evaluate0$_outOfOrderImports;
- (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
- }
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssImport$1, $async$completer);
- },
- visitCssKeyframeBlock$1: function(node) {
- return this.visitCssKeyframeBlock$body$_EvaluateVisitor0(node);
- },
- visitCssKeyframeBlock$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$visitCssKeyframeBlock$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- $async$goto = 2;
- 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_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitCssKeyframeBlock_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssKeyframeBlock_closure6(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitCssKeyframeBlock$1);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
- },
- visitCssMediaRule$1: function(node) {
- return this.visitCssMediaRule$body$_EvaluateVisitor0(node);
- },
- visitCssMediaRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t1, mergedQueries;
- var $async$visitCssMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Media rules may not be used within nested declarations.", node.span));
- t1 = $async$self._async_evaluate0$_mediaQueries;
- mergedQueries = t1 == null ? null : $async$self._async_evaluate0$_mergeMediaQueries$2(t1, node.queries);
- t1 = mergedQueries == null;
- if (!t1 && mergedQueries.length === 0) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = t1 ? node.queries : mergedQueries;
- $async$goto = 3;
- 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$.ModifiableCssMediaRule_2, type$.Null), $async$visitCssMediaRule$1);
- case 3:
- // returning from await.
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
- },
- visitCssStyleRule$1: function(node) {
- return this.visitCssStyleRule$body$_EvaluateVisitor0(node);
- },
- visitCssStyleRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule;
- var $async$visitCssStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Style rules may not be used within nested declarations.", node.span));
- t1 = node.selector;
- t2 = t1.value;
- t3 = $async$self._async_evaluate0$_styleRule;
- t3 = t3 == null ? null : t3.originalSelector;
- originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !$async$self._async_evaluate0$_atRootExcludingStyleRule);
- rule = X.ModifiableCssStyleRule$0($async$self._async_evaluate0$_extender.addSelector$3(originalSelector, t1.span, $async$self._async_evaluate0$_mediaQueries), node.span, originalSelector);
- oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
- $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
- $async$goto = 2;
- 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$.ModifiableCssStyleRule_2, type$.Null), $async$visitCssStyleRule$1);
- case 2:
- // returning from await.
- $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- if (!($async$self._async_evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
- t1 = $async$self._async_evaluate0$_parent.children;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- t1 = $async$self._async_evaluate0$_parent.children;
- t1.get$last(t1).isGroupEnd = true;
- }
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
- },
- visitCssStylesheet$1: function(node) {
- return this.visitCssStylesheet$body$_EvaluateVisitor0(node);
- },
- visitCssStylesheet$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$visitCssStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.get$iterator$ax(node.get$children());
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
- },
- visitCssSupportsRule$1: function(node) {
- return this.visitCssSupportsRule$body$_EvaluateVisitor0(node);
- },
- visitCssSupportsRule$body$_EvaluateVisitor0: function(node) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$visitCssSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw H.wrapException($async$self._async_evaluate0$_exception$2("Supports rules may not be used within nested declarations.", node.span));
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- $async$goto = 2;
- 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_ModifiableCssNode_2), t1), new E._EvaluateVisitor_visitCssSupportsRule_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitCssSupportsRule$1);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
- },
- _async_evaluate0$_handleReturn$1$2: function(list, callback) {
- return this._handleReturn$body$_EvaluateVisitor0(list, callback, null);
- },
- _async_evaluate0$_handleReturn$2: function(list, callback) {
- return this._async_evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
- },
- _handleReturn$body$_EvaluateVisitor0: function(list, callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, t1, _i, result;
- var $async$_async_evaluate0$_handleReturn$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = list.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < list.length)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate0$_handleReturn$1$2);
- case 6:
- // returning from await.
- result = $async$result;
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_handleReturn$1$2, $async$completer);
- },
- _async_evaluate0$_withEnvironment$1$2: function(environment, callback, $T) {
- return this._withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $T);
- },
- _withEnvironment$body$_EvaluateVisitor0: function(environment, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldEnvironment;
- var $async$_async_evaluate0$_withEnvironment$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldEnvironment = $async$self._async_evaluate0$_environment;
- $async$self._async_evaluate0$_environment = environment;
- $async$goto = 3;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withEnvironment$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_environment = oldEnvironment;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_withEnvironment$1$2, $async$completer);
- },
- _async_evaluate0$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
- return this._interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor);
- },
- _async_evaluate0$_interpolationToValue$1: function(interpolation) {
- return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
- },
- _async_evaluate0$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
- return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
- },
- _interpolationToValue$body$_EvaluateVisitor0: function(interpolation, trim, warnForColor) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.CssValue_String_2),
- $async$returnValue, $async$self = this, result, t1;
- var $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor);
- case 3:
- // returning from await.
- result = $async$result;
- t1 = trim ? B.trimAscii0(result, true) : result;
- $async$returnValue = new F.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor, $async$completer);
- },
- _async_evaluate0$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
- return this._performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor);
- },
- _async_evaluate0$_performInterpolation$1: function(interpolation) {
- return this._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
- },
- _performInterpolation$body$_EvaluateVisitor0: function(interpolation, warnForColor) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, $async$temp1;
- var $async$_async_evaluate0$_performInterpolation$2$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = J;
- $async$goto = 3;
- return P._asyncAwait(B.mapAsync0(interpolation.contents, new E._EvaluateVisitor__performInterpolation_closure2($async$self, warnForColor), type$.Object, type$.String), $async$_async_evaluate0$_performInterpolation$2$warnForColor);
- case 3:
- // returning from await.
- $async$returnValue = $async$temp1.join$0$ax($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_performInterpolation$2$warnForColor, $async$completer);
- },
- _async_evaluate0$_evaluateToCss$2$quote: function(expression, quote) {
- return this._evaluateToCss$body$_EvaluateVisitor0(expression, quote);
- },
- _async_evaluate0$_evaluateToCss$1: function(expression) {
- return this._async_evaluate0$_evaluateToCss$2$quote(expression, true);
- },
- _evaluateToCss$body$_EvaluateVisitor0: function(expression, quote) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this;
- var $async$_async_evaluate0$_evaluateToCss$2$quote = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate0$_evaluateToCss$2$quote);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate0$_serialize$3$quote($async$result, expression, quote);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_evaluateToCss$2$quote, $async$completer);
- },
- _async_evaluate0$_serialize$3$quote: function(value, nodeWithSpan, quote) {
- return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__serialize_closure2(value, quote));
- },
- _async_evaluate0$_serialize$2: function(value, nodeWithSpan) {
- return this._async_evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
- },
- _async_evaluate0$_expressionNode$1: function(expression) {
- var t1;
- if (!this._async_evaluate0$_sourceMap)
- return null;
- if (expression instanceof S.VariableExpression0) {
- t1 = this._async_evaluate0$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
- return t1 == null ? expression : t1;
- } else
- return expression;
- },
- _async_evaluate0$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
- return this._withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $T);
- },
- _async_evaluate0$_withParent$2$2: function(node, callback, $S, $T) {
- return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
- },
- _async_evaluate0$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
- return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
- },
- _withParent$body$_EvaluateVisitor0: function(node, callback, scopeWhen, through, $S, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, oldParent, result;
- var $async$_async_evaluate0$_withParent$2$4$scopeWhen$through = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$self._async_evaluate0$_addChild$2$through(node, through);
- oldParent = $async$self._async_evaluate0$_parent;
- $async$self._async_evaluate0$_parent = node;
- $async$goto = 3;
- return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate0$_withParent$2$4$scopeWhen$through);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_parent = oldParent;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_withParent$2$4$scopeWhen$through, $async$completer);
- },
- _async_evaluate0$_addChild$2$through: function(node, through) {
- var grandparent,
- $parent = this._async_evaluate0$_parent;
- if (through != null) {
- for (; through.call$1($parent);)
- $parent = $parent._node2$_parent;
- if ($parent.get$hasFollowingSibling()) {
- grandparent = $parent._node2$_parent;
- $parent = $parent.copyWithoutChildren$0();
- grandparent.addChild$1($parent);
- }
- }
- $parent.addChild$1(node);
- },
- _async_evaluate0$_addChild$1: function(node) {
- return this._async_evaluate0$_addChild$2$through(node, null);
- },
- _async_evaluate0$_withStyleRule$1$2: function(rule, callback, $T) {
- return this._withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $T);
- },
- _withStyleRule$body$_EvaluateVisitor0: function(rule, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldRule;
- var $async$_async_evaluate0$_withStyleRule$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldRule = $async$self._async_evaluate0$_styleRule;
- $async$self._async_evaluate0$_styleRule = rule;
- $async$goto = 3;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStyleRule$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_styleRule = oldRule;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_withStyleRule$1$2, $async$completer);
- },
- _async_evaluate0$_withMediaQueries$1$2: function(queries, callback, $T) {
- return this._withMediaQueries$body$_EvaluateVisitor0(queries, callback, $T, $T);
- },
- _withMediaQueries$body$_EvaluateVisitor0: function(queries, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldMediaQueries;
- var $async$_async_evaluate0$_withMediaQueries$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldMediaQueries = $async$self._async_evaluate0$_mediaQueries;
- $async$self._async_evaluate0$_mediaQueries = queries;
- $async$goto = 3;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withMediaQueries$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_mediaQueries = oldMediaQueries;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_withMediaQueries$1$2, $async$completer);
- },
- _async_evaluate0$_withStackFrame$1$3: function(member, nodeWithSpan, callback, $T) {
- return this._withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $T);
- },
- _withStackFrame$body$_EvaluateVisitor0: function(member, nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, oldMember, result, t1;
- var $async$_async_evaluate0$_withStackFrame$1$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_stack;
- t1.push(new S.Tuple2($async$self._async_evaluate0$_member, nodeWithSpan, type$.Tuple2_String_AstNode_2));
- oldMember = $async$self._async_evaluate0$_member;
- $async$self._async_evaluate0$_member = member;
- $async$goto = 3;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStackFrame$1$3);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_member = oldMember;
- t1.pop();
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_withStackFrame$1$3, $async$completer);
- },
- _async_evaluate0$_stackFrame$2: function(member, span) {
- var url = span.file.url;
- return B.frameForSpan0(span, member, url != null && this._async_evaluate0$_importCache != null ? this._async_evaluate0$_importCache.humanize$1(url) : url);
- },
- _async_evaluate0$_stackTrace$1: function(span) {
- var t2, _this = this,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
- 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();)
- t1.push(t2.__internal$_current);
- if (span != null)
- t1.push(_this._async_evaluate0$_stackFrame$2(_this._async_evaluate0$_member, span));
- return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_Frame), type$.Frame), new P._StringStackTrace(null));
- },
- _async_evaluate0$_stackTrace$0: function() {
- return this._async_evaluate0$_stackTrace$1(null);
- },
- _async_evaluate0$_warn$3$deprecation: function(message, span, deprecation) {
- return this._async_evaluate0$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._async_evaluate0$_stackTrace$1(span));
- },
- _async_evaluate0$_warn$2: function(message, span) {
- return this._async_evaluate0$_warn$3$deprecation(message, span, false);
- },
- _async_evaluate0$_exception$2: function(message, span) {
- var t1 = span == null ? C.JSArray_methods.get$last(this._async_evaluate0$_stack).item2.get$span() : span;
- return new E.SassRuntimeException0(this._async_evaluate0$_stackTrace$1(span), message, t1);
- },
- _async_evaluate0$_exception$1: function(message) {
- return this._async_evaluate0$_exception$2(message, null);
- },
- _async_evaluate0$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
- var t1 = C.JSArray_methods.get$last(this._async_evaluate0$_stack).item2.get$span();
- return new E.MultiSpanSassRuntimeException0(this._async_evaluate0$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
- },
- _async_evaluate0$_adjustParseError$1$2: function(nodeWithSpan, callback) {
- var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException0) {
- error = t1;
- t1 = error;
- errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
- span = nodeWithSpan.get$span();
- t1 = span;
- t2 = span;
- 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);
- t2 = syntheticFile;
- t1 = span.file.url;
- t2.toString;
- t2 = new H.CodeUnits(t2);
- t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
- t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
- t3.SourceFile$decoded$2$url(t2, t1);
- t1 = span;
- t1 = Y.FileLocation$_(t1.file, t1._file$_start);
- t2 = error;
- t2 = G.SourceSpanException.prototype.get$span.call(t2);
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- t4 = span;
- t4 = Y.FileLocation$_(t4.file, t4._file$_start);
- t5 = error;
- t5 = G.SourceSpanException.prototype.get$span.call(t5);
- syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
- throw H.wrapException(this._async_evaluate0$_exception$2(error._span_exception$_message, syntheticSpan));
- } else
- throw exception;
- }
- },
- _async_evaluate0$_adjustParseError$2: function(nodeWithSpan, callback) {
- return this._async_evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _async_evaluate0$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
- var error, error0, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.MultiSpanSassScriptException0) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.SassScriptException0) {
- error0 = t1;
- throw H.wrapException(this._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
- } else
- throw exception;
- }
- },
- _async_evaluate0$_addExceptionSpan$2: function(nodeWithSpan, callback) {
- return this._async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _async_evaluate0$_addExceptionSpanAsync$1$2: function(nodeWithSpan, callback, $T) {
- return this._addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T);
- },
- _addExceptionSpanAsync$body$_EvaluateVisitor0: function(nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, error0, t1, exception, $async$exception;
- var $async$_async_evaluate0$_addExceptionSpanAsync$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$goto = 7;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addExceptionSpanAsync$1$2);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (t1 instanceof E.MultiSpanSassScriptException0) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.SassScriptException0) {
- error0 = t1;
- throw H.wrapException($async$self._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_addExceptionSpanAsync$1$2, $async$completer);
- },
- _async_evaluate0$_addErrorSpan$1$2: function(nodeWithSpan, callback, $T) {
- return this._addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T);
- },
- _addErrorSpan$body$_EvaluateVisitor0: function(nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, t1, exception, $async$exception;
- var $async$_async_evaluate0$_addErrorSpan$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$goto = 7;
- return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addErrorSpan$1$2);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = H.unwrapException($async$exception);
- if (type$.SassRuntimeException_2._is(t1)) {
- error = t1;
- t1 = error.get$span();
- 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"))
- throw $async$exception;
- throw H.wrapException(E.SassRuntimeException$0(error._span_exception$_message, nodeWithSpan.get$span(), $async$self._async_evaluate0$_stackTrace$0()));
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_evaluate0$_addErrorSpan$1$2, $async$completer);
- }
- };
- E._EvaluateVisitor_closure29.prototype = {
- call$1: function($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._async_evaluate0$_environment;
- t2 = variable.text;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- E._EvaluateVisitor_closure30.prototype = {
- call$1: function($arguments) {
- var variable = J.$index$asx($arguments, 0).assertString$1("name"),
- t1 = this.$this._async_evaluate0$_environment,
- t2 = variable.text;
- t2.toString;
- return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- E._EvaluateVisitor_closure31.prototype = {
- call$1: function($arguments) {
- var module, t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._async_evaluate0$_environment;
- t3 = variable.text;
- t3.toString;
- t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
- 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;
- },
- $signature: 15
- };
- E._EvaluateVisitor_closure32.prototype = {
- call$1: function($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._async_evaluate0$_environment;
- t2 = variable.text;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- E._EvaluateVisitor_closure33.prototype = {
- call$1: function($arguments) {
- var t1 = this.$this._async_evaluate0$_environment;
- if (!t1._async_environment0$_inMixin)
- throw H.wrapException(E.SassScriptException$0("content-exists() may only be called within a mixin."));
- return t1._async_environment0$_content != null ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- E._EvaluateVisitor_closure34.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
- module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
- if (module == null)
- throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
- t1 = type$.Value_2;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new D.SassString0(t4.key, true), t4.value);
- }
- return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 29
- };
- E._EvaluateVisitor_closure35.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
- module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
- if (module == null)
- throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
- t1 = type$.Value_2;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new D.SassString0(t4.key, true), new F.SassFunction0(t4.value));
- }
- return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 29
- };
- E._EvaluateVisitor_closure36.prototype = {
- call$1: function($arguments) {
- var module, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name"),
- css = t1.$index($arguments, 1).get$isTruthy();
- t1 = t1.$index($arguments, 2).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- if (css && module != null)
- throw H.wrapException("$css and $module may not both be passed at once.");
- if (css)
- callable = new L.PlainCssCallable0($name.text);
- else {
- t1 = this.$this;
- callable = t1._async_evaluate0$_addExceptionSpan$2(t1._async_evaluate0$_callableNode, new E._EvaluateVisitor__closure18(t1, $name, module));
- }
- if (callable != null)
- return new F.SassFunction0(callable);
- throw H.wrapException("Function not found: " + $name.toString$0(0));
- },
- $signature: 80
- };
- E._EvaluateVisitor__closure18.prototype = {
- call$0: function() {
- var t2,
- t1 = this.name.text;
- t1.toString;
- t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
- t2 = this.module;
- t2 = t2 == null ? null : t2.text;
- return this.$this._async_evaluate0$_getFunction$2$namespace(t1, t2);
- },
- $signature: 49
- };
- E._EvaluateVisitor_closure37.prototype = {
- call$1: function($arguments) {
- return this.$call$body$_EvaluateVisitor_closure2($arguments);
- },
- $call$body$_EvaluateVisitor_closure2: function($arguments) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, invocation, callable, t1, $function, args;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- $function = t1.$index($arguments, 0);
- args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
- t2 = type$.String;
- t3 = $async$self.$this;
- t4 = t3._async_evaluate0$_callableNode.get$span();
- t5 = t3._async_evaluate0$_callableNode.get$span();
- args._argument_list$_wereKeywordsAccessed = true;
- t6 = args._argument_list$_keywords;
- if (t6.get$isEmpty(t6))
- t6 = null;
- else {
- args._argument_list$_wereKeywordsAccessed = true;
- t7 = type$.Value_2;
- t7 = new F.ValueExpression0(new A.SassMap0(H.ConstantMap_ConstantMap$from(Y.mapMap(t6, new E._EvaluateVisitor__closure16(), new E._EvaluateVisitor__closure17(), t2, t7, t7, t7), t7, t7)), t3._async_evaluate0$_callableNode.get$span());
- t6 = t7;
- }
- invocation = X.ArgumentInvocation$0(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Expression_2), t4, t6, new F.ValueExpression0(args, t5));
- $async$goto = $function instanceof D.SassString0 ? 3 : 4;
- break;
- case 3:
- // then
- N.warn0("Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(" + $function.toString$0(0) + ")) instead.", true);
- $async$goto = 5;
- return P._asyncAwait(t3.visitFunctionExpression$1(new F.FunctionExpression0(null, X.Interpolation$0([$function.text], t3._async_evaluate0$_callableNode.get$span()), invocation, t3._async_evaluate0$_callableNode.get$span())), $async$call$1);
- case 5:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- callable = $function.assertFunction$1("function").callable;
- $async$goto = type$.AsyncCallable_2._is(callable) ? 6 : 8;
- break;
- case 6:
- // then
- $async$goto = 9;
- return P._asyncAwait(t3._async_evaluate0$_runFunctionCallable$3(invocation, callable, t3._async_evaluate0$_callableNode), $async$call$1);
- case 9:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- throw H.wrapException(E.SassScriptException$0("The function " + H.S(callable.get$name()) + " is asynchronous.\nThis is probably caused by a bug in a Sass plugin."));
- case 7:
- // join
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__closure16.prototype = {
- call$2: function(key, _) {
- return new D.SassString0(key, false);
- }
- };
- E._EvaluateVisitor__closure17.prototype = {
- call$2: function(_, value) {
- return value;
- }
- };
- E._EvaluateVisitor_closure38.prototype = {
- call$1: function($arguments) {
- return this.$call$body$_EvaluateVisitor_closure1($arguments);
- },
- $call$body$_EvaluateVisitor_closure1: function($arguments) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, withMap, values, configuration, t2, t3, t1, url;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
- t1 = t1.$index($arguments, 1).get$realNull();
- t1 = t1 == null ? null : t1.assertMap$1("with");
- withMap = t1 == null ? null : t1.contents;
- if (withMap != null) {
- values = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
- t1 = $async$self.$this;
- withMap.forEach$1(0, new E._EvaluateVisitor__closure14(values, t1._async_evaluate0$_callableNode.get$span()));
- configuration = new A.Configuration0(values, t1._async_evaluate0$_callableNode, false);
- } else
- configuration = C.Configuration_Map_empty_null_true0;
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_callableNode;
- t3 = t2.get$span();
- t3 = t3 == null ? null : t3.file.url;
- $async$goto = 3;
- return P._asyncAwait(t1._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new E._EvaluateVisitor__closure15(t1), t3, configuration, true), $async$call$1);
- case 3:
- // returning from await.
- t1._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__closure14.prototype = {
- call$2: function(variable, value) {
- var $name,
- t1 = variable.assertString$1("with key").text;
- t1.toString;
- $name = H.stringReplaceAllUnchecked(t1, "_", "-");
- t1 = this.values;
- if (t1.containsKey$1($name))
- throw H.wrapException("The variable $" + $name + " was configured twice.");
- t1.$indexSet(0, $name, new Z.ConfiguredValue0(value, this.span, null));
- }
- };
- E._EvaluateVisitor__closure15.prototype = {
- call$1: function(module) {
- var t1 = this.$this;
- return t1._async_evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
- }
- };
- E._EvaluateVisitor_run_closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.EvaluateResult_2),
- $async$returnValue, $async$self = this, t2, t1, url, $async$temp1, $async$temp2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node;
- url = t1.span.file.url;
- if (url != null) {
- t2 = $async$self.$this;
- t2._async_evaluate0$_activeModules.$indexSet(0, url, null);
- if (t2._async_evaluate0$_nodeImporter != null)
- if (url.get$scheme() === "file")
- t2._async_evaluate0$_includedFiles.add$1(0, $.$get$context().style.pathFromUri$1(M._parseUri(url)));
- else if (url.toString$0(0) !== "stdin")
- t2._async_evaluate0$_includedFiles.add$1(0, url.toString$0(0));
- }
- t2 = $async$self.$this;
- $async$temp1 = E;
- $async$temp2 = t2;
- $async$goto = 3;
- return P._asyncAwait(t2._async_evaluate0$_execute$2($async$self.importer, t1), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = new $async$temp1.EvaluateResult0($async$temp2._async_evaluate0$_combineCss$1($async$result), t2._async_evaluate0$_includedFiles);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 106
- };
- E._EvaluateVisitor__withWarnCallback_closure2.prototype = {
- call$2: function(message, deprecation) {
- var t1 = this.$this,
- t2 = t1._async_evaluate0$_importSpan;
- return t1._async_evaluate0$_warn$3$deprecation(message, t2 == null ? t1._async_evaluate0$_callableNode.get$span() : t2, deprecation);
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- E._EvaluateVisitor__loadModule_closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $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;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.nodeWithSpan;
- $async$goto = 2;
- return P._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$baseUrl(J.toString$0$($async$self.url), t2.get$span(), $async$self.baseUrl), $async$call$0);
- case 2:
- // returning from await.
- result = $async$result;
- importer = result.item1;
- stylesheet = result.item2;
- canonicalUrl = stylesheet.span.file.url;
- t3 = t1._async_evaluate0$_activeModules;
- if (t3.containsKey$1(canonicalUrl)) {
- message = $async$self.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : "Module loop: this module is already being loaded.";
- previousLoad = t3.$index(0, canonicalUrl);
- 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$.FileSpan, type$.String)));
- }
- t3.$indexSet(0, canonicalUrl, t2);
- module = null;
- $async$handler = 3;
- $async$goto = 6;
- return P._asyncAwait(t1._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
- case 6:
- // returning from await.
- module = $async$result;
- $async$next.push(5);
- // goto finally
- $async$goto = 4;
- break;
- case 3:
- // uncaught
- $async$next = [1];
- case 4:
- // finally
- $async$handler = 1;
- t3.remove$1(0, canonicalUrl);
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 5:
- // after finally
- $async$handler = 8;
- $async$goto = 11;
- return P._asyncAwait($async$self.callback.call$1(module), $async$call$0);
- case 11:
- // returning from await.
- $async$handler = 1;
- // goto after finally
- $async$goto = 10;
- break;
- case 8:
- // catch
- $async$handler = 7;
- $async$exception = $async$currentError;
- t2 = H.unwrapException($async$exception);
- if (type$.SassRuntimeException_2._is(t2))
- throw $async$exception;
- else if (t2 instanceof E.MultiSpanSassException0) {
- error = t2;
- 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())));
- } else if (t2 instanceof E.SassException0) {
- error0 = t2;
- throw H.wrapException(t1._async_evaluate0$_exception$2(error0._span_exception$_message, error0.get$span()));
- } else if (t2 instanceof E.MultiSpanSassScriptException0) {
- error1 = t2;
- throw H.wrapException(t1._async_evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
- } else if (t2 instanceof E.SassScriptException0) {
- error2 = t2;
- throw H.wrapException(t1._async_evaluate0$_exception$1(error2.message));
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 10;
- break;
- case 7:
- // uncaught
- // goto rethrow
- $async$goto = 1;
- break;
- case 10:
- // after finally
- // implicit return
- return P._asyncReturn(null, $async$completer);
- case 1:
- // rethrow
- return P._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor__execute_closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, t4, css, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtender, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldAtRootExcludingStyleRule, oldInKeyframes, oldConfiguration;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldImporter = t1._async_evaluate0$_importer;
- oldStylesheet = t1._async_evaluate0$_stylesheet;
- oldRoot = t1._async_evaluate0$_root;
- oldParent = t1._async_evaluate0$_parent;
- oldEndOfImports = t1._async_evaluate0$_endOfImports;
- oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
- oldExtender = t1._async_evaluate0$_extender;
- oldStyleRule = t1._async_evaluate0$_styleRule;
- oldMediaQueries = t1._async_evaluate0$_mediaQueries;
- oldDeclarationName = t1._async_evaluate0$_declarationName;
- oldInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
- oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
- oldInKeyframes = t1._async_evaluate0$_inKeyframes;
- oldConfiguration = t1._async_evaluate0$_configuration;
- t1._async_evaluate0$_importer = $async$self.importer;
- t2 = t1._async_evaluate0$_stylesheet = $async$self.stylesheet;
- t3 = t2.span;
- t4 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- t1._async_evaluate0$_parent = t1._async_evaluate0$_root = new V.ModifiableCssStylesheet0(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_ModifiableCssNode_2), t4);
- t1._async_evaluate0$_endOfImports = 0;
- t1._async_evaluate0$_outOfOrderImports = null;
- t1._async_evaluate0$_extender = $async$self.extender;
- t1._async_evaluate0$_declarationName = t1._async_evaluate0$_mediaQueries = t1._async_evaluate0$_styleRule = null;
- t1._async_evaluate0$_inKeyframes = t1._async_evaluate0$_atRootExcludingStyleRule = t1._async_evaluate0$_inUnknownAtRule = false;
- t4 = $async$self.configuration;
- if (t4 != null)
- t1._async_evaluate0$_configuration = t4;
- $async$goto = 2;
- return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
- case 2:
- // returning from await.
- css = t1._async_evaluate0$_outOfOrderImports == null ? t1._async_evaluate0$_root : new V.CssStylesheet0(new P.UnmodifiableListView(t1._async_evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t3);
- $async$self._box_0.css = css;
- t1._async_evaluate0$_importer = oldImporter;
- t1._async_evaluate0$_stylesheet = oldStylesheet;
- t1._async_evaluate0$_root = oldRoot;
- t1._async_evaluate0$_parent = oldParent;
- t1._async_evaluate0$_endOfImports = oldEndOfImports;
- t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
- t1._async_evaluate0$_extender = oldExtender;
- t1._async_evaluate0$_styleRule = oldStyleRule;
- t1._async_evaluate0$_mediaQueries = oldMediaQueries;
- t1._async_evaluate0$_declarationName = oldDeclarationName;
- t1._async_evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
- t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- t1._async_evaluate0$_inKeyframes = oldInKeyframes;
- t1._async_evaluate0$_configuration = oldConfiguration;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor__combineCss_closure8.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsCss();
- }
- };
- E._EvaluateVisitor__combineCss_closure9.prototype = {
- call$1: function(target) {
- return !this.selectors.contains$1(0, target);
- }
- };
- E._EvaluateVisitor__combineCss_closure10.prototype = {
- call$1: function(module) {
- return module.cloneCss$0();
- }
- };
- E._EvaluateVisitor__extendModules_closure5.prototype = {
- call$1: function(target) {
- return !this.originalSelectors.contains$1(0, target);
- }
- };
- E._EvaluateVisitor__extendModules_closure6.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_Extender_2);
- },
- $signature: 81
- };
- E._EvaluateVisitor__topologicalModules_visitModule2.prototype = {
- call$1: function(module) {
- var t1, t2, t3, _i, upstream;
- for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- upstream = t1[_i];
- if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
- this.call$1(upstream);
- }
- this.sorted.addFirst$1(module);
- }
- };
- E._EvaluateVisitor_visitAtRootRule_closure8.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.resolved, null);
- return new V.AtRootQueryParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
- },
- $signature: 48
- };
- E._EvaluateVisitor_visitAtRootRule_closure9.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitAtRootRule_closure10.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 2
- };
- E._EvaluateVisitor__scopeForAtRoot_closure17.prototype = {
- call$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, oldParent;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldParent = t1._async_evaluate0$_parent;
- t1._async_evaluate0$_parent = $async$self.newParent;
- $async$goto = 2;
- return P._asyncAwait(t1._async_evaluate0$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$_parent = oldParent;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot_closure18.prototype = {
- call$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, oldAtRootExcludingStyleRule;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
- t1._async_evaluate0$_atRootExcludingStyleRule = true;
- $async$goto = 2;
- return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot_closure19.prototype = {
- call$1: function(callback) {
- return this.$this._async_evaluate0$_withMediaQueries$1$2(null, new E._EvaluateVisitor__scopeForAtRoot__closure2(this.innerScope, callback), type$.Null);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot__closure2.prototype = {
- call$0: function() {
- return this.innerScope.call$1(this.callback);
- },
- $signature: 2
- };
- E._EvaluateVisitor__scopeForAtRoot_closure20.prototype = {
- call$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, wasInKeyframes;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- wasInKeyframes = t1._async_evaluate0$_inKeyframes;
- t1._async_evaluate0$_inKeyframes = false;
- $async$goto = 2;
- return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$_inKeyframes = wasInKeyframes;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot_closure21.prototype = {
- call$1: function($parent) {
- return type$.CssAtRule_2._is($parent);
- }
- };
- E._EvaluateVisitor__scopeForAtRoot_closure22.prototype = {
- call$1: function(callback) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, wasInUnknownAtRule;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- wasInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
- t1._async_evaluate0$_inUnknownAtRule = false;
- $async$goto = 2;
- return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- E._EvaluateVisitor_visitContentRule_closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 6:
- // returning from await.
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitDeclaration_closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitEachRule_closure8.prototype = {
- call$1: function(value) {
- return this.$this._async_evaluate0$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
- }
- };
- E._EvaluateVisitor_visitEachRule_closure9.prototype = {
- call$1: function(value) {
- return this.$this._async_evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
- }
- };
- E._EvaluateVisitor_visitEachRule_closure10.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this;
- return t1._async_evaluate0$_handleReturn$2(_this.list.get$asList(), new E._EvaluateVisitor_visitEachRule__closure2(t1, _this.setVariables, _this.node));
- },
- $signature: 19
- };
- E._EvaluateVisitor_visitEachRule__closure2.prototype = {
- call$1: function(element) {
- var t1;
- this.setVariables.call$1(element);
- t1 = this.$this;
- return t1._async_evaluate0$_handleReturn$2(this.node.children, new E._EvaluateVisitor_visitEachRule___closure2(t1));
- }
- };
- E._EvaluateVisitor_visitEachRule___closure2.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor_visitExtendRule_closure2.prototype = {
- call$0: function() {
- var t1 = this.targetText;
- return D.SelectorList_SelectorList$parse0(B.trimAscii0(t1.get$value(t1), true), false, true, this.$this._async_evaluate0$_logger);
- },
- $signature: 33
- };
- E._EvaluateVisitor_visitAtRule_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t3, _i, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) || t1._async_evaluate0$_inKeyframes ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 5:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $async$goto = 8;
- return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- case 6:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 9;
- 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$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 9:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitAtRule__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitAtRule_closure6.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._EvaluateVisitor_visitForRule_closure14.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber_2),
- $async$returnValue, $async$self = this;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result.assertNumber$0();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 82
- };
- E._EvaluateVisitor_visitForRule_closure15.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.SassNumber_2),
- $async$returnValue, $async$self = this;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result.assertNumber$0();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 82
- };
- E._EvaluateVisitor_visitForRule_closure16.prototype = {
- call$0: function() {
- var t1 = this.toNumber,
- t2 = t1.numeratorUnits;
- t1 = t1.denominatorUnits;
- return T.SassNumber$withUnits0(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
- },
- $signature: 8
- };
- E._EvaluateVisitor_visitForRule_closure17.prototype = {
- call$0: function() {
- return this.toNumber.assertInt$0();
- },
- $signature: 8
- };
- E._EvaluateVisitor_visitForRule_closure18.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, i, t3, t4, t5, t6, result, t1, t2, nodeWithSpan;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.node;
- nodeWithSpan = t1._async_evaluate0$_expressionNode$1(t2.from);
- i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.children, t2 = t2.variable;
- case 3:
- // for condition
- if (!(i !== t3.to)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t6 = t1._async_evaluate0$_environment;
- t6.setLocalVariable$3(t2, new T.SassNumber0(i, C.List_empty, C.List_empty, null), nodeWithSpan);
- $async$goto = 6;
- return P._asyncAwait(t1._async_evaluate0$_handleReturn$2(t5, new E._EvaluateVisitor_visitForRule__closure2(t1)), $async$call$0);
- case 6:
- // returning from await.
- result = $async$result;
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- i += t4;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 19
- };
- E._EvaluateVisitor_visitForRule__closure2.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor_visitForwardRule_closure5.prototype = {
- call$1: function(module) {
- this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
- }
- };
- E._EvaluateVisitor_visitForwardRule_closure6.prototype = {
- call$1: function(module) {
- this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
- }
- };
- E._EvaluateVisitor__assertConfigurationIsEmpty_closure2.prototype = {
- call$2: function($name, value) {
- var t1 = this.only;
- if (t1 != null && !t1.contains$1(0, $name))
- return;
- t1 = this.nameInError ? "$" + H.S($name) + " was not declared with !default in the @used module." : "This variable was not declared with !default in the @used module.";
- throw H.wrapException(this.$this._async_evaluate0$_exception$2(t1, value.configurationSpan));
- }
- };
- E._EvaluateVisitor_visitIfRule_closure2.prototype = {
- call$0: function() {
- var t1 = this.$this;
- return t1._async_evaluate0$_handleReturn$2(this._box_0.clause.children, new E._EvaluateVisitor_visitIfRule__closure2(t1));
- },
- $signature: 19
- };
- E._EvaluateVisitor_visitIfRule__closure2.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor__visitDynamicImport_closure2.prototype = {
- call$0: function() {
- return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure0();
- },
- $call$body$_EvaluateVisitor__visitDynamicImport_closure0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $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;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- t1 = $async$self.$this;
- t2 = $async$self.$import;
- $async$goto = 3;
- return P._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$forImport(t2.url, t2.span, true), $async$call$0);
- case 3:
- // returning from await.
- result = $async$result;
- importer = result.item1;
- stylesheet = result.item2;
- url = stylesheet.span.file.url;
- t3 = t1._async_evaluate0$_activeModules;
- if (t3.containsKey$1(url)) {
- previousLoad = t3.$index(0, url);
- 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$.FileSpan, type$.String)));
- }
- t3.$indexSet(0, url, t2);
- t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_uses, type$.UnmodifiableListView_UseRule_2);
- if (t2.get$length(t2) === 0) {
- t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
- t2 = t2.get$length(t2) === 0;
- } else
- t2 = false;
- $async$goto = t2 ? 4 : 5;
- break;
- case 4:
- // then
- oldImporter = t1._async_evaluate0$_importer;
- oldStylesheet = t1._async_evaluate0$_stylesheet;
- t1._async_evaluate0$_importer = importer;
- t1._async_evaluate0$_stylesheet = stylesheet;
- $async$goto = 6;
- return P._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
- case 6:
- // returning from await.
- t1._async_evaluate0$_importer = oldImporter;
- t1._async_evaluate0$_stylesheet = oldStylesheet;
- t3.remove$1(0, url);
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // join
- _box_0.children = null;
- t2 = t1._async_evaluate0$_environment;
- t4 = type$.String;
- t5 = type$.Module_AsyncCallable_2;
- t6 = type$.AstNode_2;
- t7 = H.setRuntimeTypeInfo([], type$.JSArray_Module_AsyncCallable_2);
- t8 = t2._async_environment0$_variables;
- t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
- t9 = t2._async_environment0$_variableNodes;
- if (t9 == null)
- t9 = null;
- else
- t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
- t10 = t2._async_environment0$_functions;
- t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
- t11 = t2._async_environment0$_mixins;
- t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
- 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);
- $async$goto = 7;
- 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);
- case 7:
- // returning from await.
- module = Q._EnvironmentModule__EnvironmentModule2(environment, new V.CssStylesheet0(new P.UnmodifiableListView(C.List_empty12, type$.UnmodifiableListView_CssNode_2), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender0, environment._async_environment0$_forwardedModules);
- t1._async_evaluate0$_environment.importForwards$1(module);
- $async$goto = module.transitivelyContainsCss ? 8 : 9;
- break;
- case 8:
- // then
- $async$goto = 10;
- return P._asyncAwait(t1._async_evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
- case 10:
- // returning from await.
- case 9:
- // join
- visitor = new E._ImportedCssVisitor2(t1);
- for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
- t1.get$current(t1).accept$1(visitor);
- t3.remove$1(0, url);
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor__visitDynamicImport__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldConfiguration;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldImporter = t1._async_evaluate0$_importer;
- oldStylesheet = t1._async_evaluate0$_stylesheet;
- oldRoot = t1._async_evaluate0$_root;
- oldParent = t1._async_evaluate0$_parent;
- oldEndOfImports = t1._async_evaluate0$_endOfImports;
- oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
- oldConfiguration = t1._async_evaluate0$_configuration;
- t1._async_evaluate0$_importer = $async$self.importer;
- t2 = t1._async_evaluate0$_stylesheet = $async$self.stylesheet;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- t1._async_evaluate0$_parent = t1._async_evaluate0$_root = new V.ModifiableCssStylesheet0(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3);
- t1._async_evaluate0$_endOfImports = 0;
- t1._async_evaluate0$_outOfOrderImports = null;
- t3 = new P.UnmodifiableListView(t2._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
- if (!t3.get$isEmpty(t3))
- t1._async_evaluate0$_configuration = $async$self.environment.toImplicitConfiguration$0();
- $async$goto = 2;
- return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
- case 2:
- // returning from await.
- $async$self._box_0.children = t1._async_evaluate0$_addOutOfOrderImports$0();
- t1._async_evaluate0$_importer = oldImporter;
- t1._async_evaluate0$_stylesheet = oldStylesheet;
- t1._async_evaluate0$_root = oldRoot;
- t1._async_evaluate0$_parent = oldParent;
- t1._async_evaluate0$_endOfImports = oldEndOfImports;
- t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
- t1._async_evaluate0$_configuration = oldConfiguration;
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitIncludeRule_closure8.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
- },
- $signature: 49
- };
- E._EvaluateVisitor_visitIncludeRule_closure9.prototype = {
- call$0: function() {
- return this.node.get$spanWithoutContent();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 24
- };
- E._EvaluateVisitor_visitIncludeRule_closure10.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, t1;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 3;
- 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);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitIncludeRule__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, t1;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 3;
- return P._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new E._EvaluateVisitor_visitIncludeRule___closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitIncludeRule___closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4, t5, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.Value_2, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t3._async_evaluate0$_addErrorSpan$1$2(t4, new E._EvaluateVisitor_visitIncludeRule____closure2(t3, t1[_i]), t5), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitIncludeRule____closure2.prototype = {
- call$0: function() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 19
- };
- E._EvaluateVisitor_visitMediaRule_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.mergedQueries;
- if (t2 == null)
- t2 = $async$self.queries;
- $async$goto = 2;
- return P._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitMediaRule__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t3, _i, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 5:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $async$goto = 8;
- return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- case 6:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 9;
- 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$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 9:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitMediaRule___closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitMediaRule_closure6.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule_2._is(node))
- t1 = this.mergedQueries != null && type$.CssMediaRule_2._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- E._EvaluateVisitor__visitMediaQueries_closure2.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.resolved, null);
- return new F.MediaQueryParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
- },
- $signature: 55
- };
- E._EvaluateVisitor_visitStyleRule_closure20.prototype = {
- call$0: function() {
- var t1 = this.selectorText;
- t1 = S.SpanScanner$(t1.get$value(t1), null);
- return new E.KeyframeSelectorParser0(t1, this.$this._async_evaluate0$_logger).parse$0();
- },
- $signature: 32
- };
- E._EvaluateVisitor_visitStyleRule_closure21.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitStyleRule_closure22.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._EvaluateVisitor_visitStyleRule_closure23.prototype = {
- call$0: function() {
- var t2, t3,
- t1 = this.selectorText;
- t1 = t1.get$value(t1);
- t2 = this.$this;
- t3 = !t2._async_evaluate0$_stylesheet.plainCss;
- return D.SelectorList_SelectorList$parse0(t1, t3, t3, t2._async_evaluate0$_logger);
- },
- $signature: 33
- };
- E._EvaluateVisitor_visitStyleRule_closure24.prototype = {
- call$0: function() {
- var t1 = this._box_0.parsedSelector,
- t2 = this.$this,
- t3 = t2._async_evaluate0$_styleRule;
- t3 = t3 == null ? null : t3.originalSelector;
- return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate0$_atRootExcludingStyleRule);
- },
- $signature: 33
- };
- E._EvaluateVisitor_visitStyleRule_closure25.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- 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);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitStyleRule__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitStyleRule_closure26.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._EvaluateVisitor_visitSupportsRule_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t3, _i, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 5:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $async$goto = 8;
- return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- case 6:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 9;
- 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$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 9:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitSupportsRule__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitSupportsRule_closure6.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._EvaluateVisitor_visitVariableDeclaration_closure8.prototype = {
- call$0: function() {
- var t1 = this.override;
- this.$this._async_evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
- },
- $signature: 0
- };
- E._EvaluateVisitor_visitVariableDeclaration_closure9.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 14
- };
- E._EvaluateVisitor_visitVariableDeclaration_closure10.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = this.node;
- t1._async_evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
- },
- $signature: 0
- };
- E._EvaluateVisitor_visitUseRule_closure2.prototype = {
- call$1: function(module) {
- var t1 = this.node;
- this.$this._async_evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
- }
- };
- E._EvaluateVisitor_visitWarnRule_closure2.prototype = {
- call$0: function() {
- return this.node.expression.accept$1(this.$this);
- },
- $signature: 19
- };
- E._EvaluateVisitor_visitWhileRule_closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, result;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
- case 3:
- // for condition
- $async$goto = 5;
- return P._asyncAwait(t2.accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- if (!$async$result.get$isTruthy()) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(t3._async_evaluate0$_handleReturn$2(t1, new E._EvaluateVisitor_visitWhileRule__closure2(t3)), $async$call$0);
- case 6:
- // returning from await.
- result = $async$result;
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- // goto for condition
- $async$goto = 3;
- break;
- case 4:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 19
- };
- E._EvaluateVisitor_visitWhileRule__closure2.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor_visitBinaryOperationExpression_closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, right, result, t1, t2, left, $async$temp1, $async$temp2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node;
- t2 = $async$self.$this;
- $async$goto = 3;
- return P._asyncAwait(t1.left.accept$1(t2), $async$call$0);
- case 3:
- // returning from await.
- left = $async$result;
- case 4:
- // switch
- switch (t1.operator) {
- case C.BinaryOperator_kjl0:
- // goto case
- $async$goto = 6;
- break;
- case C.BinaryOperator_or_or_10:
- // goto case
- $async$goto = 7;
- break;
- case C.BinaryOperator_and_and_20:
- // goto case
- $async$goto = 8;
- break;
- case C.BinaryOperator_YlX0:
- // goto case
- $async$goto = 9;
- break;
- case C.BinaryOperator_i5H0:
- // goto case
- $async$goto = 10;
- break;
- case C.BinaryOperator_AcR2:
- // goto case
- $async$goto = 11;
- break;
- case C.BinaryOperator_1da0:
- // goto case
- $async$goto = 12;
- break;
- case C.BinaryOperator_8qt0:
- // goto case
- $async$goto = 13;
- break;
- case C.BinaryOperator_33h0:
- // goto case
- $async$goto = 14;
- break;
- case C.BinaryOperator_AcR1:
- // goto case
- $async$goto = 15;
- break;
- case C.BinaryOperator_iyO0:
- // goto case
- $async$goto = 16;
- break;
- case C.BinaryOperator_O1M0:
- // goto case
- $async$goto = 17;
- break;
- case C.BinaryOperator_RTB0:
- // goto case
- $async$goto = 18;
- break;
- case C.BinaryOperator_2ad0:
- // goto case
- $async$goto = 19;
- break;
- default:
- // goto default
- $async$goto = 20;
- break;
- }
- break;
- case 6:
- // case
- $async$goto = 21;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 21:
- // returning from await.
- right = $async$result;
- left.toString;
- t1 = N.serializeValue(left, false, true) + "=";
- right.toString;
- $async$returnValue = new D.SassString0(t1 + N.serializeValue(right, false, true), false);
- // goto return
- $async$goto = 1;
- break;
- case 7:
- // case
- $async$goto = left.get$isTruthy() ? 22 : 24;
- break;
- case 22:
- // then
- $async$result = left;
- // goto join
- $async$goto = 23;
- break;
- case 24:
- // else
- $async$goto = 25;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 25:
- // returning from await.
- case 23:
- // join
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 8:
- // case
- $async$goto = left.get$isTruthy() ? 26 : 28;
- break;
- case 26:
- // then
- $async$goto = 29;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 29:
- // returning from await.
- // goto join
- $async$goto = 27;
- break;
- case 28:
- // else
- $async$result = left;
- case 27:
- // join
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 9:
- // case
- $async$temp1 = J;
- $async$temp2 = left;
- $async$goto = 30;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 30:
- // returning from await.
- $async$returnValue = $async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true : C.SassBoolean_false;
- // goto return
- $async$goto = 1;
- break;
- case 10:
- // case
- $async$temp1 = J;
- $async$temp2 = left;
- $async$goto = 31;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 31:
- // returning from await.
- $async$returnValue = !$async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true : C.SassBoolean_false;
- // goto return
- $async$goto = 1;
- break;
- case 11:
- // case
- $async$temp1 = left;
- $async$goto = 32;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 32:
- // returning from await.
- $async$returnValue = $async$temp1.greaterThan$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 12:
- // case
- $async$temp1 = left;
- $async$goto = 33;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 33:
- // returning from await.
- $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 13:
- // case
- $async$temp1 = left;
- $async$goto = 34;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 34:
- // returning from await.
- $async$returnValue = $async$temp1.lessThan$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 14:
- // case
- $async$temp1 = left;
- $async$goto = 35;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 35:
- // returning from await.
- $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 15:
- // case
- $async$temp1 = left;
- $async$goto = 36;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 36:
- // returning from await.
- $async$returnValue = $async$temp1.plus$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 16:
- // case
- $async$temp1 = left;
- $async$goto = 37;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 37:
- // returning from await.
- $async$returnValue = $async$temp1.minus$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 17:
- // case
- $async$temp1 = left;
- $async$goto = 38;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 38:
- // returning from await.
- $async$returnValue = $async$temp1.times$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 18:
- // case
- $async$goto = 39;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 39:
- // returning from await.
- right = $async$result;
- result = left.dividedBy$1(right);
- if (t1.allowsSlash && left instanceof T.SassNumber0 && right instanceof T.SassNumber0) {
- $async$returnValue = type$.SassNumber_2._as(result).withSlash$2(left, right);
- // goto return
- $async$goto = 1;
- break;
- } else {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- case 19:
- // case
- $async$temp1 = left;
- $async$goto = 40;
- return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 40:
- // returning from await.
- $async$returnValue = $async$temp1.modulo$1($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 20:
- // default
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // after switch
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 19
- };
- E._EvaluateVisitor_visitVariableExpression_closure2.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 14
- };
- E._EvaluateVisitor_visitListExpression_closure2.prototype = {
- call$1: function(expression) {
- return expression.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor_visitFunctionExpression_closure5.prototype = {
- call$0: function() {
- var t1 = this.node.namespace,
- t2 = this.plainName;
- if (t1 == null)
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return this.$this._async_evaluate0$_getFunction$2$namespace(t2, t1);
- },
- $signature: 49
- };
- E._EvaluateVisitor_visitFunctionExpression_closure6.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
- },
- $signature: 19
- };
- E._EvaluateVisitor__runUserDefinedCallable_closure2.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.callable;
- 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$.Value_2);
- },
- $signature: 19
- };
- E._EvaluateVisitor__runUserDefinedCallable__closure2.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this;
- return t1._async_evaluate0$_environment.scope$1$1(new E._EvaluateVisitor__runUserDefinedCallable___closure2(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.Value_2);
- },
- $signature: 19
- };
- E._EvaluateVisitor__runUserDefinedCallable___closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $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;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.evaluated;
- t3 = t2.positional;
- t4 = t3.length;
- t5 = t2.named;
- t6 = $async$self.callable.declaration.$arguments;
- t7 = $async$self.nodeWithSpan;
- t1._async_evaluate0$_verifyArguments$4(t4, t5, t6, t7);
- declaredArguments = t6.$arguments;
- t4 = declaredArguments.length;
- minLength = Math.min(t3.length, t4);
- for (t8 = t1._async_evaluate0$_sourceMap, i = 0; i < minLength; ++i) {
- t9 = t1._async_evaluate0$_environment;
- t10 = declaredArguments[i].name;
- t11 = t3[i].withoutSlash$0();
- t9.setLocalVariable$3(t10, t11, t8 ? t2.positionalNodes[i] : null);
- }
- i = t3.length;
- case 3:
- // for condition
- if (!(i < t4)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- argument = declaredArguments[i];
- t9 = argument.name;
- value = t5.remove$1(0, t9);
- $async$goto = value == null ? 6 : 7;
- break;
- case 6:
- // then
- $async$goto = 8;
- return P._asyncAwait(argument.defaultValue.accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- value = $async$result;
- case 7:
- // join
- t10 = t1._async_evaluate0$_environment;
- t11 = value.withoutSlash$0();
- if (t8) {
- t12 = t2.namedNodes.$index(0, t9);
- if (t12 == null)
- t12 = t1._async_evaluate0$_expressionNode$1(argument.defaultValue);
- } else
- t12 = null;
- t10.setLocalVariable$3(t9, t11, t12);
- case 4:
- // for update
- ++i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t8 = t6.restArgument;
- if (t8 != null) {
- rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty16;
- t2 = t2.separator;
- if (t2 === C.ListSeparator_undecided0)
- t2 = C.ListSeparator_comma0;
- t3 = type$.Value_2;
- argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t5, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
- argumentList.SassList$3$brackets0(rest, t2, false);
- t1._async_evaluate0$_environment.setLocalVariable$3(t8, argumentList, t7);
- } else
- argumentList = null;
- $async$goto = 9;
- return P._asyncAwait($async$self.run.call$0(), $async$call$0);
- case 9:
- // returning from await.
- result = $async$result;
- if (argumentList == null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (t5.get$isEmpty(t5)) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (argumentList._argument_list$_wereKeywordsAccessed) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- argumentWord = B.pluralize0("argument", J.get$length$asx(t5.get$keys()), null);
- argumentNames = B.toSentence0(J.map$1$1$ax(t5.get$keys(), new E._EvaluateVisitor__runUserDefinedCallable____closure2(), type$.Object), "or");
- 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$.FileSpan, type$.String), t1._async_evaluate0$_stackTrace$1(t7.get$span())));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 19
- };
- E._EvaluateVisitor__runUserDefinedCallable____closure2.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- E._EvaluateVisitor__runFunctionCallable_closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
- case 6:
- // returning from await.
- $returnValue = $async$result;
- if ($returnValue instanceof F.Value0) {
- $async$returnValue = $returnValue;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- throw H.wrapException(t4._async_evaluate0$_exception$2("Function finished without @return.", t1.span));
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 19
- };
- E._EvaluateVisitor__runBuiltInCallable_closure5.prototype = {
- call$0: function() {
- return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
- },
- $signature: 1
- };
- E._EvaluateVisitor__runBuiltInCallable_closure6.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- E._EvaluateVisitor__evaluateArguments_closure8.prototype = {
- call$2: function(_, expression) {
- return expression.accept$1(this.$this);
- }
- };
- E._EvaluateVisitor__evaluateArguments_closure9.prototype = {
- call$2: function(_, expression) {
- return this.$this._async_evaluate0$_expressionNode$1(expression);
- }
- };
- E._EvaluateVisitor__evaluateArguments_closure10.prototype = {
- call$2: function(key, value) {
- var t1;
- this.named.$indexSet(0, key, value);
- t1 = this.namedNodes;
- if (t1 != null)
- t1.$indexSet(0, key, this.restNodeForSpan);
- }
- };
- E._EvaluateVisitor__evaluateMacroArguments_closure11.prototype = {
- call$1: function(value) {
- return new F.ValueExpression0(value, null);
- }
- };
- E._EvaluateVisitor__evaluateMacroArguments_closure12.prototype = {
- call$1: function(value) {
- return new F.ValueExpression0(value, null);
- }
- };
- E._EvaluateVisitor__evaluateMacroArguments_closure13.prototype = {
- call$2: function(key, value) {
- this.named.$indexSet(0, key, new F.ValueExpression0(value, null));
- }
- };
- E._EvaluateVisitor__evaluateMacroArguments_closure14.prototype = {
- call$1: function(value) {
- return new F.ValueExpression0(value, null);
- }
- };
- E._EvaluateVisitor__addRestMap_closure5.prototype = {
- call$1: function(value) {
- return this.T._as(value);
- }
- };
- E._EvaluateVisitor__addRestMap_closure6.prototype = {
- call$2: function(key, value) {
- var _this = this;
- if (key instanceof D.SassString0)
- _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
- else
- throw H.wrapException(_this.$this._async_evaluate0$_exception$2("Variable keyword argument map must have string keys.\n" + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
- }
- };
- E._EvaluateVisitor__verifyArguments_closure2.prototype = {
- call$0: function() {
- return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_String));
- },
- $signature: 1
- };
- E._EvaluateVisitor_visitStringExpression_closure2.prototype = {
- call$1: function(value) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, result;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (typeof value == "string") {
- $async$returnValue = value;
- // goto return
- $async$goto = 1;
- break;
- }
- type$.Expression_2._as(value);
- t1 = $async$self.$this;
- $async$goto = 3;
- return P._asyncAwait(value.accept$1(t1), $async$call$1);
- case 3:
- // returning from await.
- result = $async$result;
- $async$returnValue = result instanceof D.SassString0 ? result.text : t1._async_evaluate0$_serialize$3$quote(result, value, false);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 43
- };
- E._EvaluateVisitor_visitCssAtRule_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssAtRule_closure6.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._EvaluateVisitor_visitCssKeyframeBlock_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssKeyframeBlock_closure6.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._EvaluateVisitor_visitCssMediaRule_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.mergedQueries;
- if (t2 == null)
- t2 = $async$self.node.queries;
- $async$goto = 2;
- return P._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitCssMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssMediaRule__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
- case 5:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 6;
- break;
- }
- $async$goto = 7;
- return P._asyncAwait(t2.__internal$_current.accept$1(t1), $async$call$0);
- case 7:
- // returning from await.
- // goto for condition
- $async$goto = 5;
- break;
- case 6:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 8;
- 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$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 8:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssMediaRule___closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssMediaRule_closure6.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule_2._is(node))
- t1 = this.mergedQueries != null && type$.CssMediaRule_2._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- E._EvaluateVisitor_visitCssStyleRule_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- 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);
- case 2:
- // returning from await.
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssStyleRule__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssStyleRule_closure6.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._EvaluateVisitor_visitCssSupportsRule_closure5.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_styleRule;
- $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
- case 5:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 6;
- break;
- }
- $async$goto = 7;
- return P._asyncAwait(t2.__internal$_current.accept$1(t1), $async$call$0);
- case 7:
- // returning from await.
- // goto for condition
- $async$goto = 5;
- break;
- case 6:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 8;
- 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$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 8:
- // returning from await.
- case 3:
- // join
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssSupportsRule__closure2.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return P._asyncAwait(t1.__internal$_current.accept$1(t2), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._asyncReturn(null, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- E._EvaluateVisitor_visitCssSupportsRule_closure6.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._EvaluateVisitor__performInterpolation_closure2.prototype = {
- call$1: function(value) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, result, t2, t3;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (typeof value == "string") {
- $async$returnValue = value;
- // goto return
- $async$goto = 1;
- break;
- }
- type$.Expression_2._as(value);
- t1 = $async$self.$this;
- $async$goto = 3;
- return P._asyncAwait(value.accept$1(t1), $async$call$1);
- case 3:
- // returning from await.
- result = $async$result;
- if ($async$self.warnForColor && result instanceof K.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
- t2 = X.Interpolation$0([""], null);
- t3 = $.$get$namesByColor0();
- t1._async_evaluate0$_warn$2("You probably don't mean to use the color value " + H.S(t3.$index(0, result)) + " in interpolation here.\nIt may end up represented as " + H.S(result) + ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "' + H.S(t3.$index(0, result)) + "\").\nIf you really want to use the color value here, use '" + new V.BinaryOperationExpression0(C.BinaryOperator_AcR1, new D.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span());
- }
- $async$returnValue = t1._async_evaluate0$_serialize$3$quote(result, value, false);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 43
- };
- E._EvaluateVisitor__serialize_closure2.prototype = {
- call$0: function() {
- var t1 = this.value;
- t1.toString;
- return N.serializeValue(t1, false, this.quote);
- },
- $signature: 10
- };
- E._EvaluateVisitor__stackTrace_closure2.prototype = {
- call$1: function(tuple) {
- return this.$this._async_evaluate0$_stackFrame$2(tuple.item1, tuple.item2.get$span());
- }
- };
- E._ImportedCssVisitor2.prototype = {
- visitCssAtRule$1: function(node) {
- var t1 = node.isChildless ? null : new E._ImportedCssVisitor_visitCssAtRule_closure2();
- this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, t1);
- },
- visitCssComment$1: function(node) {
- return this._async_evaluate0$_visitor._async_evaluate0$_addChild$1(node);
- },
- visitCssDeclaration$1: function(node) {
- },
- visitCssImport$1: function(node) {
- var t1 = this._async_evaluate0$_visitor,
- t2 = t1._async_evaluate0$_parent,
- t3 = t1._async_evaluate0$_root;
- if (t2 != t3)
- t1._async_evaluate0$_addChild$1(node);
- else if (t1._async_evaluate0$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
- t1._async_evaluate0$_addChild$1(node);
- t1._async_evaluate0$_endOfImports = t1._async_evaluate0$_endOfImports + 1;
- } else {
- t2 = t1._async_evaluate0$_outOfOrderImports;
- (t2 == null ? t1._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
- }
- },
- visitCssKeyframeBlock$1: function(node) {
- },
- visitCssMediaRule$1: function(node) {
- var t1 = this._async_evaluate0$_visitor,
- t2 = t1._async_evaluate0$_mediaQueries;
- t1._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssMediaRule_closure2(t2 == null || t1._async_evaluate0$_mergeMediaQueries$2(t2, node.queries) != null));
- },
- visitCssStyleRule$1: function(node) {
- return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssStyleRule_closure2());
- },
- visitCssStylesheet$1: function(node) {
- var t1;
- for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
- t1.__internal$_current.accept$1(this);
- },
- visitCssSupportsRule$1: function(node) {
- return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssSupportsRule_closure2());
- }
- };
- E._ImportedCssVisitor_visitCssAtRule_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._ImportedCssVisitor_visitCssMediaRule_closure2.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule_2._is(node))
- t1 = this.hasBeenMerged && type$.CssMediaRule_2._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- E._ImportedCssVisitor_visitCssStyleRule_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E._ImportedCssVisitor_visitCssSupportsRule_closure2.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- E.EvaluateResult0.prototype = {};
- E._ArgumentResults2.prototype = {};
- O.AsyncImportCache0.prototype = {
- canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
- return this.canonicalize$body$AsyncImportCache0(url, baseImporter, baseUrl, forImport);
- },
- canonicalize$body$AsyncImportCache0: function(url, baseImporter, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple3_AsyncImporter_Uri_Uri),
- $async$returnValue, $async$self = this, resolvedUrl, canonicalUrl, t1;
- var $async$canonicalize$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = baseImporter != null ? 3 : 4;
- break;
- case 3:
- // then
- resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
- $async$goto = 5;
- return P._asyncAwait($async$self._async_import_cache0$_canonicalize$3(baseImporter, resolvedUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
- case 5:
- // returning from await.
- canonicalUrl = $async$result;
- if (canonicalUrl != null) {
- $async$returnValue = new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_AsyncImporter_Uri_Uri);
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // join
- t1 = type$.Tuple2_Uri_bool;
- $async$goto = 6;
- return P._asyncAwait(B.putIfAbsentAsync0($async$self._async_import_cache0$_canonicalizeCache, new S.Tuple2(url, forImport, t1), new O.AsyncImportCache_canonicalize_closure0($async$self, url, forImport), t1, type$.Tuple3_AsyncImporter_Uri_Uri), $async$canonicalize$4$baseImporter$baseUrl$forImport);
- case 6:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
- },
- _async_import_cache0$_canonicalize$3: function(importer, url, forImport) {
- return this._canonicalize$body$AsyncImportCache0(importer, url, forImport);
- },
- _canonicalize$body$AsyncImportCache0: function(importer, url, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Uri),
- $async$returnValue, $async$self = this, result;
- var $async$_async_import_cache0$_canonicalize$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(forImport ? B.inImportRule0(new O.AsyncImportCache__canonicalize_closure0(importer, url)) : importer.canonicalize$1(url), $async$_async_import_cache0$_canonicalize$3);
- case 3:
- // returning from await.
- result = $async$result;
- if ((result == null ? null : result.get$scheme()) === "")
- $async$self._async_import_cache0$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n", true);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_async_import_cache0$_canonicalize$3, $async$completer);
- },
- import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
- return this.import$body$AsyncImportCache0(url, baseImporter, baseUrl, forImport);
- },
- import$body$AsyncImportCache0: function(url, baseImporter, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_AsyncImporter_Stylesheet_2),
- $async$returnValue, $async$self = this, t1, tuple, $async$temp1, $async$temp2;
- var $async$import$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait($async$self.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport), $async$import$4$baseImporter$baseUrl$forImport);
- case 3:
- // returning from await.
- tuple = $async$result;
- if (tuple == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = tuple.item1;
- $async$temp1 = S;
- $async$temp2 = t1;
- $async$goto = 4;
- return P._asyncAwait($async$self.importCanonical$3(t1, tuple.item2, tuple.item3), $async$import$4$baseImporter$baseUrl$forImport);
- case 4:
- // returning from await.
- $async$returnValue = new $async$temp1.Tuple2($async$temp2, $async$result, type$.Tuple2_AsyncImporter_Stylesheet_2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$import$4$baseImporter$baseUrl$forImport, $async$completer);
- },
- importCanonical$3: function(importer, canonicalUrl, originalUrl) {
- return this.importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl);
- },
- importCanonical$body$AsyncImportCache0: function(importer, canonicalUrl, originalUrl) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet),
- $async$returnValue, $async$self = this;
- var $async$importCanonical$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return P._asyncAwait(B.putIfAbsentAsync0($async$self._async_import_cache0$_importCache, canonicalUrl, new O.AsyncImportCache_importCanonical_closure0($async$self, importer, canonicalUrl, originalUrl), type$.Uri, type$.Stylesheet), $async$importCanonical$3);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$importCanonical$3, $async$completer);
- },
- humanize$1: function(canonicalUrl) {
- var t1 = this._async_import_cache0$_canonicalizeCache.get$values(),
- t2 = H._instanceType(t1),
- 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$.Uri, type$.dynamic);
- if (url == null)
- return canonicalUrl;
- t1 = $.$get$url();
- return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
- }
- };
- O.AsyncImportCache_canonicalize_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple3_AsyncImporter_Uri_Uri),
- $async$returnValue, $async$self = this, t1, t2, t3, _i, importer, canonicalUrl;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this, t2 = $async$self.url, t3 = $async$self.forImport, _i = 0;
- case 3:
- // for condition
- if (!false) {
- // goto after for
- $async$goto = 5;
- break;
- }
- importer = C.List_empty23[_i];
- $async$goto = 6;
- return P._asyncAwait(t1._async_import_cache0$_canonicalize$3(importer, t2, t3), $async$call$0);
- case 6:
- // returning from await.
- canonicalUrl = $async$result;
- if (canonicalUrl != null) {
- $async$returnValue = new S.Tuple3(importer, canonicalUrl, t2, type$.Tuple3_AsyncImporter_Uri_Uri);
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 114
- };
- O.AsyncImportCache__canonicalize_closure0.prototype = {
- call$0: function() {
- return this.importer.canonicalize$1(this.url);
- },
- $signature: 76
- };
- O.AsyncImportCache_importCanonical_closure0.prototype = {
- call$0: function() {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Stylesheet),
- $async$returnValue, $async$self = this, t2, t3, t4, t5, t1, result;
- var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.canonicalUrl;
- $async$goto = 3;
- return P._asyncAwait($async$self.importer.load$1(t1), $async$call$0);
- case 3:
- // returning from await.
- result = $async$result;
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t2 = $async$self.$this;
- t2._async_import_cache0$_resultsCache.$indexSet(0, t1, result);
- t3 = result.contents;
- t4 = result.syntax;
- t5 = $async$self.originalUrl;
- t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
- $async$returnValue = V.Stylesheet_Stylesheet$parse0(t3, t4, t2._async_import_cache0$_logger, t1);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 115
- };
- O.AsyncImportCache_humanize_closure2.prototype = {
- call$1: function(tuple) {
- var t1 = tuple == null ? null : tuple.item2;
- return J.$eq$(t1, this.canonicalUrl);
- }
- };
- O.AsyncImportCache_humanize_closure3.prototype = {
- call$1: function(tuple) {
- return tuple.item3;
- }
- };
- O.AsyncImportCache_humanize_closure4.prototype = {
- call$1: function(url) {
- return J.get$length$asx(J.get$path$x(url));
- },
- $signature: 28
- };
- V.AtRootQueryParser0.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new V.AtRootQueryParser_parse_closure0(this));
- }
- };
- V.AtRootQueryParser_parse_closure0.prototype = {
- call$0: function() {
- var include, atRules,
- t1 = this.$this,
- t2 = t1.scanner;
- t2.expectChar$1(40);
- t1.whitespace$0();
- include = t1.scanIdentifier$1("with");
- if (!include)
- t1.expectIdentifier$2$name("without", '"with" or "without"');
- t1.whitespace$0();
- t2.expectChar$1(58);
- t1.whitespace$0();
- atRules = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- do {
- atRules.add$1(0, t1.identifier$0().toLowerCase());
- t1.whitespace$0();
- } while (t1.lookingAtIdentifier$0());
- t2.expectChar$1(41);
- t2.expectDone$0();
- return new V.AtRootQuery0(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
- },
- $signature: 48
- };
- V.AtRootQuery0.prototype = {
- excludes$1: function(node) {
- var _this = this;
- if (_this._at_root_query0$_all)
- return !_this.include;
- if (_this._at_root_query0$_rule && type$.CssStyleRule_2._is(node))
- return !_this.include;
- return _this.names.contains$1(0, _this._at_root_query0$_nameFor$1(node)) !== _this.include;
- },
- _at_root_query0$_nameFor$1: function(node) {
- var t1;
- if (type$.CssMediaRule_2._is(node))
- return "media";
- if (type$.CssSupportsRule_2._is(node))
- return "supports";
- if (type$.CssAtRule_2._is(node)) {
- t1 = node.name;
- return t1.get$value(t1).toLowerCase();
- }
- return null;
- }
- };
- V.AtRootRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitAtRootRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var buffer = new P.StringBuffer("@at-root "),
- t1 = this.query;
- if (t1 != null)
- buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
- t1 = this.children;
- return buffer.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- U.ModifiableCssAtRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssAtRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- var _this = this,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return new U.ModifiableCssAtRule0(_this.name, _this.value, _this.isChildless, _this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- addChild$1: function(child) {
- this.super$ModifiableCssParentNode$addChild0(child);
- },
- $isCssAtRule0: 1,
- get$isChildless: function() {
- return this.isChildless;
- },
- get$span: function() {
- return this.span;
- }
- };
- U.AtRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitAtRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = "@" + this.name.toString$0(0),
- buffer = new P.StringBuffer(t1),
- t2 = this.value;
- if (t2 != null)
- buffer._contents = t1 + (" " + t2.toString$0(0));
- t1 = this.children;
- return t1 == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + C.JSArray_methods.join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- N.AttributeSelector0.prototype = {
- accept$1$1: function(visitor) {
- var t2, _this = this,
- t1 = visitor._buffer;
- t1.writeCharCode$1(91);
- t1.write$1(0, _this.name);
- t2 = _this.op;
- if (t2 != null) {
- t1.write$1(0, t2);
- t2 = _this.value;
- if (G.Parser_isIdentifier0(t2) && !J.startsWith$1$s(t2, "--")) {
- t1.write$1(0, t2);
- t2 = _this.modifier;
- if (t2 != null)
- t1.writeCharCode$1(32);
- } else {
- visitor._serialize0$_visitQuotedString$1(t2);
- t2 = _this.modifier;
- if (t2 != null)
- if (visitor._serialize0$_style !== C.OutputStyle_compressed0)
- t1.writeCharCode$1(32);
- }
- if (t2 != null)
- t1.write$1(0, t2);
- }
- t1.writeCharCode$1(93);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof N.AttributeSelector0 && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
- },
- get$hashCode: function(_) {
- var _this = this,
- t1 = _this.name;
- 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;
- }
- };
- N.AttributeOperator0.prototype = {
- toString$0: function(_) {
- return this._attribute0$_text;
- }
- };
- V.BinaryOperationExpression0.prototype = {
- get$span: function() {
- var right,
- left = this.left;
- for (; left instanceof V.BinaryOperationExpression0;)
- left = left.left;
- right = this.right;
- for (; right instanceof V.BinaryOperationExpression0;)
- right = right.right;
- return B.spanForList0(H.setRuntimeTypeInfo([left, right], type$.JSArray_AstNode_2));
- },
- accept$1$1: function(visitor) {
- return visitor.visitBinaryOperationExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t2, right, rightNeedsParens, _this = this,
- left = _this.left,
- leftNeedsParens = left instanceof V.BinaryOperationExpression0 && left.operator.precedence < _this.operator.precedence,
- t1 = leftNeedsParens ? H.Primitives_stringFromCharCode(40) : "";
- t1 += H.S(left);
- if (leftNeedsParens)
- t1 += H.Primitives_stringFromCharCode(41);
- t2 = _this.operator;
- t1 = t1 + H.Primitives_stringFromCharCode(32) + t2.operator + H.Primitives_stringFromCharCode(32);
- right = _this.right;
- rightNeedsParens = right instanceof V.BinaryOperationExpression0 && right.operator.precedence <= t2.precedence;
- if (rightNeedsParens)
- t1 += H.Primitives_stringFromCharCode(40);
- t1 += H.S(right);
- if (rightNeedsParens)
- t1 += H.Primitives_stringFromCharCode(41);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isExpression0: 1,
- $isAstNode0: 1
- };
- V.BinaryOperator0.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- Z.BooleanExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitBooleanExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return String(this.value);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- Z.closure249.prototype = {
- call$0: function() {
- var $constructor = P.allowInterop(new Z._closure34());
- B.injectSuperclass(C.SassBoolean_true, $constructor);
- self.Object.defineProperty(C.SassBoolean_true.constructor, "name", {value: "SassBoolean"});
- B.forwardToString($constructor);
- $constructor.prototype.getValue = P.allowInteropCaptureThis(new Z._closure35());
- $constructor.TRUE = C.SassBoolean_true;
- $constructor.FALSE = C.SassBoolean_false;
- return $constructor;
- },
- $signature: 83
- };
- Z._closure34.prototype = {
- call$1: function(_) {
- throw H.wrapException("new sass.types.Boolean() isn't allowed.\nUse sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead.");
- },
- call$0: function() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues: function() {
- return [null];
- },
- $signature: 51
- };
- Z._closure35.prototype = {
- call$1: function(thisArg) {
- return thisArg === C.SassBoolean_true;
- },
- $signature: 5
- };
- Z.SassBoolean0.prototype = {
- get$isTruthy: function() {
- return this.value;
- },
- accept$1$1: function(visitor) {
- return visitor._buffer.write$1(0, String(this.value));
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unaryNot$0: function() {
- return this.value ? C.SassBoolean_false : C.SassBoolean_true;
- }
- };
- Q.BuiltInCallable0.prototype = {
- callbackFor$2: function(positional, names) {
- var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
- 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) {
- overload = t1[_i];
- t3 = overload.item1;
- if (t3.matches$2(positional, names))
- return overload;
- mismatchDistance = t3.$arguments.length - positional;
- if (minMismatchDistance != null) {
- t3 = Math.abs(mismatchDistance);
- t4 = Math.abs(minMismatchDistance);
- if (t3 > t4)
- continue;
- if (t3 === t4 && mismatchDistance < 0)
- continue;
- }
- minMismatchDistance = mismatchDistance;
- fuzzyMatch = overload;
- }
- return fuzzyMatch;
- },
- withName$1: function($name) {
- return new Q.BuiltInCallable0($name, this._built_in$_overloads);
- },
- $isAsyncCallable0: 1,
- $isAsyncBuiltInCallable0: 1,
- $isCallable0: 1,
- get$name: function() {
- return this.name;
- }
- };
- Q.BuiltInCallable$mixin_closure0.prototype = {
- call$1: function($arguments) {
- this.callback.call$1($arguments);
- return null;
- },
- $signature: 52
- };
- Q.BuiltInModule0.prototype = {
- get$upstream: function() {
- return C.List_empty14;
- },
- get$variableNodes: function() {
- return C.Map_empty7;
- },
- get$extender: function() {
- return C.C_EmptyExtender0;
- },
- get$css: function(_) {
- return new V.CssStylesheet0(C.List_empty12, Y.SourceFile$decoded(C.List_empty1, this.url).span$2(0, 0));
- },
- get$transitivelyContainsCss: function() {
- return false;
- },
- get$transitivelyContainsExtensions: function() {
- return false;
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- if (!this.variables.containsKey$1($name))
- throw H.wrapException(E.SassScriptException$0("Undefined variable."));
- throw H.wrapException(E.SassScriptException$0("Cannot modify built-in variable."));
- },
- variableIdentity$1: function($name) {
- return this;
- },
- cloneCss$0: function() {
- return this;
- },
- $isModule0: 1,
- get$url: function() {
- return this.url;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- },
- get$variables: function() {
- return this.variables;
- }
- };
- D.Callable0.prototype = {};
- M.CallableDeclaration0.prototype = {
- get$span: function() {
- return this.span;
- }
- };
- Y.Chokidar0.prototype = {};
- Y.ChokidarOptions0.prototype = {};
- Y.ChokidarWatcher0.prototype = {};
- X.ClassSelector0.prototype = {
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof X.ClassSelector0 && other.name === this.name;
- },
- accept$1$1: function(visitor) {
- var t1 = visitor._buffer;
- t1.writeCharCode$1(46);
- t1.write$1(0, this.name);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1: function(suffix) {
- return new X.ClassSelector0(this.name + suffix);
- },
- get$hashCode: function(_) {
- return C.JSString_methods.get$hashCode(this.name);
- }
- };
- V._CloneCssVisitor0.prototype = {
- visitCssAtRule$1: function(node) {
- var t1 = node.isChildless,
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2),
- rule = new U.ModifiableCssAtRule0(node.name, node.value, t1, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
- return t1 ? rule : this._clone_css$_visitChildren$2(rule, node);
- },
- visitCssComment$1: function(node) {
- return new R.ModifiableCssComment0(node.text, node.span);
- },
- visitCssDeclaration$1: function(node) {
- return L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap);
- },
- visitCssImport$1: function(node) {
- return F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports);
- },
- visitCssKeyframeBlock$1: function(node) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return this._clone_css$_visitChildren$2(new U.ModifiableCssKeyframeBlock0(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), node);
- },
- visitCssMediaRule$1: function(node) {
- return this._clone_css$_visitChildren$2(G.ModifiableCssMediaRule$0(node.queries, node.span), node);
- },
- visitCssStyleRule$1: function(node) {
- var newSelector = this._clone_css$_oldToNewSelectors.$index(0, node.selector);
- if (newSelector == null)
- throw H.wrapException(P.StateError$("The Extender and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation."));
- return this._clone_css$_visitChildren$2(X.ModifiableCssStyleRule$0(newSelector, node.span, node.originalSelector), node);
- },
- visitCssStylesheet$1: function(node) {
- var t1 = node.get$span(),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return this._clone_css$_visitChildren$2(new V.ModifiableCssStylesheet0(t1, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2), node);
- },
- visitCssSupportsRule$1: function(node) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return this._clone_css$_visitChildren$2(new B.ModifiableCssSupportsRule0(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), node);
- },
- _clone_css$_visitChildren$1$2: function(newParent, oldParent) {
- var t1, t2, newChild;
- for (t1 = J.get$iterator$ax(oldParent.get$children()); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- newChild = t2.accept$1(this);
- newChild.isGroupEnd = t2.get$isGroupEnd();
- newParent.addChild$1(newChild);
- }
- return newParent;
- },
- _clone_css$_visitChildren$2: function(newParent, oldParent) {
- return this._clone_css$_visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode_2);
- }
- };
- K.ColorExpression0.prototype = {
- get$span: function() {
- return this.value.originalSpan;
- },
- accept$1$1: function(visitor) {
- return visitor.visitColorExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return N.serializeValue(this.value, true, true);
- },
- $isExpression0: 1,
- $isAstNode0: 1
- };
- K.closure151.prototype = {
- call$1: function($arguments) {
- return K._rgb0("rgb", $arguments);
- },
- $signature: 3
- };
- K.closure152.prototype = {
- call$1: function($arguments) {
- return K._rgb0("rgb", $arguments);
- },
- $signature: 3
- };
- K.closure153.prototype = {
- call$1: function($arguments) {
- return K._rgbTwoArg0("rgb", $arguments);
- },
- $signature: 3
- };
- K.closure154.prototype = {
- call$1: function($arguments) {
- var parsed = K._parseChannels0("rgb", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof D.SassString0 ? parsed : K._rgb0("rgb", type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- K.closure155.prototype = {
- call$1: function($arguments) {
- return K._rgb0("rgba", $arguments);
- },
- $signature: 3
- };
- K.closure156.prototype = {
- call$1: function($arguments) {
- return K._rgb0("rgba", $arguments);
- },
- $signature: 3
- };
- K.closure157.prototype = {
- call$1: function($arguments) {
- return K._rgbTwoArg0("rgba", $arguments);
- },
- $signature: 3
- };
- K.closure158.prototype = {
- call$1: function($arguments) {
- var parsed = K._parseChannels0("rgba", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof D.SassString0 ? parsed : K._rgb0("rgba", type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- K.closure159.prototype = {
- call$1: function($arguments) {
- var color, t2,
- t1 = J.getInterceptor$asx($arguments),
- weight = t1.$index($arguments, 1).assertNumber$1("weight");
- if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
- if (weight.value !== 100 || !weight.hasUnit$1("%"))
- throw H.wrapException("Only one argument may be passed to the plain-CSS invert() function.");
- return K._functionString0("invert", t1.take$1($arguments, 1));
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- t1 = color.get$red();
- t2 = color.get$green();
- return K._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
- },
- $signature: 3
- };
- K.closure160.prototype = {
- call$1: function($arguments) {
- return K._hsl0("hsl", $arguments);
- },
- $signature: 3
- };
- K.closure161.prototype = {
- call$1: function($arguments) {
- return K._hsl0("hsl", $arguments);
- },
- $signature: 3
- };
- K.closure162.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
- return K._functionString0("hsl", $arguments);
- else
- throw H.wrapException(E.SassScriptException$0("Missing argument $lightness."));
- },
- $signature: 11
- };
- K.closure163.prototype = {
- call$1: function($arguments) {
- var parsed = K._parseChannels0("hsl", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof D.SassString0 ? parsed : K._hsl0("hsl", type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- K.closure164.prototype = {
- call$1: function($arguments) {
- return K._hsl0("hsla", $arguments);
- },
- $signature: 3
- };
- K.closure165.prototype = {
- call$1: function($arguments) {
- return K._hsl0("hsla", $arguments);
- },
- $signature: 3
- };
- K.closure166.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
- return K._functionString0("hsla", $arguments);
- else
- throw H.wrapException(E.SassScriptException$0("Missing argument $lightness."));
- },
- $signature: 11
- };
- K.closure167.prototype = {
- call$1: function($arguments) {
- var parsed = K._parseChannels0("hsla", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof D.SassString0 ? parsed : K._hsl0("hsla", type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- K.closure168.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof T.SassNumber0)
- return K._functionString0("grayscale", $arguments);
- return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
- },
- $signature: 3
- };
- K.closure169.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- degrees = t1.$index($arguments, 1).assertNumber$1("degrees");
- return color.changeHsl$1$hue(color.get$hue() + degrees.value);
- },
- $signature: 18
- };
- K.closure170.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 18
- };
- K.closure171.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 18
- };
- K.closure172.prototype = {
- call$1: function($arguments) {
- return new D.SassString0("saturate(" + N.serializeValue(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
- },
- $signature: 11
- };
- K.closure173.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 18
- };
- K.closure174.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 18
- };
- K.closure175.prototype = {
- call$1: function($arguments) {
- var color,
- argument = J.$index$asx($arguments, 0);
- if (argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0()))
- return K._functionString0("alpha", $arguments);
- color = argument.assertColor$1("color");
- return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
- },
- $signature: 3
- };
- K.closure176.prototype = {
- call$1: function($arguments) {
- var t1,
- argList = J.$index$asx($arguments, 0).get$asList();
- if (argList.length !== 0 && C.JSArray_methods.every$1(argList, new K._closure25()))
- return K._functionString0("alpha", $arguments);
- t1 = argList.length;
- if (t1 === 0)
- throw H.wrapException(E.SassScriptException$0("Missing argument $color."));
- else
- throw H.wrapException(E.SassScriptException$0("Only 1 argument allowed, but " + t1 + " were passed."));
- },
- $signature: 11
- };
- K._closure25.prototype = {
- call$1: function(argument) {
- return argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0());
- }
- };
- K.closure177.prototype = {
- call$1: function($arguments) {
- var color,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof T.SassNumber0)
- return K._functionString0("opacity", $arguments);
- color = t1.$index($arguments, 0).assertColor$1("color");
- return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
- },
- $signature: 3
- };
- K.closure204.prototype = {
- call$1: function($arguments) {
- var result, color, t2,
- t1 = J.getInterceptor$asx($arguments),
- weight = t1.$index($arguments, 1).assertNumber$1("weight");
- if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
- if (weight.value !== 100 || !weight.hasUnit$1("%"))
- throw H.wrapException("Only one argument may be passed to the plain-CSS invert() function.");
- result = K._functionString0("invert", t1.take$1($arguments, 1));
- N.warn0("Passing a number to color.invert() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- t1 = color.get$red();
- t2 = color.get$green();
- return K._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
- },
- $signature: 3
- };
- K.closure205.prototype = {
- call$1: function($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
- result = K._functionString0("grayscale", t1.take$1($arguments, 1));
- N.warn0("Passing a number to color.grayscale() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
- },
- $signature: 3
- };
- K.closure206.prototype = {
- call$1: function($arguments) {
- var result, color,
- argument = J.$index$asx($arguments, 0);
- if (argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0())) {
- result = K._functionString0("alpha", $arguments);
- N.warn0("Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- color = argument.assertColor$1("color");
- return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
- },
- $signature: 3
- };
- K.closure207.prototype = {
- call$1: function($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (C.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new K._closure27())) {
- result = K._functionString0("alpha", $arguments);
- N.warn0("Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- throw H.wrapException(E.SassScriptException$0("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed."));
- },
- $signature: 11
- };
- K._closure27.prototype = {
- call$1: function(argument) {
- return argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0());
- }
- };
- K.closure208.prototype = {
- call$1: function($arguments) {
- var result, color,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
- result = K._functionString0("opacity", $arguments);
- N.warn0("Passing a number to color.opacity() is deprecated.\n\nRecommendation: " + result.toString$0(0), false);
- return result;
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- return new T.SassNumber0(color.alpha, C.List_empty, C.List_empty, null);
- },
- $signature: 3
- };
- K.closure191.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$red();
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure190.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$green();
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure189.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$blue();
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure188.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return K._mixColors0(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
- },
- $signature: 18
- };
- K.closure187.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$hue(),
- t2 = H.setRuntimeTypeInfo(["deg"], type$.JSArray_String);
- t2 = P.List_List$unmodifiable(t2, type$.String);
- return new T.SassNumber0(t1, t2, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure186.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$saturation(),
- t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
- t2 = P.List_List$unmodifiable(t2, type$.String);
- return new T.SassNumber0(t1, t2, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure185.prototype = {
- call$1: function($arguments) {
- var t1 = J.get$first$ax($arguments).assertColor$1("color").get$lightness(),
- t2 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
- t2 = P.List_List$unmodifiable(t2, type$.String);
- return new T.SassNumber0(t1, t2, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure184.prototype = {
- call$1: function($arguments) {
- var color = J.$index$asx($arguments, 0).assertColor$1("color");
- return color.changeHsl$1$hue(color.get$hue() + 180);
- },
- $signature: 18
- };
- K.closure182.prototype = {
- call$1: function($arguments) {
- var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4, t5, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- if (argumentList._list1$_contents.length !== 0)
- throw H.wrapException(E.SassScriptException$0("Only one positional argument is allowed. All other arguments must be passed by name."));
- argumentList._argument_list$_wereKeywordsAccessed = true;
- keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2);
- t1 = new K.closure_getInRange2(keywords);
- t2 = t1.call$3("red", -255, 255);
- red = t2 == null ? _null : T.fuzzyRound0(t2);
- t2 = t1.call$3("green", -255, 255);
- green = t2 == null ? _null : T.fuzzyRound0(t2);
- t2 = t1.call$3("blue", -255, 255);
- blue = t2 == null ? _null : T.fuzzyRound0(t2);
- t2 = keywords.remove$1(0, "hue");
- t2 = t2 == null ? _null : t2.assertNumber$1("hue");
- hue = t2 == null ? _null : t2.value;
- saturation = t1.call$3("saturation", -100, 100);
- lightness = t1.call$3("lightness", -100, 100);
- alpha = t1.call$3("alpha", -1, 1);
- if (keywords.get$isNotEmpty(keywords))
- 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._closure24(), type$.Object), "or")) + "."));
- t1 = red == null;
- hasRgb = !t1 || green != null || blue != null;
- t2 = hue == null;
- hasHsl = !t2 || saturation != null || lightness != null;
- if (hasRgb) {
- if (hasHsl)
- throw H.wrapException(E.SassScriptException$0("RGB parameters may not be passed along with HSL parameters."));
- t2 = color.get$red();
- t2 = H._asIntNullable(C.JSInt_methods.clamp$2(t2 + (t1 ? 0 : red), 0, 255));
- t3 = color.get$green();
- t1 = H._asIntNullable(C.JSInt_methods.clamp$2(t3 + (green == null ? 0 : green), 0, 255));
- t3 = color.get$blue();
- t3 = H._asIntNullable(C.JSInt_methods.clamp$2(t3 + (blue == null ? 0 : blue), 0, 255));
- t4 = alpha == null ? 0 : alpha;
- return color.changeRgb$4$alpha$blue$green$red(C.JSNumber_methods.clamp$2(color.alpha + t4, 0, 1), t3, t1, t2);
- } else if (hasHsl) {
- t1 = color.get$hue();
- t2 = t2 ? 0 : hue;
- t3 = color.get$saturation();
- t3 = C.JSNumber_methods.clamp$2(t3 + (saturation == null ? 0 : saturation), 0, 100);
- t4 = color.get$lightness();
- t4 = C.JSNumber_methods.clamp$2(t4 + (lightness == null ? 0 : lightness), 0, 100);
- t5 = alpha == null ? 0 : alpha;
- return color.changeHsl$4$alpha$hue$lightness$saturation(C.JSNumber_methods.clamp$2(color.alpha + t5, 0, 1), t1 + t2, t4, t3);
- } else if (alpha != null)
- return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + alpha, 0, 1));
- else
- return color;
- },
- $signature: 18
- };
- K.closure_getInRange2.prototype = {
- call$3: function($name, min, max) {
- var t1 = this.keywords.remove$1(0, $name);
- t1 = t1 == null ? null : t1.assertNumber$1($name);
- return t1 == null ? null : t1.valueInRange$3(min, max, $name);
- }
- };
- K._closure24.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- K.closure181.prototype = {
- call$1: function($arguments) {
- var keywords, t2, red, green, blue, saturation, lightness, alpha, hasRgb, hasHsl, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- if (argumentList._list1$_contents.length !== 0)
- throw H.wrapException(E.SassScriptException$0("Only one positional argument is allowed. All other arguments must be passed by name."));
- argumentList._argument_list$_wereKeywordsAccessed = true;
- keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2);
- t1 = new K.closure_getScale0(keywords);
- t2 = new K.closure_scaleValue0();
- red = t1.call$1("red");
- green = t1.call$1("green");
- blue = t1.call$1("blue");
- saturation = t1.call$1("saturation");
- lightness = t1.call$1("lightness");
- alpha = t1.call$1("alpha");
- if (keywords.get$isNotEmpty(keywords))
- 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$.Object), "or")) + "."));
- hasRgb = red != null || green != null || blue != null;
- hasHsl = saturation != null || lightness != null;
- if (hasRgb) {
- if (hasHsl)
- throw H.wrapException(E.SassScriptException$0("RGB parameters may not be passed along with HSL parameters."));
- t1 = T.fuzzyRound0(t2.call$3(color.get$red(), red, 255));
- t3 = T.fuzzyRound0(t2.call$3(color.get$green(), green, 255));
- t4 = T.fuzzyRound0(t2.call$3(color.get$blue(), blue, 255));
- return color.changeRgb$4$alpha$blue$green$red(t2.call$3(color.alpha, alpha, 1), t4, t3, t1);
- } else if (hasHsl) {
- t1 = t2.call$3(color.get$saturation(), saturation, 100);
- t3 = t2.call$3(color.get$lightness(), lightness, 100);
- return color.changeHsl$3$alpha$lightness$saturation(t2.call$3(color.alpha, alpha, 1), t3, t1);
- } else if (alpha != null)
- return color.changeAlpha$1(t2.call$3(color.alpha, alpha, 1));
- else
- return color;
- },
- $signature: 18
- };
- K.closure_getScale0.prototype = {
- call$1: function($name) {
- var number,
- value = this.keywords.remove$1(0, $name);
- if (value == null)
- return null;
- number = value.assertNumber$1($name);
- number.assertUnit$2("%", $name);
- return number.valueInRange$3(-100, 100, $name) / 100;
- }
- };
- K.closure_scaleValue0.prototype = {
- call$3: function(current, scale, max) {
- if (scale == null)
- return current;
- return current + (scale > 0 ? max - current : current) * scale;
- }
- };
- K._closure23.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- K.closure180.prototype = {
- call$1: function($arguments) {
- var keywords, t2, red, green, blue, hue, saturation, lightness, alpha, hasRgb, hasHsl, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- if (argumentList._list1$_contents.length !== 0)
- throw H.wrapException(E.SassScriptException$0("Only one positional argument is allowed. All other arguments must be passed by name."));
- argumentList._argument_list$_wereKeywordsAccessed = true;
- keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2);
- t1 = new K.closure_getInRange1(keywords);
- t2 = t1.call$3("red", 0, 255);
- red = t2 == null ? _null : T.fuzzyRound0(t2);
- t2 = t1.call$3("green", 0, 255);
- green = t2 == null ? _null : T.fuzzyRound0(t2);
- t2 = t1.call$3("blue", 0, 255);
- blue = t2 == null ? _null : T.fuzzyRound0(t2);
- t2 = keywords.remove$1(0, "hue");
- t2 = t2 == null ? _null : t2.assertNumber$1("hue");
- hue = t2 == null ? _null : t2.value;
- saturation = t1.call$3("saturation", 0, 100);
- lightness = t1.call$3("lightness", 0, 100);
- alpha = t1.call$3("alpha", 0, 1);
- if (keywords.get$isNotEmpty(keywords))
- 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$.Object), "or")) + "."));
- hasRgb = red != null || green != null || blue != null;
- hasHsl = hue != null || saturation != null || lightness != null;
- if (hasRgb) {
- if (hasHsl)
- throw H.wrapException(E.SassScriptException$0("RGB parameters may not be passed along with HSL parameters."));
- return color.changeRgb$4$alpha$blue$green$red(alpha, blue, green, red);
- } else if (hasHsl)
- return color.changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation);
- else if (alpha != null)
- return color.changeAlpha$1(alpha);
- else
- return color;
- },
- $signature: 18
- };
- K.closure_getInRange1.prototype = {
- call$3: function($name, min, max) {
- var t1 = this.keywords.remove$1(0, $name);
- t1 = t1 == null ? null : t1.assertNumber$1($name);
- return t1 == null ? null : t1.valueInRange$3(min, max, $name);
- }
- };
- K._closure22.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- K.closure183.prototype = {
- call$1: function($arguments) {
- var color = J.$index$asx($arguments, 0).assertColor$1("color"),
- t1 = new K.closure_hexString0();
- 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);
- },
- $signature: 11
- };
- K.closure_hexString0.prototype = {
- call$1: function(component) {
- return C.JSString_methods.padLeft$2(J.toRadixString$1$n(component, 16), 2, "0").toUpperCase();
- },
- $signature: 36
- };
- K._functionString_closure0.prototype = {
- call$1: function(argument) {
- argument.toString;
- return N.serializeValue(argument, false, true);
- }
- };
- K._removedColorFunction_closure0.prototype = {
- call$1: function($arguments) {
- var t1 = this.name,
- t2 = J.getInterceptor$asx($arguments),
- t3 = "The function " + t1 + "() isn't in the sass:color module.\n\nRecommendation: color.adjust(" + H.S(t2.$index($arguments, 0)) + ", $" + this.argument + ": ";
- throw H.wrapException(E.SassScriptException$0(t3 + (this.negative ? "-" : "") + H.S(t2.$index($arguments, 1)) + ")\n\nMore info: https://sass-lang.com/documentation/functions/color#" + t1));
- },
- $signature: 52
- };
- K._parseChannels_closure0.prototype = {
- call$1: function(value) {
- return value.get$isVar();
- }
- };
- K._NodeSassColor.prototype = {};
- K.closure239.prototype = {
- call$6: function(thisArg, redOrArgb, green, blue, alpha, dartValue) {
- var red, t1, t2, t3, t4;
- if (dartValue != null) {
- J.set$dartValue$x(thisArg, dartValue);
- return;
- }
- if (green == null) {
- H._asIntNullable(redOrArgb);
- alpha = C.JSInt_methods._shrOtherPositive$1(redOrArgb, 24) / 255;
- red = C.JSInt_methods.$mod(C.JSInt_methods._shrOtherPositive$1(redOrArgb, 16), 256);
- green = C.JSInt_methods.$mod(C.JSInt_methods._shrOtherPositive$1(redOrArgb, 8), 256);
- blue = C.JSInt_methods.$mod(redOrArgb, 256);
- } else
- red = redOrArgb;
- t1 = C.JSNumber_methods.round$0(J.clamp$2$n(red, 0, 255));
- t2 = C.JSNumber_methods.round$0(C.JSNumber_methods.clamp$2(green, 0, 255));
- t3 = C.JSNumber_methods.round$0(J.clamp$2$n(blue, 0, 255));
- t4 = alpha == null ? null : C.JSNumber_methods.clamp$2(alpha, 0, 1);
- J.set$dartValue$x(thisArg, K.SassColor$rgb0(t1, t2, t3, t4 == null ? 1 : t4, null));
- },
- call$2: function(thisArg, redOrArgb) {
- return this.call$6(thisArg, redOrArgb, null, null, null, null);
- },
- call$3: function(thisArg, redOrArgb, green) {
- return this.call$6(thisArg, redOrArgb, green, null, null, null);
- },
- call$4: function(thisArg, redOrArgb, green, blue) {
- return this.call$6(thisArg, redOrArgb, green, blue, null, null);
- },
- call$5: function(thisArg, redOrArgb, green, blue, alpha) {
- return this.call$6(thisArg, redOrArgb, green, blue, alpha, null);
- },
- "call*": "call$6",
- $requiredArgCount: 2,
- $defaultValues: function() {
- return [null, null, null, null];
- }
- };
- K.closure240.prototype = {
- call$1: function(thisArg) {
- return J.get$dartValue$x(thisArg).get$red();
- }
- };
- K.closure241.prototype = {
- call$1: function(thisArg) {
- return J.get$dartValue$x(thisArg).get$green();
- }
- };
- K.closure242.prototype = {
- call$1: function(thisArg) {
- return J.get$dartValue$x(thisArg).get$blue();
- }
- };
- K.closure243.prototype = {
- call$1: function(thisArg) {
- return J.get$dartValue$x(thisArg).alpha;
- }
- };
- K.closure244.prototype = {
- call$2: function(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$red(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- K.closure245.prototype = {
- call$2: function(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$green(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- K.closure246.prototype = {
- call$2: function(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$blue(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- K.closure247.prototype = {
- call$2: function(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$alpha(J.clamp$2$n(value, 0, 1)));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- K.closure248.prototype = {
- call$1: function(thisArg) {
- return J.toString$0$(J.get$dartValue$x(thisArg));
- }
- };
- K.SassColor0.prototype = {
- get$red: function() {
- if (this._color1$_red == null)
- this._color1$_hslToRgb$0();
- return this._color1$_red;
- },
- get$green: function() {
- if (this._color1$_green == null)
- this._color1$_hslToRgb$0();
- return this._color1$_green;
- },
- get$blue: function() {
- if (this._color1$_blue == null)
- this._color1$_hslToRgb$0();
- return this._color1$_blue;
- },
- get$hue: function() {
- if (this._color1$_hue == null)
- this._color1$_rgbToHsl$0();
- return this._color1$_hue;
- },
- get$saturation: function() {
- if (this._color1$_saturation == null)
- this._color1$_rgbToHsl$0();
- return this._color1$_saturation;
- },
- get$lightness: function() {
- if (this._color1$_lightness == null)
- this._color1$_rgbToHsl$0();
- return this._color1$_lightness;
- },
- get$original: function() {
- var t1 = this.originalSpan;
- return t1 == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
- },
- accept$1$1: function(visitor) {
- return visitor.visitColor$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertColor$1: function($name) {
- return this;
- },
- changeRgb$4$alpha$blue$green$red: function(alpha, blue, green, red) {
- var _this = this,
- t1 = red == null ? _this.get$red() : red,
- t2 = green == null ? _this.get$green() : green,
- t3 = blue == null ? _this.get$blue() : blue;
- return K.SassColor$rgb0(t1, t2, t3, alpha == null ? _this.alpha : alpha, null);
- },
- changeRgb$3$blue$green$red: function(blue, green, red) {
- return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
- },
- changeRgb$1$alpha: function(alpha) {
- return this.changeRgb$4$alpha$blue$green$red(alpha, null, null, null);
- },
- changeRgb$1$blue: function(blue) {
- return this.changeRgb$4$alpha$blue$green$red(null, blue, null, null);
- },
- changeRgb$1$green: function(green) {
- return this.changeRgb$4$alpha$blue$green$red(null, null, green, null);
- },
- changeRgb$1$red: function(red) {
- return this.changeRgb$4$alpha$blue$green$red(null, null, null, red);
- },
- changeHsl$4$alpha$hue$lightness$saturation: function(alpha, hue, lightness, saturation) {
- var _this = this,
- t1 = hue == null ? _this.get$hue() : hue,
- t2 = saturation == null ? _this.get$saturation() : saturation,
- t3 = lightness == null ? _this.get$lightness() : lightness;
- return K.SassColor$hsl0(t1, t2, t3, alpha == null ? _this.alpha : alpha);
- },
- changeHsl$3$alpha$lightness$saturation: function(alpha, lightness, saturation) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(alpha, null, lightness, saturation);
- },
- changeHsl$1$saturation: function(saturation) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
- },
- changeHsl$1$lightness: function(lightness) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
- },
- changeHsl$1$hue: function(hue) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
- },
- changeAlpha$1: function(alpha) {
- var _this = this;
- 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);
- },
- plus$1: function(other) {
- if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
- return this.super$Value$plus0(other);
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + H.S(other) + '".'));
- },
- minus$1: function(other) {
- if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
- return this.super$Value$minus0(other);
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + H.S(other) + '".'));
- },
- dividedBy$1: function(other) {
- if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
- return this.super$Value$dividedBy0(other);
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " / " + H.S(other) + '".'));
- },
- modulo$1: function(other) {
- return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- 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;
- },
- get$hashCode: function(_) {
- var _this = this;
- 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);
- },
- _color1$_rgbToHsl$0: function() {
- var t2, t3, _this = this,
- scaledRed = _this.get$red() / 255,
- scaledGreen = _this.get$green() / 255,
- scaledBlue = _this.get$blue() / 255,
- max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
- min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
- delta = max - min,
- t1 = max === min;
- if (t1)
- _this._color1$_hue = 0;
- else if (max === scaledRed)
- _this._color1$_hue = C.JSDouble_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
- else if (max === scaledGreen)
- _this._color1$_hue = C.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
- else if (max === scaledBlue)
- _this._color1$_hue = C.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
- t2 = max + min;
- t3 = 50 * t2;
- _this._color1$_lightness = t3;
- if (t1)
- _this._color1$_saturation = 0;
- else {
- t1 = 100 * delta;
- if (t3 < 50)
- _this._color1$_saturation = t1 / t2;
- else
- _this._color1$_saturation = t1 / (2 - max - min);
- }
- },
- _color1$_hslToRgb$0: function() {
- var _this = this,
- scaledHue = _this.get$hue() / 360,
- scaledSaturation = _this.get$saturation() / 100,
- scaledLightness = _this.get$lightness() / 100,
- m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
- m1 = scaledLightness * 2 - m2;
- _this._color1$_red = _this._color1$_hueToRgb$3(m1, m2, scaledHue + 0.3333333333333333);
- _this._color1$_green = _this._color1$_hueToRgb$3(m1, m2, scaledHue);
- _this._color1$_blue = _this._color1$_hueToRgb$3(m1, m2, scaledHue - 0.3333333333333333);
- },
- _color1$_hueToRgb$3: function(m1, m2, hue) {
- var result;
- if (hue < 0)
- ++hue;
- if (hue > 1)
- --hue;
- if (hue < 0.16666666666666666)
- result = m1 + (m2 - m1) * hue * 6;
- else if (hue < 0.5)
- result = m2;
- else
- result = hue < 0.6666666666666666 ? m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6 : m1;
- return T.fuzzyRound0(result * 255);
- }
- };
- X.closure178.prototype = {
- call$2: function(_, color) {
- return color;
- }
- };
- X.closure179.prototype = {
- call$2: function($name, _) {
- return $name;
- }
- };
- R.ModifiableCssComment0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssComment$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $isCssComment0: 1,
- get$span: function() {
- return this.span;
- }
- };
- U._compileStylesheet_closure1.prototype = {
- call$1: function(url) {
- var t1, t2, _null = null;
- if (url === "")
- t1 = J.toString$0$(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));
- else {
- t1 = P.Uri_parse(url);
- t2 = this.importCache._import_cache$_resultsCache.$index(0, t1);
- t2 = t2 == null ? _null : t2.get$sourceMapUrl();
- t1 = J.toString$0$(t2 == null ? t1 : t2);
- }
- return t1;
- }
- };
- S.ComplexSelector0.prototype = {
- get$minSpecificity: function() {
- if (this._complex0$_minSpecificity == null)
- this._complex0$_computeSpecificity$0();
- return this._complex0$_minSpecificity;
- },
- get$maxSpecificity: function() {
- if (this._complex0$_maxSpecificity == null)
- this._complex0$_computeSpecificity$0();
- return this._complex0$_maxSpecificity;
- },
- get$isInvisible: function() {
- var t1 = this._complex0$_isInvisible;
- if (t1 != null)
- return t1;
- return this._complex0$_isInvisible = C.JSArray_methods.any$1(this.components, new S.ComplexSelector_isInvisible_closure0());
- },
- accept$1$1: function(visitor) {
- return visitor.visitComplexSelector$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- _complex0$_computeSpecificity$0: function() {
- var t1, t2, component, t3, _this = this,
- _i = _this._complex0$_maxSpecificity = _this._complex0$_minSpecificity = 0;
- for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
- component = t1[_i];
- if (component instanceof X.CompoundSelector0) {
- t3 = _this._complex0$_minSpecificity;
- if (component._compound0$_minSpecificity == null)
- component._compound0$_computeSpecificity$0();
- _this._complex0$_minSpecificity = t3 + component._compound0$_minSpecificity;
- t3 = _this._complex0$_maxSpecificity;
- if (component._compound0$_maxSpecificity == null)
- component._compound0$_computeSpecificity$0();
- _this._complex0$_maxSpecificity = t3 + component._compound0$_maxSpecificity;
- }
- }
- },
- get$hashCode: function(_) {
- return C.C_ListEquality.hash$1(this.components);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof S.ComplexSelector0 && C.C_ListEquality.equals$2(this.components, other.components);
- }
- };
- S.ComplexSelector_isInvisible_closure0.prototype = {
- call$1: function(component) {
- return component instanceof X.CompoundSelector0 && component.get$isInvisible();
- }
- };
- S.ComplexSelectorComponent0.prototype = {};
- S.Combinator0.prototype = {
- toString$0: function(_) {
- return this._complex0$_text;
- },
- $isComplexSelectorComponent0: 1
- };
- X.CompoundSelector0.prototype = {
- get$isInvisible: function() {
- return C.JSArray_methods.any$1(this.components, new X.CompoundSelector_isInvisible_closure0());
- },
- accept$1$1: function(visitor) {
- return visitor.visitCompoundSelector$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- _compound0$_computeSpecificity$0: function() {
- var t1, t2, simple, _this = this,
- _i = _this._compound0$_maxSpecificity = _this._compound0$_minSpecificity = 0;
- for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
- simple = t1[_i];
- _this._compound0$_minSpecificity = _this._compound0$_minSpecificity + simple.get$minSpecificity();
- _this._compound0$_maxSpecificity = _this._compound0$_maxSpecificity + simple.get$maxSpecificity();
- }
- },
- get$hashCode: function(_) {
- return C.C_ListEquality.hash$1(this.components);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof X.CompoundSelector0 && C.C_ListEquality.equals$2(this.components, other.components);
- },
- $isComplexSelectorComponent0: 1
- };
- X.CompoundSelector_isInvisible_closure0.prototype = {
- call$1: function(component) {
- return component.get$isInvisible();
- }
- };
- A.Configuration0.prototype = {
- throughForward$1: function($forward) {
- var t1, t2,
- newValues = this._configuration$_values;
- if (newValues.get$isEmpty(newValues))
- return C.Configuration_Map_empty_null_true0;
- t1 = $forward.prefix;
- if (t1 != null)
- newValues = new R.UnprefixedMapView0(newValues, t1, type$.UnprefixedMapView_ConfiguredValue_2);
- t1 = $forward.shownVariables;
- if (t1 != null)
- newValues = K.LimitedMapView$safelist0(newValues, t1, type$.String, type$.ConfiguredValue_2);
- else {
- t1 = $forward.hiddenVariables;
- if (t1 == null)
- t2 = null;
- else {
- t2 = t1._base;
- t2 = t2.get$isNotEmpty(t2);
- }
- if (t2 === true)
- newValues = K.LimitedMapView$blocklist0(newValues, t1, type$.String, type$.ConfiguredValue_2);
- }
- return this.isImplicit ? new A.Configuration0(newValues, null, true) : new A.Configuration0(newValues, this.nodeWithSpan, false);
- }
- };
- Z.ConfiguredValue0.prototype = {};
- Z.ConfiguredVariable0.prototype = {
- toString$0: function(_) {
- var t1 = "$" + this.name + ": " + H.S(this.expression);
- return t1 + (this.isGuarded ? " !default" : "");
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- Y.ContentBlock0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitContentBlock$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t2,
- t1 = this.$arguments;
- t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
- t2 = this.children;
- return t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
- }
- };
- Q.ContentRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitContentRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.$arguments;
- return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- Q.closure213.prototype = {
- call$1: function($function) {
- return $function.name;
- }
- };
- Q.CssParser0.prototype = {
- get$plainCss: function() {
- return true;
- },
- silentComment$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- this.super$Parser$silentComment0();
- this.error$2("Silent comments aren't allowed in plain CSS.", t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- atRule$2$root: function(child, root) {
- var $name, urlStart, next, url, urlSpan, queries, t2, t3, t4, t5, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(64);
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- switch ($name.get$asPlain()) {
- case "at-root":
- case "content":
- case "debug":
- case "each":
- case "error":
- case "extend":
- case "for":
- case "function":
- case "if":
- case "include":
- case "mixin":
- case "return":
- case "warn":
- case "while":
- _this.almostAnyValue$0();
- _this.error$2("This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
- break;
- case "charset":
- _this.string$0();
- if (!root)
- _this.error$2("This at-rule is not allowed here.", t1.spanFrom$1(start));
- return null;
- case "import":
- urlStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
- next = t1.peekChar$0();
- url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new D.StringExpression0(_this.interpolatedString$0().asInterpolation$1$static(true), false);
- urlSpan = t1.spanFrom$1(urlStart);
- _this.whitespace$0();
- queries = _this.tryImportQueries$0();
- _this.expectStatementSeparator$1("@import rule");
- t2 = X.Interpolation$0([url], urlSpan);
- t3 = t1.spanFrom$1(urlStart);
- t4 = queries == null;
- t5 = t4 ? null : queries.item1;
- t2 = H.setRuntimeTypeInfo([new Q.StaticImport0(t2, t5, t4 ? null : queries.item2, t3)], type$.JSArray_Import_2);
- t1 = t1.spanFrom$1(start);
- return new B.ImportRule0(P.List_List$unmodifiable(t2, type$.Import_2), t1);
- case "media":
- return _this.mediaRule$1(start);
- case "-moz-document":
- return _this.mozDocumentRule$2(start, $name);
- case "supports":
- return _this.supportsRule$1(start);
- default:
- return _this.unknownAtRule$2(start, $name);
- }
- },
- identifierLike$0: function() {
- var t2, $arguments, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- identifier = _this.interpolatedIdentifier$0(),
- plain = identifier.get$asPlain(),
- specialFunction = _this.trySpecialFunction$2(plain.toLowerCase(), start);
- if (specialFunction != null)
- return specialFunction;
- t2 = t1._string_scanner$_position;
- if (!t1.scanChar$1(40))
- return new D.StringExpression0(identifier, false);
- $arguments = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
- if (!t1.scanChar$1(41)) {
- do {
- _this.whitespace$0();
- $arguments.push(_this.expression$1$singleEquals(true));
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- t1.expectChar$1(41);
- }
- if ($.$get$_disallowedFunctionNames0().contains$1(0, plain))
- _this.error$2("This function isn't allowed in plain CSS.", t1.spanFrom$1(start));
- return new F.FunctionExpression0(null, X.Interpolation$0([new D.StringExpression0(identifier, false)], identifier.span), X.ArgumentInvocation$0($arguments, C.Map_empty9, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), null, null), t1.spanFrom$1(start));
- }
- };
- Q.DebugRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitDebugRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@debug " + H.S(this.expression) + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- L.ModifiableCssDeclaration0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssDeclaration$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$span: function() {
- return this.span;
- }
- };
- L.Declaration0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitDeclaration$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return H.S(this.name) + ": " + H.S(this.value) + ";";
- },
- get$span: function() {
- return this.span;
- }
- };
- L.SupportsDeclaration0.prototype = {
- toString$0: function(_) {
- return "(" + H.S(this.name) + ": " + H.S(this.value) + ")";
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.DynamicImport0.prototype = {
- toString$0: function(_) {
- return new D.StringExpression0(X.Interpolation$0([this.url], null), true).asInterpolation$1$static(true).get$asPlain();
- },
- $isImport0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- V.EachRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitEachRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.variables,
- t2 = this.children;
- 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, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- V.EachRule_toString_closure0.prototype = {
- call$1: function(variable) {
- return C.JSString_methods.$add("$", variable);
- }
- };
- T.EmptyExtender0.prototype = {
- get$isEmpty: function(_) {
- return true;
- },
- get$simpleSelectors: function() {
- return C.C_EmptyUnmodifiableSet0;
- },
- extensionsWhereTarget$1: function(callback) {
- return C.List_empty13;
- },
- addExtensions$1: function(extenders) {
- throw H.wrapException(P.UnsupportedError$("addExtensions() can't be called for a const Extender."));
- },
- clone$0: function() {
- return C.Tuple2_EmptyExtender_Map_empty0;
- },
- $isExtender0: 1
- };
- O.Environment0.prototype = {
- closure$0: function() {
- var t5, t6, t7, _this = this,
- t1 = _this._environment0$_forwardedModules,
- t2 = _this._environment0$_forwardedModuleNodes,
- t3 = _this._environment0$_nestedForwardedModules,
- t4 = _this._environment0$_variables;
- t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
- t5 = _this._environment0$_variableNodes;
- if (t5 == null)
- t5 = null;
- else
- t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
- t6 = _this._environment0$_functions;
- t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
- t7 = _this._environment0$_mixins;
- t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
- 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);
- },
- addModule$3$namespace: function(module, nodeWithSpan, namespace) {
- var t1, t2, _this = this;
- if (namespace == null) {
- _this._environment0$_globalModules.add$1(0, module);
- _this._environment0$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
- _this._environment0$_allModules.push(module);
- for (t1 = J.get$iterator$ax(C.JSArray_methods.get$first(_this._environment0$_variables).get$keys()); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (module.get$variables().containsKey$1(t2))
- throw H.wrapException(E.SassScriptException$0('This module and the new module both define a variable named "$' + H.S(t2) + '".'));
- }
- } else {
- t1 = _this._environment0$_modules;
- if (t1.containsKey$1(namespace))
- throw H.wrapException(E.MultiSpanSassScriptException$0("There's already a module with namespace \"" + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._environment0$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.FileSpan, type$.String)));
- t1.$indexSet(0, namespace, module);
- _this._environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
- _this._environment0$_allModules.push(module);
- }
- },
- forwardModule$2: function(module, rule) {
- var view, t1, t2, _this = this;
- if (_this._environment0$_forwardedModules == null)
- _this._environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_Callable_2);
- if (_this._environment0$_forwardedModuleNodes == null)
- _this._environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
- view = R.ForwardedModuleView_ifNecessary0(module, rule, type$.Callable_2);
- for (t1 = _this._environment0$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
- t2 = t1._collection$_current;
- _this._environment0$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
- _this._environment0$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
- _this._environment0$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
- }
- _this._environment0$_allModules.push(module);
- _this._environment0$_forwardedModules.add$1(0, view);
- _this._environment0$_forwardedModuleNodes.$indexSet(0, view, rule);
- },
- _environment0$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
- var larger, smaller, t1, t2, $name;
- if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
- larger = oldMembers;
- smaller = newMembers;
- } else {
- larger = newMembers;
- smaller = oldMembers;
- }
- for (t1 = J.get$iterator$ax(smaller.get$keys()), t2 = type === "variable"; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- if (!larger.containsKey$1($name))
- continue;
- if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
- continue;
- if (t2)
- $name = "$" + H.S($name);
- 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$.FileSpan, type$.String)));
- }
- },
- importForwards$1: function(module) {
- var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
- t1 = module._environment0$_environment,
- forwarded = t1._environment0$_forwardedModules;
- if (forwarded == null)
- return;
- if (_this._environment0$_forwardedModules != null) {
- t2 = P.LinkedHashSet_LinkedHashSet(type$.Module_Callable_2);
- for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._environment0$_globalModules; t3.moveNext$0();) {
- t5 = t3._collection$_current;
- if (!_this._environment0$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
- t2.add$1(0, t5);
- }
- forwarded = t2;
- }
- if (_this._environment0$_forwardedModules == null)
- _this._environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.Module_Callable_2);
- if (_this._environment0$_forwardedModuleNodes == null)
- _this._environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
- t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String>");
- t3 = t2._eval$1("Iterable.E");
- forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure3(), t2), t3);
- forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure4(), t2), t3);
- forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$from(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure5(), t2), t3);
- t2 = _this._environment0$_variables;
- t3 = t2.length;
- if (t3 === 1) {
- for (t3 = _this._environment0$_globalModules, t4 = t3.toList$0(0), t5 = t4.length, t6 = type$.Callable_2, t7 = _this._environment0$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
- module = t4[_i];
- shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
- if (shadowed != null) {
- t3.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view0$_inner;
- t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8) {
- t3.add$1(0, shadowed);
- t7.$indexSet(0, shadowed, t7.remove$1(0, module));
- }
- }
- }
- for (t4 = _this._environment0$_forwardedModules.toList$0(0), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
- module = t4[_i];
- shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
- if (shadowed != null) {
- _this._environment0$_forwardedModules.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view0$_inner;
- t8 = J.get$isEmpty$asx(t8.get$css(t8).get$children());
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8) {
- _this._environment0$_forwardedModules.add$1(0, shadowed);
- t8 = _this._environment0$_forwardedModuleNodes;
- t8.$indexSet(0, shadowed, t8.remove$1(0, module));
- }
- }
- }
- t3.addAll$1(0, forwarded);
- t7.addAll$1(0, t1._environment0$_forwardedModuleNodes);
- _this._environment0$_forwardedModules.addAll$1(0, forwarded);
- _this._environment0$_forwardedModuleNodes.addAll$1(0, t1._environment0$_forwardedModuleNodes);
- } else {
- t1 = _this._environment0$_nestedForwardedModules;
- 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$.List_Module_Callable_2) : t1), forwarded);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._environment0$_variableNodes, t4 = t3 != null, t5 = _this._environment0$_variableIndices; t1.moveNext$0();) {
- t6 = t1._collection$_current;
- t5.remove$1(0, t6);
- J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
- if (t4)
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._environment0$_functionIndices, t3 = _this._environment0$_functions; t1.moveNext$0();) {
- t4 = t1._collection$_current;
- t2.remove$1(0, t4);
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
- }
- for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._environment0$_mixinIndices, t3 = _this._environment0$_mixins; t1.moveNext$0();) {
- t4 = t1._collection$_current;
- t2.remove$1(0, t4);
- J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
- }
- },
- getVariable$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._environment0$_getModule$1(namespace).get$variables().$index(0, $name);
- if (_this._environment0$_lastVariableName === $name) {
- t1 = J.$index$asx(_this._environment0$_variables[_this._environment0$_lastVariableIndex], $name);
- return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
- }
- t1 = _this._environment0$_variableIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = index;
- t1 = J.$index$asx(_this._environment0$_variables[index], $name);
- return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
- }
- index = _this._environment0$_variableIndex$1($name);
- if (index == null)
- return _this._environment0$_getVariableFromGlobalModule$1($name);
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = index;
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._environment0$_variables[index], $name);
- return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
- },
- getVariable$1: function($name) {
- return this.getVariable$2$namespace($name, null);
- },
- _environment0$_getVariableFromGlobalModule$1: function($name) {
- return this._environment0$_fromOneModule$3($name, "variable", new O.Environment__getVariableFromGlobalModule_closure0($name));
- },
- getVariableNode$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
- if (_this._environment0$_lastVariableName === $name) {
- t1 = J.$index$asx(_this._environment0$_variableNodes[_this._environment0$_lastVariableIndex], $name);
- return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- t1 = _this._environment0$_variableIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = index;
- t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
- return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- index = _this._environment0$_variableIndex$1($name);
- if (index == null)
- return _this._environment0$_getVariableNodeFromGlobalModule$1($name);
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = index;
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
- return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- },
- _environment0$_getVariableNodeFromGlobalModule$1: function($name) {
- var t1, value;
- for (t1 = this._environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
- value = t1._collection$_current.get$variableNodes().$index(0, $name);
- if (value != null)
- return value;
- }
- return null;
- },
- globalVariableExists$2$namespace: function($name, namespace) {
- if (namespace != null)
- return this._environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
- if (C.JSArray_methods.get$first(this._environment0$_variables).containsKey$1($name))
- return true;
- return this._environment0$_getVariableFromGlobalModule$1($name) != null;
- },
- globalVariableExists$1: function($name) {
- return this.globalVariableExists$2$namespace($name, null);
- },
- _environment0$_variableIndex$1: function($name) {
- var t1, i;
- for (t1 = this._environment0$_variables, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
- var t1, moduleWithName, t2, t3, index, _this = this;
- if (namespace != null) {
- _this._environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
- return;
- }
- if (global || _this._environment0$_variables.length === 1) {
- _this._environment0$_variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure2(_this, $name));
- t1 = _this._environment0$_variables;
- if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
- moduleWithName = _this._environment0$_fromOneModule$3($name, "variable", new O.Environment_setVariable_closure3($name));
- if (moduleWithName != null) {
- moduleWithName.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
- t1 = _this._environment0$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
- return;
- }
- if (_this._environment0$_nestedForwardedModules != null && !_this._environment0$_variableIndices.containsKey$1($name) && _this._environment0$_variableIndex$1($name) == null) {
- t1 = _this._environment0$_nestedForwardedModules;
- t1.toString;
- t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
- t1 = new H.ListIterator(t1, t1.get$length(t1));
- for (; t1.moveNext$0();)
- for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- if (t3.get$variables().containsKey$1($name)) {
- t3.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- }
- index = _this._environment0$_lastVariableName === $name ? _this._environment0$_lastVariableIndex : _this._environment0$_variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure4(_this, $name));
- if (!_this._environment0$_inSemiGlobalScope && index === 0) {
- index = _this._environment0$_variables.length - 1;
- _this._environment0$_variableIndices.$indexSet(0, $name, index);
- }
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = index;
- J.$indexSet$ax(_this._environment0$_variables[index], $name, value);
- t1 = _this._environment0$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(t1[index], $name, nodeWithSpan);
- },
- setVariable$4$global: function($name, value, nodeWithSpan, global) {
- return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
- },
- setLocalVariable$3: function($name, value, nodeWithSpan) {
- var index, _this = this,
- t1 = _this._environment0$_variables,
- t2 = t1.length;
- _this._environment0$_lastVariableName = $name;
- index = _this._environment0$_lastVariableIndex = t2 - 1;
- _this._environment0$_variableIndices.$indexSet(0, $name, index);
- J.$indexSet$ax(t1[index], $name, value);
- t1 = _this._environment0$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(t1[index], $name, nodeWithSpan);
- },
- getFunction$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null) {
- t1 = _this._environment0$_getModule$1(namespace);
- return t1.get$functions(t1).$index(0, $name);
- }
- t1 = _this._environment0$_functionIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- t1 = J.$index$asx(_this._environment0$_functions[index], $name);
- return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
- }
- index = _this._environment0$_functionIndex$1($name);
- if (index == null)
- return _this._environment0$_getFunctionFromGlobalModule$1($name);
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._environment0$_functions[index], $name);
- return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
- },
- _environment0$_getFunctionFromGlobalModule$1: function($name) {
- return this._environment0$_fromOneModule$3($name, "function", new O.Environment__getFunctionFromGlobalModule_closure0($name));
- },
- _environment0$_functionIndex$1: function($name) {
- var t1, i;
- for (t1 = this._environment0$_functions, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- getMixin$2$namespace: function($name, namespace) {
- var t1, index, _this = this;
- if (namespace != null)
- return _this._environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
- t1 = _this._environment0$_mixinIndices;
- index = t1.$index(0, $name);
- if (index != null) {
- t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
- return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
- }
- index = _this._environment0$_mixinIndex$1($name);
- if (index == null)
- return _this._environment0$_getMixinFromGlobalModule$1($name);
- t1.$indexSet(0, $name, index);
- t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
- return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
- },
- _environment0$_getMixinFromGlobalModule$1: function($name) {
- return this._environment0$_fromOneModule$3($name, "mixin", new O.Environment__getMixinFromGlobalModule_closure0($name));
- },
- _environment0$_mixinIndex$1: function($name) {
- var t1, i;
- for (t1 = this._environment0$_mixins, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- scope$1$3$semiGlobal$when: function(callback, semiGlobal, when) {
- var wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5, _this = this;
- if (!when) {
- wasInSemiGlobalScope = _this._environment0$_inSemiGlobalScope;
- _this._environment0$_inSemiGlobalScope = semiGlobal;
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
- }
- }
- semiGlobal = semiGlobal && _this._environment0$_inSemiGlobalScope;
- wasInSemiGlobalScope0 = _this._environment0$_inSemiGlobalScope;
- _this._environment0$_inSemiGlobalScope = semiGlobal;
- t1 = _this._environment0$_variables;
- t2 = type$.String;
- C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
- t3 = _this._environment0$_variableNodes;
- if (t3 != null)
- C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
- t3 = _this._environment0$_functions;
- t4 = type$.Callable_2;
- C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
- t5 = _this._environment0$_mixins;
- C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
- t4 = _this._environment0$_nestedForwardedModules;
- if (t4 != null)
- C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable_2));
- try {
- t2 = callback.call$0();
- return t2;
- } finally {
- _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope0;
- _this._environment0$_lastVariableIndex = _this._environment0$_lastVariableName = null;
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t1).get$keys()), t2 = _this._environment0$_variableIndices; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- t2.remove$1(0, $name);
- }
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t3).get$keys()), t2 = _this._environment0$_functionIndices; t1.moveNext$0();) {
- name0 = t1.get$current(t1);
- t2.remove$1(0, name0);
- }
- for (t1 = J.get$iterator$ax(C.JSArray_methods.removeLast$0(t5).get$keys()), t2 = _this._environment0$_mixinIndices; t1.moveNext$0();) {
- name1 = t1.get$current(t1);
- t2.remove$1(0, name1);
- }
- t1 = _this._environment0$_nestedForwardedModules;
- if (t1 != null)
- C.JSArray_methods.removeLast$0(t1);
- }
- },
- scope$1$1: function(callback, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
- },
- scope$1$2$when: function(callback, when, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
- },
- scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
- return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
- },
- toImplicitConfiguration$0: function() {
- var t2, t3, t4, t5, i, values, nodes, t6, t7,
- t1 = type$.String,
- configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2);
- for (t2 = this._environment0$_variables, t3 = this._environment0$_variableNodes, t4 = t3 == null, t5 = type$.AstNode_2, i = 0; i < t2.length; ++i) {
- values = t2[i];
- nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
- for (t6 = J.get$iterator$ax(values.get$keys()); t6.moveNext$0();) {
- t7 = t6.get$current(t6);
- configuration.$indexSet(0, t7, new Z.ConfiguredValue0(values.$index(0, t7), null, nodes.$index(0, t7)));
- }
- }
- return new A.Configuration0(configuration, null, true);
- },
- _environment0$_getModule$1: function(namespace) {
- var module = this._environment0$_modules.$index(0, namespace);
- if (module != null)
- return module;
- throw H.wrapException(E.SassScriptException$0('There is no module with the namespace "' + namespace + '".'));
- },
- _environment0$_fromOneModule$1$3: function($name, type, callback) {
- var t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
- t1 = this._environment0$_nestedForwardedModules;
- if (t1 != null)
- 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();)
- for (t2 = J.get$reversed$ax(t1.__internal$_current), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- value = callback.call$1(t2.__internal$_current);
- if (value != null)
- return value;
- }
- for (t1 = this._environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.Callable_2, value = null, identity = null; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- valueInModule = callback.call$1(t3);
- if (valueInModule == null)
- continue;
- identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
- if (identityFromModule.$eq(0, identity))
- continue;
- if (value != null) {
- t1 = "This " + type + " is available from multiple global modules.";
- t2 = type + " use";
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- for (t4 = this._environment0$_globalModuleNodes.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- if (callback.call$1(t5.key) != null)
- t3.$indexSet(0, t5.value.get$span(), "includes " + type);
- }
- throw H.wrapException(E.MultiSpanSassScriptException$0(t1, t2, t3));
- }
- identity = identityFromModule;
- value = valueInModule;
- }
- return value;
- },
- _environment0$_fromOneModule$3: function($name, type, callback) {
- return this._environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
- }
- };
- O.Environment_importForwards_closure3.prototype = {
- call$1: function(module) {
- return module.get$variables().get$keys();
- }
- };
- O.Environment_importForwards_closure4.prototype = {
- call$1: function(module) {
- return module.get$functions(module).get$keys();
- }
- };
- O.Environment_importForwards_closure5.prototype = {
- call$1: function(module) {
- return module.get$mixins().get$keys();
- }
- };
- O.Environment_importForwards_closure6.prototype = {
- call$1: function(_) {
- return H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable_2);
- },
- $signature: 122
- };
- O.Environment__getVariableFromGlobalModule_closure0.prototype = {
- call$1: function(module) {
- return module.get$variables().$index(0, this.name);
- }
- };
- O.Environment_setVariable_closure2.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._environment0$_lastVariableName = this.name;
- return t1._environment0$_lastVariableIndex = 0;
- },
- $signature: 8
- };
- O.Environment_setVariable_closure3.prototype = {
- call$1: function(module) {
- return module.get$variables().containsKey$1(this.name) ? module : null;
- }
- };
- O.Environment_setVariable_closure4.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._environment0$_variableIndex$1(this.name);
- return t2 == null ? t1._environment0$_variables.length - 1 : t2;
- },
- $signature: 8
- };
- O.Environment__getFunctionFromGlobalModule_closure0.prototype = {
- call$1: function(module) {
- return module.get$functions(module).$index(0, this.name);
- }
- };
- O.Environment__getMixinFromGlobalModule_closure0.prototype = {
- call$1: function(module) {
- return module.get$mixins().$index(0, this.name);
- }
- };
- O._EnvironmentModule1.prototype = {
- get$url: function() {
- return this.css.get$span().file.url;
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- var t1, t2,
- module = this._environment0$_modulesByVariable.$index(0, $name);
- if (module != null) {
- module.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- t1 = this._environment0$_environment;
- t2 = t1._environment0$_variables;
- if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
- throw H.wrapException(E.SassScriptException$0("Undefined variable."));
- J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
- t1 = t1._environment0$_variableNodes;
- if (t1 != null)
- J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
- return;
- },
- variableIdentity$1: function($name) {
- var module = this._environment0$_modulesByVariable.$index(0, $name);
- return module == null ? this : module.variableIdentity$1($name);
- },
- cloneCss$0: function() {
- var newCssAndExtender, _this = this,
- t1 = _this.css;
- if (J.get$isEmpty$asx(t1.get$children()))
- return _this;
- newCssAndExtender = V.cloneCssStylesheet0(t1, _this.extender);
- 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);
- },
- toString$0: function(_) {
- var t1 = this.css;
- if (t1.get$span().file.url == null)
- t1 = "<unknown url>";
- else {
- t1 = t1.get$span();
- t1 = $.$get$context().prettyUri$1(t1.file.url);
- }
- return t1;
- },
- $isModule0: 1,
- get$upstream: function() {
- return this.upstream;
- },
- get$variables: function() {
- return this.variables;
- },
- get$variableNodes: function() {
- return this.variableNodes;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- },
- get$extender: function() {
- return this.extender;
- },
- get$css: function(receiver) {
- return this.css;
- },
- get$transitivelyContainsCss: function() {
- return this.transitivelyContainsCss;
- },
- get$transitivelyContainsExtensions: function() {
- return this.transitivelyContainsExtensions;
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure11.prototype = {
- call$1: function(module) {
- return module.get$variables();
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure12.prototype = {
- call$1: function(module) {
- return module.get$variableNodes();
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure13.prototype = {
- call$1: function(module) {
- return module.get$functions(module);
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure14.prototype = {
- call$1: function(module) {
- return module.get$mixins();
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure15.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsCss();
- }
- };
- O._EnvironmentModule__EnvironmentModule_closure16.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsExtensions();
- }
- };
- V.JSError.prototype = {};
- D.ErrorRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitErrorRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@error " + H.S(this.expression) + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- R._EvaluateVisitor1.prototype = {
- _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap1: function(functions, importCache, logger, nodeImporter, sourceMap) {
- var t6, t7, t8, t9, t10, t11, t12, t13, metaFunctions, metaMixins, _i, metaModule, module, $function, _this = this,
- _s9_ = "sass:meta",
- t1 = type$.String,
- t2 = type$.VariableDeclaration_2,
- t3 = S.SpanScanner$("@function global-variable-exists($name, $module: null) {", _s9_),
- t4 = type$.Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2,
- t5 = type$.JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2;
- 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);
- t6 = S.SpanScanner$("@function variable-exists($name) {", _s9_);
- 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);
- t7 = S.SpanScanner$("@function function-exists($name, $module: null) {", _s9_);
- 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);
- t8 = S.SpanScanner$("@function mixin-exists($name, $module: null) {", _s9_);
- 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);
- t9 = S.SpanScanner$("@function content-exists() {", _s9_);
- 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);
- t10 = S.SpanScanner$("@function module-variables($module) {", _s9_);
- 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);
- t11 = S.SpanScanner$("@function module-functions($module) {", _s9_);
- 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);
- t12 = S.SpanScanner$("@function get-function($name, $css: false, $module: null) {", _s9_);
- 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);
- t13 = S.SpanScanner$("@function call($function, $args...) {", _s9_);
- 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))];
- t1 = type$.JSArray_BuiltInCallable_2;
- metaMixins = H.setRuntimeTypeInfo([Q.BuiltInCallable$mixin0("load-css", "$module, $with: null", new R._EvaluateVisitor_closure28(_this), _s9_)], t1);
- t1 = H.setRuntimeTypeInfo([], t1);
- for (t2 = $.$get$global6(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (_i = 0; _i < 9; ++_i)
- t1.push(metaFunctions[_i]);
- metaModule = Q.BuiltInModule$0("meta", t1, metaMixins, null, type$.BuiltInCallable_2);
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInModule_BuiltInCallable_2);
- for (t2 = $.$get$coreModules0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- t1.push(metaModule);
- t2 = t1.length;
- t3 = _this._evaluate0$_builtInModules;
- _i = 0;
- for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- module = t1[_i];
- t3.$indexSet(0, module.url, module);
- }
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Callable_2);
- for (t2 = new H.ListIterator(functions, functions.get$length(functions)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$globalFunctions0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (_i = 0; _i < 9; ++_i)
- t1.push(metaFunctions[_i]);
- for (t2 = t1.length, t3 = _this._evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- $function = t1[_i];
- t4 = $function.get$name();
- t4.toString;
- t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
- }
- },
- run$2: function(_, importer, node) {
- return this._evaluate0$_withWarnCallback$1$1(new R._EvaluateVisitor_run_closure1(this, node, importer), type$.EvaluateResult_2);
- },
- _evaluate0$_withWarnCallback$1$1: function(callback, $T) {
- return N.withWarnCallback0(new R._EvaluateVisitor__withWarnCallback_closure1(this), callback, $T);
- },
- _evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- var t1, _this = this,
- builtInModule = _this._evaluate0$_builtInModules.$index(0, url);
- if (builtInModule != null) {
- if (configuration != null && !configuration.isImplicit) {
- t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
- throw H.wrapException(_this._evaluate0$_exception$2(t1, nodeWithSpan.get$span()));
- }
- callback.call$1(builtInModule);
- return;
- }
- _this._evaluate0$_withStackFrame$3(stackFrame, nodeWithSpan, new R._EvaluateVisitor__loadModule_closure1(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
- },
- _evaluate0$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
- return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
- },
- _evaluate0$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
- return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
- },
- _evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- var message, existingNode, environment, t3, extender, module, _this = this, t1 = {},
- url = stylesheet.span.file.url,
- t2 = _this._evaluate0$_modules,
- alreadyLoaded = t2.$index(0, url);
- if (alreadyLoaded != null) {
- t1 = configuration == null;
- if (!(t1 ? _this._evaluate0$_configuration : configuration).isImplicit) {
- message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + ' was already loaded, so it can\'t be configured using "with".' : 'This module was already loaded, so it can\'t be configured using "with".';
- existingNode = _this._evaluate0$_moduleNodes.$index(0, url);
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (existingNode != null)
- t2.$indexSet(0, existingNode.get$span(), "original load");
- if (t1)
- t2.$indexSet(0, _this._evaluate0$_configuration.nodeWithSpan.get$span(), "configuration");
- throw H.wrapException(t2.get$isEmpty(t2) ? _this._evaluate0$_exception$1(message) : _this._evaluate0$_multiSpanException$3(message, "new load", t2));
- }
- return alreadyLoaded;
- }
- environment = O.Environment$0(_this._evaluate0$_sourceMap);
- t1.css = null;
- t3 = type$.SimpleSelector_2;
- extender = new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Set_ModifiableCssValue_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.Map_ComplexSelector_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.List_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableCssValue_SelectorList_2, type$.List_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t3, type$.int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), C.ExtendMode_normal0);
- _this._evaluate0$_withEnvironment$2(environment, new R._EvaluateVisitor__execute_closure1(t1, _this, importer, stylesheet, extender, configuration));
- module = O._EnvironmentModule__EnvironmentModule1(environment, t1.css, extender, environment._environment0$_forwardedModules);
- t2.$indexSet(0, url, module);
- _this._evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
- return module;
- },
- _evaluate0$_execute$2: function(importer, stylesheet) {
- return this._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
- },
- _evaluate0$_addOutOfOrderImports$0: function() {
- var t1, statements, _this = this;
- if (_this._evaluate0$_outOfOrderImports == null)
- return _this._evaluate0$_root.children;
- t1 = new Array(J.get$length$asx(_this._evaluate0$_root.children._collection$_source) + _this._evaluate0$_outOfOrderImports.length);
- t1.fixed$length = Array;
- statements = new G.FixedLengthListBuilder0(H.setRuntimeTypeInfo(t1, type$.JSArray_ModifiableCssNode_2), type$.FixedLengthListBuilder_ModifiableCssNode_2);
- statements.addRange$3(_this._evaluate0$_root.children, 0, _this._evaluate0$_endOfImports);
- statements.addAll$1(0, _this._evaluate0$_outOfOrderImports);
- statements.addRange$2(_this._evaluate0$_root.children, _this._evaluate0$_endOfImports);
- return statements.build$0();
- },
- _evaluate0$_combineCss$2$clone: function(root, clone) {
- var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, t2, statements, index, _this = this;
- if (!C.JSArray_methods.any$1(root.get$upstream(), new R._EvaluateVisitor__combineCss_closure5())) {
- selectors = root.get$extender().get$simpleSelectors();
- unsatisfiedExtension = B.firstOrNull0(root.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__combineCss_closure6(selectors)));
- if (unsatisfiedExtension != null)
- _this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
- return root.get$css(root);
- }
- sortedModules = _this._evaluate0$_topologicalModules$1(root);
- if (clone)
- sortedModules = new H.MappedListIterable(sortedModules, new R._EvaluateVisitor__combineCss_closure7(), sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<Callable0>>")).toList$0(0);
- _this._evaluate0$_extendModules$1(sortedModules);
- t1 = type$.JSArray_CssNode_2;
- imports = H.setRuntimeTypeInfo([], t1);
- css = H.setRuntimeTypeInfo([], t1);
- for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
- t2 = t1.__internal$_current;
- statements = t2.get$css(t2).get$children();
- index = _this._evaluate0$_indexAfterImports$1(statements);
- t2 = J.getInterceptor$ax(statements);
- C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
- C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
- }
- return new V.CssStylesheet0(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_CssNode_2), root.get$css(root).get$span());
- },
- _evaluate0$_combineCss$1: function(root) {
- return this._evaluate0$_combineCss$2$clone(root, false);
- },
- _evaluate0$_extendModules$1: function(sortedModules) {
- var t1, t2, originalSelectors, extenders, t3, t4, _i,
- downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_Extender_2),
- unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
- for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
- unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__extendModules_closure3(originalSelectors)));
- extenders = downstreamExtenders.$index(0, t2.get$url());
- if (extenders != null)
- t2.get$extender().addExtensions$1(extenders);
- t3 = t2.get$extender();
- if (t3.get$isEmpty(t3))
- continue;
- for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
- J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new R._EvaluateVisitor__extendModules_closure4()), t2.get$extender());
- unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
- }
- if (unsatisfiedExtensions._collection$_length !== 0)
- this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
- },
- _evaluate0$_throwForUnsatisfiedExtension$1: function(extension) {
- throw H.wrapException(E.SassException$0('The target selector was not found.\nUse "@extend ' + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
- },
- _evaluate0$_topologicalModules$1: function(root) {
- var t1 = type$.Module_Callable_2,
- sorted = Q.QueueList$(null, t1);
- new R._EvaluateVisitor__topologicalModules_visitModule1(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
- return sorted;
- },
- _evaluate0$_indexAfterImports$1: function(statements) {
- var t1, t2, t3, lastImport, i, statement;
- for (t1 = J.getInterceptor$asx(statements), t2 = type$.CssComment_2, t3 = type$.CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
- statement = t1.$index(statements, i);
- if (t3._is(statement))
- lastImport = i;
- else if (!t2._is(statement))
- break;
- }
- return lastImport + 1;
- },
- visitStylesheet$1: function(node) {
- var t1, t2, _i;
- for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(this);
- return null;
- },
- visitAtRootRule$1: function(node) {
- var root, innerCopy, outerCopy, copy, _this = this, _null = null,
- t1 = node.query,
- query = t1 != null ? _this._evaluate0$_adjustParseError$2(t1, new R._EvaluateVisitor_visitAtRootRule_closure5(_this, _this._evaluate0$_performInterpolation$2$warnForColor(t1, true))) : C.AtRootQuery_UsS0,
- $parent = _this._evaluate0$_parent,
- included = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssParentNode_2);
- for (t1 = type$.CssStylesheet_2; !t1._is($parent);) {
- if (!query.excludes$1($parent))
- included.push($parent);
- $parent = $parent._node2$_parent;
- }
- root = _this._evaluate0$_trimIncluded$1(included);
- if (root == _this._evaluate0$_parent) {
- _this._evaluate0$_environment.scope$1$2$when(new R._EvaluateVisitor_visitAtRootRule_closure6(_this, node), node.hasDeclarations, type$.Null);
- return _null;
- }
- innerCopy = included.length === 0 ? _null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
- for (t1 = H.SubListIterable$(included, 1, _null, type$.ModifiableCssParentNode_2), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
- copy = t1.__internal$_current.copyWithoutChildren$0();
- copy.addChild$1(outerCopy);
- }
- if (outerCopy != null)
- root.addChild$1(outerCopy);
- _this._evaluate0$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new R._EvaluateVisitor_visitAtRootRule_closure7(_this, node));
- return _null;
- },
- _evaluate0$_trimIncluded$1: function(nodes) {
- var $parent, innermostContiguous, i, t2, root,
- t1 = nodes.length;
- if (t1 === 0)
- return this._evaluate0$_root;
- $parent = this._evaluate0$_parent;
- for (innermostContiguous = null, i = 0; i < t1; ++i) {
- for (; $parent != nodes[i]; innermostContiguous = null)
- $parent = $parent._node2$_parent;
- if (innermostContiguous == null)
- innermostContiguous = i;
- $parent = $parent._node2$_parent;
- }
- t2 = this._evaluate0$_root;
- if ($parent != t2)
- return t2;
- root = nodes[innermostContiguous];
- C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
- return root;
- },
- _evaluate0$_scopeForAtRoot$4: function(node, newParent, query, included) {
- var _this = this,
- scope = new R._EvaluateVisitor__scopeForAtRoot_closure11(_this, newParent, node),
- t1 = query._at_root_query0$_all,
- t2 = t1 || query._at_root_query0$_rule,
- t3 = query.include;
- if (t2 !== t3)
- scope = new R._EvaluateVisitor__scopeForAtRoot_closure12(_this, scope);
- if (t1 ? !t3 : query.names.contains$1(0, "media") !== t3)
- scope = new R._EvaluateVisitor__scopeForAtRoot_closure13(_this, scope);
- if (_this._evaluate0$_inKeyframes && query.names.contains$1(0, "keyframes") !== t3)
- scope = new R._EvaluateVisitor__scopeForAtRoot_closure14(_this, scope);
- return _this._evaluate0$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new R._EvaluateVisitor__scopeForAtRoot_closure15()) ? new R._EvaluateVisitor__scopeForAtRoot_closure16(_this, scope) : scope;
- },
- visitContentBlock$1: function(node) {
- return H.throwExpression(P.UnsupportedError$("Evaluation handles @include and its content block together."));
- },
- visitContentRule$1: function(node) {
- var $content = this._evaluate0$_environment._environment0$_content;
- if ($content == null)
- return null;
- this._evaluate0$_runUserDefinedCallable$4(node.$arguments, $content, node, new R._EvaluateVisitor_visitContentRule_closure1(this, $content));
- return null;
- },
- visitDebugRule$1: function(node) {
- var value = node.expression.accept$1(this),
- t1 = value instanceof D.SassString0 ? value.text : J.toString$0$(value);
- this._evaluate0$_logger.debug$2(t1, node.span);
- return null;
- },
- visitDeclaration$1: function(node) {
- var $name, t1, cssValue, t2, oldDeclarationName, _this = this;
- if (!(_this._evaluate0$_styleRule != null && !_this._evaluate0$_atRootExcludingStyleRule) && !_this._evaluate0$_inUnknownAtRule && !_this._evaluate0$_inKeyframes)
- throw H.wrapException(_this._evaluate0$_exception$2("Declarations may only be used within style rules.", node.span));
- $name = _this._evaluate0$_interpolationToValue$2$warnForColor(node.name, true);
- t1 = _this._evaluate0$_declarationName;
- if (t1 != null)
- $name = new F.CssValue0(t1 + "-" + H.S($name.value), $name.span, type$.CssValue_String_2);
- t1 = node.value;
- cssValue = t1 == null ? null : new F.CssValue0(t1.accept$1(_this), t1.get$span(), type$.CssValue_Value_2);
- if (cssValue != null) {
- t2 = cssValue.value;
- t2 = !t2.get$isBlank() || t2.get$asList().length === 0;
- } else
- t2 = false;
- if (t2) {
- t2 = _this._evaluate0$_parent;
- t1 = _this._evaluate0$_expressionNode$1(t1);
- t1 = t1 == null ? null : t1.get$span();
- t2.addChild$1(L.ModifiableCssDeclaration$0($name, cssValue, node.span, t1));
- } else if (J.startsWith$1$s($name.value, "--"))
- throw H.wrapException(_this._evaluate0$_exception$2("Custom property values may not be empty.", t1.get$span()));
- if (node.children != null) {
- oldDeclarationName = _this._evaluate0$_declarationName;
- _this._evaluate0$_declarationName = $name.value;
- _this._evaluate0$_environment.scope$1$2$when(new R._EvaluateVisitor_visitDeclaration_closure1(_this, node), node.hasDeclarations, type$.Null);
- _this._evaluate0$_declarationName = oldDeclarationName;
- }
- return null;
- },
- visitEachRule$1: function(node) {
- var _this = this,
- t1 = node.list,
- list = t1.accept$1(_this),
- nodeWithSpan = _this._evaluate0$_expressionNode$1(t1),
- setVariables = node.variables.length === 1 ? new R._EvaluateVisitor_visitEachRule_closure5(_this, node, nodeWithSpan) : new R._EvaluateVisitor_visitEachRule_closure6(_this, node, nodeWithSpan);
- return _this._evaluate0$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitEachRule_closure7(_this, list, setVariables, node), true, type$.Value_2);
- },
- _evaluate0$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
- var i,
- list = value.get$asList(),
- t1 = variables.length,
- minLength = Math.min(t1, list.length);
- for (i = 0; i < minLength; ++i)
- this._evaluate0$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
- for (i = minLength; i < t1; ++i)
- this._evaluate0$_environment.setLocalVariable$3(variables[i], C.C_SassNull, nodeWithSpan);
- },
- visitErrorRule$1: function(node) {
- throw H.wrapException(this._evaluate0$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
- },
- visitExtendRule$1: function(node) {
- var targetText, t1, t2, t3, _i, t4, _this = this;
- if (!(_this._evaluate0$_styleRule != null && !_this._evaluate0$_atRootExcludingStyleRule) || _this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("@extend may only be used within style rules.", node.span));
- targetText = _this._evaluate0$_interpolationToValue$2$warnForColor(node.selector, true);
- for (t1 = _this._evaluate0$_adjustParseError$2(targetText, new R._EvaluateVisitor_visitExtendRule_closure1(_this, targetText)).components, t2 = t1.length, t3 = type$.CompoundSelector_2, _i = 0; _i < t2; ++_i) {
- t4 = t1[_i].components;
- if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector0))
- throw H.wrapException(E.SassFormatException$0("complex selectors may not be extended.", targetText.span));
- t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
- if (t4.length !== 1)
- throw H.wrapException(E.SassFormatException$0("compound selectors may no longer be extended.\nConsider `@extend " + C.JSArray_methods.join$1(t4, ", ") + "` instead.\nSee http://bit.ly/ExtendCompound for details.\n", targetText.span));
- _this._evaluate0$_extender.addExtension$4(_this._evaluate0$_styleRule.selector, C.JSArray_methods.get$first(t4), node, _this._evaluate0$_mediaQueries);
- }
- return null;
- },
- visitAtRule$1: function(node) {
- var $name, t1, value, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("At-rules may not be used within nested declarations.", node.span));
- $name = _this._evaluate0$_interpolationToValue$1(node.name);
- t1 = node.value;
- value = t1 == null ? null : _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true);
- if (node.children == null) {
- t1 = _this._evaluate0$_parent;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- t1.addChild$1(new U.ModifiableCssAtRule0($name, value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2));
- return null;
- }
- wasInKeyframes = _this._evaluate0$_inKeyframes;
- wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
- if (B.unvendor0($name.value) === "keyframes")
- _this._evaluate0$_inKeyframes = true;
- else
- _this._evaluate0$_inUnknownAtRule = true;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0($name, value, false, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitAtRule_closure3(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitAtRule_closure4(), type$.ModifiableCssAtRule_2, type$.Null);
- _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- _this._evaluate0$_inKeyframes = wasInKeyframes;
- return null;
- },
- visitForRule$1: function(node) {
- var _this = this, t1 = {},
- t2 = node.from,
- fromNumber = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure9(_this, node)),
- t3 = node.to,
- toNumber = _this._evaluate0$_addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure10(_this, node)),
- from = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure11(fromNumber, toNumber)),
- to = t1.to = _this._evaluate0$_addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure12(toNumber)),
- direction = from > to ? -1 : 1;
- if (from === (!node.isExclusive ? t1.to = to + direction : to))
- return null;
- return _this._evaluate0$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitForRule_closure13(t1, _this, node, from, direction), true, type$.Value_2);
- },
- visitForwardRule$1: function(node) {
- var newConfiguration, t4, _i, variable, _this = this,
- _s8_ = "@forward",
- oldConfiguration = _this._evaluate0$_configuration,
- adjustedConfiguration = oldConfiguration.throughForward$1(node),
- t1 = node.configuration,
- t2 = t1.length,
- t3 = node.url;
- if (t2 !== 0) {
- newConfiguration = _this._evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node);
- _this._evaluate0$_loadModule$5$configuration(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure3(_this, node), newConfiguration);
- t3 = type$.String;
- t4 = P.LinkedHashSet_LinkedHashSet(t3);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (!variable.isGuarded)
- t4.add$1(0, variable.name);
- }
- _this._evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
- t3 = P.LinkedHashSet_LinkedHashSet(t3);
- for (_i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i].name);
- _this._evaluate0$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
- } else {
- _this._evaluate0$_configuration = adjustedConfiguration;
- _this._evaluate0$_loadModule$4(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure4(_this, node));
- _this._evaluate0$_configuration = oldConfiguration;
- }
- return null;
- },
- _evaluate0$_addForwardConfiguration$2: function(configuration, node) {
- var t2, t3, _i, variable, t4, t5,
- t1 = configuration._configuration$_values,
- newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
- for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- variable = t2[_i];
- if (variable.isGuarded) {
- t4 = variable.name;
- t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
- if (t5 != null && !J.$eq$(t5.value, C.C_SassNull)) {
- newValues.$indexSet(0, t4, t5);
- continue;
- }
- }
- t4 = variable.name;
- t5 = variable.expression;
- newValues.$indexSet(0, t4, new Z.ConfiguredValue0(t5.accept$1(this).withoutSlash$0(), variable.span, this._evaluate0$_expressionNode$1(t5)));
- }
- return new A.Configuration0(newValues, node, false);
- },
- _evaluate0$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
- var t1, t2, t3, t4, _i, $name;
- 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) {
- $name = t2[_i];
- if (except.contains$1(0, $name))
- continue;
- if (!t4.containsKey$1($name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- },
- _evaluate0$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
- configuration._configuration$_values.forEach$1(0, new R._EvaluateVisitor__assertConfigurationIsEmpty_closure1(this, only, nameInError));
- },
- _evaluate0$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
- return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
- },
- _evaluate0$_assertConfigurationIsEmpty$1: function(configuration) {
- return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
- },
- _evaluate0$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
- return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
- },
- visitFunctionRule$1: function(node) {
- var t1 = this._evaluate0$_environment,
- t2 = t1.closure$0(),
- t3 = t1._environment0$_functions,
- index = t3.length - 1,
- t4 = node.name;
- t1._environment0$_functionIndices.$indexSet(0, t4, index);
- J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_Environment_2));
- return null;
- },
- visitIfRule$1: function(node) {
- var t1, t2, _i, clauseToCheck, _box_0 = {};
- _box_0.clause = node.lastClause;
- for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- clauseToCheck = t1[_i];
- if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
- _box_0.clause = clauseToCheck;
- break;
- }
- }
- t1 = _box_0.clause;
- if (t1 == null)
- return null;
- return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitIfRule_closure1(_box_0, this), true, t1.hasDeclarations, type$.Value_2);
- },
- visitImportRule$1: function(node) {
- var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, supports, t8, t9, resolvedSupports, mediaQuery, t10, result0, _this = this, _null = null;
- for (t1 = node.imports, t2 = t1.length, t3 = type$.CssMediaQuery_2, t4 = type$.CssValue_String_2, t5 = type$.StaticImport_2, t6 = type$.JSArray_ModifiableCssImport_2, _i = 0; _i < t2; ++_i) {
- $import = t1[_i];
- if ($import instanceof B.DynamicImport0)
- _this._evaluate0$_visitDynamicImport$1($import);
- else {
- t5._as($import);
- t7 = $import.url;
- result = _this._evaluate0$_performInterpolation$2$warnForColor(t7, false);
- supports = $import.supports;
- if (supports instanceof L.SupportsDeclaration0) {
- t8 = supports.name;
- t8 = H.S(_this._evaluate0$_serialize$3$quote(t8.accept$1(_this), t8, true)) + ": ";
- t9 = supports.value;
- resolvedSupports = t8 + H.S(_this._evaluate0$_serialize$3$quote(t9.accept$1(_this), t9, true));
- } else
- resolvedSupports = supports == null ? _null : _this._evaluate0$_visitSupportsCondition$1(supports);
- t8 = $import.media;
- mediaQuery = t8 == null ? _null : _this._evaluate0$_visitMediaQueries$1(t8);
- t8 = $import.span;
- t9 = resolvedSupports == null ? _null : new F.CssValue0("supports(" + resolvedSupports + ")", supports.get$span(), t4);
- if (mediaQuery == null)
- t10 = _null;
- else {
- result0 = P.List_List$from(mediaQuery, false, t3);
- result0.fixed$length = Array;
- result0.immutable$list = Array;
- t10 = result0;
- }
- node = new F.ModifiableCssImport0(new F.CssValue0(result, t7.span, t4), t9, t10, t8);
- t7 = _this._evaluate0$_parent;
- t8 = _this._evaluate0$_root;
- if (t7 != t8)
- t7.addChild$1(node);
- else if (_this._evaluate0$_endOfImports === J.get$length$asx(t8.children._collection$_source)) {
- t7 = _this._evaluate0$_root;
- t7.toString;
- node._node2$_parent = t7;
- t7 = t7._node2$_children;
- node._node2$_indexInParent = t7.length;
- t7.push(node);
- _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
- } else {
- t7 = _this._evaluate0$_outOfOrderImports;
- (t7 == null ? _this._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], t6) : t7).push(node);
- }
- }
- }
- return _null;
- },
- _evaluate0$_visitDynamicImport$1: function($import) {
- return this._evaluate0$_withStackFrame$3("@import", $import, new R._EvaluateVisitor__visitDynamicImport_closure1(this, $import));
- },
- _evaluate0$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
- var stylesheet, tuple, error, error0, message, t1, t2, t3, exception, _this = this;
- try {
- _this._evaluate0$_importSpan = span;
- if (_this._nodeImporter != null) {
- stylesheet = _this._importLikeNode$2(url, forImport);
- if (stylesheet != null)
- return new S.Tuple2(null, stylesheet, type$.Tuple2_Importer_Stylesheet_2);
- } else {
- t1 = P.Uri_parse(url);
- t2 = _this._evaluate0$_importer;
- if (baseUrl == null) {
- t3 = _this._evaluate0$_stylesheet;
- t3 = t3 == null ? null : t3.span;
- t3 = t3 == null ? null : t3.file.url;
- } else
- t3 = baseUrl;
- tuple = _this._evaluate0$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport);
- if (tuple != null)
- return tuple;
- }
- if (C.JSString_methods.startsWith$1(url, "package:") && true)
- throw H.wrapException('"package:" URLs aren\'t supported on this platform.');
- else
- throw H.wrapException("Can't find stylesheet to import.");
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException0) {
- error = t1;
- t1 = _this._evaluate0$_exception$2(error._span_exception$_message, error.get$span());
- throw H.wrapException(t1);
- } else {
- error0 = t1;
- message = null;
- try {
- message = H._asStringNullable(J.get$message$x(error0));
- } catch (exception) {
- H.unwrapException(exception);
- message = J.toString$0$(error0);
- }
- t1 = _this._evaluate0$_exception$1(message);
- throw H.wrapException(t1);
- }
- } finally {
- _this._evaluate0$_importSpan = null;
- }
- },
- _evaluate0$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
- return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
- },
- _evaluate0$_loadStylesheet$3$forImport: function(url, span, forImport) {
- return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
- },
- _importLikeNode$2: function(originalUrl, forImport) {
- var contents, url, _this = this,
- t1 = _this._evaluate0$_stylesheet.span,
- result = _this._nodeImporter.load$3(originalUrl, t1.file.url, forImport);
- if (result == null)
- return null;
- contents = result.item1;
- url = result.item2;
- t1 = J.getInterceptor$s(url).startsWith$1(url, "file:") ? $.$get$context().style.pathFromUri$1(M._parseUri(url)) : url;
- _this._includedFiles.add$1(0, t1);
- t1 = C.JSString_methods.startsWith$1(url, "file") ? M.Syntax_forPath0(url) : C.Syntax_SCSS0;
- return V.Stylesheet_Stylesheet$parse0(contents, t1, _this._evaluate0$_logger, url);
- },
- visitIncludeRule$1: function(node) {
- var nodeWithSpan, t1, t2, t3, contentCallable, _this = this,
- _s37_ = "Mixin doesn't accept a content block.",
- mixin = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitIncludeRule_closure5(_this, node));
- if (mixin == null)
- throw H.wrapException(_this._evaluate0$_exception$2("Undefined mixin.", node.span));
- nodeWithSpan = new B._FakeAstNode0(new R._EvaluateVisitor_visitIncludeRule_closure6(node));
- if (mixin instanceof Q.BuiltInCallable0) {
- if (node.content != null)
- throw H.wrapException(_this._evaluate0$_exception$2(_s37_, node.span));
- _this._evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
- } else {
- t1 = type$.UserDefinedCallable_Environment_2;
- if (t1._is(mixin)) {
- t2 = node.content;
- t3 = t2 == null;
- if (!t3 && !type$.MixinRule_2._as(mixin.declaration).hasContent)
- throw H.wrapException(E.MultiSpanSassRuntimeException$0(_s37_, node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
- contentCallable = t3 ? null : new E.UserDefinedCallable0(t2, _this._evaluate0$_environment.closure$0(), t1);
- _this._evaluate0$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new R._EvaluateVisitor_visitIncludeRule_closure7(_this, contentCallable, mixin, nodeWithSpan));
- } else
- throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- }
- return null;
- },
- visitMixinRule$1: function(node) {
- var t1 = this._evaluate0$_environment,
- t2 = t1.closure$0(),
- t3 = t1._environment0$_mixins,
- index = t3.length - 1,
- t4 = node.name;
- t1._environment0$_mixinIndices.$indexSet(0, t4, index);
- J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_Environment_2));
- return null;
- },
- visitLoudComment$1: function(node) {
- var t1, t2, _this = this;
- if (_this._evaluate0$_inFunction)
- return null;
- t1 = _this._evaluate0$_parent;
- t2 = _this._evaluate0$_root;
- if (t1 == t2 && _this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
- _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
- t1 = node.text;
- _this._evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(_this._evaluate0$_performInterpolation$1(t1), t1.span));
- return null;
- },
- visitMediaRule$1: function(node) {
- var queries, t1, mergedQueries, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("Media rules may not be used within nested declarations.", node.span));
- queries = _this._evaluate0$_visitMediaQueries$1(node.query);
- t1 = _this._evaluate0$_mediaQueries;
- mergedQueries = t1 == null ? null : _this._evaluate0$_mergeMediaQueries$2(t1, queries);
- t1 = mergedQueries == null;
- if (!t1 && mergedQueries.length === 0)
- return null;
- t1 = t1 ? queries : mergedQueries;
- _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$.ModifiableCssMediaRule_2, type$.Null);
- return null;
- },
- _evaluate0$_visitMediaQueries$1: function(interpolation) {
- return this._evaluate0$_adjustParseError$2(interpolation, new R._EvaluateVisitor__visitMediaQueries_closure1(this, this._evaluate0$_performInterpolation$2$warnForColor(interpolation, true)));
- },
- _evaluate0$_mergeMediaQueries$2: function(queries1, queries2) {
- var t1, t2, t3, t4, t5, result,
- queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery_2);
- for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
- result = t4.merge$1(t5.get$current(t5));
- if (result === C._SingletonCssMediaQueryMergeResult_empty0)
- continue;
- if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable0)
- return null;
- queries.push(t3._as(result).query);
- }
- }
- return queries;
- },
- visitReturnRule$1: function(node) {
- return node.expression.accept$1(this);
- },
- visitSilentComment$1: function(node) {
- return null;
- },
- visitStyleRule$1: function(node) {
- var t2, selectorText, t3, parsedSelector, rule, oldAtRootExcludingStyleRule, _this = this, t1 = {};
- if (_this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("Style rules may not be used within nested declarations.", node.span));
- t2 = node.selector;
- selectorText = _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t2, true, true);
- if (_this._evaluate0$_inKeyframes) {
- t1 = P.List_List$unmodifiable(_this._evaluate0$_adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure13(_this, selectorText)), type$.String);
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(new F.CssValue0(t1, t2.span, type$.CssValue_List_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3), new R._EvaluateVisitor_visitStyleRule_closure14(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure15(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
- return null;
- }
- t1.parsedSelector = _this._evaluate0$_adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure16(_this, selectorText));
- parsedSelector = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitStyleRule_closure17(t1, _this));
- t1.parsedSelector = parsedSelector;
- rule = X.ModifiableCssStyleRule$0(_this._evaluate0$_extender.addSelector$3(parsedSelector, t2.span, _this._evaluate0$_mediaQueries), node.span, t1.parsedSelector);
- oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
- _this._evaluate0$_atRootExcludingStyleRule = false;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitStyleRule_closure18(_this, rule, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure19(), type$.ModifiableCssStyleRule_2, type$.Null);
- _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- if (!(_this._evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
- t1 = _this._evaluate0$_parent.children;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- t1 = _this._evaluate0$_parent.children;
- t1.get$last(t1).isGroupEnd = true;
- }
- return null;
- },
- visitSupportsRule$1: function(node) {
- var t1, t2, t3, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("Supports rules may not be used within nested declarations.", node.span));
- t1 = node.condition;
- t2 = _this._evaluate0$_visitSupportsCondition$1(t1);
- t1 = t1.get$span();
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- _this._evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(new F.CssValue0(t2, t1, type$.CssValue_String_2), node.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3), new R._EvaluateVisitor_visitSupportsRule_closure3(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
- return null;
- },
- _evaluate0$_visitSupportsCondition$1: function(condition) {
- var t1, t2, _this = this;
- if (condition instanceof U.SupportsOperation0) {
- t1 = condition.left;
- t2 = condition.operator;
- return H.S(_this._evaluate0$_parenthesize$2(t1, t2)) + " " + t2 + " " + H.S(_this._evaluate0$_parenthesize$2(condition.right, t2));
- } else if (condition instanceof M.SupportsNegation0)
- return "not " + H.S(_this._evaluate0$_parenthesize$1(condition.condition));
- else if (condition instanceof X.SupportsInterpolation0) {
- t1 = condition.expression;
- return _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, false);
- } else if (condition instanceof L.SupportsDeclaration0) {
- t1 = condition.name;
- t1 = "(" + H.S(_this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, true)) + ": ";
- t2 = condition.value;
- return t1 + H.S(_this._evaluate0$_serialize$3$quote(t2.accept$1(_this), t2, true)) + ")";
- } else
- return null;
- },
- _evaluate0$_parenthesize$2: function(condition, operator) {
- var t1;
- if (!(condition instanceof M.SupportsNegation0))
- if (condition instanceof U.SupportsOperation0)
- t1 = operator == null || operator !== condition.operator;
- else
- t1 = false;
- else
- t1 = true;
- if (t1)
- return "(" + H.S(this._evaluate0$_visitSupportsCondition$1(condition)) + ")";
- else
- return this._evaluate0$_visitSupportsCondition$1(condition);
- },
- _evaluate0$_parenthesize$1: function(condition) {
- return this._evaluate0$_parenthesize$2(condition, null);
- },
- visitVariableDeclaration$1: function(node) {
- var t1, value, t2, _this = this, _null = null;
- if (node.isGuarded) {
- if (node.namespace == null && _this._evaluate0$_environment._environment0$_variables.length === 1) {
- t1 = _this._evaluate0$_configuration._configuration$_values;
- t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
- if (t1 != null) {
- _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure5(_this, node, t1));
- return _null;
- }
- }
- value = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure6(_this, node));
- if (value != null && !value.$eq(0, C.C_SassNull))
- return _null;
- }
- if (node.isGlobal && !_this._evaluate0$_environment.globalVariableExists$1(node.name)) {
- t1 = _this._evaluate0$_environment._environment0$_variables.length === 1 ? "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." : "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `" + B.declarationName0(node.span) + ": null` at the root of the\nstylesheet.";
- t2 = node.span;
- _this._evaluate0$_logger.warn$4$deprecation$span$trace(t1, true, t2, _this._evaluate0$_stackTrace$1(t2));
- }
- _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure7(_this, node, node.expression.accept$1(_this).withoutSlash$0()));
- return _null;
- },
- visitUseRule$1: function(node) {
- var configuration, t3, _i, variable, t4, t5, _this = this,
- t1 = node.configuration,
- t2 = t1.length;
- if (t2 === 0)
- configuration = C.Configuration_Map_empty_null_true0;
- else {
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- t4 = variable.name;
- t5 = variable.expression;
- t3.$indexSet(0, t4, new Z.ConfiguredValue0(t5.accept$1(_this).withoutSlash$0(), variable.span, _this._evaluate0$_expressionNode$1(t5)));
- }
- configuration = new A.Configuration0(t3, node, false);
- }
- _this._evaluate0$_loadModule$5$configuration(node.url, "@use", node, new R._EvaluateVisitor_visitUseRule_closure1(_this, node), configuration);
- _this._evaluate0$_assertConfigurationIsEmpty$1(configuration);
- return null;
- },
- visitWarnRule$1: function(node) {
- var _this = this,
- value = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitWarnRule_closure1(_this, node)),
- t1 = value instanceof D.SassString0 ? value.text : _this._evaluate0$_serialize$2(value, node.expression);
- _this._evaluate0$_logger.warn$2$trace(t1, _this._evaluate0$_stackTrace$1(node.span));
- return null;
- },
- visitWhileRule$1: function(node) {
- return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitWhileRule_closure1(this, node), true, node.hasDeclarations, type$.Value_2);
- },
- visitBinaryOperationExpression$1: function(node) {
- return this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitBinaryOperationExpression_closure1(this, node));
- },
- visitValueExpression$1: function(node) {
- return node.value;
- },
- visitVariableExpression$1: function(node) {
- var result = this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableExpression_closure1(this, node));
- if (result != null)
- return result;
- throw H.wrapException(this._evaluate0$_exception$2("Undefined variable.", node.span));
- },
- visitUnaryOperationExpression$1: function(node) {
- var operand = node.operand.accept$1(this),
- t1 = node.operator;
- switch (t1) {
- case C.UnaryOperator_j2w0:
- return operand.unaryPlus$0();
- case C.UnaryOperator_U4G0:
- return operand.unaryMinus$0();
- case C.UnaryOperator_zDx0:
- operand.toString;
- return new D.SassString0("/" + N.serializeValue(operand, false, true), false);
- case C.UnaryOperator_not_not0:
- return operand.unaryNot$0();
- default:
- throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
- }
- },
- visitBooleanExpression$1: function(node) {
- return node.value ? C.SassBoolean_true : C.SassBoolean_false;
- },
- visitIfExpression$1: function(node) {
- var condition, ifTrue, ifFalse, _this = this,
- pair = _this._evaluate0$_evaluateMacroArguments$1(node),
- positional = pair.item1,
- named = pair.item2,
- t1 = J.getInterceptor$asx(positional);
- _this._evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
- condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
- ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
- ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
- return (condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse).accept$1(_this);
- },
- visitNullExpression$1: function(node) {
- return C.C_SassNull;
- },
- visitNumberExpression$1: function(node) {
- var t1 = node.unit;
- t1 = t1 == null ? null : H.setRuntimeTypeInfo([t1], type$.JSArray_String);
- t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.String);
- return new T.SassNumber0(node.value, t1, C.List_empty, null);
- },
- visitParenthesizedExpression$1: function(node) {
- return node.expression.accept$1(this);
- },
- visitColorExpression$1: function(node) {
- return node.value;
- },
- visitListExpression$1: function(node) {
- var t1 = node.contents;
- 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);
- },
- visitMapExpression$1: function(node) {
- var t2, t3, _i, pair, t4, keyValue, valueValue,
- t1 = type$.Value_2,
- map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
- keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
- for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- pair = t2[_i];
- t4 = pair.item1;
- keyValue = t4.accept$1(this);
- valueValue = pair.item2.accept$1(this);
- if (map.containsKey$1(keyValue))
- 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$.FileSpan, type$.String), this._evaluate0$_stackTrace$1(t4.get$span())));
- map.$indexSet(0, keyValue, valueValue);
- keyNodes.$indexSet(0, keyValue, t4);
- }
- return new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
- },
- visitFunctionExpression$1: function(node) {
- var oldInFunction, result, _this = this, t1 = {},
- t2 = node.name,
- plainName = t2.get$asPlain();
- t1.$function = null;
- if ((plainName != null ? t1.$function = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure3(_this, node, plainName)) : null) == null) {
- if (node.namespace != null)
- throw H.wrapException(_this._evaluate0$_exception$2("Undefined function.", node.span));
- t1.$function = new L.PlainCssCallable0(_this._evaluate0$_performInterpolation$1(t2));
- }
- oldInFunction = _this._evaluate0$_inFunction;
- _this._evaluate0$_inFunction = true;
- result = _this._evaluate0$_addErrorSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure4(t1, _this, node));
- _this._evaluate0$_inFunction = oldInFunction;
- return result;
- },
- _evaluate0$_getFunction$2$namespace: function($name, namespace) {
- var local = this._evaluate0$_environment.getFunction$2$namespace($name, namespace);
- if (local != null || namespace != null)
- return local;
- return this._evaluate0$_builtInFunctions.$index(0, $name);
- },
- _evaluate0$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
- var evaluated = this._evaluate0$_evaluateArguments$1($arguments),
- t1 = callable.declaration.name,
- $name = t1 == null ? "@content" : t1 + "()";
- return this._evaluate0$_withStackFrame$3($name, nodeWithSpan, new R._EvaluateVisitor__runUserDefinedCallable_closure1(this, callable, evaluated, nodeWithSpan, run));
- },
- _evaluate0$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
- var result, t1, t2, t3, first, _i, argument, rest, _this = this;
- if (callable instanceof Q.BuiltInCallable0) {
- result = _this._evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan);
- if (result == null)
- throw H.wrapException(_this._evaluate0$_exception$2("Custom functions may not return Dart's null.", nodeWithSpan.get$span()));
- return result.withoutSlash$0();
- } else if (type$.UserDefinedCallable_Environment_2._is(callable))
- return _this._evaluate0$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new R._EvaluateVisitor__runFunctionCallable_closure1(_this, callable)).withoutSlash$0();
- else if (callable instanceof L.PlainCssCallable0) {
- t1 = $arguments.named;
- if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
- throw H.wrapException(_this._evaluate0$_exception$2("Plain CSS functions don't support keyword arguments.", nodeWithSpan.get$span()));
- t1 = H.S(callable.name) + "(";
- for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
- argument = t2[_i];
- if (first)
- first = false;
- else
- t1 += ", ";
- t1 += H.S(_this._evaluate0$_serialize$3$quote(argument.accept$1(_this), argument, true));
- }
- t2 = $arguments.rest;
- rest = t2 == null ? null : t2.accept$1(_this);
- if (rest != null) {
- if (!first)
- t1 += ", ";
- t2 = t1 + H.S(_this._evaluate0$_serialize$2(rest, t2));
- t1 = t2;
- }
- t1 += H.Primitives_stringFromCharCode(41);
- return new D.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
- } else
- return null;
- },
- _evaluate0$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
- var callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, _this = this,
- evaluated = _this._evaluate0$_evaluateArguments$2$trackSpans($arguments, false),
- oldCallableNode = _this._evaluate0$_callableNode;
- _this._evaluate0$_callableNode = nodeWithSpan;
- namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_String);
- tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
- overload = tuple.item1;
- callback = tuple.item2;
- _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__runBuiltInCallable_closure3(overload, evaluated, namedSet));
- declaredArguments = overload.$arguments;
- for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
- argument = declaredArguments[i];
- t2 = evaluated.positional;
- t3 = evaluated.named.remove$1(0, argument.name);
- if (t3 == null) {
- t3 = argument.defaultValue;
- t3 = t3 == null ? null : t3.accept$1(_this);
- }
- t2.push(t3);
- }
- if (overload.restArgument != null) {
- if (evaluated.positional.length > t1) {
- rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
- C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
- } else
- rest = C.List_empty16;
- t1 = evaluated.named;
- t2 = evaluated.separator === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : evaluated.separator;
- t3 = type$.Value_2;
- argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t1, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
- argumentList.SassList$3$brackets0(rest, t2, false);
- evaluated.positional.push(argumentList);
- } else
- argumentList = null;
- result = null;
- try {
- result = callback.call$1(evaluated.positional);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.SassRuntimeException_2._is(t1))
- throw exception;
- else if (t1 instanceof E.MultiSpanSassScriptException0) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.MultiSpanSassException0) {
- error0 = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$0(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, _this._evaluate0$_stackTrace$1(error0.get$span())));
- } else {
- error1 = t1;
- message = null;
- try {
- message = H._asStringNullable(J.get$message$x(error1));
- } catch (exception) {
- H.unwrapException(exception);
- message = J.toString$0$(error1);
- }
- throw H.wrapException(_this._evaluate0$_exception$2(message, nodeWithSpan.get$span()));
- }
- }
- _this._evaluate0$_callableNode = oldCallableNode;
- if (argumentList == null)
- return result;
- t1 = evaluated.named;
- if (t1.get$isEmpty(t1))
- return result;
- if (argumentList._argument_list$_wereKeywordsAccessed)
- return result;
- t1 = evaluated.named.get$keys();
- 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$.Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
- },
- _evaluate0$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
- var t1, t2, t3, _i, t4, t5, t6, t7, named, t8, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, _this = this, _null = null;
- if (trackSpans == null)
- trackSpans = _this._evaluate0$_sourceMap;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
- for (t2 = $arguments.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i].accept$1(_this));
- t4 = $arguments.named;
- t5 = type$.String;
- t6 = type$.Expression_2;
- t7 = type$.Value_2;
- named = Y.mapMap(t4, _null, new R._EvaluateVisitor__evaluateArguments_closure5(_this), t5, t6, t5, t7);
- if (trackSpans) {
- t8 = H.setRuntimeTypeInfo([], type$.JSArray_AstNode_2);
- for (_i = 0; _i < t3; ++_i)
- t8.push(_this._evaluate0$_expressionNode$1(t2[_i]));
- positionalNodes = t8;
- } else
- positionalNodes = _null;
- namedNodes = trackSpans ? Y.mapMap(t4, _null, new R._EvaluateVisitor__evaluateArguments_closure6(_this), t5, t6, t5, type$.AstNode_2) : _null;
- t2 = $arguments.rest;
- if (t2 == null)
- return R._ArgumentResults$1(t1, named, C.ListSeparator_undecided0, namedNodes, positionalNodes);
- rest = t2.accept$1(_this);
- restNodeForSpan = trackSpans ? _this._evaluate0$_expressionNode$1(t2) : _null;
- if (rest instanceof A.SassMap0) {
- _this._evaluate0$_addRestMap$1$3(named, rest, t2, t7);
- if (namedNodes != null) {
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode_2);
- for (t3 = J.get$iterator$ax(rest.contents.get$keys()), t4 = type$.SassString_2; t3.moveNext$0();)
- t2.$indexSet(0, t4._as(t3.get$current(t3)).text, restNodeForSpan);
- namedNodes.addAll$1(0, t2);
- }
- separator = C.ListSeparator_undecided0;
- } else if (rest instanceof D.SassList0) {
- t2 = rest._list1$_contents;
- C.JSArray_methods.addAll$1(t1, t2);
- if (positionalNodes != null)
- C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, type$.AstNode_2));
- separator = rest.separator;
- if (rest instanceof D.SassArgumentList0) {
- rest._argument_list$_wereKeywordsAccessed = true;
- rest._argument_list$_keywords.forEach$1(0, new R._EvaluateVisitor__evaluateArguments_closure7(named, namedNodes, restNodeForSpan));
- }
- } else {
- t1.push(rest);
- if (positionalNodes != null)
- positionalNodes.push(restNodeForSpan);
- separator = C.ListSeparator_undecided0;
- }
- t2 = $arguments.keywordRest;
- if (t2 == null)
- return R._ArgumentResults$1(t1, named, separator, namedNodes, positionalNodes);
- keywordRest = t2.accept$1(_this);
- keywordRestNodeForSpan = trackSpans ? _this._evaluate0$_expressionNode$1(t2) : _null;
- if (keywordRest instanceof A.SassMap0) {
- _this._evaluate0$_addRestMap$1$3(named, keywordRest, t2, t7);
- if (namedNodes != null) {
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.AstNode_2);
- for (t3 = J.get$iterator$ax(keywordRest.contents.get$keys()), t4 = type$.SassString_2; t3.moveNext$0();)
- t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
- namedNodes.addAll$1(0, t2);
- }
- return R._ArgumentResults$1(t1, named, separator, namedNodes, positionalNodes);
- } else
- throw H.wrapException(_this._evaluate0$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", t2.get$span()));
- },
- _evaluate0$_evaluateArguments$1: function($arguments) {
- return this._evaluate0$_evaluateArguments$2$trackSpans($arguments, null);
- },
- _evaluate0$_evaluateMacroArguments$1: function(invocation) {
- var t3, positional, named, rest, keywordRest, _this = this,
- t1 = invocation.$arguments,
- t2 = t1.rest;
- if (t2 == null)
- return new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
- t3 = t1.positional;
- positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
- t3 = type$.Expression_2;
- named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, t3);
- rest = t2.accept$1(_this);
- if (rest instanceof A.SassMap0)
- _this._evaluate0$_addRestMap$1$4(named, rest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure7(), t3);
- else if (rest instanceof D.SassList0) {
- t2 = rest._list1$_contents;
- C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new R._EvaluateVisitor__evaluateMacroArguments_closure8(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
- if (rest instanceof D.SassArgumentList0) {
- rest._argument_list$_wereKeywordsAccessed = true;
- rest._argument_list$_keywords.forEach$1(0, new R._EvaluateVisitor__evaluateMacroArguments_closure9(named));
- }
- } else
- positional.push(new F.ValueExpression0(rest, null));
- t1 = t1.keywordRest;
- if (t1 == null)
- return new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
- keywordRest = t1.accept$1(_this);
- if (keywordRest instanceof A.SassMap0) {
- _this._evaluate0$_addRestMap$1$4(named, keywordRest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure10(), t3);
- return new S.Tuple2(positional, named, type$.Tuple2_of_List_Expression_and_Map_String_Expression_2);
- } else
- throw H.wrapException(_this._evaluate0$_exception$2("Variable keyword arguments must be a map (was " + H.S(keywordRest) + ").", invocation.span));
- },
- _evaluate0$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
- var t1 = {};
- t1.convert = convert;
- if (convert == null)
- t1.convert = new R._EvaluateVisitor__addRestMap_closure3($T);
- map.contents.forEach$1(0, new R._EvaluateVisitor__addRestMap_closure4(t1, this, values, map, nodeWithSpan));
- },
- _evaluate0$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
- return this._evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
- },
- _evaluate0$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
- return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__verifyArguments_closure1($arguments, positional, named));
- },
- visitSelectorExpression$1: function(node) {
- var t1 = this._evaluate0$_styleRule;
- if (t1 == null)
- return C.C_SassNull;
- return t1.originalSelector.get$asSassList();
- },
- visitStringExpression$1: function(node) {
- var t1 = node.text.contents;
- 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);
- },
- visitCssAtRule$1: function(node) {
- var t1, t2, wasInKeyframes, wasInUnknownAtRule, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("At-rules may not be used within nested declarations.", node.span));
- if (node.isChildless) {
- t1 = _this._evaluate0$_parent;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- t1.addChild$1(new U.ModifiableCssAtRule0(node.name, node.value, true, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2));
- return null;
- }
- wasInKeyframes = _this._evaluate0$_inKeyframes;
- wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
- t1 = node.name;
- if (B.unvendor0(t1.get$value(t1)) === "keyframes")
- _this._evaluate0$_inKeyframes = true;
- else
- _this._evaluate0$_inUnknownAtRule = true;
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- _this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssAtRule0(t1, node.value, false, node.span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2), new R._EvaluateVisitor_visitCssAtRule_closure3(_this, node), false, new R._EvaluateVisitor_visitCssAtRule_closure4(), type$.ModifiableCssAtRule_2, type$.Null);
- _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- _this._evaluate0$_inKeyframes = wasInKeyframes;
- },
- visitCssComment$1: function(node) {
- var _this = this,
- t1 = _this._evaluate0$_parent,
- t2 = _this._evaluate0$_root;
- if (t1 == t2 && _this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
- _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
- _this._evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(node.text, node.span));
- },
- visitCssDeclaration$1: function(node) {
- this._evaluate0$_parent.addChild$1(L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.valueSpanForMap));
- },
- visitCssImport$1: function(node) {
- var _this = this,
- modifiableNode = F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports),
- t1 = _this._evaluate0$_parent,
- t2 = _this._evaluate0$_root;
- if (t1 != t2)
- t1.addChild$1(modifiableNode);
- else if (_this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
- _this._evaluate0$_root.addChild$1(modifiableNode);
- _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
- } else {
- t1 = _this._evaluate0$_outOfOrderImports;
- (t1 == null ? _this._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
- }
- },
- visitCssKeyframeBlock$1: function(node) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- this._evaluate0$_withParent$2$4$scopeWhen$through(new U.ModifiableCssKeyframeBlock0(node.selector, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitCssKeyframeBlock_closure3(this, node), false, new R._EvaluateVisitor_visitCssKeyframeBlock_closure4(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
- },
- visitCssMediaRule$1: function(node) {
- var t1, mergedQueries, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("Media rules may not be used within nested declarations.", node.span));
- t1 = _this._evaluate0$_mediaQueries;
- mergedQueries = t1 == null ? null : _this._evaluate0$_mergeMediaQueries$2(t1, node.queries);
- t1 = mergedQueries == null;
- if (!t1 && mergedQueries.length === 0)
- return null;
- t1 = t1 ? node.queries : mergedQueries;
- _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$.ModifiableCssMediaRule_2, type$.Null);
- },
- visitCssStyleRule$1: function(node) {
- var t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("Style rules may not be used within nested declarations.", node.span));
- t1 = node.selector;
- t2 = t1.value;
- t3 = _this._evaluate0$_styleRule;
- t3 = t3 == null ? null : t3.originalSelector;
- originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !_this._evaluate0$_atRootExcludingStyleRule);
- rule = X.ModifiableCssStyleRule$0(_this._evaluate0$_extender.addSelector$3(originalSelector, t1.span, _this._evaluate0$_mediaQueries), node.span, originalSelector);
- oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
- _this._evaluate0$_atRootExcludingStyleRule = false;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitCssStyleRule_closure3(_this, rule, node), false, new R._EvaluateVisitor_visitCssStyleRule_closure4(), type$.ModifiableCssStyleRule_2, type$.Null);
- _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- if (!(_this._evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
- t1 = _this._evaluate0$_parent.children;
- t1 = !t1.get$isEmpty(t1);
- } else
- t1 = false;
- if (t1) {
- t1 = _this._evaluate0$_parent.children;
- t1.get$last(t1).isGroupEnd = true;
- }
- },
- visitCssStylesheet$1: function(node) {
- var t1;
- for (t1 = J.get$iterator$ax(node.get$children()); t1.moveNext$0();)
- t1.get$current(t1).accept$1(this);
- },
- visitCssSupportsRule$1: function(node) {
- var t1, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw H.wrapException(_this._evaluate0$_exception$2("Supports rules may not be used within nested declarations.", node.span));
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- _this._evaluate0$_withParent$2$4$scopeWhen$through(new B.ModifiableCssSupportsRule0(node.condition, node.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1), new R._EvaluateVisitor_visitCssSupportsRule_closure3(_this, node), false, new R._EvaluateVisitor_visitCssSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
- },
- _evaluate0$_handleReturn$1$2: function(list, callback) {
- var t1, _i, result;
- for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i) {
- result = callback.call$1(list[_i]);
- if (result != null)
- return result;
- }
- return null;
- },
- _evaluate0$_handleReturn$2: function(list, callback) {
- return this._evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
- },
- _evaluate0$_withEnvironment$1$2: function(environment, callback) {
- var result,
- oldEnvironment = this._evaluate0$_environment;
- this._evaluate0$_environment = environment;
- result = callback.call$0();
- this._evaluate0$_environment = oldEnvironment;
- return result;
- },
- _evaluate0$_withEnvironment$2: function(environment, callback) {
- return this._evaluate0$_withEnvironment$1$2(environment, callback, type$.dynamic);
- },
- _evaluate0$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
- var result = this._evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor),
- t1 = trim ? B.trimAscii0(result, true) : result;
- return new F.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
- },
- _evaluate0$_interpolationToValue$1: function(interpolation) {
- return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
- },
- _evaluate0$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
- return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
- },
- _evaluate0$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
- var t1 = interpolation.contents;
- return new H.MappedListIterable(t1, new R._EvaluateVisitor__performInterpolation_closure1(this, warnForColor), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- _evaluate0$_performInterpolation$1: function(interpolation) {
- return this._evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
- },
- _evaluate0$_serialize$3$quote: function(value, nodeWithSpan, quote) {
- return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__serialize_closure1(value, quote));
- },
- _evaluate0$_serialize$2: function(value, nodeWithSpan) {
- return this._evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
- },
- _evaluate0$_expressionNode$1: function(expression) {
- var t1;
- if (!this._evaluate0$_sourceMap)
- return null;
- if (expression instanceof S.VariableExpression0) {
- t1 = this._evaluate0$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
- return t1 == null ? expression : t1;
- } else
- return expression;
- },
- _evaluate0$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
- var oldParent, result, _this = this;
- _this._evaluate0$_addChild$2$through(node, through);
- oldParent = _this._evaluate0$_parent;
- _this._evaluate0$_parent = node;
- result = _this._evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T);
- _this._evaluate0$_parent = oldParent;
- return result;
- },
- _evaluate0$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
- return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
- },
- _evaluate0$_withParent$2$2: function(node, callback, $S, $T) {
- return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
- },
- _evaluate0$_addChild$2$through: function(node, through) {
- var grandparent,
- $parent = this._evaluate0$_parent;
- if (through != null) {
- for (; through.call$1($parent);)
- $parent = $parent._node2$_parent;
- if ($parent.get$hasFollowingSibling()) {
- grandparent = $parent._node2$_parent;
- $parent = $parent.copyWithoutChildren$0();
- grandparent.addChild$1($parent);
- }
- }
- $parent.addChild$1(node);
- },
- _evaluate0$_addChild$1: function(node) {
- return this._evaluate0$_addChild$2$through(node, null);
- },
- _evaluate0$_withStyleRule$1$2: function(rule, callback) {
- var result,
- oldRule = this._evaluate0$_styleRule;
- this._evaluate0$_styleRule = rule;
- result = callback.call$0();
- this._evaluate0$_styleRule = oldRule;
- return result;
- },
- _evaluate0$_withStyleRule$2: function(rule, callback) {
- return this._evaluate0$_withStyleRule$1$2(rule, callback, type$.dynamic);
- },
- _evaluate0$_withMediaQueries$1$2: function(queries, callback) {
- var result,
- oldMediaQueries = this._evaluate0$_mediaQueries;
- this._evaluate0$_mediaQueries = queries;
- result = callback.call$0();
- this._evaluate0$_mediaQueries = oldMediaQueries;
- return result;
- },
- _evaluate0$_withMediaQueries$2: function(queries, callback) {
- return this._evaluate0$_withMediaQueries$1$2(queries, callback, type$.dynamic);
- },
- _evaluate0$_withStackFrame$1$3: function(member, nodeWithSpan, callback) {
- var oldMember, result, _this = this,
- t1 = _this._evaluate0$_stack;
- t1.push(new S.Tuple2(_this._evaluate0$_member, nodeWithSpan, type$.Tuple2_String_AstNode_2));
- oldMember = _this._evaluate0$_member;
- _this._evaluate0$_member = member;
- result = callback.call$0();
- _this._evaluate0$_member = oldMember;
- t1.pop();
- return result;
- },
- _evaluate0$_withStackFrame$3: function(member, nodeWithSpan, callback) {
- return this._evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
- },
- _evaluate0$_stackFrame$2: function(member, span) {
- var url = span.file.url;
- return B.frameForSpan0(span, member, url != null && this._evaluate0$_importCache != null ? this._evaluate0$_importCache.humanize$1(url) : url);
- },
- _evaluate0$_stackTrace$1: function(span) {
- var t2, _this = this,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Frame);
- 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();)
- t1.push(t2.__internal$_current);
- if (span != null)
- t1.push(_this._evaluate0$_stackFrame$2(_this._evaluate0$_member, span));
- return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_Frame), type$.Frame), new P._StringStackTrace(null));
- },
- _evaluate0$_stackTrace$0: function() {
- return this._evaluate0$_stackTrace$1(null);
- },
- _evaluate0$_warn$3$deprecation: function(message, span, deprecation) {
- return this._evaluate0$_logger.warn$4$deprecation$span$trace(message, deprecation, span, this._evaluate0$_stackTrace$1(span));
- },
- _evaluate0$_warn$2: function(message, span) {
- return this._evaluate0$_warn$3$deprecation(message, span, false);
- },
- _evaluate0$_exception$2: function(message, span) {
- var t1 = span == null ? C.JSArray_methods.get$last(this._evaluate0$_stack).item2.get$span() : span;
- return new E.SassRuntimeException0(this._evaluate0$_stackTrace$1(span), message, t1);
- },
- _evaluate0$_exception$1: function(message) {
- return this._evaluate0$_exception$2(message, null);
- },
- _evaluate0$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
- var t1 = C.JSArray_methods.get$last(this._evaluate0$_stack).item2.get$span();
- return new E.MultiSpanSassRuntimeException0(this._evaluate0$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.FileSpan, type$.String), message, t1);
- },
- _evaluate0$_adjustParseError$1$2: function(nodeWithSpan, callback) {
- var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException0) {
- error = t1;
- t1 = error;
- errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
- span = nodeWithSpan.get$span();
- t1 = span;
- t2 = span;
- 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);
- t2 = syntheticFile;
- t1 = span.file.url;
- t2.toString;
- t2 = new H.CodeUnits(t2);
- t3 = H.setRuntimeTypeInfo([0], type$.JSArray_int);
- t3 = new Y.SourceFile(t1, t3, new Uint32Array(H._ensureNativeList(t2.toList$0(t2))));
- t3.SourceFile$decoded$2$url(t2, t1);
- t1 = span;
- t1 = Y.FileLocation$_(t1.file, t1._file$_start);
- t2 = error;
- t2 = G.SourceSpanException.prototype.get$span.call(t2);
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- t4 = span;
- t4 = Y.FileLocation$_(t4.file, t4._file$_start);
- t5 = error;
- t5 = G.SourceSpanException.prototype.get$span.call(t5);
- syntheticSpan = t3.span$2(t1.offset + t2.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
- throw H.wrapException(this._evaluate0$_exception$2(error._span_exception$_message, syntheticSpan));
- } else
- throw exception;
- }
- },
- _evaluate0$_adjustParseError$2: function(nodeWithSpan, callback) {
- return this._evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _evaluate0$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
- var error, error0, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.MultiSpanSassScriptException0) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
- } else if (t1 instanceof E.SassScriptException0) {
- error0 = t1;
- throw H.wrapException(this._evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
- } else
- throw exception;
- }
- },
- _evaluate0$_addExceptionSpan$2: function(nodeWithSpan, callback) {
- return this._evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _evaluate0$_addErrorSpan$1$2: function(nodeWithSpan, callback) {
- var error, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.SassRuntimeException_2._is(t1)) {
- error = t1;
- t1 = error.get$span();
- 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"))
- throw exception;
- throw H.wrapException(E.SassRuntimeException$0(error._span_exception$_message, nodeWithSpan.get$span(), this._evaluate0$_stackTrace$0()));
- } else
- throw exception;
- }
- },
- _evaluate0$_addErrorSpan$2: function(nodeWithSpan, callback) {
- return this._evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- }
- };
- R._EvaluateVisitor_closure19.prototype = {
- call$1: function($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._evaluate0$_environment;
- t2 = variable.text;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- R._EvaluateVisitor_closure20.prototype = {
- call$1: function($arguments) {
- var variable = J.$index$asx($arguments, 0).assertString$1("name"),
- t1 = this.$this._evaluate0$_environment,
- t2 = variable.text;
- t2.toString;
- return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- R._EvaluateVisitor_closure21.prototype = {
- call$1: function($arguments) {
- var module, t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._evaluate0$_environment;
- t3 = variable.text;
- t3.toString;
- t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
- return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._evaluate0$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- R._EvaluateVisitor_closure22.prototype = {
- call$1: function($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._evaluate0$_environment;
- t2 = variable.text;
- t2.toString;
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- R._EvaluateVisitor_closure23.prototype = {
- call$1: function($arguments) {
- var t1 = this.$this._evaluate0$_environment;
- if (!t1._environment0$_inMixin)
- throw H.wrapException(E.SassScriptException$0("content-exists() may only be called within a mixin."));
- return t1._environment0$_content != null ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- R._EvaluateVisitor_closure24.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
- module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
- if (module == null)
- throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
- t1 = type$.Value_2;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = module.get$variables().get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new D.SassString0(t4.key, true), t4.value);
- }
- return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 29
- };
- R._EvaluateVisitor_closure25.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
- module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
- if (module == null)
- throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
- t1 = type$.Value_2;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = module.get$functions(module).get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new D.SassString0(t4.key, true), new F.SassFunction0(t4.value));
- }
- return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 29
- };
- R._EvaluateVisitor_closure26.prototype = {
- call$1: function($arguments) {
- var module, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name"),
- css = t1.$index($arguments, 1).get$isTruthy();
- t1 = t1.$index($arguments, 2).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- if (css && module != null)
- throw H.wrapException("$css and $module may not both be passed at once.");
- if (css)
- callable = new L.PlainCssCallable0($name.text);
- else {
- t1 = this.$this;
- callable = t1._evaluate0$_addExceptionSpan$2(t1._evaluate0$_callableNode, new R._EvaluateVisitor__closure13(t1, $name, module));
- }
- if (callable != null)
- return new F.SassFunction0(callable);
- throw H.wrapException("Function not found: " + $name.toString$0(0));
- },
- $signature: 80
- };
- R._EvaluateVisitor__closure13.prototype = {
- call$0: function() {
- var t2,
- t1 = this.name.text;
- t1.toString;
- t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
- t2 = this.module;
- t2 = t2 == null ? null : t2.text;
- return this.$this._evaluate0$_getFunction$2$namespace(t1, t2);
- },
- $signature: 50
- };
- R._EvaluateVisitor_closure27.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4, t5, t6, t7, invocation, callable,
- t1 = J.getInterceptor$asx($arguments),
- $function = t1.$index($arguments, 0),
- args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
- t2 = type$.String;
- t3 = this.$this;
- t4 = t3._evaluate0$_callableNode.get$span();
- t5 = t3._evaluate0$_callableNode.get$span();
- args._argument_list$_wereKeywordsAccessed = true;
- t6 = args._argument_list$_keywords;
- if (t6.get$isEmpty(t6))
- t6 = null;
- else {
- args._argument_list$_wereKeywordsAccessed = true;
- t7 = type$.Value_2;
- t7 = new F.ValueExpression0(new A.SassMap0(H.ConstantMap_ConstantMap$from(Y.mapMap(t6, new R._EvaluateVisitor__closure11(), new R._EvaluateVisitor__closure12(), t2, t7, t7, t7), t7, t7)), t3._evaluate0$_callableNode.get$span());
- t6 = t7;
- }
- invocation = X.ArgumentInvocation$0(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Expression_2), t4, t6, new F.ValueExpression0(args, t5));
- if ($function instanceof D.SassString0) {
- N.warn0("Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(" + $function.toString$0(0) + ")) instead.", true);
- return t3.visitFunctionExpression$1(new F.FunctionExpression0(null, X.Interpolation$0([$function.text], t3._evaluate0$_callableNode.get$span()), invocation, t3._evaluate0$_callableNode.get$span()));
- }
- callable = $function.assertFunction$1("function").callable;
- if (type$.Callable_2._is(callable))
- return t3._evaluate0$_runFunctionCallable$3(invocation, callable, t3._evaluate0$_callableNode);
- else
- throw H.wrapException(E.SassScriptException$0("The function " + H.S(callable.get$name()) + " is asynchronous.\nThis is probably caused by a bug in a Sass plugin."));
- },
- $signature: 3
- };
- R._EvaluateVisitor__closure11.prototype = {
- call$2: function(key, _) {
- return new D.SassString0(key, false);
- }
- };
- R._EvaluateVisitor__closure12.prototype = {
- call$2: function(_, value) {
- return value;
- }
- };
- R._EvaluateVisitor_closure28.prototype = {
- call$1: function($arguments) {
- var withMap, values, configuration, t2, t3, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("module").text);
- t1 = t1.$index($arguments, 1).get$realNull();
- t1 = t1 == null ? _null : t1.assertMap$1("with");
- withMap = t1 == null ? _null : t1.contents;
- if (withMap != null) {
- values = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
- t1 = this.$this;
- withMap.forEach$1(0, new R._EvaluateVisitor__closure9(values, t1._evaluate0$_callableNode.get$span()));
- configuration = new A.Configuration0(values, t1._evaluate0$_callableNode, false);
- } else
- configuration = C.Configuration_Map_empty_null_true0;
- t1 = this.$this;
- t2 = t1._evaluate0$_callableNode;
- t3 = t2.get$span();
- t3 = t3 == null ? _null : t3.file.url;
- t1._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new R._EvaluateVisitor__closure10(t1), t3, configuration, true);
- t1._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
- return _null;
- },
- $signature: 52
- };
- R._EvaluateVisitor__closure9.prototype = {
- call$2: function(variable, value) {
- var $name,
- t1 = variable.assertString$1("with key").text;
- t1.toString;
- $name = H.stringReplaceAllUnchecked(t1, "_", "-");
- t1 = this.values;
- if (t1.containsKey$1($name))
- throw H.wrapException("The variable $" + $name + " was configured twice.");
- t1.$indexSet(0, $name, new Z.ConfiguredValue0(value, this.span, null));
- }
- };
- R._EvaluateVisitor__closure10.prototype = {
- call$1: function(module) {
- var t1 = this.$this;
- return t1._evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
- }
- };
- R._EvaluateVisitor_run_closure1.prototype = {
- call$0: function() {
- var t2, _this = this,
- t1 = _this.node,
- url = t1.span.file.url;
- if (url != null) {
- t2 = _this.$this;
- t2._evaluate0$_activeModules.$indexSet(0, url, null);
- if (t2._nodeImporter != null)
- if (url.get$scheme() === "file")
- t2._includedFiles.add$1(0, $.$get$context().style.pathFromUri$1(M._parseUri(url)));
- else if (url.toString$0(0) !== "stdin")
- t2._includedFiles.add$1(0, url.toString$0(0));
- }
- t2 = _this.$this;
- return new E.EvaluateResult0(t2._evaluate0$_combineCss$1(t2._evaluate0$_execute$2(_this.importer, t1)), t2._includedFiles);
- },
- $signature: 124
- };
- R._EvaluateVisitor__withWarnCallback_closure1.prototype = {
- call$2: function(message, deprecation) {
- var t1 = this.$this,
- t2 = t1._evaluate0$_importSpan;
- return t1._evaluate0$_warn$3$deprecation(message, t2 == null ? t1._evaluate0$_callableNode.get$span() : t2, deprecation);
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- R._EvaluateVisitor__loadModule_closure1.prototype = {
- call$0: function() {
- var module, error, error0, error1, error2, message, previousLoad, exception, _this = this,
- t1 = _this.$this,
- t2 = _this.nodeWithSpan,
- result = t1._evaluate0$_loadStylesheet$3$baseUrl(J.toString$0$(_this.url), t2.get$span(), _this.baseUrl),
- importer = result.item1,
- stylesheet = result.item2,
- canonicalUrl = stylesheet.span.file.url,
- t3 = t1._evaluate0$_activeModules;
- if (t3.containsKey$1(canonicalUrl)) {
- message = _this.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : "Module loop: this module is already being loaded.";
- previousLoad = t3.$index(0, canonicalUrl);
- 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$.FileSpan, type$.String)));
- }
- t3.$indexSet(0, canonicalUrl, t2);
- module = null;
- try {
- module = t1._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
- } finally {
- t3.remove$1(0, canonicalUrl);
- }
- try {
- _this.callback.call$1(module);
- } catch (exception) {
- t2 = H.unwrapException(exception);
- if (type$.SassRuntimeException_2._is(t2))
- throw exception;
- else if (t2 instanceof E.MultiSpanSassException0) {
- error = t2;
- throw H.wrapException(E.MultiSpanSassRuntimeException$0(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._evaluate0$_stackTrace$1(error.get$span())));
- } else if (t2 instanceof E.SassException0) {
- error0 = t2;
- throw H.wrapException(t1._evaluate0$_exception$2(error0._span_exception$_message, error0.get$span()));
- } else if (t2 instanceof E.MultiSpanSassScriptException0) {
- error1 = t2;
- throw H.wrapException(t1._evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
- } else if (t2 instanceof E.SassScriptException0) {
- error2 = t2;
- throw H.wrapException(t1._evaluate0$_exception$1(error2.message));
- } else
- throw exception;
- }
- },
- $signature: 0
- };
- R._EvaluateVisitor__execute_closure1.prototype = {
- call$0: function() {
- var t2, t3, t4, css, _this = this,
- t1 = _this.$this,
- oldImporter = t1._evaluate0$_importer,
- oldStylesheet = t1._evaluate0$_stylesheet,
- oldRoot = t1._evaluate0$_root,
- oldParent = t1._evaluate0$_parent,
- oldEndOfImports = t1._evaluate0$_endOfImports,
- oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
- oldExtender = t1._evaluate0$_extender,
- oldStyleRule = t1._evaluate0$_styleRule,
- oldMediaQueries = t1._evaluate0$_mediaQueries,
- oldDeclarationName = t1._evaluate0$_declarationName,
- oldInUnknownAtRule = t1._evaluate0$_inUnknownAtRule,
- oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule,
- oldInKeyframes = t1._evaluate0$_inKeyframes,
- oldConfiguration = t1._evaluate0$_configuration;
- t1._evaluate0$_importer = _this.importer;
- t2 = t1._evaluate0$_stylesheet = _this.stylesheet;
- t3 = t2.span;
- t4 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- t1._evaluate0$_parent = t1._evaluate0$_root = new V.ModifiableCssStylesheet0(t3, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_ModifiableCssNode_2), t4);
- t1._evaluate0$_endOfImports = 0;
- t1._evaluate0$_outOfOrderImports = null;
- t1._evaluate0$_extender = _this.extender;
- t1._evaluate0$_declarationName = t1._evaluate0$_mediaQueries = t1._evaluate0$_styleRule = null;
- t1._evaluate0$_inKeyframes = t1._evaluate0$_atRootExcludingStyleRule = t1._evaluate0$_inUnknownAtRule = false;
- t4 = _this.configuration;
- if (t4 != null)
- t1._evaluate0$_configuration = t4;
- t1.visitStylesheet$1(t2);
- css = t1._evaluate0$_outOfOrderImports == null ? t1._evaluate0$_root : new V.CssStylesheet0(new P.UnmodifiableListView(t1._evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t3);
- _this._box_0.css = css;
- t1._evaluate0$_importer = oldImporter;
- t1._evaluate0$_stylesheet = oldStylesheet;
- t1._evaluate0$_root = oldRoot;
- t1._evaluate0$_parent = oldParent;
- t1._evaluate0$_endOfImports = oldEndOfImports;
- t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
- t1._evaluate0$_extender = oldExtender;
- t1._evaluate0$_styleRule = oldStyleRule;
- t1._evaluate0$_mediaQueries = oldMediaQueries;
- t1._evaluate0$_declarationName = oldDeclarationName;
- t1._evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
- t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- t1._evaluate0$_inKeyframes = oldInKeyframes;
- t1._evaluate0$_configuration = oldConfiguration;
- },
- $signature: 0
- };
- R._EvaluateVisitor__combineCss_closure5.prototype = {
- call$1: function(module) {
- return module.get$transitivelyContainsCss();
- }
- };
- R._EvaluateVisitor__combineCss_closure6.prototype = {
- call$1: function(target) {
- return !this.selectors.contains$1(0, target);
- }
- };
- R._EvaluateVisitor__combineCss_closure7.prototype = {
- call$1: function(module) {
- return module.cloneCss$0();
- }
- };
- R._EvaluateVisitor__extendModules_closure3.prototype = {
- call$1: function(target) {
- return !this.originalSelectors.contains$1(0, target);
- }
- };
- R._EvaluateVisitor__extendModules_closure4.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_Extender_2);
- },
- $signature: 81
- };
- R._EvaluateVisitor__topologicalModules_visitModule1.prototype = {
- call$1: function(module) {
- var t1, t2, t3, _i, upstream;
- for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- upstream = t1[_i];
- if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
- this.call$1(upstream);
- }
- this.sorted.addFirst$1(module);
- }
- };
- R._EvaluateVisitor_visitAtRootRule_closure5.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.resolved, null);
- return new V.AtRootQueryParser0(t1, this.$this._evaluate0$_logger).parse$0();
- },
- $signature: 48
- };
- R._EvaluateVisitor_visitAtRootRule_closure6.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitAtRootRule_closure7.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- R._EvaluateVisitor__scopeForAtRoot_closure11.prototype = {
- call$1: function(callback) {
- var t1 = this.$this,
- oldParent = t1._evaluate0$_parent;
- t1._evaluate0$_parent = this.newParent;
- t1._evaluate0$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
- t1._evaluate0$_parent = oldParent;
- }
- };
- R._EvaluateVisitor__scopeForAtRoot_closure12.prototype = {
- call$1: function(callback) {
- var t1 = this.$this,
- oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule;
- t1._evaluate0$_atRootExcludingStyleRule = true;
- this.innerScope.call$1(callback);
- t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- }
- };
- R._EvaluateVisitor__scopeForAtRoot_closure13.prototype = {
- call$1: function(callback) {
- return this.$this._evaluate0$_withMediaQueries$2(null, new R._EvaluateVisitor__scopeForAtRoot__closure1(this.innerScope, callback));
- }
- };
- R._EvaluateVisitor__scopeForAtRoot__closure1.prototype = {
- call$0: function() {
- return this.innerScope.call$1(this.callback);
- },
- $signature: 0
- };
- R._EvaluateVisitor__scopeForAtRoot_closure14.prototype = {
- call$1: function(callback) {
- var t1 = this.$this,
- wasInKeyframes = t1._evaluate0$_inKeyframes;
- t1._evaluate0$_inKeyframes = false;
- this.innerScope.call$1(callback);
- t1._evaluate0$_inKeyframes = wasInKeyframes;
- }
- };
- R._EvaluateVisitor__scopeForAtRoot_closure15.prototype = {
- call$1: function($parent) {
- return type$.CssAtRule_2._is($parent);
- }
- };
- R._EvaluateVisitor__scopeForAtRoot_closure16.prototype = {
- call$1: function(callback) {
- var t1 = this.$this,
- wasInUnknownAtRule = t1._evaluate0$_inUnknownAtRule;
- t1._evaluate0$_inUnknownAtRule = false;
- this.innerScope.call$1(callback);
- t1._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- }
- };
- R._EvaluateVisitor_visitContentRule_closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- return null;
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitDeclaration_closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitEachRule_closure5.prototype = {
- call$1: function(value) {
- return this.$this._evaluate0$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
- }
- };
- R._EvaluateVisitor_visitEachRule_closure6.prototype = {
- call$1: function(value) {
- return this.$this._evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
- }
- };
- R._EvaluateVisitor_visitEachRule_closure7.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this;
- return t1._evaluate0$_handleReturn$2(_this.list.get$asList(), new R._EvaluateVisitor_visitEachRule__closure1(t1, _this.setVariables, _this.node));
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitEachRule__closure1.prototype = {
- call$1: function(element) {
- var t1;
- this.setVariables.call$1(element);
- t1 = this.$this;
- return t1._evaluate0$_handleReturn$2(this.node.children, new R._EvaluateVisitor_visitEachRule___closure1(t1));
- }
- };
- R._EvaluateVisitor_visitEachRule___closure1.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor_visitExtendRule_closure1.prototype = {
- call$0: function() {
- return D.SelectorList_SelectorList$parse0(B.trimAscii0(this.targetText.value, true), false, true, this.$this._evaluate0$_logger);
- },
- $signature: 33
- };
- R._EvaluateVisitor_visitAtRule_closure3.prototype = {
- call$0: function() {
- var t3, _i,
- t1 = this.$this,
- t2 = t1._evaluate0$_styleRule;
- if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule) || t1._evaluate0$_inKeyframes)
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- else
- 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$.ModifiableCssStyleRule_2, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitAtRule__closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitAtRule_closure4.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._EvaluateVisitor_visitForRule_closure9.prototype = {
- call$0: function() {
- return this.node.from.accept$1(this.$this).assertNumber$0();
- },
- $signature: 85
- };
- R._EvaluateVisitor_visitForRule_closure10.prototype = {
- call$0: function() {
- return this.node.to.accept$1(this.$this).assertNumber$0();
- },
- $signature: 85
- };
- R._EvaluateVisitor_visitForRule_closure11.prototype = {
- call$0: function() {
- var t1 = this.toNumber,
- t2 = t1.numeratorUnits;
- t1 = t1.denominatorUnits;
- return T.SassNumber$withUnits0(this.fromNumber.valueInUnits$2(t2, t1), t1, t2).assertInt$0();
- },
- $signature: 8
- };
- R._EvaluateVisitor_visitForRule_closure12.prototype = {
- call$0: function() {
- return this.toNumber.assertInt$0();
- },
- $signature: 8
- };
- R._EvaluateVisitor_visitForRule_closure13.prototype = {
- call$0: function() {
- var i, t3, t4, t5, t6, result, _this = this,
- t1 = _this.$this,
- t2 = _this.node,
- nodeWithSpan = t1._evaluate0$_expressionNode$1(t2.from);
- for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.children, t2 = t2.variable; i !== t3.to; i += t4) {
- t6 = t1._evaluate0$_environment;
- t6.setLocalVariable$3(t2, new T.SassNumber0(i, C.List_empty, C.List_empty, null), nodeWithSpan);
- result = t1._evaluate0$_handleReturn$2(t5, new R._EvaluateVisitor_visitForRule__closure1(t1));
- if (result != null)
- return result;
- }
- return null;
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitForRule__closure1.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor_visitForwardRule_closure3.prototype = {
- call$1: function(module) {
- this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
- }
- };
- R._EvaluateVisitor_visitForwardRule_closure4.prototype = {
- call$1: function(module) {
- this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
- }
- };
- R._EvaluateVisitor__assertConfigurationIsEmpty_closure1.prototype = {
- call$2: function($name, value) {
- var t1 = this.only;
- if (t1 != null && !t1.contains$1(0, $name))
- return;
- t1 = this.nameInError ? "$" + H.S($name) + " was not declared with !default in the @used module." : "This variable was not declared with !default in the @used module.";
- throw H.wrapException(this.$this._evaluate0$_exception$2(t1, value.configurationSpan));
- }
- };
- R._EvaluateVisitor_visitIfRule_closure1.prototype = {
- call$0: function() {
- var t1 = this.$this;
- return t1._evaluate0$_handleReturn$2(this._box_0.clause.children, new R._EvaluateVisitor_visitIfRule__closure1(t1));
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitIfRule__closure1.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor__visitDynamicImport_closure1.prototype = {
- call$0: function() {
- var previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _null = null,
- _s34_ = "This file is already being loaded.",
- _box_0 = {},
- t1 = this.$this,
- t2 = this.$import,
- result = t1._evaluate0$_loadStylesheet$3$forImport(t2.url, t2.span, true),
- importer = result.item1,
- stylesheet = result.item2,
- url = stylesheet.span.file.url,
- t3 = t1._evaluate0$_activeModules;
- if (t3.containsKey$1(url)) {
- previousLoad = t3.$index(0, url);
- 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$.FileSpan, type$.String)));
- }
- t3.$indexSet(0, url, t2);
- t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_uses, type$.UnmodifiableListView_UseRule_2);
- if (t2.get$length(t2) === 0) {
- t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
- t2 = t2.get$length(t2) === 0;
- } else
- t2 = false;
- if (t2) {
- oldImporter = t1._evaluate0$_importer;
- oldStylesheet = t1._evaluate0$_stylesheet;
- t1._evaluate0$_importer = importer;
- t1._evaluate0$_stylesheet = stylesheet;
- t1.visitStylesheet$1(stylesheet);
- t1._evaluate0$_importer = oldImporter;
- t1._evaluate0$_stylesheet = oldStylesheet;
- t3.remove$1(0, url);
- return;
- }
- _box_0.children = null;
- t2 = t1._evaluate0$_environment;
- t4 = type$.String;
- t5 = type$.Module_Callable_2;
- t6 = type$.AstNode_2;
- t7 = H.setRuntimeTypeInfo([], type$.JSArray_Module_Callable_2);
- t8 = t2._environment0$_variables;
- t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
- t9 = t2._environment0$_variableNodes;
- if (t9 == null)
- t9 = _null;
- else
- t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
- t10 = t2._environment0$_functions;
- t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
- t11 = t2._environment0$_mixins;
- t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
- 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);
- t1._evaluate0$_withEnvironment$2(environment, new R._EvaluateVisitor__visitDynamicImport__closure1(_box_0, t1, importer, stylesheet, environment));
- module = O._EnvironmentModule__EnvironmentModule1(environment, new V.CssStylesheet0(new P.UnmodifiableListView(C.List_empty12, type$.UnmodifiableListView_CssNode_2), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender0, environment._environment0$_forwardedModules);
- t1._evaluate0$_environment.importForwards$1(module);
- if (module.transitivelyContainsCss)
- t1._evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
- visitor = new R._ImportedCssVisitor1(t1);
- for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
- t1.get$current(t1).accept$1(visitor);
- t3.remove$1(0, url);
- },
- $signature: 0
- };
- R._EvaluateVisitor__visitDynamicImport__closure1.prototype = {
- call$0: function() {
- var t2, t3, _this = this,
- t1 = _this.$this,
- oldImporter = t1._evaluate0$_importer,
- oldStylesheet = t1._evaluate0$_stylesheet,
- oldRoot = t1._evaluate0$_root,
- oldParent = t1._evaluate0$_parent,
- oldEndOfImports = t1._evaluate0$_endOfImports,
- oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
- oldConfiguration = t1._evaluate0$_configuration;
- t1._evaluate0$_importer = _this.importer;
- t2 = t1._evaluate0$_stylesheet = _this.stylesheet;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- t1._evaluate0$_parent = t1._evaluate0$_root = new V.ModifiableCssStylesheet0(t2.span, new P.UnmodifiableListView(t3, type$.UnmodifiableListView_ModifiableCssNode_2), t3);
- t1._evaluate0$_endOfImports = 0;
- t1._evaluate0$_outOfOrderImports = null;
- t3 = new P.UnmodifiableListView(t2._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
- if (!t3.get$isEmpty(t3))
- t1._evaluate0$_configuration = _this.environment.toImplicitConfiguration$0();
- t1.visitStylesheet$1(t2);
- _this._box_0.children = t1._evaluate0$_addOutOfOrderImports$0();
- t1._evaluate0$_importer = oldImporter;
- t1._evaluate0$_stylesheet = oldStylesheet;
- t1._evaluate0$_root = oldRoot;
- t1._evaluate0$_parent = oldParent;
- t1._evaluate0$_endOfImports = oldEndOfImports;
- t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
- t1._evaluate0$_configuration = oldConfiguration;
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitIncludeRule_closure5.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
- },
- $signature: 50
- };
- R._EvaluateVisitor_visitIncludeRule_closure6.prototype = {
- call$0: function() {
- return this.node.get$spanWithoutContent();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 24
- };
- R._EvaluateVisitor_visitIncludeRule_closure7.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = t1._evaluate0$_environment,
- oldContent = t2._environment0$_content;
- t2._environment0$_content = _this.contentCallable;
- new R._EvaluateVisitor_visitIncludeRule__closure1(t1, _this.mixin, _this.nodeWithSpan).call$0();
- t2._environment0$_content = oldContent;
- return null;
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitIncludeRule__closure1.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._evaluate0$_environment,
- oldInMixin = t2._environment0$_inMixin;
- t2._environment0$_inMixin = true;
- new R._EvaluateVisitor_visitIncludeRule___closure1(t1, this.mixin, this.nodeWithSpan).call$0();
- t2._environment0$_inMixin = oldInMixin;
- return null;
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitIncludeRule___closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, t4, _i;
- for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
- t3._evaluate0$_addErrorSpan$2(t4, new R._EvaluateVisitor_visitIncludeRule____closure1(t3, t1[_i]));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitIncludeRule____closure1.prototype = {
- call$0: function() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitMediaRule_closure3.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.mergedQueries;
- if (t2 == null)
- t2 = _this.queries;
- t1._evaluate0$_withMediaQueries$2(t2, new R._EvaluateVisitor_visitMediaRule__closure1(t1, _this.node));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitMediaRule__closure1.prototype = {
- call$0: function() {
- var t3, _i,
- t1 = this.$this,
- t2 = t1._evaluate0$_styleRule;
- if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- else
- 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$.ModifiableCssStyleRule_2, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitMediaRule___closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitMediaRule_closure4.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule_2._is(node))
- t1 = this.mergedQueries != null && type$.CssMediaRule_2._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- R._EvaluateVisitor__visitMediaQueries_closure1.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.resolved, null);
- return new F.MediaQueryParser0(t1, this.$this._evaluate0$_logger).parse$0();
- },
- $signature: 55
- };
- R._EvaluateVisitor_visitStyleRule_closure13.prototype = {
- call$0: function() {
- var t1 = S.SpanScanner$(this.selectorText.value, null);
- return new E.KeyframeSelectorParser0(t1, this.$this._evaluate0$_logger).parse$0();
- },
- $signature: 32
- };
- R._EvaluateVisitor_visitStyleRule_closure14.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitStyleRule_closure15.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._EvaluateVisitor_visitStyleRule_closure16.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = !t1._evaluate0$_stylesheet.plainCss;
- return D.SelectorList_SelectorList$parse0(this.selectorText.value, t2, t2, t1._evaluate0$_logger);
- },
- $signature: 33
- };
- R._EvaluateVisitor_visitStyleRule_closure17.prototype = {
- call$0: function() {
- var t1 = this._box_0.parsedSelector,
- t2 = this.$this,
- t3 = t2._evaluate0$_styleRule;
- t3 = t3 == null ? null : t3.originalSelector;
- return t1.resolveParentSelectors$2$implicitParent(t3, !t2._evaluate0$_atRootExcludingStyleRule);
- },
- $signature: 33
- };
- R._EvaluateVisitor_visitStyleRule_closure18.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._evaluate0$_withStyleRule$2(this.rule, new R._EvaluateVisitor_visitStyleRule__closure1(t1, this.node));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitStyleRule__closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitStyleRule_closure19.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._EvaluateVisitor_visitSupportsRule_closure3.prototype = {
- call$0: function() {
- var t3, _i,
- t1 = this.$this,
- t2 = t1._evaluate0$_styleRule;
- if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- else
- t1._evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitSupportsRule__closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitSupportsRule_closure4.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._EvaluateVisitor_visitVariableDeclaration_closure5.prototype = {
- call$0: function() {
- var t1 = this.override;
- this.$this._evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitVariableDeclaration_closure6.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitVariableDeclaration_closure7.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = this.node;
- t1._evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitUseRule_closure1.prototype = {
- call$1: function(module) {
- var t1 = this.node;
- this.$this._evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
- }
- };
- R._EvaluateVisitor_visitWarnRule_closure1.prototype = {
- call$0: function() {
- return this.node.expression.accept$1(this.$this);
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitWhileRule_closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, result;
- for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
- result = t3._evaluate0$_handleReturn$2(t1, new R._EvaluateVisitor_visitWhileRule__closure1(t3));
- if (result != null)
- return result;
- }
- return null;
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitWhileRule__closure1.prototype = {
- call$1: function(child) {
- return child.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor_visitBinaryOperationExpression_closure1.prototype = {
- call$0: function() {
- var right, result,
- t1 = this.node,
- t2 = this.$this,
- left = t1.left.accept$1(t2);
- switch (t1.operator) {
- case C.BinaryOperator_kjl0:
- right = t1.right.accept$1(t2);
- left.toString;
- t1 = N.serializeValue(left, false, true) + "=";
- right.toString;
- return new D.SassString0(t1 + N.serializeValue(right, false, true), false);
- case C.BinaryOperator_or_or_10:
- return left.get$isTruthy() ? left : t1.right.accept$1(t2);
- case C.BinaryOperator_and_and_20:
- return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
- case C.BinaryOperator_YlX0:
- return J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
- case C.BinaryOperator_i5H0:
- return !J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
- case C.BinaryOperator_AcR2:
- return left.greaterThan$1(t1.right.accept$1(t2));
- case C.BinaryOperator_1da0:
- return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
- case C.BinaryOperator_8qt0:
- return left.lessThan$1(t1.right.accept$1(t2));
- case C.BinaryOperator_33h0:
- return left.lessThanOrEquals$1(t1.right.accept$1(t2));
- case C.BinaryOperator_AcR1:
- return left.plus$1(t1.right.accept$1(t2));
- case C.BinaryOperator_iyO0:
- return left.minus$1(t1.right.accept$1(t2));
- case C.BinaryOperator_O1M0:
- return left.times$1(t1.right.accept$1(t2));
- case C.BinaryOperator_RTB0:
- right = t1.right.accept$1(t2);
- result = left.dividedBy$1(right);
- if (t1.allowsSlash && left instanceof T.SassNumber0 && right instanceof T.SassNumber0)
- return type$.SassNumber_2._as(result).withSlash$2(left, right);
- else
- return result;
- case C.BinaryOperator_2ad0:
- return left.modulo$1(t1.right.accept$1(t2));
- default:
- return null;
- }
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitVariableExpression_closure1.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 14
- };
- R._EvaluateVisitor_visitListExpression_closure1.prototype = {
- call$1: function(expression) {
- return expression.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor_visitFunctionExpression_closure3.prototype = {
- call$0: function() {
- var t1 = this.node.namespace,
- t2 = this.plainName;
- if (t1 == null)
- t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
- return this.$this._evaluate0$_getFunction$2$namespace(t2, t1);
- },
- $signature: 50
- };
- R._EvaluateVisitor_visitFunctionExpression_closure4.prototype = {
- call$0: function() {
- var t1 = this.node;
- return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
- },
- $signature: 14
- };
- R._EvaluateVisitor__runUserDefinedCallable_closure1.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.callable;
- return t1._evaluate0$_withEnvironment$2(t2.environment.closure$0(), new R._EvaluateVisitor__runUserDefinedCallable__closure1(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run));
- },
- $signature: 14
- };
- R._EvaluateVisitor__runUserDefinedCallable__closure1.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this;
- return t1._evaluate0$_environment.scope$1$1(new R._EvaluateVisitor__runUserDefinedCallable___closure1(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.Value_2);
- },
- $signature: 14
- };
- R._EvaluateVisitor__runUserDefinedCallable___closure1.prototype = {
- call$0: function() {
- var declaredArguments, minLength, t8, t9, i, t10, t11, t12, argument, value, t13, rest, argumentList, result, argumentWord, argumentNames, _this = this, _null = null,
- t1 = _this.$this,
- t2 = _this.evaluated,
- t3 = t2.positional,
- t4 = t3.length,
- t5 = t2.named,
- t6 = _this.callable.declaration.$arguments,
- t7 = _this.nodeWithSpan;
- t1._evaluate0$_verifyArguments$4(t4, t5, t6, t7);
- declaredArguments = t6.$arguments;
- t4 = declaredArguments.length;
- minLength = Math.min(t3.length, t4);
- for (t8 = t1._evaluate0$_sourceMap, t9 = t2.positionalNodes, i = 0; i < minLength; ++i) {
- t10 = t1._evaluate0$_environment;
- t11 = declaredArguments[i].name;
- t12 = t3[i].withoutSlash$0();
- t10.setLocalVariable$3(t11, t12, t8 ? t9[i] : _null);
- }
- for (i = t3.length, t9 = t2.namedNodes; i < t4; ++i) {
- argument = declaredArguments[i];
- t10 = argument.name;
- value = t5.remove$1(0, t10);
- if (value == null)
- value = argument.defaultValue.accept$1(t1);
- t11 = t1._evaluate0$_environment;
- t12 = value.withoutSlash$0();
- if (t8) {
- t13 = t9.$index(0, t10);
- if (t13 == null)
- t13 = t1._evaluate0$_expressionNode$1(argument.defaultValue);
- } else
- t13 = _null;
- t11.setLocalVariable$3(t10, t12, t13);
- }
- t8 = t6.restArgument;
- if (t8 != null) {
- rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty16;
- t2 = t2.separator;
- if (t2 === C.ListSeparator_undecided0)
- t2 = C.ListSeparator_comma0;
- t3 = type$.Value_2;
- argumentList = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(t5, type$.String, t3), P.List_List$unmodifiable(rest, t3), t2, false);
- argumentList.SassList$3$brackets0(rest, t2, false);
- t1._evaluate0$_environment.setLocalVariable$3(t8, argumentList, t7);
- } else
- argumentList = _null;
- result = _this.run.call$0();
- if (argumentList == null)
- return result;
- if (t5.get$isEmpty(t5))
- return result;
- if (argumentList._argument_list$_wereKeywordsAccessed)
- return result;
- t2 = t5.get$keys();
- argumentWord = B.pluralize0("argument", t2.get$length(t2), _null);
- t5 = t5.get$keys();
- argumentNames = B.toSentence0(H.MappedIterable_MappedIterable(t5, new R._EvaluateVisitor__runUserDefinedCallable____closure1(), H._instanceType(t5)._eval$1("Iterable.E"), type$.Object), "or");
- 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$.FileSpan, type$.String), t1._evaluate0$_stackTrace$1(t7.get$span())));
- },
- $signature: 14
- };
- R._EvaluateVisitor__runUserDefinedCallable____closure1.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- R._EvaluateVisitor__runFunctionCallable_closure1.prototype = {
- call$0: function() {
- var t1, t2, t3, t4, _i, $returnValue;
- for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
- $returnValue = t2[_i].accept$1(t4);
- if ($returnValue instanceof F.Value0)
- return $returnValue;
- }
- throw H.wrapException(t4._evaluate0$_exception$2("Function finished without @return.", t1.span));
- },
- $signature: 14
- };
- R._EvaluateVisitor__runBuiltInCallable_closure3.prototype = {
- call$0: function() {
- return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
- },
- $signature: 1
- };
- R._EvaluateVisitor__runBuiltInCallable_closure4.prototype = {
- call$1: function($name) {
- return "$" + H.S($name);
- }
- };
- R._EvaluateVisitor__evaluateArguments_closure5.prototype = {
- call$2: function(_, expression) {
- return expression.accept$1(this.$this);
- }
- };
- R._EvaluateVisitor__evaluateArguments_closure6.prototype = {
- call$2: function(_, expression) {
- return this.$this._evaluate0$_expressionNode$1(expression);
- }
- };
- R._EvaluateVisitor__evaluateArguments_closure7.prototype = {
- call$2: function(key, value) {
- var t1;
- this.named.$indexSet(0, key, value);
- t1 = this.namedNodes;
- if (t1 != null)
- t1.$indexSet(0, key, this.restNodeForSpan);
- }
- };
- R._EvaluateVisitor__evaluateMacroArguments_closure7.prototype = {
- call$1: function(value) {
- return new F.ValueExpression0(value, null);
- }
- };
- R._EvaluateVisitor__evaluateMacroArguments_closure8.prototype = {
- call$1: function(value) {
- return new F.ValueExpression0(value, null);
- }
- };
- R._EvaluateVisitor__evaluateMacroArguments_closure9.prototype = {
- call$2: function(key, value) {
- this.named.$indexSet(0, key, new F.ValueExpression0(value, null));
- }
- };
- R._EvaluateVisitor__evaluateMacroArguments_closure10.prototype = {
- call$1: function(value) {
- return new F.ValueExpression0(value, null);
- }
- };
- R._EvaluateVisitor__addRestMap_closure3.prototype = {
- call$1: function(value) {
- return this.T._as(value);
- }
- };
- R._EvaluateVisitor__addRestMap_closure4.prototype = {
- call$2: function(key, value) {
- var _this = this;
- if (key instanceof D.SassString0)
- _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
- else
- throw H.wrapException(_this.$this._evaluate0$_exception$2("Variable keyword argument map must have string keys.\n" + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
- }
- };
- R._EvaluateVisitor__verifyArguments_closure1.prototype = {
- call$0: function() {
- return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_String));
- },
- $signature: 1
- };
- R._EvaluateVisitor_visitStringExpression_closure1.prototype = {
- call$1: function(value) {
- var t1, result;
- if (typeof value == "string")
- return value;
- type$.Expression_2._as(value);
- t1 = this.$this;
- result = value.accept$1(t1);
- return result instanceof D.SassString0 ? result.text : t1._evaluate0$_serialize$3$quote(result, value, false);
- },
- $signature: 27
- };
- R._EvaluateVisitor_visitCssAtRule_closure3.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssAtRule_closure4.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._EvaluateVisitor_visitCssKeyframeBlock_closure3.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssKeyframeBlock_closure4.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._EvaluateVisitor_visitCssMediaRule_closure3.prototype = {
- call$0: function() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.mergedQueries;
- if (t2 == null)
- t2 = _this.node.queries;
- t1._evaluate0$_withMediaQueries$2(t2, new R._EvaluateVisitor_visitCssMediaRule__closure1(t1, _this.node));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssMediaRule__closure1.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._evaluate0$_styleRule;
- if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
- for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t2.__internal$_current.accept$1(t1);
- else
- 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$.ModifiableCssStyleRule_2, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssMediaRule___closure1.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssMediaRule_closure4.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule_2._is(node))
- t1 = this.mergedQueries != null && type$.CssMediaRule_2._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- R._EvaluateVisitor_visitCssStyleRule_closure3.prototype = {
- call$0: function() {
- var t1 = this.$this;
- t1._evaluate0$_withStyleRule$2(this.rule, new R._EvaluateVisitor_visitCssStyleRule__closure1(t1, this.node));
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssStyleRule__closure1.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssStyleRule_closure4.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._EvaluateVisitor_visitCssSupportsRule_closure3.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._evaluate0$_styleRule;
- if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
- for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t2.__internal$_current.accept$1(t1);
- else
- t1._evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssSupportsRule__closure1.prototype = {
- call$0: function() {
- var t1, t2;
- for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();)
- t1.__internal$_current.accept$1(t2);
- },
- $signature: 0
- };
- R._EvaluateVisitor_visitCssSupportsRule_closure4.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._EvaluateVisitor__performInterpolation_closure1.prototype = {
- call$1: function(value) {
- var t1, result, t2, t3;
- if (typeof value == "string")
- return value;
- type$.Expression_2._as(value);
- t1 = this.$this;
- result = value.accept$1(t1);
- if (this.warnForColor && result instanceof K.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
- t2 = X.Interpolation$0([""], null);
- t3 = $.$get$namesByColor0();
- t1._evaluate0$_warn$2("You probably don't mean to use the color value " + H.S(t3.$index(0, result)) + " in interpolation here.\nIt may end up represented as " + H.S(result) + ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "' + H.S(t3.$index(0, result)) + "\").\nIf you really want to use the color value here, use '" + new V.BinaryOperationExpression0(C.BinaryOperator_AcR1, new D.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span());
- }
- return t1._evaluate0$_serialize$3$quote(result, value, false);
- },
- $signature: 27
- };
- R._EvaluateVisitor__serialize_closure1.prototype = {
- call$0: function() {
- var t1 = this.value;
- t1.toString;
- return N.serializeValue(t1, false, this.quote);
- },
- $signature: 10
- };
- R._EvaluateVisitor__stackTrace_closure1.prototype = {
- call$1: function(tuple) {
- return this.$this._evaluate0$_stackFrame$2(tuple.item1, tuple.item2.get$span());
- }
- };
- R._ImportedCssVisitor1.prototype = {
- visitCssAtRule$1: function(node) {
- var t1 = node.isChildless ? null : new R._ImportedCssVisitor_visitCssAtRule_closure1();
- this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, t1);
- },
- visitCssComment$1: function(node) {
- return this._evaluate0$_visitor._evaluate0$_addChild$1(node);
- },
- visitCssDeclaration$1: function(node) {
- },
- visitCssImport$1: function(node) {
- var t1 = this._evaluate0$_visitor,
- t2 = t1._evaluate0$_parent,
- t3 = t1._evaluate0$_root;
- if (t2 != t3)
- t1._evaluate0$_addChild$1(node);
- else if (t1._evaluate0$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
- t1._evaluate0$_addChild$1(node);
- t1._evaluate0$_endOfImports = t1._evaluate0$_endOfImports + 1;
- } else {
- t2 = t1._evaluate0$_outOfOrderImports;
- (t2 == null ? t1._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
- }
- },
- visitCssKeyframeBlock$1: function(node) {
- },
- visitCssMediaRule$1: function(node) {
- var t1 = this._evaluate0$_visitor,
- t2 = t1._evaluate0$_mediaQueries;
- t1._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssMediaRule_closure1(t2 == null || t1._evaluate0$_mergeMediaQueries$2(t2, node.queries) != null));
- },
- visitCssStyleRule$1: function(node) {
- return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssStyleRule_closure1());
- },
- visitCssStylesheet$1: function(node) {
- var t1;
- for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
- t1.__internal$_current.accept$1(this);
- },
- visitCssSupportsRule$1: function(node) {
- return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssSupportsRule_closure1());
- }
- };
- R._ImportedCssVisitor_visitCssAtRule_closure1.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._ImportedCssVisitor_visitCssMediaRule_closure1.prototype = {
- call$1: function(node) {
- var t1;
- if (!type$.CssStyleRule_2._is(node))
- t1 = this.hasBeenMerged && type$.CssMediaRule_2._is(node);
- else
- t1 = true;
- return t1;
- }
- };
- R._ImportedCssVisitor_visitCssStyleRule_closure1.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._ImportedCssVisitor_visitCssSupportsRule_closure1.prototype = {
- call$1: function(node) {
- return type$.CssStyleRule_2._is(node);
- }
- };
- R._ArgumentResults1.prototype = {};
- E.SassException0.prototype = {
- get$trace: function() {
- return new Y.Trace(P.List_List$unmodifiable(H.setRuntimeTypeInfo([B.frameForSpan0(G.SourceSpanException.prototype.get$span.call(this), "root stylesheet", null)], type$.JSArray_Frame), type$.Frame), new P._StringStackTrace(null));
- },
- get$span: function() {
- return G.SourceSpanException.prototype.get$span.call(this);
- },
- toString$0: function(_) {
- var t2, _i, frame, t3,
- buffer = new P.StringBuffer(""),
- t1 = "Error: " + H.S(this._span_exception$_message) + "\n";
- buffer._contents = t1;
- buffer._contents = t1 + G.SourceSpanException.prototype.get$span.call(this).highlight$1$color(null);
- for (t1 = this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- frame = t1[_i];
- frame.toString;
- if (J.get$length$asx(frame) === 0)
- continue;
- t3 = buffer._contents += "\n";
- buffer._contents = t3 + (" " + H.S(frame));
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- E.MultiSpanSassException0.prototype = {
- toString$0: function(_) {
- var t2, _i, frame, t3, _this = this,
- buffer = new P.StringBuffer(""),
- t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
- buffer._contents = t1;
- buffer._contents = t1 + U.Highlighter$multiple(G.SourceSpanException.prototype.get$span.call(_this), _this.primaryLabel, _this.secondarySpans, false, null, null).highlight$0();
- for (t1 = _this.get$trace().toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- frame = t1[_i];
- frame.toString;
- if (J.get$length$asx(frame) === 0)
- continue;
- t3 = buffer._contents += "\n";
- buffer._contents = t3 + (" " + H.S(frame));
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- E.SassRuntimeException0.prototype = {
- get$trace: function() {
- return this.trace;
- }
- };
- E.MultiSpanSassRuntimeException0.prototype = {$isSassRuntimeException0: 1,
- get$trace: function() {
- return this.trace;
- }
- };
- E.SassFormatException0.prototype = {
- get$source: function() {
- return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(this).file._decodedChars, 0, null), 0, null);
- },
- $isFormatException: 1,
- $isSourceSpanFormatException: 1
- };
- E.SassScriptException0.prototype = {
- toString$0: function(_) {
- return this.message + "\n\nBUG: This should include a source span!";
- },
- get$message: function(receiver) {
- return this.message;
- }
- };
- E.MultiSpanSassScriptException0.prototype = {};
- D.Exports.prototype = {};
- T.Expression0.prototype = {$isAstNode0: 1};
- X.ExtendRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitExtendRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@extend " + this.selector.toString$0(0);
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- F.Extender0.prototype = {
- get$isEmpty: function(_) {
- var t1 = this._extender$_extensions;
- return t1.get$isEmpty(t1);
- },
- get$simpleSelectors: function() {
- return new M.MapKeySet(this._extender$_selectors, type$.MapKeySet_SimpleSelector_2);
- },
- extensionsWhereTarget$1: function($async$callback) {
- var $async$self = this;
- return P._makeSyncStarIterable(function() {
- var callback = $async$callback;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4;
- return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._extender$_extensions, t2 = t1.get$keys(), t2 = t2.get$iterator(t2);
- case 2:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t3 = t2.get$current(t2);
- if (!callback.call$1(t3)) {
- // goto for condition
- $async$goto = 2;
- break;
- }
- t3 = t1.$index(0, t3).get$values(), t3 = t3.get$iterator(t3);
- case 4:
- // for condition
- if (!t3.moveNext$0()) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t4 = t3.get$current(t3);
- $async$goto = t4 instanceof A.MergedExtension0 ? 6 : 8;
- break;
- case 6:
- // then
- t4 = t4.unmerge$0();
- $async$goto = 9;
- return P._IterationMarker_yieldStar(new H.WhereIterable(t4, new F.Extender_extensionsWhereTarget_closure0(), t4.$ti._eval$1("WhereIterable<Iterable.E>")));
- case 9:
- // after yield
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = !t4.isOptional ? 10 : 11;
- break;
- case 10:
- // then
- $async$goto = 12;
- return t4;
- case 12:
- // after yield
- case 11:
- // join
- case 7:
- // join
- // goto for condition
- $async$goto = 4;
- break;
- case 5:
- // after for
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return P._IterationMarker_endOfIteration();
- case 1:
- // rethrow
- return P._IterationMarker_uncaughtError($async$currentError);
- }
- };
- }, type$.Extension_2);
- },
- addSelector$3: function(selector, span, mediaContext) {
- var error, t1, t2, t3, _i, exception, modifiableSelector, _this = this,
- originalSelector = selector;
- if (!originalSelector.get$isInvisible())
- for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._extender$_originals, _i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i]);
- t1 = _this._extender$_extensions;
- if (t1.get$isNotEmpty(t1))
- try {
- selector = _this._extender$_extendList$3(originalSelector, t1, mediaContext);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException0) {
- error = t1;
- throw H.wrapException(E.SassException$0("From " + error.get$span().message$1(0, "") + "\n" + H.S(error._span_exception$_message), span));
- } else
- throw exception;
- }
- modifiableSelector = new F.ModifiableCssValue0(selector, span, type$.ModifiableCssValue_SelectorList_2);
- if (mediaContext != null)
- _this._extender$_mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
- _this._extender$_registerSelector$2(selector, modifiableSelector);
- return modifiableSelector;
- },
- _extender$_registerSelector$2: function(list, selector) {
- var t1, t2, t3, _i, t4, t5, _i0, component, t6, t7, _i1, simple;
- for (t1 = list.components, t2 = t1.length, t3 = this._extender$_selectors, _i = 0; _i < t2; ++_i)
- for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) {
- component = t4[_i0];
- if (component instanceof X.CompoundSelector0)
- for (t6 = component.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
- simple = t6[_i1];
- J.add$1$ax(t3.putIfAbsent$2(simple, new F.Extender__registerSelector_closure0()), selector);
- if (simple instanceof D.PseudoSelector0 && simple.selector != null)
- this._extender$_registerSelector$2(simple.selector, selector);
- }
- }
- },
- addExtension$4: function(extender, target, extend, mediaContext) {
- 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,
- selectors = _this._extender$_selectors.$index(0, target),
- t1 = _this._extender$_extensionsByExtender,
- existingExtensions = t1.$index(0, target),
- sources = _this._extender$_extensions.putIfAbsent$2(target, new F.Extender_addExtension_closure2());
- 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$.ComplexSelector_2, t11 = type$.Extension_2, newExtensions = null, _i = 0; _i < t3; ++_i) {
- complex = t2[_i];
- if (complex._complex0$_maxSpecificity == null)
- complex._complex0$_computeSpecificity$0();
- t12 = complex._complex0$_maxSpecificity;
- state = new S.Extension0(complex, target, t12, t8, false, mediaContext, t6, t7);
- existingState = sources.$index(0, complex);
- if (existingState != null) {
- sources.$indexSet(0, complex, A.MergedExtension_merge0(existingState, state));
- continue;
- }
- sources.$indexSet(0, complex, state);
- for (t12 = complex.components, t13 = t12.length, _i0 = 0; _i0 < t13; ++_i0) {
- component = t12[_i0];
- if (component instanceof X.CompoundSelector0)
- for (t14 = component.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1) {
- simple = t14[_i1];
- J.add$1$ax(t1.putIfAbsent$2(simple, new F.Extender_addExtension_closure3()), state);
- t5.putIfAbsent$2(simple, new F.Extender_addExtension_closure4(complex));
- }
- }
- if (!t4 || t9) {
- if (newExtensions == null)
- newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
- newExtensions.$indexSet(0, complex, state);
- }
- }
- if (newExtensions == null)
- return;
- newExtensionsByTarget = P.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2);
- if (t9) {
- additionalExtensions = _this._extender$_extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
- if (additionalExtensions != null)
- B.mapAddAll20(newExtensionsByTarget, additionalExtensions);
- }
- if (!t4)
- _this._extender$_extendExistingSelectors$2(selectors, newExtensionsByTarget);
- },
- _extender$_extendExistingExtensions$2: function(extensions, newExtensions) {
- 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;
- for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extender$_extensionsByExtender, t4 = type$.SimpleSelector_2, t5 = type$.Map_ComplexSelector_Extension_2, t6 = this._extender$_extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- extension = t1[_i];
- sources = t6.$index(0, extension.target);
- selectors = null;
- try {
- selectors = this._extender$_extendComplex$3(extension.extender, newExtensions, extension.mediaContext);
- if (selectors == null)
- continue;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException0) {
- error = t1;
- throw H.wrapException(E.SassException$0("From " + extension.extenderSpan.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
- } else
- throw exception;
- }
- containsExtension = J.$eq$(J.get$first$ax(selectors), extension.extender);
- for (t7 = selectors, t8 = t7.length, first = false, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, H.throwConcurrentModificationError)(t7), ++_i0) {
- complex = t7[_i0];
- if (containsExtension && first) {
- first = false;
- continue;
- }
- t9 = extension;
- t10 = t9.target;
- t11 = t9.extenderSpan;
- t12 = t9.span;
- t13 = t9.mediaContext;
- t14 = t9.specificity;
- t9 = t9.isOptional;
- if (t14 == null) {
- if (complex._complex0$_maxSpecificity == null)
- complex._complex0$_computeSpecificity$0();
- t14 = complex._complex0$_maxSpecificity;
- }
- withExtender = new S.Extension0(complex, t10, t14, t9, false, t13, t11, t12);
- existingExtension = sources.$index(0, complex);
- if (existingExtension != null)
- sources.$indexSet(0, complex, A.MergedExtension_merge0(existingExtension, withExtender));
- else {
- sources.$indexSet(0, complex, withExtender);
- for (t9 = complex.components, t10 = t9.length, _i1 = 0; _i1 < t10; ++_i1) {
- component = t9[_i1];
- if (component instanceof X.CompoundSelector0)
- for (t11 = component.components, t12 = t11.length, _i2 = 0; _i2 < t12; ++_i2)
- J.add$1$ax(t3.putIfAbsent$2(t11[_i2], new F.Extender__extendExistingExtensions_closure1()), withExtender);
- }
- if (newExtensions.containsKey$1(extension.target)) {
- if (additionalExtensions == null)
- additionalExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
- additionalExtensions.putIfAbsent$2(extension.target, new F.Extender__extendExistingExtensions_closure2()).$indexSet(0, complex, withExtender);
- }
- }
- }
- if (!containsExtension)
- sources.remove$1(0, extension.extender);
- }
- return additionalExtensions;
- },
- _extender$_extendExistingSelectors$2: function(selectors, newExtensions) {
- var selector, error, t1, t2, oldValue, exception;
- for (t1 = selectors.get$iterator(selectors), t2 = this._extender$_mediaContexts; t1.moveNext$0();) {
- selector = t1.get$current(t1);
- oldValue = selector.value;
- try {
- selector.value = this._extender$_extendList$3(selector.value, newExtensions, t2.$index(0, selector));
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassException0) {
- error = t1;
- throw H.wrapException(E.SassException$0("From " + selector.span.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
- } else
- throw exception;
- }
- if (oldValue == selector.value)
- continue;
- this._extender$_registerSelector$2(selector.value, selector);
- }
- },
- addExtensions$1: function(extenders) {
- var t1, t2, t3, _this = this, _box_0 = {};
- _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
- for (t1 = J.get$iterator$ax(extenders), t2 = _this._extender$_sourceSpecificity; t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- if (t3.get$isEmpty(t3))
- continue;
- t2.addAll$1(0, t3.get$_extender$_sourceSpecificity());
- t3.get$_extender$_extensions().forEach$1(0, new F.Extender_addExtensions_closure0(_box_0, _this, t3));
- }
- t1 = _box_0.newExtensions;
- if (t1 == null)
- return;
- t2 = _box_0.extensionsToExtend;
- if (t2 != null)
- _this._extender$_extendExistingExtensions$2(t2, t1);
- t1 = _box_0.selectorsToExtend;
- if (t1 != null)
- _this._extender$_extendExistingSelectors$2(t1, _box_0.newExtensions);
- },
- _extender$_extendList$3: function(list, extensions, mediaQueryContext) {
- var t1, t2, t3, extended, i, complex, result, t4;
- for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector_2, extended = null, i = 0; i < t2; ++i) {
- complex = t1[i];
- result = this._extender$_extendComplex$3(complex, extensions, mediaQueryContext);
- if (result == null) {
- if (extended != null)
- extended.push(complex);
- } else {
- if (extended == null)
- if (i === 0)
- extended = H.setRuntimeTypeInfo([], t3);
- else {
- t4 = C.JSArray_methods.sublist$2(t1, 0, i);
- extended = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4)._eval$1("JSArray<1>"));
- }
- C.JSArray_methods.addAll$1(extended, result);
- }
- }
- if (extended == null)
- return list;
- t1 = this._extender$_originals;
- return D.SelectorList$0(J.where$1$ax(this._extender$_trim$2(extended, t1.get$contains(t1)), new F.Extender__extendList_closure0()));
- },
- _extender$_extendComplex$3: function(complex, extensions, mediaQueryContext) {
- var t1, t2, t3, t4, t5, t6, extendedNotExpanded, i, component, extended, result, t7,
- _s28_ = "components may not be empty.",
- _box_0 = {},
- isOriginal = this._extender$_originals.contains$1(0, complex);
- for (t1 = complex.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector_2, t4 = type$.JSArray_ComplexSelectorComponent_2, t5 = type$.ComplexSelectorComponent_2, t6 = H._arrayInstanceType(t1)._precomputed1, extendedNotExpanded = null, i = 0; i < t2; ++i) {
- component = t1[i];
- if (component instanceof X.CompoundSelector0) {
- extended = this._extender$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
- if (extended == null) {
- if (extendedNotExpanded != null) {
- result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t7 = result;
- if (t7.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector0(t7, false)], t3));
- }
- } else {
- if (extendedNotExpanded == null) {
- t7 = H.SubListIterable$(t1, 0, i, t6);
- extendedNotExpanded = new H.MappedListIterable(t7, new F.Extender__extendComplex_closure1(complex), t7.$ti._eval$1("MappedListIterable<ListIterable.E,List<ComplexSelector0>>")).toList$0(0);
- }
- C.JSArray_methods.add$1(extendedNotExpanded, extended);
- }
- } else if (extendedNotExpanded != null) {
- result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t7 = result;
- if (t7.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector0(t7, false)], t3));
- }
- }
- if (extendedNotExpanded == null)
- return null;
- _box_0.first = true;
- t1 = type$.ComplexSelector_2;
- t1 = J.expand$1$1$ax(Y.paths0(extendedNotExpanded, t1), new F.Extender__extendComplex_closure2(_box_0, this, complex), t1);
- return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
- },
- _extender$_extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
- var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, result, t12, t13, _this = this, _null = null,
- _s28_ = "components may not be empty.",
- _box_1 = {},
- t1 = _this._extender$_mode,
- targetsUsed = t1 === C.ExtendMode_normal0 || extensions.get$length(extensions) < 2 ? _null : P.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2);
- for (t2 = compound.components, t3 = t2.length, t4 = type$.JSArray_List_Extension_2, t5 = type$.JSArray_Extension_2, t6 = type$.JSArray_ComplexSelectorComponent_2, t7 = type$.ComplexSelectorComponent_2, t8 = H._arrayInstanceType(t2)._precomputed1, t9 = type$.SimpleSelector_2, t10 = _this._extender$_sourceSpecificity, t11 = type$.JSArray_SimpleSelector_2, options = _null, i = 0; i < t3; ++i) {
- simple = t2[i];
- extended = _this._extender$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
- if (extended == null) {
- if (options != null) {
- result = P.List_List$from(H.setRuntimeTypeInfo([simple], t11), false, t9);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- if (t12.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- result = P.List_List$from(H.setRuntimeTypeInfo([new X.CompoundSelector0(t12)], t6), false, t7);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- if (t12.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- t13 = t10.$index(0, simple);
- if (t13 == null)
- t13 = 0;
- options.push(H.setRuntimeTypeInfo([new S.Extension0(new S.ComplexSelector0(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
- }
- } else {
- if (options == null) {
- options = H.setRuntimeTypeInfo([], t4);
- if (i !== 0) {
- result = P.List_List$from(H.SubListIterable$(t2, 0, i, t8), false, t9);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- compound = new X.CompoundSelector0(t12);
- if (t12.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- result = P.List_List$from(H.setRuntimeTypeInfo([compound], t6), false, t7);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- if (t12.length === 0)
- H.throwExpression(P.ArgumentError$(_s28_));
- t13 = _this._extender$_sourceSpecificityFor$1(compound);
- options.push(H.setRuntimeTypeInfo([new S.Extension0(new S.ComplexSelector0(t12, false), _null, t13, true, true, _null, _null, _null)], t5));
- }
- }
- C.JSArray_methods.addAll$1(options, extended);
- }
- }
- if (options == null)
- return _null;
- if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
- return _null;
- if (options.length === 1)
- return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure3(mediaQueryContext), type$.ComplexSelector_2).toList$0(0);
- _box_1.first = t1 !== C.ExtendMode_replace0;
- t1 = J.map$1$1$ax(Y.paths0(options, type$.Extension_2), new F.Extender__extendCompound_closure4(_box_1, mediaQueryContext), type$.List_ComplexSelector_2).where$1(0, new F.Extender__extendCompound_closure5());
- t2 = t1.$ti._eval$1("ExpandIterable<Iterable.E,ComplexSelector0>");
- return P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure6(), t2), true, t2._eval$1("Iterable.E"));
- },
- _extender$_extendSimple$4: function(simple, extensions, mediaQueryContext, targetsUsed) {
- var extended, result,
- t1 = new F.Extender__extendSimple_withoutPseudo0(this, extensions, targetsUsed);
- if (simple instanceof D.PseudoSelector0 && simple.selector != null) {
- extended = this._extender$_extendPseudo$3(simple, extensions, mediaQueryContext);
- if (extended != null)
- return new H.MappedListIterable(extended, new F.Extender__extendSimple_closure0(this, t1), H._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extension0>>"));
- }
- result = t1.call$1(simple);
- return result == null ? null : H.setRuntimeTypeInfo([result], type$.JSArray_List_Extension_2);
- },
- _extender$_extensionForSimple$1: function(simple) {
- var t1 = S.ComplexSelector$0(H.setRuntimeTypeInfo([X.CompoundSelector$0(H.setRuntimeTypeInfo([simple], type$.JSArray_SimpleSelector_2))], type$.JSArray_ComplexSelectorComponent_2), false),
- t2 = this._extender$_sourceSpecificity.$index(0, simple);
- return S.Extension$oneOff0(t1, true, t2 == null ? 0 : t2);
- },
- _extender$_extendPseudo$3: function(pseudo, extensions, mediaQueryContext) {
- var complexes, t2, result,
- t1 = pseudo.selector,
- extended = this._extender$_extendList$3(t1, extensions, mediaQueryContext);
- if (extended == t1)
- return null;
- complexes = extended.components;
- t2 = pseudo.normalizedName === "not";
- 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()))
- complexes = new H.WhereIterable(complexes, new F.Extender__extendPseudo_closure6(), H._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
- complexes = J.expand$1$1$ax(complexes, new F.Extender__extendPseudo_closure7(pseudo), type$.ComplexSelector_2);
- if (t2 && t1.components.length === 1) {
- t1 = H.MappedIterable_MappedIterable(complexes, new F.Extender__extendPseudo_closure8(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector_2);
- result = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
- return result.length === 0 ? null : result;
- } else
- return H.setRuntimeTypeInfo([D.PseudoSelector$0(pseudo.name, pseudo.argument, !pseudo.isClass, D.SelectorList$0(complexes))], type$.JSArray_PseudoSelector_2);
- },
- _extender$_trim$2: function(selectors, isOriginal) {
- var result, i, t1, numOriginals, _box_0, complex1, j, t2, t3, _i, component;
- if (selectors.length > 100)
- return selectors;
- result = Q.QueueList$(null, type$.ComplexSelector_2);
- $label0$0:
- for (i = selectors.length - 1, t1 = H._arrayInstanceType(selectors)._precomputed1, numOriginals = 0; i >= 0; --i) {
- _box_0 = {};
- complex1 = selectors[i];
- if (isOriginal.call$1(complex1)) {
- for (j = 0; j < numOriginals; ++j)
- if (J.$eq$(result.$index(0, j), complex1)) {
- B.rotateSlice0(result, 0, j + 1);
- continue $label0$0;
- }
- ++numOriginals;
- result.addFirst$1(complex1);
- continue $label0$0;
- }
- _box_0.maxSpecificity = 0;
- for (t2 = complex1.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- component = t2[_i];
- if (component instanceof X.CompoundSelector0)
- _box_0.maxSpecificity = Math.max(_box_0.maxSpecificity, this._extender$_sourceSpecificityFor$1(component));
- }
- if (result.any$1(result, new F.Extender__trim_closure1(_box_0, complex1)))
- continue $label0$0;
- if (H.SubListIterable$(selectors, 0, i, t1).any$1(0, new F.Extender__trim_closure2(_box_0, complex1)))
- continue $label0$0;
- result.addFirst$1(complex1);
- }
- return result;
- },
- _extender$_sourceSpecificityFor$1: function(compound) {
- var t1, t2, t3, specificity, _i, t4;
- for (t1 = compound.components, t2 = t1.length, t3 = this._extender$_sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
- t4 = t3.$index(0, t1[_i]);
- specificity = Math.max(specificity, H.checkNum(t4 == null ? 0 : t4));
- }
- return specificity;
- },
- clone$0: function() {
- var t3, t4, _this = this,
- t1 = type$.SimpleSelector_2,
- newSelectors = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableCssValue_SelectorList_2),
- t2 = type$.ModifiableCssValue_SelectorList_2,
- newMediaContexts = P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.List_CssMediaQuery_2),
- oldToNewSelectors = P.LinkedHashMap_LinkedHashMap$_empty(type$.CssValue_SelectorList_2, t2);
- _this._extender$_selectors.forEach$1(0, new F.Extender_clone_closure0(_this, newSelectors, oldToNewSelectors, newMediaContexts));
- t2 = type$.Extension_2;
- t3 = B.copyMapOfMap0(_this._extender$_extensions, t1, type$.ComplexSelector_2, t2);
- t2 = B.copyMapOfList0(_this._extender$_extensionsByExtender, t1, t2);
- t1 = P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.int);
- t1.addAll$1(0, _this._extender$_sourceSpecificity);
- t4 = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2);
- t4.addAll$1(0, _this._extender$_originals);
- return new S.Tuple2(new F.Extender0(newSelectors, t3, t2, newMediaContexts, t1, t4, C.ExtendMode_normal0), oldToNewSelectors, type$.Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2);
- },
- get$_extender$_extensions: function() {
- return this._extender$_extensions;
- },
- get$_extender$_sourceSpecificity: function() {
- return this._extender$_sourceSpecificity;
- }
- };
- F.Extender_extensionsWhereTarget_closure0.prototype = {
- call$1: function(extension) {
- return !extension.isOptional;
- }
- };
- F.Extender__registerSelector_closure0.prototype = {
- call$0: function() {
- return P.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList_2);
- },
- $signature: 126
- };
- F.Extender_addExtension_closure2.prototype = {
- call$0: function() {
- return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
- },
- $signature: 60
- };
- F.Extender_addExtension_closure3.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_Extension_2);
- },
- $signature: 87
- };
- F.Extender_addExtension_closure4.prototype = {
- call$0: function() {
- return this.complex.get$maxSpecificity();
- },
- $signature: 8
- };
- F.Extender__extendExistingExtensions_closure1.prototype = {
- call$0: function() {
- return H.setRuntimeTypeInfo([], type$.JSArray_Extension_2);
- },
- $signature: 87
- };
- F.Extender__extendExistingExtensions_closure2.prototype = {
- call$0: function() {
- return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
- },
- $signature: 60
- };
- F.Extender_addExtensions_closure0.prototype = {
- call$2: function(target, newSources) {
- var t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
- if (target instanceof N.PlaceholderSelector0 && T.isPrivate0(target.name))
- return;
- t1 = _this.$this;
- extensionsForTarget = t1._extender$_extensionsByExtender.$index(0, target);
- t2 = extensionsForTarget == null;
- if (!t2) {
- t3 = _this._box_0;
- t4 = t3.extensionsToExtend;
- C.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = H.setRuntimeTypeInfo([], type$.JSArray_Extension_2) : t4, extensionsForTarget);
- }
- selectorsForTarget = t1._extender$_selectors.$index(0, target);
- t3 = selectorsForTarget != null;
- if (t3) {
- t4 = _this._box_0;
- t5 = t4.selectorsToExtend;
- (t5 == null ? t4.selectorsToExtend = P.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableCssValue_SelectorList_2) : t5).addAll$1(0, selectorsForTarget);
- }
- t1 = t1._extender$_extensions;
- existingSources = t1.$index(0, target);
- if (existingSources == null) {
- t4 = _this.extender;
- t1.$indexSet(0, target, t4.get$_extender$_extensions().$index(0, target));
- if (!t2 || t3) {
- t1 = _this._box_0;
- t2 = t1.newExtensions;
- t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2) : t2;
- t1.$indexSet(0, target, t4.get$_extender$_extensions().$index(0, target));
- }
- } else
- newSources.forEach$1(0, new F.Extender_addExtensions__closure0(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
- }
- };
- F.Extender_addExtensions__closure0.prototype = {
- call$2: function(extender, extension) {
- var t2, _this = this,
- t1 = _this.existingSources;
- if (t1.containsKey$1(extender))
- return;
- t1.$indexSet(0, extender, extension);
- if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
- t1 = _this._box_0;
- t2 = t1.newExtensions;
- t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2) : t2;
- t1.putIfAbsent$2(_this.target, new F.Extender_addExtensions___closure1()).putIfAbsent$2(extender, new F.Extender_addExtensions___closure2(extension));
- }
- }
- };
- F.Extender_addExtensions___closure1.prototype = {
- call$0: function() {
- return P.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
- },
- $signature: 60
- };
- F.Extender_addExtensions___closure2.prototype = {
- call$0: function() {
- return this.extension;
- },
- $signature: 129
- };
- F.Extender__extendList_closure0.prototype = {
- call$1: function(complex) {
- return complex != null;
- }
- };
- F.Extender__extendComplex_closure1.prototype = {
- call$1: function(component) {
- return H.setRuntimeTypeInfo([S.ComplexSelector$0(H.setRuntimeTypeInfo([component], type$.JSArray_ComplexSelectorComponent_2), this.complex.lineBreak)], type$.JSArray_ComplexSelector_2);
- }
- };
- F.Extender__extendComplex_closure2.prototype = {
- call$1: function(path) {
- var t1 = Y.weave0(J.map$1$1$ax(path, new F.Extender__extendComplex__closure1(), type$.List_ComplexSelectorComponent_2).toList$0(0));
- 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>"));
- }
- };
- F.Extender__extendComplex__closure1.prototype = {
- call$1: function(complex) {
- return complex.components;
- }
- };
- F.Extender__extendComplex__closure2.prototype = {
- call$1: function(components) {
- var _this = this,
- t1 = _this.complex,
- outputComplex = S.ComplexSelector$0(components, t1.lineBreak || J.any$1$ax(_this.path, new F.Extender__extendComplex___closure0())),
- t2 = _this._box_0;
- if (t2.first && _this.$this._extender$_originals.contains$1(0, t1))
- _this.$this._extender$_originals.add$1(0, outputComplex);
- t2.first = false;
- return outputComplex;
- }
- };
- F.Extender__extendComplex___closure0.prototype = {
- call$1: function(inputComplex) {
- return inputComplex.lineBreak;
- }
- };
- F.Extender__extendCompound_closure3.prototype = {
- call$1: function(state) {
- state.assertCompatibleMediaContext$1(this.mediaQueryContext);
- return state.extender;
- }
- };
- F.Extender__extendCompound_closure4.prototype = {
- call$1: function(path) {
- var complexes, toUnify, t2, t3, originals, t4, _box_0 = {},
- t1 = this._box_1;
- if (t1.first) {
- t1.first = false;
- complexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([X.CompoundSelector$0(J.expand$1$1$ax(path, new F.Extender__extendCompound__closure1(), type$.SimpleSelector_2))], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2);
- } else {
- toUnify = Q.QueueList$(null, type$.List_ComplexSelectorComponent_2);
- for (t1 = J.get$iterator$ax(path), t2 = type$.CompoundSelector_2, t3 = type$.JSArray_SimpleSelector_2, originals = null; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- if (t4.isOriginal) {
- if (originals == null)
- originals = H.setRuntimeTypeInfo([], t3);
- C.JSArray_methods.addAll$1(originals, t2._as(C.JSArray_methods.get$last(t4.extender.components)).components);
- } else
- toUnify._queue_list$_add$1(t4.extender.components);
- }
- if (originals != null)
- toUnify.addFirst$1(H.setRuntimeTypeInfo([X.CompoundSelector$0(originals)], type$.JSArray_ComplexSelectorComponent_2));
- complexes = Y.unifyComplex0(toUnify);
- if (complexes == null)
- return null;
- }
- _box_0.lineBreak = false;
- for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- t3.assertCompatibleMediaContext$1(t2);
- _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
- }
- return J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure2(_box_0), type$.ComplexSelector_2).toList$0(0);
- }
- };
- F.Extender__extendCompound__closure1.prototype = {
- call$1: function(state) {
- return type$.CompoundSelector_2._as(C.JSArray_methods.get$last(state.extender.components)).components;
- }
- };
- F.Extender__extendCompound__closure2.prototype = {
- call$1: function(components) {
- return S.ComplexSelector$0(components, this._box_0.lineBreak);
- }
- };
- F.Extender__extendCompound_closure5.prototype = {
- call$1: function(complexes) {
- return complexes != null;
- }
- };
- F.Extender__extendCompound_closure6.prototype = {
- call$1: function(l) {
- return l;
- }
- };
- F.Extender__extendSimple_withoutPseudo0.prototype = {
- call$1: function(simple) {
- var t1, t2,
- extenders = this.extensions.$index(0, simple);
- if (extenders == null)
- return null;
- t1 = this.targetsUsed;
- if (t1 != null)
- t1.add$1(0, simple);
- t1 = this.$this;
- if (t1._extender$_mode === C.ExtendMode_replace0) {
- t1 = extenders.get$values();
- return P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
- }
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_Extension_2);
- t2.push(t1._extender$_extensionForSimple$1(simple));
- for (t1 = extenders.get$values(), t1 = t1.get$iterator(t1); t1.moveNext$0();)
- t2.push(t1.get$current(t1));
- return t2;
- }
- };
- F.Extender__extendSimple_closure0.prototype = {
- call$1: function(pseudo) {
- var t1 = this.withoutPseudo.call$1(pseudo);
- return t1 == null ? H.setRuntimeTypeInfo([this.$this._extender$_extensionForSimple$1(pseudo)], type$.JSArray_Extension_2) : t1;
- }
- };
- F.Extender__extendPseudo_closure4.prototype = {
- call$1: function(complex) {
- return complex.components.length > 1;
- }
- };
- F.Extender__extendPseudo_closure5.prototype = {
- call$1: function(complex) {
- return complex.components.length === 1;
- }
- };
- F.Extender__extendPseudo_closure6.prototype = {
- call$1: function(complex) {
- return complex.components.length <= 1;
- }
- };
- F.Extender__extendPseudo_closure7.prototype = {
- call$1: function(complex) {
- var innerPseudo, t2,
- t1 = complex.components;
- if (t1.length !== 1)
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
- if (!(C.JSArray_methods.get$first(t1) instanceof X.CompoundSelector0))
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
- t1 = type$.CompoundSelector_2._as(C.JSArray_methods.get$first(t1)).components;
- if (t1.length !== 1)
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
- if (!(C.JSArray_methods.get$first(t1) instanceof D.PseudoSelector0))
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
- innerPseudo = type$.PseudoSelector_2._as(C.JSArray_methods.get$first(t1));
- t1 = innerPseudo.selector;
- if (t1 == null)
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
- t2 = this.pseudo;
- switch (t2.normalizedName) {
- case "not":
- if (innerPseudo.normalizedName !== "matches")
- return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector_2);
- return t1.components;
- case "matches":
- case "any":
- case "current":
- case "nth-child":
- case "nth-last-child":
- if (innerPseudo.name !== t2.name)
- return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector_2);
- if (innerPseudo.argument != t2.argument)
- return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector_2);
- return t1.components;
- case "has":
- case "host":
- case "host-context":
- case "slotted":
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
- default:
- return H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelector_2);
- }
- }
- };
- F.Extender__extendPseudo_closure8.prototype = {
- call$1: function(complex) {
- var t1 = this.pseudo;
- return D.PseudoSelector$0(t1.name, t1.argument, !t1.isClass, D.SelectorList$0(H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2)));
- }
- };
- F.Extender__trim_closure1.prototype = {
- call$1: function(complex2) {
- return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector0(complex2.components, this.complex1.components);
- }
- };
- F.Extender__trim_closure2.prototype = {
- call$1: function(complex2) {
- return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector0(complex2.components, this.complex1.components);
- }
- };
- F.Extender_clone_closure0.prototype = {
- call$2: function(simple, selectors) {
- var t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
- t1 = type$.ModifiableCssValue_SelectorList_2,
- newSelectorSet = P.LinkedHashSet_LinkedHashSet$_empty(t1);
- _this.newSelectors.$indexSet(0, simple, newSelectorSet);
- for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = _this.$this._extender$_mediaContexts, t5 = _this.newMediaContexts; t2.moveNext$0();) {
- t6 = t2.get$current(t2);
- newSelector = new F.ModifiableCssValue0(t6.value, t6.span, t1);
- newSelectorSet.add$1(0, newSelector);
- t3.$indexSet(0, t6, newSelector);
- mediaContext = t4.$index(0, t6);
- if (mediaContext != null)
- t5.$indexSet(0, newSelector, mediaContext);
- }
- }
- };
- S.Extension0.prototype = {
- assertCompatibleMediaContext$1: function(mediaContext) {
- var t1 = this.mediaContext;
- if (t1 == null)
- return;
- if (mediaContext != null && C.C_ListEquality.equals$2(t1, mediaContext))
- return;
- throw H.wrapException(E.SassException$0("You may not @extend selectors across media queries.", this.span));
- },
- toString$0: function(_) {
- var t1 = H.S(this.extender) + " {@extend " + H.S(this.target);
- return t1 + (this.isOptional ? " !optional" : "") + "}";
- },
- get$target: function() {
- return this.target;
- },
- get$span: function() {
- return this.span;
- }
- };
- E.FiberClass.prototype = {};
- E.Fiber.prototype = {};
- F.FilesystemImporter0.prototype = {
- canonicalize$1: function(url) {
- var t1, resolved;
- if (url.get$scheme() !== "file" && url.get$scheme() !== "")
- return null;
- t1 = $.$get$context();
- resolved = B.resolveImportPath0(D.join(this._filesystem$_loadPath, t1.style.pathFromUri$1(M._parseUri(url)), null));
- return resolved == null ? null : t1.toUri$1(t1.canonicalize$1(resolved));
- },
- load$1: function(url) {
- var t3,
- t1 = $.$get$context(),
- path = t1.style.pathFromUri$1(M._parseUri(url)),
- t2 = B.readFile0(path);
- 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;
- t3 = M.Syntax_forPath0(path);
- if ((t1 == null ? null : t1.get$scheme()) === "")
- H.throwExpression(P.ArgumentError$value(t1, "sourceMapUrl", "must be absolute"));
- return new E.ImporterResult0(t2, t1, t3);
- },
- toString$0: function(_) {
- return this._filesystem$_loadPath;
- }
- };
- G.FixedLengthListBuilder0.prototype = {
- add$1: function(_, element) {
- var t1, _this = this;
- _this._fixed_length_list_builder0$_checkUnbuilt$0();
- t1 = _this._fixed_length_list_builder0$_index;
- _this._fixed_length_list_builder0$_list[t1] = element;
- _this._fixed_length_list_builder0$_index = t1 + 1;
- },
- addAll$1: function(_, elements) {
- var _this = this;
- _this._fixed_length_list_builder0$_checkUnbuilt$0();
- C.JSArray_methods.setAll$2(_this._fixed_length_list_builder0$_list, _this._fixed_length_list_builder0$_index, elements);
- _this._fixed_length_list_builder0$_index = _this._fixed_length_list_builder0$_index + elements.length;
- },
- addRange$3: function(elements, start, end) {
- var $length, t1, _this = this;
- _this._fixed_length_list_builder0$_checkUnbuilt$0();
- $length = (end == null ? J.get$length$asx(elements._collection$_source) : end) - start;
- t1 = _this._fixed_length_list_builder0$_index;
- C.JSArray_methods.setRange$4(_this._fixed_length_list_builder0$_list, t1, t1 + $length, elements, start);
- _this._fixed_length_list_builder0$_index += $length;
- },
- addRange$2: function(elements, start) {
- return this.addRange$3(elements, start, null);
- },
- build$0: function() {
- this._fixed_length_list_builder0$_checkUnbuilt$0();
- this._fixed_length_list_builder0$_index = -1;
- return this._fixed_length_list_builder0$_list;
- },
- _fixed_length_list_builder0$_checkUnbuilt$0: function() {
- if (this._fixed_length_list_builder0$_index === -1)
- throw H.wrapException(P.StateError$("build() has already been called."));
- }
- };
- B.ForRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitForRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var _this = this,
- t1 = "@for $" + _this.variable + " from " + H.S(_this.from) + " ",
- t2 = _this.children;
- return t1 + (_this.isExclusive ? "to" : "through") + " " + H.S(_this.to) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- L.ForwardRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitForwardRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t3, _this = this,
- t1 = "@forward " + H.S(new D.StringExpression0(X.Interpolation$0([J.toString$0$(_this.url)], null), true).asInterpolation$1$static(true).get$asPlain()),
- t2 = _this.shownMixinsAndFunctions;
- if (t2 != null)
- t1 = t1 + " show " + _this._forward_rule0$_memberList$2(t2, _this.shownVariables);
- else {
- t2 = _this.hiddenMixinsAndFunctions;
- if (t2 != null) {
- t3 = t2._base;
- t3 = t3.get$isNotEmpty(t3);
- } else
- t3 = false;
- if (t3)
- t1 = t1 + " hide " + _this._forward_rule0$_memberList$2(t2, _this.hiddenVariables);
- }
- t2 = _this.prefix;
- if (t2 != null)
- t1 += " as " + t2 + "*";
- t2 = _this.configuration;
- t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _forward_rule0$_memberList$2: function(mixinsAndFunctions, variables) {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_String),
- t2 = this.shownMixinsAndFunctions;
- if (t2 != null)
- for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.get$current(t2));
- t2 = this.shownVariables;
- if (t2 != null)
- for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push("$" + H.S(t2.get$current(t2)));
- return C.JSArray_methods.join$1(t1, ", ");
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- R.ForwardedModuleView0.prototype = {
- get$url: function() {
- return this._forwarded_view0$_inner.get$url();
- },
- get$upstream: function() {
- return this._forwarded_view0$_inner.get$upstream();
- },
- get$extender: function() {
- return this._forwarded_view0$_inner.get$extender();
- },
- get$css: function(_) {
- var t1 = this._forwarded_view0$_inner;
- return t1.get$css(t1);
- },
- get$transitivelyContainsCss: function() {
- return this._forwarded_view0$_inner.get$transitivelyContainsCss();
- },
- get$transitivelyContainsExtensions: function() {
- return this._forwarded_view0$_inner.get$transitivelyContainsExtensions();
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- var _s19_ = "Undefined variable.",
- t1 = this._forwarded_view0$_rule,
- t2 = t1.shownVariables;
- if (t2 != null && !t2._base.contains$1(0, $name))
- throw H.wrapException(E.SassScriptException$0(_s19_));
- else {
- t2 = t1.hiddenVariables;
- if (t2 != null && t2._base.contains$1(0, $name))
- throw H.wrapException(E.SassScriptException$0(_s19_));
- }
- t1 = t1.prefix;
- if (t1 != null) {
- if (!C.JSString_methods.startsWith$1($name, t1))
- throw H.wrapException(E.SassScriptException$0(_s19_));
- $name = C.JSString_methods.substring$1($name, t1.length);
- }
- return this._forwarded_view0$_inner.setVariable$3($name, value, nodeWithSpan);
- },
- variableIdentity$1: function($name) {
- var t1 = this._forwarded_view0$_rule.prefix;
- if (t1 != null)
- $name = J.substring$1$s($name, t1.length);
- return this._forwarded_view0$_inner.variableIdentity$1($name);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof R.ForwardedModuleView0 && J.$eq$(this._forwarded_view0$_inner, other._forwarded_view0$_inner) && this._forwarded_view0$_rule === other._forwarded_view0$_rule;
- },
- get$hashCode: function(_) {
- return (J.get$hashCode$(this._forwarded_view0$_inner) ^ H.Primitives_objectHashCode(this._forwarded_view0$_rule)) >>> 0;
- },
- cloneCss$0: function() {
- return R.ForwardedModuleView$0(this._forwarded_view0$_inner.cloneCss$0(), this._forwarded_view0$_rule, this.$ti._precomputed1);
- },
- toString$0: function(_) {
- return "forwarded " + H.S(this._forwarded_view0$_inner);
- },
- $isModule0: 1,
- get$variables: function() {
- return this.variables;
- },
- get$variableNodes: function() {
- return this.variableNodes;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- }
- };
- F.FunctionExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitFunctionExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? t1 + "." : "";
- t1 += this.name.toString$0(0) + this.$arguments.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- F.JSFunction0.prototype = {};
- F.SassFunction0.prototype = {
- accept$1$1: function(visitor) {
- var t1;
- if (!visitor._inspect)
- H.throwExpression(E.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value."));
- t1 = visitor._buffer;
- t1.write$1(0, "get-function(");
- visitor._serialize0$_visitQuotedString$1(this.callable.get$name());
- t1.writeCharCode$1(41);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertFunction$1: function($name) {
- return this;
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof F.SassFunction0 && J.$eq$(this.callable, other.callable);
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.callable);
- }
- };
- M.FunctionRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitFunctionRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return "@function " + H.S(this.name) + "(" + H.S(this.$arguments) + ") {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- }
- };
- Y.unifyComplex_closure0.prototype = {
- call$1: function(complex) {
- var t1 = J.getInterceptor$asx(complex);
- return t1.sublist$2(complex, 0, t1.get$length(complex) - 1);
- }
- };
- Y._weaveParents_closure6.prototype = {
- call$2: function(group1, group2) {
- var unified, t1, _null = null;
- if (C.C_ListEquality.equals$2(group1, group2))
- return group1;
- if (!(J.get$first$ax(group1) instanceof X.CompoundSelector0) || !(J.get$first$ax(group2) instanceof X.CompoundSelector0))
- return _null;
- if (Y.complexIsParentSuperselector0(group1, group2))
- return group2;
- if (Y.complexIsParentSuperselector0(group2, group1))
- return group1;
- if (!Y._mustUnify0(group1, group2))
- return _null;
- unified = Y.unifyComplex0(H.setRuntimeTypeInfo([group1, group2], type$.JSArray_List_ComplexSelectorComponent_2));
- if (unified == null)
- return _null;
- t1 = J.getInterceptor$asx(unified);
- if (t1.get$length(unified) > 1)
- return _null;
- return t1.get$first(unified);
- }
- };
- Y._weaveParents_closure7.prototype = {
- call$1: function(sequence) {
- return Y.complexIsParentSuperselector0(sequence.get$first(sequence), this.group);
- }
- };
- Y._weaveParents_closure8.prototype = {
- call$1: function(chunk) {
- return J.expand$1$1$ax(chunk, new Y._weaveParents__closure4(), type$.ComplexSelectorComponent_2);
- }
- };
- Y._weaveParents__closure4.prototype = {
- call$1: function(group) {
- return group;
- }
- };
- Y._weaveParents_closure9.prototype = {
- call$1: function(sequence) {
- return sequence.get$length(sequence) === 0;
- }
- };
- Y._weaveParents_closure10.prototype = {
- call$1: function(chunk) {
- return J.expand$1$1$ax(chunk, new Y._weaveParents__closure3(), type$.ComplexSelectorComponent_2);
- }
- };
- Y._weaveParents__closure3.prototype = {
- call$1: function(group) {
- return group;
- }
- };
- Y._weaveParents_closure11.prototype = {
- call$1: function(choice) {
- return J.get$isNotEmpty$asx(choice);
- }
- };
- Y._weaveParents_closure12.prototype = {
- call$1: function(path) {
- var t1 = J.expand$1$1$ax(path, new Y._weaveParents__closure2(), type$.ComplexSelectorComponent_2);
- return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
- }
- };
- Y._weaveParents__closure2.prototype = {
- call$1: function(group) {
- return group;
- }
- };
- Y._mustUnify_closure0.prototype = {
- call$1: function(component) {
- return component instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(component.components, new Y._mustUnify__closure0(this.uniqueSelectors));
- }
- };
- Y._mustUnify__closure0.prototype = {
- call$1: function(simple) {
- var t1;
- if (!(simple instanceof N.IDSelector0))
- t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
- else
- t1 = true;
- return t1 && this.uniqueSelectors.contains$1(0, simple);
- }
- };
- Y.paths_closure0.prototype = {
- call$2: function(paths, choice) {
- var t1 = this.T;
- t1 = J.expand$1$1$ax(choice, new Y.paths__closure0(paths, t1), t1._eval$1("List<0>"));
- return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
- }
- };
- Y.paths__closure0.prototype = {
- call$1: function(option) {
- var t1 = this.T;
- return J.map$1$1$ax(this.paths, new Y.paths___closure0(option, t1), t1._eval$1("List<0>"));
- },
- $signature: function() {
- return this.T._eval$1("Iterable<List<0>>(0)");
- }
- };
- Y.paths___closure0.prototype = {
- call$1: function(path) {
- var t2,
- t1 = H.setRuntimeTypeInfo([], this.T._eval$1("JSArray<0>"));
- for (t2 = J.get$iterator$ax(path); t2.moveNext$0();)
- t1.push(t2.get$current(t2));
- t1.push(this.option);
- return t1;
- }
- };
- Y._hasRoot_closure0.prototype = {
- call$1: function(simple) {
- return simple instanceof D.PseudoSelector0 && simple.isClass && simple.normalizedName === "root";
- }
- };
- Y.listIsSuperslector_closure0.prototype = {
- call$1: function(complex1) {
- return C.JSArray_methods.any$1(this.list1, new Y.listIsSuperslector__closure0(complex1));
- }
- };
- Y.listIsSuperslector__closure0.prototype = {
- call$1: function(complex2) {
- return Y.complexIsSuperselector0(complex2.components, this.complex1.components);
- }
- };
- Y._simpleIsSuperselectorOfCompound_closure0.prototype = {
- call$1: function(theirSimple) {
- var t1 = this.simple;
- if (J.$eq$(t1, theirSimple))
- return true;
- if (theirSimple instanceof D.PseudoSelector0 && theirSimple.selector != null && $._subselectorPseudos0.contains$1(0, theirSimple.normalizedName))
- return C.JSArray_methods.every$1(theirSimple.selector.components, new Y._simpleIsSuperselectorOfCompound__closure0(t1));
- else
- return false;
- }
- };
- Y._simpleIsSuperselectorOfCompound__closure0.prototype = {
- call$1: function(complex) {
- var t1 = complex.components;
- if (t1.length !== 1)
- return false;
- return C.JSArray_methods.contains$1(type$.CompoundSelector_2._as(C.JSArray_methods.get$single(t1)).components, this.simple);
- }
- };
- Y._selectorPseudoIsSuperselector_closure6.prototype = {
- call$1: function(pseudo2) {
- var t1 = pseudo2.selector;
- return Y.listIsSuperslector0(this.pseudo1.selector.components, t1.components);
- }
- };
- Y._selectorPseudoIsSuperselector_closure7.prototype = {
- call$1: function(complex1) {
- var t1 = complex1.components,
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2),
- t3 = this.parents;
- if (t3 != null)
- for (t3 = t3.get$iterator(t3); t3.moveNext$0();)
- t2.push(t3.get$current(t3));
- t2.push(this.compound2);
- return Y.complexIsSuperselector0(t1, t2);
- }
- };
- Y._selectorPseudoIsSuperselector_closure8.prototype = {
- call$1: function(pseudo2) {
- var t1 = pseudo2.selector;
- return Y.listIsSuperslector0(this.pseudo1.selector.components, t1.components);
- }
- };
- Y._selectorPseudoIsSuperselector_closure9.prototype = {
- call$1: function(pseudo2) {
- var t1 = pseudo2.selector;
- return Y.listIsSuperslector0(this.pseudo1.selector.components, t1.components);
- }
- };
- Y._selectorPseudoIsSuperselector_closure10.prototype = {
- call$1: function(complex) {
- return C.JSArray_methods.any$1(this.compound2.components, new Y._selectorPseudoIsSuperselector__closure0(complex, this.pseudo1));
- }
- };
- Y._selectorPseudoIsSuperselector__closure0.prototype = {
- call$1: function(simple2) {
- var compound1, _this = this;
- if (simple2 instanceof F.TypeSelector0) {
- compound1 = C.JSArray_methods.get$last(_this.complex.components);
- return compound1 instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure1(simple2));
- } else if (simple2 instanceof N.IDSelector0) {
- compound1 = C.JSArray_methods.get$last(_this.complex.components);
- return compound1 instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure2(simple2));
- } else if (simple2 instanceof D.PseudoSelector0 && simple2.name === _this.pseudo1.name && simple2.selector != null)
- return Y.listIsSuperslector0(simple2.selector.components, H.setRuntimeTypeInfo([_this.complex], type$.JSArray_ComplexSelector_2));
- else
- return false;
- }
- };
- Y._selectorPseudoIsSuperselector___closure1.prototype = {
- call$1: function(simple1) {
- var t1;
- if (simple1 instanceof F.TypeSelector0) {
- t1 = this.simple2.name.$eq(0, simple1.name);
- t1 = !t1;
- } else
- t1 = false;
- return t1;
- }
- };
- Y._selectorPseudoIsSuperselector___closure2.prototype = {
- call$1: function(simple1) {
- var t1;
- if (simple1 instanceof N.IDSelector0) {
- t1 = simple1.name;
- t1 = this.simple2.name !== t1;
- } else
- t1 = false;
- return t1;
- }
- };
- Y._selectorPseudoIsSuperselector_closure11.prototype = {
- call$1: function(pseudo2) {
- return J.$eq$(this.pseudo1.selector, pseudo2.selector);
- }
- };
- Y._selectorPseudoIsSuperselector_closure12.prototype = {
- call$1: function(pseudo2) {
- var t1, t2;
- if (pseudo2 instanceof D.PseudoSelector0) {
- t1 = this.pseudo1;
- if (pseudo2.name === t1.name)
- if (pseudo2.argument == t1.argument) {
- t2 = pseudo2.selector;
- t2 = Y.listIsSuperslector0(t1.selector.components, t2.components);
- t1 = t2;
- } else
- t1 = false;
- else
- t1 = false;
- } else
- t1 = false;
- return t1;
- }
- };
- Y._selectorPseudosNamed_closure0.prototype = {
- call$1: function(pseudo) {
- return pseudo.isClass === this.isClass && pseudo.selector != null && pseudo.name === this.name;
- }
- };
- Y.closure107.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
- },
- $signature: 3
- };
- N.IDSelector0.prototype = {
- get$minSpecificity: function() {
- return H._asIntNullable(Math.pow(M.SimpleSelector0.prototype.get$minSpecificity.call(this), 2));
- },
- accept$1$1: function(visitor) {
- var t1 = visitor._buffer;
- t1.writeCharCode$1(35);
- t1.write$1(0, this.name);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1: function(suffix) {
- return new N.IDSelector0(this.name + suffix);
- },
- unify$1: function(compound) {
- if (C.JSArray_methods.any$1(compound, new N.IDSelector_unify_closure0(this)))
- return null;
- return this.super$SimpleSelector$unify0(compound);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof N.IDSelector0 && other.name === this.name;
- },
- get$hashCode: function(_) {
- return C.JSString_methods.get$hashCode(this.name);
- }
- };
- N.IDSelector_unify_closure0.prototype = {
- call$1: function(simple) {
- var t1;
- if (simple instanceof N.IDSelector0) {
- t1 = simple.name;
- t1 = this.$this.name !== t1;
- } else
- t1 = false;
- return t1;
- }
- };
- L.IfExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitIfExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "if" + this.$arguments.toString$0(0);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- V.IfRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitIfRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t2, t1 = {};
- t1.first = true;
- t2 = this.clauses;
- return new H.MappedListIterable(t2, new V.IfRule_toString_closure0(t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$1(0, " ");
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- V.IfRule_toString_closure0.prototype = {
- call$1: function(clause) {
- var t1 = this._box_0,
- $name = t1.first ? "if" : "else";
- t1.first = false;
- return "@" + $name + " " + H.S(clause.expression) + " {" + C.JSArray_methods.join$1(clause.children, " ") + "}";
- }
- };
- V.IfClause0.prototype = {
- toString$0: function(_) {
- var t1 = this.expression;
- t1 = t1 == null ? "@else" : "@if " + t1.toString$0(0);
- return t1 + (" {" + C.JSArray_methods.join$1(this.children, " ") + "}");
- }
- };
- V.IfClause$__closure0.prototype = {
- call$1: function(child) {
- var t1;
- if (!(child instanceof Z.VariableDeclaration0))
- if (!(child instanceof M.FunctionRule0))
- if (!(child instanceof T.MixinRule0))
- t1 = child instanceof B.ImportRule0 && C.JSArray_methods.any$1(child.imports, new V.IfClause$___closure0());
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- }
- };
- V.IfClause$___closure0.prototype = {
- call$1: function($import) {
- return $import instanceof B.DynamicImport0;
- }
- };
- F.NodeImporter.prototype = {
- load$3: function(url, previous, forImport) {
- var result, previousString, t1, t2, t3, _i, value, _this = this,
- parsed = P.Uri_parse(url);
- if (parsed.get$scheme() === "" || parsed.get$scheme() === "file") {
- result = _this._resolveRelativePath$3($.$get$context().style.pathFromUri$1(M._parseUri(parsed)), previous, forImport);
- if (result != null)
- return result;
- }
- previousString = previous.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(M._parseUri(previous)) : previous.toString$0(0);
- for (t1 = _this._implementation$_importers, t2 = t1.length, t3 = _this._implementation$_context, _i = 0; _i < t2; ++_i) {
- value = J.apply$2$x(t1[_i], t3, [url, previousString]);
- if (value != null)
- return _this._handleImportResult$4(url, previous, value, forImport);
- }
- return _this._resolveLoadPathFromUrl$3(parsed, previous, forImport);
- },
- loadAsync$3: function(url, previous, forImport) {
- return this.loadAsync$body$NodeImporter(url, previous, forImport);
- },
- loadAsync$body$NodeImporter: function(url, previous, forImport) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Tuple2_String_String),
- $async$returnValue, $async$self = this, result, previousString, t1, t2, _i, value, parsed;
- var $async$loadAsync$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- parsed = P.Uri_parse(url);
- if (parsed.get$scheme() === "" || parsed.get$scheme() === "file") {
- result = $async$self._resolveRelativePath$3($.$get$context().style.pathFromUri$1(M._parseUri(parsed)), previous, forImport);
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- previousString = previous.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(M._parseUri(previous)) : previous.toString$0(0);
- t1 = $async$self._implementation$_importers, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return P._asyncAwait($async$self._callImporterAsync$3(t1[_i], url, previousString), $async$loadAsync$3);
- case 6:
- // returning from await.
- value = $async$result;
- if (value != null) {
- $async$returnValue = $async$self._handleImportResult$4(url, previous, value, forImport);
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = $async$self._resolveLoadPathFromUrl$3(parsed, previous, forImport);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$loadAsync$3, $async$completer);
- },
- _resolveRelativePath$3: function(path, previous, forImport) {
- var result,
- t1 = $.$get$context(),
- t2 = t1.style;
- if (t2.rootLength$1(path) > 0)
- return this._tryPath$2(path, forImport);
- if (previous.get$scheme() === "file") {
- result = this._tryPath$2(D.join(t1.dirname$1(t2.pathFromUri$1(M._parseUri(previous))), path, null), forImport);
- if (result != null)
- return result;
- }
- return null;
- },
- _resolveLoadPathFromUrl$3: function(url, previous, forImport) {
- return url.get$scheme() === "" || url.get$scheme() === "file" ? this._resolveLoadPath$3($.$get$context().style.pathFromUri$1(M._parseUri(url)), previous, forImport) : null;
- },
- _resolveLoadPath$3: function(path, previous, forImport) {
- var t1, t2, _i, includePath, t3, result, _null = null,
- cwdResult = this._tryPath$2(D.absolute(path), forImport);
- if (cwdResult != null)
- return cwdResult;
- for (t1 = this._includePaths, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- includePath = t1[_i];
- t3 = $.$get$context();
- 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);
- if (result != null)
- return result;
- }
- return _null;
- },
- _tryPath$2: function(path, forImport) {
- var resolved = forImport ? B.inImportRule0(new F.NodeImporter__tryPath_closure(path)) : B.resolveImportPath0(path);
- return resolved == null ? null : new S.Tuple2(B.readFile0(resolved), J.toString$0$($.$get$context().toUri$1(resolved)), type$.Tuple2_String_String);
- },
- _handleImportResult$4: function(url, previous, value, forImport) {
- var resolved,
- t1 = self.Error;
- if (H._asBoolNullable($.$get$_jsInstanceOf().call$2(value, t1)))
- throw H.wrapException(value);
- if (!type$.NodeImporterResult._is(value))
- return null;
- t1 = J.getInterceptor$x(value);
- if (t1.get$file(value) == null) {
- t1 = t1.get$contents(value);
- if (t1 == null)
- t1 = "";
- return new S.Tuple2(t1, url, type$.Tuple2_String_String);
- } else if (t1.get$contents(value) != null)
- return new S.Tuple2(t1.get$contents(value), t1.get$file(value), type$.Tuple2_String_String);
- else {
- resolved = this._resolveRelativePath$3(t1.get$file(value), previous, forImport);
- if (resolved == null)
- resolved = this._resolveLoadPath$3(t1.get$file(value), previous, forImport);
- if (resolved != null)
- return resolved;
- throw H.wrapException("Can't find stylesheet to import.");
- }
- },
- _callImporterAsync$3: function(importer, url, previousString) {
- return this._callImporterAsync$body$NodeImporter(importer, url, previousString);
- },
- _callImporterAsync$body$NodeImporter: function(importer, url, previousString) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Object),
- $async$returnValue, $async$self = this, t1, result;
- var $async$_callImporterAsync$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = new P._Future($.Zone__current, type$._Future_Object);
- result = J.apply$2$x(importer, $async$self._implementation$_context, [url, previousString, P.allowInterop(new P._AsyncCompleter(t1, type$._AsyncCompleter_Object).get$complete())]);
- $async$goto = H._asBoolNullable($.$get$_isUndefined().call$1(result)) ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return P._asyncAwait(t1, $async$_callImporterAsync$3);
- case 5:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$_callImporterAsync$3, $async$completer);
- }
- };
- F.NodeImporter__tryPath_closure.prototype = {
- call$0: function() {
- return B.resolveImportPath0(this.path);
- },
- $signature: 10
- };
- F.ModifiableCssImport0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssImport$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $isCssImport0: 1,
- get$span: function() {
- return this.span;
- }
- };
- F.Import0.prototype = {$isAstNode0: 1};
- R.ImportCache0.prototype = {
- canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
- var resolvedUrl, canonicalUrl;
- if (baseImporter != null) {
- resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
- canonicalUrl = this._import_cache$_canonicalize$3(baseImporter, resolvedUrl, forImport);
- if (canonicalUrl != null)
- return new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_Importer_Uri_Uri_2);
- }
- return this._import_cache$_canonicalizeCache.putIfAbsent$2(new S.Tuple2(url, forImport, type$.Tuple2_Uri_bool), new R.ImportCache_canonicalize_closure0(this, url, forImport));
- },
- _import_cache$_canonicalize$3: function(importer, url, forImport) {
- var result = forImport ? B.inImportRule0(new R.ImportCache__canonicalize_closure0(importer, url)) : importer.canonicalize$1(url);
- if ((result == null ? null : result.get$scheme()) === "")
- this._import_cache$_logger.warn$2$deprecation("Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n", true);
- return result;
- },
- import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
- var t1,
- tuple = this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport);
- if (tuple == null)
- return null;
- t1 = tuple.item1;
- return new S.Tuple2(t1, this.importCanonical$3(t1, tuple.item2, tuple.item3), type$.Tuple2_Importer_Stylesheet_2);
- },
- importCanonical$3: function(importer, canonicalUrl, originalUrl) {
- return this._import_cache$_importCache.putIfAbsent$2(canonicalUrl, new R.ImportCache_importCanonical_closure0(this, importer, canonicalUrl, originalUrl));
- },
- humanize$1: function(canonicalUrl) {
- var t1 = this._import_cache$_canonicalizeCache.get$values(),
- t2 = H._instanceType(t1),
- 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$.Uri, type$.dynamic);
- if (url == null)
- return canonicalUrl;
- t1 = $.$get$url();
- return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
- }
- };
- R.ImportCache_canonicalize_closure0.prototype = {
- call$0: function() {
- var t1, t2, t3, _i, importer, canonicalUrl;
- for (t1 = this.$this, t2 = this.url, t3 = this.forImport, _i = 0; false; ++_i) {
- importer = C.List_empty17[_i];
- canonicalUrl = t1._import_cache$_canonicalize$3(importer, t2, t3);
- if (canonicalUrl != null)
- return new S.Tuple3(importer, canonicalUrl, t2, type$.Tuple3_Importer_Uri_Uri_2);
- }
- return null;
- },
- $signature: 130
- };
- R.ImportCache__canonicalize_closure0.prototype = {
- call$0: function() {
- return this.importer.canonicalize$1(this.url);
- },
- $signature: 67
- };
- R.ImportCache_importCanonical_closure0.prototype = {
- call$0: function() {
- var t3, _this = this,
- t1 = _this.canonicalUrl,
- result = _this.importer.load$1(t1),
- t2 = _this.$this;
- t2._import_cache$_resultsCache.$indexSet(0, t1, result);
- t3 = _this.originalUrl;
- t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
- return V.Stylesheet_Stylesheet$parse0(result.contents, result.syntax, t2._import_cache$_logger, t1);
- },
- $signature: 88
- };
- R.ImportCache_humanize_closure2.prototype = {
- call$1: function(tuple) {
- var t1 = tuple == null ? null : tuple.item2;
- return J.$eq$(t1, this.canonicalUrl);
- }
- };
- R.ImportCache_humanize_closure3.prototype = {
- call$1: function(tuple) {
- return tuple.item3;
- }
- };
- R.ImportCache_humanize_closure4.prototype = {
- call$1: function(url) {
- return J.get$length$asx(J.get$path$x(url));
- },
- $signature: 28
- };
- B.ImportRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitImportRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@import " + C.JSArray_methods.join$1(this.imports, ", ") + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- M.Importer0.prototype = {};
- F.NodeImporterResult0.prototype = {};
- A.IncludeRule0.prototype = {
- get$spanWithoutContent: function() {
- var t2, t3,
- t1 = this.span;
- if (!(this.content == null)) {
- t2 = t1.file;
- t3 = this.$arguments.span;
- t3 = B.SpanExtensions_trim0(t2.span$2(Y.FileLocation$_(t2, t1._file$_start).offset, Y.FileLocation$_(t3.file, t3._end).offset));
- t1 = t3;
- }
- return t1;
- },
- accept$1$1: function(visitor) {
- return visitor.visitIncludeRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t2, _this = this,
- t1 = _this.namespace;
- t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
- t1 += _this.name;
- t2 = _this.$arguments;
- if (!t2.get$isEmpty(t2))
- t1 += "(" + t2.toString$0(0) + ")";
- t2 = _this.content;
- t1 += t2 == null ? ";" : " " + t2.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.Interpolation0.prototype = {
- get$asPlain: function() {
- var first,
- t1 = this.contents,
- t2 = t1.length;
- if (t2 === 0)
- return "";
- if (t2 > 1)
- return null;
- first = C.JSArray_methods.get$first(t1);
- return typeof first == "string" ? first : null;
- },
- Interpolation$20: function(contents, span) {
- var t1, t2, t3, i, t4, t5,
- _s8_ = "contents";
- for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression_2, i = 0; i < t2; ++i) {
- t4 = t1[i];
- t5 = typeof t4 == "string";
- if (!t5 && !t3._is(t4))
- throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May only contains Strings or Expressions."));
- if (i !== 0 && typeof t1[i - 1] == "string" && t5)
- throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
- }
- },
- toString$0: function(_) {
- var t1 = this.contents;
- return new H.MappedListIterable(t1, new X.Interpolation_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.Interpolation_toString_closure0.prototype = {
- call$1: function(value) {
- return typeof value == "string" ? value : "#{" + H.S(value) + "}";
- },
- $signature: 27
- };
- X.SupportsInterpolation0.prototype = {
- toString$0: function(_) {
- return "#{" + H.S(this.expression) + "}";
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- Z.InterpolationBuffer0.prototype = {
- add$1: function(_, expression) {
- this._interpolation_buffer0$_flushText$0();
- this._interpolation_buffer0$_contents.push(expression);
- },
- addInterpolation$1: function(interpolation) {
- var first, t1, _this = this,
- toAdd = interpolation.contents;
- if (toAdd.length === 0)
- return;
- first = C.JSArray_methods.get$first(toAdd);
- if (typeof first == "string") {
- _this._interpolation_buffer0$_text._contents += first;
- toAdd = H.SubListIterable$(toAdd, 1, null, H._arrayInstanceType(toAdd)._precomputed1);
- }
- _this._interpolation_buffer0$_flushText$0();
- t1 = _this._interpolation_buffer0$_contents;
- C.JSArray_methods.addAll$1(t1, toAdd);
- if (typeof C.JSArray_methods.get$last(t1) == "string")
- _this._interpolation_buffer0$_text._contents += H.S(t1.pop());
- },
- _interpolation_buffer0$_flushText$0: function() {
- var t1 = this._interpolation_buffer0$_text,
- t2 = t1._contents;
- if (t2.length === 0)
- return;
- this._interpolation_buffer0$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- t1._contents = "";
- },
- interpolation$1: function(span) {
- var t2, t3, _i, t1 = [];
- for (t2 = this._interpolation_buffer0$_contents, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- t1.push(t2[_i]);
- t2 = this._interpolation_buffer0$_text._contents;
- if (t2.length !== 0)
- t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- return X.Interpolation$0(t1, span);
- },
- toString$0: function(_) {
- var t1, t2, _i, t3, element;
- for (t1 = this._interpolation_buffer0$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
- element = t1[_i];
- t3 = typeof element == "string" ? t3 + element : t3 + "#{" + H.S(element) + H.Primitives_stringFromCharCode(125);
- }
- t1 = t3 + this._interpolation_buffer0$_text.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- F.realCasePath_closure0.prototype = {
- call$1: function(realPath) {
- return B.equalsIgnoreCase0(X.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
- }
- };
- U.ModifiableCssKeyframeBlock0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssKeyframeBlock$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return new U.ModifiableCssKeyframeBlock0(this.selector, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- get$span: function() {
- return this.span;
- }
- };
- E.KeyframeSelectorParser0.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new E.KeyframeSelectorParser_parse_closure0(this));
- },
- _keyframe_selector$_percentage$0: function() {
- var t3, next,
- t1 = this.scanner,
- t2 = t1.scanChar$1(43) ? H.Primitives_stringFromCharCode(43) : "",
- second = t1.peekChar$0();
- if (!T.isDigit0(second) && second !== 46)
- t1.error$1("Expected number.");
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- if (t1.peekChar$0() === 46) {
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- }
- if (this.scanIdentifier$1("e")) {
- t2 += t1.readChar$0();
- next = t1.peekChar$0();
- if (next === 43 || next === 45)
- t2 += t1.readChar$0();
- if (!T.isDigit0(t1.peekChar$0()))
- t1.error$1("Expected digit.");
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- }
- t1.expectChar$1(37);
- t2 += H.Primitives_stringFromCharCode(37);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- E.KeyframeSelectorParser_parse_closure0.prototype = {
- call$0: function() {
- var selectors = H.setRuntimeTypeInfo([], type$.JSArray_String),
- t1 = this.$this,
- t2 = t1.scanner;
- do {
- t1.whitespace$0();
- if (t1.lookingAtIdentifier$0())
- if (t1.scanIdentifier$1("from"))
- selectors.push("from");
- else {
- t1.expectIdentifier$2$name("to", '"to" or "from"');
- selectors.push("to");
- }
- else
- selectors.push(t1._keyframe_selector$_percentage$0());
- t1.whitespace$0();
- } while (t2.scanChar$1(44));
- t2.expectDone$0();
- return selectors;
- },
- $signature: 32
- };
- K.LimitedMapView0.prototype = {
- get$keys: function() {
- return this._limited_map_view0$_keys;
- },
- get$length: function(_) {
- return this._limited_map_view0$_keys._collection$_length;
- },
- get$isEmpty: function(_) {
- return this._limited_map_view0$_keys._collection$_length === 0;
- },
- get$isNotEmpty: function(_) {
- return this._limited_map_view0$_keys._collection$_length !== 0;
- },
- $index: function(_, key) {
- return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.$index(0, key) : null;
- },
- containsKey$1: function(key) {
- return this._limited_map_view0$_keys.contains$1(0, key);
- },
- remove$1: function(_, key) {
- return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.remove$1(0, key) : null;
- }
- };
- D.ListExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitListExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var _this = this,
- t1 = _this.hasBrackets,
- t2 = t1 ? H.Primitives_stringFromCharCode(91) : "",
- t3 = _this.contents,
- t4 = _this.separator === C.ListSeparator_comma0 ? ", " : " ";
- t4 = t2 + new H.MappedListIterable(t3, new D.ListExpression_toString_closure0(_this), H._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t4);
- t1 = t1 ? t4 + H.Primitives_stringFromCharCode(93) : t4;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _list3$_elementNeedsParens$1: function(expression) {
- var t1, t2;
- if (expression instanceof D.ListExpression0) {
- if (expression.contents.length < 2)
- return false;
- if (expression.hasBrackets)
- return false;
- t1 = this.separator;
- t2 = t1 === C.ListSeparator_comma0;
- return t2 ? t2 : t1 !== C.ListSeparator_undecided0;
- }
- if (this.separator !== C.ListSeparator_space0)
- return false;
- if (expression instanceof X.UnaryOperationExpression0) {
- t1 = expression.operator;
- return t1 === C.UnaryOperator_j2w0 || t1 === C.UnaryOperator_U4G0;
- }
- return false;
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- D.ListExpression_toString_closure0.prototype = {
- call$1: function(element) {
- return this.$this._list3$_elementNeedsParens$1(element) ? "(" + H.S(element) + ")" : J.toString$0$(element);
- }
- };
- D.closure150.prototype = {
- call$1: function($arguments) {
- var t1 = J.$index$asx($arguments, 0).get$asList().length;
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- D.closure149.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- index = t1.$index($arguments, 1);
- return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
- },
- $signature: 3
- };
- D.closure148.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- index = t1.$index($arguments, 1),
- value = t1.$index($arguments, 2),
- t2 = list.get$asList(),
- newList = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2));
- newList[list.sassIndexToListIndex$2(index, "n")] = value;
- return t1.$index($arguments, 0).changeListContents$1(newList);
- },
- $signature: 17
- };
- D.closure147.prototype = {
- call$1: function($arguments) {
- var separator, bracketed, t2, t3, _i,
- t1 = J.getInterceptor$asx($arguments),
- list1 = t1.$index($arguments, 0),
- list2 = t1.$index($arguments, 1),
- separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
- bracketedParam = t1.$index($arguments, 3);
- t1 = separatorParam.text;
- if (t1 === "auto")
- if (list1.get$separator() !== C.ListSeparator_undecided0)
- separator = list1.get$separator();
- else
- separator = list2.get$separator() !== C.ListSeparator_undecided0 ? list2.get$separator() : C.ListSeparator_space0;
- else if (t1 === "space")
- separator = C.ListSeparator_space0;
- else {
- if (t1 !== "comma")
- throw H.wrapException(E.SassScriptException$0('$separator: Must be "space", "comma", or "auto".'));
- separator = C.ListSeparator_comma0;
- }
- bracketed = bracketedParam instanceof D.SassString0 && bracketedParam.text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
- for (t2 = list1.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- t1.push(t2[_i]);
- for (t2 = list2.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- t1.push(t2[_i]);
- return D.SassList$0(t1, separator, bracketed);
- },
- $signature: 17
- };
- D.closure146.prototype = {
- call$1: function($arguments) {
- var separator, t2, t3, _i,
- t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- value = t1.$index($arguments, 1);
- t1 = t1.$index($arguments, 2).assertString$1("separator").text;
- if (t1 === "auto")
- separator = list.get$separator() === C.ListSeparator_undecided0 ? C.ListSeparator_space0 : list.get$separator();
- else if (t1 === "space")
- separator = C.ListSeparator_space0;
- else {
- if (t1 !== "comma")
- throw H.wrapException(E.SassScriptException$0('$separator: Must be "space", "comma", or "auto".'));
- separator = C.ListSeparator_comma0;
- }
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
- for (t2 = list.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- t1.push(t2[_i]);
- t1.push(value);
- return list.changeListContents$2$separator(t1, separator);
- },
- $signature: 17
- };
- D.closure145.prototype = {
- call$1: function($arguments) {
- var results, t2, result, _box_0 = {},
- t1 = J.$index$asx($arguments, 0).get$asList(),
- lists = new H.MappedListIterable(t1, new D._closure19(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value0>>")).toList$0(0);
- if (lists.length === 0)
- return C.SassList_lmy0;
- _box_0.i = 0;
- results = H.setRuntimeTypeInfo([], type$.JSArray_SassList_2);
- for (t1 = H._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value0>"), t2 = type$.Value_2; C.JSArray_methods.every$1(lists, new D._closure20(_box_0));) {
- result = P.List_List$from(new H.MappedListIterable(lists, new D._closure21(_box_0), t1), false, t2);
- result.fixed$length = Array;
- result.immutable$list = Array;
- results.push(new D.SassList0(result, C.ListSeparator_space0, false));
- ++_box_0.i;
- }
- return D.SassList$0(results, C.ListSeparator_comma0, false);
- },
- $signature: 17
- };
- D._closure19.prototype = {
- call$1: function(list) {
- return list.get$asList();
- }
- };
- D._closure20.prototype = {
- call$1: function(list) {
- return this._box_0.i !== J.get$length$asx(list);
- }
- };
- D._closure21.prototype = {
- call$1: function(list) {
- return J.$index$asx(list, this._box_0.i);
- },
- $signature: 3
- };
- D.closure144.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- index = C.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
- if (index === -1)
- t1 = C.C_SassNull;
- else
- t1 = new T.SassNumber0(index + 1, C.List_empty, C.List_empty, null);
- return t1;
- },
- $signature: 3
- };
- D.closure142.prototype = {
- call$1: function($arguments) {
- return J.$index$asx($arguments, 0).get$separator() === C.ListSeparator_comma0 ? new D.SassString0("comma", false) : new D.SassString0("space", false);
- },
- $signature: 11
- };
- D.closure143.prototype = {
- call$1: function($arguments) {
- return J.$index$asx($arguments, 0).get$hasBrackets() ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- D.SelectorList0.prototype = {
- get$isInvisible: function() {
- return C.JSArray_methods.every$1(this.components, new D.SelectorList_isInvisible_closure0());
- },
- get$asSassList: function() {
- var t1 = this.components;
- 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);
- },
- accept$1$1: function(visitor) {
- return visitor.visitSelectorList$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1: function(other) {
- var t1 = this.components,
- t2 = H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector0>"),
- contents = P.List_List$from(new H.ExpandIterable(t1, new D.SelectorList_unify_closure0(other), t2), true, t2._eval$1("Iterable.E"));
- return contents.length === 0 ? null : D.SelectorList$0(contents);
- },
- resolveParentSelectors$2$implicitParent: function($parent, implicitParent) {
- var t1, _this = this;
- if ($parent == null) {
- if (!C.JSArray_methods.any$1(_this.components, _this.get$_list2$_complexContainsParentSelector()))
- return _this;
- throw H.wrapException(E.SassScriptException$0('Top-level selectors may not contain the parent selector "&".'));
- }
- t1 = _this.components;
- 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$.ComplexSelector_2));
- },
- resolveParentSelectors$1: function($parent) {
- return this.resolveParentSelectors$2$implicitParent($parent, true);
- },
- _list2$_complexContainsParentSelector$1: function(complex) {
- return C.JSArray_methods.any$1(complex.components, new D.SelectorList__complexContainsParentSelector_closure0());
- },
- _list2$_resolveParentSelectorsCompound$2: function(compound, $parent) {
- var resolvedMembers0, parentSelector, t1,
- resolvedMembers = compound.components,
- containsSelectorPseudo = C.JSArray_methods.any$1(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure2());
- if (!containsSelectorPseudo && !(C.JSArray_methods.get$first(resolvedMembers) instanceof M.ParentSelector0))
- return null;
- resolvedMembers0 = containsSelectorPseudo ? new H.MappedListIterable(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure3($parent), H._arrayInstanceType(resolvedMembers)._eval$1("MappedListIterable<1,SimpleSelector0>")) : resolvedMembers;
- parentSelector = C.JSArray_methods.get$first(resolvedMembers);
- if (parentSelector instanceof M.ParentSelector0) {
- if (resolvedMembers.length === 1 && parentSelector.suffix == null)
- return $parent.components;
- } else
- return H.setRuntimeTypeInfo([S.ComplexSelector$0(H.setRuntimeTypeInfo([X.CompoundSelector$0(resolvedMembers0)], type$.JSArray_ComplexSelectorComponent_2), false)], type$.JSArray_ComplexSelector_2);
- t1 = $parent.components;
- return new H.MappedListIterable(t1, new D.SelectorList__resolveParentSelectorsCompound_closure4(compound, resolvedMembers0), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
- },
- get$hashCode: function(_) {
- return C.C_ListEquality.hash$1(this.components);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof D.SelectorList0 && C.C_ListEquality.equals$2(this.components, other.components);
- }
- };
- D.SelectorList_isInvisible_closure0.prototype = {
- call$1: function(complex) {
- return complex.get$isInvisible();
- }
- };
- D.SelectorList_asSassList_closure0.prototype = {
- call$1: function(complex) {
- var t1 = complex.components;
- 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);
- }
- };
- D.SelectorList_asSassList__closure0.prototype = {
- call$1: function(component) {
- return new D.SassString0(J.toString$0$(component), false);
- }
- };
- D.SelectorList_unify_closure0.prototype = {
- call$1: function(complex1) {
- var t1 = this.other.components;
- return new H.ExpandIterable(t1, new D.SelectorList_unify__closure0(complex1), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector0>"));
- }
- };
- D.SelectorList_unify__closure0.prototype = {
- call$1: function(complex2) {
- var unified = Y.unifyComplex0(H.setRuntimeTypeInfo([this.complex1.components, complex2.components], type$.JSArray_List_ComplexSelectorComponent_2));
- if (unified == null)
- return C.List_empty15;
- return J.map$1$1$ax(unified, new D.SelectorList_unify___closure0(), type$.ComplexSelector_2);
- }
- };
- D.SelectorList_unify___closure0.prototype = {
- call$1: function(complex) {
- return S.ComplexSelector$0(complex, false);
- }
- };
- D.SelectorList_resolveParentSelectors_closure0.prototype = {
- call$1: function(complex) {
- 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 = {},
- t1 = _this.$this;
- if (!t1._list2$_complexContainsParentSelector$1(complex)) {
- if (!_this.implicitParent)
- return H.setRuntimeTypeInfo([complex], type$.JSArray_ComplexSelector_2);
- t1 = _this.parent.components;
- return new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors__closure1(complex), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
- }
- t2 = type$.JSArray_ComplexSelectorComponent_2;
- t3 = type$.JSArray_List_ComplexSelectorComponent_2;
- newComplexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], t2)], t3);
- t4 = type$.JSArray_bool;
- _box_0.lineBreaks = H.setRuntimeTypeInfo([false], t4);
- for (t5 = complex.components, t6 = t5.length, t7 = _this.parent, _i = 0; _i < t6; ++_i) {
- component = t5[_i];
- if (component instanceof X.CompoundSelector0) {
- resolved = t1._list2$_resolveParentSelectorsCompound$2(component, t7);
- if (resolved == null) {
- for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
- newComplexes[_i0].push(component);
- continue;
- }
- previousLineBreaks = _box_0.lineBreaks;
- newComplexes0 = H.setRuntimeTypeInfo([], t3);
- _box_0.lineBreaks = H.setRuntimeTypeInfo([], t4);
- 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) {
- newComplex = newComplexes[_i0];
- i0 = i + 1;
- lineBreak = previousLineBreaks[i];
- for (t10 = t9.get$iterator(resolved), t11 = !lineBreak; t10.moveNext$0();) {
- t12 = t10.get$current(t10);
- t13 = H.setRuntimeTypeInfo([], t2);
- for (t14 = C.JSArray_methods.get$iterator(newComplex); t14.moveNext$0();)
- t13.push(t14.get$current(t14));
- for (t14 = t12.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1)
- t13.push(t14[_i1]);
- newComplexes0.push(t13);
- t13 = _box_0.lineBreaks;
- t13.push(!t11 || t12.lineBreak);
- }
- }
- newComplexes = newComplexes0;
- } else
- for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
- newComplexes[_i0].push(component);
- }
- _box_0.i = 0;
- return new H.MappedListIterable(newComplexes, new D.SelectorList_resolveParentSelectors__closure2(_box_0), H._arrayInstanceType(newComplexes)._eval$1("MappedListIterable<1,ComplexSelector0>"));
- }
- };
- D.SelectorList_resolveParentSelectors__closure1.prototype = {
- call$1: function(parentComplex) {
- var t2, t3, _i, t4,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2);
- for (t2 = parentComplex.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i]);
- for (t2 = this.complex, t3 = t2.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
- t1.push(t3[_i]);
- return S.ComplexSelector$0(t1, t2.lineBreak || parentComplex.lineBreak);
- }
- };
- D.SelectorList_resolveParentSelectors__closure2.prototype = {
- call$1: function(newComplex) {
- var t1 = this._box_0;
- return S.ComplexSelector$0(newComplex, t1.lineBreaks[t1.i++]);
- }
- };
- D.SelectorList__complexContainsParentSelector_closure0.prototype = {
- call$1: function(component) {
- return component instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(component.components, new D.SelectorList__complexContainsParentSelector__closure0());
- }
- };
- D.SelectorList__complexContainsParentSelector__closure0.prototype = {
- call$1: function(simple) {
- var t1;
- if (!(simple instanceof M.ParentSelector0))
- if (simple instanceof D.PseudoSelector0) {
- t1 = simple.selector;
- t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector());
- } else
- t1 = false;
- else
- t1 = true;
- return t1;
- }
- };
- D.SelectorList__resolveParentSelectorsCompound_closure2.prototype = {
- call$1: function(simple) {
- var t1;
- if (simple instanceof D.PseudoSelector0) {
- t1 = simple.selector;
- t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector());
- } else
- t1 = false;
- return t1;
- }
- };
- D.SelectorList__resolveParentSelectorsCompound_closure3.prototype = {
- call$1: function(simple) {
- var t1, t2, t3;
- if (simple instanceof D.PseudoSelector0) {
- t1 = simple.selector;
- if (t1 == null)
- return simple;
- if (!C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector()))
- return simple;
- t1 = t1.resolveParentSelectors$2$implicitParent(this.parent, false);
- t2 = simple.name;
- t3 = simple.isClass;
- return D.PseudoSelector$0(t2, simple.argument, !t3, t1);
- } else
- return simple;
- }
- };
- D.SelectorList__resolveParentSelectorsCompound_closure4.prototype = {
- call$1: function(complex) {
- var suffix, t2, t3, t4, last, _i,
- t1 = complex.components,
- lastComponent = C.JSArray_methods.get$last(t1);
- if (!(lastComponent instanceof X.CompoundSelector0))
- throw H.wrapException(E.SassScriptException$0('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.'));
- suffix = type$.ParentSelector_2._as(C.JSArray_methods.get$first(this.compound.components)).suffix;
- t2 = type$.JSArray_SimpleSelector_2;
- if (suffix != null) {
- t2 = H.setRuntimeTypeInfo([], t2);
- 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();)
- t2.push(t4.__internal$_current);
- t2.push(C.JSArray_methods.get$last(t3).addSuffix$1(suffix));
- for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();)
- t2.push(t3.__internal$_current);
- last = X.CompoundSelector$0(t2);
- } else {
- t2 = H.setRuntimeTypeInfo([], t2);
- for (t3 = lastComponent.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
- t2.push(t3[_i]);
- for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();)
- t2.push(t3.__internal$_current);
- last = X.CompoundSelector$0(t2);
- }
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2);
- 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();)
- t2.push(t1.__internal$_current);
- t2.push(last);
- return S.ComplexSelector$0(t2, complex.lineBreak);
- }
- };
- D._NodeSassList.prototype = {};
- D.closure232.prototype = {
- call$4: function(thisArg, $length, commaSeparator, dartValue) {
- var t1;
- if (dartValue == null) {
- t1 = P.Iterable_Iterable$generate($length, new D._closure33(), type$.Value_2);
- t1 = D.SassList$0(t1, commaSeparator !== false ? C.ListSeparator_comma0 : C.ListSeparator_space0, false);
- } else
- t1 = dartValue;
- J.set$dartValue$x(thisArg, t1);
- },
- call$2: function(thisArg, $length) {
- return this.call$4(thisArg, $length, null, null);
- },
- call$3: function(thisArg, $length, commaSeparator) {
- return this.call$4(thisArg, $length, commaSeparator, null);
- },
- "call*": "call$4",
- $requiredArgCount: 2,
- $defaultValues: function() {
- return [null, null];
- }
- };
- D._closure33.prototype = {
- call$1: function(_) {
- return C.C_SassNull;
- },
- $signature: 90
- };
- D.closure233.prototype = {
- call$2: function(thisArg, index) {
- return F.wrapValue(J.get$dartValue$x(thisArg)._list1$_contents[index]);
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- D.closure234.prototype = {
- call$3: function(thisArg, index, value) {
- var t1 = J.getInterceptor$x(thisArg),
- t2 = t1.get$dartValue(thisArg)._list1$_contents,
- mutable = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
- mutable[index] = F.unwrapValue(value);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeListContents$1(mutable));
- },
- "call*": "call$3",
- $requiredArgCount: 3
- };
- D.closure235.prototype = {
- call$1: function(thisArg) {
- return J.get$dartValue$x(thisArg).separator === C.ListSeparator_comma0;
- }
- };
- D.closure236.prototype = {
- call$2: function(thisArg, isComma) {
- var t1 = J.getInterceptor$x(thisArg),
- t2 = t1.get$dartValue(thisArg)._list1$_contents,
- t3 = isComma ? C.ListSeparator_comma0 : C.ListSeparator_space0;
- t1.set$dartValue(thisArg, D.SassList$0(t2, t3, t1.get$dartValue(thisArg).hasBrackets));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- D.closure237.prototype = {
- call$1: function(thisArg) {
- return J.get$dartValue$x(thisArg)._list1$_contents.length;
- }
- };
- D.closure238.prototype = {
- call$1: function(thisArg) {
- return J.toString$0$(J.get$dartValue$x(thisArg));
- }
- };
- D.SassList0.prototype = {
- get$isBlank: function() {
- return C.JSArray_methods.every$1(this._list1$_contents, new D.SassList_isBlank_closure0());
- },
- get$asList: function() {
- return this._list1$_contents;
- },
- get$lengthAsList: function() {
- return this._list1$_contents.length;
- },
- SassList$3$brackets0: function(contents, separator, brackets) {
- if (this.separator === C.ListSeparator_undecided0 && this._list1$_contents.length > 1)
- throw H.wrapException(P.ArgumentError$("A list with more than one element must have an explicit separator."));
- },
- accept$1$1: function(visitor) {
- return visitor.visitList$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMap$1: function($name) {
- return this._list1$_contents.length === 0 ? C.SassMap_Map_empty0 : this.super$Value$assertMap0($name);
- },
- $eq: function(_, other) {
- var t1, _this = this;
- if (other == null)
- return false;
- if (!(other instanceof D.SassList0 && other.separator === _this.separator && other.hasBrackets === _this.hasBrackets && C.C_ListEquality.equals$2(other._list1$_contents, _this._list1$_contents)))
- t1 = _this._list1$_contents.length === 0 && other instanceof A.SassMap0 && other.get$asList().length === 0;
- else
- t1 = true;
- return t1;
- },
- get$hashCode: function(_) {
- return C.C_ListEquality.hash$1(this._list1$_contents);
- },
- get$separator: function() {
- return this.separator;
- },
- get$hasBrackets: function() {
- return this.hasBrackets;
- }
- };
- D.SassList_isBlank_closure0.prototype = {
- call$1: function(element) {
- return element.get$isBlank();
- }
- };
- D.ListSeparator0.prototype = {
- toString$0: function(_) {
- return this._list1$_name;
- }
- };
- L.LoudComment0.prototype = {
- get$span: function() {
- return this.text.span;
- },
- accept$1$1: function(visitor) {
- return visitor.visitLoudComment$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return this.text.toString$0(0);
- },
- $isAstNode0: 1,
- $isStatement0: 1
- };
- A.MapExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitMapExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.pairs;
- return "(" + new H.MappedListIterable(t1, new A.MapExpression_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")";
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- A.MapExpression_toString_closure0.prototype = {
- call$1: function(pair) {
- return H.S(pair.item1) + ": " + H.S(pair.item2);
- }
- };
- A.closure141.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- t1 = t1.$index($arguments, 0).assertMap$1("map").contents.$index(0, t1.$index($arguments, 1));
- return t1 == null ? C.C_SassNull : t1;
- },
- $signature: 3
- };
- A.closure140.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- map1 = t1.$index($arguments, 0).assertMap$1("map1"),
- map2 = t1.$index($arguments, 1).assertMap$1("map2");
- t1 = type$.Value_2;
- t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = map1.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, t4.key, t4.value);
- }
- for (t3 = map2.contents.get$entries(), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, t4.key, t4.value);
- }
- return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 29
- };
- A.closure138.prototype = {
- call$1: function($arguments) {
- return J.$index$asx($arguments, 0).assertMap$1("map");
- },
- $signature: 29
- };
- A.closure139.prototype = {
- call$1: function($arguments) {
- var t3, _i, mutableMap,
- t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
- t2.push(t1.$index($arguments, 1));
- for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
- t2.push(t1[_i]);
- t1 = type$.Value_2;
- mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1);
- for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
- mutableMap.remove$1(0, t2[_i]);
- return new A.SassMap0(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- },
- $signature: 29
- };
- A.closure137.prototype = {
- call$1: function($arguments) {
- return D.SassList$0(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$keys(), C.ListSeparator_comma0, false);
- },
- $signature: 17
- };
- A.closure136.prototype = {
- call$1: function($arguments) {
- return D.SassList$0(J.$index$asx($arguments, 0).assertMap$1("map").contents.get$values(), C.ListSeparator_comma0, false);
- },
- $signature: 17
- };
- A.closure135.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).assertMap$1("map").contents.containsKey$1(t1.$index($arguments, 1)) ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- A._NodeSassMap.prototype = {};
- A.closure225.prototype = {
- call$3: function(thisArg, $length, dartValue) {
- var t1, t2, t3, map;
- if (dartValue == null) {
- t1 = type$.Value_2;
- t2 = P.Iterable_Iterable$generate($length, new A._closure31(), t1);
- t3 = P.Iterable_Iterable$generate($length, new A._closure32(), t1);
- map = P.LinkedHashMap_LinkedHashMap(null, null, null, t1, t1);
- P.MapBase__fillMapWithIterables(map, t2, t3);
- t1 = new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
- } else
- t1 = dartValue;
- J.set$dartValue$x(thisArg, t1);
- },
- call$2: function(thisArg, $length) {
- return this.call$3(thisArg, $length, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues: function() {
- return [null];
- }
- };
- A._closure31.prototype = {
- call$1: function(i) {
- return new T.SassNumber0(i, C.List_empty, C.List_empty, null);
- },
- $signature: 135
- };
- A._closure32.prototype = {
- call$1: function(_) {
- return C.C_SassNull;
- },
- $signature: 90
- };
- A.closure226.prototype = {
- call$2: function(thisArg, index) {
- return F.wrapValue(J.elementAt$1$ax(J.get$dartValue$x(thisArg).contents.get$keys(), index));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- A.closure227.prototype = {
- call$2: function(thisArg, index) {
- return F.wrapValue(J.get$dartValue$x(thisArg).contents.get$values().elementAt$1(0, index));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- A.closure228.prototype = {
- call$1: function(thisArg) {
- var t1 = J.get$dartValue$x(thisArg).contents;
- return t1.get$length(t1);
- }
- };
- A.closure229.prototype = {
- call$3: function(thisArg, index, key) {
- var newKey, t2, newMap, t3, i, t4,
- t1 = J.getInterceptor$x(thisArg),
- oldMap = t1.get$dartValue(thisArg).contents;
- P.RangeError_checkValidIndex(index, oldMap, "index");
- newKey = F.unwrapValue(key);
- t2 = type$.Value_2;
- newMap = P.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
- for (t3 = J.get$iterator$ax(t1.get$dartValue(thisArg).contents.get$keys()), i = 0; t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- if (i === index)
- newMap.$indexSet(0, newKey, oldMap.$index(0, t4));
- else {
- if (newKey.$eq(0, t4))
- throw H.wrapException(P.ArgumentError$value(key, "key", "is already in the map"));
- newMap.$indexSet(0, t4, oldMap.$index(0, t4));
- }
- ++i;
- }
- t1.set$dartValue(thisArg, new A.SassMap0(H.ConstantMap_ConstantMap$from(newMap, t2, t2)));
- },
- "call*": "call$3",
- $requiredArgCount: 3
- };
- A.closure230.prototype = {
- call$3: function(thisArg, index, value) {
- var t4, t5,
- t1 = J.getInterceptor$x(thisArg),
- key = J.elementAt$1$ax(t1.get$dartValue(thisArg).contents.get$keys(), index),
- t2 = type$.Value_2,
- t3 = P.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
- for (t4 = t1.get$dartValue(thisArg).contents.get$entries(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- t3.$indexSet(0, t5.key, t5.value);
- }
- t3.$indexSet(0, key, F.unwrapValue(value));
- t1.set$dartValue(thisArg, new A.SassMap0(H.ConstantMap_ConstantMap$from(t3, t2, t2)));
- },
- "call*": "call$3",
- $requiredArgCount: 3
- };
- A.closure231.prototype = {
- call$1: function(thisArg) {
- return J.toString$0$(J.get$dartValue$x(thisArg));
- }
- };
- A.SassMap0.prototype = {
- get$separator: function() {
- var t1 = this.contents;
- return t1.get$isEmpty(t1) ? C.ListSeparator_undecided0 : C.ListSeparator_comma0;
- },
- get$asList: function() {
- var result = H.setRuntimeTypeInfo([], type$.JSArray_Value_2);
- this.contents.forEach$1(0, new A.SassMap_asList_closure0(result));
- return result;
- },
- get$lengthAsList: function() {
- var t1 = this.contents;
- return t1.get$length(t1);
- },
- accept$1$1: function(visitor) {
- return visitor.visitMap$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMap$1: function($name) {
- return this;
- },
- $eq: function(_, other) {
- var t1;
- if (other == null)
- return false;
- if (!(other instanceof A.SassMap0 && C.C_MapEquality.equals$2(other.contents, this.contents))) {
- t1 = this.contents;
- t1 = t1.get$isEmpty(t1) && other instanceof D.SassList0 && other._list1$_contents.length === 0;
- } else
- t1 = true;
- return t1;
- },
- get$hashCode: function(_) {
- var t1 = this.contents;
- return t1.get$isEmpty(t1) ? C.C_ListEquality.hash$1(C.List_empty16) : C.C_MapEquality.hash$1(t1);
- }
- };
- A.SassMap_asList_closure0.prototype = {
- call$2: function(key, value) {
- this.result.push(D.SassList$0(H.setRuntimeTypeInfo([key, value], type$.JSArray_Value_2), C.ListSeparator_space0, false));
- }
- };
- K.closure133.prototype = {
- call$1: function(value) {
- return J.ceil$0$n(value);
- },
- $signature: 34
- };
- K.closure199.prototype = {
- call$1: function($arguments) {
- var t2, t3, arg2, arg2Name, unit1, unit2,
- _s11_ = "is unitless",
- t1 = J.getInterceptor$asx($arguments),
- min = t1.$index($arguments, 0).assertNumber$1("min"),
- number = t1.$index($arguments, 1).assertNumber$1("number"),
- max = t1.$index($arguments, 2).assertNumber$1("max");
- t1 = min.numeratorUnits.length === 0;
- t2 = !t1 || min.denominatorUnits.length !== 0;
- t3 = number.numeratorUnits.length === 0;
- if (t2 === (!t3 || number.denominatorUnits.length !== 0)) {
- t2 = !t3 || number.denominatorUnits.length !== 0;
- t2 = t2 === (max.numeratorUnits.length !== 0 || max.denominatorUnits.length !== 0);
- } else
- t2 = false;
- if (t2) {
- if (min.greaterThanOrEquals$1(max).value)
- return min;
- if (min.greaterThanOrEquals$1(number).value)
- return min;
- if (number.greaterThanOrEquals$1(max).value)
- return max;
- return number;
- }
- t2 = !t1 || min.denominatorUnits.length !== 0;
- arg2 = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? number : max;
- t2 = !t1 || min.denominatorUnits.length !== 0;
- arg2Name = t2 !== (!t3 || number.denominatorUnits.length !== 0) ? "$number" : "$max";
- unit1 = !t1 || min.denominatorUnits.length !== 0 ? "has unit " + min.get$unitString() : _s11_;
- unit2 = arg2.numeratorUnits.length !== 0 || arg2.denominatorUnits.length !== 0 ? "has unit " + arg2.get$unitString() : _s11_;
- throw H.wrapException(E.SassScriptException$0("$min " + unit1 + " but " + arg2Name + " " + unit2 + ". Arguments must all have units or all be unitless."));
- },
- $signature: 6
- };
- K.closure132.prototype = {
- call$1: function(value) {
- return J.floor$0$n(value);
- },
- $signature: 34
- };
- K.closure131.prototype = {
- call$1: function($arguments) {
- var t1, t2, max, _i, number;
- 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) {
- number = t1[_i].assertNumber$0();
- if (max == null || max.lessThan$1(number).value)
- max = number;
- }
- if (max != null)
- return max;
- throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
- },
- $signature: 6
- };
- K.closure130.prototype = {
- call$1: function($arguments) {
- var t1, t2, min, _i, number;
- 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) {
- number = t1[_i].assertNumber$0();
- if (min == null || min.greaterThan$1(number).value)
- min = number;
- }
- if (min != null)
- return min;
- throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
- },
- $signature: 6
- };
- K.closure134.prototype = {
- call$1: function(value) {
- return Math.abs(value);
- },
- $signature: 68
- };
- K.closure197.prototype = {
- call$1: function($arguments) {
- var numeratorUnits, denominatorUnits, subtotal, i, number, t2, t3, t4, t5, t6, t7, result, unit1, unit2,
- _s11_ = "is unitless",
- t1 = J.$index$asx($arguments, 0).get$asList(),
- numbers = new H.MappedListIterable(t1, new K._closure26(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber0>")).toList$0(0);
- if (numbers.length === 0)
- throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
- t1 = numbers[0];
- numeratorUnits = t1.numeratorUnits;
- denominatorUnits = t1.denominatorUnits;
- for (t1 = type$.String, subtotal = 0, i = 0; i < numbers.length; ++i) {
- number = numbers[i];
- t2 = number.numeratorUnits;
- t3 = t2.length === 0;
- t4 = !t3 || number.denominatorUnits.length !== 0;
- t5 = numbers[0];
- t6 = t5.numeratorUnits;
- t7 = t6.length === 0;
- if (t4 === (!t7 || t5.denominatorUnits.length !== 0)) {
- t2 = number.valueInUnits$2(numeratorUnits, denominatorUnits);
- result = P.List_List$from(numeratorUnits, false, t1);
- result.fixed$length = Array;
- result.immutable$list = Array;
- result = P.List_List$from(denominatorUnits, false, t1);
- result.fixed$length = Array;
- result.immutable$list = Array;
- H.checkNum(t2);
- subtotal += Math.pow(t2, 2);
- } else {
- if (!t7 || t5.denominatorUnits.length !== 0)
- unit1 = "has unit " + (!t7 || t5.denominatorUnits.length !== 0 ? t5._number1$_unitString$2(t6, t5.denominatorUnits) : "");
- else
- unit1 = _s11_;
- if (!t3 || number.denominatorUnits.length !== 0)
- unit2 = "has unit " + (!t3 || number.denominatorUnits.length !== 0 ? number._number1$_unitString$2(t2, number.denominatorUnits) : "");
- else
- unit2 = _s11_;
- throw H.wrapException(E.SassScriptException$0("Argument 1 " + unit1 + " but argument " + (i + 1) + " " + unit2 + ". Arguments must all have units or all be unitless."));
- }
- }
- return T.SassNumber$withUnits0(Math.sqrt(subtotal), denominatorUnits, numeratorUnits);
- },
- $signature: 6
- };
- K._closure26.prototype = {
- call$1: function(argument) {
- return argument.assertNumber$0();
- }
- };
- K.closure196.prototype = {
- call$1: function($arguments) {
- var numberValue, base, baseValue, t2,
- _s18_ = " to have no units.",
- t1 = J.getInterceptor$asx($arguments),
- number = t1.$index($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + _s18_));
- numberValue = K._fuzzyRoundIfZero0(number.value);
- if (J.$eq$(t1.$index($arguments, 1), C.C_SassNull)) {
- t1 = Math.log(H.checkNum(numberValue));
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- }
- base = t1.$index($arguments, 1).assertNumber$1("base");
- if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_));
- t1 = base.value;
- baseValue = Math.abs(t1 - 1) < $.$get$epsilon0() ? T.fuzzyRound0(t1) : K._fuzzyRoundIfZero0(t1);
- t1 = Math.log(H.checkNum(numberValue));
- t2 = Math.log(H.checkNum(baseValue));
- return new T.SassNumber0(t1 / t2, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure195.prototype = {
- call$1: function($arguments) {
- var baseValue, exponentValue, t2, _null = null,
- _s18_ = " to have no units.",
- t1 = J.getInterceptor$asx($arguments),
- base = t1.$index($arguments, 0).assertNumber$1("base"),
- exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
- if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_));
- else if (exponent.numeratorUnits.length !== 0 || exponent.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0("$exponent: Expected " + exponent.toString$0(0) + _s18_));
- baseValue = K._fuzzyRoundIfZero0(base.value);
- exponentValue = K._fuzzyRoundIfZero0(exponent.value);
- t1 = $.$get$epsilon0();
- if (Math.abs(Math.abs(baseValue) - 1) < t1) {
- exponentValue.toString;
- t2 = exponentValue == 1 / 0 || exponentValue == -1 / 0;
- } else
- t2 = false;
- if (t2)
- return new T.SassNumber0(0 / 0, C.List_empty, C.List_empty, _null);
- else if (Math.abs(baseValue - 0) < t1) {
- exponentValue.toString;
- if (isFinite(exponentValue))
- if (T.fuzzyIsInt0(exponentValue))
- t1 = C.JSInt_methods.$mod(T.fuzzyIsInt0(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- exponentValue = T.fuzzyRound0(exponentValue);
- } else {
- if (isFinite(baseValue))
- if (baseValue < 0 && true) {
- exponentValue.toString;
- t1 = isFinite(exponentValue) && T.fuzzyIsInt0(exponentValue);
- } else
- t1 = false;
- else
- t1 = false;
- if (t1)
- exponentValue = T.fuzzyRound0(exponentValue);
- else {
- if (baseValue == 1 / 0 || baseValue == -1 / 0)
- if (baseValue < 0 && true) {
- exponentValue.toString;
- if (isFinite(exponentValue))
- if (T.fuzzyIsInt0(exponentValue))
- t1 = C.JSInt_methods.$mod(T.fuzzyIsInt0(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
- else
- t1 = false;
- else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- if (t1)
- exponentValue = T.fuzzyRound0(exponentValue);
- }
- }
- H.checkNum(exponentValue);
- t1 = Math.pow(baseValue, exponentValue);
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, _null);
- },
- $signature: 6
- };
- K.closure193.prototype = {
- call$1: function($arguments) {
- var t1,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
- t1 = Math.sqrt(H.checkNum(K._fuzzyRoundIfZero0(number.value)));
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure203.prototype = {
- call$1: function($arguments) {
- var numberValue,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
- numberValue = number.value;
- if (Math.abs(Math.abs(numberValue) - 1) < $.$get$epsilon0())
- numberValue = T.fuzzyRound0(numberValue);
- return T.SassNumber$withUnits0(Math.acos(numberValue) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
- },
- $signature: 6
- };
- K.closure202.prototype = {
- call$1: function($arguments) {
- var t1,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
- t1 = number.value;
- 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_String));
- },
- $signature: 6
- };
- K.closure201.prototype = {
- call$1: function($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
- return T.SassNumber$withUnits0(Math.atan(H.checkNum(K._fuzzyRoundIfZero0(number.value))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
- },
- $signature: 6
- };
- K.closure200.prototype = {
- call$1: function($arguments) {
- var t2, t3, t4, unit1, unit2, xValue,
- _s11_ = "is unitless",
- t1 = J.getInterceptor$asx($arguments),
- y = t1.$index($arguments, 0).assertNumber$1("y"),
- x = t1.$index($arguments, 1).assertNumber$1("x");
- t1 = y.numeratorUnits;
- t2 = t1.length === 0;
- t3 = !t2 || y.denominatorUnits.length !== 0;
- t4 = x.numeratorUnits.length === 0;
- if (t3 !== (!t4 || x.denominatorUnits.length !== 0)) {
- unit1 = !t2 || y.denominatorUnits.length !== 0 ? "has unit " + y.get$unitString() : _s11_;
- unit2 = !t4 || x.denominatorUnits.length !== 0 ? "has unit " + x.get$unitString() : _s11_;
- throw H.wrapException(E.SassScriptException$0("$y " + unit1 + " but $x " + unit2 + ". Arguments must all have units or all be unitless."));
- }
- t2 = y.denominatorUnits;
- xValue = K._fuzzyRoundIfZero0(T.SassNumber$withUnits0(x.valueInUnits$2(t1, t2), t2, t1).value);
- return T.SassNumber$withUnits0(Math.atan2(H.checkNum(K._fuzzyRoundIfZero0(y.value)), H.checkNum(xValue)) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_String));
- },
- $signature: 6
- };
- K.closure198.prototype = {
- call$1: function($arguments) {
- var t1 = Math.cos(H.checkNum(K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value));
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure194.prototype = {
- call$1: function($arguments) {
- var t1 = Math.sin(H.checkNum(K._fuzzyRoundIfZero0(K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value)));
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure192.prototype = {
- call$1: function($arguments) {
- var t1 = K._coerceToRad0(J.$index$asx($arguments, 0).assertNumber$1("number")).value,
- t2 = C.JSNumber_methods.$mod(t1 - 1.5707963267948966, 6.283185307179586),
- t3 = $.$get$epsilon0();
- if (Math.abs(t2 - 0) < t3)
- return new T.SassNumber0(1 / 0, C.List_empty, C.List_empty, null);
- else if (Math.abs(C.JSNumber_methods.$mod(t1 + 1.5707963267948966, 6.283185307179586) - 0) < t3)
- return new T.SassNumber0(-1 / 0, C.List_empty, C.List_empty, null);
- else {
- t1 = Math.tan(H.checkNum(K._fuzzyRoundIfZero0(t1)));
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- }
- },
- $signature: 6
- };
- K.closure126.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- K.closure125.prototype = {
- call$1: function($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number");
- return !(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0) ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- K.closure127.prototype = {
- call$1: function($arguments) {
- return new D.SassString0(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
- },
- $signature: 11
- };
- K.closure129.prototype = {
- call$1: function($arguments) {
- var t1,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- number.assertNoUnits$1("number");
- t1 = H.setRuntimeTypeInfo(["%"], type$.JSArray_String);
- t1 = P.List_List$unmodifiable(t1, type$.String);
- return new T.SassNumber0(number.value * 100, t1, C.List_empty, null);
- },
- $signature: 6
- };
- K.closure128.prototype = {
- call$1: function($arguments) {
- var limit,
- t1 = J.getInterceptor$asx($arguments);
- if (J.$eq$(t1.$index($arguments, 0), C.C_SassNull)) {
- t1 = $.$get$_random2().nextDouble$0();
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- }
- limit = t1.$index($arguments, 0).assertNumber$1("limit").assertInt$1("limit");
- if (limit < 1)
- throw H.wrapException(E.SassScriptException$0("$limit: Must be greater than 0, was " + limit + "."));
- t1 = $.$get$_random2().nextInt$1(limit);
- return new T.SassNumber0(t1 + 1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- K._numberFunction_closure0.prototype = {
- call$1: function($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number");
- return T.SassNumber$withUnits0(this.transform.call$1(number.value), number.denominatorUnits, number.numeratorUnits);
- },
- $signature: 6
- };
- F.CssMediaQuery0.prototype = {
- merge$1: function(other) {
- var _i, t8, negativeFeatures, features, type, modifier, fewerFeatures, fewerFeatures0, moreFeatures, _this = this, _null = null, _s3_ = "all",
- t1 = _this.modifier,
- ourModifier = t1 == null ? _null : t1.toLowerCase(),
- t2 = _this.type,
- t3 = t2 == null,
- ourType = t3 ? _null : t2.toLowerCase(),
- t4 = other.modifier,
- theirModifier = t4 == null ? _null : t4.toLowerCase(),
- t5 = other.type,
- t6 = t5 == null,
- theirType = t6 ? _null : t5.toLowerCase(),
- t7 = ourType == null;
- if (t7 && theirType == null) {
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t2 = _this.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i]);
- for (t2 = other.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(t2[_i]);
- return new F.MediaQuerySuccessfulMergeResult0(new F.CssMediaQuery0(_null, _null, P.List_List$unmodifiable(t1, type$.String)));
- }
- t8 = ourModifier === "not";
- if (t8 !== (theirModifier === "not")) {
- if (ourType == theirType) {
- negativeFeatures = t8 ? _this.features : other.features;
- if (C.JSArray_methods.every$1(negativeFeatures, C.JSArray_methods.get$contains(t8 ? other.features : _this.features)))
- return C._SingletonCssMediaQueryMergeResult_empty0;
- else
- return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
- } else if (t3 || B.equalsIgnoreCase0(t2, _s3_) || t6 || B.equalsIgnoreCase0(t5, _s3_))
- return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
- if (t8) {
- features = other.features;
- type = theirType;
- modifier = theirModifier;
- } else {
- features = _this.features;
- type = ourType;
- modifier = ourModifier;
- }
- } else if (t8) {
- if (ourType != theirType)
- return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
- fewerFeatures = _this.features;
- fewerFeatures0 = other.features;
- t3 = fewerFeatures.length > fewerFeatures0.length;
- moreFeatures = t3 ? fewerFeatures : fewerFeatures0;
- if (t3)
- fewerFeatures = fewerFeatures0;
- if (!C.JSArray_methods.every$1(fewerFeatures, C.JSArray_methods.get$contains(moreFeatures)))
- return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
- features = moreFeatures;
- type = ourType;
- modifier = ourModifier;
- } else if (t3 || B.equalsIgnoreCase0(t2, _s3_)) {
- type = (t6 || B.equalsIgnoreCase0(t5, _s3_)) && t7 ? _null : theirType;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- features = t3;
- modifier = theirModifier;
- } else {
- if (t6 || B.equalsIgnoreCase0(t5, _s3_)) {
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- features = t3;
- modifier = ourModifier;
- } else {
- if (ourType != theirType)
- return C._SingletonCssMediaQueryMergeResult_empty0;
- else {
- modifier = ourModifier == null ? theirModifier : ourModifier;
- t3 = H.setRuntimeTypeInfo([], type$.JSArray_String);
- for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
- t3.push(t6[_i]);
- }
- features = t3;
- }
- type = ourType;
- }
- t2 = type == ourType ? t2 : t5;
- return new F.MediaQuerySuccessfulMergeResult0(F.CssMediaQuery$0(t2, features, modifier == ourModifier ? t1 : t4));
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof F.CssMediaQuery0 && other.modifier == this.modifier && other.type == this.type && C.C_ListEquality.equals$2(other.features, this.features);
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ C.C_ListEquality.hash$1(this.features);
- },
- toString$0: function(_) {
- var t2, _this = this,
- t1 = _this.modifier;
- t1 = t1 != null ? t1 + " " : "";
- t2 = _this.type;
- if (t2 != null) {
- t1 += t2;
- if (_this.features.length !== 0)
- t1 += " and ";
- }
- t1 += C.JSArray_methods.join$1(_this.features, " and ");
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- F._SingletonCssMediaQueryMergeResult0.prototype = {
- toString$0: function(_) {
- return this._media_query1$_name;
- }
- };
- F.MediaQuerySuccessfulMergeResult0.prototype = {};
- F.MediaQueryParser0.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new F.MediaQueryParser_parse_closure0(this));
- },
- _media_query0$_mediaQuery$0: function() {
- var identifier1, identifier2, type, modifier, features, _this = this, _null = null,
- t1 = _this.scanner;
- if (t1.peekChar$0() !== 40) {
- identifier1 = _this.identifier$0();
- _this.whitespace$0();
- if (!_this.lookingAtIdentifier$0())
- return F.CssMediaQuery$0(identifier1, _null, _null);
- identifier2 = _this.identifier$0();
- _this.whitespace$0();
- if (B.equalsIgnoreCase0(identifier2, "and")) {
- type = identifier1;
- modifier = _null;
- } else {
- if (_this.scanIdentifier$1("and"))
- _this.whitespace$0();
- else
- return F.CssMediaQuery$0(identifier2, _null, identifier1);
- type = identifier2;
- modifier = identifier1;
- }
- } else {
- type = _null;
- modifier = type;
- }
- features = H.setRuntimeTypeInfo([], type$.JSArray_String);
- do {
- _this.whitespace$0();
- t1.expectChar$1(40);
- features.push("(" + _this.declarationValue$0() + ")");
- t1.expectChar$1(41);
- _this.whitespace$0();
- } while (_this.scanIdentifier$1("and"));
- if (type == null)
- return new F.CssMediaQuery0(_null, _null, P.List_List$unmodifiable(features, type$.String));
- else
- return F.CssMediaQuery$0(type, features, modifier);
- }
- };
- F.MediaQueryParser_parse_closure0.prototype = {
- call$0: function() {
- var queries = H.setRuntimeTypeInfo([], type$.JSArray_CssMediaQuery_2),
- t1 = this.$this,
- t2 = t1.scanner;
- do {
- t1.whitespace$0();
- queries.push(t1._media_query0$_mediaQuery$0());
- } while (t2.scanChar$1(44));
- t2.expectDone$0();
- return queries;
- },
- $signature: 55
- };
- G.ModifiableCssMediaRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssMediaRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- return G.ModifiableCssMediaRule$0(this.queries, this.span);
- },
- $isCssMediaRule0: 1,
- get$span: function() {
- return this.span;
- }
- };
- G.MediaRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitMediaRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return "@media " + this.query.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- A.MergedExtension0.prototype = {
- unmerge$0: function() {
- var $async$self = this;
- return P._makeSyncStarIterable(function() {
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1;
- return function $async$unmerge$0($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.left;
- $async$goto = t1 instanceof A.MergedExtension0 ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return P._IterationMarker_yieldStar(t1.unmerge$0());
- case 5:
- // after yield
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 6;
- return t1;
- case 6:
- // after yield
- case 3:
- // join
- $async$goto = 7;
- return $async$self.right;
- case 7:
- // after yield
- // implicit return
- return P._IterationMarker_endOfIteration();
- case 1:
- // rethrow
- return P._IterationMarker_uncaughtError($async$currentError);
- }
- };
- }, type$.Extension_2);
- }
- };
- Z.MergedMapView0.prototype = {
- get$keys: function() {
- return this._merged_map_view$_mapsByKey.get$keys();
- },
- get$length: function(_) {
- var t1 = this._merged_map_view$_mapsByKey;
- return t1.get$length(t1);
- },
- get$isEmpty: function(_) {
- var t1 = this._merged_map_view$_mapsByKey;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty: function(_) {
- var t1 = this._merged_map_view$_mapsByKey;
- return t1.get$isNotEmpty(t1);
- },
- MergedMapView$10: function(maps, $K, $V) {
- var t1, t2, t3, _i, map, t4, t5;
- 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) {
- map = maps[_i];
- if (t3._is(map))
- for (t4 = map._merged_map_view$_mapsByKey.get$values(), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- B.setAll0(t2, t5.get$keys(), t5);
- }
- else
- B.setAll0(t2, map.get$keys(), map);
- }
- },
- $index: function(_, key) {
- var child = this._merged_map_view$_mapsByKey.$index(0, key);
- return child == null ? null : child.$index(0, key);
- },
- $indexSet: function(_, key, value) {
- var child = this._merged_map_view$_mapsByKey.$index(0, key);
- if (child == null)
- throw H.wrapException(P.UnsupportedError$("New entries may not be added to MergedMapView."));
- child.$indexSet(0, key, value);
- },
- remove$1: function(_, key) {
- throw H.wrapException(P.UnsupportedError$("Entries may not be removed from MergedMapView."));
- },
- containsKey$1: function(key) {
- return this._merged_map_view$_mapsByKey.containsKey$1(key);
- }
- };
- Q.closure209.prototype = {
- call$1: function($arguments) {
- return $._features0.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature").text) ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- Q.closure210.prototype = {
- call$1: function($arguments) {
- return new D.SassString0(J.toString$0$(J.get$first$ax($arguments)), false);
- },
- $signature: 11
- };
- Q.closure211.prototype = {
- call$1: function($arguments) {
- var value = J.$index$asx($arguments, 0);
- if (value instanceof D.SassArgumentList0)
- return new D.SassString0("arglist", false);
- if (value instanceof Z.SassBoolean0)
- return new D.SassString0("bool", false);
- if (value instanceof K.SassColor0)
- return new D.SassString0("color", false);
- if (value instanceof D.SassList0)
- return new D.SassString0("list", false);
- if (value instanceof A.SassMap0)
- return new D.SassString0("map", false);
- if (value instanceof O.SassNull0)
- return new D.SassString0("null", false);
- if (value instanceof T.SassNumber0)
- return new D.SassString0("number", false);
- if (value instanceof F.SassFunction0)
- return new D.SassString0("function", false);
- return new D.SassString0("string", false);
- },
- $signature: 11
- };
- Q.closure212.prototype = {
- call$1: function($arguments) {
- var t1,
- argumentList = J.$index$asx($arguments, 0);
- if (argumentList instanceof D.SassArgumentList0) {
- argumentList._argument_list$_wereKeywordsAccessed = true;
- t1 = type$.Value_2;
- return new A.SassMap0(H.ConstantMap_ConstantMap$from(Y.mapMap(argumentList._argument_list$_keywords, new Q._closure28(), null, type$.String, t1, t1, t1), t1, t1));
- } else
- throw H.wrapException("$args: " + H.S(argumentList) + " is not an argument list.");
- },
- $signature: 29
- };
- Q._closure28.prototype = {
- call$2: function(key, _) {
- return new D.SassString0(key, false);
- }
- };
- T.MixinRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitMixinRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = "@mixin " + H.S(this.name),
- t2 = this.$arguments;
- if (!(t2.$arguments.length === 0 && t2.restArgument == null))
- t1 += "(" + t2.toString$0(0) + ")";
- t2 = this.children;
- t2 = t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- L.ExtendMode0.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- G.Module0.prototype = {};
- M.SupportsNegation0.prototype = {
- toString$0: function(_) {
- var t1 = this.condition;
- if (t1 instanceof M.SupportsNegation0 || t1 instanceof U.SupportsOperation0)
- return "not (" + t1.toString$0(0) + ")";
- else
- return "not " + t1.toString$0(0);
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- N.NoSourceMapBuffer.prototype = {
- get$length: function(_) {
- return this._no_source_map_buffer$_buffer._contents.length;
- },
- get$sourceFiles: function() {
- return C.Map_empty;
- },
- forSpan$1$2: function(span, callback) {
- return callback.call$0();
- },
- forSpan$2: function(span, callback) {
- return this.forSpan$1$2(span, callback, type$.dynamic);
- },
- write$1: function(_, object) {
- this._no_source_map_buffer$_buffer._contents += H.S(object);
- return null;
- },
- writeCharCode$1: function(charCode) {
- this._no_source_map_buffer$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
- return null;
- },
- toString$0: function(_) {
- var t1 = this._no_source_map_buffer$_buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- buildSourceMap$1$prefix: function(prefix) {
- return H.throwExpression(P.UnsupportedError$("NoSourceMapBuffer.buildSourceMap() is not supported."));
- },
- $isStringBuffer: 1
- };
- B.AstNode0.prototype = {};
- B._FakeAstNode0.prototype = {
- get$span: function() {
- return this._node3$_callback.call$0();
- },
- $isAstNode0: 1
- };
- B.CssNode0.prototype = {
- toString$0: function(_) {
- return N.serialize0(this, true, null, true, null, false, null, true).css;
- }
- };
- B.CssParentNode0.prototype = {};
- B._FS0.prototype = {};
- B._Stat0.prototype = {};
- B._Date0.prototype = {};
- B._Stderr0.prototype = {};
- B._Stdin0.prototype = {};
- B._SystemError0.prototype = {};
- B._Process0.prototype = {};
- B.FileSystemException0.prototype = {
- toString$0: function(_) {
- var t1 = $.$get$context();
- return H.S(t1.prettyUri$1(t1.toUri$1(this.path))) + ": " + this.message;
- },
- get$message: function(receiver) {
- return this.message;
- },
- get$path: function(receiver) {
- return this.path;
- }
- };
- B.Stderr0.prototype = {
- writeln$1: function(object) {
- J.write$1$x(this._node1$_stderr, (object == null ? "" : object) + "\n");
- },
- writeln$0: function() {
- return this.writeln$1(null);
- }
- };
- B._readFile_closure0.prototype = {
- call$0: function() {
- return J.readFileSync$2$x(self.fs, this.path, this.encoding);
- },
- $signature: 44
- };
- B.fileExists_closure0.prototype = {
- call$0: function() {
- var error, systemError, exception,
- t1 = this.path;
- if (!J.existsSync$1$x(self.fs, t1))
- return false;
- try {
- t1 = J.isFile$0$x(J.statSync$1$x(self.fs, t1));
- return t1;
- } catch (exception) {
- error = H.unwrapException(exception);
- systemError = type$._SystemError_2._as(error);
- if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
- return false;
- throw exception;
- }
- },
- $signature: 25
- };
- B.dirExists_closure0.prototype = {
- call$0: function() {
- var error, systemError, exception,
- t1 = this.path;
- if (!J.existsSync$1$x(self.fs, t1))
- return false;
- try {
- t1 = J.isDirectory$0$x(J.statSync$1$x(self.fs, t1));
- return t1;
- } catch (exception) {
- error = H.unwrapException(exception);
- systemError = type$._SystemError_2._as(error);
- if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
- return false;
- throw exception;
- }
- },
- $signature: 25
- };
- B.listDir_closure0.prototype = {
- call$0: function() {
- var t1 = this.path;
- if (!this.recursive)
- return J.map$1$1$ax(J.readdirSync$1$x(self.fs, t1), new B.listDir__closure1(t1), type$.String).where$1(0, new B.listDir__closure2());
- else
- return new B.listDir_closure_list0().call$1(t1);
- },
- $signature: 66
- };
- B.listDir__closure1.prototype = {
- call$1: function(child) {
- return D.join(this.path, H._asStringNullable(child), null);
- },
- $signature: 27
- };
- B.listDir__closure2.prototype = {
- call$1: function(child) {
- return !B.dirExists0(child);
- }
- };
- B.listDir_closure_list0.prototype = {
- call$1: function($parent) {
- return J.expand$1$1$ax(J.readdirSync$1$x(self.fs, $parent), new B.listDir__list_closure0($parent, this), type$.String);
- }
- };
- B.listDir__list_closure0.prototype = {
- call$1: function(child) {
- var path = D.join(this.parent, H._asStringNullable(child), null);
- return B.dirExists0(path) ? this.list.call$1(path) : H.setRuntimeTypeInfo([path], type$.JSArray_String);
- },
- $signature: 79
- };
- B.ModifiableCssNode0.prototype = {
- get$hasFollowingSibling: function() {
- var siblings, i, t2,
- t1 = this._node2$_parent;
- if (t1 == null)
- return false;
- siblings = t1.children;
- for (i = this._node2$_indexInParent + 1, t1 = siblings._collection$_source, t2 = J.getInterceptor$asx(t1); i < t2.get$length(t1); ++i)
- if (!this._node2$_isInvisible$1(t2.elementAt$1(t1, i)))
- return true;
- return false;
- },
- _node2$_isInvisible$1: function(node) {
- if (type$.CssParentNode_2._is(node)) {
- if (type$.CssAtRule_2._is(node))
- return false;
- if (type$.CssStyleRule_2._is(node) && node.selector.value.get$isInvisible())
- return true;
- return J.every$1$ax(node.get$children(), this.get$_node2$_isInvisible());
- } else
- return false;
- },
- get$isGroupEnd: function() {
- return this.isGroupEnd;
- }
- };
- B.ModifiableCssParentNode0.prototype = {
- get$isChildless: function() {
- return false;
- },
- addChild$1: function(child) {
- var t1;
- child._node2$_parent = this;
- t1 = this._node2$_children;
- child._node2$_indexInParent = t1.length;
- t1.push(child);
- },
- $isCssParentNode0: 1,
- get$children: function() {
- return this.children;
- }
- };
- B.SassNode0.prototype = {};
- B._render_closure.prototype = {
- call$0: function() {
- var error, exception;
- try {
- this.callback.call$2(null, B._renderSync(this.options));
- } catch (exception) {
- error = H.unwrapException(exception);
- this.callback.call$2(type$.JSError._as(error), null);
- }
- return null;
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 0
- };
- B._render_closure0.prototype = {
- call$1: function(result) {
- this.callback.call$2(null, result);
- }
- };
- B._render_closure1.prototype = {
- call$2: function(error, stackTrace) {
- var _null = null,
- t1 = this.callback;
- if (error instanceof E.SassException0)
- t1.call$2(B._wrapException(error), _null);
- else
- t1.call$2(B._newRenderError(J.toString$0$(error), _null, _null, _null, 3), _null);
- },
- "call*": "call$2",
- $requiredArgCount: 2,
- $signature: 89
- };
- B._parseFunctions_closure.prototype = {
- call$2: function(signature, callback) {
- var error, t1, exception, _this = this, tuple = null;
- try {
- t1 = S.SpanScanner$(signature, null);
- tuple = new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, C.C_StderrLogger).parseSignature$0();
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException0) {
- error = t1;
- throw H.wrapException(E.SassFormatException$0('Invalid signature "' + H.S(signature) + '": ' + H.S(error._span_exception$_message), error.get$span()));
- } else
- throw exception;
- }
- t1 = _this.options;
- if (J.get$fiber$x(t1) != null)
- _this.result.push(Q.BuiltInCallable$parsed(tuple.item1, tuple.item2, new B._parseFunctions__closure(t1, callback)));
- else {
- t1 = _this.result;
- if (!_this.asynch)
- t1.push(Q.BuiltInCallable$parsed(tuple.item1, tuple.item2, new B._parseFunctions__closure0(callback)));
- else
- t1.push(new S.AsyncBuiltInCallable0(tuple.item1, tuple.item2, new B._parseFunctions__closure1(callback)));
- }
- },
- $signature: 137
- };
- B._parseFunctions__closure.prototype = {
- call$1: function($arguments) {
- var t4, result,
- t1 = this.options,
- t2 = J.getInterceptor$x(t1),
- fiber = J.get$current$x(t2.get$fiber(t1)),
- t3 = [];
- for (t4 = J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.Object), t4 = t4.get$iterator(t4); t4.moveNext$0();)
- t3.push(t4.get$current(t4));
- t3.push(P.allowInterop(new B._parseFunctions___closure0(fiber)));
- result = P.Function_apply(type$.Function._as(this.callback), t3);
- return F.unwrapValue(H._asBoolNullable($.$get$_isUndefined().call$1(result)) ? J.yield$0$x(t2.get$fiber(t1)) : result);
- },
- $signature: 3
- };
- B._parseFunctions___closure0.prototype = {
- call$1: function(result) {
- P.scheduleMicrotask(new B._parseFunctions____closure(this.fiber, result));
- },
- call$0: function() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues: function() {
- return [null];
- },
- $signature: 40
- };
- B._parseFunctions____closure.prototype = {
- call$0: function() {
- return J.run$1$x(this.fiber, this.result);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 44
- };
- B._parseFunctions__closure0.prototype = {
- call$1: function($arguments) {
- return F.unwrapValue(P.Function_apply(type$.Function._as(this.callback), J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.Object).toList$0(0)));
- },
- $signature: 3
- };
- B._parseFunctions__closure1.prototype = {
- call$1: function($arguments) {
- return this.$call$body$_parseFunctions__closure($arguments);
- },
- $call$body$_parseFunctions__closure: function($arguments) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t2, result, completer, t1, $async$temp1;
- var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- completer = new P._AsyncCompleter(new P._Future($.Zone__current, type$._Future_Object), type$._AsyncCompleter_Object);
- t1 = [];
- for (t2 = J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.Object), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.get$current(t2));
- t1.push(P.allowInterop(new B._parseFunctions___closure(completer)));
- result = P.Function_apply(type$.Function._as($async$self.callback), t1);
- $async$temp1 = F;
- $async$goto = H._asBoolNullable($.$get$_isUndefined().call$1(result)) ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return P._asyncAwait(completer.future, $async$call$1);
- case 6:
- // returning from await.
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$result = result;
- case 4:
- // join
- $async$returnValue = $async$temp1.unwrapValue($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$1, $async$completer);
- }
- };
- B._parseFunctions___closure.prototype = {
- call$1: function(result) {
- return this.completer.complete$1(result);
- },
- call$0: function() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues: function() {
- return [null];
- },
- $signature: 86
- };
- B._parseImporter_closure.prototype = {
- call$1: function(importer) {
- return type$.JSFunction._as(P.allowInteropCaptureThis(new B._parseImporter__closure(this.options, importer)));
- }
- };
- B._parseImporter__closure.prototype = {
- call$4: function(thisArg, url, previous, _) {
- var t1 = this.options,
- t2 = J.getInterceptor$x(t1),
- result = J.apply$2$x(this.importer, thisArg, [url, previous, P.allowInterop(new B._parseImporter___closure(J.get$current$x(t2.get$fiber(t1))))]);
- if (H._asBoolNullable($.$get$_isUndefined().call$1(result)))
- return J.yield$0$x(t2.get$fiber(t1));
- return result;
- },
- call$3: function(thisArg, url, previous) {
- return this.call$4(thisArg, url, previous, null);
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues: function() {
- return [null];
- }
- };
- B._parseImporter___closure.prototype = {
- call$1: function(result) {
- P.scheduleMicrotask(new B._parseImporter____closure(this.fiber, result));
- },
- $signature: 138
- };
- B._parseImporter____closure.prototype = {
- call$0: function() {
- return J.run$1$x(this.fiber, this.result);
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 44
- };
- O.NullExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitNullExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "null";
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- O.closure224.prototype = {
- call$0: function() {
- var $constructor = P.allowInterop(new O._closure29());
- B.injectSuperclass(C.C_SassNull, $constructor);
- self.Object.defineProperty(C.C_SassNull.constructor, "name", {value: "SassNull"});
- B.forwardToString($constructor);
- $constructor.NULL = C.C_SassNull;
- C.C_SassNull.toString = P.allowInterop(new O._closure30());
- return $constructor;
- },
- $signature: 83
- };
- O._closure29.prototype = {
- call$1: function(_) {
- throw H.wrapException("new sass.types.Null() isn't allowed. Use sass.types.Null.NULL instead.");
- },
- call$0: function() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues: function() {
- return [null];
- },
- $signature: 51
- };
- O._closure30.prototype = {
- call$0: function() {
- return "null";
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: 10
- };
- O.SassNull0.prototype = {
- get$isTruthy: function() {
- return false;
- },
- get$isBlank: function() {
- return true;
- },
- get$realNull: function() {
- return null;
- },
- accept$1$1: function(visitor) {
- if (visitor._inspect)
- visitor._buffer.write$1(0, "null");
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unaryNot$0: function() {
- return C.SassBoolean_true;
- }
- };
- T.NumberExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitNumberExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = H.S(this.value),
- t2 = this.unit;
- return t1 + (t2 == null ? "" : t2);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- T._NodeSassNumber.prototype = {};
- T.closure218.prototype = {
- call$4: function(thisArg, value, unit, dartValue) {
- J.set$dartValue$x(thisArg, dartValue == null ? T._parseNumber(value, unit) : dartValue);
- },
- call$2: function(thisArg, value) {
- return this.call$4(thisArg, value, null, null);
- },
- call$3: function(thisArg, value, unit) {
- return this.call$4(thisArg, value, unit, null);
- },
- "call*": "call$4",
- $requiredArgCount: 2,
- $defaultValues: function() {
- return [null, null];
- }
- };
- T.closure219.prototype = {
- call$1: function(thisArg) {
- return J.get$dartValue$x(thisArg).value;
- }
- };
- T.closure220.prototype = {
- call$2: function(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg),
- t2 = t1.get$dartValue(thisArg).numeratorUnits;
- t1.set$dartValue(thisArg, T.SassNumber$withUnits0(value, t1.get$dartValue(thisArg).denominatorUnits, t2));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- T.closure221.prototype = {
- call$1: function(thisArg) {
- var t1 = J.getInterceptor$x(thisArg),
- t2 = C.JSArray_methods.join$1(t1.get$dartValue(thisArg).numeratorUnits, "*");
- return t2 + (t1.get$dartValue(thisArg).denominatorUnits.length === 0 ? "" : "/") + C.JSArray_methods.join$1(t1.get$dartValue(thisArg).denominatorUnits, "*");
- }
- };
- T.closure222.prototype = {
- call$2: function(thisArg, unit) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, T._parseNumber(t1.get$dartValue(thisArg).value, unit));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- T.closure223.prototype = {
- call$1: function(thisArg) {
- return J.toString$0$(J.get$dartValue$x(thisArg));
- }
- };
- T._parseNumber_closure.prototype = {
- call$1: function(unit) {
- return unit.length === 0;
- }
- };
- T._parseNumber_closure0.prototype = {
- call$1: function(unit) {
- return unit.length === 0;
- }
- };
- T.SassNumber0.prototype = {
- get$unitString: function() {
- var _this = this,
- t1 = _this.numeratorUnits;
- return t1.length !== 0 || _this.denominatorUnits.length !== 0 ? _this._number1$_unitString$2(t1, _this.denominatorUnits) : "";
- },
- accept$1$1: function(visitor) {
- return visitor.visitNumber$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- withoutSlash$0: function() {
- var _this = this;
- if (_this.asSlash == null)
- return _this;
- return new T.SassNumber0(_this.value, _this.numeratorUnits, _this.denominatorUnits, null);
- },
- withSlash$2: function(numerator, denominator) {
- return new T.SassNumber0(this.value, this.numeratorUnits, this.denominatorUnits, new S.Tuple2(numerator, denominator, type$.Tuple2_SassNumber_SassNumber_2));
- },
- assertNumber$1: function($name) {
- return this;
- },
- assertNumber$0: function() {
- return this.assertNumber$1(null);
- },
- assertInt$1: function($name) {
- var t1 = this.value,
- integer = T.fuzzyIsInt0(t1) ? J.round$0$n(t1) : null;
- if (integer != null)
- return integer;
- throw H.wrapException(this._number1$_exception$2(this.toString$0(0) + " is not an int.", $name));
- },
- assertInt$0: function() {
- return this.assertInt$1(null);
- },
- valueInRange$3: function(min, max, $name) {
- var _this = this,
- result = T.fuzzyCheckRange0(_this.value, min, max);
- if (result != null)
- return result;
- 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));
- },
- hasUnit$1: function(unit) {
- var t1 = this.numeratorUnits;
- return t1.length === 1 && this.denominatorUnits.length === 0 && J.$eq$(C.JSArray_methods.get$first(t1), unit);
- },
- assertUnit$2: function(unit, $name) {
- if (this.hasUnit$1(unit))
- return;
- throw H.wrapException(this._number1$_exception$2("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
- },
- assertNoUnits$1: function($name) {
- var _this = this;
- if (!(_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0))
- return;
- throw H.wrapException(_this._number1$_exception$2("Expected " + _this.toString$0(0) + " to have no units.", $name));
- },
- valueInUnits$2: function(newNumerators, newDenominators) {
- var t1, oldNumerators, t2, _i, oldDenominators, t3, _this = this, _box_0 = {};
- if (!(newNumerators.length === 0 && newDenominators.length === 0)) {
- t1 = _this.numeratorUnits;
- if (!(t1.length === 0 && _this.denominatorUnits.length === 0))
- t1 = C.C_ListEquality.equals$2(t1, newNumerators) && C.C_ListEquality.equals$2(_this.denominatorUnits, newDenominators);
- else
- t1 = true;
- } else
- t1 = true;
- if (t1)
- return _this.value;
- _box_0.value = _this.value;
- t1 = _this.numeratorUnits;
- oldNumerators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
- for (t2 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t2 || (0, H.throwConcurrentModificationError)(newNumerators), ++_i)
- B.removeFirstWhere0(oldNumerators, new T.SassNumber_valueInUnits_closure3(_box_0, _this, newNumerators[_i]), new T.SassNumber_valueInUnits_closure4(_this, newNumerators, newDenominators));
- t2 = _this.denominatorUnits;
- oldDenominators = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
- for (t3 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t3 || (0, H.throwConcurrentModificationError)(newDenominators), ++_i)
- B.removeFirstWhere0(oldDenominators, new T.SassNumber_valueInUnits_closure5(_box_0, _this, newDenominators[_i]), new T.SassNumber_valueInUnits_closure6(_this, newNumerators, newDenominators));
- if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
- throw H.wrapException(E.SassScriptException$0("Incompatible units " + _this._number1$_unitString$2(t1, t2) + " and " + _this._number1$_unitString$2(newNumerators, newDenominators) + "."));
- return _box_0.value;
- },
- isComparableTo$1: function(other) {
- var t1, exception;
- if (this.numeratorUnits.length !== 0 || this.denominatorUnits.length !== 0)
- t1 = !(other.numeratorUnits.length !== 0 || other.denominatorUnits.length !== 0);
- else
- t1 = true;
- if (t1)
- return true;
- try {
- this.greaterThan$1(other);
- return true;
- } catch (exception) {
- if (H.unwrapException(exception) instanceof E.SassScriptException0)
- return false;
- else
- throw exception;
- }
- },
- greaterThan$1: function(other) {
- if (other instanceof T.SassNumber0)
- return this._number1$_coerceUnits$2(other, T.number2__fuzzyGreaterThan$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
- },
- greaterThanOrEquals$1: function(other) {
- if (other instanceof T.SassNumber0)
- return this._number1$_coerceUnits$2(other, T.number2__fuzzyGreaterThanOrEquals$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
- },
- lessThan$1: function(other) {
- if (other instanceof T.SassNumber0)
- return this._number1$_coerceUnits$2(other, T.number2__fuzzyLessThan$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
- },
- lessThanOrEquals$1: function(other) {
- if (other instanceof T.SassNumber0)
- return this._number1$_coerceUnits$2(other, T.number2__fuzzyLessThanOrEquals$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
- },
- modulo$1: function(other) {
- if (other instanceof T.SassNumber0)
- return this._number1$_coerceNumber$2(other, new T.SassNumber_modulo_closure0());
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
- },
- plus$1: function(other) {
- if (other instanceof T.SassNumber0)
- return this._number1$_coerceNumber$2(other, new T.SassNumber_plus_closure0());
- if (!(other instanceof K.SassColor0))
- return this.super$Value$plus0(other);
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".'));
- },
- minus$1: function(other) {
- if (other instanceof T.SassNumber0)
- return this._number1$_coerceNumber$2(other, new T.SassNumber_minus_closure0());
- if (!(other instanceof K.SassColor0))
- return this.super$Value$minus0(other);
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".'));
- },
- times$1: function(other) {
- var _this = this;
- if (other instanceof T.SassNumber0)
- return _this._number1$_multiplyUnits$5(_this.value * other.value, _this.numeratorUnits, _this.denominatorUnits, other.numeratorUnits, other.denominatorUnits);
- throw H.wrapException(E.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " * " + H.S(other) + '".'));
- },
- dividedBy$1: function(other) {
- var _this = this;
- if (other instanceof T.SassNumber0)
- return _this._number1$_multiplyUnits$5(_this.value / other.value, _this.numeratorUnits, _this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
- return _this.super$Value$dividedBy0(other);
- },
- unaryPlus$0: function() {
- return this;
- },
- unaryMinus$0: function() {
- return T.SassNumber$withUnits0(-this.value, this.denominatorUnits, this.numeratorUnits);
- },
- _number1$_coerceNumber$2: function(other, operation) {
- var _this = this,
- result = _this._number1$_coerceUnits$2(other, operation),
- t1 = _this.numeratorUnits,
- t2 = t1.length === 0;
- t1 = !t2 || _this.denominatorUnits.length !== 0 ? t1 : other.numeratorUnits;
- return T.SassNumber$withUnits0(result, !t2 || _this.denominatorUnits.length !== 0 ? _this.denominatorUnits : other.denominatorUnits, t1);
- },
- _number1$_coerceUnits$1$2: function(other, operation) {
- var num1, num2, _this = this,
- t1 = _this.numeratorUnits;
- if (t1.length !== 0 || _this.denominatorUnits.length !== 0) {
- num1 = _this.value;
- num2 = other.valueInUnits$2(t1, _this.denominatorUnits);
- } else {
- num1 = _this.valueInUnits$2(other.numeratorUnits, other.denominatorUnits);
- num2 = other.value;
- }
- return operation.call$2(num1, num2);
- },
- _number1$_coerceUnits$2: function(other, operation) {
- return this._number1$_coerceUnits$1$2(other, operation, type$.dynamic);
- },
- _number1$_multiplyUnits$5: function(value, numerators1, denominators1, numerators2, denominators2) {
- var t1, newNumerators, mutableDenominators2, _i, numerator, mutableDenominators1, _this = this, _box_0 = {};
- _box_0.value = value;
- t1 = numerators1.length;
- if (t1 === 0) {
- if (denominators2.length === 0 && !_this._number1$_areAnyConvertible$2(denominators1, numerators2))
- return T.SassNumber$withUnits0(value, denominators1, numerators2);
- else if (denominators1.length === 0)
- return T.SassNumber$withUnits0(value, denominators2, numerators2);
- } else if (numerators2.length === 0)
- if (denominators2.length === 0)
- return T.SassNumber$withUnits0(value, denominators2, numerators1);
- else if (denominators1.length === 0 && !_this._number1$_areAnyConvertible$2(numerators1, denominators2))
- return T.SassNumber$withUnits0(value, denominators2, numerators1);
- newNumerators = H.setRuntimeTypeInfo([], type$.JSArray_String);
- mutableDenominators2 = H.setRuntimeTypeInfo(denominators2.slice(0), H._arrayInstanceType(denominators2)._eval$1("JSArray<1>"));
- for (_i = 0; _i < t1; ++_i) {
- numerator = numerators1[_i];
- B.removeFirstWhere0(mutableDenominators2, new T.SassNumber__multiplyUnits_closure3(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure4(newNumerators, numerator));
- }
- mutableDenominators1 = H.setRuntimeTypeInfo(denominators1.slice(0), H._arrayInstanceType(denominators1)._eval$1("JSArray<1>"));
- for (t1 = numerators2.length, _i = 0; _i < t1; ++_i) {
- numerator = numerators2[_i];
- B.removeFirstWhere0(mutableDenominators1, new T.SassNumber__multiplyUnits_closure5(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure6(newNumerators, numerator));
- }
- t1 = _box_0.value;
- C.JSArray_methods.addAll$1(mutableDenominators1, mutableDenominators2);
- return T.SassNumber$withUnits0(t1, mutableDenominators1, newNumerators);
- },
- _number1$_areAnyConvertible$2: function(units1, units2) {
- return C.JSArray_methods.any$1(units1, new T.SassNumber__areAnyConvertible_closure0(this, units2));
- },
- _number1$_conversionFactor$2: function(unit1, unit2) {
- var innerMap;
- if (unit1 == unit2)
- return 1;
- innerMap = $.$get$_conversions0().$index(0, unit1);
- if (innerMap == null)
- return null;
- return innerMap.$index(0, unit2);
- },
- _number1$_unitString$2: function(numerators, denominators) {
- var t1;
- if (numerators.length === 0) {
- t1 = denominators.length;
- if (t1 === 0)
- return "no units";
- if (t1 === 1)
- return J.$add$ansx(C.JSArray_methods.get$single(denominators), "^-1");
- return "(" + C.JSArray_methods.join$1(denominators, "*") + ")^-1";
- }
- if (denominators.length === 0)
- return C.JSArray_methods.join$1(numerators, "*");
- return C.JSArray_methods.join$1(numerators, "*") + "/" + C.JSArray_methods.join$1(denominators, "*");
- },
- $eq: function(_, other) {
- var t1, t2, t3, exception, _this = this;
- if (other == null)
- return false;
- if (other instanceof T.SassNumber0) {
- t1 = _this.numeratorUnits.length === 0;
- t2 = !t1 || _this.denominatorUnits.length !== 0;
- t3 = other;
- if (t2 !== (t3.numeratorUnits.length !== 0 || t3.denominatorUnits.length !== 0))
- return false;
- if (!(!t1 || _this.denominatorUnits.length !== 0))
- return Math.abs(_this.value - other.value) < $.$get$epsilon0();
- try {
- t1 = _this._number1$_coerceUnits$2(other, T.number2__fuzzyEquals$closure());
- return t1;
- } catch (exception) {
- if (H.unwrapException(exception) instanceof E.SassScriptException0)
- return false;
- else
- throw exception;
- }
- } else
- return false;
- },
- get$hashCode: function(_) {
- var _this = this;
- 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()));
- },
- _number1$_canonicalMultiplier$1: function(units) {
- return C.JSArray_methods.fold$2(units, 1, new T.SassNumber__canonicalMultiplier_closure0());
- },
- _number1$_exception$2: function(message, $name) {
- return new E.SassScriptException0($name == null ? message : "$" + $name + ": " + message);
- }
- };
- T.SassNumber_valueInUnits_closure3.prototype = {
- call$1: function(oldNumerator) {
- var t1,
- factor = this.$this._number1$_conversionFactor$2(this.newNumerator, oldNumerator);
- if (factor == null)
- return false;
- t1 = this._box_0;
- t1.value = t1.value * factor;
- return true;
- }
- };
- T.SassNumber_valueInUnits_closure4.prototype = {
- call$0: function() {
- var t1 = this.$this;
- 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) + "."));
- },
- $signature: 0
- };
- T.SassNumber_valueInUnits_closure5.prototype = {
- call$1: function(oldDenominator) {
- var t1,
- factor = this.$this._number1$_conversionFactor$2(this.newDenominator, oldDenominator);
- if (factor == null)
- return false;
- t1 = this._box_0;
- t1.value = t1.value / factor;
- return true;
- }
- };
- T.SassNumber_valueInUnits_closure6.prototype = {
- call$0: function() {
- var t1 = this.$this;
- 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) + "."));
- },
- $signature: 0
- };
- T.SassNumber_modulo_closure0.prototype = {
- call$2: function(num1, num2) {
- var t1;
- if (num2 > 0)
- return C.JSNumber_methods.$mod(num1, num2);
- if (num2 === 0)
- return 0 / 0;
- t1 = C.JSNumber_methods.$mod(num1, num2);
- return t1 === 0 ? 0 : t1 + num2;
- }
- };
- T.SassNumber_plus_closure0.prototype = {
- call$2: function(num1, num2) {
- return num1 + num2;
- }
- };
- T.SassNumber_minus_closure0.prototype = {
- call$2: function(num1, num2) {
- return num1 - num2;
- }
- };
- T.SassNumber__multiplyUnits_closure3.prototype = {
- call$1: function(denominator) {
- var factor = this.$this._number1$_conversionFactor$2(this.numerator, denominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- }
- };
- T.SassNumber__multiplyUnits_closure4.prototype = {
- call$0: function() {
- this.newNumerators.push(this.numerator);
- return null;
- },
- $signature: 0
- };
- T.SassNumber__multiplyUnits_closure5.prototype = {
- call$1: function(denominator) {
- var factor = this.$this._number1$_conversionFactor$2(this.numerator, denominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- }
- };
- T.SassNumber__multiplyUnits_closure6.prototype = {
- call$0: function() {
- this.newNumerators.push(this.numerator);
- return null;
- },
- $signature: 0
- };
- T.SassNumber__areAnyConvertible_closure0.prototype = {
- call$1: function(unit1) {
- var t1 = $.$get$_conversions0();
- if (!t1.containsKey$1(unit1))
- return C.JSArray_methods.contains$1(this.units2, unit1);
- return C.JSArray_methods.any$1(this.units2, t1.$index(0, unit1).get$containsKey());
- }
- };
- T.SassNumber__canonicalMultiplier_closure0.prototype = {
- call$2: function(multiplier, unit) {
- var t1,
- innerMap = $.$get$_conversions0().$index(0, unit);
- if (innerMap == null)
- t1 = multiplier;
- else {
- t1 = innerMap.get$values();
- t1 = multiplier / t1.get$first(t1);
- }
- return t1;
- }
- };
- U.SupportsOperation0.prototype = {
- toString$0: function(_) {
- var _this = this;
- return _this._operation0$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation0$_parenthesize$1(_this.right);
- },
- _operation0$_parenthesize$1: function(condition) {
- var t1;
- if (!(condition instanceof M.SupportsNegation0))
- t1 = condition instanceof U.SupportsOperation0 && condition.operator === this.operator;
- else
- t1 = true;
- return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
- },
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- M.ParentSelector0.prototype = {
- accept$1$1: function(visitor) {
- var t2,
- t1 = visitor._buffer;
- t1.writeCharCode$1(38);
- t2 = this.suffix;
- if (t2 != null)
- t1.write$1(0, t2);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1: function(compound) {
- return H.throwExpression(P.UnsupportedError$("& doesn't support unification."));
- }
- };
- M.ParentStatement0.prototype = {$isAstNode0: 1, $isStatement0: 1};
- M.ParentStatement_closure0.prototype = {
- call$1: function(child) {
- var t1;
- if (!(child instanceof Z.VariableDeclaration0))
- if (!(child instanceof M.FunctionRule0))
- if (!(child instanceof T.MixinRule0))
- t1 = child instanceof B.ImportRule0 && C.JSArray_methods.any$1(child.imports, new M.ParentStatement__closure0());
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- }
- };
- M.ParentStatement__closure0.prototype = {
- call$1: function($import) {
- return $import instanceof B.DynamicImport0;
- }
- };
- T.ParenthesizedExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitParenthesizedExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return J.toString$0$(this.expression);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- G.Parser1.prototype = {
- _parser$_parseIdentifier$0: function() {
- return this.wrapSpanFormatException$1(new G.Parser__parseIdentifier_closure0(this));
- },
- whitespace$0: function() {
- do
- this.whitespaceWithoutComments$0();
- while (this.scanComment$0());
- },
- whitespaceWithoutComments$0: function() {
- var t3,
- t1 = this.scanner,
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- spaces$0: function() {
- var t3,
- t1 = this.scanner,
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = t3 === 32 || t3 === 9;
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- scanComment$0: function() {
- var next,
- t1 = this.scanner;
- if (t1.peekChar$0() !== 47)
- return false;
- next = t1.peekChar$1(1);
- if (next === 47) {
- this.silentComment$0();
- return true;
- } else if (next === 42) {
- this.loudComment$0();
- return true;
- } else
- return false;
- },
- silentComment$0: function() {
- var t2, t3,
- t1 = this.scanner;
- t1.expect$1("//");
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- loudComment$0: function() {
- var next,
- t1 = this.scanner;
- t1.expect$1("/*");
- for (; true;) {
- if (t1.readChar$0() !== 42)
- continue;
- do
- next = t1.readChar$0();
- while (next === 42);
- if (next === 47)
- break;
- }
- },
- identifier$2$normalize$unit: function(normalize, unit) {
- var t2, first, _this = this,
- _s20_ = "Expected identifier.",
- text = new P.StringBuffer(""),
- t1 = _this.scanner;
- if (t1.scanChar$1(45)) {
- t2 = text._contents = H.Primitives_stringFromCharCode(45);
- if (t1.scanChar$1(45)) {
- text._contents = t2 + H.Primitives_stringFromCharCode(45);
- _this._parser$_identifierBody$3$normalize$unit(text, normalize, unit);
- t1 = text._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- } else
- t2 = "";
- first = t1.peekChar$0();
- if (first == null)
- t1.error$1(_s20_);
- else if (normalize && first === 95) {
- t1.readChar$0();
- text._contents = t2 + H.Primitives_stringFromCharCode(45);
- } else if (first === 95 || T.isAlphabetic1(first) || first >= 128)
- text._contents = t2 + H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (first === 92)
- text._contents = t2 + H.S(_this.escape$1$identifierStart(true));
- else
- t1.error$1(_s20_);
- _this._parser$_identifierBody$3$normalize$unit(text, normalize, unit);
- t1 = text._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- identifier$0: function() {
- return this.identifier$2$normalize$unit(false, false);
- },
- identifier$1$normalize: function(normalize) {
- return this.identifier$2$normalize$unit(normalize, false);
- },
- identifier$1$unit: function(unit) {
- return this.identifier$2$normalize$unit(false, unit);
- },
- _parser$_identifierBody$3$normalize$unit: function(text, normalize, unit) {
- var t1, next, second, t2;
- for (t1 = this.scanner; true;) {
- next = t1.peekChar$0();
- if (next == null)
- break;
- else if (unit && next === 45) {
- second = t1.peekChar$1(1);
- if (second != null)
- if (second !== 46)
- t2 = second >= 48 && second <= 57;
- else
- t2 = true;
- else
- t2 = false;
- if (t2)
- break;
- text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- } else if (normalize && next === 95) {
- t1.readChar$0();
- text._contents += H.Primitives_stringFromCharCode(45);
- } else {
- if (next !== 95) {
- if (!(next >= 97 && next <= 122))
- t2 = next >= 65 && next <= 90;
- else
- t2 = true;
- t2 = t2 || next >= 128;
- } else
- t2 = true;
- if (!t2) {
- t2 = next >= 48 && next <= 57;
- t2 = t2 || next === 45;
- } else
- t2 = true;
- if (t2)
- text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (next === 92)
- text._contents += H.S(this.escape$0());
- else
- break;
- }
- }
- },
- _parser$_identifierBody$1: function(text) {
- return this._parser$_identifierBody$3$normalize$unit(text, false, false);
- },
- string$0: function() {
- var t2, buffer, next,
- t1 = this.scanner,
- quote = t1.readChar$0();
- if (quote !== 39 && quote !== 34) {
- t2 = t1._string_scanner$_position;
- t1.error$2$position("Expected string.", t2 - 1);
- }
- buffer = new P.StringBuffer("");
- for (; true;) {
- next = t1.peekChar$0();
- if (next === quote) {
- t1.readChar$0();
- break;
- } else if (next == null || next === 10 || next === 13 || next === 12)
- t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
- else if (next === 92) {
- t2 = t1.peekChar$1(1);
- if (t2 === 10 || t2 === 13 || t2 === 12) {
- t1.readChar$0();
- t1.readChar$0();
- } else
- buffer._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
- } else
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- naturalNumber$0: function() {
- var number, t2,
- t1 = this.scanner,
- first = t1.readChar$0();
- if (!T.isDigit0(first))
- t1.error$2$position("Expected digit.", t1._string_scanner$_position - 1);
- number = first - 48;
- while (true) {
- t2 = t1.peekChar$0();
- if (!(t2 != null && t2 >= 48 && t2 <= 57))
- break;
- number = number * 10 + (t1.readChar$0() - 48);
- }
- return number;
- },
- declarationValue$1$allowEmpty: function(allowEmpty) {
- var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
- buffer = new P.StringBuffer(""),
- brackets = H.setRuntimeTypeInfo([], type$.JSArray_int);
- $label0$1:
- for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
- next = t1.peekChar$0();
- switch (next) {
- case 92:
- buffer._contents += H.S(_this.escape$1$identifierStart(true));
- wroteNewline = false;
- break;
- case 34:
- case 39:
- start = t1._string_scanner$_position;
- t2.call$0();
- end = t1._string_scanner$_position;
- buffer._contents += J.substring$2$s(t1.string, start, end);
- wroteNewline = false;
- break;
- case 47:
- if (t1.peekChar$1(1) === 42) {
- t3 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t3.call$0();
- end = t1._string_scanner$_position;
- buffer._contents += J.substring$2$s(t1.string, start, end);
- } else
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- case 32:
- case 9:
- if (!wroteNewline) {
- t3 = t1.peekChar$1(1);
- t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = true;
- if (t3)
- buffer._contents += H.Primitives_stringFromCharCode(32);
- t1.readChar$0();
- break;
- case 10:
- case 13:
- case 12:
- t3 = t1.peekChar$1(-1);
- if (!(t3 === 10 || t3 === 13 || t3 === 12))
- buffer._contents += "\n";
- t1.readChar$0();
- wroteNewline = true;
- break;
- case 40:
- case 123:
- case 91:
- buffer._contents += H.Primitives_stringFromCharCode(next);
- brackets.push(T.opposite0(t1.readChar$0()));
- wroteNewline = false;
- break;
- case 41:
- case 125:
- case 93:
- if (brackets.length === 0)
- break $label0$1;
- buffer._contents += H.Primitives_stringFromCharCode(next);
- t1.expectChar$1(brackets.pop());
- wroteNewline = false;
- break;
- case 59:
- if (brackets.length === 0)
- break $label0$1;
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 117:
- case 85:
- url = _this.tryUrl$0();
- if (url != null)
- buffer._contents += url;
- else
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- default:
- if (next == null)
- break $label0$1;
- if (_this.lookingAtIdentifier$0())
- buffer._contents += _this.identifier$0();
- else
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- }
- }
- if (brackets.length !== 0)
- t1.expectChar$1(C.JSArray_methods.get$last(brackets));
- if (!allowEmpty && buffer._contents.length === 0)
- t1.error$1("Expected token.");
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- declarationValue$0: function() {
- return this.declarationValue$1$allowEmpty(false);
- },
- tryUrl$0: function() {
- var buffer, next, t2, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (!_this.scanIdentifier$1("url"))
- return null;
- if (!t1.scanChar$1(40)) {
- t1.set$state(start);
- return null;
- }
- _this.whitespace$0();
- buffer = new P.StringBuffer("");
- buffer._contents = "url(";
- for (; true;) {
- next = t1.peekChar$0();
- if (next == null)
- break;
- else {
- if (next !== 37)
- if (next !== 38)
- if (next !== 35)
- t2 = next >= 42 && next <= 126 || next >= 128;
- else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (next === 92)
- buffer._contents += H.S(_this.escape$0());
- else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
- _this.whitespace$0();
- if (t1.peekChar$0() !== 41)
- break;
- } else if (next === 41) {
- t2 = buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- } else
- break;
- }
- }
- t1.set$state(start);
- return null;
- },
- variableName$0: function() {
- this.scanner.expectChar$1(36);
- return this.identifier$1$normalize(true);
- },
- escape$1$identifierStart: function(identifierStart) {
- var first, value, i, next,
- t1 = this.scanner;
- t1.expectChar$1(92);
- first = t1.peekChar$0();
- if (first == null)
- return "";
- else if (T.isNewline0(first)) {
- t1.error$1("Expected escape sequence.");
- value = 0;
- } else if (T.isHex0(first)) {
- for (value = 0, i = 0; i < 6; ++i) {
- next = t1.peekChar$0();
- if (next == null || !T.isHex0(next))
- break;
- value = value * 16 + T.asHex0(t1.readChar$0());
- }
- this.scanCharIf$1(T.character0__isWhitespace$closure());
- } else
- value = t1.readChar$0();
- if (identifierStart)
- t1 = value === 95 || T.isAlphabetic1(value) || value >= 128;
- else
- t1 = value === 95 || T.isAlphabetic1(value) || value >= 128 || T.isDigit0(value) || value === 45;
- if (t1)
- return H.Primitives_stringFromCharCode(value);
- else {
- if (value > 31)
- if (value !== 127)
- t1 = identifierStart && T.isDigit0(value);
- else
- t1 = true;
- else
- t1 = true;
- if (t1) {
- t1 = H.Primitives_stringFromCharCode(92);
- if (value > 15)
- t1 += H.Primitives_stringFromCharCode(T.hexCharFor0(C.JSInt_methods._shrOtherPositive$1(value, 4)));
- t1 = t1 + H.Primitives_stringFromCharCode(T.hexCharFor0(value & 15)) + H.Primitives_stringFromCharCode(32);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else
- return P.String_String$fromCharCodes(H.setRuntimeTypeInfo([92, value], type$.JSArray_int), 0, null);
- }
- },
- escape$0: function() {
- return this.escape$1$identifierStart(false);
- },
- escapeCharacter$0: function() {
- var first, value, i, next, t2,
- t1 = this.scanner;
- t1.expectChar$1(92);
- first = t1.peekChar$0();
- if (first == null)
- return 65533;
- else if (T.isNewline0(first))
- t1.error$1("Expected escape sequence.");
- else if (T.isHex0(first)) {
- for (value = 0, i = 0; i < 6; ++i) {
- next = t1.peekChar$0();
- if (next == null || !T.isHex0(next))
- break;
- value = (value << 4 >>> 0) + T.asHex0(t1.readChar$0());
- }
- t2 = t1.peekChar$0();
- if (t2 === 32 || t2 === 9 || T.isNewline0(t2))
- t1.readChar$0();
- if (value !== 0)
- t1 = value >= 55296 && value <= 57343 || value >= 1114111;
- else
- t1 = true;
- if (t1)
- return 65533;
- else
- return value;
- } else
- return t1.readChar$0();
- },
- scanCharIf$1: function(condition) {
- var t1 = this.scanner;
- if (!condition.call$1(t1.peekChar$0()))
- return false;
- t1.readChar$0();
- return true;
- },
- scanIdentChar$2$caseSensitive: function(char, caseSensitive) {
- var t3,
- t1 = new G.Parser_scanIdentChar_matches0(caseSensitive, char),
- t2 = this.scanner,
- next = t2.peekChar$0();
- if (t1.call$1(next)) {
- t2.readChar$0();
- return true;
- } else if (next === 92) {
- t3 = t2._string_scanner$_position;
- if (t1.call$1(this.escapeCharacter$0()))
- return true;
- t2.set$state(new S._SpanScannerState(t2, t3));
- }
- return false;
- },
- scanIdentChar$1: function(char) {
- return this.scanIdentChar$2$caseSensitive(char, false);
- },
- expectIdentChar$1: function(letter) {
- var t1;
- if (this.scanIdentChar$2$caseSensitive(letter, false))
- return;
- t1 = this.scanner;
- t1.error$2$position('Expected "' + H.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
- },
- lookingAtNumber$0: function() {
- var second, third,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first == null)
- return false;
- if (T.isDigit0(first))
- return true;
- if (first === 46) {
- second = t1.peekChar$1(1);
- return second != null && T.isDigit0(second);
- } else if (first === 43 || first === 45) {
- second = t1.peekChar$1(1);
- if (second == null)
- return false;
- if (T.isDigit0(second))
- return true;
- if (second !== 46)
- return false;
- third = t1.peekChar$1(2);
- return third != null && T.isDigit0(third);
- } else
- return false;
- },
- lookingAtIdentifier$1: function($forward) {
- var t1, first, second;
- if ($forward == null)
- $forward = 0;
- t1 = this.scanner;
- first = t1.peekChar$1($forward);
- if (first == null)
- return false;
- if (first === 95 || T.isAlphabetic1(first) || first >= 128 || first === 92)
- return true;
- if (first !== 45)
- return false;
- second = t1.peekChar$1($forward + 1);
- if (second == null)
- return false;
- return second === 95 || T.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
- },
- lookingAtIdentifier$0: function() {
- return this.lookingAtIdentifier$1(null);
- },
- lookingAtIdentifierBody$0: function() {
- var t1,
- next = this.scanner.peekChar$0();
- if (next != null)
- t1 = next === 95 || T.isAlphabetic1(next) || next >= 128 || T.isDigit0(next) || next === 45 || next === 92;
- else
- t1 = false;
- return t1;
- },
- scanIdentifier$2$caseSensitive: function(text, caseSensitive) {
- var t1, start, t2, _this = this;
- if (!_this.lookingAtIdentifier$0())
- return false;
- t1 = _this.scanner;
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- if (_this.scanIdentChar$2$caseSensitive(t2.__internal$_current, caseSensitive))
- continue;
- if (start._scanner !== t1)
- H.throwExpression(P.ArgumentError$("The given LineScannerState was not returned by this LineScanner."));
- t2 = start.position;
- if (t2 < 0 || t2 > t1.string.length)
- H.throwExpression(P.ArgumentError$("Invalid position " + t2));
- t1._string_scanner$_position = t2;
- t1._lastMatch = null;
- return false;
- }
- if (!_this.lookingAtIdentifierBody$0())
- return true;
- t1.set$state(start);
- return false;
- },
- scanIdentifier$1: function(text) {
- return this.scanIdentifier$2$caseSensitive(text, false);
- },
- expectIdentifier$2$name: function(text, $name) {
- var t1, start, t2;
- if ($name == null)
- $name = '"' + text + '"';
- t1 = this.scanner;
- start = t1._string_scanner$_position;
- for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
- if (this.scanIdentChar$2$caseSensitive(t2.__internal$_current, false))
- continue;
- t1.error$2$position("Expected " + $name + ".", start);
- }
- if (!this.lookingAtIdentifierBody$0())
- return;
- t1.error$2$position("Expected " + $name, start);
- },
- expectIdentifier$1: function(text) {
- return this.expectIdentifier$2$name(text, null);
- },
- rawText$1: function(consumer) {
- var t1 = this.scanner,
- start = t1._string_scanner$_position;
- consumer.call$0();
- return t1.substring$1(0, start);
- },
- error$2: function(message, span) {
- return H.throwExpression(E.StringScannerException$(message, span, this.scanner.string));
- },
- withErrorMessage$1$2: function(message, callback) {
- var error, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t1)) {
- error = t1;
- throw H.wrapException(G.SourceSpanFormatException$(message, error.get$span(), error.get$source()));
- } else
- throw exception;
- }
- },
- withErrorMessage$2: function(message, callback) {
- return this.withErrorMessage$1$2(message, callback, type$.dynamic);
- },
- wrapSpanFormatException$1$1: function(callback) {
- var error, span, startPosition, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t1)) {
- error = t1;
- span = error.get$span();
- if (B.startsWithIgnoreCase0(error._span_exception$_message, "expected")) {
- t1 = span;
- t1 = t1._end - t1._file$_start === 0;
- } else
- t1 = false;
- if (t1) {
- t1 = span;
- startPosition = this._parser$_firstNewlineBefore$1(Y.FileLocation$_(t1.file, t1._file$_start).offset);
- t1 = span;
- if (!J.$eq$(startPosition, Y.FileLocation$_(t1.file, t1._file$_start).offset))
- span = span.file.span$2(startPosition, startPosition);
- }
- throw H.wrapException(E.SassFormatException$0(error._span_exception$_message, span));
- } else
- throw exception;
- }
- },
- wrapSpanFormatException$1: function(callback) {
- return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
- },
- _parser$_firstNewlineBefore$1: function(position) {
- var t1, t2, lastNewline, codeUnit,
- index = position - 1;
- for (t1 = this.scanner.string, t2 = J.getInterceptor$s(t1), lastNewline = null; index >= 0;) {
- codeUnit = t2.codeUnitAt$1(t1, index);
- if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
- return lastNewline == null ? position : lastNewline;
- if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
- lastNewline = index;
- --index;
- }
- return position;
- }
- };
- G.Parser__parseIdentifier_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this,
- result = t1.identifier$0();
- t1.scanner.expectDone$0();
- return result;
- },
- $signature: 10
- };
- G.Parser_scanIdentChar_matches0.prototype = {
- call$1: function(actual) {
- var t1 = this.char;
- return this.caseSensitive ? actual == t1 : T.characterEqualsIgnoreCase0(t1, actual);
- },
- $signature: 16
- };
- N.PlaceholderSelector0.prototype = {
- get$isInvisible: function() {
- return true;
- },
- accept$1$1: function(visitor) {
- var t1 = visitor._buffer;
- t1.writeCharCode$1(37);
- t1.write$1(0, this.name);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1: function(suffix) {
- return new N.PlaceholderSelector0(this.name + suffix);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof N.PlaceholderSelector0 && other.name === this.name;
- },
- get$hashCode: function(_) {
- return C.JSString_methods.get$hashCode(this.name);
- }
- };
- L.PlainCssCallable0.prototype = {
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof L.PlainCssCallable0 && this.name == other.name;
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.name);
- },
- $isAsyncCallable0: 1,
- $isCallable0: 1,
- get$name: function() {
- return this.name;
- }
- };
- F.PrefixedMapView0.prototype = {
- get$keys: function() {
- return new F._PrefixedKeys0(this);
- },
- get$length: function(_) {
- var t1 = this._prefixed_map_view0$_map;
- return t1.get$length(t1);
- },
- get$isEmpty: function(_) {
- var t1 = this._prefixed_map_view0$_map;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty: function(_) {
- var t1 = this._prefixed_map_view0$_map;
- return t1.get$isNotEmpty(t1);
- },
- $index: function(_, key) {
- 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;
- },
- containsKey$1: function(key) {
- 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));
- }
- };
- F._PrefixedKeys0.prototype = {
- get$length: function(_) {
- var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
- return t1.get$length(t1);
- },
- get$iterator: function(_) {
- 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$.String);
- return t1.get$iterator(t1);
- },
- contains$1: function(_, key) {
- return this._prefixed_map_view0$_view.containsKey$1(key);
- }
- };
- F._PrefixedKeys_iterator_closure0.prototype = {
- call$1: function(key) {
- return this.$this._prefixed_map_view0$_view._prefixed_map_view0$_prefix + H.S(key);
- }
- };
- D.PseudoSelector0.prototype = {
- get$minSpecificity: function() {
- if (this._pseudo0$_minSpecificity == null)
- this._pseudo0$_computeSpecificity$0();
- return this._pseudo0$_minSpecificity;
- },
- get$maxSpecificity: function() {
- if (this._pseudo0$_maxSpecificity == null)
- this._pseudo0$_computeSpecificity$0();
- return this._pseudo0$_maxSpecificity;
- },
- get$isInvisible: function() {
- var t1 = this.selector;
- if (t1 == null)
- return false;
- return this.name !== "not" && t1.get$isInvisible();
- },
- addSuffix$1: function(suffix) {
- var _this = this;
- if (_this.argument != null || _this.selector != null)
- _this.super$SimpleSelector$addSuffix0(suffix);
- return D.PseudoSelector$0(_this.name + suffix, null, !_this.isClass, null);
- },
- unify$1: function(compound) {
- var result, t1, t2, addedThis, _i, simple, _this = this;
- if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0)
- return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector_2));
- if (C.JSArray_methods.contains$1(compound, _this))
- return compound;
- result = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
- for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
- simple = compound[_i];
- if (simple instanceof D.PseudoSelector0 && !simple.isClass) {
- if (t2)
- return null;
- result.push(_this);
- addedThis = true;
- }
- result.push(simple);
- }
- if (!addedThis)
- result.push(_this);
- return result;
- },
- _pseudo0$_computeSpecificity$0: function() {
- var t1, _i, t2, complex, t3, t4, _this = this;
- if (!_this.isClass) {
- _this._pseudo0$_maxSpecificity = _this._pseudo0$_minSpecificity = 1;
- return;
- }
- t1 = _this.selector;
- if (t1 == null) {
- _this._pseudo0$_minSpecificity = M.SimpleSelector0.prototype.get$minSpecificity.call(_this);
- _this._pseudo0$_maxSpecificity = M.SimpleSelector0.prototype.get$maxSpecificity.call(_this);
- return;
- }
- if (_this.name === "not") {
- _i = _this._pseudo0$_maxSpecificity = _this._pseudo0$_minSpecificity = 0;
- for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
- complex = t1[_i];
- t3 = _this._pseudo0$_minSpecificity;
- if (complex._complex0$_minSpecificity == null)
- complex._complex0$_computeSpecificity$0();
- t4 = complex._complex0$_minSpecificity;
- _this._pseudo0$_minSpecificity = Math.max(H.checkNum(t3), H.checkNum(t4));
- t4 = _this._pseudo0$_maxSpecificity;
- if (complex._complex0$_maxSpecificity == null)
- complex._complex0$_computeSpecificity$0();
- t3 = complex._complex0$_maxSpecificity;
- _this._pseudo0$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
- }
- } else {
- _this._pseudo0$_minSpecificity = H._asIntNullable(Math.pow(M.SimpleSelector0.prototype.get$minSpecificity.call(_this), 3));
- _i = _this._pseudo0$_maxSpecificity = 0;
- for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
- complex = t1[_i];
- t3 = _this._pseudo0$_minSpecificity;
- if (complex._complex0$_minSpecificity == null)
- complex._complex0$_computeSpecificity$0();
- t4 = complex._complex0$_minSpecificity;
- _this._pseudo0$_minSpecificity = Math.min(H.checkNum(t3), H.checkNum(t4));
- t4 = _this._pseudo0$_maxSpecificity;
- if (complex._complex0$_maxSpecificity == null)
- complex._complex0$_computeSpecificity$0();
- t3 = complex._complex0$_maxSpecificity;
- _this._pseudo0$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
- }
- }
- },
- accept$1$1: function(visitor) {
- return visitor.visitPseudoSelector$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof D.PseudoSelector0 && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
- },
- get$hashCode: function(_) {
- var _this = this;
- 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;
- }
- };
- U.PublicMemberMapView0.prototype = {
- get$keys: function() {
- return J.where$1$ax(this._public_member_map_view$_inner.get$keys(), B.utils0__isPublic$closure());
- },
- containsKey$1: function(key) {
- return typeof key == "string" && B.isPublic0(key) && this._public_member_map_view$_inner.containsKey$1(key);
- },
- $index: function(_, key) {
- if (typeof key == "string" && B.isPublic0(key))
- return this._public_member_map_view$_inner.$index(0, key);
- return null;
- }
- };
- D.QualifiedName0.prototype = {
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof D.QualifiedName0 && other.name === this.name && other.namespace == this.namespace;
- },
- get$hashCode: function(_) {
- return C.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
- },
- toString$0: function(_) {
- var t1 = this.namespace,
- t2 = this.name;
- return t1 == null ? t2 : t1 + "|" + t2;
- }
- };
- Z.RenderContext.prototype = {};
- L.RenderContextOptions.prototype = {};
- R.RenderOptions.prototype = {};
- U.RenderResult.prototype = {};
- U.RenderResultStats.prototype = {};
- E.ImporterResult0.prototype = {
- get$sourceMapUrl: function() {
- var t1 = this._result$_sourceMapUrl;
- return t1 == null ? P.Uri_Uri$dataFromString(this.contents, C.C_Utf8Codec, null) : t1;
- }
- };
- B.ReturnRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitReturnRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@return " + H.S(this.expression) + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- U.main_printError.prototype = {
- call$2: function(error, stackTrace) {
- var t1 = this._box_0;
- if (t1.printedError)
- $.$get$stderr().writeln$0();
- t1.printedError = true;
- t1 = $.$get$stderr();
- t1.writeln$1(error);
- if (stackTrace != null) {
- t1.writeln$0();
- t1.writeln$1(C.JSString_methods.trimRight$0(Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
- }
- }
- };
- U.main_closure.prototype = {
- call$0: function() {
- var t1, exception;
- try {
- t1 = this.destination;
- if (t1 != null && !this._box_0.options.get$emitErrorCss())
- B.deleteFile(t1);
- } catch (exception) {
- if (!(H.unwrapException(exception) instanceof B.FileSystemException))
- throw exception;
- }
- },
- $signature: 0
- };
- U.SassParser0.prototype = {
- get$currentIndentation: function() {
- return this._sass0$_currentIndentation;
- },
- get$indented: function() {
- return true;
- },
- styleRuleSelector$0: function() {
- var t4,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- buffer = new Z.InterpolationBuffer0(t3, []);
- do {
- buffer.addInterpolation$1(this.almostAnyValue$0());
- t4 = t3._contents += H.Primitives_stringFromCharCode(10);
- } while (C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(T.character0__isNewline$closure()));
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- expectStatementSeparator$1: function($name) {
- var _this = this;
- if (!_this.atEndOfStatement$0())
- _this._sass0$_expectNewline$0();
- if (_this._sass0$_peekIndentation$0() <= _this._sass0$_currentIndentation)
- return;
- _this.scanner.error$2$position("Nothing may be indented " + ($name == null ? "here" : "beneath a " + $name) + ".", _this._sass0$_nextIndentationEnd.position);
- },
- expectStatementSeparator$0: function() {
- return this.expectStatementSeparator$1(null);
- },
- atEndOfStatement$0: function() {
- var next = this.scanner.peekChar$0();
- return next == null || T.isNewline0(next);
- },
- lookingAtChildren$0: function() {
- return this.atEndOfStatement$0() && this._sass0$_peekIndentation$0() > this._sass0$_currentIndentation;
- },
- importArgument$0: function() {
- var url, span, innerError, start, next, t2, exception, _this = this,
- t1 = _this.scanner;
- switch (t1.peekChar$0()) {
- case 117:
- case 85:
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this.scanIdentifier$1("url"))
- if (t1.scanChar$1(40)) {
- t1.set$state(start);
- return _this.super$StylesheetParser$importArgument0();
- } else
- t1.set$state(start);
- break;
- case 39:
- case 34:
- return _this.super$StylesheetParser$importArgument0();
- }
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- next = t1.peekChar$0();
- while (true) {
- if (next != null)
- if (next !== 44)
- if (next !== 59)
- t2 = !(next === 10 || next === 13 || next === 12);
- else
- t2 = false;
- else
- t2 = false;
- else
- t2 = false;
- if (!t2)
- break;
- t1.readChar$0();
- next = t1.peekChar$0();
- }
- url = t1.substring$1(0, start.position);
- span = t1.spanFrom$1(start);
- if (_this.isPlainImportUrl$1(url))
- return new Q.StaticImport0(X.Interpolation$0([N.serializeValue(new D.SassString0(url, true), true, true)], span), null, null, span);
- else
- try {
- t1 = _this.parseImportUrl$1(url);
- return new B.DynamicImport0(t1, span);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- innerError = t1;
- _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), span);
- } else
- throw exception;
- }
- },
- scanElse$1: function(ifIndentation) {
- var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
- if (_this._sass0$_peekIndentation$0() != ifIndentation)
- return false;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- startIndentation = _this._sass0$_currentIndentation;
- startNextIndentation = _this._sass0$_nextIndentation;
- startNextIndentationEnd = _this._sass0$_nextIndentationEnd;
- _this._sass0$_readIndentation$0();
- if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
- return true;
- t1.set$state(new S._SpanScannerState(t1, t2));
- _this._sass0$_currentIndentation = startIndentation;
- _this._sass0$_nextIndentation = startNextIndentation;
- _this._sass0$_nextIndentationEnd = startNextIndentationEnd;
- return false;
- },
- children$1: function(child) {
- var children = H.setRuntimeTypeInfo([], type$.JSArray_Statement_2);
- this._sass0$_whileIndentedLower$1(new U.SassParser_children_closure0(this, children, child));
- return children;
- },
- statements$1: function(statement) {
- var statements, t2, child,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first === 9 || first === 32)
- t1.error$3$length$position("Indenting at the beginning of the document is illegal.", t1._string_scanner$_position, 0);
- statements = H.setRuntimeTypeInfo([], type$.JSArray_Statement_2);
- for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
- child = this._sass0$_child$1(statement);
- if (child != null)
- statements.push(child);
- this._sass0$_readIndentation$0();
- }
- return statements;
- },
- _sass0$_child$1: function(child) {
- var _this = this,
- t1 = _this.scanner;
- switch (t1.peekChar$0()) {
- case 13:
- case 10:
- case 12:
- return null;
- case 36:
- return _this.variableDeclarationWithoutNamespace$0();
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- return _this._sass0$_silentComment$0();
- case 42:
- return _this._sass0$_loudComment$0();
- default:
- return child.call$0();
- }
- default:
- return child.call$0();
- }
- },
- _sass0$_silentComment$0: function() {
- var buffer, parentIndentation, t3, commentPrefix, i, t4, i0, t5, t6, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("//");
- buffer = new P.StringBuffer("");
- parentIndentation = _this._sass0$_currentIndentation;
- t3 = t1.string;
- $label0$0:
- do {
- commentPrefix = t1.scanChar$1(47) ? "///" : "//";
- for (i = commentPrefix.length; true;) {
- t4 = buffer._contents += commentPrefix;
- for (i0 = i; i0 < _this._sass0$_currentIndentation - parentIndentation; ++i0) {
- t4 += H.Primitives_stringFromCharCode(32);
- buffer._contents = t4;
- }
- t5 = t3.length;
- while (true) {
- if (t1._string_scanner$_position !== t5) {
- t6 = t1.peekChar$0();
- t6 = !(t6 === 10 || t6 === 13 || t6 === 12);
- } else
- t6 = false;
- if (!t6)
- break;
- t4 += H.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents = t4;
- }
- buffer._contents = t4 + "\n";
- if (_this._sass0$_peekIndentation$0() < parentIndentation)
- break $label0$0;
- if (_this._sass0$_peekIndentation$0() === parentIndentation) {
- if (t1.peekChar$1(1 + parentIndentation) === 47 && t1.peekChar$1(2 + parentIndentation) === 47)
- _this._sass0$_readIndentation$0();
- break;
- }
- _this._sass0$_readIndentation$0();
- }
- } while (t1.scan$1("//"));
- t3 = buffer._contents;
- return _this.lastSilentComment = new B.SilentComment0(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _sass0$_loudComment$0: function() {
- var t3, t4, buffer, parentIndentation, t5, first, beginningOfComment, t6, end, i, t7, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("/*");
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer0(t3, t4);
- t3._contents = "/*";
- parentIndentation = _this._sass0$_currentIndentation;
- for (t5 = t1.string, first = true; true; first = false) {
- if (first) {
- beginningOfComment = t1._string_scanner$_position;
- _this.spaces$0();
- t6 = t1.peekChar$0();
- if (t6 === 10 || t6 === 13 || t6 === 12) {
- _this._sass0$_readIndentation$0();
- t3._contents += H.Primitives_stringFromCharCode(32);
- } else {
- end = t1._string_scanner$_position;
- t3._contents += J.substring$2$s(t5, beginningOfComment, end);
- }
- } else {
- t6 = t3._contents += "\n";
- t3._contents = t6 + " * ";
- }
- for (i = 3; i < _this._sass0$_currentIndentation - parentIndentation; ++i)
- t3._contents += H.Primitives_stringFromCharCode(32);
- $label0$1:
- for (t6 = t5.length; t1._string_scanner$_position !== t6;)
- switch (t1.peekChar$0()) {
- case 10:
- case 13:
- case 12:
- break $label0$1;
- case 35:
- if (t1.peekChar$1(1) === 123) {
- t7 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t7);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- default:
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- }
- if (_this._sass0$_peekIndentation$0() <= parentIndentation)
- break;
- for (; _this._sass0$_lookingAtDoubleNewline$0();) {
- _this._sass0$_expectNewline$0();
- t6 = t3._contents += "\n";
- t3._contents = t6 + " *";
- }
- _this._sass0$_readIndentation$0();
- }
- t4 = t3._contents;
- if (!C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
- t3._contents += " */";
- return new L.LoudComment0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))));
- },
- whitespaceWithoutComments$0: function() {
- var t1, t2, next;
- for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
- next = t1.peekChar$0();
- if (next !== 9 && next !== 32)
- break;
- t1.readChar$0();
- }
- },
- loudComment$0: function() {
- var next,
- t1 = this.scanner;
- t1.expect$1("/*");
- for (; true;) {
- next = t1.readChar$0();
- if (next === 10 || next === 13 || next === 12)
- t1.error$1("expected */.");
- if (next !== 42)
- continue;
- do
- next = t1.readChar$0();
- while (next === 42);
- if (next === 47)
- break;
- }
- },
- _sass0$_expectNewline$0: function() {
- var t1 = this.scanner;
- switch (t1.peekChar$0()) {
- case 59:
- t1.error$1("semicolons aren't allowed in the indented syntax.");
- break;
- case 13:
- t1.readChar$0();
- if (t1.peekChar$0() === 10)
- t1.readChar$0();
- return;
- case 10:
- case 12:
- t1.readChar$0();
- return;
- default:
- t1.error$1("expected newline.");
- }
- },
- _sass0$_lookingAtDoubleNewline$0: function() {
- var nextChar,
- t1 = this.scanner;
- switch (t1.peekChar$0()) {
- case 13:
- nextChar = t1.peekChar$1(1);
- if (nextChar === 10)
- return T.isNewline0(t1.peekChar$1(2));
- return nextChar === 13 || nextChar === 12;
- case 10:
- case 12:
- return T.isNewline0(t1.peekChar$1(1));
- default:
- return false;
- }
- },
- _sass0$_whileIndentedLower$1: function(body) {
- var t1, t2, childIndentation, indentation, t3, t4, t5, _this = this,
- parentIndentation = _this._sass0$_currentIndentation;
- for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._sass0$_peekIndentation$0() > parentIndentation;) {
- indentation = _this._sass0$_readIndentation$0();
- if (childIndentation == null)
- childIndentation = indentation;
- if (childIndentation != indentation) {
- t3 = "Inconsistent indentation, expected " + H.S(childIndentation) + " spaces.";
- t4 = t1._string_scanner$_position;
- t5 = t2.getColumn$1(t4);
- t1.error$3$length$position(t3, t2.getColumn$1(t1._string_scanner$_position), t4 - t5);
- }
- body.call$0();
- }
- },
- _sass0$_readIndentation$0: function() {
- var _this = this;
- if (_this._sass0$_nextIndentation == null)
- _this._sass0$_peekIndentation$0();
- _this._sass0$_currentIndentation = _this._sass0$_nextIndentation;
- _this.scanner.set$state(_this._sass0$_nextIndentationEnd);
- _this._sass0$_nextIndentationEnd = _this._sass0$_nextIndentation = null;
- return _this._sass0$_currentIndentation;
- },
- _sass0$_peekIndentation$0: function() {
- var t2, t3, start, containsTab, containsSpace, next, t4, _this = this,
- t1 = _this._sass0$_nextIndentation;
- if (t1 != null)
- return t1;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- t3 = t1.string.length;
- if (t2 === t3) {
- _this._sass0$_nextIndentation = 0;
- _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t2);
- return 0;
- }
- start = new S._SpanScannerState(t1, t2);
- if (!_this.scanCharIf$1(T.character0__isNewline$closure()))
- t1.error$2$position("Expected newline.", t1._string_scanner$_position);
- do {
- _this._sass0$_nextIndentation = 0;
- for (containsTab = false, containsSpace = false; true;) {
- next = t1.peekChar$0();
- if (next === 32)
- containsSpace = true;
- else {
- if (next !== 9)
- break;
- containsTab = true;
- }
- _this._sass0$_nextIndentation = _this._sass0$_nextIndentation + 1;
- t1.readChar$0();
- }
- t2 = t1._string_scanner$_position;
- if (t2 === t3) {
- _this._sass0$_nextIndentation = 0;
- _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t2);
- t1.set$state(start);
- return 0;
- }
- } while (_this.scanCharIf$1(T.character0__isNewline$closure()));
- if (containsTab) {
- if (containsSpace) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position("Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- } else if (_this._sass0$_spaces === true) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position("Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- }
- } else if (containsSpace && _this._sass0$_spaces === false) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position("Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- }
- if (_this._sass0$_nextIndentation > 0)
- if (_this._sass0$_spaces == null)
- _this._sass0$_spaces = containsSpace;
- _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.set$state(start);
- return _this._sass0$_nextIndentation;
- }
- };
- U.SassParser_children_closure0.prototype = {
- call$0: function() {
- this.children.push(this.$this._sass0$_child$1(this.child));
- },
- $signature: 0
- };
- R._Exports.prototype = {};
- R._wrapMain_closure.prototype = {
- call$1: function(_) {
- return this.main.call$0();
- },
- $signature: 139
- };
- R._wrapMain_closure0.prototype = {
- call$1: function(args) {
- return this.main.call$1(P.List_List$from(type$.List_Object._as(args), true, type$.String));
- },
- $signature: 28
- };
- L.ScssParser0.prototype = {
- get$indented: function() {
- return false;
- },
- get$currentIndentation: function() {
- return null;
- },
- styleRuleSelector$0: function() {
- return this.almostAnyValue$0();
- },
- expectStatementSeparator$1: function($name) {
- var t1, next;
- this.whitespaceWithoutComments$0();
- t1 = this.scanner;
- if (t1._string_scanner$_position === t1.string.length)
- return;
- next = t1.peekChar$0();
- if (next === 59 || next === 125)
- return;
- t1.expectChar$1(59);
- },
- expectStatementSeparator$0: function() {
- return this.expectStatementSeparator$1(null);
- },
- atEndOfStatement$0: function() {
- var next = this.scanner.peekChar$0();
- return next == null || next === 59 || next === 125 || next === 123;
- },
- lookingAtChildren$0: function() {
- return this.scanner.peekChar$0() === 123;
- },
- scanElse$1: function(_) {
- var t3, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- _this.whitespace$0();
- t3 = t1._string_scanner$_position;
- if (t1.scanChar$1(64)) {
- if (_this.scanIdentifier$2$caseSensitive("else", true))
- return true;
- if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
- _this.logger.warn$3$deprecation$span('@elseif is deprecated and will not be supported in future Sass versions.\nUse "@else if" instead.', true, t1.spanFrom$1(new S._SpanScannerState(t1, t3)));
- t1.set$position(t1._string_scanner$_position - 2);
- return true;
- }
- }
- t1.set$state(new S._SpanScannerState(t1, t2));
- return false;
- },
- children$1: function(child) {
- var children, _this = this,
- t1 = _this.scanner;
- t1.expectChar$1(123);
- _this.whitespaceWithoutComments$0();
- children = H.setRuntimeTypeInfo([], type$.JSArray_Statement_2);
- for (; true;)
- switch (t1.peekChar$0()) {
- case 36:
- children.push(_this.variableDeclarationWithoutNamespace$0());
- break;
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- children.push(_this._scss0$_silentComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- case 42:
- children.push(_this._scss0$_loudComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- default:
- children.push(child.call$0());
- break;
- }
- break;
- case 59:
- t1.readChar$0();
- _this.whitespaceWithoutComments$0();
- break;
- case 125:
- t1.expectChar$1(125);
- return children;
- default:
- children.push(child.call$0());
- break;
- }
- },
- statements$1: function(statement) {
- var t1, t2, child, _this = this,
- statements = H.setRuntimeTypeInfo([], type$.JSArray_Statement_2);
- _this.whitespaceWithoutComments$0();
- for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
- switch (t1.peekChar$0()) {
- case 36:
- statements.push(_this.variableDeclarationWithoutNamespace$0());
- break;
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- statements.push(_this._scss0$_silentComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- case 42:
- statements.push(_this._scss0$_loudComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- default:
- child = statement.call$0();
- if (child != null)
- statements.push(child);
- break;
- }
- break;
- case 59:
- t1.readChar$0();
- _this.whitespaceWithoutComments$0();
- break;
- default:
- child = statement.call$0();
- if (child != null)
- statements.push(child);
- break;
- }
- return statements;
- },
- _scss0$_silentComment$0: function() {
- var t2, t3, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expect$1("//");
- t2 = t1.string.length;
- do {
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.readChar$0();
- t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = false;
- if (!t3)
- break;
- }
- if (t1._string_scanner$_position === t2)
- break;
- _this.whitespaceWithoutComments$0();
- } while (t1.scan$1("//"));
- if (_this.get$plainCss())
- _this.error$2("Silent comments aren't allowed in plain CSS.", t1.spanFrom$1(start));
- return _this.lastSilentComment = new B.SilentComment0(t1.substring$1(0, start.position), t1.spanFrom$1(start));
- },
- _scss0$_loudComment$0: function() {
- var t3, t4, buffer, t5, endPosition,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("/*");
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer0(t3, t4);
- t3._contents = "/*";
- for (; true;)
- switch (t1.peekChar$0()) {
- case 35:
- if (t1.peekChar$1(1) === 123) {
- t5 = this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 42:
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- if (t1.peekChar$0() !== 47)
- break;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- endPosition = t1._string_scanner$_position;
- return new L.LoudComment0(buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, new S._SpanScannerState(t1, t2).position, endPosition)));
- case 13:
- t1.readChar$0();
- if (t1.peekChar$0() !== 10)
- t3._contents += H.Primitives_stringFromCharCode(10);
- break;
- case 12:
- t1.readChar$0();
- t3._contents += H.Primitives_stringFromCharCode(10);
- break;
- default:
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- }
- }
- };
- T.Selector0.prototype = {
- get$isInvisible: function() {
- return false;
- },
- toString$0: function(_) {
- var visitor = N._SerializeVisitor$(null, true, null, true, false, null, true);
- this.accept$1(visitor);
- return visitor._buffer.toString$0(0);
- }
- };
- T.SelectorExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitSelectorExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "&";
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- T.closure121.prototype = {
- call$1: function($arguments) {
- var selectors = J.$index$asx($arguments, 0).get$asList();
- if (selectors.length === 0)
- throw H.wrapException(E.SassScriptException$0("$selectors: At least one selector must be passed."));
- return new H.MappedListIterable(selectors, new T._closure16(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new T._closure17()).get$asSassList();
- },
- $signature: 17
- };
- T._closure16.prototype = {
- call$1: function(selector) {
- return selector.assertSelector$1$allowParent(true);
- }
- };
- T._closure17.prototype = {
- call$2: function($parent, child) {
- return child.resolveParentSelectors$1($parent);
- }
- };
- T.closure120.prototype = {
- call$1: function($arguments) {
- var selectors = J.$index$asx($arguments, 0).get$asList();
- if (selectors.length === 0)
- throw H.wrapException(E.SassScriptException$0("$selectors: At least one selector must be passed."));
- return new H.MappedListIterable(selectors, new T._closure14(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new T._closure15()).get$asSassList();
- },
- $signature: 17
- };
- T._closure14.prototype = {
- call$1: function(selector) {
- return selector.assertSelector$0();
- }
- };
- T._closure15.prototype = {
- call$2: function($parent, child) {
- var t1 = child.components;
- return D.SelectorList$0(new H.MappedListIterable(t1, new T.__closure0($parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"))).resolveParentSelectors$1($parent);
- }
- };
- T.__closure0.prototype = {
- call$1: function(complex) {
- var newCompound, t2,
- t1 = complex.components,
- compound = C.JSArray_methods.get$first(t1);
- if (compound instanceof X.CompoundSelector0) {
- newCompound = T._prependParent0(compound);
- if (newCompound == null)
- throw H.wrapException(E.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2);
- t2.push(newCompound);
- for (t1 = H.SubListIterable$(t1, 1, null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();)
- t2.push(t1.__internal$_current);
- return S.ComplexSelector$0(t2, false);
- } else
- throw H.wrapException(E.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
- }
- };
- T.closure119.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
- target = t1.$index($arguments, 1).assertSelector$1$name("extendee");
- return F.Extender__extendOrReplace0(selector, t1.$index($arguments, 2).assertSelector$1$name("extender"), target, C.ExtendMode_allTargets0).get$asSassList();
- },
- $signature: 17
- };
- T.closure118.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
- target = t1.$index($arguments, 1).assertSelector$1$name("original");
- return F.Extender__extendOrReplace0(selector, t1.$index($arguments, 2).assertSelector$1$name("replacement"), target, C.ExtendMode_replace0).get$asSassList();
- },
- $signature: 17
- };
- T.closure117.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- result = t1.$index($arguments, 0).assertSelector$1$name("selector1").unify$1(t1.$index($arguments, 1).assertSelector$1$name("selector2"));
- return result == null ? C.C_SassNull : result.get$asSassList();
- },
- $signature: 3
- };
- T.closure124.prototype = {
- call$1: function($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- selector1 = t1.$index($arguments, 0).assertSelector$1$name("super"),
- selector2 = t1.$index($arguments, 1).assertSelector$1$name("sub");
- return Y.listIsSuperslector0(selector1.components, selector2.components) ? C.SassBoolean_true : C.SassBoolean_false;
- },
- $signature: 15
- };
- T.closure123.prototype = {
- call$1: function($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertCompoundSelector$1$name("selector").components;
- return D.SassList$0(new H.MappedListIterable(t1, new T._closure18(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), C.ListSeparator_comma0, false);
- },
- $signature: 17
- };
- T._closure18.prototype = {
- call$1: function(simple) {
- return new D.SassString0(J.toString$0$(simple), false);
- }
- };
- T.closure122.prototype = {
- call$1: function($arguments) {
- return J.$index$asx($arguments, 0).assertSelector$1$name("selector").get$asSassList();
- },
- $signature: 17
- };
- T.SelectorParser0.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new T.SelectorParser_parse_closure0(this));
- },
- parseCompoundSelector$0: function() {
- return this.wrapSpanFormatException$1(new T.SelectorParser_parseCompoundSelector_closure0(this));
- },
- _selector$_selectorList$0: function() {
- var t3, t4, lineBreak, _this = this,
- t1 = _this.scanner,
- t2 = t1._sourceFile,
- previousLine = t2.getLine$1(t1._string_scanner$_position),
- components = H.setRuntimeTypeInfo([_this._selector$_complexSelector$0()], type$.JSArray_ComplexSelector_2);
- _this.whitespace$0();
- for (t3 = t1.string; t1.scanChar$1(44);) {
- _this.whitespace$0();
- if (t1.peekChar$0() === 44)
- continue;
- t4 = t1._string_scanner$_position;
- if (t4 === t3.length)
- break;
- lineBreak = t2.getLine$1(t4) != previousLine;
- if (lineBreak)
- previousLine = t2.getLine$1(t1._string_scanner$_position);
- components.push(_this._selector$_complexSelector$1$lineBreak(lineBreak));
- }
- return D.SelectorList$0(components);
- },
- _selector$_complexSelector$1$lineBreak: function(lineBreak) {
- var t1, next, _this = this,
- _s58_ = '"&" may only used at the beginning of a compound selector.',
- components = H.setRuntimeTypeInfo([], type$.JSArray_ComplexSelectorComponent_2);
- $label0$1:
- for (t1 = _this.scanner; true;) {
- _this.whitespace$0();
- next = t1.peekChar$0();
- switch (next) {
- case 43:
- t1.readChar$0();
- components.push(C.Combinator_uzg0);
- break;
- case 62:
- t1.readChar$0();
- components.push(C.Combinator_sgq0);
- break;
- case 126:
- t1.readChar$0();
- components.push(C.Combinator_CzM0);
- break;
- case 91:
- case 46:
- case 35:
- case 37:
- case 58:
- case 38:
- case 42:
- case 124:
- components.push(_this._selector$_compoundSelector$0());
- if (t1.peekChar$0() === 38)
- t1.error$1(_s58_);
- break;
- default:
- if (next == null || !_this.lookingAtIdentifier$0())
- break $label0$1;
- components.push(_this._selector$_compoundSelector$0());
- if (t1.peekChar$0() === 38)
- t1.error$1(_s58_);
- break;
- }
- }
- if (components.length === 0)
- t1.error$1("expected selector.");
- return S.ComplexSelector$0(components, lineBreak);
- },
- _selector$_complexSelector$0: function() {
- return this._selector$_complexSelector$1$lineBreak(false);
- },
- _selector$_compoundSelector$0: function() {
- var t2,
- components = H.setRuntimeTypeInfo([this._selector$_simpleSelector$0()], type$.JSArray_SimpleSelector_2),
- t1 = this.scanner;
- while (true) {
- t2 = t1.peekChar$0();
- if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
- break;
- components.push(this._selector$_simpleSelector$1$allowParent(false));
- }
- return X.CompoundSelector$0(components);
- },
- _selector$_simpleSelector$1$allowParent: function(allowParent) {
- var $name, text, t2, suffix, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (allowParent == null)
- allowParent = _this._selector$_allowParent;
- switch (t1.peekChar$0()) {
- case 91:
- return _this._selector$_attributeSelector$0();
- case 46:
- t1.expectChar$1(46);
- return new X.ClassSelector0(_this.identifier$0());
- case 35:
- t1.expectChar$1(35);
- return new N.IDSelector0(_this.identifier$0());
- case 37:
- t1.expectChar$1(37);
- $name = _this.identifier$0();
- if (!_this._selector$_allowPlaceholder)
- _this.error$2("Placeholder selectors aren't allowed here.", t1.spanFrom$1(start));
- return new N.PlaceholderSelector0($name);
- case 58:
- return _this._selector$_pseudoSelector$0();
- case 38:
- t1.expectChar$1(38);
- if (_this.lookingAtIdentifierBody$0()) {
- text = new P.StringBuffer("");
- _this._parser$_identifierBody$1(text);
- if (text._contents.length === 0)
- t1.error$1("Expected identifier body.");
- t2 = text._contents;
- suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
- } else
- suffix = null;
- if (!allowParent)
- _this.error$2("Parent selectors aren't allowed here.", t1.spanFrom$1(start));
- return new M.ParentSelector0(suffix);
- default:
- return _this._selector$_typeOrUniversalSelector$0();
- }
- },
- _selector$_simpleSelector$0: function() {
- return this._selector$_simpleSelector$1$allowParent(null);
- },
- _selector$_attributeSelector$0: function() {
- var $name, operator, next, value, modifier, _this = this, _null = null,
- t1 = _this.scanner;
- t1.expectChar$1(91);
- _this.whitespace$0();
- $name = _this._selector$_attributeName$0();
- _this.whitespace$0();
- if (t1.scanChar$1(93))
- return new N.AttributeSelector0($name, _null, _null, _null);
- operator = _this._selector$_attributeOperator$0();
- _this.whitespace$0();
- next = t1.peekChar$0();
- value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
- _this.whitespace$0();
- modifier = T.isAlphabetic1(t1.peekChar$0()) ? H.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
- t1.expectChar$1(93);
- return new N.AttributeSelector0($name, operator, value, modifier);
- },
- _selector$_attributeName$0: function() {
- var nameOrNamespace, _this = this,
- t1 = _this.scanner;
- if (t1.scanChar$1(42)) {
- t1.expectChar$1(124);
- return new D.QualifiedName0(_this.identifier$0(), "*");
- }
- nameOrNamespace = _this.identifier$0();
- if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
- return new D.QualifiedName0(nameOrNamespace, null);
- t1.readChar$0();
- return new D.QualifiedName0(_this.identifier$0(), nameOrNamespace);
- },
- _selector$_attributeOperator$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- switch (t1.readChar$0()) {
- case 61:
- return C.AttributeOperator_sEs0;
- case 126:
- t1.expectChar$1(61);
- return C.AttributeOperator_fz10;
- case 124:
- t1.expectChar$1(61);
- return C.AttributeOperator_AuK0;
- case 94:
- t1.expectChar$1(61);
- return C.AttributeOperator_4L50;
- case 36:
- t1.expectChar$1(61);
- return C.AttributeOperator_mOX0;
- case 42:
- t1.expectChar$1(61);
- return C.AttributeOperator_gqZ0;
- default:
- t1.error$2$position('Expected "]".', t2);
- }
- },
- _selector$_pseudoSelector$0: function() {
- var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
- t1 = _this.scanner;
- t1.expectChar$1(58);
- element = t1.scanChar$1(58);
- $name = _this.identifier$0();
- if (!t1.scanChar$1(40))
- return D.PseudoSelector$0($name, _null, element, _null);
- _this.whitespace$0();
- unvendored = B.unvendor0($name);
- if (element)
- if ($._selectorPseudoElements0.contains$1(0, unvendored)) {
- selector = _this._selector$_selectorList$0();
- argument = _null;
- } else {
- argument = _this.declarationValue$1$allowEmpty(true);
- selector = _null;
- }
- else if ($._selectorPseudoClasses0.contains$1(0, unvendored)) {
- selector = _this._selector$_selectorList$0();
- argument = _null;
- } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
- argument = _this._selector$_aNPlusB$0();
- _this.whitespace$0();
- t2 = t1.peekChar$1(-1);
- if ((t2 === 32 || t2 === 9 || T.isNewline0(t2)) && t1.peekChar$0() !== 41) {
- _this.expectIdentifier$1("of");
- argument += " of";
- _this.whitespace$0();
- selector = _this._selector$_selectorList$0();
- } else
- selector = _null;
- } else {
- argument = C.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
- selector = _null;
- }
- t1.expectChar$1(41);
- return D.PseudoSelector$0($name, argument, element, selector);
- },
- _selector$_aNPlusB$0: function() {
- var t2, first, t3, next, last, _this = this,
- t1 = _this.scanner;
- switch (t1.peekChar$0()) {
- case 101:
- case 69:
- _this.expectIdentifier$1("even");
- return "even";
- case 111:
- case 79:
- _this.expectIdentifier$1("odd");
- return "odd";
- case 43:
- case 45:
- t2 = H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- default:
- t2 = "";
- }
- first = t1.peekChar$0();
- if (first != null && T.isDigit0(first)) {
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- _this.whitespace$0();
- if (!_this.scanIdentChar$1(110))
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- } else
- _this.expectIdentChar$1(110);
- t2 += H.Primitives_stringFromCharCode(110);
- _this.whitespace$0();
- next = t1.peekChar$0();
- if (next !== 43 && next !== 45)
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- _this.whitespace$0();
- last = t1.peekChar$0();
- if (last == null || !T.isDigit0(last))
- t1.error$1("Expected a number.");
- while (true) {
- t3 = t1.peekChar$0();
- if (!(t3 != null && t3 >= 48 && t3 <= 57))
- break;
- t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- },
- _selector$_typeOrUniversalSelector$0: function() {
- var nameOrNamespace, _this = this,
- t1 = _this.scanner,
- first = t1.peekChar$0();
- if (first === 42) {
- t1.readChar$0();
- if (!t1.scanChar$1(124))
- return new N.UniversalSelector0(null);
- if (t1.scanChar$1(42))
- return new N.UniversalSelector0("*");
- else
- return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), "*"));
- } else if (first === 124) {
- t1.readChar$0();
- if (t1.scanChar$1(42))
- return new N.UniversalSelector0("");
- else
- return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), ""));
- }
- nameOrNamespace = _this.identifier$0();
- if (!t1.scanChar$1(124))
- return new F.TypeSelector0(new D.QualifiedName0(nameOrNamespace, null));
- else if (t1.scanChar$1(42))
- return new N.UniversalSelector0(nameOrNamespace);
- else
- return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), nameOrNamespace));
- }
- };
- T.SelectorParser_parse_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this,
- selector = t1._selector$_selectorList$0();
- t1 = t1.scanner;
- if (t1._string_scanner$_position !== t1.string.length)
- t1.error$1("expected selector.");
- return selector;
- },
- $signature: 33
- };
- T.SelectorParser_parseCompoundSelector_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this,
- compound = t1._selector$_compoundSelector$0();
- t1 = t1.scanner;
- if (t1._string_scanner$_position !== t1.string.length)
- t1.error$1("expected selector.");
- return compound;
- },
- $signature: 140
- };
- N.serialize_closure0.prototype = {
- call$1: function(codeUnit) {
- return codeUnit > 127;
- },
- $signature: 16
- };
- N._SerializeVisitor.prototype = {
- visitCssStylesheet$1: function(node) {
- var t1, t2, t3, t4, t5, previous, i, child, _this = this;
- for (t1 = _this._serialize0$_style !== C.OutputStyle_compressed0, t2 = type$.CssComment_2, t3 = type$.CssParentNode_2, t4 = _this._buffer, t5 = _this._lineFeed.text, previous = null, i = 0; i < J.get$length$asx(node.get$children()); ++i) {
- child = J.$index$asx(node.get$children(), i);
- if (_this._serialize0$_isInvisible$1(child))
- continue;
- if (previous != null) {
- if (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous))
- t4.writeCharCode$1(59);
- if (t1)
- t4.write$1(0, t5);
- if (previous.get$isGroupEnd())
- if (t1)
- t4.write$1(0, t5);
- }
- child.accept$1(_this);
- previous = child;
- }
- if (previous != null)
- t1 = (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous)) && t1;
- else
- t1 = false;
- if (t1)
- t4.writeCharCode$1(59);
- },
- visitCssComment$1: function(node) {
- this._buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssComment_closure0(this, node));
- },
- visitCssAtRule$1: function(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._buffer;
- t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssAtRule_closure0(_this, node));
- if (!node.isChildless) {
- if (_this._serialize0$_style !== C.OutputStyle_compressed0)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node.children);
- }
- },
- visitCssMediaRule$1: function(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._buffer;
- t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssMediaRule_closure0(_this, node));
- if (_this._serialize0$_style !== C.OutputStyle_compressed0)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node.children);
- },
- visitCssImport$1: function(node) {
- this._serialize0$_writeIndentation$0();
- this._buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssImport_closure0(this, node));
- },
- _serialize0$_writeImportUrl$1: function(url) {
- var urlContents, maybeQuote, _this = this;
- if (_this._serialize0$_style !== C.OutputStyle_compressed0 || J._codeUnitAt$1$s(url, 0) !== 117) {
- _this._buffer.write$1(0, url);
- return;
- }
- urlContents = J.substring$2$s(url, 4, url.length - 1);
- maybeQuote = C.JSString_methods._codeUnitAt$1(urlContents, 0);
- if (maybeQuote === 39 || maybeQuote === 34)
- _this._buffer.write$1(0, urlContents);
- else
- _this._serialize0$_visitQuotedString$1(urlContents);
- },
- visitCssKeyframeBlock$1: function(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._buffer;
- t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssKeyframeBlock_closure0(_this, node));
- if (_this._serialize0$_style !== C.OutputStyle_compressed0)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node.children);
- },
- _serialize0$_visitMediaQuery$1: function(query) {
- var t2, t3, _this = this,
- t1 = query.modifier;
- if (t1 != null) {
- t2 = _this._buffer;
- t2.write$1(0, t1);
- t2.writeCharCode$1(32);
- }
- t1 = query.type;
- if (t1 != null) {
- t2 = _this._buffer;
- t2.write$1(0, t1);
- if (query.features.length !== 0)
- t2.write$1(0, " and ");
- }
- t1 = query.features;
- t2 = _this._serialize0$_style === C.OutputStyle_compressed0 ? "and " : " and ";
- t3 = _this._buffer;
- _this._serialize0$_writeBetween$3(t1, t2, t3.get$write(t3));
- },
- visitCssStyleRule$1: function(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._buffer;
- t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssStyleRule_closure0(_this, node));
- if (_this._serialize0$_style !== C.OutputStyle_compressed0)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node.children);
- },
- visitCssSupportsRule$1: function(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._buffer;
- t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssSupportsRule_closure0(_this, node));
- if (_this._serialize0$_style !== C.OutputStyle_compressed0)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node.children);
- },
- visitCssDeclaration$1: function(node) {
- var error, error0, t1, exception, _this = this;
- _this._serialize0$_writeIndentation$0();
- _this._serialize0$_write$1(node.name);
- t1 = _this._buffer;
- t1.writeCharCode$1(58);
- if (_this._serialize0$_isParsedCustomProperty$1(node))
- t1.forSpan$2(node.value.span, new N._SerializeVisitor_visitCssDeclaration_closure1(_this, node));
- else {
- if (_this._serialize0$_style !== C.OutputStyle_compressed0)
- t1.writeCharCode$1(32);
- try {
- t1.forSpan$2(node.valueSpanForMap, new N._SerializeVisitor_visitCssDeclaration_closure2(_this, node));
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.MultiSpanSassScriptException0) {
- error = t1;
- throw H.wrapException(E.MultiSpanSassException$0(error.message, node.value.span, error.primaryLabel, error.secondarySpans));
- } else if (t1 instanceof E.SassScriptException0) {
- error0 = t1;
- throw H.wrapException(E.SassException$0(error0.message, node.value.span));
- } else
- throw exception;
- }
- }
- },
- _serialize0$_isParsedCustomProperty$1: function(node) {
- var value,
- t1 = node.name;
- if (!J.startsWith$1$s(t1.get$value(t1), "--"))
- return false;
- value = node.value.value;
- return value instanceof D.SassString0 && !value.hasQuotes;
- },
- _serialize0$_writeFoldedValue$1: function(node) {
- var t1, t2, next, t3,
- scanner = X.StringScanner$(type$.SassString_2._as(node.value.value).text, null, null);
- for (t1 = scanner.string.length, t2 = this._buffer; scanner._string_scanner$_position !== t1;) {
- next = scanner.readChar$0();
- if (next !== 10) {
- t2.writeCharCode$1(next);
- continue;
- }
- t2.writeCharCode$1(32);
- while (true) {
- t3 = scanner.peekChar$0();
- if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
- break;
- scanner.readChar$0();
- }
- }
- },
- _serialize0$_writeReindentedValue$1: function(node) {
- var _this = this,
- t1 = node.value,
- value = type$.SassString_2._as(t1.value).text,
- minimumIndentation = _this._serialize0$_minimumIndentation$1(value);
- if (minimumIndentation == null) {
- _this._buffer.write$1(0, value);
- return;
- } else if (minimumIndentation === -1) {
- t1 = _this._buffer;
- t1.write$1(0, B.trimAsciiRight0(value, true));
- t1.writeCharCode$1(32);
- return;
- }
- if (t1.span != null) {
- t1 = node.name.get$span();
- t1 = Y.FileLocation$_(t1.file, t1._file$_start);
- minimumIndentation = Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset));
- }
- _this._serialize0$_writeWithIndent$2(value, minimumIndentation);
- },
- _serialize0$_minimumIndentation$1: function(text) {
- var character, t2, min, next, min0,
- scanner = new Z.LineScanner(null, text),
- t1 = text.length;
- while (true) {
- if (scanner._string_scanner$_position !== t1) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- t2 = character !== 10;
- } else
- t2 = false;
- if (!t2)
- break;
- }
- if (scanner._string_scanner$_position === t1)
- return scanner.peekChar$1(-1) === 10 ? -1 : null;
- for (min = null; scanner._string_scanner$_position !== t1;) {
- for (; scanner._string_scanner$_position !== t1;) {
- next = scanner.peekChar$0();
- if (next !== 32 && next !== 9)
- break;
- scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
- }
- if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
- continue;
- min0 = scanner._line_scanner$_column;
- min = min == null ? min0 : Math.min(min, min0);
- while (true) {
- if (scanner._string_scanner$_position !== t1) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- t2 = character !== 10;
- } else
- t2 = false;
- if (!t2)
- break;
- }
- }
- return min == null ? -1 : min;
- },
- _serialize0$_writeWithIndent$2: function(text, minimumIndentation) {
- var t1, t2, character, t3, lineStart, newlines, end,
- scanner = new Z.LineScanner(null, text);
- for (t1 = text.length, t2 = this._buffer; scanner._string_scanner$_position !== t1;) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 10)
- break;
- t2.writeCharCode$1(character);
- }
- for (t3 = J.getInterceptor$s(text); true;) {
- lineStart = scanner._string_scanner$_position;
- for (newlines = 1; true;) {
- if (scanner._string_scanner$_position === t1) {
- t2.writeCharCode$1(32);
- return;
- }
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 32 || character === 9)
- continue;
- if (character !== 10)
- break;
- lineStart = scanner._string_scanner$_position;
- ++newlines;
- }
- this._serialize0$_writeTimes$2(10, newlines);
- this._serialize0$_writeIndentation$0();
- end = scanner._string_scanner$_position;
- t2.write$1(0, t3.substring$2(text, lineStart + minimumIndentation, end));
- for (; true;) {
- if (scanner._string_scanner$_position === t1)
- return;
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 10)
- break;
- t2.writeCharCode$1(character);
- }
- }
- },
- visitColor$1: function(value) {
- var $name, hexLength, t2, t3, _this = this,
- t1 = _this._serialize0$_style === C.OutputStyle_compressed0;
- if (t1 && Math.abs(value.alpha - 1) < $.$get$epsilon0()) {
- $name = $.$get$namesByColor0().$index(0, value);
- hexLength = _this._serialize0$_canUseShortHex$1(value) ? 4 : 7;
- if ($name != null && $name.length <= hexLength)
- _this._buffer.write$1(0, $name);
- else {
- t1 = _this._buffer;
- if (_this._serialize0$_canUseShortHex$1(value)) {
- t1.writeCharCode$1(35);
- t1.writeCharCode$1(T.hexCharFor0(value.get$red() & 15));
- t1.writeCharCode$1(T.hexCharFor0(value.get$green() & 15));
- t1.writeCharCode$1(T.hexCharFor0(value.get$blue() & 15));
- } else {
- t1.writeCharCode$1(35);
- _this._serialize0$_writeHexComponent$1(value.get$red());
- _this._serialize0$_writeHexComponent$1(value.get$green());
- _this._serialize0$_writeHexComponent$1(value.get$blue());
- }
- }
- return;
- }
- if (value.get$original() != null)
- _this._buffer.write$1(0, value.get$original());
- else {
- t2 = $.$get$namesByColor0();
- if (t2.containsKey$1(value) && !(Math.abs(value.alpha - 0) < $.$get$epsilon0()))
- _this._buffer.write$1(0, t2.$index(0, value));
- else {
- t2 = value.alpha;
- t3 = _this._buffer;
- if (Math.abs(t2 - 1) < $.$get$epsilon0()) {
- t3.writeCharCode$1(35);
- _this._serialize0$_writeHexComponent$1(value.get$red());
- _this._serialize0$_writeHexComponent$1(value.get$green());
- _this._serialize0$_writeHexComponent$1(value.get$blue());
- } else {
- t3.write$1(0, "rgba(" + H.S(value.get$red()));
- t3.write$1(0, t1 ? "," : ", ");
- t3.write$1(0, value.get$green());
- t3.write$1(0, t1 ? "," : ", ");
- t3.write$1(0, value.get$blue());
- t3.write$1(0, t1 ? "," : ", ");
- _this._serialize0$_writeNumber$1(t2);
- t3.writeCharCode$1(41);
- }
- }
- }
- },
- _serialize0$_canUseShortHex$1: function(color) {
- var t1 = color.get$red();
- if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
- t1 = color.get$green();
- if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
- t1 = color.get$blue();
- t1 = (t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4);
- } else
- t1 = false;
- } else
- t1 = false;
- return t1;
- },
- _serialize0$_writeHexComponent$1: function(color) {
- var t1 = this._buffer;
- t1.writeCharCode$1(T.hexCharFor0(C.JSInt_methods._shrOtherPositive$1(color, 4)));
- t1.writeCharCode$1(T.hexCharFor0(color & 15));
- },
- visitList$1: function(value) {
- var t2, singleton, t3, t4, _this = this,
- t1 = value.hasBrackets;
- if (t1)
- _this._buffer.writeCharCode$1(91);
- else if (value._list1$_contents.length === 0) {
- if (!_this._inspect)
- throw H.wrapException(E.SassScriptException$0("() isn't a valid CSS value."));
- _this._buffer.write$1(0, "()");
- return;
- }
- t2 = _this._inspect;
- singleton = t2 && value._list1$_contents.length === 1 && value.separator === C.ListSeparator_comma0;
- if (singleton && !t1)
- _this._buffer.writeCharCode$1(40);
- t3 = value._list1$_contents;
- t3 = t2 ? t3 : new H.WhereIterable(t3, new N._SerializeVisitor_visitList_closure2(), H._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
- if (value.separator === C.ListSeparator_space0)
- t4 = " ";
- else
- t4 = _this._serialize0$_style === C.OutputStyle_compressed0 ? "," : ", ";
- _this._serialize0$_writeBetween$3(t3, t4, t2 ? new N._SerializeVisitor_visitList_closure3(_this, value) : new N._SerializeVisitor_visitList_closure4(_this));
- if (singleton) {
- t2 = _this._buffer;
- t2.writeCharCode$1(44);
- if (!t1)
- t2.writeCharCode$1(41);
- }
- if (t1)
- _this._buffer.writeCharCode$1(93);
- },
- _serialize0$_elementNeedsParens$2: function(separator, value) {
- var t1;
- if (value instanceof D.SassList0) {
- if (value._list1$_contents.length < 2)
- return false;
- if (value.hasBrackets)
- return false;
- t1 = value.separator;
- return separator === C.ListSeparator_comma0 ? t1 === C.ListSeparator_comma0 : t1 !== C.ListSeparator_undecided0;
- }
- return false;
- },
- visitMap$1: function(map) {
- var t1, _this = this;
- if (!_this._inspect)
- throw H.wrapException(E.SassScriptException$0(map.toString$0(0) + " isn't a valid CSS value."));
- t1 = _this._buffer;
- t1.writeCharCode$1(40);
- _this._serialize0$_writeBetween$3(map.contents.get$keys(), ", ", new N._SerializeVisitor_visitMap_closure0(_this, map));
- t1.writeCharCode$1(41);
- },
- _serialize0$_writeMapElement$1: function(value) {
- var needsParens = value instanceof D.SassList0 && value.separator === C.ListSeparator_comma0 && !value.hasBrackets;
- if (needsParens)
- this._buffer.writeCharCode$1(40);
- value.accept$1(this);
- if (needsParens)
- this._buffer.writeCharCode$1(41);
- },
- visitNumber$1: function(value) {
- var t2, _this = this,
- t1 = value.asSlash;
- if (t1 != null) {
- _this.visitNumber$1(t1.item1);
- _this._buffer.writeCharCode$1(47);
- _this.visitNumber$1(t1.item2);
- return;
- }
- _this._serialize0$_writeNumber$1(value.value);
- if (!_this._inspect) {
- t1 = value.numeratorUnits;
- t2 = t1.length;
- if (t2 > 1 || value.denominatorUnits.length !== 0)
- throw H.wrapException(E.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value."));
- if (t2 !== 0)
- _this._buffer.write$1(0, C.JSArray_methods.get$first(t1));
- } else
- _this._buffer.write$1(0, value.get$unitString());
- },
- _serialize0$_writeNumber$1: function(number) {
- var t1, text, text0, _this = this,
- integer = T.fuzzyIsInt0(number) ? J.round$0$n(number) : null;
- if (integer != null) {
- t1 = integer >= 1e21 ? _this._serialize0$_removeExponent$1(C.JSInt_methods.toString$0(integer)) : C.JSInt_methods.toString$0(integer);
- _this._buffer.write$1(0, t1);
- return;
- }
- text = number >= 1e21 ? _this._serialize0$_removeExponent$1(C.JSNumber_methods.toString$0(number)) : C.JSNumber_methods.toString$0(number);
- text0 = _this._serialize0$_style === C.OutputStyle_compressed0 && C.JSString_methods._codeUnitAt$1(text, 0) === 48 ? C.JSString_methods.substring$1(text, 1) : text;
- if (text.length < 12) {
- _this._buffer.write$1(0, text0);
- return;
- }
- _this._serialize0$_writeDecimal$1(text0);
- },
- _serialize0$_removeExponent$1: function(text) {
- var exponent, buffer, t2, additionalZeroes, negative, _null = null,
- t1 = text.length,
- i = 0;
- while (true) {
- if (!(i < t1)) {
- exponent = _null;
- buffer = exponent;
- break;
- }
- c$0: {
- if (C.JSString_methods._codeUnitAt$1(text, i) !== 101)
- break c$0;
- buffer = new P.StringBuffer("");
- t2 = H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(text, 0));
- buffer._contents = t2;
- if (i > 2)
- buffer._contents = t2 + C.JSString_methods.substring$2(text, 2, i);
- exponent = P.int_parse(C.JSString_methods.substring$2(text, i + 1, t1), _null, _null);
- break;
- }
- ++i;
- }
- if (buffer == null)
- return text;
- if (exponent > 0) {
- t1 = buffer._contents;
- additionalZeroes = exponent - (t1.length - 1);
- for (i = 0; i < additionalZeroes; ++i)
- t1 = buffer._contents += H.Primitives_stringFromCharCode(48);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else {
- negative = C.JSString_methods._codeUnitAt$1(text, 0) === 45;
- t1 = (negative ? H.Primitives_stringFromCharCode(45) : "") + "0.";
- for (i = -1; i > exponent; --i)
- t1 += H.Primitives_stringFromCharCode(48);
- if (negative) {
- t2 = buffer._contents;
- t2 = C.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
- } else
- t2 = buffer;
- t2 = t1 + H.S(t2);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- },
- _serialize0$_writeDecimal$1: function(text) {
- var t1, t2, textIndex, codeUnit, digits, t3, digitsIndex, digitsIndex0, textIndex0, newDigit, i;
- for (t1 = text.length, t2 = this._buffer, textIndex = 0; textIndex < t1; ++textIndex) {
- codeUnit = C.JSString_methods._codeUnitAt$1(text, textIndex);
- if (codeUnit === 46) {
- if (textIndex === t1 - 2 && C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 48)
- return;
- t2.writeCharCode$1(codeUnit);
- ++textIndex;
- break;
- }
- t2.writeCharCode$1(codeUnit);
- }
- if (textIndex === t1)
- return;
- digits = new Uint8Array(10);
- t3 = digits.length;
- digitsIndex = 0;
- while (true) {
- if (!(textIndex < t1 && digitsIndex < t3))
- break;
- digitsIndex0 = digitsIndex + 1;
- textIndex0 = textIndex + 1;
- digits[digitsIndex] = C.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
- digitsIndex = digitsIndex0;
- textIndex = textIndex0;
- }
- if (textIndex !== t1 && C.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
- for (; digitsIndex >= 0; digitsIndex = digitsIndex0) {
- digitsIndex0 = digitsIndex - 1;
- newDigit = digits[digitsIndex0] + 1;
- digits[digitsIndex0] = newDigit;
- if (newDigit !== 10)
- break;
- }
- while (true) {
- if (!(digitsIndex > 0 && digits[digitsIndex - 1] === 0))
- break;
- --digitsIndex;
- }
- for (i = 0; i < digitsIndex; ++i)
- t2.writeCharCode$1(48 + digits[i]);
- },
- _serialize0$_visitQuotedString$2$forceDoubleQuote: function(string, forceDoubleQuote) {
- var t1, includesSingleQuote, includesDoubleQuote, i, char, t2, next, quote, _this = this,
- buffer = forceDoubleQuote ? _this._buffer : new P.StringBuffer("");
- if (forceDoubleQuote)
- buffer.writeCharCode$1(34);
- for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
- char = C.JSString_methods._codeUnitAt$1(string, i);
- switch (char) {
- case 39:
- if (forceDoubleQuote)
- buffer.writeCharCode$1(39);
- else {
- if (includesDoubleQuote) {
- _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
- return;
- } else
- buffer.writeCharCode$1(39);
- includesSingleQuote = true;
- }
- break;
- case 34:
- if (forceDoubleQuote) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(34);
- } else {
- if (includesSingleQuote) {
- _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
- return;
- } else
- buffer.writeCharCode$1(34);
- includesDoubleQuote = true;
- }
- break;
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- case 10:
- case 11:
- case 12:
- case 13:
- case 14:
- case 15:
- case 16:
- case 17:
- case 18:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- case 24:
- case 25:
- case 26:
- case 27:
- case 28:
- case 29:
- case 30:
- case 31:
- buffer.writeCharCode$1(92);
- if (char > 15) {
- t2 = char >>> 4;
- buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- }
- t2 = char & 15;
- buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
- t2 = i + 1;
- if (t1 === t2)
- break;
- next = C.JSString_methods._codeUnitAt$1(string, t2);
- if (T.isHex0(next) || next === 32 || next === 9)
- buffer.writeCharCode$1(32);
- break;
- case 92:
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(92);
- break;
- default:
- buffer.writeCharCode$1(char);
- break;
- }
- }
- if (forceDoubleQuote)
- buffer.writeCharCode$1(34);
- else {
- quote = includesDoubleQuote ? 39 : 34;
- t1 = _this._buffer;
- t1.writeCharCode$1(quote);
- t1.write$1(0, buffer);
- t1.writeCharCode$1(quote);
- }
- },
- _serialize0$_visitQuotedString$1: function(string) {
- return this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, false);
- },
- _serialize0$_visitUnquotedString$1: function(string) {
- var t1, t2, afterNewline, i, char;
- for (t1 = string.length, t2 = this._buffer, afterNewline = false, i = 0; i < t1; ++i) {
- char = C.JSString_methods._codeUnitAt$1(string, i);
- switch (char) {
- case 10:
- t2.writeCharCode$1(32);
- afterNewline = true;
- break;
- case 32:
- if (!afterNewline)
- t2.writeCharCode$1(32);
- break;
- default:
- t2.writeCharCode$1(char);
- afterNewline = false;
- break;
- }
- }
- },
- visitComplexSelector$1: function(complex) {
- var t1, t2, t3, t4, lastComponent, _i, component, t5;
- 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) {
- component = t1[_i];
- if (lastComponent != null)
- if (!(t4 && lastComponent instanceof S.Combinator0))
- t5 = !(t4 && component instanceof S.Combinator0);
- else
- t5 = false;
- else
- t5 = false;
- if (t5)
- t3.write$1(0, " ");
- if (component instanceof X.CompoundSelector0)
- this.visitCompoundSelector$1(component);
- else
- t3.write$1(0, component);
- }
- },
- visitCompoundSelector$1: function(compound) {
- var t2, t3, _i,
- t1 = this._buffer,
- start = t1.get$length(t1);
- for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(this);
- if (t1.get$length(t1) === start)
- t1.writeCharCode$1(42);
- },
- visitSelectorList$1: function(list) {
- var complexes, t1, t2, t3, t4, first, t5, _this = this;
- if (_this._inspect)
- complexes = list.components;
- else {
- t1 = list.components;
- complexes = new H.WhereIterable(t1, new N._SerializeVisitor_visitSelectorList_closure0(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
- }
- 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();) {
- t5 = t1.get$current(t1);
- if (first)
- first = false;
- else {
- t3.writeCharCode$1(44);
- if (t5.lineBreak) {
- if (t2)
- t3.write$1(0, t4);
- } else if (t2)
- t3.writeCharCode$1(32);
- }
- _this.visitComplexSelector$1(t5);
- }
- },
- visitPseudoSelector$1: function(pseudo) {
- var t4, t5, t6,
- t1 = pseudo.selector,
- t2 = t1 == null,
- t3 = !t2;
- if (t3 && pseudo.name === "not" && t1.get$isInvisible())
- return;
- t4 = this._buffer;
- t4.writeCharCode$1(58);
- if (!pseudo.isSyntacticClass)
- t4.writeCharCode$1(58);
- t4.write$1(0, pseudo.name);
- t5 = pseudo.argument;
- t6 = t5 == null;
- if (t6 && t2)
- return;
- t4.writeCharCode$1(40);
- if (!t6) {
- t4.write$1(0, t5);
- if (t3)
- t4.writeCharCode$1(32);
- }
- if (t3)
- this.visitSelectorList$1(t1);
- t4.writeCharCode$1(41);
- },
- _serialize0$_write$1: function(value) {
- return this._buffer.forSpan$2(value.get$span(), new N._SerializeVisitor__write_closure0(this, value));
- },
- _serialize0$_visitChildren$1: function(children) {
- var _this = this, t1 = {},
- t2 = _this._buffer;
- t2.writeCharCode$1(123);
- if (children.every$1(children, _this.get$_serialize0$_isInvisible())) {
- t2.writeCharCode$1(125);
- return;
- }
- _this._serialize0$_writeLineFeed$0();
- t1.previous = null;
- ++_this._serialize0$_indentation;
- new N._SerializeVisitor__visitChildren_closure0(t1, _this, children).call$0();
- --_this._serialize0$_indentation;
- t1 = t1.previous;
- if ((type$.CssParentNode_2._is(t1) ? t1.get$isChildless() : !type$.CssComment_2._is(t1)) && _this._serialize0$_style !== C.OutputStyle_compressed0)
- t2.writeCharCode$1(59);
- _this._serialize0$_writeLineFeed$0();
- _this._serialize0$_writeIndentation$0();
- t2.writeCharCode$1(125);
- },
- _serialize0$_writeLineFeed$0: function() {
- if (this._serialize0$_style !== C.OutputStyle_compressed0)
- this._buffer.write$1(0, this._lineFeed.text);
- },
- _serialize0$_writeIndentation$0: function() {
- var _this = this;
- if (_this._serialize0$_style === C.OutputStyle_compressed0)
- return;
- _this._serialize0$_writeTimes$2(_this._serialize0$_indentCharacter, _this._serialize0$_indentation * _this._serialize0$_indentWidth);
- },
- _serialize0$_writeTimes$2: function(char, times) {
- var t1, i;
- for (t1 = this._buffer, i = 0; i < times; ++i)
- t1.writeCharCode$1(char);
- },
- _serialize0$_writeBetween$1$3: function(iterable, text, callback) {
- var t1, t2, first, value;
- for (t1 = J.get$iterator$ax(iterable), t2 = this._buffer, first = true; t1.moveNext$0();) {
- value = t1.get$current(t1);
- if (first)
- first = false;
- else
- t2.write$1(0, text);
- callback.call$1(value);
- }
- },
- _serialize0$_writeBetween$3: function(iterable, text, callback) {
- return this._serialize0$_writeBetween$1$3(iterable, text, callback, type$.dynamic);
- },
- _serialize0$_isInvisible$1: function(node) {
- if (this._inspect)
- return false;
- if (this._serialize0$_style === C.OutputStyle_compressed0 && type$.CssComment_2._is(node) && J._codeUnitAt$1$s(node.text, 2) !== 33)
- return true;
- if (type$.CssParentNode_2._is(node)) {
- if (type$.CssAtRule_2._is(node))
- return false;
- if (type$.CssStyleRule_2._is(node) && node.selector.value.get$isInvisible())
- return true;
- return J.every$1$ax(node.get$children(), this.get$_serialize0$_isInvisible());
- } else
- return false;
- }
- };
- N._SerializeVisitor_visitCssComment_closure0.prototype = {
- call$0: function() {
- var t2, t3, minimumIndentation,
- t1 = this.$this;
- if (t1._serialize0$_style === C.OutputStyle_compressed0 && J._codeUnitAt$1$s(this.node.text, 2) !== 33)
- return;
- t2 = this.node;
- t3 = t2.text;
- minimumIndentation = t1._serialize0$_minimumIndentation$1(t3);
- if (minimumIndentation == null) {
- t1._serialize0$_writeIndentation$0();
- t1._buffer.write$1(0, t3);
- return;
- }
- t2 = t2.span;
- if (t2 != null) {
- t2 = Y.FileLocation$_(t2.file, t2._file$_start);
- minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
- }
- t1._serialize0$_writeIndentation$0();
- t1._serialize0$_writeWithIndent$2(t3, minimumIndentation);
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssAtRule_closure0.prototype = {
- call$0: function() {
- var t3,
- t1 = this.$this,
- t2 = t1._buffer;
- t2.writeCharCode$1(64);
- t3 = this.node;
- t1._serialize0$_write$1(t3.name);
- t3 = t3.value;
- if (t3 != null) {
- t2.writeCharCode$1(32);
- t1._serialize0$_write$1(t3);
- }
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssMediaRule_closure0.prototype = {
- call$0: function() {
- var t3, t4,
- t1 = this.$this,
- t2 = t1._buffer;
- t2.write$1(0, "@media");
- t3 = t1._serialize0$_style === C.OutputStyle_compressed0;
- if (t3) {
- t4 = C.JSArray_methods.get$first(this.node.queries);
- t4 = !(t4.modifier == null && t4.type == null);
- } else
- t4 = true;
- if (t4)
- t2.writeCharCode$1(32);
- t2 = t3 ? "," : ", ";
- t1._serialize0$_writeBetween$3(this.node.queries, t2, t1.get$_serialize0$_visitMediaQuery());
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssImport_closure0.prototype = {
- call$0: function() {
- var t3, t4, t5, t6,
- t1 = this.$this,
- t2 = t1._buffer;
- t2.write$1(0, "@import");
- t3 = t1._serialize0$_style === C.OutputStyle_compressed0;
- t4 = !t3;
- if (t4)
- t2.writeCharCode$1(32);
- t5 = this.node;
- t2.forSpan$2(t5.url.get$span(), new N._SerializeVisitor_visitCssImport__closure0(t1, t5));
- t6 = t5.supports;
- if (t6 != null) {
- if (t4)
- t2.writeCharCode$1(32);
- t1._serialize0$_write$1(t6);
- }
- t5 = t5.media;
- if (t5 != null) {
- if (t4)
- t2.writeCharCode$1(32);
- t2 = t3 ? "," : ", ";
- t1._serialize0$_writeBetween$3(t5, t2, t1.get$_serialize0$_visitMediaQuery());
- }
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssImport__closure0.prototype = {
- call$0: function() {
- var t1 = this.node.url;
- return this.$this._serialize0$_writeImportUrl$1(t1.get$value(t1));
- },
- $signature: 1
- };
- N._SerializeVisitor_visitCssKeyframeBlock_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._serialize0$_style === C.OutputStyle_compressed0 ? "," : ", ",
- t3 = t1._buffer;
- return t1._serialize0$_writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
- },
- $signature: 1
- };
- N._SerializeVisitor_visitCssStyleRule_closure0.prototype = {
- call$0: function() {
- var t1 = this.node.selector.value;
- t1.toString;
- return this.$this.visitSelectorList$1(t1);
- },
- $signature: 1
- };
- N._SerializeVisitor_visitCssSupportsRule_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = t1._buffer;
- t2.write$1(0, "@supports");
- if (!(t1._serialize0$_style === C.OutputStyle_compressed0 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
- t2.writeCharCode$1(32);
- t1._serialize0$_write$1(this.node.condition);
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssDeclaration_closure1.prototype = {
- call$0: function() {
- var t1 = this.$this,
- t2 = this.node;
- if (t1._serialize0$_style === C.OutputStyle_compressed0)
- t1._serialize0$_writeFoldedValue$1(t2);
- else
- t1._serialize0$_writeReindentedValue$1(t2);
- },
- $signature: 0
- };
- N._SerializeVisitor_visitCssDeclaration_closure2.prototype = {
- call$0: function() {
- return this.node.value.value.accept$1(this.$this);
- },
- $signature: 1
- };
- N._SerializeVisitor_visitList_closure2.prototype = {
- call$1: function(element) {
- return !element.get$isBlank();
- }
- };
- N._SerializeVisitor_visitList_closure3.prototype = {
- call$1: function(element) {
- var t1 = this.$this,
- needsParens = t1._serialize0$_elementNeedsParens$2(this.value.separator, element);
- if (needsParens)
- t1._buffer.writeCharCode$1(40);
- element.accept$1(t1);
- if (needsParens)
- t1._buffer.writeCharCode$1(41);
- }
- };
- N._SerializeVisitor_visitList_closure4.prototype = {
- call$1: function(element) {
- element.accept$1(this.$this);
- }
- };
- N._SerializeVisitor_visitMap_closure0.prototype = {
- call$1: function(key) {
- var t1 = this.$this;
- t1._serialize0$_writeMapElement$1(key);
- t1._buffer.write$1(0, ": ");
- t1._serialize0$_writeMapElement$1(this.map.contents.$index(0, key));
- }
- };
- N._SerializeVisitor_visitSelectorList_closure0.prototype = {
- call$1: function(complex) {
- return !complex.get$isInvisible();
- }
- };
- N._SerializeVisitor__write_closure0.prototype = {
- call$0: function() {
- var t1 = this.value;
- return this.$this._buffer.write$1(0, t1.get$value(t1));
- },
- $signature: 1
- };
- N._SerializeVisitor__visitChildren_closure0.prototype = {
- call$0: function() {
- var t1, t2, t3, t4, t5, t6, t7, t8, i, child, t9;
- for (t1 = this.children._collection$_source, t2 = J.getInterceptor$asx(t1), t3 = this._box_0, t4 = this.$this, t5 = type$.CssComment_2, t6 = type$.CssParentNode_2, t7 = t4._buffer, t8 = t4._lineFeed.text, i = 0; i < t2.get$length(t1); ++i) {
- child = t2.elementAt$1(t1, i);
- if (t4._serialize0$_isInvisible$1(child))
- continue;
- t9 = t3.previous;
- if (t9 != null) {
- if (t6._is(t9) ? t9.get$isChildless() : !t5._is(t9))
- t7.writeCharCode$1(59);
- t9 = t4._serialize0$_style !== C.OutputStyle_compressed0;
- if (t9)
- t7.write$1(0, t8);
- if (t3.previous.get$isGroupEnd())
- if (t9)
- t7.write$1(0, t8);
- }
- t3.previous = child;
- child.accept$1(t4);
- }
- },
- $signature: 0
- };
- N.OutputStyle0.prototype = {
- toString$0: function(_) {
- return this._name;
- }
- };
- N.LineFeed0.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- N.SerializeResult0.prototype = {};
- B.ShadowedModuleView0.prototype = {
- get$url: function() {
- return this._shadowed_view0$_inner.get$url();
- },
- get$upstream: function() {
- return this._shadowed_view0$_inner.get$upstream();
- },
- get$extender: function() {
- return this._shadowed_view0$_inner.get$extender();
- },
- get$css: function(_) {
- var t1 = this._shadowed_view0$_inner;
- return t1.get$css(t1);
- },
- get$transitivelyContainsCss: function() {
- return this._shadowed_view0$_inner.get$transitivelyContainsCss();
- },
- get$transitivelyContainsExtensions: function() {
- return this._shadowed_view0$_inner.get$transitivelyContainsExtensions();
- },
- setVariable$3: function($name, value, nodeWithSpan) {
- if (!this.variables.containsKey$1($name))
- throw H.wrapException(E.SassScriptException$0("Undefined variable."));
- else
- return this._shadowed_view0$_inner.setVariable$3($name, value, nodeWithSpan);
- },
- variableIdentity$1: function($name) {
- return this._shadowed_view0$_inner.variableIdentity$1($name);
- },
- $eq: function(_, other) {
- var _this = this;
- if (other == null)
- return false;
- 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());
- },
- get$hashCode: function(_) {
- var t1 = this._shadowed_view0$_inner;
- return t1.get$hashCode(t1);
- },
- cloneCss$0: function() {
- var _this = this;
- return new B.ShadowedModuleView0(_this._shadowed_view0$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
- },
- toString$0: function(_) {
- return "shadowed " + this._shadowed_view0$_inner.toString$0(0);
- },
- $isModule0: 1,
- get$variables: function() {
- return this.variables;
- },
- get$variableNodes: function() {
- return this.variableNodes;
- },
- get$functions: function(receiver) {
- return this.functions;
- },
- get$mixins: function() {
- return this.mixins;
- }
- };
- B.SilentComment0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitSilentComment$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return this.text;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- M.SimpleSelector0.prototype = {
- get$minSpecificity: function() {
- return 1000;
- },
- get$maxSpecificity: function() {
- return this.get$minSpecificity();
- },
- addSuffix$1: function(suffix) {
- return H.throwExpression(E.SassScriptException$0('Invalid parent selector "' + this.toString$0(0) + '"'));
- },
- unify$1: function(compound) {
- var result, t1, addedThis, _i, simple, _this = this;
- if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0)
- return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector_2));
- if (C.JSArray_methods.contains$1(compound, _this))
- return compound;
- result = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
- for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
- simple = compound[_i];
- if (!addedThis && simple instanceof D.PseudoSelector0) {
- result.push(_this);
- addedThis = true;
- }
- result.push(simple);
- }
- if (!addedThis)
- result.push(_this);
- return result;
- }
- };
- D.SourceMapBuffer.prototype = {
- get$sourceFiles: function() {
- var t1 = type$.SourceFile;
- return new P.UnmodifiableMapView(Y.mapMap(this._source_map_buffer$_sourceFiles, new D.SourceMapBuffer_sourceFiles_closure0(), null, type$.Uri, t1, type$.String, t1), type$.UnmodifiableMapView_String_SourceFile);
- },
- get$_targetLocation: function() {
- var t1 = this._source_map_buffer$_buffer._contents,
- t2 = this._line;
- return V.SourceLocation$(t1.length, this._column, t2, null);
- },
- get$length: function(_) {
- return this._source_map_buffer$_buffer._contents.length;
- },
- forSpan$1$2: function(span, callback) {
- var t1, _this = this,
- wasInSpan = _this._inSpan;
- _this._inSpan = true;
- _this._source_map_buffer$_addEntry$2(Y.FileLocation$_(span.file, span._file$_start), _this.get$_targetLocation());
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._inSpan = wasInSpan;
- }
- },
- forSpan$2: function(span, callback) {
- return this.forSpan$1$2(span, callback, type$.dynamic);
- },
- _source_map_buffer$_addEntry$2: function(source, target) {
- var entry, t2,
- t1 = this._entries;
- if (t1.length !== 0) {
- entry = C.JSArray_methods.get$last(t1);
- t2 = entry.source;
- if (t2.file.getLine$1(t2.offset) == source.file.getLine$1(source.offset) && entry.target.line === target.line)
- return;
- if (entry.target.offset === target.offset)
- return;
- }
- this._source_map_buffer$_sourceFiles.putIfAbsent$2(source.file.url, new D.SourceMapBuffer__addEntry_closure0(source));
- t1.push(new L.Entry(source, target, null));
- },
- write$1: function(_, object) {
- var t1, i,
- string = J.toString$0$(object);
- this._source_map_buffer$_buffer._contents += H.S(string);
- for (t1 = string.length, i = 0; i < t1; ++i)
- if (C.JSString_methods._codeUnitAt$1(string, i) === 10)
- this._writeLine$0();
- else
- ++this._column;
- },
- writeCharCode$1: function(charCode) {
- this._source_map_buffer$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
- if (charCode === 10)
- this._writeLine$0();
- else
- ++this._column;
- },
- _writeLine$0: function() {
- var _this = this,
- t1 = _this._entries;
- if (C.JSArray_methods.get$last(t1).target.line === _this._line && C.JSArray_methods.get$last(t1).target.column === _this._column)
- t1.pop();
- ++_this._line;
- _this._column = 0;
- if (_this._inSpan)
- t1.push(new L.Entry(C.JSArray_methods.get$last(t1).source, _this.get$_targetLocation(), null));
- },
- toString$0: function(_) {
- var t1 = this._source_map_buffer$_buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- buildSourceMap$1$prefix: function(prefix) {
- var i, t2, prefixColumn, _box_0 = {},
- t1 = prefix.length;
- if (t1 === 0)
- return T.SingleMapping_SingleMapping$fromEntries(this._entries);
- _box_0.prefixColumn = _box_0.prefixLines = 0;
- for (i = 0, t2 = 0; i < t1; ++i)
- if (C.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
- ++_box_0.prefixLines;
- _box_0.prefixColumn = 0;
- t2 = 0;
- } else {
- prefixColumn = t2 + 1;
- _box_0.prefixColumn = prefixColumn;
- t2 = prefixColumn;
- }
- t2 = this._entries;
- 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>")));
- },
- $isStringBuffer: 1
- };
- D.SourceMapBuffer_sourceFiles_closure0.prototype = {
- call$2: function(url, _) {
- return J.toString$0$(url);
- },
- $signature: 70
- };
- D.SourceMapBuffer__addEntry_closure0.prototype = {
- call$0: function() {
- return this.source.file;
- },
- $signature: 47
- };
- D.SourceMapBuffer_buildSourceMap_closure0.prototype = {
- call$1: function(entry) {
- var t1 = entry.source,
- t2 = entry.target,
- t3 = t2.line,
- t4 = this._box_0,
- t5 = t4.prefixLines;
- t4 = t3 === 0 ? t4.prefixColumn : 0;
- return new L.Entry(t1, V.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
- }
- };
- O.Statement0.prototype = {$isAstNode0: 1};
- Q.StaticImport0.prototype = {
- toString$0: function(_) {
- var t1 = this.url.toString$0(0),
- t2 = this.supports;
- if (t2 != null)
- t1 += " supports(" + t2.toString$0(0) + ")";
- t2 = this.media;
- if (t2 != null)
- t1 += " " + t2.toString$0(0);
- t1 += H.Primitives_stringFromCharCode(59);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isImport0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- S.StderrLogger0.prototype = {
- warn$4$deprecation$span$trace: function(message, deprecation, span, trace) {
- var t1;
- if (deprecation)
- J.write$1$x($.$get$stderr0()._node1$_stderr, "DEPRECATION ");
- J.write$1$x($.$get$stderr0()._node1$_stderr, "WARNING");
- if (span == null) {
- t1 = $.$get$stderr0();
- t1.writeln$1(": " + H.S(message));
- } else if (trace != null) {
- t1 = $.$get$stderr0();
- t1.writeln$1(": " + H.S(message) + "\n\n" + span.highlight$1$color(false));
- } else {
- t1 = $.$get$stderr0();
- t1.writeln$1(" on " + span.message$2$color(0, C.JSString_methods.$add("\n", message), false));
- }
- if (trace != null)
- t1.writeln$1(B.indent0(C.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
- t1.writeln$0();
- },
- warn$2$deprecation: function(message, deprecation) {
- return this.warn$4$deprecation$span$trace(message, deprecation, null, null);
- },
- warn$2$span: function(message, span) {
- return this.warn$4$deprecation$span$trace(message, false, span, null);
- },
- warn$3$deprecation$span: function(message, deprecation, span) {
- return this.warn$4$deprecation$span$trace(message, deprecation, span, null);
- },
- warn$2$trace: function(message, trace) {
- return this.warn$4$deprecation$span$trace(message, false, null, trace);
- },
- debug$2: function(message, span) {
- var url, t3, t4,
- t1 = span.file,
- t2 = span._file$_start;
- if (Y.FileLocation$_(t1, t2).file.url == null)
- url = "-";
- else {
- t3 = Y.FileLocation$_(t1, t2);
- url = $.$get$context().prettyUri$1(t3.file.url);
- }
- t3 = $.$get$stderr0();
- t4 = H.S(url) + ":";
- t2 = Y.FileLocation$_(t1, t2);
- t2 = t4 + (t2.file.getLine$1(t2.offset) + 1) + " ";
- t4 = t3._node1$_stderr;
- J.write$1$x(t4, t2);
- J.write$1$x(t4, "DEBUG");
- t3.writeln$1(": " + H.S(message));
- }
- };
- D.StringExpression0.prototype = {
- get$span: function() {
- return this.text.span;
- },
- accept$1$1: function(visitor) {
- return visitor.visitStringExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- asInterpolation$1$static: function($static) {
- var quote, t1, t2, buffer, t3, t4, t5, t6, _i, value, t7, t8, i, codeUnit, next, t9, _this = this;
- if (!_this.hasQuotes)
- return _this.text;
- quote = _this._string0$_bestQuote$0();
- t1 = new P.StringBuffer("");
- t2 = [];
- buffer = new Z.InterpolationBuffer0(t1, t2);
- t1._contents += H.Primitives_stringFromCharCode(quote);
- for (t3 = _this.text, t4 = t3.contents, t5 = t4.length, t6 = type$.Expression_2, _i = 0; _i < t5; ++_i) {
- value = t4[_i];
- if (t6._is(value)) {
- buffer._interpolation_buffer0$_flushText$0();
- t2.push(value);
- } else if (typeof value == "string")
- for (t7 = value.length, t8 = t7 - 1, i = 0; i < t7; ++i) {
- codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
- if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
- t1._contents += H.Primitives_stringFromCharCode(92);
- t1._contents += H.Primitives_stringFromCharCode(97);
- if (i !== t8) {
- next = C.JSString_methods._codeUnitAt$1(value, i + 1);
- if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || T.isHex0(next))
- t1._contents += H.Primitives_stringFromCharCode(32);
- }
- } else {
- if (codeUnit !== quote)
- if (codeUnit !== 92)
- t9 = $static && codeUnit === 35 && i < t8 && C.JSString_methods._codeUnitAt$1(value, i + 1) === 123;
- else
- t9 = true;
- else
- t9 = true;
- if (t9)
- t1._contents += H.Primitives_stringFromCharCode(92);
- t1._contents += H.Primitives_stringFromCharCode(codeUnit);
- }
- }
- }
- t1._contents += H.Primitives_stringFromCharCode(quote);
- return buffer.interpolation$1(t3.span);
- },
- asInterpolation$0: function() {
- return this.asInterpolation$1$static(false);
- },
- _string0$_bestQuote$0: function() {
- var t1, t2, containsDoubleQuote, _i, value, t3, i, codeUnit;
- for (t1 = this.text.contents, t2 = t1.length, containsDoubleQuote = false, _i = 0; _i < t2; ++_i) {
- value = t1[_i];
- if (typeof value == "string")
- for (t3 = value.length, i = 0; i < t3; ++i) {
- codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
- if (codeUnit === 39)
- return 34;
- if (codeUnit === 34)
- containsDoubleQuote = true;
- }
- }
- return containsDoubleQuote ? 39 : 34;
- },
- toString$0: function(_) {
- return this.asInterpolation$0().toString$0(0);
- },
- $isExpression0: 1,
- $isAstNode0: 1
- };
- D.closure116.prototype = {
- call$1: function($arguments) {
- var string = J.$index$asx($arguments, 0).assertString$1("string");
- if (!string.hasQuotes)
- return string;
- return new D.SassString0(string.text, false);
- },
- $signature: 11
- };
- D.closure115.prototype = {
- call$1: function($arguments) {
- var string = J.$index$asx($arguments, 0).assertString$1("string");
- if (string.hasQuotes)
- return string;
- return new D.SassString0(string.text, true);
- },
- $signature: 11
- };
- D.closure111.prototype = {
- call$1: function($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertString$1("string").get$sassLength();
- return new T.SassNumber0(t1, C.List_empty, C.List_empty, null);
- },
- $signature: 6
- };
- D.closure110.prototype = {
- call$1: function($arguments) {
- var indexInt, codeUnitIndex, _s5_ = "index",
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- insert = t1.$index($arguments, 1).assertString$1("insert"),
- index = t1.$index($arguments, 2).assertNumber$1(_s5_);
- index.assertNoUnits$1(_s5_);
- indexInt = index.assertInt$1(_s5_);
- if (indexInt < 0)
- indexInt = string.get$sassLength() + indexInt + 2;
- t1 = string.text;
- codeUnitIndex = B.codepointIndexToCodeUnitIndex0(t1, D._codepointForIndex0(indexInt, string.get$sassLength(), false));
- return new D.SassString0(J.replaceRange$3$asx(t1, codeUnitIndex, codeUnitIndex, insert.text), string.hasQuotes);
- },
- $signature: 11
- };
- D.closure109.prototype = {
- call$1: function($arguments) {
- var codepointIndex,
- t1 = J.getInterceptor$asx($arguments),
- t2 = t1.$index($arguments, 0).assertString$1("string").text,
- codeUnitIndex = J.indexOf$1$asx(t2, t1.$index($arguments, 1).assertString$1("substring").text);
- if (codeUnitIndex === -1)
- return C.C_SassNull;
- codepointIndex = B.codeUnitIndexToCodepointIndex0(t2, codeUnitIndex);
- return new T.SassNumber0(codepointIndex + 1, C.List_empty, C.List_empty, null);
- },
- $signature: 3
- };
- D.closure108.prototype = {
- call$1: function($arguments) {
- var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- start = t1.$index($arguments, 1).assertNumber$1("start-at"),
- end = t1.$index($arguments, 2).assertNumber$1("end-at");
- start.assertNoUnits$1("start");
- end.assertNoUnits$1("end");
- lengthInCodepoints = string.get$sassLength();
- endInt = end.assertInt$0();
- if (endInt === 0)
- return string.hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
- startCodepoint = D._codepointForIndex0(start.assertInt$0(), lengthInCodepoints, false);
- endCodepoint = D._codepointForIndex0(endInt, lengthInCodepoints, true);
- if (endCodepoint === lengthInCodepoints)
- --endCodepoint;
- if (endCodepoint < startCodepoint)
- return string.hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
- t1 = string.text;
- return new D.SassString0(J.substring$2$s(t1, B.codepointIndexToCodeUnitIndex0(t1, startCodepoint), B.codepointIndexToCodeUnitIndex0(t1, endCodepoint + 1)), string.hasQuotes);
- },
- $signature: 11
- };
- D.closure114.prototype = {
- call$1: function($arguments) {
- var t1, t2, t3, i, t4, t5,
- string = J.$index$asx($arguments, 0).assertString$1("string");
- for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
- t5 = t3._codeUnitAt$1(t1, i);
- t4 += H.Primitives_stringFromCharCode(t5 >= 97 && t5 <= 122 ? t5 & 4294967263 : t5);
- }
- return new D.SassString0(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
- },
- $signature: 11
- };
- D.closure113.prototype = {
- call$1: function($arguments) {
- var t1, t2, t3, i, t4, t5,
- string = J.$index$asx($arguments, 0).assertString$1("string");
- for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
- t5 = t3._codeUnitAt$1(t1, i);
- t4 += H.Primitives_stringFromCharCode(t5 >= 65 && t5 <= 90 ? t5 | 32 : t5);
- }
- return new D.SassString0(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
- },
- $signature: 11
- };
- D.closure112.prototype = {
- call$1: function($arguments) {
- var t1 = $.$get$_previousUniqueId0() + ($.$get$_random1().nextInt$1(36) + 1);
- $._previousUniqueId0 = t1;
- if (t1 > Math.pow(36, 6))
- $._previousUniqueId0 = C.JSInt_methods.$mod($.$get$_previousUniqueId0(), H._asIntNullable(Math.pow(36, 6)));
- return new D.SassString0("u" + C.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId0(), 36), 6, "0"), false);
- },
- $signature: 11
- };
- D._NodeSassString.prototype = {};
- D.closure214.prototype = {
- call$3: function(thisArg, value, dartValue) {
- J.set$dartValue$x(thisArg, dartValue == null ? new D.SassString0(value, false) : dartValue);
- },
- call$2: function(thisArg, value) {
- return this.call$3(thisArg, value, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues: function() {
- return [null];
- }
- };
- D.closure215.prototype = {
- call$1: function(thisArg) {
- return J.get$dartValue$x(thisArg).text;
- }
- };
- D.closure216.prototype = {
- call$2: function(thisArg, value) {
- J.set$dartValue$x(thisArg, new D.SassString0(value, false));
- },
- "call*": "call$2",
- $requiredArgCount: 2
- };
- D.closure217.prototype = {
- call$1: function(thisArg) {
- return J.toString$0$(J.get$dartValue$x(thisArg));
- }
- };
- D.SassString0.prototype = {
- get$sassLength: function() {
- var t1 = this._string$_sassLength;
- if (t1 == null) {
- t1 = this.text;
- t1.toString;
- t1 = new P.Runes(t1);
- t1 = this._string$_sassLength = t1.get$length(t1);
- }
- return t1;
- },
- get$isSpecialNumber: function() {
- var t1, t2;
- if (this.hasQuotes)
- return false;
- t1 = this.text;
- if (t1.length < 6)
- return false;
- t2 = J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32;
- if (t2 === 99) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
- return false;
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
- return false;
- if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 4) === 40;
- } else if (t2 === 118) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
- return false;
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
- } else if (t2 === 101) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
- return false;
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
- } else if (t2 === 109) {
- t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
- if (t2 === 97) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
- } else if (t2 === 105) {
- if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
- return false;
- return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
- } else
- return false;
- } else
- return false;
- },
- get$isVar: function() {
- if (this.hasQuotes)
- return false;
- var t1 = this.text;
- if (t1.length < 8)
- return false;
- 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;
- },
- get$isBlank: function() {
- return !this.hasQuotes && this.text.length === 0;
- },
- accept$1$1: function(visitor) {
- var t1 = visitor._serialize0$_quote && this.hasQuotes,
- t2 = this.text;
- if (t1)
- visitor._serialize0$_visitQuotedString$1(t2);
- else
- visitor._serialize0$_visitUnquotedString$1(t2);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertString$1: function($name) {
- return this;
- },
- plus$1: function(other) {
- var t1 = this.text,
- t2 = this.hasQuotes;
- if (other instanceof D.SassString0)
- return new D.SassString0(J.$add$ansx(t1, other.text), t2);
- else {
- other.toString;
- return new D.SassString0(J.$add$ansx(t1, N.serializeValue(other, false, true)), t2);
- }
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof D.SassString0 && this.text == other.text;
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.text);
- }
- };
- X.ModifiableCssStyleRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssStyleRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- return X.ModifiableCssStyleRule$0(this.selector, this.span, this.originalSelector);
- },
- $isCssStyleRule0: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.StyleRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitStyleRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return this.selector.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- V.CssStylesheet0.prototype = {
- get$isGroupEnd: function() {
- return false;
- },
- get$isChildless: function() {
- return false;
- },
- accept$1$1: function(visitor) {
- return visitor.visitCssStylesheet$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$children: function() {
- return this.children;
- },
- get$span: function() {
- return this.span;
- }
- };
- V.ModifiableCssStylesheet0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssStylesheet$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return new V.ModifiableCssStylesheet0(this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- $isCssStylesheet0: 1,
- get$span: function() {
- return this.span;
- }
- };
- V.StylesheetParser0.prototype = {
- parse$0: function() {
- return this.wrapSpanFormatException$1(new V.StylesheetParser_parse_closure0(this));
- },
- parseArgumentDeclaration$0: function() {
- return this._stylesheet0$_parseSingleProduction$1$1(new V.StylesheetParser_parseArgumentDeclaration_closure0(this), type$.ArgumentDeclaration_2);
- },
- _stylesheet0$_parseSingleProduction$1$1: function(production, $T) {
- return this.wrapSpanFormatException$1(new V.StylesheetParser__parseSingleProduction_closure0(this, production, $T));
- },
- parseSignature$0: function() {
- return this.wrapSpanFormatException$1(new V.StylesheetParser_parseSignature_closure(this));
- },
- _stylesheet0$_statement$1$root: function(root) {
- var t2, _this = this,
- t1 = _this.scanner;
- switch (t1.peekChar$0()) {
- case 64:
- return _this.atRule$2$root(new V.StylesheetParser__statement_closure0(_this), root);
- case 43:
- if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
- return _this._stylesheet0$_styleRule$0();
- _this._stylesheet0$_isUseAllowed = false;
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- return _this._stylesheet0$_includeRule$1(new S._SpanScannerState(t1, t2));
- case 61:
- if (!_this.get$indented())
- return _this._stylesheet0$_styleRule$0();
- _this._stylesheet0$_isUseAllowed = false;
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- _this.whitespace$0();
- return _this._stylesheet0$_mixinRule$1(new S._SpanScannerState(t1, t2));
- case 125:
- t1.error$2$length('unmatched "}".', 1);
- break;
- default:
- return _this._stylesheet0$_inStyleRule || _this._stylesheet0$_inUnknownAtRule || _this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock ? _this._stylesheet0$_declarationOrStyleRule$0() : _this._stylesheet0$_variableDeclarationOrStyleRule$0();
- }
- },
- _stylesheet0$_statement$0: function() {
- return this._stylesheet0$_statement$1$root(false);
- },
- variableDeclarationWithoutNamespace$2: function(namespace, start) {
- var precedingComment, t1, $name, t2, value, flagStart, guarded, global, flag, endPosition, declaration, _this = this, _box_0 = {};
- _box_0.start = start;
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- if (start == null) {
- t1 = _this.scanner;
- _box_0.start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- }
- $name = _this.variableName$0();
- t1 = namespace != null;
- if (t1)
- _this._stylesheet0$_assertPublic$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure1(_box_0, _this));
- if (_this.get$plainCss())
- _this.error$2("Sass variables aren't allowed in plain CSS.", _this.scanner.spanFrom$1(_box_0.start));
- _this.whitespace$0();
- t2 = _this.scanner;
- t2.expectChar$1(58);
- _this.whitespace$0();
- value = _this.expression$0();
- flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
- for (guarded = false, global = false; t2.scanChar$1(33);) {
- flag = _this.identifier$0();
- if (flag === "default")
- guarded = true;
- else if (flag === "global") {
- if (t1) {
- endPosition = t2._string_scanner$_position;
- _this.error$2("!global isn't allowed for variables in other modules.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
- }
- global = true;
- } else {
- endPosition = t2._string_scanner$_position;
- _this.error$2("Invalid flag name.", Y._FileSpan$(t2._sourceFile, flagStart.position, endPosition));
- }
- _this.whitespace$0();
- flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
- }
- _this.expectStatementSeparator$1("variable declaration");
- declaration = Z.VariableDeclaration$0($name, value, t2.spanFrom$1(_box_0.start), precedingComment, global, guarded, namespace);
- if (global)
- _this._stylesheet0$_globalVariables.putIfAbsent$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure2(declaration));
- return declaration;
- },
- variableDeclarationWithoutNamespace$0: function() {
- return this.variableDeclarationWithoutNamespace$2(null, null);
- },
- _stylesheet0$_variableDeclarationOrStyleRule$0: function() {
- var t1, t2, variableOrInterpolation, t3, _this = this;
- if (_this.get$plainCss())
- return _this._stylesheet0$_styleRule$0();
- if (_this.get$indented() && _this.scanner.scanChar$1(92))
- return _this._stylesheet0$_styleRule$0();
- if (!_this.lookingAtIdentifier$0())
- return _this._stylesheet0$_styleRule$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof Z.VariableDeclaration0)
- return variableOrInterpolation;
- else {
- t3 = new Z.InterpolationBuffer0(new P.StringBuffer(""), []);
- t3.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
- return _this._stylesheet0$_styleRule$2(t3, new S._SpanScannerState(t1, t2));
- }
- },
- _stylesheet0$_declarationOrStyleRule$0: function() {
- var t1, t2, declarationOrBuffer, _this = this;
- if (_this.get$plainCss() && _this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inUnknownAtRule)
- return _this._stylesheet0$_propertyOrVariableDeclaration$0();
- if (_this.get$indented() && _this.scanner.scanChar$1(92))
- return _this._stylesheet0$_styleRule$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- declarationOrBuffer = _this._stylesheet0$_declarationOrBuffer$0();
- return type$.Statement_2._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet0$_styleRule$2(type$.InterpolationBuffer_2._as(declarationOrBuffer), new S._SpanScannerState(t1, t2));
- },
- _stylesheet0$_declarationOrBuffer$0: function() {
- var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, value, postColonWhitespace, exception, _this = this, t1 = {},
- t2 = _this.scanner,
- start = new S._SpanScannerState(t2, t2._string_scanner$_position),
- nameBuffer = new Z.InterpolationBuffer0(new P.StringBuffer(""), []),
- first = t2.peekChar$0();
- if (first !== 58)
- if (first !== 42)
- if (first !== 46)
- t3 = first === 35 && t2.peekChar$1(1) !== 123;
- else
- t3 = true;
- else
- t3 = true;
- else
- t3 = true;
- if (t3) {
- t3 = t2.readChar$0();
- nameBuffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(t3);
- t3 = _this.rawText$1(_this.get$whitespace());
- nameBuffer._interpolation_buffer0$_text._contents += t3;
- startsWithPunctuation = true;
- } else
- startsWithPunctuation = false;
- if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- return nameBuffer;
- variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._stylesheet0$_variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof Z.VariableDeclaration0)
- return variableOrInterpolation;
- else
- nameBuffer.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
- _this._stylesheet0$_isUseAllowed = false;
- if (t2.matches$1("/*")) {
- t3 = _this.rawText$1(_this.get$loudComment());
- nameBuffer._interpolation_buffer0$_text._contents += t3;
- }
- midBuffer = new P.StringBuffer("");
- t3 = _this.get$whitespace();
- midBuffer._contents += _this.rawText$1(t3);
- t4 = t2._string_scanner$_position;
- if (!t2.scanChar$1(58)) {
- if (midBuffer._contents.length !== 0)
- nameBuffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(32);
- return nameBuffer;
- }
- midBuffer._contents += H.Primitives_stringFromCharCode(58);
- $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new S._SpanScannerState(t2, t4)));
- first = C.JSArray_methods.get$first($name.contents);
- if (C.JSString_methods.startsWith$1(typeof first == "string" ? first : "", "--")) {
- value = _this._stylesheet0$_interpolatedDeclarationValue$0();
- _this.expectStatementSeparator$1("custom property");
- return L.Declaration$0($name, t2.spanFrom$1(start), null, value);
- }
- if (t2.scanChar$1(58)) {
- t1 = nameBuffer;
- t2 = t1._interpolation_buffer0$_text;
- t2._contents += H.S(midBuffer);
- t2._contents += H.Primitives_stringFromCharCode(58);
- return t1;
- } else if (_this.get$indented() && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
- t1 = nameBuffer;
- t1._interpolation_buffer0$_text._contents += H.S(midBuffer);
- return t1;
- }
- postColonWhitespace = _this.rawText$1(t3);
- if (_this.lookingAtChildren$0())
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure1($name));
- midBuffer._contents += postColonWhitespace;
- couldBeSelector = postColonWhitespace.length === 0 && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0();
- beforeDeclaration = new S._SpanScannerState(t2, t2._string_scanner$_position);
- t1.value = null;
- try {
- if (_this.lookingAtChildren$0()) {
- t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
- t4 = t3.offset;
- value = new D.StringExpression0(X.Interpolation$0([], Y._FileSpan$(t3.file, t4, t4)), true);
- } else
- value = _this.expression$0();
- t3 = t1.value = value;
- if (_this.lookingAtChildren$0()) {
- if (couldBeSelector)
- _this.expectStatementSeparator$0();
- } else if (!_this.atEndOfStatement$0())
- _this.expectStatementSeparator$0();
- } catch (exception) {
- if (type$.FormatException._is(H.unwrapException(exception))) {
- if (!couldBeSelector)
- throw exception;
- t2.set$state(beforeDeclaration);
- additional = _this.almostAnyValue$0();
- if (!_this.get$indented() && t2.peekChar$0() === 59)
- throw exception;
- nameBuffer._interpolation_buffer0$_text._contents += H.S(midBuffer);
- nameBuffer.addInterpolation$1(additional);
- return nameBuffer;
- } else
- throw exception;
- }
- if (_this.lookingAtChildren$0())
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure2(t1, $name));
- else {
- _this.expectStatementSeparator$0();
- return L.Declaration$0($name, t2.spanFrom$1(start), null, t3);
- }
- },
- _stylesheet0$_variableDeclarationOrInterpolation$0: function() {
- var t1, start, identifier, t2, buffer, _this = this;
- if (!_this.lookingAtIdentifier$0())
- return _this.interpolatedIdentifier$0();
- t1 = _this.scanner;
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- identifier = _this.identifier$0();
- if (t1.matches$1(".$")) {
- t1.readChar$0();
- return _this.variableDeclarationWithoutNamespace$2(identifier, start);
- } else {
- t2 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer0(t2, []);
- t2._contents = identifier;
- if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- return buffer.interpolation$1(t1.spanFrom$1(start));
- }
- },
- _stylesheet0$_styleRule$2: function(buffer, start) {
- var t2, interpolation, t3, wasInStyleRule, _this = this, t1 = {};
- t1.start = start;
- _this._stylesheet0$_isUseAllowed = false;
- if (start == null) {
- t2 = _this.scanner;
- t2 = t1.start = new S._SpanScannerState(t2, t2._string_scanner$_position);
- } else
- t2 = start;
- interpolation = t1.interpolation = _this.styleRuleSelector$0();
- if (buffer != null) {
- buffer.addInterpolation$1(interpolation);
- t3 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(t2));
- } else
- t3 = interpolation;
- if (t3.contents.length === 0)
- _this.scanner.error$1('expected "}".');
- wasInStyleRule = _this._stylesheet0$_inStyleRule;
- _this._stylesheet0$_inStyleRule = true;
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), t2, new V.StylesheetParser__styleRule_closure0(t1, _this, wasInStyleRule));
- },
- _stylesheet0$_styleRule$0: function() {
- return this._stylesheet0$_styleRule$2(null, null);
- },
- _stylesheet0$_propertyOrVariableDeclaration$0: function() {
- var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
- _s48_ = "Nested declarations aren't allowed in plain CSS.",
- t1 = {},
- t2 = _this.scanner,
- start = new S._SpanScannerState(t2, t2._string_scanner$_position);
- t1.name = null;
- first = t2.peekChar$0();
- if (first !== 58)
- if (first !== 42)
- if (first !== 46)
- t3 = first === 35 && t2.peekChar$1(1) !== 123;
- else
- t3 = true;
- else
- t3 = true;
- else
- t3 = true;
- if (t3) {
- t3 = new P.StringBuffer("");
- nameBuffer = new Z.InterpolationBuffer0(t3, []);
- t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
- t3._contents += _this.rawText$1(_this.get$whitespace());
- nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
- } else if (!_this.get$plainCss()) {
- variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof Z.VariableDeclaration0)
- return variableOrInterpolation;
- else {
- type$.Interpolation_2._as(variableOrInterpolation);
- t1.name = variableOrInterpolation;
- }
- t3 = variableOrInterpolation;
- } else {
- $name = _this.interpolatedIdentifier$0();
- t1.name = $name;
- t3 = $name;
- }
- _this.whitespace$0();
- t2.expectChar$1(58);
- _this.whitespace$0();
- if (_this.lookingAtChildren$0()) {
- if (_this.get$plainCss())
- t2.error$1(_s48_);
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure1(t1));
- }
- value = _this.expression$0();
- if (_this.lookingAtChildren$0()) {
- if (_this.get$plainCss())
- t2.error$1(_s48_);
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure2(t1, value));
- } else {
- _this.expectStatementSeparator$0();
- return L.Declaration$0(t3, t2.spanFrom$1(start), null, value);
- }
- },
- _stylesheet0$_declarationChild$0: function() {
- if (this.scanner.peekChar$0() === 64)
- return this._stylesheet0$_declarationAtRule$0();
- return this._stylesheet0$_propertyOrVariableDeclaration$0();
- },
- atRule$2$root: function(child, root) {
- var $name, wasUseAllowed, value, optional, url, namespace, configuration, span, _this = this,
- _s9_ = "@use rule",
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$2$name(64, "@-rule");
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- wasUseAllowed = _this._stylesheet0$_isUseAllowed;
- _this._stylesheet0$_isUseAllowed = false;
- switch ($name.get$asPlain()) {
- case "at-root":
- return _this._stylesheet0$_atRootRule$1(start);
- case "charset":
- _this._stylesheet0$_isUseAllowed = wasUseAllowed;
- if (!root)
- _this._stylesheet0$_disallowedAtRule$1(start);
- _this.string$0();
- return null;
- case "content":
- return _this._stylesheet0$_contentRule$1(start);
- case "debug":
- return _this._stylesheet0$_debugRule$1(start);
- case "each":
- return _this._stylesheet0$_eachRule$2(start, child);
- case "else":
- return _this._stylesheet0$_disallowedAtRule$1(start);
- case "error":
- return _this._stylesheet0$_errorRule$1(start);
- case "extend":
- if (!_this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inMixin && !_this._stylesheet0$_inContentBlock)
- _this.error$2("@extend may only be used within style rules.", t1.spanFrom$1(start));
- value = _this.almostAnyValue$0();
- optional = t1.scanChar$1(33);
- if (optional)
- _this.expectIdentifier$1("optional");
- _this.expectStatementSeparator$1("@extend rule");
- return new X.ExtendRule0(value, optional, t1.spanFrom$1(start));
- case "for":
- return _this._stylesheet0$_forRule$2(start, child);
- case "forward":
- _this._stylesheet0$_isUseAllowed = wasUseAllowed;
- if (!root)
- _this._stylesheet0$_disallowedAtRule$1(start);
- return _this._stylesheet0$_forwardRule$1(start);
- case "function":
- return _this._stylesheet0$_functionRule$1(start);
- case "if":
- return _this._stylesheet0$_ifRule$2(start, child);
- case "import":
- return _this._stylesheet0$_importRule$1(start);
- case "include":
- return _this._stylesheet0$_includeRule$1(start);
- case "media":
- return _this.mediaRule$1(start);
- case "mixin":
- return _this._stylesheet0$_mixinRule$1(start);
- case "-moz-document":
- return _this.mozDocumentRule$2(start, $name);
- case "return":
- return _this._stylesheet0$_disallowedAtRule$1(start);
- case "supports":
- return _this.supportsRule$1(start);
- case "use":
- _this._stylesheet0$_isUseAllowed = wasUseAllowed;
- if (!root)
- _this._stylesheet0$_disallowedAtRule$1(start);
- url = _this._stylesheet0$_urlString$0();
- _this.whitespace$0();
- namespace = _this._stylesheet0$_useNamespace$2(url, start);
- _this.whitespace$0();
- configuration = _this._stylesheet0$_configuration$0();
- _this.expectStatementSeparator$1(_s9_);
- span = t1.spanFrom$1(start);
- if (!_this._stylesheet0$_isUseAllowed)
- _this.error$2("@use rules must be written before any other rules.", span);
- _this.expectStatementSeparator$1(_s9_);
- return T.UseRule$0(url, namespace, span, configuration);
- case "warn":
- return _this._stylesheet0$_warnRule$1(start);
- case "while":
- return _this._stylesheet0$_whileRule$2(start, child);
- default:
- return _this.unknownAtRule$2(start, $name);
- }
- },
- _stylesheet0$_declarationAtRule$0: function() {
- var _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- switch (_this._stylesheet0$_plainAtRuleName$0()) {
- case "content":
- return _this._stylesheet0$_contentRule$1(start);
- case "debug":
- return _this._stylesheet0$_debugRule$1(start);
- case "each":
- return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_declarationChild());
- case "else":
- return _this._stylesheet0$_disallowedAtRule$1(start);
- case "error":
- return _this._stylesheet0$_errorRule$1(start);
- case "for":
- return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_declarationAtRule());
- case "if":
- return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_declarationChild());
- case "include":
- return _this._stylesheet0$_includeRule$1(start);
- case "warn":
- return _this._stylesheet0$_warnRule$1(start);
- case "while":
- return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_declarationChild());
- default:
- return _this._stylesheet0$_disallowedAtRule$1(start);
- }
- },
- _stylesheet0$_functionChild$0: function() {
- var state, variableDeclarationError, statement, t2, namespace, exception, t3, start, value, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() !== 64) {
- t2 = t1._string_scanner$_position;
- state = new S._SpanScannerState(t1, t2);
- try {
- namespace = _this.identifier$0();
- t1.expectChar$1(46);
- t2 = _this.variableDeclarationWithoutNamespace$2(namespace, new S._SpanScannerState(t1, t2));
- return t2;
- } catch (exception) {
- t2 = H.unwrapException(exception);
- t3 = type$.SourceSpanFormatException;
- if (t3._is(t2)) {
- variableDeclarationError = t2;
- t1.set$state(state);
- statement = null;
- try {
- statement = _this._stylesheet0$_declarationOrStyleRule$0();
- } catch (exception) {
- if (t3._is(H.unwrapException(exception)))
- throw H.wrapException(variableDeclarationError);
- else
- throw exception;
- }
- _this.error$2("@function rules may not contain " + (statement instanceof X.StyleRule0 ? "style rules" : "declarations") + ".", statement.get$span());
- } else
- throw exception;
- }
- }
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- switch (_this._stylesheet0$_plainAtRuleName$0()) {
- case "debug":
- return _this._stylesheet0$_debugRule$1(start);
- case "each":
- return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_functionChild());
- case "else":
- return _this._stylesheet0$_disallowedAtRule$1(start);
- case "error":
- return _this._stylesheet0$_errorRule$1(start);
- case "for":
- return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_functionChild());
- case "if":
- return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_functionChild());
- case "return":
- value = _this.expression$0();
- _this.expectStatementSeparator$1("@return rule");
- return new B.ReturnRule0(value, t1.spanFrom$1(start));
- case "warn":
- return _this._stylesheet0$_warnRule$1(start);
- case "while":
- return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_functionChild());
- default:
- return _this._stylesheet0$_disallowedAtRule$1(start);
- }
- },
- _stylesheet0$_plainAtRuleName$0: function() {
- this.scanner.expectChar$2$name(64, "@-rule");
- var $name = this.identifier$0();
- this.whitespace$0();
- return $name;
- },
- _stylesheet0$_atRootRule$1: function(start) {
- var query, t2, t3, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40) {
- query = _this._stylesheet0$_atRootQuery$0();
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__atRootRule_closure1(query));
- } else if (_this.lookingAtChildren$0())
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__atRootRule_closure2());
- else {
- t2 = H.setRuntimeTypeInfo([_this._stylesheet0$_styleRule$0()], type$.JSArray_Statement_2);
- t1 = t1.spanFrom$1(start);
- t2 = P.List_List$unmodifiable(t2, type$.Statement_2);
- t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
- return new V.AtRootRule0(null, t1, t2, t3);
- }
- },
- _stylesheet0$_atRootQuery$0: function() {
- var interpolation, t2, t3, t4, buffer, t5, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 35) {
- interpolation = _this.singleInterpolation$0();
- return X.Interpolation$0([interpolation], interpolation.get$span());
- }
- t2 = t1._string_scanner$_position;
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer0(t3, t4);
- t1.expectChar$1(40);
- t3._contents += H.Primitives_stringFromCharCode(40);
- _this.whitespace$0();
- t5 = _this.expression$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t3._contents += H.Primitives_stringFromCharCode(58);
- t3._contents += H.Primitives_stringFromCharCode(32);
- t5 = _this.expression$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- t3._contents += H.Primitives_stringFromCharCode(41);
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_contentRule$1: function(start) {
- var t1, $arguments, t2, t3, _this = this;
- if (!_this._stylesheet0$_inMixin)
- _this.error$2("@content is only allowed within mixin declarations.", _this.scanner.spanFrom$1(start));
- _this.whitespace$0();
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40)
- $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
- else {
- t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- $arguments = new X.ArgumentInvocation0(C.List_empty19, C.Map_empty9, null, null, Y._FileSpan$(t2.file, t3, t3));
- }
- _this._stylesheet0$_mixinHasContent = true;
- _this.expectStatementSeparator$1("@content rule");
- return new Q.ContentRule0(t1.spanFrom$1(start), $arguments);
- },
- _stylesheet0$_debugRule$1: function(start) {
- var value = this.expression$0();
- this.expectStatementSeparator$1("@debug rule");
- return new Q.DebugRule0(value, this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_eachRule$2: function(start, child) {
- var variables, t1, _this = this,
- wasInControlDirective = _this._stylesheet0$_inControlDirective;
- _this._stylesheet0$_inControlDirective = true;
- variables = H.setRuntimeTypeInfo([_this.variableName$0()], type$.JSArray_String);
- _this.whitespace$0();
- for (t1 = _this.scanner; t1.scanChar$1(44);) {
- _this.whitespace$0();
- t1.expectChar$1(36);
- variables.push(_this.identifier$1$normalize(true));
- _this.whitespace$0();
- }
- _this.expectIdentifier$1("in");
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__eachRule_closure0(_this, wasInControlDirective, variables, _this.expression$0()));
- },
- _stylesheet0$_errorRule$1: function(start) {
- var value = this.expression$0();
- this.expectStatementSeparator$1("@error rule");
- return new D.ErrorRule0(value, this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_functionRule$1: function(start) {
- var $name, $arguments, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- $arguments = _this._stylesheet0$_argumentDeclaration$0();
- if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
- _this.error$2("Mixins may not contain function declarations.", _this.scanner.spanFrom$1(start));
- else if (_this._stylesheet0$_inControlDirective)
- _this.error$2("Functions may not be declared in control directives.", _this.scanner.spanFrom$1(start));
- switch (B.unvendor0($name)) {
- case "calc":
- case "element":
- case "expression":
- case "url":
- case "and":
- case "or":
- case "not":
- _this.error$2("Invalid function name.", _this.scanner.spanFrom$1(start));
- break;
- }
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_functionChild(), start, new V.StylesheetParser__functionRule_closure0($name, $arguments, precedingComment));
- },
- _stylesheet0$_forRule$2: function(start, child) {
- var variable, from, _this = this, t1 = {},
- wasInControlDirective = _this._stylesheet0$_inControlDirective;
- _this._stylesheet0$_inControlDirective = true;
- variable = _this.variableName$0();
- _this.whitespace$0();
- _this.expectIdentifier$1("from");
- _this.whitespace$0();
- t1.exclusive = null;
- from = _this.expression$1$until(new V.StylesheetParser__forRule_closure1(t1, _this));
- if (t1.exclusive == null)
- _this.scanner.error$1('Expected "to" or "through".');
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__forRule_closure2(t1, _this, wasInControlDirective, variable, from, _this.expression$0()));
- },
- _stylesheet0$_forwardRule$1: function(start) {
- var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
- url = _this._stylesheet0$_urlString$0();
- _this.whitespace$0();
- if (_this.scanIdentifier$1("as")) {
- _this.whitespace$0();
- prefix = _this.identifier$1$normalize(true);
- _this.scanner.expectChar$1(42);
- _this.whitespace$0();
- } else
- prefix = _null;
- if (_this.scanIdentifier$1("show")) {
- members = _this._stylesheet0$_memberList$0();
- shownMixinsAndFunctions = members.item1;
- shownVariables = members.item2;
- hiddenVariables = _null;
- hiddenMixinsAndFunctions = hiddenVariables;
- } else {
- if (_this.scanIdentifier$1("hide")) {
- members = _this._stylesheet0$_memberList$0();
- hiddenMixinsAndFunctions = members.item1;
- hiddenVariables = members.item2;
- } else {
- hiddenVariables = _null;
- hiddenMixinsAndFunctions = hiddenVariables;
- }
- shownVariables = _null;
- shownMixinsAndFunctions = shownVariables;
- }
- configuration = _this._stylesheet0$_configuration$1$allowGuarded(true);
- _this.expectStatementSeparator$1("@forward rule");
- span = _this.scanner.spanFrom$1(start);
- if (!_this._stylesheet0$_isUseAllowed)
- _this.error$2("@forward rules must be written before any other rules.", span);
- if (shownMixinsAndFunctions != null) {
- t1 = type$.String;
- t2 = P.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
- t3 = type$.UnmodifiableSetView_String;
- t1 = P.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
- t4 = configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
- return new L.ForwardRule0(url, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
- } else if (hiddenMixinsAndFunctions != null) {
- t1 = type$.String;
- t2 = P.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
- t3 = type$.UnmodifiableSetView_String;
- t1 = P.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
- t4 = configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
- return new L.ForwardRule0(url, _null, _null, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), prefix, t4, span);
- } else
- return new L.ForwardRule0(url, _null, _null, _null, _null, prefix, configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
- },
- _stylesheet0$_memberList$0: function() {
- var _this = this,
- t1 = type$.String,
- identifiers = P.LinkedHashSet_LinkedHashSet$_empty(t1),
- variables = P.LinkedHashSet_LinkedHashSet$_empty(t1);
- t1 = _this.scanner;
- do {
- _this.whitespace$0();
- _this.withErrorMessage$2("Expected variable, mixin, or function name", new V.StylesheetParser__memberList_closure0(_this, variables, identifiers));
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- return new S.Tuple2(identifiers, variables, type$.Tuple2_of_Set_String_and_Set_String);
- },
- _stylesheet0$_ifRule$2: function(start, child) {
- var condition, children, t1, t2, clauses, lastClause, result, t3, span, _this = this,
- ifIndentation = _this.get$currentIndentation(),
- wasInControlDirective = _this._stylesheet0$_inControlDirective;
- _this._stylesheet0$_inControlDirective = true;
- condition = _this.expression$0();
- children = _this.children$1(child);
- _this.whitespaceWithoutComments$0();
- t1 = type$.Statement_2;
- t2 = P.List_List$unmodifiable(children, t1);
- clauses = H.setRuntimeTypeInfo([new V.IfClause0(condition, t2, C.JSArray_methods.any$1(t2, new V.IfClause$__closure0()))], type$.JSArray_IfClause_2);
- while (true) {
- if (!_this.scanElse$1(ifIndentation)) {
- lastClause = null;
- break;
- }
- _this.whitespace$0();
- if (_this.scanIdentifier$1("if")) {
- _this.whitespace$0();
- t2 = _this.expression$0();
- result = P.List_List$from(_this.children$1(child), false, t1);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t3 = result;
- clauses.push(new V.IfClause0(t2, t3, C.JSArray_methods.any$1(t3, new V.IfClause$__closure0())));
- } else {
- result = P.List_List$from(_this.children$1(child), false, t1);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1 = result;
- lastClause = new V.IfClause0(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure0()));
- break;
- }
- }
- _this._stylesheet0$_inControlDirective = wasInControlDirective;
- span = _this.scanner.spanFrom$1(start);
- _this.whitespaceWithoutComments$0();
- return new V.IfRule0(P.List_List$unmodifiable(clauses, type$.IfClause_2), lastClause, span);
- },
- _stylesheet0$_importRule$1: function(start) {
- var argument, _this = this,
- imports = H.setRuntimeTypeInfo([], type$.JSArray_Import_2),
- t1 = _this.scanner;
- do {
- _this.whitespace$0();
- argument = _this.importArgument$0();
- if ((_this._stylesheet0$_inControlDirective || _this._stylesheet0$_inMixin) && argument instanceof B.DynamicImport0)
- _this._stylesheet0$_disallowedAtRule$1(start);
- imports.push(argument);
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- _this.expectStatementSeparator$1("@import rule");
- t1 = t1.spanFrom$1(start);
- return new B.ImportRule0(P.List_List$unmodifiable(imports, type$.Import_2), t1);
- },
- importArgument$0: function() {
- var url, urlSpan, innerError, queries, t2, t3, t4, exception, _this = this, _null = null,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- next = t1.peekChar$0();
- if (next === 117 || next === 85) {
- url = _this.dynamicUrl$0();
- _this.whitespace$0();
- queries = _this.tryImportQueries$0();
- t2 = X.Interpolation$0([url], t1.spanFrom$1(start));
- t1 = t1.spanFrom$1(start);
- t3 = queries == null;
- t4 = t3 ? _null : queries.item1;
- return new Q.StaticImport0(t2, t4, t3 ? _null : queries.item2, t1);
- }
- url = _this.string$0();
- urlSpan = t1.spanFrom$1(start);
- _this.whitespace$0();
- queries = _this.tryImportQueries$0();
- if (_this.isPlainImportUrl$1(url) || queries != null) {
- t2 = urlSpan;
- t2 = X.Interpolation$0([P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null)], urlSpan);
- t1 = t1.spanFrom$1(start);
- t3 = queries == null;
- t4 = t3 ? _null : queries.item1;
- return new Q.StaticImport0(t2, t4, t3 ? _null : queries.item2, t1);
- } else
- try {
- t1 = _this.parseImportUrl$1(url);
- return new B.DynamicImport0(t1, urlSpan);
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- innerError = t1;
- _this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), urlSpan);
- } else
- throw exception;
- }
- },
- parseImportUrl$1: function(url) {
- var t1 = $.$get$windows();
- if (t1.style.rootLength$1(url) > 0)
- return J.toString$0$(t1.toUri$1(url));
- P.Uri_parse(url);
- return url;
- },
- isPlainImportUrl$1: function(url) {
- var first;
- if (url.length < 5)
- return false;
- if (C.JSString_methods.endsWith$1(url, ".css"))
- return true;
- first = C.JSString_methods._codeUnitAt$1(url, 0);
- if (first === 47)
- return C.JSString_methods._codeUnitAt$1(url, 1) === 47;
- if (first !== 104)
- return false;
- return C.JSString_methods.startsWith$1(url, "http://") || C.JSString_methods.startsWith$1(url, "https://");
- },
- tryImportQueries$0: function() {
- var t1, start, supports, $name, media, _this = this;
- if (_this.scanIdentifier$1("supports")) {
- t1 = _this.scanner;
- t1.expectChar$1(40);
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this.scanIdentifier$1("not")) {
- _this.whitespace$0();
- supports = new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(start));
- } else if (t1.peekChar$0() === 40)
- supports = _this._stylesheet0$_supportsCondition$0();
- else {
- $name = _this.expression$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- supports = new L.SupportsDeclaration0($name, _this.expression$0(), t1.spanFrom$1(start));
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- } else
- supports = null;
- media = _this._stylesheet0$_lookingAtInterpolatedIdentifier$0() || _this.scanner.peekChar$0() === 40 ? _this._stylesheet0$_mediaQueryList$0() : null;
- if (supports == null && media == null)
- return null;
- return new S.Tuple2(supports, media, type$.Tuple2_SupportsCondition_Interpolation_2);
- },
- _stylesheet0$_includeRule$1: function(start) {
- var name0, namespace, $arguments, t3, t4, wasInContentBlock, $content, _this = this, _null = null, t1 = {},
- $name = _this.identifier$0(),
- t2 = _this.scanner;
- if (t2.scanChar$1(46)) {
- name0 = _this._stylesheet0$_publicIdentifier$0();
- namespace = $name;
- $name = name0;
- } else {
- $name = H.stringReplaceAllUnchecked($name, "_", "-");
- namespace = _null;
- }
- _this.whitespace$0();
- if (t2.peekChar$0() === 40)
- $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
- else {
- t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
- t4 = t3.offset;
- $arguments = new X.ArgumentInvocation0(C.List_empty19, C.Map_empty9, _null, _null, Y._FileSpan$(t3.file, t4, t4));
- }
- _this.whitespace$0();
- t1.contentArguments = null;
- if (_this.scanIdentifier$1("using")) {
- _this.whitespace$0();
- t3 = t1.contentArguments = _this._stylesheet0$_argumentDeclaration$0();
- _this.whitespace$0();
- } else
- t3 = _null;
- t3 = t3 == null;
- if (!t3 || _this.lookingAtChildren$0()) {
- if (t3) {
- t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
- t4 = t3.offset;
- t1.contentArguments = new B.ArgumentDeclaration0(C.List_empty20, _null, Y._FileSpan$(t3.file, t4, t4));
- }
- wasInContentBlock = _this._stylesheet0$_inContentBlock;
- _this._stylesheet0$_inContentBlock = true;
- $content = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__includeRule_closure0(t1));
- _this._stylesheet0$_inContentBlock = wasInContentBlock;
- } else {
- _this.expectStatementSeparator$0();
- $content = _null;
- }
- t1 = t2.spanFrom$2(start, start);
- return new A.IncludeRule0(namespace, $name, $arguments, $content, t1.expand$1(0, ($content == null ? $arguments : $content).get$span()));
- },
- mediaRule$1: function(start) {
- return this._stylesheet0$_withChildren$3(this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_mediaRule_closure0(this._stylesheet0$_mediaQueryList$0()));
- },
- _stylesheet0$_mixinRule$1: function(start) {
- var $name, t1, $arguments, t2, t3, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40)
- $arguments = _this._stylesheet0$_argumentDeclaration$0();
- else {
- t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- $arguments = new B.ArgumentDeclaration0(C.List_empty20, null, Y._FileSpan$(t2.file, t3, t3));
- }
- if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
- _this.error$2("Mixins may not contain mixin declarations.", t1.spanFrom$1(start));
- else if (_this._stylesheet0$_inControlDirective)
- _this.error$2("Mixins may not be declared in control directives.", t1.spanFrom$1(start));
- _this.whitespace$0();
- _this._stylesheet0$_inMixin = true;
- _this._stylesheet0$_mixinHasContent = false;
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__mixinRule_closure0(_this, $name, $arguments, precedingComment));
- },
- mozDocumentRule$2: function(start, $name) {
- var t5, t6, identifier, contents, argument, trailing, endPosition, start0, end, _this = this, _box_0 = {},
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- t4 = [],
- buffer = new Z.InterpolationBuffer0(t3, t4);
- _box_0.needsDeprecationWarning = false;
- for (t5 = _this.get$whitespace(); true;) {
- if (t1.peekChar$0() === 35) {
- t6 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t6);
- _box_0.needsDeprecationWarning = true;
- } else {
- t6 = t1._string_scanner$_position;
- identifier = _this.identifier$0();
- switch (identifier) {
- case "url":
- case "url-prefix":
- case "domain":
- contents = _this._stylesheet0$_tryUrlContents$2$name(new S._SpanScannerState(t1, t6), identifier);
- if (contents != null)
- buffer.addInterpolation$1(contents);
- else {
- t1.expectChar$1(40);
- _this.whitespace$0();
- argument = _this.interpolatedString$0();
- t1.expectChar$1(41);
- t3._contents += identifier;
- t3._contents += H.Primitives_stringFromCharCode(40);
- buffer.addInterpolation$1(argument.asInterpolation$0());
- t3._contents += H.Primitives_stringFromCharCode(41);
- }
- t6 = t3._contents;
- trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
- 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("")'))
- _box_0.needsDeprecationWarning = true;
- break;
- case "regexp":
- t3._contents += "regexp(";
- t1.expectChar$1(40);
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- t1.expectChar$1(41);
- t3._contents += H.Primitives_stringFromCharCode(41);
- _box_0.needsDeprecationWarning = true;
- break;
- default:
- endPosition = t1._string_scanner$_position;
- _this.error$2("Invalid function name.", Y._FileSpan$(t1._sourceFile, t6, endPosition));
- }
- }
- _this.whitespace$0();
- if (!t1.scanChar$1(44))
- break;
- t3._contents += H.Primitives_stringFromCharCode(44);
- start0 = t1._string_scanner$_position;
- t5.call$0();
- end = t1._string_scanner$_position;
- t3._contents += J.substring$2$s(t1.string, start0, end);
- }
- 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)))));
- },
- supportsRule$1: function(start) {
- var _this = this,
- condition = _this._stylesheet0$_supportsCondition$0();
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_supportsRule_closure0(condition));
- },
- _stylesheet0$_useNamespace$2: function(url, start) {
- var namespace, basename, dot, t1, exception, _this = this;
- if (_this.scanIdentifier$1("as")) {
- _this.whitespace$0();
- return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
- }
- basename = url.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(url.get$pathSegments());
- dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
- t1 = C.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
- namespace = C.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
- try {
- t1 = G.Parser$1(namespace, _this.logger, null)._parser$_parseIdentifier$0();
- return t1;
- } catch (exception) {
- if (H.unwrapException(exception) instanceof E.SassFormatException0)
- _this.error$2('Invalid Sass identifier "' + H.S(namespace) + '"', _this.scanner.spanFrom$1(start));
- else
- throw exception;
- }
- },
- _stylesheet0$_configuration$1$allowGuarded: function(allowGuarded) {
- var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, span, _this = this;
- if (!_this.scanIdentifier$1("with"))
- return null;
- variableNames = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- configuration = H.setRuntimeTypeInfo([], type$.JSArray_ConfiguredVariable_2);
- _this.whitespace$0();
- t1 = _this.scanner;
- t1.expectChar$1(40);
- for (; true;) {
- _this.whitespace$0();
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(36);
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- expression = _this._stylesheet0$_expressionUntilComma$0();
- t3 = t1._string_scanner$_position;
- if (allowGuarded && t1.scanChar$1(33))
- if (_this.identifier$0() === "default")
- guarded = true;
- else {
- endPosition = t1._string_scanner$_position;
- _this.error$2("Invalid flag name.", Y._FileSpan$(t1._sourceFile, t3, endPosition));
- guarded = false;
- }
- else
- guarded = false;
- endPosition = t1._string_scanner$_position;
- span = Y._FileSpan$(t1._sourceFile, t2, endPosition);
- if (variableNames.contains$1(0, $name))
- _this.error$2("The same variable may only be configured once.", span);
- variableNames.add$1(0, $name);
- configuration.push(new Z.ConfiguredVariable0($name, expression, guarded, span));
- if (!t1.scanChar$1(44))
- break;
- _this.whitespace$0();
- if (!_this._stylesheet0$_lookingAtExpression$0())
- break;
- }
- t1.expectChar$1(41);
- return configuration;
- },
- _stylesheet0$_configuration$0: function() {
- return this._stylesheet0$_configuration$1$allowGuarded(false);
- },
- _stylesheet0$_warnRule$1: function(start) {
- var value = this.expression$0();
- this.expectStatementSeparator$1("@warn rule");
- return new Y.WarnRule0(value, this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_whileRule$2: function(start, child) {
- var _this = this,
- wasInControlDirective = _this._stylesheet0$_inControlDirective;
- _this._stylesheet0$_inControlDirective = true;
- return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__whileRule_closure0(_this, wasInControlDirective, _this.expression$0()));
- },
- unknownAtRule$2: function(start, $name) {
- var t2, t3, rule, _this = this, t1 = {},
- wasInUnknownAtRule = _this._stylesheet0$_inUnknownAtRule;
- _this._stylesheet0$_inUnknownAtRule = true;
- t1.value = null;
- t2 = _this.scanner;
- t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
- if (_this.lookingAtChildren$0())
- rule = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_unknownAtRule_closure0(t1, $name));
- else {
- _this.expectStatementSeparator$0();
- rule = U.AtRule$0($name, t2.spanFrom$1(start), null, t3);
- }
- _this._stylesheet0$_inUnknownAtRule = wasInUnknownAtRule;
- return rule;
- },
- _stylesheet0$_disallowedAtRule$1: function(start) {
- this.almostAnyValue$0();
- this.error$2("This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_argumentDeclaration$0: function() {
- var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- _this.whitespace$0();
- $arguments = H.setRuntimeTypeInfo([], type$.JSArray_Argument_2);
- named = P.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- while (true) {
- if (!(t1.peekChar$0() === 36)) {
- restArgument = null;
- break;
- }
- t3 = t1._string_scanner$_position;
- t1.expectChar$1(36);
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- defaultValue = _this._stylesheet0$_expressionUntilComma$0();
- } else {
- if (t1.scanChar$1(46)) {
- t1.expectChar$1(46);
- t1.expectChar$1(46);
- _this.whitespace$0();
- restArgument = $name;
- break;
- }
- defaultValue = null;
- }
- endPosition = t1._string_scanner$_position;
- $arguments.push(new Z.Argument0($name, defaultValue, Y._FileSpan$(t1._sourceFile, t3, endPosition)));
- if (!named.add$1(0, $name))
- _this.error$2("Duplicate argument.", C.JSArray_methods.get$last($arguments).span);
- if (!t1.scanChar$1(44)) {
- restArgument = null;
- break;
- }
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
- return new B.ArgumentDeclaration0(P.List_List$unmodifiable($arguments, type$.Argument_2), restArgument, t1);
- },
- _stylesheet0$_argumentInvocation$1$mixin: function(mixin) {
- var positional, named, keywordRest, t3, rest, expression, t4, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- _this.whitespace$0();
- positional = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
- named = P.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Expression_2);
- t3 = !mixin;
- rest = null;
- while (true) {
- if (!_this._stylesheet0$_lookingAtExpression$0()) {
- keywordRest = null;
- break;
- }
- expression = _this._stylesheet0$_expressionUntilComma$1$singleEquals(t3);
- _this.whitespace$0();
- if (expression instanceof S.VariableExpression0 && t1.scanChar$1(58)) {
- _this.whitespace$0();
- t4 = expression.name;
- if (named.containsKey$1(t4))
- _this.error$2("Duplicate argument.", expression.span);
- named.$indexSet(0, t4, _this._stylesheet0$_expressionUntilComma$1$singleEquals(t3));
- } else if (t1.scanChar$1(46)) {
- t1.expectChar$1(46);
- t1.expectChar$1(46);
- if (rest != null) {
- _this.whitespace$0();
- keywordRest = expression;
- break;
- }
- rest = expression;
- } else if (named.get$isNotEmpty(named))
- t1.expect$1("...");
- else
- positional.push(expression);
- _this.whitespace$0();
- if (!t1.scanChar$1(44)) {
- keywordRest = null;
- break;
- }
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- return X.ArgumentInvocation$0(positional, named, t1.spanFrom$1(new S._SpanScannerState(t1, t2)), keywordRest, rest);
- },
- _stylesheet0$_argumentInvocation$0: function() {
- return this._stylesheet0$_argumentInvocation$1$mixin(false);
- },
- expression$3$bracketList$singleEquals$until: function(bracketList, singleEquals, until) {
- var t2, beforeBracket, t3, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, first, next, t4, _this = this,
- _s20_ = "Expected expression.",
- _box_0 = {},
- t1 = until != null;
- if (t1 && until.call$0())
- _this.scanner.error$1(_s20_);
- if (bracketList) {
- t2 = _this.scanner;
- beforeBracket = new S._SpanScannerState(t2, t2._string_scanner$_position);
- t2.expectChar$1(91);
- _this.whitespace$0();
- if (t2.scanChar$1(93)) {
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
- t2 = t2.spanFrom$1(beforeBracket);
- t1 = P.List_List$unmodifiable(t1, type$.Expression_2);
- return new D.ListExpression0(t1, C.ListSeparator_undecided0, true, t2);
- }
- } else
- beforeBracket = null;
- t2 = _this.scanner;
- t3 = t2._string_scanner$_position;
- wasInParentheses = _this._stylesheet0$_inParentheses;
- _box_0.operands = _box_0.operators = _box_0.spaceExpressions = _box_0.singleEqualsOperand = _box_0.commaExpressions = null;
- _box_0.allowSlash = _this.lookingAtNumber$0();
- _box_0.singleExpression = _this._stylesheet0$_singleExpression$0();
- resetState = new V.StylesheetParser_expression_resetState0(_box_0, _this, new S._SpanScannerState(t2, t3));
- resolveOneOperation = new V.StylesheetParser_expression_resolveOneOperation0(_box_0, _this);
- resolveOperations = new V.StylesheetParser_expression_resolveOperations0(_box_0, resolveOneOperation);
- addSingleExpression = new V.StylesheetParser_expression_addSingleExpression0(_box_0, _this, resetState, resolveOperations);
- addOperator = new V.StylesheetParser_expression_addOperator0(_box_0, _this, resolveOneOperation);
- resolveSpaceExpressions = new V.StylesheetParser_expression_resolveSpaceExpressions0(_box_0, resolveOperations);
- $label0$0:
- for (t3 = type$.JSArray_Expression_2; true;) {
- _this.whitespace$0();
- if (t1 && until.call$0())
- break $label0$0;
- first = t2.peekChar$0();
- switch (first) {
- case 40:
- addSingleExpression.call$1(_this._stylesheet0$_parentheses$0());
- break;
- case 91:
- addSingleExpression.call$1(_this.expression$1$bracketList(true));
- break;
- case 36:
- addSingleExpression.call$1(_this._stylesheet0$_variable$0());
- break;
- case 38:
- addSingleExpression.call$1(_this._stylesheet0$_selector$0());
- break;
- case 39:
- case 34:
- addSingleExpression.call$1(_this.interpolatedString$0());
- break;
- case 35:
- addSingleExpression.call$1(_this._stylesheet0$_hashExpression$0());
- break;
- case 61:
- t2.readChar$0();
- if (singleEquals && t2.peekChar$0() !== 61) {
- resolveSpaceExpressions.call$0();
- _box_0.singleEqualsOperand = _box_0.singleExpression;
- _box_0.singleExpression = null;
- } else {
- t2.expectChar$1(61);
- addOperator.call$1(C.BinaryOperator_YlX0);
- }
- break;
- case 33:
- next = t2.peekChar$1(1);
- if (next === 61) {
- t2.readChar$0();
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_i5H0);
- } else {
- if (next != null)
- if ((next | 32) !== 105)
- t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
- else
- t4 = true;
- else
- t4 = true;
- if (t4)
- addSingleExpression.call$1(_this._stylesheet0$_importantExpression$0());
- else
- break $label0$0;
- }
- break;
- case 60:
- t2.readChar$0();
- addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_33h0 : C.BinaryOperator_8qt0);
- break;
- case 62:
- t2.readChar$0();
- addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_1da0 : C.BinaryOperator_AcR2);
- break;
- case 42:
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_O1M0);
- break;
- case 43:
- if (_box_0.singleExpression == null)
- addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
- else {
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_AcR1);
- }
- break;
- case 45:
- next = t2.peekChar$1(1);
- if (next != null && next >= 48 && next <= 57 || next === 46)
- if (_box_0.singleExpression != null) {
- t4 = t2.peekChar$1(-1);
- t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
- } else
- t4 = true;
- else
- t4 = false;
- if (t4)
- addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
- else if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- addSingleExpression.call$1(_this.identifierLike$0());
- else if (_box_0.singleExpression == null)
- addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
- else {
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_iyO0);
- }
- break;
- case 47:
- if (_box_0.singleExpression == null)
- addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
- else {
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_RTB0);
- }
- break;
- case 37:
- t2.readChar$0();
- addOperator.call$1(C.BinaryOperator_2ad0);
- break;
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
- break;
- case 46:
- if (t2.peekChar$1(1) === 46)
- break $label0$0;
- addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
- break;
- case 97:
- if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
- addOperator.call$1(C.BinaryOperator_and_and_20);
- else
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- case 111:
- if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
- addOperator.call$1(C.BinaryOperator_or_or_10);
- else
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- case 117:
- case 85:
- if (t2.peekChar$1(1) === 43)
- addSingleExpression.call$1(_this._stylesheet0$_unicodeRange$0());
- else
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- case 98:
- case 99:
- case 100:
- case 101:
- case 102:
- case 103:
- case 104:
- case 105:
- case 106:
- case 107:
- case 108:
- case 109:
- case 110:
- case 112:
- case 113:
- case 114:
- case 115:
- case 116:
- case 118:
- case 119:
- case 120:
- case 121:
- case 122:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- case 77:
- case 78:
- case 79:
- case 80:
- case 81:
- case 82:
- case 83:
- case 84:
- case 86:
- case 87:
- case 88:
- case 89:
- case 90:
- case 95:
- case 92:
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- case 44:
- if (_this._stylesheet0$_inParentheses) {
- _this._stylesheet0$_inParentheses = false;
- if (_box_0.allowSlash) {
- resetState.call$0();
- break;
- }
- }
- if (_box_0.commaExpressions == null)
- _box_0.commaExpressions = H.setRuntimeTypeInfo([], t3);
- if (_box_0.singleExpression == null)
- t2.error$1(_s20_);
- resolveSpaceExpressions.call$0();
- _box_0.commaExpressions.push(_box_0.singleExpression);
- t2.readChar$0();
- _box_0.allowSlash = true;
- _box_0.singleExpression = null;
- break;
- default:
- if (first != null && first >= 128) {
- addSingleExpression.call$1(_this.identifierLike$0());
- break;
- } else
- break $label0$0;
- }
- }
- if (bracketList)
- t2.expectChar$1(93);
- if (_box_0.commaExpressions != null) {
- resolveSpaceExpressions.call$0();
- _this._stylesheet0$_inParentheses = wasInParentheses;
- t1 = _box_0.singleExpression;
- if (t1 != null)
- _box_0.commaExpressions.push(t1);
- t1 = _box_0.commaExpressions;
- t2 = bracketList ? t2.spanFrom$1(beforeBracket) : null;
- t1 = P.List_List$unmodifiable(t1, type$.Expression_2);
- return new D.ListExpression0(t1, C.ListSeparator_comma0, bracketList, t2 == null ? B.spanForList0(t1) : t2);
- } else if (bracketList && _box_0.spaceExpressions != null && _box_0.singleEqualsOperand == null) {
- resolveOperations.call$0();
- t1 = _box_0.spaceExpressions;
- t1.push(_box_0.singleExpression);
- t2 = t2.spanFrom$1(beforeBracket);
- t1 = P.List_List$unmodifiable(t1, type$.Expression_2);
- return new D.ListExpression0(t1, C.ListSeparator_space0, true, t2);
- } else {
- resolveSpaceExpressions.call$0();
- if (bracketList) {
- t1 = H.setRuntimeTypeInfo([_box_0.singleExpression], t3);
- t2 = t2.spanFrom$1(beforeBracket);
- t1 = P.List_List$unmodifiable(t1, type$.Expression_2);
- _box_0.singleExpression = new D.ListExpression0(t1, C.ListSeparator_undecided0, true, t2);
- }
- return _box_0.singleExpression;
- }
- },
- expression$2$singleEquals$until: function(singleEquals, until) {
- return this.expression$3$bracketList$singleEquals$until(false, singleEquals, until);
- },
- expression$1$bracketList: function(bracketList) {
- return this.expression$3$bracketList$singleEquals$until(bracketList, false, null);
- },
- expression$0: function() {
- return this.expression$3$bracketList$singleEquals$until(false, false, null);
- },
- expression$1$singleEquals: function(singleEquals) {
- return this.expression$3$bracketList$singleEquals$until(false, singleEquals, null);
- },
- expression$1$until: function(until) {
- return this.expression$3$bracketList$singleEquals$until(false, false, until);
- },
- _stylesheet0$_expressionUntilComma$1$singleEquals: function(singleEquals) {
- return this.expression$2$singleEquals$until(singleEquals, new V.StylesheetParser__expressionUntilComma_closure0(this));
- },
- _stylesheet0$_expressionUntilComma$0: function() {
- return this._stylesheet0$_expressionUntilComma$1$singleEquals(false);
- },
- _stylesheet0$_singleExpression$0: function() {
- var next, _this = this,
- t1 = _this.scanner,
- first = t1.peekChar$0();
- switch (first) {
- case 40:
- return _this._stylesheet0$_parentheses$0();
- case 47:
- return _this._stylesheet0$_unaryOperation$0();
- case 46:
- return _this._stylesheet0$_number$0();
- case 91:
- return _this.expression$1$bracketList(true);
- case 36:
- return _this._stylesheet0$_variable$0();
- case 38:
- return _this._stylesheet0$_selector$0();
- case 39:
- case 34:
- return _this.interpolatedString$0();
- case 35:
- return _this._stylesheet0$_hashExpression$0();
- case 43:
- next = t1.peekChar$1(1);
- return T.isDigit0(next) || next === 46 ? _this._stylesheet0$_number$0() : _this._stylesheet0$_unaryOperation$0();
- case 45:
- return _this._stylesheet0$_minusExpression$0();
- case 33:
- return _this._stylesheet0$_importantExpression$0();
- case 117:
- case 85:
- if (t1.peekChar$1(1) === 43)
- return _this._stylesheet0$_unicodeRange$0();
- else
- return _this.identifierLike$0();
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- return _this._stylesheet0$_number$0();
- case 97:
- case 98:
- case 99:
- case 100:
- case 101:
- case 102:
- case 103:
- case 104:
- case 105:
- case 106:
- case 107:
- case 108:
- case 109:
- case 110:
- case 111:
- case 112:
- case 113:
- case 114:
- case 115:
- case 116:
- case 118:
- case 119:
- case 120:
- case 121:
- case 122:
- case 65:
- case 66:
- case 67:
- case 68:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- case 77:
- case 78:
- case 79:
- case 80:
- case 81:
- case 82:
- case 83:
- case 84:
- case 86:
- case 87:
- case 88:
- case 89:
- case 90:
- case 95:
- case 92:
- return _this.identifierLike$0();
- default:
- if (first != null && first >= 128)
- return _this.identifierLike$0();
- t1.error$1("Expected expression.");
- }
- },
- _stylesheet0$_parentheses$0: function() {
- var wasInParentheses, start, first, expressions, t1, t2, _this = this;
- if (_this.get$plainCss())
- _this.scanner.error$2$length("Parentheses aren't allowed in plain CSS.", 1);
- wasInParentheses = _this._stylesheet0$_inParentheses;
- _this._stylesheet0$_inParentheses = true;
- try {
- t1 = _this.scanner;
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(40);
- _this.whitespace$0();
- if (!_this._stylesheet0$_lookingAtExpression$0()) {
- t1.expectChar$1(41);
- t2 = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
- t1 = t1.spanFrom$1(start);
- t2 = P.List_List$unmodifiable(t2, type$.Expression_2);
- return new D.ListExpression0(t2, C.ListSeparator_undecided0, false, t1);
- }
- first = _this._stylesheet0$_expressionUntilComma$0();
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t1 = _this._stylesheet0$_map$2(first, start);
- return t1;
- }
- if (!t1.scanChar$1(44)) {
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- return new T.ParenthesizedExpression0(first, t1);
- }
- _this.whitespace$0();
- expressions = H.setRuntimeTypeInfo([first], type$.JSArray_Expression_2);
- for (; true;) {
- if (!_this._stylesheet0$_lookingAtExpression$0())
- break;
- J.add$1$ax(expressions, _this._stylesheet0$_expressionUntilComma$0());
- if (!t1.scanChar$1(44))
- break;
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- t2 = P.List_List$unmodifiable(expressions, type$.Expression_2);
- return new D.ListExpression0(t2, C.ListSeparator_comma0, false, t1);
- } finally {
- _this._stylesheet0$_inParentheses = wasInParentheses;
- }
- },
- _stylesheet0$_map$2: function(first, start) {
- var t2, key, _this = this,
- t1 = type$.Tuple2_Expression_Expression_2,
- pairs = H.setRuntimeTypeInfo([new S.Tuple2(first, _this._stylesheet0$_expressionUntilComma$0(), t1)], type$.JSArray_Tuple2_Expression_Expression_2);
- for (t2 = _this.scanner; t2.scanChar$1(44);) {
- _this.whitespace$0();
- if (!_this._stylesheet0$_lookingAtExpression$0())
- break;
- key = _this._stylesheet0$_expressionUntilComma$0();
- t2.expectChar$1(58);
- _this.whitespace$0();
- pairs.push(new S.Tuple2(key, _this._stylesheet0$_expressionUntilComma$0(), t1));
- }
- t2.expectChar$1(41);
- t2 = t2.spanFrom$1(start);
- return new A.MapExpression0(P.List_List$unmodifiable(pairs, t1), t2);
- },
- _stylesheet0$_hashExpression$0: function() {
- var start, first, t2, identifier, buffer, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$1(1) === 123)
- return _this.identifierLike$0();
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(35);
- first = t1.peekChar$0();
- if (first != null && T.isDigit0(first))
- return new K.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start));
- t2 = t1._string_scanner$_position;
- identifier = _this.interpolatedIdentifier$0();
- if (_this._stylesheet0$_isHexColor$1(identifier)) {
- t1.set$state(new S._SpanScannerState(t1, t2));
- return new K.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start));
- }
- t2 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer0(t2, []);
- t2._contents += H.Primitives_stringFromCharCode(35);
- buffer.addInterpolation$1(identifier);
- return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- },
- _stylesheet0$_hexColorContents$1: function(start) {
- var red, green, blue, alpha, digit4, t2, t3, _this = this,
- digit1 = _this._stylesheet0$_hexDigit$0(),
- digit2 = _this._stylesheet0$_hexDigit$0(),
- digit3 = _this._stylesheet0$_hexDigit$0(),
- t1 = _this.scanner;
- if (!T.isHex0(t1.peekChar$0())) {
- red = (digit1 << 4 >>> 0) + digit1;
- green = (digit2 << 4 >>> 0) + digit2;
- blue = (digit3 << 4 >>> 0) + digit3;
- alpha = 1;
- } else {
- digit4 = _this._stylesheet0$_hexDigit$0();
- t2 = digit1 << 4 >>> 0;
- t3 = digit3 << 4 >>> 0;
- if (!T.isHex0(t1.peekChar$0())) {
- red = t2 + digit1;
- green = (digit2 << 4 >>> 0) + digit2;
- blue = t3 + digit3;
- alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
- } else {
- red = t2 + digit2;
- green = t3 + digit4;
- blue = (_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0();
- alpha = T.isHex0(t1.peekChar$0()) ? ((_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0()) / 255 : 1;
- }
- }
- return K.SassColor$rgb0(red, green, blue, alpha, t1.spanFrom$1(start));
- },
- _stylesheet0$_isHexColor$1: function(interpolation) {
- var t1,
- plain = interpolation.get$asPlain();
- if (plain == null)
- return false;
- t1 = plain.length;
- if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
- return false;
- t1 = new H.CodeUnits(plain);
- return t1.every$1(t1, T.character0__isHex$closure());
- },
- _stylesheet0$_hexDigit$0: function() {
- var t1 = this.scanner,
- char = t1.peekChar$0();
- if (char == null || !T.isHex0(char))
- t1.error$1("Expected hex digit.");
- return T.asHex0(t1.readChar$0());
- },
- _stylesheet0$_minusExpression$0: function() {
- var _this = this,
- next = _this.scanner.peekChar$1(1);
- if (T.isDigit0(next) || next === 46)
- return _this._stylesheet0$_number$0();
- if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- return _this.identifierLike$0();
- return _this._stylesheet0$_unaryOperation$0();
- },
- _stylesheet0$_importantExpression$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- this.whitespace$0();
- this.expectIdentifier$1("important");
- return new D.StringExpression0(X.Interpolation$0(["!important"], t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
- },
- _stylesheet0$_unaryOperation$0: function() {
- var _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- operator = _this._stylesheet0$_unaryOperatorFor$1(t1.readChar$0());
- if (operator == null)
- t1.error$2$position("Expected unary operator.", t1._string_scanner$_position - 1);
- else if (_this.get$plainCss() && operator !== C.UnaryOperator_zDx0)
- t1.error$3$length$position("Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
- _this.whitespace$0();
- return new X.UnaryOperationExpression0(operator, _this._stylesheet0$_singleExpression$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_unaryOperatorFor$1: function(character) {
- switch (character) {
- case 43:
- return C.UnaryOperator_j2w0;
- case 45:
- return C.UnaryOperator_U4G0;
- case 47:
- return C.UnaryOperator_zDx0;
- default:
- return null;
- }
- },
- _stylesheet0$_number$0: function() {
- var number, t4, unit, t5, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- first = t1.peekChar$0(),
- t3 = first === 45,
- sign = t3 ? -1 : 1;
- if (first === 43 || t3)
- t1.readChar$0();
- number = t1.peekChar$0() === 46 ? 0 : _this.naturalNumber$0();
- t3 = _this._stylesheet0$_tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
- t4 = _this._stylesheet0$_tryExponent$0();
- if (t1.scanChar$1(37))
- unit = "%";
- else {
- if (_this.lookingAtIdentifier$0())
- t5 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
- else
- t5 = false;
- unit = t5 ? _this.identifier$1$unit(true) : null;
- }
- return new T.NumberExpression0(sign * ((number + t3) * t4), unit, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_tryDecimal$1$allowTrailingDot: function(allowTrailingDot) {
- var t2,
- t1 = this.scanner,
- start = t1._string_scanner$_position;
- if (t1.peekChar$0() !== 46)
- return 0;
- if (!T.isDigit0(t1.peekChar$1(1))) {
- if (allowTrailingDot)
- return 0;
- t1.error$2$position("Expected digit.", t1._string_scanner$_position + 1);
- }
- t1.readChar$0();
- while (true) {
- t2 = t1.peekChar$0();
- if (!(t2 != null && t2 >= 48 && t2 <= 57))
- break;
- t1.readChar$0();
- }
- return P.double_parse(t1.substring$1(0, start));
- },
- _stylesheet0$_tryExponent$0: function() {
- var next, t2, exponentSign, exponent,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first !== 101 && first !== 69)
- return 1;
- next = t1.peekChar$1(1);
- if (!T.isDigit0(next) && next !== 45 && next !== 43)
- return 1;
- t1.readChar$0();
- t2 = next === 45;
- exponentSign = t2 ? -1 : 1;
- if (next === 43 || t2)
- t1.readChar$0();
- if (!T.isDigit0(t1.peekChar$0()))
- t1.error$1("Expected digit.");
- exponent = 0;
- while (true) {
- t2 = t1.peekChar$0();
- if (!(t2 != null && t2 >= 48 && t2 <= 57))
- break;
- exponent = exponent * 10 + (t1.readChar$0() - 48);
- }
- return Math.pow(10, exponentSign * exponent);
- },
- _stylesheet0$_unicodeRange$0: function() {
- var i, j, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- _this.expectIdentChar$1(117);
- t1.expectChar$1(43);
- for (i = 0; i < 6; ++i)
- if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure1()))
- break;
- if (t1.scanChar$1(63)) {
- ++i;
- for (; i < 6; ++i)
- if (!t1.scanChar$1(63))
- break;
- return new D.StringExpression0(X.Interpolation$0([t1.substring$1(0, start.position)], t1.spanFrom$1(start)), false);
- }
- if (i === 0)
- t1.error$1('Expected hex digit or "?".');
- if (t1.scanChar$1(45)) {
- for (j = 0; j < 6; ++j)
- if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure2()))
- break;
- if (j === 0)
- t1.error$1("Expected hex digit.");
- }
- if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
- t1.error$1("Expected end of identifier.");
- return new D.StringExpression0(X.Interpolation$0([t1.substring$1(0, start.position)], t1.spanFrom$1(start)), false);
- },
- _stylesheet0$_variable$0: function() {
- var _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- $name = _this.variableName$0();
- if (_this.get$plainCss())
- _this.error$2("Sass variables aren't allowed in plain CSS.", t1.spanFrom$1(start));
- return new S.VariableExpression0(null, $name, t1.spanFrom$1(start));
- },
- _stylesheet0$_selector$0: function() {
- var t1, start, _this = this;
- if (_this.get$plainCss())
- _this.scanner.error$2$length("The parent selector isn't allowed in plain CSS.", 1);
- t1 = _this.scanner;
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(38);
- if (t1.scanChar$1(38)) {
- _this.logger.warn$2$span('In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.', t1.spanFrom$1(start));
- t1.set$position(t1._string_scanner$_position - 1);
- }
- return new T.SelectorExpression0(t1.spanFrom$1(start));
- },
- interpolatedString$0: function() {
- var t3, t4, buffer, next, second, t5,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- quote = t1.readChar$0();
- if (quote !== 39 && quote !== 34)
- t1.error$2$position("Expected string.", t2);
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer0(t3, t4);
- for (; true;) {
- next = t1.peekChar$0();
- if (next === quote) {
- t1.readChar$0();
- break;
- } else if (next == null || next === 10 || next === 13 || next === 12)
- t1.error$1("Expected " + H.Primitives_stringFromCharCode(quote) + ".");
- else if (next === 92) {
- second = t1.peekChar$1(1);
- if (second === 10 || second === 13 || second === 12) {
- t1.readChar$0();
- t1.readChar$0();
- if (second === 13)
- t1.scanChar$1(10);
- } else
- t3._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
- } else if (next === 35)
- if (t1.peekChar$1(1) === 123) {
- t5 = this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- }
- return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), true);
- },
- identifierLike$0: function() {
- var invocation, lower, color, specialFunction, $name, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- identifier = _this.interpolatedIdentifier$0(),
- plain = identifier.get$asPlain(),
- t2 = plain == null;
- if (!t2) {
- if (plain === "if") {
- invocation = _this._stylesheet0$_argumentInvocation$0();
- return new L.IfExpression0(invocation, B.spanForList0(H.setRuntimeTypeInfo([identifier, invocation], type$.JSArray_AstNode_2)));
- } else if (plain === "not") {
- _this.whitespace$0();
- return new X.UnaryOperationExpression0(C.UnaryOperator_not_not0, _this._stylesheet0$_singleExpression$0(), identifier.span);
- }
- lower = plain.toLowerCase();
- if (t1.peekChar$0() !== 40) {
- switch (plain) {
- case "false":
- return new Z.BooleanExpression0(false, identifier.span);
- case "null":
- return new O.NullExpression0(identifier.span);
- case "true":
- return new Z.BooleanExpression0(true, identifier.span);
- }
- color = $.$get$colorsByName0().$index(0, lower);
- if (color != null)
- return new K.ColorExpression0(K.SassColor$rgb0(color.get$red(), color.get$green(), color.get$blue(), color.alpha, identifier.span));
- }
- specialFunction = _this.trySpecialFunction$2(lower, start);
- if (specialFunction != null)
- return specialFunction;
- }
- switch (t1.peekChar$0()) {
- case 46:
- if (t1.peekChar$1(1) === 46)
- return new D.StringExpression0(identifier, false);
- t1.readChar$0();
- if (t2)
- _this.error$2("Interpolation isn't allowed in namespaces.", identifier.span);
- if (t1.peekChar$0() === 36) {
- $name = _this.variableName$0();
- _this._stylesheet0$_assertPublic$2($name, new V.StylesheetParser_identifierLike_closure0(_this, start));
- return new S.VariableExpression0(plain, $name, t1.spanFrom$1(start));
- }
- t2 = t1._string_scanner$_position;
- return new F.FunctionExpression0(plain, X.Interpolation$0([_this._stylesheet0$_publicIdentifier$0()], t1.spanFrom$1(new S._SpanScannerState(t1, t2))), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
- case 40:
- return new F.FunctionExpression0(null, identifier, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
- default:
- return new D.StringExpression0(identifier, false);
- }
- },
- trySpecialFunction$2: function($name, start) {
- var t1, buffer, t2, t3, next, contents, _this = this, _null = null;
- switch (B.unvendor0($name)) {
- case "calc":
- case "element":
- case "expression":
- if (!_this.scanner.scanChar$1(40))
- return _null;
- t1 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer0(t1, []);
- t1._contents = $name;
- t1._contents += H.Primitives_stringFromCharCode(40);
- break;
- case "min":
- case "max":
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- if (!t1.scanChar$1(40))
- return _null;
- _this.whitespace$0();
- t3 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer0(t3, []);
- t3._contents = $name;
- t3._contents += H.Primitives_stringFromCharCode(40);
- if (!_this._stylesheet0$_tryMinMaxContents$1(buffer)) {
- t1.set$state(new S._SpanScannerState(t1, t2));
- return _null;
- }
- return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- case "progid":
- t1 = _this.scanner;
- if (!t1.scanChar$1(58))
- return _null;
- t2 = new P.StringBuffer("");
- buffer = new Z.InterpolationBuffer0(t2, []);
- t2._contents = $name;
- t2._contents += H.Primitives_stringFromCharCode(58);
- next = t1.peekChar$0();
- while (true) {
- if (next != null) {
- if (!(next >= 97 && next <= 122))
- t3 = next >= 65 && next <= 90;
- else
- t3 = true;
- t3 = t3 || next === 46;
- } else
- t3 = false;
- if (!t3)
- break;
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- next = t1.peekChar$0();
- }
- t1.expectChar$1(40);
- t2._contents += H.Primitives_stringFromCharCode(40);
- break;
- case "url":
- contents = _this._stylesheet0$_tryUrlContents$1(start);
- return contents == null ? _null : new D.StringExpression0(contents, false);
- default:
- return _null;
- }
- buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true).text);
- t1 = _this.scanner;
- t1.expectChar$1(41);
- buffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(41);
- return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- },
- _stylesheet0$_tryMinMaxContents$2$allowComma: function(buffer, allowComma) {
- var t1, t2, t3, t4, start, end, exception, t5, _this = this;
- for (t1 = _this.scanner, t2 = buffer._interpolation_buffer0$_text, t3 = !allowComma, t4 = _this.get$_stylesheet0$_number(); true;) {
- switch (t1.peekChar$0()) {
- case 45:
- case 43:
- case 48:
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- try {
- start = t1._string_scanner$_position;
- t4.call$0();
- end = t1._string_scanner$_position;
- t2._contents += J.substring$2$s(t1.string, start, end);
- } catch (exception) {
- if (type$.FormatException._is(H.unwrapException(exception)))
- return false;
- else
- throw exception;
- }
- break;
- case 35:
- if (t1.peekChar$1(1) !== 123)
- return false;
- t5 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- buffer._interpolation_buffer0$_contents.push(t5);
- break;
- case 99:
- case 67:
- if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "calc"))
- return false;
- break;
- case 101:
- case 69:
- if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "env"))
- return false;
- break;
- case 118:
- case 86:
- if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "var"))
- return false;
- break;
- case 40:
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- if (!_this._stylesheet0$_tryMinMaxContents$2$allowComma(buffer, false))
- return false;
- break;
- case 109:
- case 77:
- t1.readChar$0();
- if (_this.scanIdentChar$1(105)) {
- if (!_this.scanIdentChar$1(110))
- return false;
- t2._contents += "min(";
- } else if (_this.scanIdentChar$1(97)) {
- if (!_this.scanIdentChar$1(120))
- return false;
- t2._contents += "max(";
- } else
- return false;
- if (!t1.scanChar$1(40))
- return false;
- if (!_this._stylesheet0$_tryMinMaxContents$1(buffer))
- return false;
- break;
- default:
- return false;
- }
- _this.whitespace$0();
- switch (t1.peekChar$0()) {
- case 41:
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- return true;
- case 43:
- case 45:
- case 42:
- case 47:
- t2._contents += H.Primitives_stringFromCharCode(32);
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += H.Primitives_stringFromCharCode(32);
- break;
- case 44:
- if (t3)
- return false;
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += H.Primitives_stringFromCharCode(32);
- break;
- default:
- return false;
- }
- _this.whitespace$0();
- }
- },
- _stylesheet0$_tryMinMaxContents$1: function(buffer) {
- return this._stylesheet0$_tryMinMaxContents$2$allowComma(buffer, true);
- },
- _stylesheet0$_tryMinMaxFunction$2: function(buffer, $name) {
- var t1, t2;
- if (!this.scanIdentifier$1($name))
- return false;
- t1 = this.scanner;
- if (!t1.scanChar$1(40))
- return false;
- t2 = buffer._interpolation_buffer0$_text;
- t2._contents += $name;
- t2._contents += H.Primitives_stringFromCharCode(40);
- buffer.addInterpolation$1(this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true).asInterpolation$0());
- t2._contents += H.Primitives_stringFromCharCode(41);
- if (!t1.scanChar$1(41))
- return false;
- return true;
- },
- _stylesheet0$_tryUrlContents$2$name: function(start, $name) {
- var t3, t4, buffer, next, t5, endPosition, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- if (!t1.scanChar$1(40))
- return null;
- _this.whitespaceWithoutComments$0();
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer0(t3, t4);
- t3._contents = $name == null ? "url" : $name;
- t3._contents += H.Primitives_stringFromCharCode(40);
- for (; true;) {
- next = t1.peekChar$0();
- if (next == null)
- break;
- else {
- if (next !== 33)
- if (next !== 37)
- if (next !== 38)
- t5 = next >= 42 && next <= 126 || next >= 128;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- if (t5)
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (next === 92)
- t3._contents += H.S(_this.escape$0());
- else if (next === 35)
- if (t1.peekChar$1(1) === 123) {
- t5 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
- _this.whitespaceWithoutComments$0();
- if (t1.peekChar$0() !== 41)
- break;
- } else if (next === 41) {
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- endPosition = t1._string_scanner$_position;
- return buffer.interpolation$1(Y._FileSpan$(t1._sourceFile, start.position, endPosition));
- } else
- break;
- }
- }
- t1.set$state(new S._SpanScannerState(t1, t2));
- return null;
- },
- _stylesheet0$_tryUrlContents$1: function(start) {
- return this._stylesheet0$_tryUrlContents$2$name(start, null);
- },
- dynamicUrl$0: function() {
- var contents, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- _this.expectIdentifier$1("url");
- contents = _this._stylesheet0$_tryUrlContents$1(start);
- if (contents != null)
- return new D.StringExpression0(contents, false);
- return new F.FunctionExpression0(null, X.Interpolation$0(["url"], t1.spanFrom$1(start)), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
- },
- almostAnyValue$0: function() {
- var t4, next, commentStart, end, t5, contents, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- buffer = new Z.InterpolationBuffer0(t3, []);
- $label0$1:
- for (t4 = t1.string; true;) {
- next = t1.peekChar$0();
- switch (next) {
- case 92:
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 34:
- case 39:
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- break;
- case 47:
- commentStart = t1._string_scanner$_position;
- if (_this.scanComment$0()) {
- end = t1._string_scanner$_position;
- t3._contents += J.substring$2$s(t4, commentStart, end);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 35:
- if (t1.peekChar$1(1) === 123)
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 13:
- case 10:
- case 12:
- if (_this.get$indented())
- break $label0$1;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 33:
- case 59:
- case 123:
- case 125:
- break $label0$1;
- case 117:
- case 85:
- t5 = t1._string_scanner$_position;
- if (!_this.scanIdentifier$1("url")) {
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- }
- contents = _this._stylesheet0$_tryUrlContents$1(new S._SpanScannerState(t1, t5));
- if (contents == null) {
- if (t5 < 0 || t5 > t4.length)
- H.throwExpression(P.ArgumentError$("Invalid position " + t5));
- t1._string_scanner$_position = t5;
- t1._lastMatch = null;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- } else
- buffer.addInterpolation$1(contents);
- break;
- default:
- if (next == null)
- break $label0$1;
- if (_this.lookingAtIdentifier$0())
- t3._contents += _this.identifier$0();
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- }
- }
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_interpolatedDeclarationValue$1$allowEmpty: function(allowEmpty) {
- var t4, wroteNewline, next, t5, start, end, contents, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- buffer = new Z.InterpolationBuffer0(t3, []),
- brackets = H.setRuntimeTypeInfo([], type$.JSArray_int);
- $label0$1:
- for (t4 = t1.string, wroteNewline = false; true;) {
- next = t1.peekChar$0();
- switch (next) {
- case 92:
- t3._contents += H.S(_this.escape$1$identifierStart(true));
- wroteNewline = false;
- break;
- case 34:
- case 39:
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- wroteNewline = false;
- break;
- case 47:
- if (t1.peekChar$1(1) === 42) {
- t5 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t5.call$0();
- end = t1._string_scanner$_position;
- t3._contents += J.substring$2$s(t4, start, end);
- } else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- case 35:
- if (t1.peekChar$1(1) === 123)
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- case 32:
- case 9:
- if (!wroteNewline) {
- t5 = t1.peekChar$1(1);
- t5 = !(t5 === 32 || t5 === 9 || t5 === 10 || t5 === 13 || t5 === 12);
- } else
- t5 = true;
- if (t5)
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else
- t1.readChar$0();
- break;
- case 10:
- case 13:
- case 12:
- if (_this.get$indented())
- break $label0$1;
- t5 = t1.peekChar$1(-1);
- if (!(t5 === 10 || t5 === 13 || t5 === 12))
- t3._contents += "\n";
- t1.readChar$0();
- wroteNewline = true;
- break;
- case 40:
- case 123:
- case 91:
- t3._contents += H.Primitives_stringFromCharCode(next);
- brackets.push(T.opposite0(t1.readChar$0()));
- wroteNewline = false;
- break;
- case 41:
- case 125:
- case 93:
- if (brackets.length === 0)
- break $label0$1;
- t3._contents += H.Primitives_stringFromCharCode(next);
- t1.expectChar$1(brackets.pop());
- wroteNewline = false;
- break;
- case 59:
- if (brackets.length === 0)
- break $label0$1;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- break;
- case 117:
- case 85:
- t5 = t1._string_scanner$_position;
- if (!_this.scanIdentifier$1("url")) {
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- }
- contents = _this._stylesheet0$_tryUrlContents$1(new S._SpanScannerState(t1, t5));
- if (contents == null) {
- if (t5 < 0 || t5 > t4.length)
- H.throwExpression(P.ArgumentError$("Invalid position " + t5));
- t1._string_scanner$_position = t5;
- t1._lastMatch = null;
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- } else
- buffer.addInterpolation$1(contents);
- wroteNewline = false;
- break;
- default:
- if (next == null)
- break $label0$1;
- if (_this.lookingAtIdentifier$0())
- t3._contents += _this.identifier$0();
- else
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- wroteNewline = false;
- break;
- }
- }
- if (brackets.length !== 0)
- t1.expectChar$1(C.JSArray_methods.get$last(brackets));
- if (!allowEmpty && buffer._interpolation_buffer0$_contents.length === 0 && t3._contents.length === 0)
- t1.error$1("Expected token.");
- return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), false);
- },
- _stylesheet0$_interpolatedDeclarationValue$0: function() {
- return this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(false);
- },
- interpolatedIdentifier$0: function() {
- var first, _this = this,
- _s20_ = "Expected identifier.",
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- t2 = new P.StringBuffer(""),
- t3 = [],
- buffer = new Z.InterpolationBuffer0(t2, t3);
- if (t1.scanChar$1(45)) {
- t2._contents += H.Primitives_stringFromCharCode(45);
- if (t1.scanChar$1(45)) {
- t2._contents += H.Primitives_stringFromCharCode(45);
- _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
- return buffer.interpolation$1(t1.spanFrom$1(start));
- }
- }
- first = t1.peekChar$0();
- if (first == null)
- t1.error$1(_s20_);
- else if (first === 95 || T.isAlphabetic1(first) || first >= 128)
- t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- else if (first === 92)
- t2._contents += H.S(_this.escape$1$identifierStart(true));
- else if (first === 35 && t1.peekChar$1(1) === 123) {
- t2 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t3.push(t2);
- } else
- t1.error$1(_s20_);
- _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
- return buffer.interpolation$1(t1.spanFrom$1(start));
- },
- _stylesheet0$_interpolatedIdentifierBody$1: function(buffer) {
- var t1, t2, t3, next, t4;
- for (t1 = buffer._interpolation_buffer0$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer0$_text; true;) {
- next = t2.peekChar$0();
- if (next == null)
- break;
- else {
- if (next !== 95)
- if (next !== 45) {
- if (!(next >= 97 && next <= 122))
- t4 = next >= 65 && next <= 90;
- else
- t4 = true;
- if (!t4)
- t4 = next >= 48 && next <= 57;
- else
- t4 = true;
- t4 = t4 || next >= 128;
- } else
- t4 = true;
- else
- t4 = true;
- if (t4)
- t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
- else if (next === 92)
- t3._contents += H.S(this.escape$0());
- else if (next === 35 && t2.peekChar$1(1) === 123) {
- t4 = this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t1.push(t4);
- } else
- break;
- }
- }
- },
- singleInterpolation$0: function() {
- var contents, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("#{");
- _this.whitespace$0();
- contents = _this.expression$0();
- t1.expectChar$1(125);
- if (_this.get$plainCss())
- _this.error$2("Interpolation isn't allowed in plain CSS.", t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- return contents;
- },
- _stylesheet0$_mediaQueryList$0: function() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new P.StringBuffer(""),
- buffer = new Z.InterpolationBuffer0(t3, []);
- for (; true;) {
- this.whitespace$0();
- this._stylesheet0$_mediaQuery$1(buffer);
- if (!t1.scanChar$1(44))
- break;
- t3._contents += H.Primitives_stringFromCharCode(44);
- t3._contents += H.Primitives_stringFromCharCode(32);
- }
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_mediaQuery$1: function(buffer) {
- var t1, identifier, _this = this;
- if (_this.scanner.peekChar$0() !== 40) {
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- _this.whitespace$0();
- if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- return;
- t1 = buffer._interpolation_buffer0$_text;
- t1._contents += H.Primitives_stringFromCharCode(32);
- identifier = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- if (B.equalsIgnoreCase0(identifier.get$asPlain(), "and"))
- t1._contents += " and ";
- else {
- buffer.addInterpolation$1(identifier);
- if (_this.scanIdentifier$1("and")) {
- _this.whitespace$0();
- t1._contents += " and ";
- } else
- return;
- }
- }
- for (t1 = buffer._interpolation_buffer0$_text; true;) {
- _this.whitespace$0();
- buffer.addInterpolation$1(_this._stylesheet0$_mediaFeature$0());
- _this.whitespace$0();
- if (!_this.scanIdentifier$1("and"))
- break;
- t1._contents += " and ";
- }
- },
- _stylesheet0$_mediaFeature$0: function() {
- var interpolation, t2, t3, t4, buffer, t5, next, isAngle, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 35) {
- interpolation = _this.singleInterpolation$0();
- return X.Interpolation$0([interpolation], interpolation.get$span());
- }
- t2 = t1._string_scanner$_position;
- t3 = new P.StringBuffer("");
- t4 = [];
- buffer = new Z.InterpolationBuffer0(t3, t4);
- t1.expectChar$1(40);
- t3._contents += H.Primitives_stringFromCharCode(40);
- _this.whitespace$0();
- t5 = _this._stylesheet0$_expressionUntilComparison$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t3._contents += H.Primitives_stringFromCharCode(58);
- t3._contents += H.Primitives_stringFromCharCode(32);
- t5 = _this.expression$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- } else {
- next = t1.peekChar$0();
- isAngle = next === 60 || next === 62;
- if (isAngle || next === 61) {
- t3._contents += H.Primitives_stringFromCharCode(32);
- t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
- if (isAngle && t1.scanChar$1(61))
- t3._contents += H.Primitives_stringFromCharCode(61);
- t3._contents += H.Primitives_stringFromCharCode(32);
- _this.whitespace$0();
- t5 = _this._stylesheet0$_expressionUntilComparison$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- if (isAngle && t1.scanChar$1(next)) {
- t3._contents += H.Primitives_stringFromCharCode(32);
- t3._contents += H.Primitives_stringFromCharCode(next);
- if (t1.scanChar$1(61))
- t3._contents += H.Primitives_stringFromCharCode(61);
- t3._contents += H.Primitives_stringFromCharCode(32);
- _this.whitespace$0();
- t5 = _this._stylesheet0$_expressionUntilComparison$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- }
- }
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- t3._contents += H.Primitives_stringFromCharCode(41);
- return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_expressionUntilComparison$0: function() {
- return this.expression$1$until(new V.StylesheetParser__expressionUntilComparison_closure0(this));
- },
- _stylesheet0$_supportsCondition$0: function() {
- var condition, operator, right, endPosition, lowerOperator, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- first = t1.peekChar$0();
- if (first !== 40 && first !== 35) {
- t2 = t1._string_scanner$_position;
- _this.expectIdentifier$1("not");
- _this.whitespace$0();
- return new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
- }
- condition = _this._stylesheet0$_supportsConditionInParens$0();
- _this.whitespace$0();
- for (; _this.lookingAtIdentifier$0();) {
- if (_this.scanIdentifier$1("or"))
- operator = "or";
- else {
- _this.expectIdentifier$1("and");
- operator = "and";
- }
- _this.whitespace$0();
- right = _this._stylesheet0$_supportsConditionInParens$0();
- endPosition = t1._string_scanner$_position;
- condition = new U.SupportsOperation0(condition, right, operator, Y._FileSpan$(t1._sourceFile, t2, endPosition));
- lowerOperator = operator.toLowerCase();
- if (lowerOperator !== "and" && lowerOperator !== "or")
- H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
- _this.whitespace$0();
- }
- return condition;
- },
- _stylesheet0$_supportsConditionInParens$0: function() {
- var next, condition, negation, $name, value, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (t1.peekChar$0() === 35)
- return new X.SupportsInterpolation0(_this.singleInterpolation$0(), t1.spanFrom$1(start));
- t1.expectChar$1(40);
- _this.whitespace$0();
- next = t1.peekChar$0();
- if (next === 40 || next === 35) {
- condition = _this._stylesheet0$_supportsCondition$0();
- _this.whitespace$0();
- t1.expectChar$1(41);
- return condition;
- }
- if (next === 110 || next === 78) {
- negation = _this._stylesheet0$_trySupportsNegation$0();
- if (negation != null) {
- t1.expectChar$1(41);
- return negation;
- }
- }
- $name = _this.expression$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- value = _this.expression$0();
- t1.expectChar$1(41);
- return new L.SupportsDeclaration0($name, value, t1.spanFrom$1(start));
- },
- _stylesheet0$_trySupportsNegation$0: function() {
- var next, _this = this,
- t1 = _this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position);
- if (!_this.scanIdentifier$1("not") || t1._string_scanner$_position === t1.string.length) {
- t1.set$state(start);
- return null;
- }
- next = t1.peekChar$0();
- if (!(next === 32 || next === 9 || T.isNewline0(next)) && next !== 40) {
- t1.set$state(start);
- return null;
- }
- _this.whitespace$0();
- return new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(start));
- },
- _stylesheet0$_lookingAtInterpolatedIdentifier$0: function() {
- var second,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first == null)
- return false;
- if (first === 95 || T.isAlphabetic1(first) || first >= 128 || first === 92)
- return true;
- if (first === 35)
- return t1.peekChar$1(1) === 123;
- if (first !== 45)
- return false;
- second = t1.peekChar$1(1);
- if (second == null)
- return false;
- if (second === 35)
- return t1.peekChar$1(2) === 123;
- return second === 95 || T.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
- },
- _stylesheet0$_lookingAtInterpolatedIdentifierBody$0: function() {
- var t1 = this.scanner,
- first = t1.peekChar$0();
- if (first == null)
- return false;
- if (first === 95 || T.isAlphabetic1(first) || first >= 128 || T.isDigit0(first) || first === 45 || first === 92)
- return true;
- return first === 35 && t1.peekChar$1(1) === 123;
- },
- _stylesheet0$_lookingAtExpression$0: function() {
- var next,
- t1 = this.scanner,
- character = t1.peekChar$0();
- if (character == null)
- return false;
- if (character === 46)
- return t1.peekChar$1(1) !== 46;
- if (character === 33) {
- next = t1.peekChar$1(1);
- if (next != null)
- if ((next | 32) !== 105)
- t1 = next === 32 || next === 9 || T.isNewline0(next);
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- }
- if (character !== 40)
- if (character !== 47)
- if (character !== 91)
- if (character !== 39)
- if (character !== 34)
- if (character !== 35)
- if (character !== 43)
- if (character !== 45)
- if (character !== 92)
- if (character !== 36)
- if (character !== 38)
- t1 = character === 95 || T.isAlphabetic1(character) || character >= 128 || T.isDigit0(character);
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- _stylesheet0$_withChildren$1$3: function(child, start, create) {
- var result = create.call$2(this.children$1(child), this.scanner.spanFrom$1(start));
- this.whitespaceWithoutComments$0();
- return result;
- },
- _stylesheet0$_withChildren$3: function(child, start, create) {
- return this._stylesheet0$_withChildren$1$3(child, start, create, type$.dynamic);
- },
- _stylesheet0$_urlString$0: function() {
- var innerError, t2, exception,
- t1 = this.scanner,
- start = new S._SpanScannerState(t1, t1._string_scanner$_position),
- url = this.string$0();
- try {
- t2 = P.Uri_parse(url);
- return t2;
- } catch (exception) {
- t2 = H.unwrapException(exception);
- if (type$.FormatException._is(t2)) {
- innerError = t2;
- this.error$2("Invalid URL: " + H.S(J.get$message$x(innerError)), t1.spanFrom$1(start));
- } else
- throw exception;
- }
- },
- _stylesheet0$_publicIdentifier$0: function() {
- var _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- result = _this.identifier$1$normalize(true);
- _this._stylesheet0$_assertPublic$2(result, new V.StylesheetParser__publicIdentifier_closure0(_this, new S._SpanScannerState(t1, t2)));
- return result;
- },
- _stylesheet0$_assertPublic$2: function(identifier, span) {
- if (!T.isPrivate0(identifier))
- return;
- this.error$2("Private members can't be accessed from outside their modules.", span.call$0());
- },
- get$plainCss: function() {
- return false;
- }
- };
- V.StylesheetParser_parse_closure0.prototype = {
- call$0: function() {
- var statements, t4,
- t1 = this.$this,
- t2 = t1.scanner,
- t3 = t2._string_scanner$_position;
- t2.scanChar$1(65279);
- statements = t1.statements$1(new V.StylesheetParser_parse__closure1(t1));
- t2.expectDone$0();
- t4 = t1._stylesheet0$_globalVariables.get$values();
- C.JSArray_methods.addAll$1(statements, H.MappedIterable_MappedIterable(t4, new V.StylesheetParser_parse__closure2(), H._instanceType(t4)._eval$1("Iterable.E"), type$.Statement_2));
- return V.Stylesheet$0(statements, t2.spanFrom$1(new S._SpanScannerState(t2, t3)), t1.get$plainCss());
- },
- $signature: 88
- };
- V.StylesheetParser_parse__closure1.prototype = {
- call$0: function() {
- return this.$this._stylesheet0$_statement$1$root(true);
- },
- $signature: 39
- };
- V.StylesheetParser_parse__closure2.prototype = {
- call$1: function(declaration) {
- return Z.VariableDeclaration$0(declaration.name, new O.NullExpression0(declaration.expression.get$span()), declaration.span, null, false, true, null);
- }
- };
- V.StylesheetParser_parseArgumentDeclaration_closure0.prototype = {
- call$0: function() {
- var $arguments,
- t1 = this.$this,
- t2 = t1.scanner;
- t2.expectChar$2$name(64, "@-rule");
- t1.identifier$0();
- t1.whitespace$0();
- t1.identifier$0();
- $arguments = t1._stylesheet0$_argumentDeclaration$0();
- t1.whitespace$0();
- t2.expectChar$1(123);
- return $arguments;
- },
- $signature: 145
- };
- V.StylesheetParser__parseSingleProduction_closure0.prototype = {
- call$0: function() {
- var result = this.production.call$0();
- this.$this.scanner.expectDone$0();
- return result;
- },
- $signature: function() {
- return this.T._eval$1("0()");
- }
- };
- V.StylesheetParser_parseSignature_closure.prototype = {
- call$0: function() {
- var t2, $arguments, t3,
- t1 = this.$this,
- $name = t1.identifier$0();
- t1.whitespace$0();
- t2 = t1.scanner;
- if (t2.peekChar$0() === 40)
- $arguments = t1._stylesheet0$_argumentDeclaration$0();
- else {
- t1 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
- t3 = t1.offset;
- $arguments = new B.ArgumentDeclaration0(C.List_empty20, null, Y._FileSpan$(t1.file, t3, t3));
- }
- t2.expectDone$0();
- return new S.Tuple2($name, $arguments, type$.Tuple2_String_ArgumentDeclaration);
- },
- $signature: 146
- };
- V.StylesheetParser__statement_closure0.prototype = {
- call$0: function() {
- return this.$this._stylesheet0$_statement$0();
- },
- $signature: 39
- };
- V.StylesheetParser_variableDeclarationWithoutNamespace_closure1.prototype = {
- call$0: function() {
- return this.$this.scanner.spanFrom$1(this._box_0.start);
- },
- $signature: 24
- };
- V.StylesheetParser_variableDeclarationWithoutNamespace_closure2.prototype = {
- call$0: function() {
- return this.declaration;
- },
- $signature: 147
- };
- V.StylesheetParser__declarationOrBuffer_closure1.prototype = {
- call$2: function(children, span) {
- return L.Declaration$0(this.name, span, children, null);
- }
- };
- V.StylesheetParser__declarationOrBuffer_closure2.prototype = {
- call$2: function(children, span) {
- return L.Declaration$0(this.name, span, children, this._box_0.value);
- }
- };
- V.StylesheetParser__styleRule_closure0.prototype = {
- call$2: function(children, span) {
- var t2, t3, t4, _this = this,
- t1 = _this.$this;
- if (t1.get$indented() && children.length === 0)
- t1.logger.warn$2$span("This selector doesn't have any properties and won't be rendered.", _this._box_0.interpolation.span);
- t1._stylesheet0$_inStyleRule = _this.wasInStyleRule;
- t2 = _this._box_0;
- t3 = t2.interpolation;
- t2 = t1.scanner.spanFrom$1(t2.start);
- t1 = P.List_List$unmodifiable(children, type$.Statement_2);
- t4 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new X.StyleRule0(t3, t2, t1, t4);
- }
- };
- V.StylesheetParser__propertyOrVariableDeclaration_closure1.prototype = {
- call$2: function(children, span) {
- return L.Declaration$0(this._box_0.name, span, children, null);
- }
- };
- V.StylesheetParser__propertyOrVariableDeclaration_closure2.prototype = {
- call$2: function(children, span) {
- return L.Declaration$0(this._box_0.name, span, children, this.value);
- }
- };
- V.StylesheetParser__atRootRule_closure1.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new V.AtRootRule0(this.query, span, t1, t2);
- }
- };
- V.StylesheetParser__atRootRule_closure2.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new V.AtRootRule0(null, span, t1, t2);
- }
- };
- V.StylesheetParser__eachRule_closure0.prototype = {
- call$2: function(children, span) {
- var t1, t2, t3, _this = this;
- _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
- t1 = P.List_List$unmodifiable(_this.variables, type$.String);
- t2 = P.List_List$unmodifiable(children, type$.Statement_2);
- t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
- return new V.EachRule0(t1, _this.list, span, t2, t3);
- }
- };
- V.StylesheetParser__functionRule_closure0.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new M.FunctionRule0(this.name, this.$arguments, span, t1, t2);
- }
- };
- V.StylesheetParser__forRule_closure1.prototype = {
- call$0: function() {
- var t1 = this.$this;
- if (!t1.lookingAtIdentifier$0())
- return false;
- if (t1.scanIdentifier$1("to"))
- return this._box_0.exclusive = true;
- else if (t1.scanIdentifier$1("through")) {
- this._box_0.exclusive = false;
- return true;
- } else
- return false;
- },
- $signature: 25
- };
- V.StylesheetParser__forRule_closure2.prototype = {
- call$2: function(children, span) {
- var t1, t2, t3, _this = this;
- _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
- t1 = _this._box_0.exclusive;
- t2 = P.List_List$unmodifiable(children, type$.Statement_2);
- t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
- return new B.ForRule0(_this.variable, _this.from, _this.to, t1, span, t2, t3);
- }
- };
- V.StylesheetParser__memberList_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this;
- if (t1.scanner.peekChar$0() === 36)
- this.variables.add$1(0, t1.variableName$0());
- else
- this.identifiers.add$1(0, t1.identifier$1$normalize(true));
- },
- $signature: 0
- };
- V.StylesheetParser__includeRule_closure0.prototype = {
- call$2: function(children, span) {
- var t1 = this._box_0.contentArguments,
- t2 = P.List_List$unmodifiable(children, type$.Statement_2),
- t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
- return new Y.ContentBlock0(null, t1, span, t2, t3);
- }
- };
- V.StylesheetParser_mediaRule_closure0.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new G.MediaRule0(this.query, span, t1, t2);
- }
- };
- V.StylesheetParser__mixinRule_closure0.prototype = {
- call$2: function(children, span) {
- var t2,
- t1 = this.$this,
- hadContent = t1._stylesheet0$_mixinHasContent;
- t1._stylesheet0$_inMixin = false;
- t1._stylesheet0$_mixinHasContent = null;
- t1 = P.List_List$unmodifiable(children, type$.Statement_2);
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new T.MixinRule0(hadContent, this.name, this.$arguments, span, t1, t2);
- }
- };
- V.StylesheetParser_mozDocumentRule_closure0.prototype = {
- call$2: function(children, span) {
- var _this = this;
- if (_this._box_0.needsDeprecationWarning)
- _this.$this.logger.warn$3$deprecation$span("@-moz-document is deprecated and support will be removed from Sass in a future\nrelase. For details, see http://bit.ly/moz-document.\n", true, span);
- return U.AtRule$0(_this.name, span, children, _this.value);
- }
- };
- V.StylesheetParser_supportsRule_closure0.prototype = {
- call$2: function(children, span) {
- var t1 = P.List_List$unmodifiable(children, type$.Statement_2),
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new B.SupportsRule0(this.condition, span, t1, t2);
- }
- };
- V.StylesheetParser__whileRule_closure0.prototype = {
- call$2: function(children, span) {
- var t1, t2;
- this.$this._stylesheet0$_inControlDirective = this.wasInControlDirective;
- t1 = P.List_List$unmodifiable(children, type$.Statement_2);
- t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
- return new G.WhileRule0(this.condition, span, t1, t2);
- }
- };
- V.StylesheetParser_unknownAtRule_closure0.prototype = {
- call$2: function(children, span) {
- return U.AtRule$0(this.name, span, children, this._box_0.value);
- }
- };
- V.StylesheetParser_expression_resetState0.prototype = {
- call$0: function() {
- var t2,
- t1 = this._box_0;
- t1.operands = t1.operators = t1.spaceExpressions = t1.commaExpressions = null;
- t2 = this.$this;
- t2.scanner.set$state(this.start);
- t1.allowSlash = t2.lookingAtNumber$0();
- t1.singleExpression = t2._stylesheet0$_singleExpression$0();
- },
- $signature: 1
- };
- V.StylesheetParser_expression_resolveOneOperation0.prototype = {
- call$0: function() {
- var t2, t3,
- t1 = this._box_0,
- operator = t1.operators.pop();
- if (operator !== C.BinaryOperator_RTB0)
- t1.allowSlash = false;
- t2 = t1.allowSlash && !this.$this._stylesheet0$_inParentheses;
- t3 = t1.operands;
- if (t2)
- t1.singleExpression = new V.BinaryOperationExpression0(C.BinaryOperator_RTB0, t3.pop(), t1.singleExpression, true);
- else
- t1.singleExpression = new V.BinaryOperationExpression0(operator, t3.pop(), t1.singleExpression, false);
- },
- $signature: 1
- };
- V.StylesheetParser_expression_resolveOperations0.prototype = {
- call$0: function() {
- var t2,
- t1 = this._box_0;
- if (t1.operators == null)
- return;
- for (t2 = this.resolveOneOperation; t1.operators.length !== 0;)
- t2.call$0();
- },
- $signature: 1
- };
- V.StylesheetParser_expression_addSingleExpression0.prototype = {
- call$2$number: function(expression, number) {
- var t2, _this = this,
- t1 = _this._box_0;
- if (t1.singleExpression != null) {
- t2 = _this.$this;
- if (t2._stylesheet0$_inParentheses) {
- t2._stylesheet0$_inParentheses = false;
- if (t1.allowSlash) {
- _this.resetState.call$0();
- return;
- }
- }
- if (t1.spaceExpressions == null)
- t1.spaceExpressions = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
- _this.resolveOperations.call$0();
- t1.spaceExpressions.push(t1.singleExpression);
- t1.allowSlash = number;
- } else if (!number)
- t1.allowSlash = false;
- t1.singleExpression = expression;
- },
- call$1: function(expression) {
- return this.call$2$number(expression, false);
- }
- };
- V.StylesheetParser_expression_addOperator0.prototype = {
- call$1: function(operator) {
- var t2, t3, t4, t5, singleExpression,
- t1 = this.$this;
- if (t1.get$plainCss() && operator !== C.BinaryOperator_RTB0) {
- t2 = t1.scanner;
- t3 = operator.operator.length;
- t2.error$3$length$position("Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
- }
- t2 = this._box_0;
- t2.allowSlash = t2.allowSlash && operator === C.BinaryOperator_RTB0;
- if (t2.operators == null)
- t2.operators = H.setRuntimeTypeInfo([], type$.JSArray_BinaryOperator_2);
- if (t2.operands == null)
- t2.operands = H.setRuntimeTypeInfo([], type$.JSArray_Expression_2);
- t3 = this.resolveOneOperation;
- t4 = operator.precedence;
- while (true) {
- t5 = t2.operators;
- if (!(t5.length !== 0 && C.JSArray_methods.get$last(t5).precedence >= t4))
- break;
- t3.call$0();
- }
- t2.operators.push(operator);
- t2.operands.push(t2.singleExpression);
- t1.whitespace$0();
- t2.allowSlash = t2.allowSlash && t1.lookingAtNumber$0();
- singleExpression = t1._stylesheet0$_singleExpression$0();
- t2.singleExpression = singleExpression;
- t2.allowSlash = t2.allowSlash && singleExpression instanceof T.NumberExpression0;
- }
- };
- V.StylesheetParser_expression_resolveSpaceExpressions0.prototype = {
- call$0: function() {
- var t1, t2, t3;
- this.resolveOperations.call$0();
- t1 = this._box_0;
- t2 = t1.spaceExpressions;
- if (t2 != null) {
- t2.push(t1.singleExpression);
- t2 = P.List_List$unmodifiable(t1.spaceExpressions, type$.Expression_2);
- t3 = B.spanForList0(t2);
- t1.singleExpression = new D.ListExpression0(t2, C.ListSeparator_space0, false, t3);
- t1.spaceExpressions = null;
- }
- t2 = t1.singleEqualsOperand;
- if (t2 != null) {
- t1.singleExpression = new V.BinaryOperationExpression0(C.BinaryOperator_kjl0, t2, t1.singleExpression, false);
- t1.singleEqualsOperand = null;
- }
- },
- $signature: 1
- };
- V.StylesheetParser__expressionUntilComma_closure0.prototype = {
- call$0: function() {
- return this.$this.scanner.peekChar$0() === 44;
- },
- $signature: 25
- };
- V.StylesheetParser__unicodeRange_closure1.prototype = {
- call$1: function(char) {
- return char != null && T.isHex0(char);
- },
- $signature: 16
- };
- V.StylesheetParser__unicodeRange_closure2.prototype = {
- call$1: function(char) {
- return char != null && T.isHex0(char);
- },
- $signature: 16
- };
- V.StylesheetParser_identifierLike_closure0.prototype = {
- call$0: function() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 24
- };
- V.StylesheetParser__expressionUntilComparison_closure0.prototype = {
- call$0: function() {
- var t1 = this.$this.scanner,
- next = t1.peekChar$0();
- if (next === 61)
- return t1.peekChar$1(1) !== 61;
- return next === 60 || next === 62;
- },
- $signature: 25
- };
- V.StylesheetParser__publicIdentifier_closure0.prototype = {
- call$0: function() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 24
- };
- V.Stylesheet0.prototype = {
- Stylesheet$3$plainCss0: function(children, span, plainCss) {
- var t1, t2, t3, t4, _i, child;
- for (t1 = this.children, t2 = t1.length, t3 = this._stylesheet1$_forwards, t4 = this._stylesheet1$_uses, _i = 0; _i < t2; ++_i) {
- child = t1[_i];
- if (child instanceof T.UseRule0)
- t4.push(child);
- else if (child instanceof L.ForwardRule0)
- t3.push(child);
- else if (!(child instanceof B.SilentComment0) && !(child instanceof L.LoudComment0) && !(child instanceof Z.VariableDeclaration0))
- break;
- }
- },
- accept$1$1: function(visitor) {
- return visitor.visitStylesheet$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return (t1 && C.JSArray_methods).join$1(t1, " ");
- },
- get$span: function() {
- return this.span;
- }
- };
- N.SupportsCondition0.prototype = {};
- B.ModifiableCssSupportsRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitCssSupportsRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- copyWithoutChildren$0: function() {
- var t1 = H.setRuntimeTypeInfo([], type$.JSArray_ModifiableCssNode_2);
- return new B.ModifiableCssSupportsRule0(this.condition, this.span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- $isCssSupportsRule0: 1,
- get$span: function() {
- return this.span;
- }
- };
- B.SupportsRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitSupportsRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return "@supports " + this.condition.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- M.Syntax0.prototype = {
- toString$0: function(_) {
- return this._syntax0$_name;
- }
- };
- F.TypeSelector0.prototype = {
- get$minSpecificity: function() {
- return 1;
- },
- accept$1$1: function(visitor) {
- visitor._buffer.write$1(0, this.name);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1: function(suffix) {
- var t1 = this.name;
- return new F.TypeSelector0(new D.QualifiedName0(t1.name + suffix, t1.namespace));
- },
- unify$1: function(compound) {
- var unified, t1, t2, _i;
- if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0 || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector0) {
- unified = Y.unifyUniversalAndElement0(this, C.JSArray_methods.get$first(compound));
- if (unified == null)
- return null;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
- t1.push(unified);
- for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- return t1;
- } else {
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
- t1.push(this);
- for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
- t1.push(compound[_i]);
- return t1;
- }
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof F.TypeSelector0 && other.name.$eq(0, this.name);
- },
- get$hashCode: function(_) {
- var t1 = this.name;
- return C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
- }
- };
- G.Types.prototype = {};
- X.UnaryOperationExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitUnaryOperationExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.operator,
- t2 = t1.operator;
- t1 = t1 === C.UnaryOperator_not_not0 ? t2 + H.Primitives_stringFromCharCode(32) : t2;
- t1 += H.S(this.operand);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- X.UnaryOperator0.prototype = {
- toString$0: function(_) {
- return this.name;
- }
- };
- N.UniversalSelector0.prototype = {
- get$minSpecificity: function() {
- return 0;
- },
- accept$1$1: function(visitor) {
- var t2,
- t1 = this.namespace;
- if (t1 != null) {
- t2 = visitor._buffer;
- t2.write$1(0, t1);
- t2.writeCharCode$1(124);
- }
- visitor._buffer.writeCharCode$1(42);
- return null;
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1: function(compound) {
- var unified, t1, t2, _i, _this = this;
- if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0 || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector0) {
- unified = Y.unifyUniversalAndElement0(_this, C.JSArray_methods.get$first(compound));
- if (unified == null)
- return null;
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
- t1.push(unified);
- for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- return t1;
- }
- t1 = _this.namespace;
- if (t1 != null && t1 !== "*") {
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_SimpleSelector_2);
- t1.push(_this);
- for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
- t1.push(compound[_i]);
- return t1;
- }
- if (compound.length !== 0)
- return compound;
- return H.setRuntimeTypeInfo([_this], type$.JSArray_SimpleSelector_2);
- },
- $eq: function(_, other) {
- if (other == null)
- return false;
- return other instanceof N.UniversalSelector0 && other.namespace == this.namespace;
- },
- get$hashCode: function(_) {
- return J.get$hashCode$(this.namespace);
- }
- };
- R.UnprefixedMapView0.prototype = {
- get$keys: function() {
- return new R._UnprefixedKeys0(this);
- },
- $index: function(_, key) {
- return typeof key == "string" ? this._unprefixed_map_view0$_map.$index(0, J.$add$ansx(this._unprefixed_map_view0$_prefix, key)) : null;
- },
- containsKey$1: function(key) {
- return typeof key == "string" && this._unprefixed_map_view0$_map.containsKey$1(J.$add$ansx(this._unprefixed_map_view0$_prefix, key));
- },
- remove$1: function(_, key) {
- return typeof key == "string" ? this._unprefixed_map_view0$_map.remove$1(0, J.$add$ansx(this._unprefixed_map_view0$_prefix, key)) : null;
- }
- };
- R._UnprefixedKeys0.prototype = {
- get$iterator: function(_) {
- 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$.String);
- return t1.get$iterator(t1);
- },
- contains$1: function(_, key) {
- return this._unprefixed_map_view0$_view.containsKey$1(key);
- }
- };
- R._UnprefixedKeys_iterator_closure1.prototype = {
- call$1: function(key) {
- return J.startsWith$1$s(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix);
- }
- };
- R._UnprefixedKeys_iterator_closure2.prototype = {
- call$1: function(key) {
- return J.substring$1$s(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix.length);
- }
- };
- T.UseRule0.prototype = {
- UseRule$4$configuration0: function(url, namespace, span, configuration) {
- var t1, t2, _i, variable;
- for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (variable.isGuarded)
- throw H.wrapException(P.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
- }
- },
- accept$1$1: function(visitor) {
- return visitor.visitUseRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.url,
- t2 = "@use " + H.S(new D.StringExpression0(X.Interpolation$0([J.toString$0$(t1)], null), true).asInterpolation$1$static(true).get$asPlain()),
- basename = t1.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(t1.get$pathSegments()),
- dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
- t1 = this.namespace;
- if (t1 !== C.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
- t1 = t2 + (" as " + (t1 == null ? "*" : t1));
- else
- t1 = t2;
- t2 = this.configuration;
- t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- E.UserDefinedCallable0.prototype = {
- get$name: function() {
- return this.declaration.name;
- },
- $isAsyncCallable0: 1,
- $isCallable0: 1
- };
- B.resolveImportPath_closure1.prototype = {
- call$0: function() {
- return B._exactlyOne0(B._tryPath0($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
- },
- $signature: 10
- };
- B.resolveImportPath_closure2.prototype = {
- call$0: function() {
- return B._exactlyOne0(B._tryPathWithExtensions0(H.S(this.path) + ".import"));
- },
- $signature: 10
- };
- B._tryPathAsDirectory_closure0.prototype = {
- call$0: function() {
- return B._exactlyOne0(B._tryPathWithExtensions0(D.join(this.path, "index.import", null)));
- },
- $signature: 10
- };
- B._exactlyOne_closure0.prototype = {
- call$1: function(path) {
- var t1 = $.$get$context();
- return C.JSString_methods.$add(" ", t1.prettyUri$1(t1.toUri$1(path)));
- }
- };
- B.forwardToString_closure.prototype = {
- call$1: function(thisArg) {
- return J.toString$0$(thisArg);
- },
- $signature: 27
- };
- B.createClass_closure.prototype = {
- call$2: function($name, body) {
- this.$prototype[$name] = P.allowInteropCaptureThis(body);
- }
- };
- B._PropertyDescriptor0.prototype = {};
- B.indent_closure0.prototype = {
- call$1: function(line) {
- return C.JSString_methods.$add(C.JSString_methods.$mul(" ", this.indentation), line);
- }
- };
- B.flattenVertically_closure1.prototype = {
- call$1: function(inner) {
- return Q.QueueList_QueueList$from(inner, this.T);
- }
- };
- B.flattenVertically_closure2.prototype = {
- call$1: function(queue) {
- this.result.push(queue.removeFirst$0());
- return queue.get$length(queue) === 0;
- }
- };
- B.longestCommonSubsequence_closure2.prototype = {
- call$2: function(element1, element2) {
- return J.$eq$(element1, element2) ? element1 : null;
- },
- $signature: function() {
- return this.T._eval$1("0(0,0)");
- }
- };
- B.longestCommonSubsequence_closure3.prototype = {
- call$1: function(_) {
- return P.List_List$filled(J.get$length$asx(this.list2) + 1, 0, type$.int);
- },
- $signature: 72
- };
- B.longestCommonSubsequence_closure4.prototype = {
- call$1: function(_) {
- var t1 = new Array(J.get$length$asx(this.list2));
- t1.fixed$length = Array;
- return H.setRuntimeTypeInfo(t1, this.T._eval$1("JSArray<0>"));
- },
- $signature: function() {
- return this.T._eval$1("List<0>(int)");
- }
- };
- B.longestCommonSubsequence_backtrack0.prototype = {
- call$2: function(i, j) {
- var selection, t1, _this = this;
- if (i === -1 || j === -1)
- return H.setRuntimeTypeInfo([], _this.T._eval$1("JSArray<0>"));
- selection = J.$index$asx(_this.selections[i], j);
- if (selection != null) {
- t1 = _this.call$2(i - 1, j - 1);
- J.add$1$ax(t1, selection);
- return t1;
- }
- t1 = _this.lengths;
- 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);
- }
- };
- B.mapAddAll2_closure0.prototype = {
- call$2: function(key, inner) {
- var t1 = this.destination;
- if (t1.containsKey$1(key))
- t1.$index(0, key).addAll$1(0, inner);
- else
- t1.$indexSet(0, key, inner);
- }
- };
- B.mapMapAsync_closure0.prototype = {
- call$2: function(mapKey, _) {
- return this.$call$body$mapMapAsync_closure0(mapKey, _, this.K2);
- },
- $call$body$mapMapAsync_closure0: function(mapKey, _, $async$type) {
- var $async$goto = 0,
- $async$completer = P._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this;
- var $async$call$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return P._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = $async$self.K2._as(mapKey);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return P._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return P._asyncStartSync($async$call$2, $async$completer);
- },
- $signature: function() {
- return this.K2._eval$1("@<0>")._bind$1(this.K1)._bind$1(this.V1)._eval$1("Future<1>(2,3)");
- }
- };
- B.copyMapOfMap_closure0.prototype = {
- call$2: function(_, innerMap) {
- return P.LinkedHashMap_LinkedHashMap$of(innerMap, this.K2, this.V);
- }
- };
- B.copyMapOfList_closure0.prototype = {
- call$2: function(_, list) {
- return J.toList$0$ax(list);
- }
- };
- F.CssValue0.prototype = {
- toString$0: function(_) {
- return J.toString$0$(this.value);
- },
- $isAstNode0: 1,
- get$value: function(receiver) {
- return this.value;
- },
- get$span: function() {
- return this.span;
- }
- };
- F.ValueExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitValueExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return J.toString$0$(this.value);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- F.ModifiableCssValue0.prototype = {
- toString$0: function(_) {
- return J.toString$0$(this.value);
- },
- $isAstNode0: 1,
- $isCssValue0: 1,
- get$value: function(receiver) {
- return this.value;
- },
- get$span: function() {
- return this.span;
- }
- };
- F.Value0.prototype = {
- get$isTruthy: function() {
- return true;
- },
- get$separator: function() {
- return C.ListSeparator_undecided0;
- },
- get$hasBrackets: function() {
- return false;
- },
- get$asList: function() {
- return H.setRuntimeTypeInfo([this], type$.JSArray_Value_2);
- },
- get$lengthAsList: function() {
- return 1;
- },
- get$isBlank: function() {
- return false;
- },
- get$isSpecialNumber: function() {
- return false;
- },
- get$isVar: function() {
- return false;
- },
- get$realNull: function() {
- return this;
- },
- sassIndexToListIndex$2: function(sassIndex, $name) {
- var _this = this,
- index = sassIndex.assertNumber$1($name).assertInt$1($name);
- if (index === 0)
- throw H.wrapException(_this._value0$_exception$2("List index may not be 0.", $name));
- if (Math.abs(index) > _this.get$lengthAsList())
- throw H.wrapException(_this._value0$_exception$2("Invalid index " + sassIndex.toString$0(0) + " for a list with " + _this.get$lengthAsList() + " elements.", $name));
- return index < 0 ? _this.get$lengthAsList() + index : index - 1;
- },
- assertColor$1: function($name) {
- return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a color.", $name));
- },
- assertFunction$1: function($name) {
- return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a function reference.", $name));
- },
- assertMap$1: function($name) {
- return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a map.", $name));
- },
- assertNumber$1: function($name) {
- return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a number.", $name));
- },
- assertNumber$0: function() {
- return this.assertNumber$1(null);
- },
- assertString$1: function($name) {
- return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a string.", $name));
- },
- assertSelector$2$allowParent$name: function(allowParent, $name) {
- var error, t1, exception,
- string = this._value0$_selectorString$1($name);
- try {
- t1 = D.SelectorList_SelectorList$parse0(string, allowParent, true, null);
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException0) {
- error = t1;
- throw H.wrapException(this._value0$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
- } else
- throw exception;
- }
- },
- assertSelector$1$name: function($name) {
- return this.assertSelector$2$allowParent$name(false, $name);
- },
- assertSelector$0: function() {
- return this.assertSelector$2$allowParent$name(false, null);
- },
- assertSelector$1$allowParent: function(allowParent) {
- return this.assertSelector$2$allowParent$name(allowParent, null);
- },
- assertCompoundSelector$1$name: function($name) {
- var error, t1, exception,
- allowParent = false,
- string = this._value0$_selectorString$1($name);
- try {
- t1 = S.SpanScanner$(string, null);
- t1 = new T.SelectorParser0(allowParent, true, t1, C.C_StderrLogger).parseCompoundSelector$0();
- return t1;
- } catch (exception) {
- t1 = H.unwrapException(exception);
- if (t1 instanceof E.SassFormatException0) {
- error = t1;
- throw H.wrapException(this._value0$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
- } else
- throw exception;
- }
- },
- _value0$_selectorString$1: function($name) {
- var string = this._value0$_selectorStringOrNull$0();
- if (string != null)
- return string;
- throw H.wrapException(this._value0$_exception$2(this.toString$0(0) + " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.", $name));
- },
- _value0$_selectorString$0: function() {
- return this._value0$_selectorString$1(null);
- },
- _value0$_selectorStringOrNull$0: function() {
- var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
- if (_this instanceof D.SassString0)
- return _this.text;
- if (!(_this instanceof D.SassList0))
- return _null;
- t1 = _this._list1$_contents;
- t2 = t1.length;
- if (t2 === 0)
- return _null;
- result = H.setRuntimeTypeInfo([], type$.JSArray_String);
- t3 = _this.separator === C.ListSeparator_comma0;
- if (t3)
- for (_i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (complex instanceof D.SassString0)
- result.push(complex.text);
- else if (complex instanceof D.SassList0 && complex.separator === C.ListSeparator_space0) {
- string = complex._value0$_selectorString$0();
- result.push(string);
- } else
- return _null;
- }
- else
- for (_i = 0; _i < t2; ++_i) {
- compound = t1[_i];
- if (compound instanceof D.SassString0)
- result.push(compound.text);
- else
- return _null;
- }
- return C.JSArray_methods.join$1(result, t3 ? ", " : " ");
- },
- changeListContents$2$separator: function(contents, separator) {
- var t1 = separator == null ? this.get$separator() : separator,
- t2 = this.get$hasBrackets();
- return D.SassList$0(contents, t1, t2);
- },
- changeListContents$1: function(contents) {
- return this.changeListContents$2$separator(contents, null);
- },
- greaterThan$1: function(other) {
- return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
- },
- greaterThanOrEquals$1: function(other) {
- return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
- },
- lessThan$1: function(other) {
- return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
- },
- lessThanOrEquals$1: function(other) {
- return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
- },
- times$1: function(other) {
- return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " * " + H.S(other) + '".'));
- },
- modulo$1: function(other) {
- return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
- },
- plus$1: function(other) {
- var t1;
- if (other instanceof D.SassString0)
- return new D.SassString0(C.JSString_methods.$add(N.serializeValue(this, false, true), other.text), other.hasQuotes);
- else {
- t1 = N.serializeValue(this, false, true);
- other.toString;
- return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
- }
- },
- minus$1: function(other) {
- var t1 = N.serializeValue(this, false, true) + "-";
- other.toString;
- return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
- },
- dividedBy$1: function(other) {
- var t1 = N.serializeValue(this, false, true) + "/";
- other.toString;
- return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
- },
- unaryPlus$0: function() {
- return new D.SassString0("+" + N.serializeValue(this, false, true), false);
- },
- unaryMinus$0: function() {
- return new D.SassString0("-" + N.serializeValue(this, false, true), false);
- },
- unaryNot$0: function() {
- return C.SassBoolean_false;
- },
- withoutSlash$0: function() {
- return this;
- },
- toString$0: function(_) {
- return N.serializeValue(this, true, true);
- },
- _value0$_exception$2: function(message, $name) {
- return new E.SassScriptException0($name == null ? message : "$" + $name + ": " + message);
- }
- };
- S.VariableExpression0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitVariableExpression$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? "$" + (t1 + ".") : "$";
- t1 += this.name;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span: function() {
- return this.span;
- }
- };
- Z.VariableDeclaration0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitVariableDeclaration$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? "$" + (t1 + ".") : "$";
- t1 += this.name + ": " + H.S(this.expression) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- N.withWarnCallback_closure0.prototype = {
- call$0: function() {
- return this.callback.call$0();
- },
- "call*": "call$0",
- $requiredArgCount: 0,
- $signature: function() {
- return this.T._eval$1("0()");
- }
- };
- Y.WarnRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitWarnRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- return "@warn " + H.S(this.expression) + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span: function() {
- return this.span;
- }
- };
- G.WhileRule0.prototype = {
- accept$1$1: function(visitor) {
- return visitor.visitWhileRule$1(this);
- },
- accept$1: function(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0: function(_) {
- var t1 = this.children;
- return "@while " + H.S(this.condition) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span: function() {
- return this.span;
- }
- };
- (function aliases() {
- var _ = J.Interceptor.prototype;
- _.super$Interceptor$noSuchMethod = _.noSuchMethod$1;
- _ = J.JavaScriptObject.prototype;
- _.super$JavaScriptObject$toString = _.toString$0;
- _ = H.JsLinkedHashMap.prototype;
- _.super$JsLinkedHashMap$internalContainsKey = _.internalContainsKey$1;
- _.super$JsLinkedHashMap$internalGet = _.internalGet$1;
- _.super$JsLinkedHashMap$internalSet = _.internalSet$2;
- _.super$JsLinkedHashMap$internalRemove = _.internalRemove$1;
- _ = P._BroadcastStreamController.prototype;
- _.super$_BroadcastStreamController$_addEventError = _._addEventError$0;
- _ = P._BufferingStreamSubscription.prototype;
- _.super$_BufferingStreamSubscription$_add = _._async$_add$1;
- _.super$_BufferingStreamSubscription$_addError = _._addError$2;
- _ = P.ListMixin.prototype;
- _.super$ListMixin$setRange = _.setRange$4;
- _ = P.Iterable.prototype;
- _.super$Iterable$where = _.where$1;
- _.super$Iterable$skipWhile = _.skipWhile$1;
- _ = B.ModifiableCssParentNode.prototype;
- _.super$ModifiableCssParentNode$addChild = _.addChild$1;
- _ = M.SimpleSelector.prototype;
- _.super$SimpleSelector$addSuffix = _.addSuffix$1;
- _.super$SimpleSelector$unify = _.unify$1;
- _ = G.Parser.prototype;
- _.super$Parser$silentComment = _.silentComment$0;
- _ = V.StylesheetParser.prototype;
- _.super$StylesheetParser$importArgument = _.importArgument$0;
- _ = F.Value.prototype;
- _.super$Value$assertMap = _.assertMap$1;
- _.super$Value$plus = _.plus$1;
- _.super$Value$minus = _.minus$1;
- _.super$Value$dividedBy = _.dividedBy$1;
- _ = Y.SourceSpanMixin.prototype;
- _.super$SourceSpanMixin$compareTo = _.compareTo$1;
- _.super$SourceSpanMixin$$eq = _.$eq;
- _ = X.StringScanner.prototype;
- _.super$StringScanner$readChar = _.readChar$0;
- _.super$StringScanner$scanChar = _.scanChar$1;
- _.super$StringScanner$scan = _.scan$1;
- _.super$StringScanner$matches = _.matches$1;
- _ = B.ModifiableCssParentNode0.prototype;
- _.super$ModifiableCssParentNode$addChild0 = _.addChild$1;
- _ = G.Parser1.prototype;
- _.super$Parser$silentComment0 = _.silentComment$0;
- _ = M.SimpleSelector0.prototype;
- _.super$SimpleSelector$addSuffix0 = _.addSuffix$1;
- _.super$SimpleSelector$unify0 = _.unify$1;
- _ = V.StylesheetParser0.prototype;
- _.super$StylesheetParser$importArgument0 = _.importArgument$0;
- _ = F.Value0.prototype;
- _.super$Value$assertMap0 = _.assertMap$1;
- _.super$Value$plus0 = _.plus$1;
- _.super$Value$minus0 = _.minus$1;
- _.super$Value$dividedBy0 = _.dividedBy$1;
- })();
- (function installTearOffs() {
- var _static_2 = hunkHelpers._static_2,
- _instance_1_i = hunkHelpers._instance_1i,
- _instance_1_u = hunkHelpers._instance_1u,
- _static_1 = hunkHelpers._static_1,
- _static_0 = hunkHelpers._static_0,
- _static = hunkHelpers.installStaticTearOff,
- _instance_0_u = hunkHelpers._instance_0u,
- _instance = hunkHelpers.installInstanceTearOff,
- _instance_0_i = hunkHelpers._instance_0i,
- _instance_2_u = hunkHelpers._instance_2u;
- _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 93);
- _instance_1_i(J.JSArray.prototype, "get$contains", "contains$1", 5);
- _instance_1_i(H._CastIterableBase.prototype, "get$contains", "contains$1", 5);
- _instance_1_u(H.ConstantStringMap.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_u(H.ConstantProtoMap.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_u(H.JsLinkedHashMap.prototype, "get$containsKey", "containsKey$1", 5);
- _static_1(P, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 64);
- _static_1(P, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 64);
- _static_1(P, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 64);
- _static_0(P, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 1);
- _static_1(P, "async___nullDataHandler$closure", "_nullDataHandler", 23);
- _static(P, "async___nullErrorHandler$closure", 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["_nullErrorHandler", function(error) {
- return P._nullErrorHandler(error, null);
- }], 41, 0);
- _static_0(P, "async___nullDoneHandler$closure", "_nullDoneHandler", 1);
- _static(P, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 150, 0);
- _static(P, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) {
- return P._rootRun($self, $parent, zone, f, type$.dynamic);
- }], 151, 1);
- _static(P, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) {
- return P._rootRunUnary($self, $parent, zone, f, arg, type$.dynamic, type$.dynamic);
- }], 152, 1);
- _static(P, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) {
- return P._rootRunBinary($self, $parent, zone, f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
- }], 153, 1);
- _static(P, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) {
- return P._rootRegisterCallback($self, $parent, zone, f, type$.dynamic);
- }], 154, 0);
- _static(P, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) {
- return P._rootRegisterUnaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic);
- }], 155, 0);
- _static(P, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) {
- return P._rootRegisterBinaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic, type$.dynamic);
- }], 156, 0);
- _static(P, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 157, 0);
- _static(P, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 158, 0);
- _static(P, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 159, 0);
- _static(P, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 160, 0);
- _static(P, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 161, 0);
- _static_1(P, "async___printToZone$closure", "_printToZone", 162);
- _static(P, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 163, 0);
- var _;
- _instance_0_u(_ = P._BroadcastSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
- _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
- _instance(P._AsyncCompleter.prototype, "get$complete", 0, 0, function() {
- return [null];
- }, ["call$1", "call$0"], ["complete$1", "complete$0"], 86, 0);
- _instance(P._Future.prototype, "get$_completeError", 0, 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["_completeError$2", "_completeError$1"], 41, 0);
- _instance_1_i(_ = P._StreamController.prototype, "get$add", "add$1", 23);
- _instance(_, "get$addError", 0, 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["addError$2", "addError$1"], 41, 0);
- _instance_0_i(_, "get$close", "close$0", 61);
- _instance_1_u(_, "get$_async$_add", "_async$_add$1", 23);
- _instance_2_u(_, "get$_addError", "_addError$2", 120);
- _instance_0_u(_, "get$_close", "_close$0", 1);
- _instance_0_u(_ = P._ControllerSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
- _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
- _instance(_ = P._BufferingStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 84, 0);
- _instance_0_u(_, "get$resume", "resume$0", 1);
- _instance_0_u(_, "get$_async$_onPause", "_async$_onPause$0", 1);
- _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
- _instance(_ = P._DoneStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 84, 0);
- _instance_0_u(_, "get$resume", "resume$0", 1);
- _instance_0_u(_, "get$_sendDone", "_sendDone$0", 1);
- _instance_1_u(_ = P._StreamIterator.prototype, "get$_onData", "_onData$1", 23);
- _instance(_, "get$_onError", 0, 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["_onError$2", "_onError$1"], 41, 0);
- _instance_0_u(_, "get$_onDone", "_onDone$0", 1);
- _instance_0_u(_ = P._ForwardingStreamSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
- _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
- _instance_1_u(_, "get$_handleData", "_handleData$1", 23);
- _instance_2_u(_, "get$_handleError", "_handleError$2", 117);
- _instance_0_u(_, "get$_handleDone", "_handleDone$0", 1);
- _static_2(P, "collection___defaultEquals$closure", "_defaultEquals", 164);
- _static_1(P, "collection___defaultHashCode$closure", "_defaultHashCode", 165);
- _static_2(P, "collection_ListMixin__compareAny$closure", "ListMixin__compareAny", 93);
- _instance_1_u(P._HashMap.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_u(P._LinkedCustomHashMap.prototype, "get$containsKey", "containsKey$1", 5);
- _instance(_ = P._LinkedHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 113, 0);
- _instance_1_i(_, "get$contains", "contains$1", 5);
- _instance(P._LinkedIdentityHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 112, 0);
- _instance_1_u(P.MapMixin.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_u(P.MapView.prototype, "get$containsKey", "containsKey$1", 5);
- _instance(_ = P._UnmodifiableSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 110, 0);
- _instance_1_i(_, "get$contains", "contains$1", 5);
- _static_1(P, "convert___defaultToEncodable$closure", "_defaultToEncodable", 28);
- _static_1(P, "core__identityHashCode$closure", "identityHashCode", 166);
- _static_2(P, "core__identical$closure", "identical", 167);
- _static_1(P, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 95);
- _instance_1_i(P.Iterable.prototype, "get$contains", "contains$1", 5);
- _static(P, "math__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) {
- return P.max(a, b, type$.num);
- }], 169, 1);
- _instance_1_u(_ = Y.StreamCompleter.prototype, "get$setSourceStream", "setSourceStream$1", 23);
- _instance(_, "get$setError", 0, 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["setError$2", "setError$1"], 96, 0);
- _instance_0_u(_ = L.StreamGroup.prototype, "get$_onListen", "_onListen$0", 1);
- _instance_0_u(_, "get$_onPause", "_onPause$0", 1);
- _instance_0_u(_, "get$_onResume", "_onResume$0", 1);
- _instance_0_u(_, "get$_onCancel", "_onCancel$0", 61);
- _instance_1_i(O.EmptyUnmodifiableSet.prototype, "get$contains", "contains$1", 5);
- _instance_1_i(M._DelegatingIterableBase.prototype, "get$contains", "contains$1", 5);
- _instance_1_i(M.MapKeySet.prototype, "get$contains", "contains$1", 5);
- _instance_1_u(B.ModifiableCssNode.prototype, "get$_node0$_isInvisible", "_node0$_isInvisible$1", 94);
- _instance_1_u(D.SelectorList.prototype, "get$_complexContainsParentSelector", "_complexContainsParentSelector$1", 102);
- _static_1(Y, "functions___isUnique$closure", "_isUnique", 170);
- _static_1(K, "color___opacify$closure", "_opacify", 21);
- _static_1(K, "color___transparentize$closure", "_transparentize", 21);
- _instance_0_u(_ = G.Parser.prototype, "get$whitespace", "whitespace$0", 1);
- _instance_0_u(_, "get$loudComment", "loudComment$0", 1);
- _instance_0_u(_, "get$string", "string$0", 10);
- _instance_0_u(U.SassParser.prototype, "get$loudComment", "loudComment$0", 1);
- _instance(_ = V.StylesheetParser.prototype, "get$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_statement$1$root", "_statement$0"], 118, 0);
- _instance_0_u(_, "get$_declarationChild", "_declarationChild$0", 35);
- _instance_0_u(_, "get$_declarationAtRule", "_declarationAtRule$0", 35);
- _instance_0_u(_, "get$_functionChild", "_functionChild$0", 35);
- _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"], 99, 0);
- _instance_0_u(_, "get$_number", "_number$0", 103);
- _instance_1_u(K.LimitedMapView.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_u(Z.MergedMapView.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_i(N.NoSourceMapBuffer0.prototype, "get$write", "write$1", 23);
- _instance_1_u(F.PrefixedMapView.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_u(U.PublicMemberMapView.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_i(D.SourceMapBuffer0.prototype, "get$write", "write$1", 23);
- _instance_1_u(R.UnprefixedMapView.prototype, "get$containsKey", "containsKey$1", 5);
- _static_1(B, "utils__isPublic$closure", "isPublic", 65);
- _instance_1_u(_ = N._SerializeVisitor0.prototype, "get$_visitMediaQuery", "_visitMediaQuery$1", 141);
- _instance_1_u(_, "get$_isInvisible", "_isInvisible$1", 94);
- _instance(Y.SourceFile.prototype, "get$span", 0, 1, null, ["call$2", "call$1"], ["span$2", "span$1"], 149, 0);
- _instance(Y.SourceSpanMixin.prototype, "get$message", 1, 1, function() {
- return {color: null};
- }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 171, 0);
- _static(L, "from_handlers__StreamTransformer__defaultHandleError$closure", 3, null, ["call$1$3", "call$3"], ["_StreamTransformer__defaultHandleError", function(error, stackTrace, sink) {
- return L._StreamTransformer__defaultHandleError(error, stackTrace, sink, type$.dynamic);
- }], 172, 0);
- _static(R, "rate_limit___collectToList$closure", 2, null, ["call$1$2", "call$2"], ["_collectToList", function(element, soFar) {
- return R._collectToList(element, soFar, type$.dynamic);
- }], 173, 0);
- _static_1(K, "color0___opacify$closure", "_opacify0", 18);
- _static_1(K, "color0___transparentize$closure", "_transparentize0", 18);
- _static_1(Y, "functions0___isUnique$closure", "_isUnique0", 174);
- _instance_1_u(K.LimitedMapView0.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_u(D.SelectorList0.prototype, "get$_list2$_complexContainsParentSelector", "_list2$_complexContainsParentSelector$1", 133);
- _instance_1_u(Z.MergedMapView0.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_i(N.NoSourceMapBuffer.prototype, "get$write", "write$1", 23);
- _instance_1_u(B.ModifiableCssNode0.prototype, "get$_node2$_isInvisible", "_node2$_isInvisible$1", 91);
- _static_2(B, "node___render$closure", "_render", 175);
- _static_1(B, "node___renderSync$closure", "_renderSync", 176);
- _instance_0_u(_ = G.Parser1.prototype, "get$whitespace", "whitespace$0", 1);
- _instance_0_u(_, "get$loudComment", "loudComment$0", 1);
- _instance_0_u(_, "get$string", "string$0", 10);
- _instance_1_u(F.PrefixedMapView0.prototype, "get$containsKey", "containsKey$1", 5);
- _instance_1_u(U.PublicMemberMapView0.prototype, "get$containsKey", "containsKey$1", 5);
- _static_1(U, "sass__main$closure", "main", 177);
- _instance_0_u(U.SassParser0.prototype, "get$loudComment", "loudComment$0", 1);
- _instance_1_u(_ = N._SerializeVisitor.prototype, "get$_serialize0$_visitMediaQuery", "_serialize0$_visitMediaQuery$1", 179);
- _instance_1_u(_, "get$_serialize0$_isInvisible", "_serialize0$_isInvisible$1", 91);
- _instance_1_i(D.SourceMapBuffer.prototype, "get$write", "write$1", 23);
- _instance(_ = V.StylesheetParser0.prototype, "get$_stylesheet0$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_stylesheet0$_statement$1$root", "_stylesheet0$_statement$0"], 142, 0);
- _instance_0_u(_, "get$_stylesheet0$_declarationChild", "_stylesheet0$_declarationChild$0", 39);
- _instance_0_u(_, "get$_stylesheet0$_declarationAtRule", "_stylesheet0$_declarationAtRule$0", 39);
- _instance_0_u(_, "get$_stylesheet0$_functionChild", "_stylesheet0$_functionChild$0", 39);
- _instance_0_u(_, "get$_stylesheet0$_number", "_stylesheet0$_number$0", 144);
- _instance_1_u(R.UnprefixedMapView0.prototype, "get$containsKey", "containsKey$1", 5);
- _static_1(B, "utils0__isPublic$closure", "isPublic0", 65);
- _static_1(D, "path__dirname$closure", "dirname", 95);
- _static_1(T, "character__isWhitespace$closure", "isWhitespace", 16);
- _static_1(T, "character__isNewline$closure", "isNewline", 16);
- _static_1(T, "character__isHex$closure", "isHex", 16);
- _static_2(T, "number0__fuzzyEquals$closure", "fuzzyEquals", 26);
- _static_2(T, "number0__fuzzyLessThan$closure", "fuzzyLessThan", 26);
- _static_2(T, "number0__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals", 26);
- _static_2(T, "number0__fuzzyGreaterThan$closure", "fuzzyGreaterThan", 26);
- _static_2(T, "number0__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals", 26);
- _static_1(T, "number0__fuzzyRound$closure", "fuzzyRound", 34);
- _static_1(T, "character0__isWhitespace$closure", "isWhitespace0", 16);
- _static_1(T, "character0__isNewline$closure", "isNewline0", 16);
- _static_1(T, "character0__isHex$closure", "isHex0", 16);
- _static_2(T, "number2__fuzzyEquals$closure", "fuzzyEquals0", 26);
- _static_2(T, "number2__fuzzyLessThan$closure", "fuzzyLessThan0", 26);
- _static_2(T, "number2__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals0", 26);
- _static_2(T, "number2__fuzzyGreaterThan$closure", "fuzzyGreaterThan0", 26);
- _static_2(T, "number2__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals0", 26);
- _static_1(T, "number2__fuzzyRound$closure", "fuzzyRound0", 34);
- _static_1(F, "value1__wrapValue$closure", "wrapValue", 119);
- })();
- (function inheritance() {
- var _mixin = hunkHelpers.mixin,
- _inherit = hunkHelpers.inherit,
- _inheritMany = hunkHelpers.inheritMany;
- _inherit(P.Object, null);
- _inheritMany(P.Object, [H.JS_CONST, J.Interceptor, J.ArrayIterator, P.Iterable, H.CastIterator, H.Closure, 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, P.Error, H.ExceptionAndStackTrace, H._StackTrace, 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]);
- _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JSArray, J.JSNumber, J.JSString, H.NativeTypedData]);
- _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]);
- _inherit(J.JSUnmodifiableArray, J.JSArray);
- _inheritMany(J.JSNumber, [J.JSInt, J.JSDouble]);
- _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]);
- _inheritMany(H._CastIterableBase, [H.CastIterable, H.__CastListBase__CastIterableBase_ListMixin, H.CastSet, H.CastQueue]);
- _inherit(H._EfficientLengthCastIterable, H.CastIterable);
- _inherit(H._CastListBase, H.__CastListBase__CastIterableBase_ListMixin);
- _inheritMany(H.Closure, [H._CastListBase_sort_closure, H.ConstantStringMap_values_closure, H.Instantiation, H.Primitives_functionNoSuchMethod_closure, H.unwrapException_saveStackTrace, 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_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__asyncComplete_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._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__Uri$notSimple_closure, P._Uri__checkNonWindowsPathReservedCharacters_closure, 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.closure106, B.ReplAdapter_runAsync_closure, Y.mapMap_closure, Y.mapMap_closure0, Y.mapMap_closure1, Y.groupBy_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, X.closure70, X.closure71, 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.listIsSuperslector_closure, Y.listIsSuperslector__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.closure96, K.closure97, K.closure98, K.closure99, K._closure12, K.closure100, K.closure83, K.closure82, K.closure81, K.closure80, K.closure79, K.closure78, K.closure77, K.closure76, K.closure74, K.closure_getInRange0, K._closure9, K.closure73, K.closure_getScale, K.closure_scaleValue, K._closure8, K.closure72, K.closure_getInRange, K._closure7, K.closure75, 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.closure91, K.closure24, K.closure23, K.closure22, K.closure26, K.closure89, K._closure11, K.closure88, K.closure87, K.closure85, K.closure95, K.closure94, K.closure93, K.closure92, K.closure90, K.closure86, K.closure84, K.closure18, K.closure17, K.closure19, K.closure21, K.closure20, K._numberFunction_closure, Q.closure101, Q.closure102, Q.closure103, Q.closure104, Q._closure13, 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.closure105, 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_sourceFiles_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, B.mapMapAsync_closure, B.copyMapOfMap_closure, B.copyMapOfList_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__closure8, E._EvaluateVisitor_closure17, E._EvaluateVisitor__closure6, E._EvaluateVisitor__closure7, E._EvaluateVisitor_closure18, E._EvaluateVisitor__closure4, E._EvaluateVisitor__closure5, E._EvaluateVisitor_run_closure0, E._EvaluateVisitor__withWarnCallback_closure0, E._EvaluateVisitor__loadModule_closure0, 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_closure2, E._EvaluateVisitor__evaluateArguments_closure3, E._EvaluateVisitor__evaluateArguments_closure4, 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__closure3, R._EvaluateVisitor_closure7, R._EvaluateVisitor__closure1, R._EvaluateVisitor__closure2, 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__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__evaluateArguments_closure0, R._EvaluateVisitor__evaluateArguments_closure1, 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$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__closure18, E._EvaluateVisitor_closure37, E._EvaluateVisitor__closure16, E._EvaluateVisitor__closure17, E._EvaluateVisitor_closure38, E._EvaluateVisitor__closure14, E._EvaluateVisitor__closure15, E._EvaluateVisitor_run_closure2, E._EvaluateVisitor__withWarnCallback_closure2, E._EvaluateVisitor__loadModule_closure2, 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_closure8, E._EvaluateVisitor__evaluateArguments_closure9, E._EvaluateVisitor__evaluateArguments_closure10, 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.closure249, Z._closure34, Z._closure35, Q.BuiltInCallable$mixin_closure0, 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.closure175, K.closure176, K._closure25, K.closure177, K.closure204, K.closure205, K.closure206, K.closure207, K._closure27, K.closure208, K.closure191, K.closure190, K.closure189, K.closure188, K.closure187, K.closure186, K.closure185, K.closure184, K.closure182, K.closure_getInRange2, K._closure24, K.closure181, K.closure_getScale0, K.closure_scaleValue0, K._closure23, K.closure180, K.closure_getInRange1, K._closure22, K.closure183, K.closure_hexString0, K._functionString_closure0, K._removedColorFunction_closure0, K._parseChannels_closure0, K.closure239, K.closure240, K.closure241, K.closure242, K.closure243, K.closure244, K.closure245, K.closure246, K.closure247, K.closure248, X.closure178, X.closure179, U._compileStylesheet_closure1, S.ComplexSelector_isInvisible_closure0, X.CompoundSelector_isInvisible_closure0, Q.closure213, 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__closure13, R._EvaluateVisitor_closure27, R._EvaluateVisitor__closure11, R._EvaluateVisitor__closure12, R._EvaluateVisitor_closure28, R._EvaluateVisitor__closure9, R._EvaluateVisitor__closure10, R._EvaluateVisitor_run_closure1, R._EvaluateVisitor__withWarnCallback_closure1, R._EvaluateVisitor__loadModule_closure1, 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_closure5, R._EvaluateVisitor__evaluateArguments_closure6, R._EvaluateVisitor__evaluateArguments_closure7, 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.listIsSuperslector_closure0, Y.listIsSuperslector__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.closure107, 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.closure150, D.closure149, D.closure148, D.closure147, D.closure146, D.closure145, D._closure19, D._closure20, D._closure21, D.closure144, D.closure142, D.closure143, 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.closure232, D._closure33, D.closure233, D.closure234, D.closure235, D.closure236, D.closure237, D.closure238, D.SassList_isBlank_closure0, A.MapExpression_toString_closure0, A.closure141, A.closure140, A.closure138, A.closure139, A.closure137, A.closure136, A.closure135, A.closure225, A._closure31, A._closure32, A.closure226, A.closure227, A.closure228, A.closure229, A.closure230, A.closure231, A.SassMap_asList_closure0, K.closure133, K.closure199, K.closure132, K.closure131, K.closure130, K.closure134, K.closure197, K._closure26, K.closure196, K.closure195, K.closure193, K.closure203, K.closure202, K.closure201, K.closure200, K.closure198, K.closure194, K.closure192, K.closure126, K.closure125, K.closure127, K.closure129, K.closure128, K._numberFunction_closure0, F.MediaQueryParser_parse_closure0, Q.closure209, Q.closure210, Q.closure211, Q.closure212, Q._closure28, 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.closure224, O._closure29, O._closure30, T.closure218, T.closure219, T.closure220, T.closure221, T.closure222, T.closure223, 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.closure121, T._closure16, T._closure17, T.closure120, T._closure14, T._closure15, T.__closure0, T.closure119, T.closure118, T.closure117, T.closure124, T.closure123, T._closure18, T.closure122, 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_sourceFiles_closure0, D.SourceMapBuffer__addEntry_closure0, D.SourceMapBuffer_buildSourceMap_closure0, D.closure116, D.closure115, D.closure111, D.closure110, D.closure109, D.closure108, D.closure114, D.closure113, D.closure112, D.closure214, D.closure215, D.closure216, D.closure217, 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, B.mapMapAsync_closure0, B.copyMapOfMap_closure0, B.copyMapOfList_closure0, N.withWarnCallback_closure0]);
- _inherit(H.CastList, H._CastListBase);
- _inherit(P.ListBase, P._ListBase_Object_ListMixin);
- _inherit(H.UnmodifiableListBase, P.ListBase);
- _inheritMany(H.UnmodifiableListBase, [H.CodeUnits, P.UnmodifiableListView]);
- _inheritMany(H.EfficientLengthIterable, [H.ListIterable, H.EmptyIterable, H.LinkedHashMapKeyIterable, P._HashMapKeyIterable, P._MapBaseValueIterable, P.Set]);
- _inheritMany(H.ListIterable, [H.SubListIterable, H.MappedListIterable, H.ReversedListIterable, P.ListQueue, P._GeneratorIterable]);
- _inherit(H.EfficientLengthMappedIterable, H.MappedIterable);
- _inheritMany(P.Iterator, [H.MappedIterator, H.WhereIterator, H.TakeIterator, H.SkipIterator, H.SkipWhileIterator]);
- _inherit(H.EfficientLengthTakeIterable, H.TakeIterable);
- _inherit(H.EfficientLengthSkipIterable, H.SkipIterable);
- _inherit(H.EfficientLengthFollowedByIterable, H.FollowedByIterable);
- _inheritMany(P.MapView, [P._UnmodifiableMapView_MapView__UnmodifiableMapMixin, K.PathMap]);
- _inherit(P.UnmodifiableMapView, P._UnmodifiableMapView_MapView__UnmodifiableMapMixin);
- _inherit(H.ConstantMapView, P.UnmodifiableMapView);
- _inherit(H.ConstantStringMap, H.ConstantMap);
- _inherit(H.ConstantProtoMap, H.ConstantStringMap);
- _inherit(H.Instantiation1, H.Instantiation);
- _inheritMany(P.Error, [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]);
- _inheritMany(H.TearOffClosure, [H.StaticClosure, H.BoundClosure]);
- _inherit(P.MapBase, P.MapMixin);
- _inheritMany(P.MapBase, [H.JsLinkedHashMap, P._HashMap, P.UnmodifiableMapBase, Z.MergedMapView, Z.MergedMapView0]);
- _inheritMany(P.IterableBase, [H._AllMatchesIterable, P._SyncStarIterable, O.EmptyUnmodifiableSet, F._PrefixedKeys, R._UnprefixedKeys, F._PrefixedKeys0, R._UnprefixedKeys0]);
- _inherit(H.NativeTypedArray, H.NativeTypedData);
- _inheritMany(H.NativeTypedArray, [H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]);
- _inherit(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin);
- _inherit(H.NativeTypedArrayOfDouble, H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin);
- _inherit(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin);
- _inherit(H.NativeTypedArrayOfInt, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin);
- _inheritMany(H.NativeTypedArrayOfDouble, [H.NativeFloat32List, H.NativeFloat64List]);
- _inheritMany(H.NativeTypedArrayOfInt, [H.NativeInt16List, H.NativeInt32List, H.NativeInt8List, H.NativeUint16List, H.NativeUint32List, H.NativeUint8ClampedList, H.NativeUint8List]);
- _inherit(H._TypeError, H._Error);
- _inheritMany(P.Stream, [P._StreamImpl, P._ForwardingStream, Y._CompleterStream]);
- _inherit(P._ControllerStream, P._StreamImpl);
- _inherit(P._BroadcastStream, P._ControllerStream);
- _inheritMany(P._BufferingStreamSubscription, [P._ControllerSubscription, P._ForwardingStreamSubscription]);
- _inherit(P._BroadcastSubscription, P._ControllerSubscription);
- _inherit(P._SyncBroadcastStreamController, P._BroadcastStreamController);
- _inherit(P._AsyncCompleter, P._Completer);
- _inheritMany(P._StreamController, [P._AsyncStreamController, P._SyncStreamController]);
- _inherit(P._StreamControllerAddStreamState, P._AddStreamState);
- _inheritMany(P._DelayedEvent, [P._DelayedData, P._DelayedError]);
- _inherit(P._StreamImplEvents, P._PendingEvents);
- _inherit(P._ExpandStream, P._ForwardingStream);
- _inheritMany(P._Zone, [P._CustomZone, P._RootZone]);
- _inheritMany(H.JsLinkedHashMap, [P._LinkedIdentityHashMap, P._LinkedCustomHashMap]);
- _inheritMany(P._SetBase, [P._LinkedHashSet, P._UnmodifiableSet]);
- _inherit(P._LinkedIdentityHashSet, P._LinkedHashSet);
- _inheritMany(P.Codec, [P.Encoding, P.Base64Codec, P.JsonCodec]);
- _inheritMany(P.Encoding, [P.AsciiCodec, P.Utf8Codec]);
- _inheritMany(P.StreamTransformerBase, [P.Converter, L._StreamTransformer]);
- _inheritMany(P.Converter, [P._UnicodeSubsetEncoder, P.Base64Encoder, P.JsonEncoder, P.Utf8Encoder, P.Utf8Decoder]);
- _inherit(P.AsciiEncoder, P._UnicodeSubsetEncoder);
- _inherit(P._BufferCachingBase64Encoder, P._Base64Encoder);
- _inherit(P.ByteConversionSink, P.ChunkedConversionSink);
- _inheritMany(P.ByteConversionSink, [P.ByteConversionSinkBase, P._Utf8StringSinkAdapter, P._Utf8ConversionSink]);
- _inherit(P._Base64EncoderSink, P.ByteConversionSinkBase);
- _inheritMany(P._Base64EncoderSink, [P._AsciiBase64EncoderSink, P._Utf8Base64EncoderSink]);
- _inherit(P.JsonCyclicError, P.JsonUnsupportedObjectError);
- _inherit(P._JsonStringStringifier, P._JsonStringifier);
- _inherit(P.StringConversionSinkBase, P.StringConversionSinkMixin);
- _inheritMany(P.StringConversionSinkBase, [P._StringSinkConversionSink, P._StringAdapterSink]);
- _inherit(P._StringCallbackSink, P._StringSinkConversionSink);
- _inheritMany(P.num, [P.double, P.int]);
- _inheritMany(P.ArgumentError, [P.RangeError, P.IndexError]);
- _inherit(P._DataUri, P._Uri);
- _inherit(Z.ArgParserException, P.FormatException);
- _inherit(Q.QueueList, Q._QueueList_Object_ListMixin);
- _inherit(Q._CastQueueList, Q.QueueList);
- _inheritMany(M._DelegatingIterableBase, [M.DelegatingIterable, M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin]);
- _inherit(M.DelegatingSet, M.DelegatingIterable);
- _inherit(L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, M.DelegatingSet);
- _inherit(L.UnmodifiableSetView, L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin);
- _inherit(M.MapKeySet, M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin);
- _inherit(B.InternalStyle, O.Style);
- _inheritMany(B.InternalStyle, [E.PosixStyle, F.UrlStyle, L.WindowsStyle]);
- _inheritMany(B.AstNode, [B.CssNode, B.SassNode]);
- _inheritMany(B.CssNode, [B.ModifiableCssNode, B.CssParentNode]);
- _inheritMany(B.ModifiableCssNode, [B.ModifiableCssParentNode, R.ModifiableCssComment, L.ModifiableCssDeclaration, F.ModifiableCssImport]);
- _inheritMany(B.ModifiableCssParentNode, [U.ModifiableCssAtRule, U.ModifiableCssKeyframeBlock, G.ModifiableCssMediaRule, X.ModifiableCssStyleRule, V.ModifiableCssStylesheet, B.ModifiableCssSupportsRule]);
- _inherit(V.CssStylesheet, B.CssParentNode);
- _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]);
- _inheritMany(M.CallableDeclaration, [Y.ContentBlock, M.FunctionRule, T.MixinRule]);
- _inherit(N.SupportsCondition, B.SassNode);
- _inheritMany(T.Selector, [M.SimpleSelector, S.ComplexSelector, X.CompoundSelector, D.SelectorList]);
- _inheritMany(M.SimpleSelector, [N.AttributeSelector, X.ClassSelector, N.IDSelector, M.ParentSelector, N.PlaceholderSelector, D.PseudoSelector, F.TypeSelector, N.UniversalSelector]);
- _inherit(D.Callable, B.AsyncCallable);
- _inheritMany(G.SourceSpanException, [E.SassException, G.SourceSpanFormatException, E.SassException0]);
- _inheritMany(E.SassException, [E.MultiSpanSassException, E.SassRuntimeException, E.SassFormatException]);
- _inherit(E.MultiSpanSassRuntimeException, E.MultiSpanSassException);
- _inherit(E.MultiSpanSassScriptException, E.SassScriptException);
- _inherit(A.MergedExtension, S.Extension);
- _inherit(M.Importer, B.AsyncImporter);
- _inherit(F.FilesystemImporter, M.Importer);
- _inheritMany(G.Parser, [V.AtRootQueryParser, V.StylesheetParser, E.KeyframeSelectorParser, F.MediaQueryParser, T.SelectorParser]);
- _inheritMany(V.StylesheetParser, [L.ScssParser, U.SassParser]);
- _inherit(Q.CssParser, L.ScssParser);
- _inheritMany(P.UnmodifiableMapBase, [K.LimitedMapView, F.PrefixedMapView, U.PublicMemberMapView, R.UnprefixedMapView, K.LimitedMapView0, F.PrefixedMapView0, U.PublicMemberMapView0, R.UnprefixedMapView0]);
- _inheritMany(F.Value, [D.SassList, Z.SassBoolean, K.SassColor, F.SassFunction, A.SassMap, O.SassNull, T.SassNumber, D.SassString]);
- _inherit(D.SassArgumentList, D.SassList);
- _inherit(F._FindDependenciesVisitor, D.RecursiveStatementVisitor);
- _inherit(T.SingleMapping, T.Mapping);
- _inherit(Y.FileLocation, D.SourceLocationMixin);
- _inheritMany(Y.SourceSpanMixin, [Y._FileSpan, V.SourceSpanBase]);
- _inherit(X.SourceSpanWithContext, V.SourceSpanBase);
- _inherit(E.StringScannerException, G.SourceSpanFormatException);
- _inheritMany(X.StringScanner, [Z.LineScanner, S.SpanScanner]);
- _inheritMany(F.Value0, [D.SassList0, Z.SassBoolean0, K.SassColor0, F.SassFunction0, A.SassMap0, O.SassNull0, T.SassNumber0, D.SassString0]);
- _inherit(D.SassArgumentList0, D.SassList0);
- _inheritMany(G.Parser1, [V.AtRootQueryParser0, V.StylesheetParser0, E.KeyframeSelectorParser0, F.MediaQueryParser0, T.SelectorParser0]);
- _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]);
- _inheritMany(B.AstNode0, [B.CssNode0, B.SassNode0]);
- _inheritMany(B.CssNode0, [B.ModifiableCssNode0, B.CssParentNode0]);
- _inheritMany(B.ModifiableCssNode0, [B.ModifiableCssParentNode0, R.ModifiableCssComment0, L.ModifiableCssDeclaration0, F.ModifiableCssImport0]);
- _inheritMany(B.ModifiableCssParentNode0, [U.ModifiableCssAtRule0, U.ModifiableCssKeyframeBlock0, G.ModifiableCssMediaRule0, X.ModifiableCssStyleRule0, V.ModifiableCssStylesheet0, B.ModifiableCssSupportsRule0]);
- _inheritMany(T.Selector0, [M.SimpleSelector0, S.ComplexSelector0, X.CompoundSelector0, D.SelectorList0]);
- _inheritMany(M.SimpleSelector0, [N.AttributeSelector0, X.ClassSelector0, N.IDSelector0, M.ParentSelector0, N.PlaceholderSelector0, D.PseudoSelector0, F.TypeSelector0, N.UniversalSelector0]);
- _inherit(D.Callable0, B.AsyncCallable0);
- _inheritMany(M.CallableDeclaration0, [Y.ContentBlock0, M.FunctionRule0, T.MixinRule0]);
- _inheritMany(V.StylesheetParser0, [L.ScssParser0, U.SassParser0]);
- _inherit(Q.CssParser0, L.ScssParser0);
- _inheritMany(E.SassException0, [E.MultiSpanSassException0, E.SassRuntimeException0, E.SassFormatException0]);
- _inherit(E.MultiSpanSassRuntimeException0, E.MultiSpanSassException0);
- _inherit(E.MultiSpanSassScriptException0, E.SassScriptException0);
- _inherit(M.Importer0, B.AsyncImporter0);
- _inherit(F.FilesystemImporter0, M.Importer0);
- _inherit(A.MergedExtension0, S.Extension0);
- _inherit(V.CssStylesheet0, B.CssParentNode0);
- _inherit(N.SupportsCondition0, B.SassNode0);
- _mixin(H.UnmodifiableListBase, H.UnmodifiableListMixin);
- _mixin(H.__CastListBase__CastIterableBase_ListMixin, P.ListMixin);
- _mixin(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, P.ListMixin);
- _mixin(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, H.FixedLengthListMixin);
- _mixin(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, P.ListMixin);
- _mixin(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, H.FixedLengthListMixin);
- _mixin(P._AsyncStreamController, P._AsyncStreamControllerDispatch);
- _mixin(P._SyncStreamController, P._SyncStreamControllerDispatch);
- _mixin(P.UnmodifiableMapBase, P._UnmodifiableMapMixin);
- _mixin(P._ListBase_Object_ListMixin, P.ListMixin);
- _mixin(P._UnmodifiableMapView_MapView__UnmodifiableMapMixin, P._UnmodifiableMapMixin);
- _mixin(Q._QueueList_Object_ListMixin, P.ListMixin);
- _mixin(L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, L.UnmodifiableSetMixin);
- _mixin(M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin, L.UnmodifiableSetMixin);
- })();
- var init = {
- typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []},
- mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List"},
- mangledNames: {},
- getTypeFromName: getGlobalFromName,
- metadata: [],
- types: ["Null()", "~()", "Future<Null>()", "Value0(List<Value0>)", "Value(List<Value>)", "bool(Object)", "SassNumber0(List<Value0>)", "SassNumber(List<Value>)", "int()", "Value()", "String()", "SassString0(List<Value0>)", "SassString(List<Value>)", "SassBoolean(List<Value>)", "Value0()", "SassBoolean0(List<Value0>)", "bool(int)", "SassList0(List<Value0>)", "SassColor0(List<Value0>)", "Future<Value0>()", "Future<Value>()", "SassColor(List<Value>)", "SassList(List<Value>)", "~(Object)", "FileSpan()", "bool()", "bool(num,num)", "String(Object)", "@(@)", "SassMap0(List<Value0>)", "SassMap(List<Value>)", "SelectorList()", "List<String>()", "SelectorList0()", "int(num)", "Statement()", "String(int)", "Stylesheet()", "Null(@,@)", "Statement0()", "Null([Object])", "~(Object[StackTrace])", "Frame()", "Future<String>(@)", "Object()", "AsyncCallable()", "Map<ComplexSelector,Extension>()", "SourceFile()", "AtRootQuery0()", "AsyncCallable0()", "Callable0()", "Null([@])", "Null(List<Value0>)", "bool(@)", "Null(@)", "List<CssMediaQuery0>()", "Tuple3<Importer,Uri,Uri>()", "Callable()", "Null(@,StackTrace)", "Null(List<Value>)", "Map<ComplexSelector0,Extension0>()", "Future<@>()", "List<CssMediaQuery>()", "AtRootQuery()", "~(~())", "bool(String)", "Iterable<String>()", "Uri()", "num(num)", "VariableDeclaration()", "String(@,@)", "List<Extension>()", "List<int>(int)", "SassFunction(List<Value>)", "List<Extender>()", "Future<SassNumber>()", "Uri/()", "SassNumber()", "Trace()", "Iterable<String>(Object)", "SassFunction0(List<Value0>)", "List<Extender0>()", "Future<SassNumber0>()", "Null([@])()", "~([Future<@>])", "SassNumber0()", "~([Object])", "List<Extension0>()", "Stylesheet0()", "Null(Object,StackTrace)", "SassNull0(int)", "bool(CssNode0)", "DateTime()", "int(@,@)", "bool(CssNode)", "String(String)", "~(@[StackTrace])", "List<Module<AsyncCallable>>(int)", "Frame(@,@)", "Expression({bracketList:bool,singleEquals:bool,until:bool()})", "Future<~>()", "List<Module0<AsyncCallable0>>(int)", "bool(ComplexSelector)", "NumberExpression()", "ArgumentDeclaration()", "String(@)", "Future<EvaluateResult0>()", "Set<ModifiableCssValue<SelectorList>>()", "Uint8List(@,@)", "Uint8List(int)", "Set<0^>()<Object>", "Future<EvaluateResult>()", "Set<0^>()<Object>", "Set<0^>()<Object>", "Future<Tuple3<AsyncImporter0,Uri,Uri>>()", "Future<Stylesheet0>()", "ArgParser()", "~(@,StackTrace)", "Statement({root:bool})", "Object(Value0)", "~(Object,StackTrace)", "_Future<@>(@)", "List<Module0<Callable0>>(int)", "Null(@[StackTrace])", "EvaluateResult0()", "List<Module<Callable>>(int)", "Set<ModifiableCssValue0<SelectorList0>>()", "UseRule()", "Future<Stylesheet>()", "Extension0()", "Tuple3<Importer0,Uri,Uri>()", "Extension()", "Future<Tuple3<AsyncImporter,Uri,Uri>>()", "bool(ComplexSelector0)", "EvaluateResult()", "SassNumber0(int)", "CompoundSelector()", "Null(Object,Object)", "Null(Object)", "Object(@)", "CompoundSelector0()", "~(CssMediaQuery)", "Statement0({root:bool})", "_Future<@>()", "NumberExpression0()", "ArgumentDeclaration0()", "Tuple2<String,ArgumentDeclaration0>()", "VariableDeclaration0()", "SourceFile(int)", "FileSpan(int[int])", "~(Zone,ZoneDelegate,Zone,@,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<@,@>)", "bool(@,@)", "int(@)", "int(Object)", "bool(Object,Object)", "SourceSpanWithContext()", "0^(0^,0^)<num>", "bool(SimpleSelector)", "String(String{color:@})", "~(Object,StackTrace,EventSink<0^>)<Object>", "List<0^>(0^,List<0^>)<Object>", "bool(SimpleSelector0)", "~(RenderOptions,~(JSError,RenderResult))", "RenderResult(RenderOptions)", "Future<~>(List<String>)", "~(@)", "~(CssMediaQuery0)"],
- interceptorsByTag: null,
- leafTags: null,
- arrayRti: typeof Symbol == "function" && typeof Symbol() == "symbol" ? Symbol("$ti") : "$ti"
- };
- 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":{"int":[],"double":[],"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"],"EfficientLengthIterable":["2"],"_CastIterableBase":["1","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"},"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":[]},"_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":["@"]},"NativeTypedArrayOfDouble":{"ListMixin":["double"],"JavaScriptIndexingBehavior":["@"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"NativeFloat32List":{"NativeTypedArrayOfDouble":[],"ListMixin":["double"],"JavaScriptIndexingBehavior":["@"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"NativeFloat64List":{"NativeTypedArrayOfDouble":[],"ListMixin":["double"],"JavaScriptIndexingBehavior":["@"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"NativeInt16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"Uint8List":[],"ListMixin":["int"],"List":["int"],"JavaScriptIndexingBehavior":["@"],"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":{"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"],"Queue":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListMixin.E":"1","QueueList.E":"1"},"_CastQueueList":{"QueueList":["2"],"ListMixin":["2"],"Queue":["2"],"List":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListMixin.E":"2","QueueList.E":"2"},"UnmodifiableSetView":{"DelegatingSet":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_DelegatingIterableBase":{"Iterable":["1"]},"DelegatingIterable":{"Iterable":["1"]},"DelegatingSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["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":{"AsyncBuiltInCallable":[],"Callable":[],"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":{"AsyncBuiltInCallable0":[],"Callable0":[],"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":[]}}'));
- 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,"_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}'));
- var type$ = (function rtii() {
- var findType = H.findType;
- return {
- $env_1_1_String: findType("@<String>"),
- ArgParser: findType("ArgParser"),
- Argument: findType("Argument"),
- ArgumentDeclaration: findType("ArgumentDeclaration"),
- ArgumentDeclaration_2: findType("ArgumentDeclaration0"),
- Argument_2: findType("Argument0"),
- AstNode: findType("AstNode"),
- AstNode_2: findType("AstNode0"),
- AsyncBuiltInCallable: findType("AsyncBuiltInCallable"),
- AsyncBuiltInCallable_2: findType("AsyncBuiltInCallable0"),
- AsyncCallable: findType("AsyncCallable"),
- AsyncCallable_2: findType("AsyncCallable0"),
- BuiltInCallable: findType("BuiltInCallable"),
- BuiltInCallable_2: findType("BuiltInCallable0"),
- Callable: findType("Callable"),
- Callable_2: findType("Callable0"),
- ChangeType: findType("ChangeType"),
- Combinator: findType("Combinator"),
- Combinator_2: findType("Combinator0"),
- Comparable_dynamic: findType("Comparable<@>"),
- CompileResult: findType("CompileResult"),
- CompileResult_2: findType("CompileResult0"),
- ComplexSelector: findType("ComplexSelector"),
- ComplexSelectorComponent: findType("ComplexSelectorComponent"),
- ComplexSelectorComponent_2: findType("ComplexSelectorComponent0"),
- ComplexSelector_2: findType("ComplexSelector0"),
- CompoundSelector: findType("CompoundSelector"),
- CompoundSelector_2: findType("CompoundSelector0"),
- Configuration: findType("Configuration"),
- Configuration_2: findType("Configuration0"),
- ConfiguredValue: findType("ConfiguredValue"),
- ConfiguredValue_2: findType("ConfiguredValue0"),
- ConfiguredVariable: findType("ConfiguredVariable"),
- ConfiguredVariable_2: findType("ConfiguredVariable0"),
- ConstantMapView_Symbol_dynamic: findType("ConstantMapView<Symbol0,@>"),
- CssAtRule: findType("CssAtRule"),
- CssAtRule_2: findType("CssAtRule0"),
- CssComment: findType("CssComment"),
- CssComment_2: findType("CssComment0"),
- CssImport: findType("CssImport"),
- CssImport_2: findType("CssImport0"),
- CssMediaQuery: findType("CssMediaQuery"),
- CssMediaQuery_2: findType("CssMediaQuery0"),
- CssMediaRule: findType("CssMediaRule"),
- CssMediaRule_2: findType("CssMediaRule0"),
- CssParentNode: findType("CssParentNode"),
- CssParentNode_2: findType("CssParentNode0"),
- CssStyleRule: findType("CssStyleRule"),
- CssStyleRule_2: findType("CssStyleRule0"),
- CssStylesheet: findType("CssStylesheet"),
- CssStylesheet_2: findType("CssStylesheet0"),
- CssSupportsRule: findType("CssSupportsRule"),
- CssSupportsRule_2: findType("CssSupportsRule0"),
- CssValue_List_String: findType("CssValue<List<String>>"),
- CssValue_List_String_2: findType("CssValue0<List<String>>"),
- CssValue_SelectorList: findType("CssValue<SelectorList>"),
- CssValue_SelectorList_2: findType("CssValue0<SelectorList0>"),
- CssValue_String: findType("CssValue<String>"),
- CssValue_String_2: findType("CssValue0<String>"),
- CssValue_Value: findType("CssValue<Value>"),
- CssValue_Value_2: findType("CssValue0<Value0>"),
- DateTime: findType("DateTime"),
- EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"),
- Error: findType("Error"),
- EvaluateResult: findType("EvaluateResult"),
- EvaluateResult_2: findType("EvaluateResult0"),
- Exception: findType("Exception"),
- Expression: findType("Expression"),
- Expression_2: findType("Expression0"),
- Extension: findType("Extension"),
- Extension_2: findType("Extension0"),
- FileLocation: findType("FileLocation"),
- FileSpan: findType("FileSpan"),
- FixedLengthListBuilder_ModifiableCssNode: findType("FixedLengthListBuilder<ModifiableCssNode>"),
- FixedLengthListBuilder_ModifiableCssNode_2: findType("FixedLengthListBuilder0<ModifiableCssNode0>"),
- FormatException: findType("FormatException"),
- Frame: findType("Frame"),
- Function: findType("Function"),
- FutureOr_EvaluateResult: findType("EvaluateResult/"),
- FutureOr_EvaluateResult_2: findType("EvaluateResult0/"),
- Future_Null: findType("Future<Null>"),
- Future_dynamic: findType("Future<@>"),
- Future_void: findType("Future<~>"),
- IfClause: findType("IfClause"),
- IfClause_2: findType("IfClause0"),
- Import: findType("Import"),
- Import_2: findType("Import0"),
- ImporterResult: findType("ImporterResult0"),
- ImporterResult_2: findType("ImporterResult"),
- Interpolation: findType("Interpolation"),
- InterpolationBuffer: findType("InterpolationBuffer"),
- InterpolationBuffer_2: findType("InterpolationBuffer0"),
- Interpolation_2: findType("Interpolation0"),
- Iterable_ComplexSelectorComponent: findType("Iterable<ComplexSelectorComponent>"),
- Iterable_ComplexSelectorComponent_2: findType("Iterable<ComplexSelectorComponent0>"),
- JSArray_Argument: findType("JSArray<Argument>"),
- JSArray_Argument_2: findType("JSArray<Argument0>"),
- JSArray_AstNode: findType("JSArray<AstNode>"),
- JSArray_AstNode_2: findType("JSArray<AstNode0>"),
- JSArray_AsyncBuiltInCallable: findType("JSArray<AsyncBuiltInCallable>"),
- JSArray_AsyncBuiltInCallable_2: findType("JSArray<AsyncBuiltInCallable0>"),
- JSArray_AsyncCallable: findType("JSArray<AsyncCallable0>"),
- JSArray_AsyncCallable_2: findType("JSArray<AsyncCallable>"),
- JSArray_AsyncImporter: findType("JSArray<AsyncImporter>"),
- JSArray_BinaryOperator: findType("JSArray<BinaryOperator>"),
- JSArray_BinaryOperator_2: findType("JSArray<BinaryOperator0>"),
- JSArray_BuiltInCallable: findType("JSArray<BuiltInCallable>"),
- JSArray_BuiltInCallable_2: findType("JSArray<BuiltInCallable0>"),
- JSArray_BuiltInModule_AsyncBuiltInCallable: findType("JSArray<BuiltInModule<AsyncBuiltInCallable>>"),
- JSArray_BuiltInModule_AsyncBuiltInCallable_2: findType("JSArray<BuiltInModule0<AsyncBuiltInCallable0>>"),
- JSArray_BuiltInModule_BuiltInCallable: findType("JSArray<BuiltInModule<BuiltInCallable>>"),
- JSArray_BuiltInModule_BuiltInCallable_2: findType("JSArray<BuiltInModule0<BuiltInCallable0>>"),
- JSArray_Callable: findType("JSArray<Callable>"),
- JSArray_Callable_2: findType("JSArray<Callable0>"),
- JSArray_Combinator: findType("JSArray<Combinator>"),
- JSArray_Combinator_2: findType("JSArray<Combinator0>"),
- JSArray_ComplexSelector: findType("JSArray<ComplexSelector>"),
- JSArray_ComplexSelectorComponent: findType("JSArray<ComplexSelectorComponent>"),
- JSArray_ComplexSelectorComponent_2: findType("JSArray<ComplexSelectorComponent0>"),
- JSArray_ComplexSelector_2: findType("JSArray<ComplexSelector0>"),
- JSArray_CompoundSelector: findType("JSArray<CompoundSelector>"),
- JSArray_CompoundSelector_2: findType("JSArray<CompoundSelector0>"),
- JSArray_ConfiguredVariable: findType("JSArray<ConfiguredVariable>"),
- JSArray_ConfiguredVariable_2: findType("JSArray<ConfiguredVariable0>"),
- JSArray_CssMediaQuery: findType("JSArray<CssMediaQuery>"),
- JSArray_CssMediaQuery_2: findType("JSArray<CssMediaQuery0>"),
- JSArray_CssNode: findType("JSArray<CssNode>"),
- JSArray_CssNode_2: findType("JSArray<CssNode0>"),
- JSArray_Entry: findType("JSArray<Entry>"),
- JSArray_Expression: findType("JSArray<Expression>"),
- JSArray_Expression_2: findType("JSArray<Expression0>"),
- JSArray_Extender: findType("JSArray<Extender>"),
- JSArray_Extender_2: findType("JSArray<Extender0>"),
- JSArray_Extension: findType("JSArray<Extension>"),
- JSArray_Extension_2: findType("JSArray<Extension0>"),
- JSArray_ForwardRule: findType("JSArray<ForwardRule>"),
- JSArray_ForwardRule_2: findType("JSArray<ForwardRule0>"),
- JSArray_Frame: findType("JSArray<Frame>"),
- JSArray_IfClause: findType("JSArray<IfClause>"),
- JSArray_IfClause_2: findType("JSArray<IfClause0>"),
- JSArray_Import: findType("JSArray<Import>"),
- JSArray_Import_2: findType("JSArray<Import0>"),
- JSArray_Importer: findType("JSArray<Importer>"),
- JSArray_Iterable_ComplexSelectorComponent: findType("JSArray<Iterable<ComplexSelectorComponent>>"),
- JSArray_Iterable_ComplexSelectorComponent_2: findType("JSArray<Iterable<ComplexSelectorComponent0>>"),
- JSArray_JSFunction: findType("JSArray<JSFunction0>"),
- JSArray_List_ComplexSelectorComponent: findType("JSArray<List<ComplexSelectorComponent>>"),
- JSArray_List_ComplexSelectorComponent_2: findType("JSArray<List<ComplexSelectorComponent0>>"),
- JSArray_List_Extension: findType("JSArray<List<Extension>>"),
- JSArray_List_Extension_2: findType("JSArray<List<Extension0>>"),
- JSArray_List_Iterable_ComplexSelectorComponent: findType("JSArray<List<Iterable<ComplexSelectorComponent>>>"),
- JSArray_List_Iterable_ComplexSelectorComponent_2: findType("JSArray<List<Iterable<ComplexSelectorComponent0>>>"),
- JSArray_Map_String_AstNode: findType("JSArray<Map<String,AstNode>>"),
- JSArray_Map_String_AstNode_2: findType("JSArray<Map<String,AstNode0>>"),
- JSArray_Map_String_AsyncCallable: findType("JSArray<Map<String,AsyncCallable>>"),
- JSArray_Map_String_AsyncCallable_2: findType("JSArray<Map<String,AsyncCallable0>>"),
- JSArray_Map_String_Callable: findType("JSArray<Map<String,Callable>>"),
- JSArray_Map_String_Callable_2: findType("JSArray<Map<String,Callable0>>"),
- JSArray_Map_String_Value: findType("JSArray<Map<String,Value>>"),
- JSArray_Map_String_Value_2: findType("JSArray<Map<String,Value0>>"),
- JSArray_ModifiableCssImport: findType("JSArray<ModifiableCssImport>"),
- JSArray_ModifiableCssImport_2: findType("JSArray<ModifiableCssImport0>"),
- JSArray_ModifiableCssNode: findType("JSArray<ModifiableCssNode>"),
- JSArray_ModifiableCssNode_2: findType("JSArray<ModifiableCssNode0>"),
- JSArray_ModifiableCssParentNode: findType("JSArray<ModifiableCssParentNode>"),
- JSArray_ModifiableCssParentNode_2: findType("JSArray<ModifiableCssParentNode0>"),
- JSArray_Module_AsyncCallable: findType("JSArray<Module<AsyncCallable>>"),
- JSArray_Module_AsyncCallable_2: findType("JSArray<Module0<AsyncCallable0>>"),
- JSArray_Module_Callable: findType("JSArray<Module<Callable>>"),
- JSArray_Module_Callable_2: findType("JSArray<Module0<Callable0>>"),
- JSArray_PseudoSelector: findType("JSArray<PseudoSelector>"),
- JSArray_PseudoSelector_2: findType("JSArray<PseudoSelector0>"),
- JSArray_SassList: findType("JSArray<SassList>"),
- JSArray_SassList_2: findType("JSArray<SassList0>"),
- JSArray_SimpleSelector: findType("JSArray<SimpleSelector>"),
- JSArray_SimpleSelector_2: findType("JSArray<SimpleSelector0>"),
- JSArray_Statement: findType("JSArray<Statement>"),
- JSArray_Statement_2: findType("JSArray<Statement0>"),
- JSArray_String: findType("JSArray<String>"),
- JSArray_StylesheetNode: findType("JSArray<StylesheetNode>"),
- JSArray_TargetEntry: findType("JSArray<TargetEntry>"),
- JSArray_TargetLineEntry: findType("JSArray<TargetLineEntry>"),
- JSArray_Trace: findType("JSArray<Trace>"),
- JSArray_Tuple2_Expression_Expression: findType("JSArray<Tuple2<Expression,Expression>>"),
- JSArray_Tuple2_Expression_Expression_2: findType("JSArray<Tuple2<Expression0,Expression0>>"),
- JSArray_Tuple2_String_AstNode: findType("JSArray<Tuple2<String,AstNode>>"),
- JSArray_Tuple2_String_AstNode_2: findType("JSArray<Tuple2<String,AstNode0>>"),
- JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value: findType("JSArray<Tuple2<ArgumentDeclaration,Value(List<Value>)>>"),
- JSArray_Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("JSArray<Tuple2<ArgumentDeclaration0,Value0(List<Value0>)>>"),
- JSArray_Uri: findType("JSArray<Uri>"),
- JSArray_UseRule: findType("JSArray<UseRule>"),
- JSArray_UseRule_2: findType("JSArray<UseRule0>"),
- JSArray_Value: findType("JSArray<Value>"),
- JSArray_Value_2: findType("JSArray<Value0>"),
- JSArray__Highlight: findType("JSArray<_Highlight>"),
- JSArray__Line: findType("JSArray<_Line>"),
- JSArray_bool: findType("JSArray<bool>"),
- JSArray_dynamic: findType("JSArray<@>"),
- JSArray_int: findType("JSArray<int>"),
- JSError: findType("JSError"),
- JSFunction: findType("JSFunction0"),
- JavaScriptFunction: findType("JavaScriptFunction"),
- JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"),
- JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap<Symbol0,@>"),
- List_ComplexSelector: findType("List<ComplexSelector>"),
- List_ComplexSelectorComponent: findType("List<ComplexSelectorComponent>"),
- List_ComplexSelectorComponent_2: findType("List<ComplexSelectorComponent0>"),
- List_ComplexSelector_2: findType("List<ComplexSelector0>"),
- List_CssMediaQuery: findType("List<CssMediaQuery>"),
- List_CssMediaQuery_2: findType("List<CssMediaQuery0>"),
- List_Extender: findType("List<Extender>"),
- List_Extender_2: findType("List<Extender0>"),
- List_Extension: findType("List<Extension>"),
- List_Extension_2: findType("List<Extension0>"),
- List_List_ComplexSelectorComponent: findType("List<List<ComplexSelectorComponent>>"),
- List_List_ComplexSelectorComponent_2: findType("List<List<ComplexSelectorComponent0>>"),
- List_Module_AsyncCallable: findType("List<Module<AsyncCallable>>"),
- List_Module_AsyncCallable_2: findType("List<Module0<AsyncCallable0>>"),
- List_Module_Callable: findType("List<Module<Callable>>"),
- List_Module_Callable_2: findType("List<Module0<Callable0>>"),
- List_Object: findType("List<Object>"),
- List_String: findType("List<String>"),
- List_Value: findType("List<Value>"),
- List_Value_2: findType("List<Value0>"),
- List_WatchEvent: findType("List<WatchEvent>"),
- List_dynamic: findType("List<@>"),
- List_int: findType("List<int>"),
- MapKeySet_Object: findType("MapKeySet<Object>"),
- MapKeySet_SimpleSelector: findType("MapKeySet<SimpleSelector>"),
- MapKeySet_SimpleSelector_2: findType("MapKeySet<SimpleSelector0>"),
- MapKeySet_String: findType("MapKeySet<String>"),
- Map_ComplexSelector_Extension: findType("Map<ComplexSelector,Extension>"),
- Map_ComplexSelector_Extension_2: findType("Map<ComplexSelector0,Extension0>"),
- Map_dynamic_dynamic: findType("Map<@,@>"),
- MappedIterable_String_Frame: findType("MappedIterable<String,Frame>"),
- MappedListIterable_Frame_Frame: findType("MappedListIterable<Frame,Frame>"),
- MappedListIterable_String_String: findType("MappedListIterable<String,String>"),
- MappedListIterable_String_Trace: findType("MappedListIterable<String,Trace>"),
- MappedListIterable_String_dynamic: findType("MappedListIterable<String,@>"),
- MappedListIterable_of_String_and_Future_void: findType("MappedListIterable<String,Future<~>>"),
- MediaQuerySuccessfulMergeResult: findType("MediaQuerySuccessfulMergeResult"),
- MediaQuerySuccessfulMergeResult_2: findType("MediaQuerySuccessfulMergeResult0"),
- MixinRule: findType("MixinRule"),
- MixinRule_2: findType("MixinRule0"),
- ModifiableCssAtRule: findType("ModifiableCssAtRule"),
- ModifiableCssAtRule_2: findType("ModifiableCssAtRule0"),
- ModifiableCssKeyframeBlock: findType("ModifiableCssKeyframeBlock"),
- ModifiableCssKeyframeBlock_2: findType("ModifiableCssKeyframeBlock0"),
- ModifiableCssMediaRule: findType("ModifiableCssMediaRule"),
- ModifiableCssMediaRule_2: findType("ModifiableCssMediaRule0"),
- ModifiableCssParentNode: findType("ModifiableCssParentNode"),
- ModifiableCssParentNode_2: findType("ModifiableCssParentNode0"),
- ModifiableCssStyleRule: findType("ModifiableCssStyleRule"),
- ModifiableCssStyleRule_2: findType("ModifiableCssStyleRule0"),
- ModifiableCssSupportsRule: findType("ModifiableCssSupportsRule"),
- ModifiableCssSupportsRule_2: findType("ModifiableCssSupportsRule0"),
- ModifiableCssValue_SelectorList: findType("ModifiableCssValue<SelectorList>"),
- ModifiableCssValue_SelectorList_2: findType("ModifiableCssValue0<SelectorList0>"),
- Module_AsyncCallable: findType("Module<AsyncCallable>"),
- Module_AsyncCallable_2: findType("Module0<AsyncCallable0>"),
- Module_Callable: findType("Module<Callable>"),
- Module_Callable_2: findType("Module0<Callable0>"),
- NativeTypedArrayOfDouble: findType("NativeTypedArrayOfDouble"),
- NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"),
- NativeUint8List: findType("NativeUint8List"),
- NodeImporterResult: findType("NodeImporterResult0"),
- Null: findType("Null"),
- Object: findType("Object"),
- Object_Function: findType("Object()"),
- Option: findType("Option"),
- ParentSelector: findType("ParentSelector"),
- ParentSelector_2: findType("ParentSelector0"),
- PathMap_ChangeType: findType("PathMap<ChangeType>"),
- PathMap_String: findType("PathMap<String>"),
- PseudoSelector: findType("PseudoSelector"),
- PseudoSelector_2: findType("PseudoSelector0"),
- RenderResult: findType("RenderResult"),
- Result_String: findType("Result<String>"),
- ReversedListIterable_Combinator: findType("ReversedListIterable<Combinator>"),
- ReversedListIterable_Combinator_2: findType("ReversedListIterable<Combinator0>"),
- ReversedListIterable_Frame: findType("ReversedListIterable<Frame>"),
- SassArgumentList: findType("SassArgumentList"),
- SassArgumentList_2: findType("SassArgumentList0"),
- SassBoolean: findType("SassBoolean"),
- SassBoolean_2: findType("SassBoolean0"),
- SassColor: findType("SassColor"),
- SassColor_2: findType("SassColor0"),
- SassList: findType("SassList"),
- SassList_2: findType("SassList0"),
- SassMap: findType("SassMap"),
- SassMap_2: findType("SassMap0"),
- SassNull: findType("SassNull"),
- SassNull_2: findType("SassNull0"),
- SassNumber: findType("SassNumber"),
- SassNumber_2: findType("SassNumber0"),
- SassRuntimeException: findType("SassRuntimeException"),
- SassRuntimeException_2: findType("SassRuntimeException0"),
- SassString: findType("SassString"),
- SassString_2: findType("SassString0"),
- Set_ModifiableCssValue_SelectorList: findType("Set<ModifiableCssValue<SelectorList>>"),
- Set_ModifiableCssValue_SelectorList_2: findType("Set<ModifiableCssValue0<SelectorList0>>"),
- SimpleSelector: findType("SimpleSelector"),
- SimpleSelector_2: findType("SimpleSelector0"),
- SourceFile: findType("SourceFile"),
- SourceLocation: findType("SourceLocation"),
- SourceSpan: findType("SourceSpan"),
- SourceSpanFormatException: findType("SourceSpanFormatException"),
- SourceSpanWithContext: findType("SourceSpanWithContext"),
- Statement: findType("Statement"),
- Statement_2: findType("Statement0"),
- StaticImport: findType("StaticImport"),
- StaticImport_2: findType("StaticImport0"),
- StreamCompleter_WatchEvent: findType("StreamCompleter<WatchEvent>"),
- StreamGroup_WatchEvent: findType("StreamGroup<WatchEvent>"),
- StreamQueue_String: findType("StreamQueue<String>"),
- StreamSubscription_WatchEvent: findType("StreamSubscription<WatchEvent>"),
- Stream_WatchEvent: findType("Stream<WatchEvent>"),
- String: findType("String"),
- StringBuffer: findType("StringBuffer"),
- StringConversionSink: findType("StringConversionSink"),
- Stylesheet: findType("Stylesheet0"),
- StylesheetNode: findType("StylesheetNode"),
- Stylesheet_2: findType("Stylesheet"),
- Timer: findType("Timer"),
- Trace: findType("Trace"),
- Tuple2_AsyncImporter_Stylesheet: findType("Tuple2<AsyncImporter,Stylesheet>"),
- Tuple2_AsyncImporter_Stylesheet_2: findType("Tuple2<AsyncImporter0,Stylesheet0>"),
- Tuple2_Expression_Expression: findType("Tuple2<Expression,Expression>"),
- Tuple2_Expression_Expression_2: findType("Tuple2<Expression0,Expression0>"),
- Tuple2_Importer_Stylesheet: findType("Tuple2<Importer,Stylesheet>"),
- Tuple2_Importer_Stylesheet_2: findType("Tuple2<Importer0,Stylesheet0>"),
- Tuple2_ModifiableCssStylesheet_Extender: findType("Tuple2<ModifiableCssStylesheet,Extender>"),
- Tuple2_ModifiableCssStylesheet_Extender_2: findType("Tuple2<ModifiableCssStylesheet0,Extender0>"),
- Tuple2_SassNumber_SassNumber: findType("Tuple2<SassNumber,SassNumber>"),
- Tuple2_SassNumber_SassNumber_2: findType("Tuple2<SassNumber0,SassNumber0>"),
- Tuple2_String_ArgumentDeclaration: findType("Tuple2<String,ArgumentDeclaration0>"),
- Tuple2_String_AstNode: findType("Tuple2<String,AstNode>"),
- Tuple2_String_AstNode_2: findType("Tuple2<String,AstNode0>"),
- Tuple2_String_String: findType("Tuple2<String,String>"),
- Tuple2_SupportsCondition_Interpolation: findType("Tuple2<SupportsCondition,Interpolation>"),
- Tuple2_SupportsCondition_Interpolation_2: findType("Tuple2<SupportsCondition0,Interpolation0>"),
- Tuple2_Uri_bool: findType("Tuple2<Uri,bool>"),
- Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value: findType("Tuple2<ArgumentDeclaration,Value/(List<Value>)>"),
- Tuple2_of_ArgumentDeclaration_and_FutureOr_Value_Function_List_Value_2: findType("Tuple2<ArgumentDeclaration0,Value0/(List<Value0>)>"),
- Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value: findType("Tuple2<ArgumentDeclaration,Value(List<Value>)>"),
- Tuple2_of_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("Tuple2<ArgumentDeclaration0,Value0(List<Value0>)>"),
- Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList: findType("Tuple2<Extender,Map<CssValue<SelectorList>,ModifiableCssValue<SelectorList>>>"),
- Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2: findType("Tuple2<Extender0,Map<CssValue0<SelectorList0>,ModifiableCssValue0<SelectorList0>>>"),
- Tuple2_of_List_Expression_and_Map_String_Expression: findType("Tuple2<List<Expression>,Map<String,Expression>>"),
- Tuple2_of_List_Expression_and_Map_String_Expression_2: findType("Tuple2<List<Expression0>,Map<String,Expression0>>"),
- Tuple2_of_List_Uri_and_List_Uri: findType("Tuple2<List<Uri>,List<Uri>>"),
- Tuple2_of_Map_Uri_StylesheetNode_and_Map_Uri_StylesheetNode: findType("Tuple2<Map<Uri,StylesheetNode>,Map<Uri,StylesheetNode>>"),
- Tuple2_of_Set_String_and_Set_String: findType("Tuple2<Set<String>,Set<String>>"),
- Tuple3_AsyncImporter_Uri_Uri: findType("Tuple3<AsyncImporter0,Uri,Uri>"),
- Tuple3_AsyncImporter_Uri_Uri_2: findType("Tuple3<AsyncImporter,Uri,Uri>"),
- Tuple3_Importer_Uri_Uri: findType("Tuple3<Importer,Uri,Uri>"),
- Tuple3_Importer_Uri_Uri_2: findType("Tuple3<Importer0,Uri,Uri>"),
- Uint8List: findType("Uint8List"),
- UnknownJavaScriptObject: findType("UnknownJavaScriptObject"),
- UnmodifiableListView_CssNode: findType("UnmodifiableListView<CssNode>"),
- UnmodifiableListView_CssNode_2: findType("UnmodifiableListView<CssNode0>"),
- UnmodifiableListView_ForwardRule: findType("UnmodifiableListView<ForwardRule>"),
- UnmodifiableListView_ForwardRule_2: findType("UnmodifiableListView<ForwardRule0>"),
- UnmodifiableListView_ModifiableCssNode: findType("UnmodifiableListView<ModifiableCssNode>"),
- UnmodifiableListView_ModifiableCssNode_2: findType("UnmodifiableListView<ModifiableCssNode0>"),
- UnmodifiableListView_String: findType("UnmodifiableListView<String>"),
- UnmodifiableListView_UseRule: findType("UnmodifiableListView<UseRule>"),
- UnmodifiableListView_UseRule_2: findType("UnmodifiableListView<UseRule0>"),
- UnmodifiableMapView_String_ArgParser: findType("UnmodifiableMapView<String,ArgParser>"),
- UnmodifiableMapView_String_ConfiguredValue: findType("UnmodifiableMapView<String,ConfiguredValue>"),
- UnmodifiableMapView_String_ConfiguredValue_2: findType("UnmodifiableMapView<String,ConfiguredValue0>"),
- UnmodifiableMapView_String_Option: findType("UnmodifiableMapView<String,Option>"),
- UnmodifiableMapView_String_SourceFile: findType("UnmodifiableMapView<String,SourceFile>"),
- UnmodifiableMapView_String_String: findType("UnmodifiableMapView<String,String>"),
- UnmodifiableMapView_String_Value: findType("UnmodifiableMapView<String,Value>"),
- UnmodifiableMapView_String_Value_2: findType("UnmodifiableMapView<String,Value0>"),
- UnmodifiableMapView_Uri_StylesheetNode: findType("UnmodifiableMapView<Uri,StylesheetNode>"),
- UnmodifiableSetView_String: findType("UnmodifiableSetView<String>"),
- UnmodifiableSetView_StylesheetNode: findType("UnmodifiableSetView<StylesheetNode>"),
- UnprefixedMapView_ConfiguredValue: findType("UnprefixedMapView<ConfiguredValue>"),
- UnprefixedMapView_ConfiguredValue_2: findType("UnprefixedMapView0<ConfiguredValue0>"),
- Uri: findType("Uri"),
- UseRule: findType("UseRule"),
- UserDefinedCallable_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment>"),
- UserDefinedCallable_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0>"),
- UserDefinedCallable_Environment: findType("UserDefinedCallable<Environment>"),
- UserDefinedCallable_Environment_2: findType("UserDefinedCallable0<Environment0>"),
- Value: findType("Value"),
- Value_2: findType("Value0"),
- VariableDeclaration: findType("VariableDeclaration"),
- VariableDeclaration_2: findType("VariableDeclaration0"),
- WatchEvent: findType("WatchEvent"),
- WhereIterable_List_Iterable_ComplexSelectorComponent: findType("WhereIterable<List<Iterable<ComplexSelectorComponent>>>"),
- WhereIterable_List_Iterable_ComplexSelectorComponent_2: findType("WhereIterable<List<Iterable<ComplexSelectorComponent0>>>"),
- WhereIterable_String: findType("WhereIterable<String>"),
- WhereTypeIterable_PseudoSelector: findType("WhereTypeIterable<PseudoSelector>"),
- WhereTypeIterable_PseudoSelector_2: findType("WhereTypeIterable<PseudoSelector0>"),
- _ArgumentResults: findType("_ArgumentResults0"),
- _ArgumentResults_2: findType("_ArgumentResults2"),
- _AsyncCompleter_Object: findType("_AsyncCompleter<Object>"),
- _AsyncCompleter_Stream_WatchEvent: findType("_AsyncCompleter<Stream<WatchEvent>>"),
- _AsyncCompleter_String: findType("_AsyncCompleter<String>"),
- _CompleterStream_WatchEvent: findType("_CompleterStream<WatchEvent>"),
- _EventRequest_dynamic: findType("_EventRequest<@>"),
- _Future_Object: findType("_Future<Object>"),
- _Future_Stream_WatchEvent: findType("_Future<Stream<WatchEvent>>"),
- _Future_String: findType("_Future<String>"),
- _Future_bool: findType("_Future<bool>"),
- _Future_dynamic: findType("_Future<@>"),
- _Future_int: findType("_Future<int>"),
- _Future_void: findType("_Future<~>"),
- _Highlight: findType("_Highlight"),
- _LinkedIdentityHashSet_ComplexSelector: findType("_LinkedIdentityHashSet<ComplexSelector>"),
- _LinkedIdentityHashSet_ComplexSelector_2: findType("_LinkedIdentityHashSet<ComplexSelector0>"),
- _LinkedIdentityHashSet_Extension: findType("_LinkedIdentityHashSet<Extension>"),
- _LinkedIdentityHashSet_Extension_2: findType("_LinkedIdentityHashSet<Extension0>"),
- _MapEntry: findType("_MapEntry"),
- _SystemError: findType("_SystemError"),
- _SystemError_2: findType("_SystemError0"),
- bool: findType("bool"),
- double: findType("double"),
- dynamic: findType("@"),
- dynamic_Function_Object: findType("@(Object)"),
- dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"),
- int: findType("int"),
- num: findType("num"),
- void: findType("~"),
- void_Function_Object: findType("~(Object)"),
- void_Function_Object_StackTrace: findType("~(Object,StackTrace)")
- };
- })();
- (function constants() {
- var makeConstList = hunkHelpers.makeConstList;
- C.Interceptor_methods = J.Interceptor.prototype;
- C.JSArray_methods = J.JSArray.prototype;
- C.JSBool_methods = J.JSBool.prototype;
- C.JSDouble_methods = J.JSDouble.prototype;
- C.JSInt_methods = J.JSInt.prototype;
- C.JSNumber_methods = J.JSNumber.prototype;
- C.JSString_methods = J.JSString.prototype;
- C.JavaScriptFunction_methods = J.JavaScriptFunction.prototype;
- C.NativeUint32List_methods = H.NativeUint32List.prototype;
- C.NativeUint8List_methods = H.NativeUint8List.prototype;
- C.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype;
- C.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype;
- C.AsciiEncoder_127 = new P.AsciiEncoder(127);
- C.C_EmptyUnmodifiableSet1 = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<String>"));
- C.AtRootQuery_UsS = new V.AtRootQuery(false, C.C_EmptyUnmodifiableSet1, false, true);
- C.AtRootQuery_UsS0 = new V.AtRootQuery0(false, C.C_EmptyUnmodifiableSet1, false, true);
- C.AttributeOperator_4L5 = new N.AttributeOperator("^=");
- C.AttributeOperator_4L50 = new N.AttributeOperator0("^=");
- C.AttributeOperator_AuK = new N.AttributeOperator("|=");
- C.AttributeOperator_AuK0 = new N.AttributeOperator0("|=");
- C.AttributeOperator_fz1 = new N.AttributeOperator("~=");
- C.AttributeOperator_fz10 = new N.AttributeOperator0("~=");
- C.AttributeOperator_gqZ = new N.AttributeOperator("*=");
- C.AttributeOperator_gqZ0 = new N.AttributeOperator0("*=");
- C.AttributeOperator_mOX = new N.AttributeOperator("$=");
- C.AttributeOperator_mOX0 = new N.AttributeOperator0("$=");
- C.AttributeOperator_sEs = new N.AttributeOperator("=");
- C.AttributeOperator_sEs0 = new N.AttributeOperator0("=");
- C.BinaryOperator_1da = new V.BinaryOperator("greater than or equals", ">=", 4);
- C.BinaryOperator_1da0 = new V.BinaryOperator0("greater than or equals", ">=", 4);
- C.BinaryOperator_2ad = new V.BinaryOperator("modulo", "%", 6);
- C.BinaryOperator_2ad0 = new V.BinaryOperator0("modulo", "%", 6);
- C.BinaryOperator_33h = new V.BinaryOperator("less than or equals", "<=", 4);
- C.BinaryOperator_33h0 = new V.BinaryOperator0("less than or equals", "<=", 4);
- C.BinaryOperator_8qt = new V.BinaryOperator("less than", "<", 4);
- C.BinaryOperator_8qt0 = new V.BinaryOperator0("less than", "<", 4);
- C.BinaryOperator_AcR0 = new V.BinaryOperator("greater than", ">", 4);
- C.BinaryOperator_AcR = new V.BinaryOperator("plus", "+", 5);
- C.BinaryOperator_AcR2 = new V.BinaryOperator0("greater than", ">", 4);
- C.BinaryOperator_AcR1 = new V.BinaryOperator0("plus", "+", 5);
- C.BinaryOperator_O1M = new V.BinaryOperator("times", "*", 6);
- C.BinaryOperator_O1M0 = new V.BinaryOperator0("times", "*", 6);
- C.BinaryOperator_RTB = new V.BinaryOperator("divided by", "/", 6);
- C.BinaryOperator_RTB0 = new V.BinaryOperator0("divided by", "/", 6);
- C.BinaryOperator_YlX = new V.BinaryOperator("equals", "==", 3);
- C.BinaryOperator_YlX0 = new V.BinaryOperator0("equals", "==", 3);
- C.BinaryOperator_and_and_2 = new V.BinaryOperator("and", "and", 2);
- C.BinaryOperator_and_and_20 = new V.BinaryOperator0("and", "and", 2);
- C.BinaryOperator_i5H = new V.BinaryOperator("not equals", "!=", 3);
- C.BinaryOperator_i5H0 = new V.BinaryOperator0("not equals", "!=", 3);
- C.BinaryOperator_iyO = new V.BinaryOperator("minus", "-", 5);
- C.BinaryOperator_iyO0 = new V.BinaryOperator0("minus", "-", 5);
- C.BinaryOperator_kjl = new V.BinaryOperator("single equals", "=", 0);
- C.BinaryOperator_kjl0 = new V.BinaryOperator0("single equals", "=", 0);
- C.BinaryOperator_or_or_1 = new V.BinaryOperator("or", "or", 1);
- C.BinaryOperator_or_or_10 = new V.BinaryOperator0("or", "or", 1);
- C.C_AsciiCodec = new P.AsciiCodec();
- C.C_AsciiGlyphSet = new A.AsciiGlyphSet();
- C.C_Base64Encoder = new P.Base64Encoder();
- C.C_Base64Codec = new P.Base64Codec();
- C.C_DefaultEquality = new U.DefaultEquality();
- C.C_EmptyExtender = new T.EmptyExtender();
- C.C_EmptyExtender0 = new T.EmptyExtender0();
- C.C_EmptyIterator = new H.EmptyIterator();
- C.C_EmptyUnmodifiableSet = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<SimpleSelector>"));
- C.C_EmptyUnmodifiableSet0 = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<SimpleSelector0>"));
- C.C_IterableEquality = new U.IterableEquality();
- C.C_JS_CONST = function getTagFallback(o) {
- var s = Object.prototype.toString.call(o);
- return s.substring(8, s.length - 1);
- };
- C.C_JS_CONST0 = function() {
- var toStringFunction = Object.prototype.toString;
- function getTag(o) {
- var s = toStringFunction.call(o);
- return s.substring(8, s.length - 1);
- }
- function getUnknownTag(object, tag) {
- if (/^HTML[A-Z].*Element$/.test(tag)) {
- var name = toStringFunction.call(object);
- if (name == "[object Object]") return null;
- return "HTMLElement";
- }
- }
- function getUnknownTagGenericBrowser(object, tag) {
- if (self.HTMLElement && object instanceof HTMLElement) return "HTMLElement";
- return getUnknownTag(object, tag);
- }
- function prototypeForTag(tag) {
- if (typeof window == "undefined") return null;
- if (typeof window[tag] == "undefined") return null;
- var constructor = window[tag];
- if (typeof constructor != "function") return null;
- return constructor.prototype;
- }
- function discriminator(tag) { return null; }
- var isBrowser = typeof navigator == "object";
- return {
- getTag: getTag,
- getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag,
- prototypeForTag: prototypeForTag,
- discriminator: discriminator };
- };
- C.C_JS_CONST6 = function(getTagFallback) {
- return function(hooks) {
- if (typeof navigator != "object") return hooks;
- var ua = navigator.userAgent;
- if (ua.indexOf("DumpRenderTree") >= 0) return hooks;
- if (ua.indexOf("Chrome") >= 0) {
- function confirm(p) {
- return typeof window == "object" && window[p] && window[p].name == p;
- }
- if (confirm("Window") && confirm("HTMLElement")) return hooks;
- }
- hooks.getTag = getTagFallback;
- };
- };
- C.C_JS_CONST1 = function(hooks) {
- if (typeof dartExperimentalFixupGetTag != "function") return hooks;
- hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
- };
- C.C_JS_CONST2 = function(hooks) {
- var getTag = hooks.getTag;
- var prototypeForTag = hooks.prototypeForTag;
- function getTagFixed(o) {
- var tag = getTag(o);
- if (tag == "Document") {
- if (!!o.xmlVersion) return "!Document";
- return "!HTMLDocument";
- }
- return tag;
- }
- function prototypeForTagFixed(tag) {
- if (tag == "Document") return null;
- return prototypeForTag(tag);
- }
- hooks.getTag = getTagFixed;
- hooks.prototypeForTag = prototypeForTagFixed;
- };
- C.C_JS_CONST5 = function(hooks) {
- var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
- if (userAgent.indexOf("Firefox") == -1) return hooks;
- var getTag = hooks.getTag;
- var quickMap = {
- "BeforeUnloadEvent": "Event",
- "DataTransfer": "Clipboard",
- "GeoGeolocation": "Geolocation",
- "Location": "!Location",
- "WorkerMessageEvent": "MessageEvent",
- "XMLDocument": "!Document"};
- function getTagFirefox(o) {
- var tag = getTag(o);
- return quickMap[tag] || tag;
- }
- hooks.getTag = getTagFirefox;
- };
- C.C_JS_CONST4 = function(hooks) {
- var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
- if (userAgent.indexOf("Trident/") == -1) return hooks;
- var getTag = hooks.getTag;
- var quickMap = {
- "BeforeUnloadEvent": "Event",
- "DataTransfer": "Clipboard",
- "HTMLDDElement": "HTMLElement",
- "HTMLDTElement": "HTMLElement",
- "HTMLPhraseElement": "HTMLElement",
- "Position": "Geoposition"
- };
- function getTagIE(o) {
- var tag = getTag(o);
- var newTag = quickMap[tag];
- if (newTag) return newTag;
- if (tag == "Object") {
- if (window.DataView && (o instanceof window.DataView)) return "DataView";
- }
- return tag;
- }
- function prototypeForTagIE(tag) {
- var constructor = window[tag];
- if (constructor == null) return null;
- return constructor.prototype;
- }
- hooks.getTag = getTagIE;
- hooks.prototypeForTag = prototypeForTagIE;
- };
- C.C_JS_CONST3 = function(hooks) { return hooks; }
- ;
- C.C_JsonCodec = new P.JsonCodec();
- C.C_LineFeed = new N.LineFeed();
- C.C_ListEquality = new U.ListEquality();
- C.C_MapEquality = new U.MapEquality();
- C.C_OutOfMemoryError = new P.OutOfMemoryError();
- C.C_SassNull0 = new O.SassNull();
- C.C_SassNull = new O.SassNull0();
- C.C_StderrLogger = new S.StderrLogger0();
- C.C_UnicodeGlyphSet = new K.UnicodeGlyphSet();
- C.C_Utf8Codec = new P.Utf8Codec();
- C.C_Utf8Encoder = new P.Utf8Encoder();
- C.C__DelayedDone = new P._DelayedDone();
- C.C__JSRandom = new P._JSRandom();
- C.C__RootZone = new P._RootZone();
- C.ChangeType_add = new E.ChangeType("add");
- C.ChangeType_modify = new E.ChangeType("modify");
- C.ChangeType_remove = new E.ChangeType("remove");
- C.Combinator_CzM = new S.Combinator("~");
- C.Combinator_CzM0 = new S.Combinator0("~");
- C.Combinator_sgq = new S.Combinator(">");
- C.Combinator_sgq0 = new S.Combinator0(">");
- C.Combinator_uzg = new S.Combinator("+");
- C.Combinator_uzg0 = new S.Combinator0("+");
- C.List_empty = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_String);
- C.Map_empty12 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,ConfiguredValue>"));
- C.Configuration_Map_empty_null_true = new A.Configuration(C.Map_empty12, null, true);
- C.Map_empty13 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,ConfiguredValue0>"));
- C.Configuration_Map_empty_null_true0 = new A.Configuration0(C.Map_empty13, null, true);
- C.Duration_0 = new P.Duration(0);
- C.ExtendMode_allTargets = new L.ExtendMode("allTargets");
- C.ExtendMode_allTargets0 = new L.ExtendMode0("allTargets");
- C.ExtendMode_normal = new L.ExtendMode("normal");
- C.ExtendMode_normal0 = new L.ExtendMode0("normal");
- C.ExtendMode_replace = new L.ExtendMode("replace");
- C.ExtendMode_replace0 = new L.ExtendMode0("replace");
- C.JsonEncoder_null = new P.JsonEncoder(null);
- C.LineFeed_D6m = new N.LineFeed0("lf", "\n");
- C.LineFeed_Mss = new N.LineFeed0("crlf", "\r\n");
- C.LineFeed_a1Y = new N.LineFeed0("lfcr", "\n\r");
- C.LineFeed_kMT = new N.LineFeed0("cr", "\r");
- C.ListSeparator_comma = new D.ListSeparator("comma");
- C.ListSeparator_comma0 = new D.ListSeparator0("comma");
- C.ListSeparator_space = new D.ListSeparator("space");
- C.ListSeparator_space0 = new D.ListSeparator0("space");
- C.ListSeparator_undecided = new D.ListSeparator("undecided");
- C.ListSeparator_undecided0 = new D.ListSeparator0("undecided");
- C.List_127_2047_65535_1114111 = H.setRuntimeTypeInfo(makeConstList([127, 2047, 65535, 1114111]), type$.JSArray_int);
- C.List_2Vk = H.setRuntimeTypeInfo(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_int);
- C.List_CVk = H.setRuntimeTypeInfo(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_int);
- C.List_JYB = H.setRuntimeTypeInfo(makeConstList([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]), type$.JSArray_int);
- C.List_empty8 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Argument);
- C.List_empty20 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Argument_2);
- C.List_empty21 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_AsyncCallable);
- C.List_empty23 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<AsyncImporter0>"));
- C.List_empty4 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_ComplexSelector);
- C.List_empty15 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_ComplexSelector_2);
- C.List_empty6 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_ConfiguredVariable);
- C.List_empty18 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_ConfiguredVariable_2);
- C.List_empty0 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_CssNode);
- C.List_empty12 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_CssNode_2);
- C.List_empty7 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Expression);
- C.List_empty19 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Expression_2);
- C.List_empty2 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Extension);
- C.List_empty13 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Extension_2);
- C.List_empty10 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Importer);
- C.List_empty17 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Importer0>"));
- C.List_empty3 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Module<Null>>"));
- C.List_empty14 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Module0<Null>>"));
- C.List_empty9 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Null>"));
- C.List_empty11 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Statement);
- C.List_empty5 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Value);
- C.List_empty16 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Value_2);
- C.List_empty1 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_int);
- C.List_empty22 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_dynamic);
- C.List_gRj = H.setRuntimeTypeInfo(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_int);
- C.List_nxB = H.setRuntimeTypeInfo(makeConstList([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]), type$.JSArray_int);
- C.List_qFt = H.setRuntimeTypeInfo(makeConstList([0, 0, 27858, 1023, 65534, 51199, 65535, 32767]), type$.JSArray_int);
- C.List_qNA = H.setRuntimeTypeInfo(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_int);
- C.List_qg40 = H.setRuntimeTypeInfo(makeConstList([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
- C.List_qg4 = H.setRuntimeTypeInfo(makeConstList([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
- C.Map_empty1 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,AstNode>"));
- C.Map_empty7 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,AstNode0>"));
- C.Map_empty3 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Expression>"));
- C.Map_empty9 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Expression0>"));
- C.Map_empty4 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Module<AsyncCallable>>"));
- C.Map_empty0 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Module<Callable>>"));
- C.Map_empty11 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Module0<AsyncCallable0>>"));
- C.Map_empty6 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Module0<Callable0>>"));
- C.Map_empty = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,SourceFile>"));
- C.Map_empty5 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,String>"));
- C.Map_empty2 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Value>"));
- C.Map_empty8 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String,Value0>"));
- C.List_empty24 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Symbol0>"));
- C.Map_empty10 = new H.ConstantStringMap(0, {}, C.List_empty24, H.findType("ConstantStringMap<Symbol0,@>"));
- C.OptionType_YwU = new G.OptionType("OptionType.single");
- C.OptionType_nMZ = new G.OptionType("OptionType.flag");
- C.OptionType_qyr = new G.OptionType("OptionType.multiple");
- C.OutputStyle_compressed = new N.OutputStyle("compressed");
- C.OutputStyle_compressed0 = new N.OutputStyle0("compressed");
- C.OutputStyle_expanded0 = new N.OutputStyle("expanded");
- C.OutputStyle_expanded = new N.OutputStyle0("expanded");
- C.SassBoolean_false0 = new Z.SassBoolean(false);
- C.SassBoolean_false = new Z.SassBoolean0(false);
- C.SassBoolean_true0 = new Z.SassBoolean(true);
- C.SassBoolean_true = new Z.SassBoolean0(true);
- C.SassList_lmy = new D.SassList(C.List_empty5, C.ListSeparator_comma, false);
- C.SassList_lmy0 = new D.SassList0(C.List_empty16, C.ListSeparator_comma0, false);
- C.Map_empty14 = new H.ConstantStringMap(0, {}, C.List_empty5, H.findType("ConstantStringMap<Value,Value>"));
- C.SassMap_Map_empty = new A.SassMap(C.Map_empty14);
- C.Map_empty15 = new H.ConstantStringMap(0, {}, C.List_empty16, H.findType("ConstantStringMap<Value0,Value0>"));
- C.SassMap_Map_empty0 = new A.SassMap0(C.Map_empty15);
- C.List_empty25 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Module_AsyncCallable);
- C.Map_empty16 = new H.ConstantStringMap(0, {}, C.List_empty25, H.findType("ConstantStringMap<Module<AsyncCallable>,Null>"));
- C.Set_empty0 = new P._UnmodifiableSet(C.Map_empty16, H.findType("_UnmodifiableSet<Module<AsyncCallable>>"));
- C.List_empty26 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Module_Callable);
- C.Map_empty17 = new H.ConstantStringMap(0, {}, C.List_empty26, H.findType("ConstantStringMap<Module<Callable>,Null>"));
- C.Set_empty = new P._UnmodifiableSet(C.Map_empty17, H.findType("_UnmodifiableSet<Module<Callable>>"));
- C.List_empty27 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Module_AsyncCallable_2);
- C.Map_empty18 = new H.ConstantStringMap(0, {}, C.List_empty27, H.findType("ConstantStringMap<Module0<AsyncCallable0>,Null>"));
- C.Set_empty3 = new P._UnmodifiableSet(C.Map_empty18, H.findType("_UnmodifiableSet<Module0<AsyncCallable0>>"));
- C.List_empty28 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_Module_Callable_2);
- C.Map_empty19 = new H.ConstantStringMap(0, {}, C.List_empty28, H.findType("ConstantStringMap<Module0<Callable0>,Null>"));
- C.Set_empty2 = new P._UnmodifiableSet(C.Map_empty19, H.findType("_UnmodifiableSet<Module0<Callable0>>"));
- C.List_empty29 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_StylesheetNode);
- C.Map_empty20 = new H.ConstantStringMap(0, {}, C.List_empty29, H.findType("ConstantStringMap<StylesheetNode,Null>"));
- C.Set_empty1 = new P._UnmodifiableSet(C.Map_empty20, H.findType("_UnmodifiableSet<StylesheetNode>"));
- C.StderrLogger_false = new S.StderrLogger(false);
- C.Symbol__warn = new H.Symbol("_warn");
- C.Symbol_call = new H.Symbol("call");
- C.Syntax_CSS = new M.Syntax("CSS");
- C.Syntax_CSS0 = new M.Syntax0("CSS");
- C.Syntax_SCSS = new M.Syntax("SCSS");
- C.Syntax_SCSS0 = new M.Syntax0("SCSS");
- C.Syntax_Sass = new M.Syntax("Sass");
- C.Syntax_Sass0 = new M.Syntax0("Sass");
- C.List_empty30 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<CssValue<SelectorList>>"));
- C.Map_empty21 = new H.ConstantStringMap(0, {}, C.List_empty30, H.findType("ConstantStringMap<CssValue<SelectorList>,ModifiableCssValue<SelectorList>>"));
- C.Tuple2_EmptyExtender_Map_empty = new S.Tuple2(C.C_EmptyExtender, C.Map_empty21, type$.Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList);
- C.List_empty31 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<CssValue0<SelectorList0>>"));
- C.Map_empty22 = new H.ConstantStringMap(0, {}, C.List_empty31, H.findType("ConstantStringMap<CssValue0<SelectorList0>,ModifiableCssValue0<SelectorList0>>"));
- C.Tuple2_EmptyExtender_Map_empty0 = new S.Tuple2(C.C_EmptyExtender0, C.Map_empty22, type$.Tuple2_of_Extender_and_Map_of_CssValue_SelectorList_and_ModifiableCssValue_SelectorList_2);
- C.UnaryOperator_U4G = new X.UnaryOperator("minus", "-");
- C.UnaryOperator_U4G0 = new X.UnaryOperator0("minus", "-");
- C.UnaryOperator_j2w = new X.UnaryOperator("plus", "+");
- C.UnaryOperator_j2w0 = new X.UnaryOperator0("plus", "+");
- C.UnaryOperator_not_not = new X.UnaryOperator("not", "not");
- C.UnaryOperator_not_not0 = new X.UnaryOperator0("not", "not");
- C.UnaryOperator_zDx = new X.UnaryOperator("divide", "/");
- C.UnaryOperator_zDx0 = new X.UnaryOperator0("divide", "/");
- C._IterationMarker_null_2 = new P._IterationMarker(null, 2);
- C._PathDirection_8Gl = new M._PathDirection("at root");
- C._PathDirection_988 = new M._PathDirection("below root");
- C._PathDirection_FIw = new M._PathDirection("reaches root");
- C._PathDirection_ZGD = new M._PathDirection("above root");
- C._PathRelation_different = new M._PathRelation("different");
- C._PathRelation_equal = new M._PathRelation("equal");
- C._PathRelation_inconclusive = new M._PathRelation("inconclusive");
- C._PathRelation_within = new M._PathRelation("within");
- C._RegisterBinaryZoneFunction_kGu = new P._RegisterBinaryZoneFunction(C.C__RootZone, P.async___rootRegisterBinaryCallback$closure());
- C._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback = new P._RegisterNullaryZoneFunction(C.C__RootZone, P.async___rootRegisterCallback$closure());
- C._RegisterUnaryZoneFunction_Bqo = new P._RegisterUnaryZoneFunction(C.C__RootZone, P.async___rootRegisterUnaryCallback$closure());
- C._RunBinaryZoneFunction__RootZone__rootRunBinary = new P._RunBinaryZoneFunction(C.C__RootZone, P.async___rootRunBinary$closure());
- C._RunNullaryZoneFunction__RootZone__rootRun = new P._RunNullaryZoneFunction(C.C__RootZone, P.async___rootRun$closure());
- C._RunUnaryZoneFunction__RootZone__rootRunUnary = new P._RunUnaryZoneFunction(C.C__RootZone, P.async___rootRunUnary$closure());
- C._SingletonCssMediaQueryMergeResult_empty = new F._SingletonCssMediaQueryMergeResult("empty");
- C._SingletonCssMediaQueryMergeResult_empty0 = new F._SingletonCssMediaQueryMergeResult0("empty");
- C._SingletonCssMediaQueryMergeResult_unrepresentable = new F._SingletonCssMediaQueryMergeResult("unrepresentable");
- C._SingletonCssMediaQueryMergeResult_unrepresentable0 = new F._SingletonCssMediaQueryMergeResult0("unrepresentable");
- C._StreamGroupState_canceled = new L._StreamGroupState("canceled");
- C._StreamGroupState_dormant = new L._StreamGroupState("dormant");
- C._StreamGroupState_listening = new L._StreamGroupState("listening");
- C._StreamGroupState_paused = new L._StreamGroupState("paused");
- C._StringStackTrace_3uE = new P._StringStackTrace("");
- C._ZoneFunction_3bB = new P._ZoneFunction(C.C__RootZone, P.async___rootCreatePeriodicTimer$closure());
- C._ZoneFunction_NMc = new P._ZoneFunction(C.C__RootZone, P.async___rootHandleUncaughtError$closure());
- C._ZoneFunction__RootZone__rootCreateTimer = new P._ZoneFunction(C.C__RootZone, P.async___rootCreateTimer$closure());
- C._ZoneFunction__RootZone__rootErrorCallback = new P._ZoneFunction(C.C__RootZone, P.async___rootErrorCallback$closure());
- C._ZoneFunction__RootZone__rootFork = new P._ZoneFunction(C.C__RootZone, P.async___rootFork$closure());
- C._ZoneFunction__RootZone__rootPrint = new P._ZoneFunction(C.C__RootZone, P.async___rootPrint$closure());
- C._ZoneFunction__RootZone__rootScheduleMicrotask = new P._ZoneFunction(C.C__RootZone, P.async___rootScheduleMicrotask$closure());
- C._ZoneSpecification_ALf = new P._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null);
- })();
- (function staticFields() {
- $.printToZone = null;
- $.Closure_functionCounter = 0;
- $.BoundClosure_selfFieldNameCache = null;
- $.BoundClosure_receiverFieldNameCache = null;
- $.getTagFunction = null;
- $.alternateTagFunction = null;
- $.prototypeForTagFunction = null;
- $.dispatchRecordsForInstanceTags = null;
- $.interceptorsForUncacheableTags = null;
- $.initNativeDispatchFlag = null;
- $._nextCallback = null;
- $._lastCallback = null;
- $._lastPriorityCallback = null;
- $._isInCallbackLoop = false;
- $.Zone__current = C.C__RootZone;
- $._RootZone__rootDelegate = null;
- $._toStringVisiting = [];
- $._currentUriBase = null;
- $._current = null;
- $._subselectorPseudos = P.LinkedHashSet_LinkedHashSet$_literal(["matches", "any", "nth-child", "nth-last-child"], type$.String);
- $._features = P.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
- $._inImportRule = false;
- $._selectorPseudoClasses = P.LinkedHashSet_LinkedHashSet$_literal(["not", "matches", "current", "any", "has", "host", "host-context"], type$.String);
- $._selectorPseudoElements = P.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
- $._glyphs = C.C_UnicodeGlyphSet;
- $._subselectorPseudos0 = P.LinkedHashSet_LinkedHashSet$_literal(["matches", "any", "nth-child", "nth-last-child"], type$.String);
- $._features0 = P.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
- $._selectorPseudoClasses0 = P.LinkedHashSet_LinkedHashSet$_literal(["not", "matches", "current", "any", "has", "host", "host-context"], type$.String);
- $._selectorPseudoElements0 = P.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
- $._inImportRule0 = false;
- })();
- (function lazyInitializers() {
- var _lazy = hunkHelpers.lazy;
- _lazy($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", function() {
- return H.getIsolateAffinityTag("_$dart_dartClosure");
- });
- _lazy($, "JS_INTEROP_INTERCEPTOR_TAG", "$get$JS_INTEROP_INTERCEPTOR_TAG", function() {
- return H.getIsolateAffinityTag("_$dart_js");
- });
- _lazy($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", function() {
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({
- toString: function() {
- return "$receiver$";
- }
- }));
- });
- _lazy($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", function() {
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({$method$: null,
- toString: function() {
- return "$receiver$";
- }
- }));
- });
- _lazy($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", function() {
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(null));
- });
- _lazy($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", function() {
- return H.TypeErrorDecoder_extractPattern(function() {
- var $argumentsExpr$ = '$arguments$';
- try {
- null.$method$($argumentsExpr$);
- } catch (e) {
- return e.message;
- }
- }());
- });
- _lazy($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", function() {
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(void 0));
- });
- _lazy($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", function() {
- return H.TypeErrorDecoder_extractPattern(function() {
- var $argumentsExpr$ = '$arguments$';
- try {
- (void 0).$method$($argumentsExpr$);
- } catch (e) {
- return e.message;
- }
- }());
- });
- _lazy($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", function() {
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(null));
- });
- _lazy($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", function() {
- return H.TypeErrorDecoder_extractPattern(function() {
- try {
- null.$method$;
- } catch (e) {
- return e.message;
- }
- }());
- });
- _lazy($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", function() {
- return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(void 0));
- });
- _lazy($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", function() {
- return H.TypeErrorDecoder_extractPattern(function() {
- try {
- (void 0).$method$;
- } catch (e) {
- return e.message;
- }
- }());
- });
- _lazy($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", function() {
- return P._AsyncRun__initializeScheduleImmediate();
- });
- _lazy($, "Future__nullFuture", "$get$Future__nullFuture", function() {
- return P._Future$zoneValue(null, C.C__RootZone, type$.Null);
- });
- _lazy($, "Future__falseFuture", "$get$Future__falseFuture", function() {
- return P._Future$zoneValue(false, C.C__RootZone, type$.bool);
- });
- _lazy($, "_RootZone__rootMap", "$get$_RootZone__rootMap", function() {
- var t1 = type$.dynamic;
- return P.HashMap_HashMap(t1, t1);
- });
- _lazy($, "Utf8Decoder__decoder", "$get$Utf8Decoder__decoder", function() {
- return P.Utf8Decoder__makeDecoder();
- });
- _lazy($, "_Base64Decoder__inverseAlphabet", "$get$_Base64Decoder__inverseAlphabet", function() {
- 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)));
- });
- _lazy($, "_Uri__isWindowsCached", "$get$_Uri__isWindowsCached", function() {
- return typeof process != "undefined" && Object.prototype.toString.call(process) == "[object process]" && process.platform == "win32";
- });
- _lazy($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", function() {
- return P.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", false);
- });
- _lazy($, "_hasErrorStackProperty", "$get$_hasErrorStackProperty", function() {
- return new Error().stack != void 0;
- });
- _lazy($, "_scannerTables", "$get$_scannerTables", function() {
- return P._createTables();
- });
- _lazy($, "Option__invalidChars", "$get$Option__invalidChars", function() {
- return P.RegExp_RegExp("[ \\t\\r\\n\"'\\\\/]", false);
- });
- _lazy($, "alwaysValid", "$get$alwaysValid", function() {
- return new Q.closure106();
- });
- _lazy($, "readline", "$get$readline", function() {
- return self.readline;
- });
- _lazy($, "windows", "$get$windows", function() {
- return M.Context_Context($.$get$Style_windows());
- });
- _lazy($, "url", "$get$url", function() {
- return M.Context_Context($.$get$Style_url());
- });
- _lazy($, "context", "$get$context", function() {
- return new M.Context($.$get$Style_platform(), null);
- });
- _lazy($, "Style_posix", "$get$Style_posix", function() {
- return new E.PosixStyle(P.RegExp_RegExp("/", false), P.RegExp_RegExp("[^/]$", false), P.RegExp_RegExp("^/", false));
- });
- _lazy($, "Style_windows", "$get$Style_windows", function() {
- return new L.WindowsStyle(P.RegExp_RegExp("[/\\\\]", false), P.RegExp_RegExp("[^/\\\\]$", false), P.RegExp_RegExp("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", false), P.RegExp_RegExp("^[/\\\\](?![/\\\\])", false));
- });
- _lazy($, "Style_url", "$get$Style_url", function() {
- 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));
- });
- _lazy($, "Style_platform", "$get$Style_platform", function() {
- return O.Style__getPlatformStyle();
- });
- _lazy($, "IfExpression_declaration", "$get$IfExpression_declaration", function() {
- return B.ArgumentDeclaration_ArgumentDeclaration$parse("@function if($condition, $if-true, $if-false) {", null);
- });
- _lazy($, "colorsByName", "$get$colorsByName", function() {
- var _null = null;
- 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$.String, type$.SassColor);
- });
- _lazy($, "namesByColor", "$get$namesByColor", function() {
- var t1 = type$.String,
- t2 = type$.SassColor;
- return Y.mapMap($.$get$colorsByName(), new X.closure70(), new X.closure71(), t1, t2, t2, t1);
- });
- _lazy($, "ExecutableOptions__separatorBar", "$get$ExecutableOptions__separatorBar", function() {
- return B.isWindows() ? "=" : "\u2501";
- });
- _lazy($, "ExecutableOptions__parser", "$get$ExecutableOptions__parser", function() {
- return new B.ExecutableOptions_closure().call$0();
- });
- _lazy($, "globalFunctions", "$get$globalFunctions", function() {
- var t2,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInCallable);
- for (t2 = $.$get$global0(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global1(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global2(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global3(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global4(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global5(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- t1.push(Q.BuiltInCallable$function("if", "$condition, $if-true, $if-false", new Y.closure(), null));
- return P.UnmodifiableListView$(t1, type$.BuiltInCallable);
- });
- _lazy($, "coreModules", "$get$coreModules", function() {
- return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$module(), $.$get$module0(), $.$get$module1(), $.$get$module2(), $.$get$module3(), $.$get$module4()], type$.JSArray_BuiltInModule_BuiltInCallable), H.findType("BuiltInModule<BuiltInCallable>"));
- });
- _lazy($, "_microsoftFilterStart", "$get$_microsoftFilterStart", function() {
- return P.RegExp_RegExp("^[a-zA-Z]+\\s*=", false);
- });
- _lazy($, "global", "$get$global0", function() {
- var _s27_ = "$red, $green, $blue, $alpha",
- _s19_ = "$red, $green, $blue",
- _s37_ = "$hue, $saturation, $lightness, $alpha",
- _s29_ = "$hue, $saturation, $lightness",
- _s17_ = "$hue, $saturation",
- _s15_ = "$color, $amount",
- t1 = type$.String,
- t2 = H.findType("Value(List<Value>)");
- 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_BuiltInCallable), type$.BuiltInCallable);
- });
- _lazy($, "module", "$get$module", function() {
- var _s9_ = "lightness",
- _s10_ = "saturation",
- _s5_ = "alpha";
- return Q.BuiltInModule$("color", H.setRuntimeTypeInfo([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), K._function4("invert", "$color, $weight: 100%", new K.closure96()), $.$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.closure97()), 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.closure98(), "$args...", new K.closure99()], type$.String, H.findType("Value(List<Value>)"))), K._function4("opacity", "$color", new K.closure100()), $.$get$_adjust(), $.$get$_scale(), $.$get$_change(), $.$get$_ieHexStr()], type$.JSArray_BuiltInCallable), null, null, type$.BuiltInCallable);
- });
- _lazy($, "_red", "$get$_red", function() {
- return K._function4("red", "$color", new K.closure83());
- });
- _lazy($, "_green", "$get$_green", function() {
- return K._function4("green", "$color", new K.closure82());
- });
- _lazy($, "_blue", "$get$_blue", function() {
- return K._function4("blue", "$color", new K.closure81());
- });
- _lazy($, "_mix", "$get$_mix", function() {
- return K._function4("mix", "$color1, $color2, $weight: 50%", new K.closure80());
- });
- _lazy($, "_hue", "$get$_hue", function() {
- return K._function4("hue", "$color", new K.closure79());
- });
- _lazy($, "_saturation", "$get$_saturation", function() {
- return K._function4("saturation", "$color", new K.closure78());
- });
- _lazy($, "_lightness", "$get$_lightness", function() {
- return K._function4("lightness", "$color", new K.closure77());
- });
- _lazy($, "_complement", "$get$_complement", function() {
- return K._function4("complement", "$color", new K.closure76());
- });
- _lazy($, "_adjust", "$get$_adjust", function() {
- return K._function4("adjust", "$color, $kwargs...", new K.closure74());
- });
- _lazy($, "_scale", "$get$_scale", function() {
- return K._function4("scale", "$color, $kwargs...", new K.closure73());
- });
- _lazy($, "_change", "$get$_change", function() {
- return K._function4("change", "$color, $kwargs...", new K.closure72());
- });
- _lazy($, "_ieHexStr", "$get$_ieHexStr", function() {
- return K._function4("ie-hex-str", "$color", new K.closure75());
- });
- _lazy($, "global0", "$get$global1", function() {
- 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_BuiltInCallable), type$.BuiltInCallable);
- });
- _lazy($, "module0", "$get$module0", function() {
- 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_BuiltInCallable), null, null, type$.BuiltInCallable);
- });
- _lazy($, "_length", "$get$_length0", function() {
- return D._function3("length", "$list", new D.closure42());
- });
- _lazy($, "_nth", "$get$_nth", function() {
- return D._function3("nth", "$list, $n", new D.closure41());
- });
- _lazy($, "_setNth", "$get$_setNth", function() {
- return D._function3("set-nth", "$list, $n, $value", new D.closure40());
- });
- _lazy($, "_join", "$get$_join", function() {
- return D._function3("join", "$list1, $list2, $separator: auto, $bracketed: auto", new D.closure39());
- });
- _lazy($, "_append", "$get$_append0", function() {
- return D._function3("append", "$list, $val, $separator: auto", new D.closure38());
- });
- _lazy($, "_zip", "$get$_zip", function() {
- return D._function3("zip", "$lists...", new D.closure37());
- });
- _lazy($, "_index", "$get$_index0", function() {
- return D._function3("index", "$list, $value", new D.closure36());
- });
- _lazy($, "_separator", "$get$_separator", function() {
- return D._function3("separator", "$list", new D.closure34());
- });
- _lazy($, "_isBracketed", "$get$_isBracketed", function() {
- return D._function3("is-bracketed", "$list", new D.closure35());
- });
- _lazy($, "global1", "$get$global2", function() {
- 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_BuiltInCallable), type$.BuiltInCallable);
- });
- _lazy($, "module1", "$get$module1", function() {
- return Q.BuiltInModule$("map", H.setRuntimeTypeInfo([$.$get$_get(), $.$get$_merge(), $.$get$_remove(), $.$get$_keys(), $.$get$_values(), $.$get$_hasKey()], type$.JSArray_BuiltInCallable), null, null, type$.BuiltInCallable);
- });
- _lazy($, "_get", "$get$_get", function() {
- return A._function2("get", "$map, $key", new A.closure33());
- });
- _lazy($, "_merge", "$get$_merge", function() {
- return A._function2("merge", "$map1, $map2", new A.closure32());
- });
- _lazy($, "_remove", "$get$_remove", function() {
- return Q.BuiltInCallable$overloadedFunction("remove", P.LinkedHashMap_LinkedHashMap$_literal(["$map", new A.closure30(), "$map, $key, $keys...", new A.closure31()], type$.String, H.findType("Value(List<Value>)")));
- });
- _lazy($, "_keys", "$get$_keys", function() {
- return A._function2("keys", "$map", new A.closure29());
- });
- _lazy($, "_values", "$get$_values", function() {
- return A._function2("values", "$map", new A.closure28());
- });
- _lazy($, "_hasKey", "$get$_hasKey", function() {
- return A._function2("has-key", "$map, $key", new A.closure27());
- });
- _lazy($, "global2", "$get$global3", function() {
- 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_BuiltInCallable), type$.BuiltInCallable);
- });
- _lazy($, "module2", "$get$module2", function() {
- 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_BuiltInCallable), null, P.LinkedHashMap_LinkedHashMap$_literal(["e", T.SassNumber$(2.718281828459045, null), "pi", T.SassNumber$(3.141592653589793, null)], type$.String, type$.Value), type$.BuiltInCallable);
- });
- _lazy($, "_ceil", "$get$_ceil", function() {
- return K._numberFunction("ceil", new K.closure25());
- });
- _lazy($, "_clamp", "$get$_clamp", function() {
- return K._function1("clamp", "$min, $number, $max", new K.closure91());
- });
- _lazy($, "_floor", "$get$_floor", function() {
- return K._numberFunction("floor", new K.closure24());
- });
- _lazy($, "_max", "$get$_max", function() {
- return K._function1("max", "$numbers...", new K.closure23());
- });
- _lazy($, "_min", "$get$_min", function() {
- return K._function1("min", "$numbers...", new K.closure22());
- });
- _lazy($, "_round", "$get$_round", function() {
- return K._numberFunction("round", T.number0__fuzzyRound$closure());
- });
- _lazy($, "_abs", "$get$_abs", function() {
- return K._numberFunction("abs", new K.closure26());
- });
- _lazy($, "_hypot", "$get$_hypot", function() {
- return K._function1("hypot", "$numbers...", new K.closure89());
- });
- _lazy($, "_log", "$get$_log", function() {
- return K._function1("log", "$number, $base: null", new K.closure88());
- });
- _lazy($, "_pow", "$get$_pow", function() {
- return K._function1("pow", "$base, $exponent", new K.closure87());
- });
- _lazy($, "_sqrt", "$get$_sqrt", function() {
- return K._function1("sqrt", "$number", new K.closure85());
- });
- _lazy($, "_acos", "$get$_acos", function() {
- return K._function1("acos", "$number", new K.closure95());
- });
- _lazy($, "_asin", "$get$_asin", function() {
- return K._function1("asin", "$number", new K.closure94());
- });
- _lazy($, "_atan", "$get$_atan", function() {
- return K._function1("atan", "$number", new K.closure93());
- });
- _lazy($, "_atan2", "$get$_atan2", function() {
- return K._function1("atan2", "$y, $x", new K.closure92());
- });
- _lazy($, "_cos", "$get$_cos", function() {
- return K._function1("cos", "$number", new K.closure90());
- });
- _lazy($, "_sin", "$get$_sin", function() {
- return K._function1("sin", "$number", new K.closure86());
- });
- _lazy($, "_tan", "$get$_tan", function() {
- return K._function1("tan", "$number", new K.closure84());
- });
- _lazy($, "_compatible", "$get$_compatible", function() {
- return K._function1("compatible", "$number1, $number2", new K.closure18());
- });
- _lazy($, "_isUnitless", "$get$_isUnitless", function() {
- return K._function1("is-unitless", "$number", new K.closure17());
- });
- _lazy($, "_unit", "$get$_unit", function() {
- return K._function1("unit", "$number", new K.closure19());
- });
- _lazy($, "_percentage", "$get$_percentage", function() {
- return K._function1("percentage", "$number", new K.closure21());
- });
- _lazy($, "_random", "$get$_random0", function() {
- return P.Random_Random();
- });
- _lazy($, "_randomFunction", "$get$_randomFunction", function() {
- return K._function1("random", "$limit: null", new K.closure20());
- });
- _lazy($, "global3", "$get$global", function() {
- return P.UnmodifiableListView$(H.setRuntimeTypeInfo([Q._function5("feature-exists", "$feature", new Q.closure101()), Q._function5("inspect", "$value", new Q.closure102()), Q._function5("type-of", "$value", new Q.closure103()), Q._function5("keywords", "$args", new Q.closure104())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
- });
- _lazy($, "global4", "$get$global4", function() {
- 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_BuiltInCallable), type$.BuiltInCallable);
- });
- _lazy($, "module3", "$get$module3", function() {
- return Q.BuiltInModule$("selector", H.setRuntimeTypeInfo([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse(), $.$get$_nest(), $.$get$_append(), $.$get$_extend(), $.$get$_replace(), $.$get$_unify()], type$.JSArray_BuiltInCallable), null, null, type$.BuiltInCallable);
- });
- _lazy($, "_nest", "$get$_nest", function() {
- return T._function0("nest", "$selectors...", new T.closure13());
- });
- _lazy($, "_append0", "$get$_append", function() {
- return T._function0("append", "$selectors...", new T.closure12());
- });
- _lazy($, "_extend", "$get$_extend", function() {
- return T._function0("extend", "$selector, $extendee, $extender", new T.closure11());
- });
- _lazy($, "_replace", "$get$_replace", function() {
- return T._function0("replace", "$selector, $original, $replacement", new T.closure10());
- });
- _lazy($, "_unify", "$get$_unify", function() {
- return T._function0("unify", "$selector1, $selector2", new T.closure9());
- });
- _lazy($, "_isSuperselector", "$get$_isSuperselector", function() {
- return T._function0("is-superselector", "$super, $sub", new T.closure16());
- });
- _lazy($, "_simpleSelectors", "$get$_simpleSelectors", function() {
- return T._function0("simple-selectors", "$selector", new T.closure15());
- });
- _lazy($, "_parse", "$get$_parse", function() {
- return T._function0("parse", "$selector", new T.closure14());
- });
- _lazy($, "_random0", "$get$_random", function() {
- return P.Random_Random();
- });
- _lazy($, "_previousUniqueId", "$get$_previousUniqueId", function() {
- return $.$get$_random().nextInt$1(H._asIntNullable(P.pow(36, 6)));
- });
- _lazy($, "global5", "$get$global5", function() {
- 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_BuiltInCallable), type$.BuiltInCallable);
- });
- _lazy($, "module4", "$get$module4", function() {
- 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_BuiltInCallable), null, null, type$.BuiltInCallable);
- });
- _lazy($, "_unquote", "$get$_unquote", function() {
- return D._function("unquote", "$string", new D.closure8());
- });
- _lazy($, "_quote", "$get$_quote", function() {
- return D._function("quote", "$string", new D.closure7());
- });
- _lazy($, "_length0", "$get$_length", function() {
- return D._function("length", "$string", new D.closure3());
- });
- _lazy($, "_insert", "$get$_insert", function() {
- return D._function("insert", "$string, $insert, $index", new D.closure2());
- });
- _lazy($, "_index0", "$get$_index", function() {
- return D._function("index", "$string, $substring", new D.closure1());
- });
- _lazy($, "_slice", "$get$_slice", function() {
- return D._function("slice", "$string, $start-at, $end-at: -1", new D.closure0());
- });
- _lazy($, "_toUpperCase", "$get$_toUpperCase", function() {
- return D._function("to-upper-case", "$string", new D.closure6());
- });
- _lazy($, "_toLowerCase", "$get$_toLowerCase", function() {
- return D._function("to-lower-case", "$string", new D.closure5());
- });
- _lazy($, "_uniqueId", "$get$_uniqueId", function() {
- return D._function("unique-id", "", new D.closure4());
- });
- _lazy($, "stderr", "$get$stderr", function() {
- return new B.Stderr(self.process.stderr);
- });
- _lazy($, "Logger_quiet", "$get$Logger_quiet", function() {
- return new F._QuietLogger();
- });
- _lazy($, "_disallowedFunctionNames", "$get$_disallowedFunctionNames", function() {
- var t1 = $.$get$globalFunctions();
- t1 = t1.map$1$1(t1, new Q.closure105(), type$.String).toSet$0(0);
- t1.add$1(0, "if");
- t1.remove$1(0, "rgb");
- t1.remove$1(0, "rgba");
- t1.remove$1(0, "hsl");
- t1.remove$1(0, "hsla");
- t1.remove$1(0, "grayscale");
- t1.remove$1(0, "invert");
- t1.remove$1(0, "alpha");
- t1.remove$1(0, "opacity");
- t1.remove$1(0, "saturate");
- return t1;
- });
- _lazy($, "epsilon", "$get$epsilon", function() {
- return P.pow(10, -11);
- });
- _lazy($, "_inverseEpsilon", "$get$_inverseEpsilon", function() {
- return 1 / $.$get$epsilon();
- });
- _lazy($, "_noSourceUrl", "$get$_noSourceUrl", function() {
- return P.Uri_parse("-");
- });
- _lazy($, "_conversions", "$get$_conversions", function() {
- var t1 = type$.String,
- t2 = type$.num;
- 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>"));
- });
- _lazy($, "_emptyQuoted", "$get$_emptyQuoted", function() {
- return D.SassString$("", true);
- });
- _lazy($, "_emptyUnquoted", "$get$_emptyUnquoted", function() {
- return D.SassString$("", false);
- });
- _lazy($, "MAX_INT32", "$get$MAX_INT32", function() {
- return P.pow(2, 31) - 1;
- });
- _lazy($, "MIN_INT32", "$get$MIN_INT32", function() {
- return -P.pow(2, 31);
- });
- _lazy($, "_vmFrame", "$get$_vmFrame", function() {
- return P.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", false);
- });
- _lazy($, "_v8Frame", "$get$_v8Frame", function() {
- return P.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", false);
- });
- _lazy($, "_v8UrlLocation", "$get$_v8UrlLocation", function() {
- return P.RegExp_RegExp("^(.*):(\\d+):(\\d+)|native$", false);
- });
- _lazy($, "_v8EvalLocation", "$get$_v8EvalLocation", function() {
- return P.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", false);
- });
- _lazy($, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", function() {
- return P.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", false);
- });
- _lazy($, "_friendlyFrame", "$get$_friendlyFrame", function() {
- return P.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$", false);
- });
- _lazy($, "_asyncBody", "$get$_asyncBody", function() {
- return P.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", false);
- });
- _lazy($, "_initialDot", "$get$_initialDot", function() {
- return P.RegExp_RegExp("^\\.", false);
- });
- _lazy($, "Frame__uriRegExp", "$get$Frame__uriRegExp", function() {
- return P.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", false);
- });
- _lazy($, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", function() {
- return P.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", false);
- });
- _lazy($, "_terseRegExp", "$get$_terseRegExp", function() {
- return P.RegExp_RegExp("(-patch)?([/\\\\].*)?$", false);
- });
- _lazy($, "_v8Trace", "$get$_v8Trace", function() {
- return P.RegExp_RegExp("\\n ?at ", false);
- });
- _lazy($, "_v8TraceLine", "$get$_v8TraceLine", function() {
- return P.RegExp_RegExp(" ?at ", false);
- });
- _lazy($, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", function() {
- return P.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true);
- });
- _lazy($, "_friendlyTrace", "$get$_friendlyTrace", function() {
- return P.RegExp_RegExp("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true);
- });
- _lazy($, "_newlineRegExp", "$get$_newlineRegExp", function() {
- return P.RegExp_RegExp("\\r\\n?|\\n", false);
- });
- _lazy($, "booleanConstructor", "$get$booleanConstructor", function() {
- return new Z.closure249().call$0();
- });
- _lazy($, "_microsoftFilterStart0", "$get$_microsoftFilterStart0", function() {
- return P.RegExp_RegExp("^[a-zA-Z]+\\s*=", false);
- });
- _lazy($, "global6", "$get$global7", function() {
- var _s27_ = "$red, $green, $blue, $alpha",
- _s19_ = "$red, $green, $blue",
- _s37_ = "$hue, $saturation, $lightness, $alpha",
- _s29_ = "$hue, $saturation, $lightness",
- _s17_ = "$hue, $saturation",
- _s15_ = "$color, $amount",
- t1 = type$.String,
- t2 = H.findType("Value0(List<Value0>)");
- return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), Q.BuiltInCallable$overloadedFunction0("rgb", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure151(), _s19_, new K.closure152(), "$color, $alpha", new K.closure153(), "$channels", new K.closure154()], t1, t2)), Q.BuiltInCallable$overloadedFunction0("rgba", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure155(), _s19_, new K.closure156(), "$color, $alpha", new K.closure157(), "$channels", new K.closure158()], t1, t2)), K._function11("invert", "$color, $weight: 100%", new K.closure159()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), Q.BuiltInCallable$overloadedFunction0("hsl", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure160(), _s29_, new K.closure161(), _s17_, new K.closure162(), "$channels", new K.closure163()], t1, t2)), Q.BuiltInCallable$overloadedFunction0("hsla", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure164(), _s29_, new K.closure165(), _s17_, new K.closure166(), "$channels", new K.closure167()], t1, t2)), K._function11("grayscale", "$color", new K.closure168()), K._function11("adjust-hue", "$color, $degrees", new K.closure169()), K._function11("lighten", _s15_, new K.closure170()), K._function11("darken", _s15_, new K.closure171()), Q.BuiltInCallable$overloadedFunction0("saturate", P.LinkedHashMap_LinkedHashMap$_literal(["$amount", new K.closure172(), "$color, $amount", new K.closure173()], t1, t2)), K._function11("desaturate", _s15_, new K.closure174()), 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.closure175(), "$args...", new K.closure176()], t1, t2)), K._function11("opacity", "$color", new K.closure177()), $.$get$_ieHexStr0(), $.$get$_adjust0().withName$1("adjust-color"), $.$get$_scale0().withName$1("scale-color"), $.$get$_change0().withName$1("change-color")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
- });
- _lazy($, "module5", "$get$module5", function() {
- var _s9_ = "lightness",
- _s10_ = "saturation",
- _s5_ = "alpha";
- return Q.BuiltInModule$0("color", H.setRuntimeTypeInfo([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), K._function11("invert", "$color, $weight: 100%", new K.closure204()), $.$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.closure205()), 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.closure206(), "$args...", new K.closure207()], type$.String, H.findType("Value0(List<Value0>)"))), K._function11("opacity", "$color", new K.closure208()), $.$get$_adjust0(), $.$get$_scale0(), $.$get$_change0(), $.$get$_ieHexStr0()], type$.JSArray_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
- });
- _lazy($, "_red0", "$get$_red0", function() {
- return K._function11("red", "$color", new K.closure191());
- });
- _lazy($, "_green0", "$get$_green0", function() {
- return K._function11("green", "$color", new K.closure190());
- });
- _lazy($, "_blue0", "$get$_blue0", function() {
- return K._function11("blue", "$color", new K.closure189());
- });
- _lazy($, "_mix0", "$get$_mix0", function() {
- return K._function11("mix", "$color1, $color2, $weight: 50%", new K.closure188());
- });
- _lazy($, "_hue0", "$get$_hue0", function() {
- return K._function11("hue", "$color", new K.closure187());
- });
- _lazy($, "_saturation0", "$get$_saturation0", function() {
- return K._function11("saturation", "$color", new K.closure186());
- });
- _lazy($, "_lightness0", "$get$_lightness0", function() {
- return K._function11("lightness", "$color", new K.closure185());
- });
- _lazy($, "_complement0", "$get$_complement0", function() {
- return K._function11("complement", "$color", new K.closure184());
- });
- _lazy($, "_adjust0", "$get$_adjust0", function() {
- return K._function11("adjust", "$color, $kwargs...", new K.closure182());
- });
- _lazy($, "_scale0", "$get$_scale0", function() {
- return K._function11("scale", "$color, $kwargs...", new K.closure181());
- });
- _lazy($, "_change0", "$get$_change0", function() {
- return K._function11("change", "$color, $kwargs...", new K.closure180());
- });
- _lazy($, "_ieHexStr0", "$get$_ieHexStr0", function() {
- return K._function11("ie-hex-str", "$color", new K.closure183());
- });
- _lazy($, "colorConstructor", "$get$colorConstructor", function() {
- return B.createClass("SassColor", new K.closure239(), P.LinkedHashMap_LinkedHashMap$_literal(["getR", new K.closure240(), "getG", new K.closure241(), "getB", new K.closure242(), "getA", new K.closure243(), "setR", new K.closure244(), "setG", new K.closure245(), "setB", new K.closure246(), "setA", new K.closure247(), "toString", new K.closure248()], type$.String, type$.Function));
- });
- _lazy($, "colorsByName0", "$get$colorsByName0", function() {
- var _null = null;
- 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$.String, type$.SassColor_2);
- });
- _lazy($, "namesByColor0", "$get$namesByColor0", function() {
- var t1 = type$.String,
- t2 = type$.SassColor_2;
- return Y.mapMap($.$get$colorsByName0(), new X.closure178(), new X.closure179(), t1, t2, t2, t1);
- });
- _lazy($, "_disallowedFunctionNames0", "$get$_disallowedFunctionNames0", function() {
- var t1 = $.$get$globalFunctions0();
- t1 = t1.map$1$1(t1, new Q.closure213(), type$.String).toSet$0(0);
- t1.add$1(0, "if");
- t1.remove$1(0, "rgb");
- t1.remove$1(0, "rgba");
- t1.remove$1(0, "hsl");
- t1.remove$1(0, "hsla");
- t1.remove$1(0, "grayscale");
- t1.remove$1(0, "invert");
- t1.remove$1(0, "alpha");
- t1.remove$1(0, "opacity");
- t1.remove$1(0, "saturate");
- return t1;
- });
- _lazy($, "globalFunctions0", "$get$globalFunctions0", function() {
- var t2,
- t1 = H.setRuntimeTypeInfo([], type$.JSArray_BuiltInCallable_2);
- for (t2 = $.$get$global7(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global8(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global9(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global10(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global11(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global12(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- for (t2 = $.$get$global6(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.__internal$_current);
- t1.push(Q.BuiltInCallable$function0("if", "$condition, $if-true, $if-false", new Y.closure107(), null));
- return P.UnmodifiableListView$(t1, type$.BuiltInCallable_2);
- });
- _lazy($, "coreModules0", "$get$coreModules0", function() {
- return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$module5(), $.$get$module6(), $.$get$module7(), $.$get$module8(), $.$get$module9(), $.$get$module10()], type$.JSArray_BuiltInModule_BuiltInCallable_2), H.findType("BuiltInModule0<BuiltInCallable0>"));
- });
- _lazy($, "IfExpression_declaration0", "$get$IfExpression_declaration0", function() {
- return B.ArgumentDeclaration_ArgumentDeclaration$parse0("@function if($condition, $if-true, $if-false) {", null);
- });
- _lazy($, "global7", "$get$global8", function() {
- 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_BuiltInCallable_2), type$.BuiltInCallable_2);
- });
- _lazy($, "module6", "$get$module6", function() {
- 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_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
- });
- _lazy($, "_length1", "$get$_length2", function() {
- return D._function10("length", "$list", new D.closure150());
- });
- _lazy($, "_nth0", "$get$_nth0", function() {
- return D._function10("nth", "$list, $n", new D.closure149());
- });
- _lazy($, "_setNth0", "$get$_setNth0", function() {
- return D._function10("set-nth", "$list, $n, $value", new D.closure148());
- });
- _lazy($, "_join0", "$get$_join0", function() {
- return D._function10("join", "$list1, $list2, $separator: auto, $bracketed: auto", new D.closure147());
- });
- _lazy($, "_append1", "$get$_append2", function() {
- return D._function10("append", "$list, $val, $separator: auto", new D.closure146());
- });
- _lazy($, "_zip0", "$get$_zip0", function() {
- return D._function10("zip", "$lists...", new D.closure145());
- });
- _lazy($, "_index1", "$get$_index2", function() {
- return D._function10("index", "$list, $value", new D.closure144());
- });
- _lazy($, "_separator0", "$get$_separator0", function() {
- return D._function10("separator", "$list", new D.closure142());
- });
- _lazy($, "_isBracketed0", "$get$_isBracketed0", function() {
- return D._function10("is-bracketed", "$list", new D.closure143());
- });
- _lazy($, "listConstructor", "$get$listConstructor", function() {
- return B.createClass("SassList", new D.closure232(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new D.closure233(), "setValue", new D.closure234(), "getSeparator", new D.closure235(), "setSeparator", new D.closure236(), "getLength", new D.closure237(), "toString", new D.closure238()], type$.String, type$.Function));
- });
- _lazy($, "global8", "$get$global9", function() {
- 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_BuiltInCallable_2), type$.BuiltInCallable_2);
- });
- _lazy($, "module7", "$get$module7", function() {
- return Q.BuiltInModule$0("map", H.setRuntimeTypeInfo([$.$get$_get0(), $.$get$_merge0(), $.$get$_remove0(), $.$get$_keys0(), $.$get$_values0(), $.$get$_hasKey0()], type$.JSArray_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
- });
- _lazy($, "_get0", "$get$_get0", function() {
- return A._function9("get", "$map, $key", new A.closure141());
- });
- _lazy($, "_merge0", "$get$_merge0", function() {
- return A._function9("merge", "$map1, $map2", new A.closure140());
- });
- _lazy($, "_remove0", "$get$_remove0", function() {
- return Q.BuiltInCallable$overloadedFunction0("remove", P.LinkedHashMap_LinkedHashMap$_literal(["$map", new A.closure138(), "$map, $key, $keys...", new A.closure139()], type$.String, H.findType("Value0(List<Value0>)")));
- });
- _lazy($, "_keys0", "$get$_keys0", function() {
- return A._function9("keys", "$map", new A.closure137());
- });
- _lazy($, "_values0", "$get$_values0", function() {
- return A._function9("values", "$map", new A.closure136());
- });
- _lazy($, "_hasKey0", "$get$_hasKey0", function() {
- return A._function9("has-key", "$map, $key", new A.closure135());
- });
- _lazy($, "mapConstructor", "$get$mapConstructor", function() {
- return B.createClass("SassMap", new A.closure225(), P.LinkedHashMap_LinkedHashMap$_literal(["getKey", new A.closure226(), "getValue", new A.closure227(), "getLength", new A.closure228(), "setKey", new A.closure229(), "setValue", new A.closure230(), "toString", new A.closure231()], type$.String, type$.Function));
- });
- _lazy($, "global9", "$get$global10", function() {
- 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_BuiltInCallable_2), type$.BuiltInCallable_2);
- });
- _lazy($, "module8", "$get$module8", function() {
- 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_BuiltInCallable_2), null, P.LinkedHashMap_LinkedHashMap$_literal(["e", T.SassNumber$0(2.718281828459045, null), "pi", T.SassNumber$0(3.141592653589793, null)], type$.String, type$.Value_2), type$.BuiltInCallable_2);
- });
- _lazy($, "_ceil0", "$get$_ceil0", function() {
- return K._numberFunction0("ceil", new K.closure133());
- });
- _lazy($, "_clamp0", "$get$_clamp0", function() {
- return K._function8("clamp", "$min, $number, $max", new K.closure199());
- });
- _lazy($, "_floor0", "$get$_floor0", function() {
- return K._numberFunction0("floor", new K.closure132());
- });
- _lazy($, "_max0", "$get$_max0", function() {
- return K._function8("max", "$numbers...", new K.closure131());
- });
- _lazy($, "_min0", "$get$_min0", function() {
- return K._function8("min", "$numbers...", new K.closure130());
- });
- _lazy($, "_round0", "$get$_round0", function() {
- return K._numberFunction0("round", T.number2__fuzzyRound$closure());
- });
- _lazy($, "_abs0", "$get$_abs0", function() {
- return K._numberFunction0("abs", new K.closure134());
- });
- _lazy($, "_hypot0", "$get$_hypot0", function() {
- return K._function8("hypot", "$numbers...", new K.closure197());
- });
- _lazy($, "_log0", "$get$_log0", function() {
- return K._function8("log", "$number, $base: null", new K.closure196());
- });
- _lazy($, "_pow0", "$get$_pow0", function() {
- return K._function8("pow", "$base, $exponent", new K.closure195());
- });
- _lazy($, "_sqrt0", "$get$_sqrt0", function() {
- return K._function8("sqrt", "$number", new K.closure193());
- });
- _lazy($, "_acos0", "$get$_acos0", function() {
- return K._function8("acos", "$number", new K.closure203());
- });
- _lazy($, "_asin0", "$get$_asin0", function() {
- return K._function8("asin", "$number", new K.closure202());
- });
- _lazy($, "_atan0", "$get$_atan0", function() {
- return K._function8("atan", "$number", new K.closure201());
- });
- _lazy($, "_atan20", "$get$_atan20", function() {
- return K._function8("atan2", "$y, $x", new K.closure200());
- });
- _lazy($, "_cos0", "$get$_cos0", function() {
- return K._function8("cos", "$number", new K.closure198());
- });
- _lazy($, "_sin0", "$get$_sin0", function() {
- return K._function8("sin", "$number", new K.closure194());
- });
- _lazy($, "_tan0", "$get$_tan0", function() {
- return K._function8("tan", "$number", new K.closure192());
- });
- _lazy($, "_compatible0", "$get$_compatible0", function() {
- return K._function8("compatible", "$number1, $number2", new K.closure126());
- });
- _lazy($, "_isUnitless0", "$get$_isUnitless0", function() {
- return K._function8("is-unitless", "$number", new K.closure125());
- });
- _lazy($, "_unit0", "$get$_unit0", function() {
- return K._function8("unit", "$number", new K.closure127());
- });
- _lazy($, "_percentage0", "$get$_percentage0", function() {
- return K._function8("percentage", "$number", new K.closure129());
- });
- _lazy($, "_random1", "$get$_random2", function() {
- return P.Random_Random();
- });
- _lazy($, "_randomFunction0", "$get$_randomFunction0", function() {
- return K._function8("random", "$limit: null", new K.closure128());
- });
- _lazy($, "global10", "$get$global6", function() {
- return P.UnmodifiableListView$(H.setRuntimeTypeInfo([Q._function12("feature-exists", "$feature", new Q.closure209()), Q._function12("inspect", "$value", new Q.closure210()), Q._function12("type-of", "$value", new Q.closure211()), Q._function12("keywords", "$args", new Q.closure212())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
- });
- _lazy($, "stderr0", "$get$stderr0", function() {
- return new B.Stderr0(self.process.stderr);
- });
- _lazy($, "nullConstructor", "$get$nullConstructor", function() {
- return new O.closure224().call$0();
- });
- _lazy($, "epsilon0", "$get$epsilon0", function() {
- return P.pow(10, -11);
- });
- _lazy($, "_inverseEpsilon0", "$get$_inverseEpsilon0", function() {
- return 1 / $.$get$epsilon0();
- });
- _lazy($, "numberConstructor", "$get$numberConstructor", function() {
- return B.createClass("SassNumber", new T.closure218(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new T.closure219(), "setValue", new T.closure220(), "getUnit", new T.closure221(), "setUnit", new T.closure222(), "toString", new T.closure223()], type$.String, type$.Function));
- });
- _lazy($, "_conversions0", "$get$_conversions0", function() {
- var t1 = type$.String,
- t2 = type$.num;
- 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>"));
- });
- _lazy($, "global11", "$get$global11", function() {
- 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_BuiltInCallable_2), type$.BuiltInCallable_2);
- });
- _lazy($, "module9", "$get$module9", function() {
- 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_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
- });
- _lazy($, "_nest0", "$get$_nest0", function() {
- return T._function7("nest", "$selectors...", new T.closure121());
- });
- _lazy($, "_append2", "$get$_append1", function() {
- return T._function7("append", "$selectors...", new T.closure120());
- });
- _lazy($, "_extend0", "$get$_extend0", function() {
- return T._function7("extend", "$selector, $extendee, $extender", new T.closure119());
- });
- _lazy($, "_replace0", "$get$_replace0", function() {
- return T._function7("replace", "$selector, $original, $replacement", new T.closure118());
- });
- _lazy($, "_unify0", "$get$_unify0", function() {
- return T._function7("unify", "$selector1, $selector2", new T.closure117());
- });
- _lazy($, "_isSuperselector0", "$get$_isSuperselector0", function() {
- return T._function7("is-superselector", "$super, $sub", new T.closure124());
- });
- _lazy($, "_simpleSelectors0", "$get$_simpleSelectors0", function() {
- return T._function7("simple-selectors", "$selector", new T.closure123());
- });
- _lazy($, "_parse0", "$get$_parse0", function() {
- return T._function7("parse", "$selector", new T.closure122());
- });
- _lazy($, "_random2", "$get$_random1", function() {
- return P.Random_Random();
- });
- _lazy($, "_previousUniqueId0", "$get$_previousUniqueId0", function() {
- return $.$get$_random1().nextInt$1(H._asIntNullable(P.pow(36, 6)));
- });
- _lazy($, "global12", "$get$global12", function() {
- 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_BuiltInCallable_2), type$.BuiltInCallable_2);
- });
- _lazy($, "module10", "$get$module10", function() {
- 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_BuiltInCallable_2), null, null, type$.BuiltInCallable_2);
- });
- _lazy($, "_unquote0", "$get$_unquote0", function() {
- return D._function6("unquote", "$string", new D.closure116());
- });
- _lazy($, "_quote0", "$get$_quote0", function() {
- return D._function6("quote", "$string", new D.closure115());
- });
- _lazy($, "_length2", "$get$_length1", function() {
- return D._function6("length", "$string", new D.closure111());
- });
- _lazy($, "_insert0", "$get$_insert0", function() {
- return D._function6("insert", "$string, $insert, $index", new D.closure110());
- });
- _lazy($, "_index2", "$get$_index1", function() {
- return D._function6("index", "$string, $substring", new D.closure109());
- });
- _lazy($, "_slice0", "$get$_slice0", function() {
- return D._function6("slice", "$string, $start-at, $end-at: -1", new D.closure108());
- });
- _lazy($, "_toUpperCase0", "$get$_toUpperCase0", function() {
- return D._function6("to-upper-case", "$string", new D.closure114());
- });
- _lazy($, "_toLowerCase0", "$get$_toLowerCase0", function() {
- return D._function6("to-lower-case", "$string", new D.closure113());
- });
- _lazy($, "_uniqueId0", "$get$_uniqueId0", function() {
- return D._function6("unique-id", "", new D.closure112());
- });
- _lazy($, "stringConstructor", "$get$stringConstructor", function() {
- return B.createClass("SassString", new D.closure214(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new D.closure215(), "setValue", new D.closure216(), "toString", new D.closure217()], type$.String, type$.Function));
- });
- _lazy($, "_emptyQuoted0", "$get$_emptyQuoted0", function() {
- return D.SassString$0("", true);
- });
- _lazy($, "_emptyUnquoted0", "$get$_emptyUnquoted0", function() {
- return D.SassString$0("", false);
- });
- _lazy($, "_jsThrow", "$get$_jsThrow", function() {
- return new self.Function("error", "throw error;");
- });
- _lazy($, "_isUndefined", "$get$_isUndefined", function() {
- return new self.Function("value", "return value === undefined;");
- });
- _lazy($, "_jsInstanceOf", "$get$_jsInstanceOf", function() {
- return new self.Function("value", "type", "return value instanceof type;");
- });
- _lazy($, "_noSourceUrl0", "$get$_noSourceUrl0", function() {
- return P.Uri_parse("-");
- });
- })();
- (function nativeSupport() {
- !function() {
- var intern = function(s) {
- var o = {};
- o[s] = 1;
- return Object.keys(hunkHelpers.convertToFastObject(o))[0];
- };
- init.getIsolateTag = function(name) {
- return intern("___dart_" + name + init.isolateTag);
- };
- var tableProperty = "___dart_isolate_tags_";
- var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null));
- var rootProperty = "_ZxYxX";
- for (var i = 0;; i++) {
- var property = intern(rootProperty + "_" + i + "_");
- if (!(property in usedProperties)) {
- usedProperties[property] = 1;
- init.isolateTag = property;
- break;
- }
- }
- init.dispatchPropertyName = init.getIsolateTag("dispatch_record");
- }();
- 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});
- 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});
- H.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView";
- H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
- H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
- H.NativeTypedArrayOfDouble.$nativeSuperclassTag = "ArrayBufferView";
- H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
- H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
- H.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
- })();
- Function.prototype.call$2 = function(a, b) {
- return this(a, b);
- };
- Function.prototype.call$1 = function(a) {
- return this(a);
- };
- Function.prototype.call$0 = function() {
- return this();
- };
- Function.prototype.call$1$1 = function(a) {
- return this(a);
- };
- Function.prototype.call$3 = function(a, b, c) {
- return this(a, b, c);
- };
- Function.prototype.call$4 = function(a, b, c, d) {
- return this(a, b, c, d);
- };
- Function.prototype.call$6 = function(a, b, c, d, e, f) {
- return this(a, b, c, d, e, f);
- };
- Function.prototype.call$5 = function(a, b, c, d, e) {
- return this(a, b, c, d, e);
- };
- Function.prototype.call$1$3 = function(a, b, c) {
- return this(a, b, c);
- };
- Function.prototype.call$2$2 = function(a, b) {
- return this(a, b);
- };
- Function.prototype.call$1$0 = function() {
- return this();
- };
- convertAllToFastObject(holders);
- convertToFastObject($);
- (function(callback) {
- if (typeof document === "undefined") {
- callback(null);
- return;
- }
- if (typeof document.currentScript != 'undefined') {
- callback(document.currentScript);
- return;
- }
- var scripts = document.scripts;
- function onLoad(event) {
- for (var i = 0; i < scripts.length; ++i)
- scripts[i].removeEventListener("load", onLoad, false);
- callback(event.target);
- }
- for (var i = 0; i < scripts.length; ++i)
- scripts[i].addEventListener("load", onLoad, false);
- })(function(currentScript) {
- init.currentScript = currentScript;
- if (typeof dartMainRunner === "function")
- dartMainRunner(R.main0, []);
- else
- R.main0([]);
- });
- })();
|